:root {
  --paper: #eceae2; --card: #faf9f6; --ink: #2c2e33; --muted: #575b5a;
  --stroke: #d5d4ca; --blue: #dbe2e9; --green: #dce5dc; --clay: #e8ddd4;
  --focus: #495c75; --radius: 20px;
  font-family: "Microsoft YaHei UI","PingFang SC","Noto Sans CJK SC",system-ui,sans-serif;
  color: var(--ink); background: var(--paper); font-synthesis: none;
  accent-color: var(--focus);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { color: var(--focus); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
::selection { background: #c3d0dc; color: var(--ink); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.shell { width: min(1400px, calc(100% - 88px)); margin: 0 auto; }
.topbar { height: 65px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; text-decoration: none; }
.toplink { color: var(--muted); font-size: 13px; text-decoration: none; }
.toplink:hover { text-decoration: underline; }
.brand-mark { width: 28px; height: 28px; border-radius: 50%; background: #35434d; display: grid; grid-template-columns: repeat(3,1fr); align-items: center; gap: 2px; padding: 7px; transform: rotate(-16deg); }
.brand-mark i { height: 8px; border: 1px solid #f3f0e9; border-radius: 1px; }
.brand-mark i:nth-child(2) { height: 12px; background: #b9cabc; }
.hero { position: relative; isolation: isolate; min-height: 240px; padding: 32px clamp(28px,5vw,76px); border-radius: var(--radius); display: grid; align-items: center; background: #e5e2d8; box-shadow: 0 11px 24px #312a1a0c; overflow: hidden; }
.hero-copy { position: relative; z-index: 1; }
.hero-mark { width: 43px; height: 43px; padding: 11px; border: 2px solid #fcfaf4; box-shadow: 0 4px 9px #2c2e332c; margin-bottom: 13px; }
.hero-mark i { height: 12px; }.hero-mark i:nth-child(2){height:17px;}
h1 { max-width: 73%; margin: 0; font-size: clamp(33px,4vw,60px); letter-spacing: -.035em; line-height: 1.18; font-weight: 750; text-wrap: balance; }
.hero p { margin: 12px 0 0; line-height: 1.65; color: #454745; font-size: clamp(13px,1.35vw,17px); }
.banner { position: absolute; inset: 0; background: linear-gradient(117deg,#f4f0e6 0%,#eae7dd 57%,#cec9bd 100%); overflow: hidden; }
.banner::before { content: ""; position: absolute; inset: -100% -4% -100% -18%; background: linear-gradient(106deg,transparent 35%,#fffcf2a1 43%,#fffcf231 52%,transparent 58%); filter: blur(13px); }
.swatch { position: absolute; width: clamp(95px,17%,220px); aspect-ratio: 1.37; border-radius: 6px; box-shadow: 7px 14px 24px #332c2540, inset 0 0 0 1px #ffffff57; background-image: linear-gradient(145deg,#ffffff48,transparent 60%,#00000012); }
.cream { background-color: #efeadc; top: 6%; right: 7%; transform: rotate(15deg); }
.sage { background-color: #8fa396; top: 21%; right: 15%; transform: rotate(-20deg); }
.clay { background-color: #c4b3a4; top: 44%; right: 5.5%; transform: rotate(13deg); }
.blue { background-color: #7c8ea6; top: 49%; right: 18%; transform: rotate(-11deg); }
.film { position: absolute; right: -2%; top: 49%; min-width: 150px; width: 28%; display: flex; gap: 7px; padding: 13px 6px; background: #363940b5; transform: rotate(-21deg); box-shadow: 2px 7px 17px #17171c45; border-radius: 3px; }
.film::before, .film::after { position:absolute; content:""; height:5px; inset-inline:0; background:repeating-linear-gradient(90deg, transparent 0 5px,#f2ebd8a3 5px 12px,transparent 12px 15px); }
.film::before { top:3px; }.film::after { bottom:3px; }
.film i { flex:1; min-width:0; aspect-ratio:1.46; background:#cdd5c477; border-radius:2px; box-shadow:inset 0 0 12px #1a1a1f57; }
.film i:nth-child(2) { background:#d4b4a881; }.film i:nth-child(3) { background:#9caec19d; }
.stats { margin: 18px 0 29px; display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 10px; }
.stat { display: flex; align-items: baseline; gap: 10px; padding: 12px clamp(10px,1.55vw,20px); border-radius: 12px; background: #f6f4ee; }
.stat:nth-child(2) { background: var(--blue); }.stat:nth-child(3) { background: var(--green); }.stat:nth-child(4) { background: var(--clay); }
.stat dt { color: #454b4a; font-size: 12px; }.stat dd { order:-1; margin:0; font: 600 25px/1.35 Georgia,serif; font-variant-numeric: lining-nums tabular-nums; }
.tabs { display: flex; gap: 5px; margin: 0 0 15px; padding: 4px; inline-size: max-content; max-width:100%; border:1px solid var(--stroke); background:#e5e3db; border-radius:14px; }
.tabs button { background: transparent; border: 0; border-radius: 10px; padding: 9px 15px; font-size: 14px; font-weight: 600; text-align:center; }
.tabs button[aria-pressed="true"] { background: var(--card); box-shadow: 0 2px 6px #34323314; color: #304661; }
.tabs button:not([aria-pressed="true"]):hover { background:#f2f0e8; }
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.search { flex: 1 1 275px; border: 1px solid var(--stroke); display: flex; align-items: center; gap: 11px; padding: 0 15px; border-radius: 100px; background: var(--card); }
.search:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.search input { width:100%; min-width:0; height:44px; background:transparent; border:0; outline:none; font-size:14px; }
.search input:focus-visible { outline:none; }
.search input::placeholder { color: var(--muted); }
.lens { display:block; position:relative; width:13px; height:13px; flex:0 0 13px; border:1.5px solid var(--muted); border-radius:50%; }
.lens::after { content:""; position:absolute; top:10px; left:9px; width:6px; border-top:1.5px solid var(--muted); transform:rotate(45deg); transform-origin:left; }
.category select, .play { min-height: 44px; padding: 0 14px; background: var(--card); border:1px solid var(--stroke); border-radius: 100px; font-size: 13px; }
.category select { max-width: 100%; padding-right: 9px; }
.play:hover, .action:hover { background:#e5eaf0; }.media-filter { display:flex; align-items:center; gap:5px; font-size:13px; min-height: 44px; }
.result-count { margin: 13px 0 3px; font-size: 12px; color: var(--muted); min-height: 1.5em; }
.group + .group { margin-top: 33px; }.group h2 { margin: 14px 0 13px; font-size: clamp(20px,2vw,26px); letter-spacing: -.022em; }
.group-count { margin-left: 8px; font-size: 12px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; align-items: start; }
.card { background: var(--card); border: 1px solid #dcdacf; border-radius: var(--radius); overflow: hidden; transition: transform 180ms ease-out, box-shadow 180ms ease-out; min-width:0; }
@media (hover:hover) { .card:hover { transform: translateY(-3px); box-shadow: 0 10px 18px #322e2515; } }
.preview { position:relative; aspect-ratio: 1.88; display:grid; place-items:center; background:#e4e2d9; overflow:hidden; }
.preview img, .preview video, .preview canvas { display:block; width:100%; height:100%; object-fit:contain; position:absolute; inset:0; }
.preview canvas { object-fit:contain; }.preview.image { background:#dfddd4; }.preview.motion { background:#e9e8e4; }
.preview img:focus { outline-offset:-4px; }
.preview-badge { position:absolute; z-index:1; top:9px; left:9px; background:#faf9f5ed; border-radius:100px; color:#383c40; padding:4px 8px; font-size:10px; }
.placeholder { font-size:13px; color:#575953; text-align:center; padding: 10px; }
.placeholder a { display:block; margin-top:5px; font-size:11px; }
.card-body { padding: 13px 14px 14px; }
.meta { color:#505950; font-size:11px; font-variant-numeric: tabular-nums; }
.card h3 { margin: 6px 0 2px; line-height:1.28; font-size: 19px; letter-spacing:-.018em; overflow-wrap:anywhere; }
.english { margin: 0; font-size: 12px; color: #535b64; line-height:1.45; overflow-wrap:anywhere; }
.desc { margin: 9px 0 11px; min-height: 2.9em; font-size:13px; line-height:1.5; }
.actions { display:flex; flex-wrap:wrap; gap:5px; align-items:center; }
.action { min-height: 34px; background: #e1e7ee; border:0; border-radius: 100px; padding:0 9px; font-size:11px; font-weight:640; text-align:center; }
.action.secondary { background:#ebe9e0; }.action.secondary:hover { background:#e0ded3; }
.origin { margin-left:auto; font-size:11px; color:var(--muted); white-space:nowrap; }
details { margin-top: 10px; border-top: 1px solid #e3e1d7; padding-top: 8px; font-size:12px; color:#424b51; line-height:1.6; }
summary { cursor:pointer; width:max-content; padding:1px 1px 3px; }
details p, details ul { margin:6px 0 10px; overflow-wrap:anywhere; }
details ul { padding-left:18px; }
details h4 { font-size:12px; margin:11px 0 3px; }
.prompt { margin:0; font:inherit; white-space:pre-wrap; user-select:text; overflow-wrap:anywhere; }
.no-results { margin: 16px 0; border:1px dashed var(--stroke); padding:30px 16px; border-radius:12px; color:var(--muted); text-align:center; }
footer { margin: 38px 0 0; border-top: 1px solid var(--stroke); padding:18px 0 35px; color:var(--muted); font-size:12px; line-height:1.6; }
footer h2 { margin:0; font-size:16px; color:var(--ink); } footer p { margin:5px 0 0; }
.toast { position:fixed; z-index:10; bottom:20px; left:50%; transform:translate(-50%,8px); opacity:0; pointer-events:none; padding:9px 15px; background:#2c353c; color:#fff; border-radius:100px; font-size:13px; transition:opacity 130ms ease,transform 130ms ease; }
.toast.show { opacity:1; transform:translate(-50%,0); }
@media (max-width:1150px){ .grid{grid-template-columns:repeat(3,minmax(0,1fr));} }
@media (max-width:900px){ .shell{width:calc(100% - 40px);} .grid{grid-template-columns:repeat(2,minmax(0,1fr));} }
@media (min-width:581px) and (max-width:780px){ .stats{grid-template-columns:repeat(3,minmax(0,1fr));} }
@media (max-width:580px){
  .shell{width:calc(100% - 28px);} .topbar{height:52px;} .hero{min-height:220px;padding:22px 17px;}
  .banner { background:linear-gradient(98deg,#f5f0e5 12%,#e7e3d7 68%,#d2cbbd); }
  .banner::after { content:"";position:absolute;inset:0;background:linear-gradient(90deg,#f4efe3 3%,#f4efe3df 53%,transparent 89%); }
  .swatch { right:0; width:105px; }.sage{right:7%;}.blue{right:13%;}.film{right:-12%;}
  .hero p{max-width:20ch;} .stats{gap:6px; margin:11px 0 18px; grid-template-columns:repeat(2,minmax(0,1fr));}
  .stat{padding:6px 10px;}.stat:last-child:nth-child(odd){grid-column:1/-1;}.stat dd{font-size:20px;}
  .tabs{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));}
  .tabs button{min-width:0;padding-inline:6px;font-size:13px;}
  .search{flex-basis:100%;} .category{max-width:100%;}.grid{grid-template-columns:minmax(0,1fr);}
  .origin{margin-left:4px;}.group + .group{margin-top:24px;}
}
@media (prefers-reduced-motion:reduce){ *,*::before,*::after{transition:none !important;scroll-behavior:auto !important;} }

