@font-face{font-family:Geist;src:url("/assets/Geist-latin.woff2") format("woff2");font-weight:100 900;font-display:swap}
@font-face{font-family:Noto Sans SC;src:url("/assets/NotoSansSC-nav.woff2") format("woff2");font-weight:100 900;font-display:swap;unicode-range:U+3000-303F,U+3400-9FFF,U+FF00-FFEF}
:root{color-scheme:light;--paper:#fafaf8;--surface:#f4f2ed;--ink:#1c1b1a;--muted:#6b655c;--line:#e6e1d8;--accent:#b33223;--white:#fff;--sans:Geist,"Noto Sans SC","Microsoft YaHei","PingFang SC",sans-serif}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;background:var(--paper);color:var(--ink);font:400 15px/1.6 var(--sans)}
body:has(dialog[open]){overflow:hidden}
::selection{color:var(--ink);background:#e9d9ca}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
button,input,select{font:inherit;color:inherit}
a{color:inherit;text-underline-offset:.25em}
button{cursor:pointer}
h1,h2,h3,p{margin:0}
img{display:block;max-width:100%}
.wrap{width:min(100% - clamp(32px,8vw,132px),1320px);margin-inline:auto}
.sr-only,.skip:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip:focus{position:fixed;z-index:3;top:10px;left:10px;background:var(--white);padding:10px}
.topbar{background:var(--paper);border-bottom:1px solid var(--line)}
.topbar-inner{height:74px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.brand img{width:116px;height:auto}
.topbar-label,.text-link{font-size:13px;color:var(--muted)}
.catalog-head{padding:clamp(37px,6.3vw,82px) 0 clamp(24px,4.25vw,55px)}
h1{font-size:clamp(32px,6vw,82px);font-weight:740;line-height:1.14;letter-spacing:-.04em;text-wrap:balance}
.catalog-head p{color:var(--muted);font-size:clamp(14px,1.6vw,16px);margin-top:14px}
.catalog-tools{display:flex;justify-content:space-between;gap:18px;align-items:center;border-block:1px solid var(--line);padding:10px 0}
.filters{display:flex;flex-wrap:wrap;gap:4px 8px}
.filter{background:transparent;border:1px solid transparent;min-height:44px;border-radius:22px;padding:6px 14px;font-size:14px;white-space:nowrap}
.filter:hover{background:var(--surface)}
.filter[aria-pressed=true]{background:var(--ink);color:var(--paper);border-color:var(--ink)}
input,select{width:100%;min-height:44px;padding:9px 12px;border-radius:7px;border:1px solid #d6d0c6;background:var(--white)}
input::placeholder{color:var(--muted)}
.search{display:block;flex:0 0 min(220px,28%)}
.result-count{color:var(--muted);font-size:13px;padding-block:14px 12px;min-height:44px}
.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(18px,2.1vw,30px);row-gap:clamp(22px,3vw,41px)}
.product{min-width:0}
.photo{position:relative;display:block;width:100%;padding:0;border:0;border-radius:9px;overflow:hidden;background:var(--surface);cursor:zoom-in}
.photo img{width:100%;height:auto;aspect-ratio:4/3;object-fit:contain}
.photo svg{position:absolute;bottom:10px;right:10px;border-radius:7px;padding:5px;width:30px;height:30px;color:var(--ink);background:var(--paper);opacity:.85}
.photo:hover svg{opacity:1}
.product-info{display:flex;align-items:baseline;justify-content:space-between;gap:5px 12px;padding:10px 0 0;flex-wrap:wrap}
.product h2{font-weight:650;font-size:15px;overflow-wrap:anywhere}
.product-info p,.viewer-caption p{font-size:13px;color:var(--muted);white-space:nowrap}
.money{font:700 21px/1 Georgia,serif;letter-spacing:-.045em;color:var(--ink)}
.footer{margin-top:clamp(42px,7vw,90px);border-top:1px solid var(--line);padding-block:24px 30px;display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:13px}
dialog{border:0;border-radius:13px;background:var(--paper);color:var(--ink);padding:0;max-width:min(1040px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto;box-shadow:0 16px 80px #17130f54}
dialog::backdrop{background:#211d18b8}
.viewer-frame{position:relative}
dialog[open] .viewer-frame{animation:unfold .32s cubic-bezier(.16,1,.3,1) both}
@keyframes unfold{from{opacity:.25;transform:perspective(1050px) rotateY(-29deg) scale(.88)}to{opacity:1;transform:perspective(1050px) rotateY(0) scale(1)}}
#detail-img{width:min(1040px,calc((100dvh - 115px)*4/3));height:auto;max-height:calc(100dvh - 104px);background:var(--surface);object-fit:contain}
.viewer-caption{padding:11px 17px 14px;display:flex;justify-content:space-between;align-items:baseline;gap:7px 16px;flex-wrap:wrap}
.viewer-caption h2{font-size:clamp(15px,3vw,20px)}
.icon-button{display:grid;place-items:center;min-width:44px;min-height:44px;padding:0;border:1px solid var(--line);border-radius:50%;background:var(--paper)}
.close-button{position:absolute;top:9px;right:9px;z-index:1}
.admin-main{padding-bottom:56px}
.admin-main h1{font-size:clamp(32px,5vw,62px)}
.admin-main h2{font-size:21px;font-weight:690}
.admin-layout{display:grid;grid-template-columns:minmax(260px,355px) minmax(0,1fr);align-items:start;gap:clamp(24px,5vw,68px)}
.panel{padding:clamp(17px,3vw,29px);border:1px solid var(--line);border-radius:12px;background:var(--surface)}
#login{max-width:420px}
.form{display:grid;gap:14px}
.form label{display:grid;gap:4px;font-weight:580}
.form small{color:var(--muted);font-size:13px}
.form-header{display:flex;align-items:center;justify-content:space-between;gap:10px}
.primary{border:1px solid var(--ink);border-radius:7px;background:var(--ink);color:var(--paper);min-height:45px;padding:8px 17px;font-weight:620}
.primary:disabled{opacity:.65;cursor:wait}
.text-button{min-height:44px;border:0;background:transparent;padding:4px 6px;text-decoration:underline;text-underline-offset:4px}
.notice:not(:empty){margin:0 0 17px;padding:9px 13px;border-radius:6px;background:var(--surface);color:var(--muted)}
.notice[data-error=true]{color:#8a271c}
.upload-preview{width:100%;height:auto;aspect-ratio:4/3;object-fit:contain;border-radius:6px}
.admin-search{margin-top:9px}
.admin-row{display:grid;grid-template-columns:82px minmax(0,1fr) auto;align-items:center;gap:12px;padding:8px 0;border-bottom:1px solid var(--line)}
.admin-row img{width:82px;aspect-ratio:4/3;object-fit:contain;border-radius:5px;background:var(--surface)}
.admin-row h3{font-size:15px;overflow-wrap:anywhere}
.admin-row p{color:var(--muted);font-size:12px;overflow-wrap:anywhere}
@media(max-width:1000px){.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:670px){.topbar-inner{height:62px}.brand img{width:97px}.catalog-tools{align-items:stretch;flex-direction:column;gap:8px}.filters{gap:3px}.filter{font-size:13px;padding-inline:9px}.search{flex:auto}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 12px}.product-info{align-items:start;flex-direction:column;gap:1px}.product h2{font-size:14px}.photo svg{width:25px;height:25px;right:6px;bottom:6px}.admin-layout{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){dialog[open] .viewer-frame{animation:none}}
.dimensions{min-inline-size:0;margin:0;padding:8px 11px 11px;border:1px solid #d6d0c6;border-radius:7px}
.dimensions legend{padding:0 4px;font-weight:580}
.dimensions div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.dimensions label{color:var(--muted);font-size:12px}
.dimensions input{padding-inline:7px}
.specs,.viewer-caption .specs{margin-top:4px;color:var(--muted);font-size:12px;white-space:normal}
.viewer-caption .specs{flex-basis:100%;margin-top:0}
.admin-row .pending-photo{width:82px;aspect-ratio:4/3;display:grid;place-items:center;background:var(--surface);border-radius:5px;font-size:12px;color:var(--muted)}
