/* Hallmark · shape: chrome poster then six sticker blocks · genre: playful · theme: custom · job: visit · idea: "a chrome strawberry box pressed into a giant title, everything else is metal stickers" · vibe: "acid chrome stickers, magazine scale contrast"
 * paper: oklch(23% 0.01 250) · accent: oklch(63% 0.24 22) · display: ZCOOL QingKe HuangYou · body: PingFang SC · hero: poster, the chrome box wedged between two title lines, one line behind and one in front · nav: one row of value line, four seat chips and search · footer: giant question with a teasing button · imagery: one generated chrome object · signature: the chrome strawberry box sitting inside the title
 * axes: dark/grotesk-heavy/chromatic-red · posture: poster · contrast: pass · fold: pass · colour: full palette, chrome as field on large type, metal gray as paper, strawberry red as signal · copy: verbatim · surface: chrome only on large elements · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R3 V4 · weakest: R, the brief asks for many labelled sample rows; kept them as solid stickers, folded the rest behind details */
/* Hallmark · dismissed 40 · red faces carry 19px bold dark text, WCAG large text needs 3:1 and these sit at 4.35:1 */
/* Hallmark · waive 12 · overshoot only on release after a 0.97 press, 520ms · the liquid glass brief asks every glass control to spring back when let go */
/* Hallmark · dismissed 23 · the solid red only appears under reduced transparency on the hero button, a pill under 5% of the screen */
@import url("./tokens.css");
@import url("./base.css");

@font-face {
  font-family: "ZCOOL QingKe HuangYou";
  src: url("fonts/zcool-sub.woff2") format("woff2");
  font-display: swap;
  font-weight: 400;
}

:root {
  --container: 1360px;
  --gutter: var(--space-xl);
  --tilt-l: -1.2deg;
  --tilt-r: 1deg;
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-reveal: 800ms;
}

body {
  background: var(--color-paper);
  color: var(--color-ink);
  position: relative;
}
/* 细颗粒噪点 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-toast);
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; transition: none; }

/* ---------- 示例横条 ---------- */
.demo-strip {
  margin: 0;
  max-width: none;
  padding: var(--space-xs) var(--space-md);
  background: var(--c-silver);
  color: var(--color-ink-dark);
  font-size: var(--text-xs);
  font-weight: 600;
  text-align: center;
}

/* ---------- 顶部一行 ---------- */
.top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "mark search" "value value" "seat seat";
  gap: var(--space-sm) var(--space-md);
  align-items: center;
  padding-block: var(--space-md);
  position: relative;
  z-index: var(--z-raised);
}
.wordmark {
  grid-area: mark;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: 1;
  text-decoration: none;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.top-value { grid-area: value; font-size: var(--text-sm); color: var(--color-ink-2); font-weight: 600; }
.seat { grid-area: seat; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs); }
.seat-chip {
  display: flex; align-items: center; justify-content: center;
  min-height: 44px;
  padding: var(--space-2xs) var(--space-sm);
  background: var(--c-gray-3);
  color: var(--color-ink);
  font-size: 1.1875rem;
  font-weight: 800;
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out);
}
.seat-chip:hover { background: var(--c-silver); color: var(--color-ink-dark); }
.seat-chip:active { transform: scale(0.97); }
.seat-chip[aria-current="true"] { background: var(--color-accent); color: var(--color-accent-ink); }

.site-search { grid-area: search; display: flex; min-width: 0; }
.site-search input, .wool-search input {
  flex: 1; min-width: 0;
  min-height: 44px;
  padding: var(--space-xs) var(--space-sm);
  border: 2px solid var(--c-steel);
  border-right: 0;
  background: var(--c-gray-1);
  color: var(--color-ink);
  font-size: var(--text-md);
  border-radius: 0;
}
.site-search input::placeholder, .wool-search input::placeholder { color: var(--c-steel); opacity: 1; }
.site-search input:focus-visible, .wool-search input:focus-visible { outline-offset: -3px; }
.search-go {
  min-width: 48px; min-height: 44px;
  border: 0;
  background: var(--c-silver);
  color: var(--color-ink-dark);
  font-weight: 800;
  cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out);
}
.search-go:hover { background: var(--c-hi); }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  padding-block: var(--space-lg) var(--space-xl);
  display: grid;
  align-content: center;
  isolation: isolate;
}
.stage { position: relative; }
.hero-title {
  position: relative;
  display: grid;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(5.5rem, 27vw, 21rem);
  line-height: 0.86;
  letter-spacing: -0.04em;
  text-align: center;
  overflow-wrap: break-word;
  min-width: 0;
}
.hl {
  position: relative;
  display: block;
  white-space: nowrap;
  color: transparent;
  transform: scaleY(1.14);
}
/* 铬银字面放在 ::after 上，重影放在 ::before 上，保证重影永远在字后面。
 * 两个伪元素都继承内边距，和真实文字逐字对齐（之前没继承，重影向左偏了一截）。 */
.hl::before, .hl::after {
  content: attr(data-ghost);
  position: absolute;
  inset: 0;
  padding: inherit;
  white-space: nowrap;
}
.hl::after {
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* 重影：同一行字的描边分身，向右下错开一点 */
.hl::before {
  color: transparent;
  -webkit-text-stroke: 1px var(--c-mid);
  transform: translate(0.03em, 0.025em);
  z-index: -1;
}
.hl-back { z-index: 1; justify-self: start; padding-inline-start: 2%; }
.hl-front { z-index: 3; justify-self: end; margin-top: 1.55em; padding-inline-end: 2%; }

.hero-obj {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: clamp(260px, 80vw, 560px);
  aspect-ratio: 1;
  translate: -50% -50%;
  animation: float 7s var(--ease-in-out) infinite;
  pointer-events: none;
}
.hero-box {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: sway 14s var(--ease-in-out) infinite;
  filter: drop-shadow(0 24px 30px color-mix(in oklab, var(--c-gray-0) 80%, transparent));
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
@keyframes sway { 0%, 100% { transform: rotate(-7deg) scale(1); } 50% { transform: rotate(6deg) scale(1.03); } }

/* 首屏标题整行滑入一次 */
.js .hl-back { animation: slide-l 1s var(--ease-soft) both; }
.js .hl-front { animation: slide-r 1s var(--ease-soft) 120ms both; }
@keyframes slide-l { from { opacity: 0; transform: translateX(-12%) scaleY(1.14); } to { opacity: 1; transform: translateX(0) scaleY(1.14); } }
@keyframes slide-r { from { opacity: 0; transform: translateX(12%) scaleY(1.14); } to { opacity: 1; transform: translateX(0) scaleY(1.14); } }

.corner { position: absolute; font-size: 0.75rem; font-weight: 600; color: var(--c-steel); z-index: 4; }
.c-tl { top: var(--space-xs); left: var(--gutter); }
.c-tr { top: var(--space-xs); right: var(--gutter); }
.hero-foot {
  position: relative;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm) var(--space-lg);
  margin-top: var(--space-lg);
}
.corner-note { font-size: 0.75rem; color: var(--c-steel); font-weight: 600; max-width: 22ch; }

/* Y2K 小图形：三色填充 */
.y2k { display: inline-block; width: 28px; height: 28px; flex: none; }
.y2k-sparkle { clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); background: var(--chrome); }
.y2k-star { clip-path: polygon(50% 0,59% 30%,85% 15%,70% 41%,100% 50%,70% 59%,85% 85%,59% 70%,50% 100%,41% 70%,15% 85%,30% 59%,0 50%,30% 41%,15% 15%,41% 30%); background: var(--color-accent); }
.y2k-arrow { clip-path: polygon(0 35%, 60% 35%, 60% 8%, 100% 50%, 60% 92%, 60% 65%, 0 65%); background: var(--c-steel); }
.hero .y2k { position: absolute; z-index: 4; }
.s1 { width: 44px; height: 44px; top: 18%; right: 9%; }
.s2 { width: 30px; height: 30px; bottom: 30%; left: 6%; }
.s3 { width: 22px; height: 22px; top: 40%; left: 44%; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: var(--space-xs) var(--space-lg);
  font-size: 1.1875rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: transform var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-key { background: var(--color-accent); color: var(--color-accent-ink); }
.btn-key:hover { background: var(--c-hi); }
/* 次按钮：铬银边框 + 纯色面，字落在纯色上 */
.btn-quiet {
  --face: var(--c-hi);
  position: relative;
  isolation: isolate;
  background: var(--chrome-rim);
  color: var(--color-ink-dark);
}
.btn-quiet::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--face);
  clip-path: inherit;
  z-index: -1;
  transition: background-color var(--dur-short) var(--ease-out);
}
.btn-quiet:hover { --face: var(--c-silver); }

button:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }

/* ---------- 区块通用 ---------- */
.block { padding-block: var(--section-gap-s); }
.block + .block { padding-top: var(--space-2xl); }
.block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-sm) var(--space-xl);
  margin-bottom: var(--space-xl);
}
.block-head h2 {
  font-size: clamp(2.75rem, 9vw, 6.5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.03em;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.block-head { position: relative; }
.block-head > .no { position: absolute; top: calc(-1 * var(--space-lg)); left: 0; }
.no { font-family: var(--font-body); font-size: 0.75rem; font-weight: 800; color: var(--c-steel); line-height: 1.6; }
.block-aside { font-size: var(--text-sm); color: var(--color-ink-2); max-width: 36ch; }

.tag-demo {
  display: inline-block;
  margin-inline-start: var(--space-xs);
  padding: 0 var(--space-xs);
  border: 1px dashed var(--c-steel);
  color: var(--c-silver);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.6;
  vertical-align: 0.1em;
  white-space: nowrap;
}
.sticker-light .tag-demo, .board .tag-demo { color: var(--color-ink-dark); border-color: var(--c-gray-3); }
.tag-rec {
  display: inline-block;
  padding: var(--space-3xs) var(--space-sm);
  background: var(--color-accent);
  color: var(--color-accent-ink);
  font-size: 1.1875rem;
  font-weight: 800;
  line-height: 1.3;
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  padding-inline-end: var(--space-md);
}

/* 贴纸：切角 + 轻微歪斜，纯色底 */
.sticker, .sticker-light {
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}
.sticker { background: var(--c-gray-2); color: var(--color-ink); }
.sticker-light { background: var(--c-hi); color: var(--color-ink-dark); }
.tilt-l { rotate: var(--tilt-l); }
.tilt-r { rotate: var(--tilt-r); }
.sticker-flat { background: var(--c-gray-1); border-left: 0; }

/* ---------- 榜单 ---------- */
.boards {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 88%;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-block: var(--space-sm);
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
  scrollbar-width: thin;
  align-items: start; /* 榜卡高度跟着内容走，不强制等高 */
}
.board {
  scroll-snap-align: center;
  background: var(--c-hi);
  color: var(--color-ink-dark);
  padding: var(--space-lg) var(--space-md) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.board h3 { font-size: var(--text-2xl); font-weight: 400; line-height: 1.05; }
.rule-line { font-size: var(--text-sm); font-weight: 700; color: var(--color-ink-dark-2); }
.rank { list-style: none; margin: 0; padding: 0; display: grid; }
.rank li {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr) auto;
  gap: var(--space-xs);
  align-items: start;
  padding-block: var(--space-sm);
  border-top: 1px solid var(--c-silver);
}
.r { font-family: var(--font-display); font-size: var(--text-2xl); line-height: 1; color: var(--color-ink-dark); }
.who { display: grid; gap: var(--space-3xs); font-size: var(--text-sm); font-weight: 600; color: var(--color-ink-dark-2); min-width: 0; }
.who b { font-size: var(--text-md); font-weight: 800; color: var(--color-ink-dark); }
.who small { font-size: 0.75rem; font-weight: 500; color: var(--color-ink-dark-2); }
/* 每晚整榜重排后的行尾标识：新（草莓红）、↑N（铬银）、↓N（金属灰）、已更新（铬银描边）。名次没变也没更新的行不画。
   标识只留到下一次日检：每晚整个重新生成，自然清掉。 */
.mvs { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-2xs); }
.mv { font-size: var(--text-xs); font-weight: 800; line-height: 1.5; white-space: nowrap; padding: 0 var(--space-xs); border-radius: var(--radius-pill); border: 1px solid transparent; }
.mv.new { background: var(--color-accent); color: var(--color-accent-ink); }
.mv.up { background: linear-gradient(180deg, #fff 0%, var(--c-silver) 55%, var(--c-steel) 100%); border-color: var(--c-steel); color: var(--color-ink-dark); }
.mv.down { background: var(--c-gray-3); color: var(--c-hi); }
.mv.upd { background: transparent; border-color: var(--c-steel); color: var(--color-ink-dark-2); }
.see-all { margin-top: auto; padding-top: var(--space-xs); font-weight: 800; color: var(--color-ink-dark); }
.pay-rec-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2xs) var(--space-xs); margin: 0; }
.pay-rec-head small { color: var(--c-low-on-light); font-size: 0.75rem; font-weight: 500; }
.pay-rec { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pay-rec-row a {
  display: grid;
  /* 栏只有约 260px 宽：名字和价格一行，说明和箭头一行（11-23 验收改） */
  grid-template-columns: 22px minmax(0, 1fr) auto;
  grid-template-areas: "no name price" "no line go";
  align-items: center;
  gap: 2px 8px;
  padding: 8px;
  background: color-mix(in srgb, var(--c-hi) 55%, var(--c-silver));
  border: 1px solid color-mix(in srgb, var(--c-silver) 70%, var(--c-steel));
  border-radius: 10px;
  color: var(--color-ink-dark);
  text-decoration: none;
  min-width: 0;
}
.pr-no.is-plain { background: none; color: var(--c-low-on-light); width: auto; font-size: 0.75rem; }
.pr-no { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 0.75rem; font-weight: 800; line-height: 1; background: linear-gradient(160deg, #fff 0%, var(--c-silver) 45%, var(--c-steel) 100%); color: var(--c-gray-0); }
.pay-rec-row:first-child .pr-no { background: var(--c-red); color: #fff; }
.pr-main { display: grid; gap: 1px; min-width: 0; }
.pr-name { font-size: 0.875rem; font-weight: 800; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.pr-pill { display: inline-block; margin-inline-start: 4px; padding: 0 6px; border-radius: 999px; background: var(--c-gray-3); color: var(--c-hi); font-size: 0.625rem; font-weight: 700; line-height: 1.5; vertical-align: 0.1em; white-space: nowrap; }
.pr-line { font-size: 0.75rem; font-weight: 500; line-height: 1.3; color: var(--c-low-on-light); overflow-wrap: anywhere; }
.pr-price { color: var(--c-red); font-size: 0.875rem; font-weight: 800; white-space: nowrap; }
.pr-price small { font-size: 0.6875rem; font-weight: 600; margin-inline-start: 1px; }
.pr-go { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--c-gray-0); color: var(--c-hi); font-size: 0.75rem; }
.pay-rec-row.is-soldout .pr-price { color: var(--c-low-on-light); }
.pay-rec-row.is-soldout .pr-name { color: var(--c-gray-3); }
.pay-rec-row a:hover .pr-go, .pay-rec-row a:focus-visible .pr-go { background: var(--c-red); }
.pay-rec-row a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.rank-how { font-size: var(--text-xs); color: var(--c-steel); text-decoration: underline; text-underline-offset: 3px; }
.rank-how:hover { color: var(--c-silver); }
.board-note { margin-top: var(--space-xs); font-size: 0.75rem; color: var(--c-steel); max-width: 60ch; }
.board-method { margin-top: var(--space-md); font-size: 0.75rem; color: var(--c-steel); max-width: 60ch; }

/* 折叠 */
.more { margin-top: var(--space-lg); }
.more summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--color-ink);
  padding-block: var(--space-xs);
  list-style: none;
  display: inline-flex;
  gap: var(--space-xs);
  align-items: center;
}
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: "+"; display: inline-grid; place-items: center; width: 28px; height: 28px; background: var(--c-silver); color: var(--color-ink-dark); font-weight: 800; }
.more[open] summary::before { content: "\2212"; }
.more-list { list-style: none; margin: var(--space-sm) 0 0; padding: 0; display: grid; gap: var(--space-xs); }
.more-list li { padding: var(--space-sm) var(--space-md); display: flex; flex-wrap: wrap; gap: var(--space-xs); align-items: baseline; }
.more-list b { color: var(--color-ink); }
.soft-ad { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-ink-2); max-width: 60ch; }

/* ---------- 作品墙 ---------- */
.tabs { display: flex; gap: var(--space-2xs); }
.tabs [role="tab"] {
  min-height: 44px;
  padding: var(--space-xs) var(--space-md);
  border: 0;
  background: var(--c-gray-3);
  color: var(--color-ink);
  font-size: var(--text-md);
  font-weight: 800;
  cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out);
}
.tabs [role="tab"]:hover { background: var(--c-mid); }
.tabs [role="tab"][aria-selected="true"] { background: var(--color-accent); color: var(--color-accent-ink); font-size: 1.1875rem; }
.works { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
.work { display: grid; text-decoration: none; padding: var(--space-sm); gap: var(--space-sm); transition: transform var(--dur-long) var(--ease-out); }
.work:hover { transform: translateY(-4px); }
.shot { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--c-gray-3); gap: var(--space-xs); }
.shot .y2k { width: 48px; height: 48px; }
.shot-note { font-size: 0.75rem; color: var(--c-silver); font-weight: 600; }
.work-cap { display: grid; gap: var(--space-3xs); font-weight: 800; font-size: var(--text-md); }
.work-cap small { font-weight: 500; font-size: var(--text-sm); color: var(--c-silver); }

/* ---------- 低价订阅 ---------- */
.plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
.plan { padding: var(--space-lg); display: grid; gap: var(--space-sm); justify-items: start; }
.plan h3 { font-family: var(--font-body); font-size: var(--text-lg); font-weight: 800; }
.price {
  font-variant-numeric: tabular-nums;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--color-ink-dark);
}
.plan-line { font-weight: 700; color: var(--color-ink-dark-2); }

/* ---------- 攻略 ---------- */
.today { display: flex; align-items: center; gap: var(--space-xs); flex-wrap: wrap; font-size: var(--text-md); color: var(--color-ink-2); max-width: 46ch; }
.today b { color: var(--color-ink); }
.guides { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-md); }
.guide a { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--space-md); padding: var(--space-lg) var(--space-md); text-decoration: none; font-weight: 800; font-size: var(--text-xl); line-height: 1.2; }
.guide small { grid-column: 2; font-size: var(--text-sm); font-weight: 500; color: var(--c-silver); margin-top: var(--space-2xs); }
.g-no { grid-row: span 2; font-family: var(--font-display); font-weight: 400; font-size: 3.5rem; line-height: 0.9; background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
.guide a:hover { background: var(--c-gray-3); }

/* ---------- 羊毛库 ---------- */
.wool-count { font-weight: 800; font-size: var(--text-lg); }
.wool-search { display: flex; max-width: 760px; }
.wool-search input { min-height: 64px; font-size: var(--text-lg); border-width: 3px; }
.wool-search .btn { min-height: 64px; clip-path: none; }
.filters { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-md); }
.filter {
  min-height: 44px;
  font-weight: 800;
  padding: var(--space-2xs) var(--space-md);
  border: 2px solid var(--c-gray-3);
  background: var(--c-gray-1);
  color: var(--color-ink);
  font-size: 1.1875rem;
  cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out);
}
.filter:hover { border-color: var(--c-steel); }
.filter[aria-pressed="true"] { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.wool-hint, .wool-empty { margin-top: var(--space-md); font-weight: 700; }
.wool-list { list-style: none; margin: var(--space-lg) 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
.wool-item { display: grid; gap: var(--space-3xs); padding: var(--space-sm) var(--space-md); }
.wool-item span { font-size: var(--text-sm); color: var(--c-silver); }

/* ---------- 互助 + 找我 ---------- */
.help { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
.help article { padding: var(--space-xl) var(--space-lg); display: grid; gap: var(--space-sm); justify-items: start; }
.help h3 { font-family: var(--font-body); font-size: var(--text-xl); font-weight: 800; }
.help-pool p { color: var(--color-ink-2); }
.contact { display: flex; gap: var(--space-sm); align-items: baseline; font-size: var(--text-lg); }
.contact span { font-size: var(--text-sm); font-weight: 700; color: var(--color-ink-dark-2); min-width: 3.5em; }
.contact b { font-weight: 800; }

/* ---------- 页脚 ---------- */
.foot { margin-top: var(--section-gap-s); padding-block: var(--space-3xl) var(--space-xl); background: var(--c-gray-1); overflow: clip; }
.foot-inner { display: grid; gap: var(--space-xl); justify-items: start; position: relative; }
.foot-giant {
  font-family: var(--font-display);
  font-size: clamp(5rem, 24vw, 17rem);
  line-height: 0.88;
  letter-spacing: -0.04em;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  max-width: none;
}
.tease {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-height: 64px;
  padding: var(--space-sm) var(--space-xl);
  background: var(--color-accent);
  color: var(--color-accent-ink);
  font-size: var(--text-xl);
  font-weight: 800;
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  transition: transform 380ms cubic-bezier(0.34, 1.56, 0.64, 1), background-color var(--dur-short) var(--ease-out);
}
.tease-a { position: relative; display: inline-grid; }
.tease-a::after { content: attr(data-alt); position: absolute; inset: 0; display: grid; place-items: center; white-space: nowrap; opacity: 0; transform: translateY(8px); transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out); }
.tease-a { transition: color var(--dur-short) var(--ease-out); }
.tease .y2k { position: absolute; transform: scale(0.45) rotate(-40deg); transition: opacity var(--dur-short) var(--ease-out), transform 420ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.tease .t1 { top: 6px; right: -6px; background: var(--c-hi); }
.tease .t2 { bottom: 4px; left: 8px; width: 20px; height: 20px; background: var(--c-gray-0); }
.tease:hover, .tease:focus-visible { transform: rotate(-4deg) scale(1.06) translateX(10px); background: var(--c-hi); }
.tease:hover .tease-a, .tease:focus-visible .tease-a { color: transparent; }
.tease:hover .tease-a::after, .tease:focus-visible .tease-a::after { opacity: 1; transform: none; color: var(--color-ink-dark); }
.tease:hover .y2k, .tease:focus-visible .y2k { transform: scale(1.2) rotate(0); }
.tease:active { transform: rotate(2deg) scale(0.94); }
.foot-small { display: grid; gap: var(--space-2xs); font-size: 0.75rem; color: var(--c-steel); }

/* ---------- 进入视口：统一的淡入上浮 ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--dur-reveal) var(--ease-soft), transform var(--dur-reveal) var(--ease-soft); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- 桌面 ---------- */
@media (min-width: 48rem) {
  .works { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guides { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .help { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wool-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .boards { grid-auto-columns: 46%; }
}
@media (min-width: 72rem) {
  .top {
    grid-template-columns: auto minmax(0, 1fr) auto minmax(220px, 300px);
    grid-template-areas: "mark value seat search";
    gap: var(--space-lg);
  }
  .seat { display: flex; }
  .seat-chip { font-size: 1.1875rem; padding-inline: var(--space-md); }
  .boards { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; margin-inline: 0; padding-inline: 0; }
  .hero { min-height: 0; padding-block: var(--space-lg) var(--space-xl); }
  .hero-title { font-size: clamp(10rem, 20vw, 19rem); }
  .hero-obj { width: clamp(360px, 36vw, 540px); }
  .hl-back { padding-inline-start: 4%; }
  .hl-front { padding-inline-end: 4%; margin-top: 0.08em; }
  .hero-foot { margin-top: var(--space-3xl); }
  .foot-inner { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .foot-small { grid-column: 1 / -1; }
}

/* 宽屏：容器封顶居中 */
@media (min-width: 1600px) { :root { --gutter: var(--space-3xl); } }

/* ---------- 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-obj, .hero-box, .js .hl-back, .js .hl-front { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .tease, .tease:hover, .tease:focus-visible, .work:hover { transform: none; }
  .tease:hover .y2k, .tease:focus-visible .y2k { transform: none; }
}

/* 福利榜单：平台名是官方页面链接；不足 5 条时的“更多收录中” */
.rank .who a.src { color: inherit; text-decoration: underline dotted; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.rank .who a.src:hover { text-decoration-style: solid; }
.rank li.more { display: block; font-size: 0.8125rem; font-weight: 500; color: var(--color-ink-dark-2); }
.wool-item a.src { justify-self: start; font-size: 0.75rem; color: var(--c-silver); text-decoration: underline dotted; text-underline-offset: 3px; }
.wool-item a.src:hover { text-decoration-style: solid; }

/* 榜单：前 5 名之后的“展开其余 N 条” */
.rank-more { margin-top: var(--space-xs); border-top: 1px solid var(--c-silver); }
.rank-more > summary { cursor: pointer; padding-block: var(--space-xs); font-weight: 800; color: var(--color-ink-dark); list-style: none; }
.rank-more > summary::-webkit-details-marker { display: none; }
.rank-more > summary::before { content: "＋ "; }
.rank-more[open] > summary::before { content: "－ "; }

/* 今日简报条：放在福利榜标题和四个榜之间，默认折成一行 */
details.brief { margin-top: var(--space-md); margin-bottom: var(--space-md); }

/* ---------- 02 作品墙（数据驱动卡片，由 build-works.mjs 生成）---------- */
.works-next { margin: calc(-1 * var(--space-md)) 0 var(--space-lg); font-size: var(--text-sm); color: var(--c-steel); }
.works-empty { color: var(--color-ink-2); font-size: var(--text-sm); }
.work { display: flex; flex-direction: column; align-content: start; }
.shot { position: relative; overflow: hidden; }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.work-new { position: absolute; top: var(--space-xs); right: var(--space-xs); padding: var(--space-3xs) var(--space-sm); background: var(--color-accent); color: var(--color-accent-ink); font-size: var(--text-xs); font-weight: 800; line-height: 1.5; }
h3.work-cap { font-family: var(--font-body); font-size: var(--text-lg); line-height: 1.3; }
.work-cap a { text-decoration: none; color: inherit; }
.work-cap a:hover { text-decoration: underline; text-underline-offset: 0.18em; }
.work-meta { margin: 0; font-size: var(--text-sm); color: var(--c-silver); }
.work-source { margin: 0; font-size: var(--text-xs); line-height: 1.5; color: var(--c-steel); }
.work-foot { margin-top: auto; padding-top: var(--space-xs); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-xs); }
.work-chip {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2xs);
  min-height: 44px; padding-inline: var(--space-md);
  border: 0; cursor: pointer; text-decoration: none;
  font-size: var(--text-sm); font-weight: 800; color: var(--color-ink); line-height: 1.2;
}
/* 列数跟数量走：1 张大卡 + 侧栏说明；2 张各半；3 张起三列，第 4 张起进“还有 N 个作品” */
.works-aside { display: grid; align-content: center; gap: var(--space-sm); color: var(--color-ink-2); font-size: var(--text-md); }
.works-aside p:last-child { font-size: var(--text-sm); color: var(--c-steel); }
.block-works:has(.works-n1) :is(.block-aside, .works-next) { display: none; }
.works-more > .works { margin-top: var(--space-sm); }
@media (min-width: 48rem) {
  .works-n1 { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: stretch; }
  .works-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .work-chip, .work:hover .shot { transition: none; transform: none; }
}
/* 花钱榜推荐列表：两行网格的格子分配 */
.pay-rec-row .pr-no { grid-area: no; }
.pay-rec-row .pr-main { display: contents; }
.pay-rec-row .pr-name { grid-area: name; -webkit-line-clamp: 2; }
.pay-rec-row .pr-line { grid-area: line; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pay-rec-row .pr-price { grid-area: price; justify-self: end; }
.pay-rec-row .pr-go { grid-area: go; justify-self: end; width: 20px; height: 20px; }
