/* ============================================================
   无用技能大赛 · 洞洞板版面语法
   ------------------------------------------------------------
   层声明：Canvas 2D = 洞洞板世界（孔位板 / 挂杆 / 刷在板面上的标题 / 报名池挂牌）
           DOM = 挂在板上的纸片（正文、表格、导航）
   运动契约：静默契约。没有指针移动、没有滚动速度，页面完全静止。
   版面：body 无全局 max-width；每个元素自己规定量。
        展示字号 / 正文字号 ≈ 12×，暖棕黄，纸片有旋转与挂钩。
   ============================================================ */

/* ---------- 字体 ---------- */
@font-face {
  font-family: "Wall Mono";
  src: url("mono.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Wall Mono";
  src: url("mono-bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Token ---------- */
:root {
  --paper:    #e8e5e1;
  --paper-hi: #f2efe9;
  --paper-lo: #dcd5cb;
  --slip:     #efece7;

  --ink:      #17180f;
  --ink-2:    #3d3a2f;
  --muted:    #6f675b;
  --faint:    #968b7a;

  --amber:    #9b7247;
  --amber-hi: #b98d54;
  --amber-lo: #cbb397;
  --gold:     #946b3c;
  --rust:     #8a4326;
  --brown:    #504b41;

  --board-a:   #c9aa7f;
  --board-b:   #a98a60;
  --board-ink: #4a3620;

  /* 孔位：洞洞板的格距与一枚沉孔 */
  --peg: 26px;
  --peg-dot: radial-gradient(circle at 50% 50%,
      rgba(74, 54, 32, .46) 0 2.2px,
      rgba(255, 246, 228, .3) 2.9px 3.6px,
      transparent 4px);

  --line:      rgba(80, 75, 65, .22);
  --line-soft: rgba(80, 75, 65, .13);

  --mono: "Wall Mono", Consolas, "Courier New", monospace;
  --sans: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif;

  /* 展示字号：与正文 16px 的比值 ≈ 12× */
  --d-hero: clamp(74px, 13.2vw, 224px);
  --d-1:    clamp(44px, 6.6vw, 104px);
  --d-2:    clamp(30px, 3.9vw, 58px);
  --d-3:    clamp(21px, 2.1vw, 30px);
  --body:   16px;
  --meta:   12px;

  --top-h: 72px;
  --gut:   clamp(20px, 5vw, 88px);
  --ease:  cubic-bezier(.22, .61, .36, 1);
  --rh:    1.24em;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--body);
  line-height: 1.68;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 没有全局列宽：只有正文元素自己限量 */
img, canvas { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

::selection { background: var(--amber-lo); color: var(--ink); }

/* ---------- 排印 ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 900; line-height: 1.06; letter-spacing: -.035em; }
h2 { font-size: var(--d-1); }
h3 { font-size: var(--d-3); line-height: 1.22; letter-spacing: -.02em; font-weight: 800; }
p  { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--mono); font-size: var(--meta); font-weight: 700;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 18px;
}
.amber { color: var(--amber); }
.rust  { color: var(--rust); }
.muted { color: var(--muted); }
.lead  { font-size: clamp(17px, 1.35vw, 21px); color: var(--ink-2); }
.lede  { font-size: clamp(16px, 1.25vw, 19.5px); line-height: 1.72; color: var(--ink-2); max-width: 34em; }
.mono  { font-family: var(--mono); }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- 栅栏画布：整个页面的世界 ---------- */
#wall {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  display: block;
  pointer-events: none;
}
.wall-hud {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6;
  display: flex; flex-wrap: wrap; gap: 8px clamp(18px, 3vw, 40px);
  padding: 11px var(--gut);
  background: rgba(232, 229, 225, .82);
  backdrop-filter: blur(7px);
  border-top: 1px solid var(--amber-lo);
  font-family: var(--mono); font-size: 11px; letter-spacing: .17em;
  text-transform: uppercase; color: var(--faint);
}
.wall-hud b { color: var(--gold); font-variant-numeric: tabular-nums; font-weight: 700; }
.wall-hud .sig { margin-left: auto; letter-spacing: .12em; text-transform: none; }
@media (max-width: 820px) { .wall-hud .sig { margin-left: 0; flex-basis: 100%; text-align: center; } }

/* ---------- 顶栏 ---------- */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 8;
  height: var(--top-h);
  display: flex; align-items: center;
  padding: 0 var(--gut);
  gap: clamp(16px, 3vw, 44px);
  background: rgba(232, 229, 225, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }
.seal {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  background: var(--rust); color: var(--paper-hi);
  font-weight: 900; font-size: 17px;
  transform: rotate(-4deg);
  box-shadow: 2px 3px 0 rgba(74, 54, 32, .22);
}
.brand b { display: block; font-size: 15.5px; font-weight: 900; letter-spacing: -.01em; line-height: 1.15; }
.brand small {
  display: block; font-family: var(--mono); font-size: 9.5px;
  letter-spacing: .2em; color: var(--faint); text-transform: uppercase;
}
.menu { display: flex; gap: clamp(10px, 1.8vw, 28px); margin-left: auto; }
.menu a {
  position: relative; display: flex; align-items: baseline; gap: 6px;
  padding: 6px 0; text-decoration: none;
  font-size: 14px; font-weight: 700; color: var(--ink-2);
}
.menu a i { font-family: var(--mono); font-style: normal; font-size: 10px; color: var(--faint); }
.menu a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--amber); transition: right .34s var(--ease);
}
.menu a:hover::after, .menu a.on::after { right: 0; }
.menu a.on { color: var(--ink); }
.burger { display: none; }
@media (max-width: 900px) {
  .menu { display: none; }
  .burger {
    display: grid; gap: 5px; margin-left: auto;
    width: 40px; height: 40px; padding: 9px;
    background: none; border: 1px solid var(--line); cursor: pointer;
  }
  .burger span { display: block; height: 2px; background: var(--ink-2); transition: transform .3s var(--ease), opacity .2s; }
  .burger.on span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.on span:nth-child(2) { opacity: 0; }
  .burger.on span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
.mobile {
  position: fixed; top: var(--top-h); left: 0; right: 0; z-index: 7;
  display: grid; gap: 1px;
  background: var(--paper-lo);
  border-bottom: 1px solid var(--amber-lo);
  transform: translateY(-115%); transition: transform .42s var(--ease);
}
.mobile.on { transform: translateY(0); }
.mobile a {
  padding: 15px var(--gut); text-decoration: none;
  background: var(--paper-hi);
  font-size: 15px; font-weight: 700;
}
.mobile a.on { color: var(--rust); }
@media (min-width: 901px) { .mobile { display: none; } }

.crumb {
  position: relative; z-index: 2;
  padding: calc(var(--top-h) + 22px) var(--gut) 0;
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted);
}
.crumb > * { display: inline; }
.crumb a, .crumb b {
  background: var(--slip); border: 1px solid rgba(150, 139, 122, .34);
  padding: 7px 12px;
}
.crumb b { color: var(--rust); font-weight: 700; }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--gold); }
.crumb span { margin: 0 9px; color: var(--amber-lo); }

/* ============================================================
   纸片：挂在洞洞板上的公告 —— 站点的正文单元
   ============================================================ */
.slip {
  position: relative;
  padding: 26px 28px 28px;
  background: var(--slip);
  border: 1px solid rgba(150, 139, 122, .4);
  box-shadow: 4px 6px 0 rgba(74, 54, 32, .12), 10px 16px 22px rgba(74, 54, 32, .09);
}
/* 挂钩：一根细钢丝 + 一枚金属环，纸挂在环上 */
.slip.hang::before {
  content: ""; position: absolute; top: -13px; left: 50%;
  width: 15px; height: 15px; margin-left: -7.5px; border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow: 1px 2px 2px rgba(74, 54, 32, .34), inset 1px 1px 0 rgba(255, 246, 228, .55);
}
.slip.hang::after {
  content: ""; position: absolute; top: -26px; left: 50%;
  width: 2px; height: 16px; margin-left: -1px;
  background: linear-gradient(180deg, rgba(107, 79, 45, .95), rgba(107, 79, 45, .45));
}
.slip.hang { border-top-color: rgba(74, 54, 32, .42); }
.slip.r1 { transform: rotate(-.85deg); }
.slip.r2 { transform: rotate(.7deg); }
.slip.r3 { transform: rotate(-.35deg); }
.slip.inline { display: inline-block; }
.slip .idx {
  display: block; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .26em; text-transform: uppercase; color: var(--faint);
  margin-bottom: 12px;
}

/* 板条：横过洞洞板的一条窄板，压印字 */
.tray {
  position: relative;
  padding: 30px clamp(24px, 3.4vw, 46px);
  background:
    var(--peg-dot),
    linear-gradient(180deg, var(--board-a), var(--board-b));
  background-size: var(--peg) var(--peg), auto;
  background-position: 13px 15px, 0 0;
  color: var(--board-ink);
  border-top: 1px solid rgba(74, 54, 32, .26);
  border-bottom: 1px solid rgba(74, 54, 32, .34);
  box-shadow: 0 6px 0 rgba(74, 54, 32, .18), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.tray h3, .tray .big { color: var(--board-ink); }
.tray .eyebrow { color: rgba(74, 54, 32, .72); }

/* 表格/信息条：纸质登记表 */
.ledger { display: grid; gap: 0; border-top: 1px solid var(--line-soft); }
.ledger .row {
  display: grid; grid-template-columns: minmax(96px, 8.5em) 1fr;
  gap: 16px; padding: 12px 2px;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}
.ledger .k {
  font-family: var(--mono); font-size: 11px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--faint);
}
.ledger .v { font-size: 15.5px; color: var(--ink-2); }
.ledger .v a { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--amber-lo); }
.ledger .v a:hover { color: var(--rust); }

/* ---------- 按钮 ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; text-decoration: none; cursor: pointer;
  background: transparent; border: 1px solid var(--ink);
  font-size: 14.5px; font-weight: 700; letter-spacing: .01em; color: var(--ink);
  transition: transform .26s var(--ease), background .26s, color .26s, box-shadow .26s;
}
.btn svg { width: 17px; height: 17px; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.btn.solid { background: var(--ink); color: var(--paper-hi); border-color: var(--ink); }
.btn.solid:hover { box-shadow: 4px 4px 0 var(--amber); }
.btn.ghost { border-color: var(--line); color: var(--ink-2); }
.btn.ghost:hover { border-color: var(--amber); color: var(--rust); box-shadow: 4px 4px 0 var(--amber-lo); }
.btn.small { padding: 9px 15px; font-size: 13px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

.link { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--amber-lo); }
.link:hover { color: var(--rust); border-color: var(--rust); }

/* ---------- 提示条 ---------- */
.note {
  padding: 16px 20px; background: var(--paper-hi);
  border: 1px solid rgba(150, 139, 122, .34);
  border-left: 3px solid var(--amber);
  box-shadow: 4px 5px 0 rgba(74, 54, 32, .1);
  font-size: 14.5px; color: var(--ink-2);
}
.note.warn { border-left-color: var(--rust); background: #f1e7df; }
.note b { color: var(--rust); }

/* ============================================================
   首页：沿着板面走（单场景 · 横向机位）
   垂直滚动 → 相机沿板面横移，板面比内容慢半拍
   ============================================================ */
.walk { position: relative; z-index: 2; }
.walk-rail { position: relative; height: 460vh; }
.walk-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.walk-track {
  display: flex; align-items: stretch;
  height: 100vh; width: max-content;
  will-change: transform;
}
.bay {
  position: relative;
  height: 100vh; padding: calc(var(--top-h) + 4vh) var(--gut) 12vh;
  display: grid; align-content: center;
  flex: none;
}
.st-hero { width: min(1180px, 92vw); }
.st-wide { width: min(900px, 86vw); }
.st-narrow { width: min(520px, 82vw); }
.st-mid { width: min(1020px, 92vw); }

/* 站点内部版面各不相同 —— 这是"至少三种 section 形状"的那一条 */
.st-hero { align-content: end; padding-bottom: 16vh; }
.st-hero .stack { display: grid; gap: 26px; justify-items: start; }
.title-space {
  margin: 0; display: grid; align-content: center;
  height: calc(var(--d-hero) * 2.1);
}
.doc-hero .title-space { height: calc(var(--d-1) * 2.2); }
.doc-hero .title-space .pt { font-size: var(--d-1); }
.title-space .pt {
  display: block; font-weight: 900; color: transparent;
  font-size: var(--d-hero); line-height: 1.02; letter-spacing: -.03em;
}
.title-space .pt-meta { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.st-hero .lede { max-width: 30em; }

.st-two {
  width: min(1200px, 92vw);
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(28px, 4vw, 72px);
  align-items: center;
}
.st-two .aside { align-self: end; }

/* 散落的纸片堆：三张并排、钉在不同高度 */
.st-scatter { width: min(1240px, 94vw); }
.scatter {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px; align-items: start;
}
.scatter .slip { width: auto; justify-self: stretch; }
.scatter .slip:nth-child(2) { margin-top: 58px; }
.scatter .slip:nth-child(3) { margin-top: 20px; }

/* 站点 05：四张真的纸 */
.notices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
a.slip {
  display: block; color: inherit; text-decoration: none;
  transition: translate .3s var(--ease), box-shadow .3s var(--ease);
}
a.slip:hover { translate: 0 -4px; box-shadow: 6px 10px 0 rgba(74, 54, 32, .2); }
a.slip b { display: block; font-size: 17.5px; font-weight: 800; margin-bottom: 7px; }
a.slip p { margin: 0; font-size: 14.5px; line-height: 1.62; color: var(--muted); }

/* 数据：压在板面上的大字 */
.st-figures { width: min(980px, 92vw); }
.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.figures .fig {
  padding: 22px 24px; background: rgba(239, 236, 231, .95);
  border: 1px solid var(--line-soft);
}
.figures .fig b {
  display: block; font-size: clamp(52px, 6.4vw, 96px); font-weight: 900;
  line-height: .92; letter-spacing: -.045em; color: var(--rust);
  font-variant-numeric: tabular-nums;
}
.figures .fig span {
  display: block; margin-top: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted);
}

/* 走道尽头的入口 */
.st-end { width: min(760px, 90vw); }
.bay > .slip:first-child { justify-self: start; margin-bottom: 22px; }

.walk-cue {
  position: absolute; left: var(--gut); bottom: 5.5vh;
  display: flex; align-items: center; gap: 12px;
  padding: 8px 14px;
  background: rgba(239, 236, 231, .93);
  border: 1px solid rgba(150, 139, 122, .4);
  box-shadow: 3px 4px 0 rgba(74, 54, 32, .13);
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted);
}
.walk-cue i { display: block; width: 62px; height: 1px; background: var(--amber); }

/* 相邻两格之间的空板 */
.gap-mark {
  flex: none; width: clamp(80px, 12vw, 220px); height: 100vh;
  display: grid; place-items: center;
}
.gap-mark span {
  font-family: var(--mono); font-size: 10px; letter-spacing: .3em;
  color: var(--faint); writing-mode: vertical-rl; text-transform: uppercase;
}

/* ---------- 走道之后的竖排正文（首页的长尾） ---------- */
.afterglow { position: relative; z-index: 2; padding: 0 var(--gut); }
.band {
  position: relative; margin: 0 auto;
  padding: clamp(56px, 9vh, 120px) 0;
}
.band > * { max-width: 62ch; }
.band.right { margin-left: auto; text-align: left; }
.band.right > * { margin-left: auto; }
.band.wide > * { max-width: none; }
.band .measure { max-width: 62ch; }

/* ============================================================
   内页：编辑式版面 + 少量定妆帧
   ============================================================ */
.doc {
  position: relative; z-index: 2;
  padding: 0 var(--gut) clamp(80px, 14vh, 180px);
}
.doc-hero {
  padding: calc(var(--top-h) + clamp(48px, 12vh, 140px)) 0 clamp(40px, 8vh, 90px);
  display: grid; gap: 26px; justify-items: start;
}
.doc-hero h1 { font-size: var(--d-1); }
.doc-hero .lede { max-width: 38em; }

/* 章节：不居中、不等距、形状各异 */
.sec { position: relative; padding: clamp(52px, 9vh, 118px) 0; }
.sec > .head { margin-bottom: clamp(26px, 4vh, 46px); }
.sec h2 { max-width: 15ch; }
.sec .head p { margin-top: 16px; max-width: 56ch; color: var(--muted); }
.sec.right > .head { margin-left: auto; text-align: right; }
.sec.right > .head p { margin-left: auto; }
.sec.inset { padding-left: clamp(0px, 8vw, 140px); }
.sec.over { margin-left: clamp(-40px, -3vw, -12px); }

/* 标题纸带：板面上横挂的一条纸，标题与引语必须落在纸上 */
.doc .head {
  width: fit-content; max-width: min(58ch, 100%);
  padding: clamp(18px, 2.2vw, 28px) clamp(20px, 2.6vw, 34px);
  background: var(--slip);
  border: 1px solid rgba(150, 139, 122, .4);
  box-shadow: 5px 7px 0 rgba(74, 54, 32, .13);
}
.doc .head .eyebrow { display: block; margin-bottom: 10px; }
.doc .head .say { margin-top: 14px; }
@media (max-width: 820px) { .doc .head { width: 100%; max-width: 100%; } }

/* 网格：不等分 */
.cols { display: grid; gap: clamp(16px, 2vw, 28px); }
.cols.a2 { grid-template-columns: 1.35fr .65fr; }
.cols.b2 { grid-template-columns: .58fr 1.42fr; }
.cols.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .cols.a2, .cols.b2, .cols.c2, .cols.c3 { grid-template-columns: 1fr; }
  .sec.inset { padding-left: 0; }
  .sec.over { margin-left: 0; }
}

/* 条目：一张纸上的一叠登记表，编号在左、内容在右、虚线分行 */
.items {
  display: grid; gap: 0; width: min(100%, 64em);
  padding: 4px clamp(18px, 2.2vw, 28px);
  background: var(--slip);
  border: 1px solid rgba(150, 139, 122, .4);
  box-shadow: 5px 7px 0 rgba(74, 54, 32, .13);
  border-top: 1px dashed var(--line);
}
.item {
  display: grid; grid-template-columns: 4.6em 1fr; gap: clamp(12px, 2vw, 28px);
  padding: 20px 0; border-bottom: 1px dashed var(--line);
  text-decoration: none; transition: background .28s, padding-left .28s var(--ease);
}
a.item:hover { background: rgba(203, 179, 151, .18); padding-left: 12px; }
.item .n {
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  letter-spacing: .1em; color: var(--gold); padding-top: 4px;
}
.item > span > b { display: block; font-size: 17px; font-weight: 800; margin-bottom: 5px; }
.item p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.62; }

/* 跑马灯：一条挂在板面上的板条 */
.marquee {
  position: relative; z-index: 2; overflow: hidden;
  padding: 13px 0;
  background:
    var(--peg-dot),
    linear-gradient(180deg, var(--board-a), var(--board-b));
  background-size: var(--peg) var(--peg), auto;
  background-position: 13px -19px, 0 0;
  box-shadow: 0 4px 0 rgba(74, 54, 32, .16), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.marquee .track {
  display: flex; gap: 0; width: max-content;
  animation: mq 42s linear infinite;
}
.marquee .item {
  display: inline; grid-template-columns: none; padding: 0; border: 0;
  font-family: var(--mono); font-size: 12.5px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--board-ink);
  white-space: nowrap;
}
.marquee .item::after { content: "◆"; margin: 0 26px; opacity: .45; }
@keyframes mq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee .track { animation: none; } }

/* ---------- 表格 ---------- */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th, .tbl td {
  padding: 13px 15px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}
.tbl thead th {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted); font-weight: 700;
  border-bottom: 1px solid var(--amber); white-space: nowrap;
}
.tbl td b { display: block; font-size: 15.5px; }
.tbl td span { display: block; font-size: 12.5px; color: var(--muted); }
.tbl td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl.fields { min-width: 620px; }
.scroll-hint {
  display: none; margin: 0; padding: 0 0 8px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--gold);
}

/* ---------- 名单 / 抽签 / 阶段：canvas 单元 ---------- */
.panel {
  position: relative; z-index: 2;
  background: var(--slip); border: 1px solid rgba(150, 139, 122, .4);
  box-shadow: 5px 7px 0 rgba(74, 54, 32, .13);
  padding: clamp(18px, 2.4vw, 30px);
}
.panel-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 18px; }
.panel-top .t b { display: block; font-size: 15px; font-weight: 800; }
.panel-top .t span { display: block; font-size: 12.5px; color: var(--muted); }
.panel-top .btn { margin-left: auto; }
.panel-foot {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.panel-foot b { color: var(--gold); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  padding: 7px 13px; cursor: pointer;
  background: transparent; border: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .06em;
  color: var(--ink-2); transition: all .24s var(--ease);
}
.chip:hover { border-color: var(--amber); color: var(--rust); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--paper-hi); }
canvas.data { width: 100%; height: 240px; display: block; }
@media (max-width: 700px) { canvas.data { height: 190px; } }

/* 名单：整卡可点 */
.lists { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 16px; }
.cls {
  display: block; padding: 18px 20px; text-decoration: none;
  background: var(--slip); border: 1px solid rgba(150, 139, 122, .34);
  box-shadow: 4px 5px 0 rgba(74, 54, 32, .1);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.cls:hover { transform: translate(-2px, -3px) rotate(-.4deg); box-shadow: 7px 9px 0 rgba(74, 54, 32, .16); }
.cls .id { font-size: 26px; font-weight: 900; letter-spacing: -.02em; }
.cls .id small { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--faint); font-weight: 400; margin-left: 8px; }
.cls .pool { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 5px; }
.cls .pool i {
  font-style: normal; padding: 3px 8px; font-size: 12px;
  background: rgba(150, 139, 122, .16); color: var(--muted); border: 1px solid transparent;
}
.cls .pool i.hit { background: rgba(155, 114, 71, .2); color: var(--board-ink); border-color: var(--amber); font-weight: 700; }
.cls .tag { margin-top: 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; color: var(--gold); text-transform: uppercase; }

/* 领奖台 */
.podium { display: grid; grid-template-columns: 1fr 1.18fr 1fr; gap: 14px; align-items: end; }
.podium .main { padding-top: 40px; padding-bottom: 40px; }
.podium .big { font-size: clamp(22px, 2.5vw, 34px); font-weight: 900; letter-spacing: -.02em; line-height: 1.2; }
@media (max-width: 760px) { .podium { grid-template-columns: 1fr; align-items: stretch; } }

/* 下载条目 */
.dl {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px;
  background: var(--slip); border: 1px solid rgba(150, 139, 122, .36);
}
.dl .file {
  flex: none; width: 52px; height: 58px; display: grid; place-items: center;
  background: var(--paper-lo); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--muted);
}
.dl .meta b { display: block; font-size: 15px; }
.dl .meta p { margin: 3px 0 0; font-size: 13px; color: var(--muted); }

/* ============================================================
   赛项方案：幕次（acts）—— 编号竖排在左侧沟槽，与 .sec 不同形
   ============================================================ */
.acts { position: relative; z-index: 2; }
.act {
  display: grid; grid-template-columns: 3.6em minmax(0, 1fr);
  gap: clamp(18px, 2.6vw, 40px);
  padding: clamp(46px, 8vh, 104px) 0;
  border-top: 1px solid var(--line);
}
.doc > .marquee + .acts .act:first-child { border-top: 0; }
.act > .no {
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  letter-spacing: .2em; color: var(--gold);
  writing-mode: vertical-rl; white-space: nowrap;
  background: var(--slip); border: 1px solid rgba(150, 139, 122, .4);
  border-left: 3px solid var(--amber);
  box-shadow: 4px 5px 0 rgba(74, 54, 32, .1);
  padding: 14px 9px;
}
.act > .no i { font-style: normal; font-size: 22px; color: var(--rust); }
.act > .body { display: grid; gap: clamp(16px, 2.2vw, 26px); justify-items: start; }
.act h2 { max-width: 18ch; }
.act .say { max-width: 56ch; color: var(--muted); margin: 0; }
.tray .link, .tray a.link { color: var(--board-ink); border-color: rgba(74, 54, 32, .45); }
.tray .link:hover { color: #2f2011; }
.cols.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .cols.c4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) {
  .act { grid-template-columns: 1fr; gap: 14px; }
  .act > .no { writing-mode: horizontal-tb; border-right: 0; padding-right: 0; }
}
@media (max-width: 560px) { .cols.c4 { grid-template-columns: 1fr; } }

/* 阶段：一格 20 秒，三摞方格，点击选阶段并起倒计时 */
.phase-wrap { display: grid; gap: 0; }
canvas.phase { width: 100%; height: 210px; display: block; }
.phase-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.ph {
  padding: 20px 22px; cursor: pointer;
  background: var(--slip); border: 1px solid rgba(150, 139, 122, .4);
  border-top: 3px solid var(--amber-lo);
  transition: border-color .28s, box-shadow .28s var(--ease);
}
.ph:hover { border-top-color: var(--rust); box-shadow: 5px 7px 0 rgba(74, 54, 32, .14); }
.ph .no { font-family: var(--mono); font-size: 10.5px; letter-spacing: .22em; color: var(--faint); }
.ph h3 { margin: 8px 0 8px; font-size: 20px; }
.ph p { margin: 0; font-size: 14px; line-height: 1.62; color: var(--muted); }
.ph .sc { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 14px; font-size: 13px; color: var(--ink-2); }
.ph .sc b { color: var(--rust); font-family: var(--mono); }
.ph .dur { margin-top: 12px; font-family: var(--mono); font-size: 34px; font-weight: 900; color: var(--gold); line-height: 1; }
.ph .dur .u { font-size: 12px; letter-spacing: .16em; color: var(--faint); margin-left: 6px; }
.phase-hint {
  display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 18px; padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.phase-hint b { color: var(--rust); }
@media (max-width: 820px) { .phase-grid { grid-template-columns: 1fr; } canvas.phase { height: 150px; } }

/* 16 秒引信 */
.fuse-box {
  display: flex; flex-wrap: wrap; align-items: center; gap: clamp(18px, 3vw, 44px);
}
canvas.fuse {
  width: 260px; height: 150px; display: block;
  background: var(--paper-hi); border: 1px solid rgba(74, 54, 32, .3);
  box-shadow: 4px 5px 0 rgba(74, 54, 32, .18);
}
@media (max-width: 560px) { canvas.fuse { width: 100%; height: 120px; } }

/* ---------- 页脚 ---------- */
.footer {
  position: relative; z-index: 2;
  padding: clamp(48px, 8vh, 96px) var(--gut) calc(var(--top-h) + 40px);
  background: var(--ink); color: var(--paper-lo);
}
.footer .mega {
  font-size: clamp(48px, 11vw, 172px); font-weight: 900; line-height: .86;
  letter-spacing: -.045em; color: rgba(232, 229, 225, .1);
  margin-bottom: 34px; word-break: break-word;
}
.footer .cols {
  display: flex; flex-wrap: wrap; gap: 10px 34px; align-items: center;
  padding-top: 18px; border-top: 1px solid rgba(232, 229, 225, .16);
  font-size: 13.5px; color: rgba(232, 229, 225, .72);
}
.footer .cols + .cols { border-top: 0; padding-top: 10px; }
.footer a { color: var(--amber-lo); text-decoration: none; }
.footer a:hover { color: var(--paper-hi); text-decoration: underline; }
.footer .cols > :last-child { margin-left: auto; font-family: var(--mono); font-size: 11px; letter-spacing: .2em; }

/* ---------- 404 ---------- */
.lost {
  position: relative; z-index: 2; min-height: 100vh;
  display: grid; align-content: center; gap: 44px; justify-items: start;
  padding: calc(var(--top-h) + 40px) var(--gut) 120px;
}
.lost .title-space { height: calc(var(--d-1) * 2.2); }
.lost .title-space .pt { font-size: var(--d-1); }

/* ============================================================
   移动端：板面降级为单列；纸片全宽、去旋转
   ============================================================ */
@media (max-width: 820px) {
  :root { --d-1: clamp(38px, 10.5vw, 62px); --d-2: clamp(24px, 7vw, 34px); }
  .walk-rail { height: auto; }
  .walk-pin { position: static; height: auto; overflow: visible; }
  .walk-track { flex-direction: column; width: auto; height: auto; transform: none !important; }
  .bay { width: auto !important; height: auto; min-height: 92vh; padding-top: calc(var(--top-h) + 40px); padding-bottom: 80px; }
  .st-hero { padding-bottom: 96px; }
  .st-hero .title-space { height: calc(var(--d-1) * 2.2); }
  .title-space .pt { color: var(--ink); font-size: calc(var(--d-1) * .95); }
  .doc-hero .title-space .pt { color: var(--ink); font-size: calc(var(--d-1) * .95); }
  .gap-mark { width: auto; height: 76px; }
  .gap-mark span { writing-mode: horizontal-tb; }
  .st-two { grid-template-columns: 1fr; }
  .figures { grid-template-columns: 1fr; }
  .scatter { grid-template-columns: 1fr; gap: 18px; }
  .notices { grid-template-columns: 1fr; gap: 18px; }
  .scatter .slip, .scatter .slip:nth-child(1),
  .scatter .slip:nth-child(2), .scatter .slip:nth-child(3) {
    width: 100%; justify-self: stretch; margin-top: 0;
  }
  .slip.r1, .slip.r2, .slip.r3 { transform: none; }
  .walk-cue { display: none; }
  .wall-hud { font-size: 10px; letter-spacing: .12em; padding: 9px var(--gut) 9px; }
  /* 计分表：堆叠成卡片，每行打印列名 */
  .tbl-wrap .tbl.score { min-width: 0; }
  .tbl.score { table-layout: auto; }
  .tbl.score thead { display: none; }
  .tbl.score, .tbl.score tbody, .tbl.score tr, .tbl.score td { display: block; width: auto; }
  .tbl.score tr {
    margin-bottom: 16px; border: 1px solid var(--line-soft);
    background: rgba(203, 179, 151, .08);
  }
  .tbl.score td { padding: 11px 13px; border-bottom: 1px dashed var(--line-soft); }
  .tbl.score td::before {
    content: attr(data-label); display: block; margin-bottom: 5px;
    font-family: var(--mono); font-size: 10px; letter-spacing: .16em;
    text-transform: uppercase; color: var(--gold);
  }
  .tbl.score td:first-child { background: rgba(203, 179, 151, .2); }
  .tbl.score td:first-child::before { display: none; }
  .tbl.score td.num::before { display: inline-block; margin: 0 12px 0 0; }
  .tbl.score th:nth-child(1), .tbl.score td:nth-child(1),
  .tbl.score th:nth-child(2), .tbl.score td:nth-child(2),
  .tbl.score th:nth-child(3), .tbl.score td:nth-child(3),
  .tbl.score th:nth-child(4), .tbl.score td:nth-child(4),
  .tbl.score th:nth-child(5), .tbl.score td:nth-child(5) { width: auto; }
  .scroll-hint { display: block; }
}

/* ---------- 入场揭示：由 JS 打 mark，reduced-motion 下全部可见 ---------- */
.rv { opacity: 0; transform: translateY(22px); }
.rv.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
.no-js .rv, .rv.force { opacity: 1; transform: none; }

/* ---------- 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; }
  .btn:hover, .cls:hover { transform: none; }
  .slip.r1, .slip.r2, .slip.r3 { transform: none; }
  .item, a.item:hover { transition: none; }
}

/* ---------- 打印 ---------- */
@media print {
  #wall, .wall-hud, .top, .mobile, .marquee, .walk-cue { display: none; }
  body { background: #fff; }
  .walk-rail { height: auto; }
  .walk-pin { position: static; height: auto; overflow: visible; }
  .walk-track { flex-direction: column; width: auto; height: auto; transform: none !important; }
  .bay { width: auto; height: auto; }
  .slip, .panel { box-shadow: none; }
}
