/* ============================================================
   layout.css — 页面骨架（v1.1 分层版）
   ============================================================ */

/* ---------- 背景装饰层 ---------- */
.bg-deco {
  position: fixed;
  inset: 0;
  z-index: var(--z-deco);
  pointer-events: none;
  overflow: hidden;
}

.bg-deco__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
}

.bg-deco__glow--a {
  width: 46vw;
  height: 46vw;
  left: -14vw;
  top: 8vh;
  background: radial-gradient(circle, rgba(255, 204, 26, 0.55), transparent 66%);
}

.bg-deco__glow--b {
  width: 38vw;
  height: 38vw;
  right: -10vw;
  top: 32vh;
  background: radial-gradient(circle, rgba(245, 155, 24, 0.34), transparent 66%);
}

.bg-deco__glow--c {
  width: 34vw;
  height: 34vw;
  left: 44vw;
  bottom: -8vh;
  background: radial-gradient(circle, rgba(224, 59, 42, 0.12), transparent 68%);
}

.bg-deco__word {
  position: absolute;
  font-family: var(--font-num);
  color: transparent;
  -webkit-text-stroke: 2px rgba(25, 20, 16, 0.09);
  user-select: none;
  white-space: nowrap;
}

.bg-deco__word--a {
  right: -4vw;
  top: 18vh;
  font-size: 20vw;
  transform: rotate(90deg);
  letter-spacing: 0.06em;
}

.bg-deco__word--b {
  left: -6vw;
  bottom: 4vh;
  font-family: var(--font-display);
  font-size: 30vw;
  transform: rotate(-8deg);
  -webkit-text-stroke: 3px rgba(25, 20, 16, 0.06);
}

.bg-deco__float {
  position: absolute;
  opacity: 0.5;
  filter: blur(0.2px) drop-shadow(0 14px 18px rgba(25, 20, 16, 0.12));
  animation: drift-soft 14s ease-in-out infinite;
}

.bg-deco__float--1 {
  width: 96px;
  left: 4vw;
  top: 16vh;
  rotate: -8deg;
}

.bg-deco__float--2 {
  width: 74px;
  right: 6vw;
  top: 54vh;
  rotate: 7deg;
  animation-delay: -4s;
}

.bg-deco__float--3 {
  width: 62px;
  left: 10vw;
  bottom: 10vh;
  rotate: 4deg;
  animation-delay: -7s;
}

.bg-deco__float--4 {
  width: 54px;
  right: 16vw;
  bottom: 22vh;
  opacity: 0.35;
  rotate: -5deg;
  animation-delay: -2s;
}

/* ---------- 顶部公告条 ---------- */
.ticker {
  position: relative;
  z-index: var(--z-ticker);
  display: flex;
  align-items: center;
  height: 36px;
  overflow: hidden;
  background: var(--ink);
  color: var(--yellow);
  border-bottom: var(--bw) solid var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  user-select: none;
}

.ticker__track {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  animation: marquee 46s linear infinite;
}

.ticker:hover .ticker__track {
  animation-play-state: paused;
}

.ticker__track span {
  padding-right: 2.2em;
}

.ticker__track b {
  color: var(--white);
  font-weight: 500;
  padding-right: 2.2em;
}

/* ---------- 页面容器 ---------- */
.page {
  width: min(100% - clamp(28px, 6vw, 72px), var(--page));
  margin-inline: auto;
  padding-bottom: clamp(40px, 6vw, 80px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(18px, 4vw, 52px);
  padding-block: clamp(38px, 5.5vw, 78px) clamp(72px, 8vw, 116px);
}

.hero__watermark {
  position: absolute;
  right: 2%;
  top: 4%;
  z-index: -1;
  font-family: var(--font-display);
  font-size: clamp(180px, 26vw, 360px);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 2px rgba(25, 20, 16, 0.07);
  transform: rotate(-8deg);
  user-select: none;
  pointer-events: none;
}

.hero__copy {
  position: relative;
  z-index: 3;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 7px 15px 7px 11px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: var(--shadow-hard-sm);
}

.hero__eyebrow i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(224, 59, 42, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}

.hero__title {
  margin-bottom: 24px;
  padding-top: 2px;
  font-size: clamp(2.95rem, 8.1vw, 6rem);
  line-height: 1.02;
  letter-spacing: 0.015em;
  text-shadow:
    3px 3px 0 rgba(255, 250, 240, 0.9),
    6px 6px 0 rgba(25, 20, 16, 0.1);
}

.hero__line {
  display: block;
}

.hero__title .is-marked {
  position: relative;
  display: inline-block;
  padding-inline: 0.06em;
}

.hero__title .is-marked::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.04em;
  right: -0.08em;
  bottom: 0.04em;
  height: 0.46em;
  background: var(--yellow);
  transform: skewX(-10deg) rotate(-1.6deg);
  border-radius: 4px;
}

.hero__title sup {
  margin-left: 0.28em;
  font-family: var(--font-num);
  font-size: 0.22em;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--red-ink);
  vertical-align: super;
}

.hero__lede {
  max-width: 30em;
  font-size: var(--fs-md);
  line-height: 1.78;
  color: var(--ink-2);
}

.hero__lede b {
  background: linear-gradient(transparent 62%, var(--yellow-soft) 62%);
  font-weight: 700;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 2px dashed rgba(25, 20, 16, 0.28);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-3);
}

.hero__meta span::before {
  content: "●";
  margin-right: 6px;
  color: var(--yellow);
  font-size: 9px;
  vertical-align: 1px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.hero__scroll span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-size: 13px;
  animation: bob 2.6s ease-in-out infinite;
}

/* ---------- Hero 舞台 ---------- */
.hero__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(340px, 38vw, 520px);
}

.stage {
  position: relative;
  display: grid;
  place-items: end center;
  width: min(100%, 500px);
  aspect-ratio: 1 / 1;
  isolation: isolate;
}

/* 舞台后面的两张“档案纸” */
.stage__sheet {
  position: absolute;
  inset: 13% 13% 10% 13%;
  border: var(--bw) solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: var(--shadow-float);
  opacity: 0.9;
}

.stage__sheet--a {
  transform: rotate(-4deg) translate(-12px, 10px);
  background: repeating-linear-gradient(45deg, rgba(25, 20, 16, 0.035) 0 8px, transparent 8px 16px), var(--paper-2);
}

.stage__sheet--b {
  transform: rotate(3deg) translate(14px, 6px);
  background: var(--paper);
}

.stage__disc {
  position: absolute;
  inset: 8% 8% auto 8%;
  aspect-ratio: 1 / 1;
  border: var(--bw) solid var(--ink);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 34%, #fffefa 0%, #fff6dc 56%, #ffe9a6 100%);
  box-shadow:
    0 0 0 16px var(--yellow),
    0 24px 50px -22px rgba(25, 20, 16, 0.55);
  overflow: hidden;
}

.stage__disc::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.26;
  background-image: radial-gradient(circle at 1px 1px, rgba(25, 20, 16, 0.5) 1.1px, transparent 1.2px);
  background-size: 9px 9px;
  mix-blend-mode: multiply;
}

.stage__ring {
  position: absolute;
  inset: 1%;
  border: 2px dashed rgba(25, 20, 16, 0.42);
  border-radius: 50%;
  animation: spin-slow 52s linear infinite;
}

.stage__ring::before,
.stage__ring::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--red);
}

.stage__ring::before {
  top: 5%;
  left: 50%;
}

.stage__ring::after {
  bottom: 5%;
  left: 50%;
  background: var(--paper);
}

.stage__shadow {
  position: absolute;
  bottom: 4%;
  left: 50%;
  width: 48%;
  height: 26px;
  translate: -50% 0;
  border-radius: 50%;
  background: rgba(25, 20, 16, 0.2);
  filter: blur(8px);
}

.stage__mascot {
  position: relative;
  z-index: 3;
  height: clamp(215px, 23.5vw, 318px);
  width: auto;
  margin-bottom: 4.6%;
  cursor: pointer;
  filter: drop-shadow(0 14px 0 rgba(25, 20, 16, 0.13));
  animation: bob 3.6s ease-in-out infinite;
  transform-origin: 50% 92%;
  transition: filter var(--dur) var(--ease-out);
}

.stage__mascot:hover {
  filter: drop-shadow(0 20px 0 rgba(25, 20, 16, 0.15));
}

/* 舞台贴纸 */
.stage__badge {
  position: absolute;
  z-index: 5;
}

.stage__badge--three {
  top: 0;
  left: -3%;
  rotate: -7deg;
}

.stage__badge--confidential {
  top: 5%;
  right: -4%;
  rotate: 11deg;
}

.stage__badge--confidential .sticker {
  background: var(--paper);
  color: var(--red);
  border-color: var(--red);
  box-shadow: 3px 3px 0 rgba(163, 43, 32, 0.25);
  font-family: var(--font-doc);
  letter-spacing: 0.1em;
}

.stage__badge--three .sticker {
  background: var(--ink);
  color: var(--yellow);
}

.stage__note {
  position: absolute;
  left: -13%;
  bottom: 17%;
  z-index: 6;
  width: 196px;
  padding: 10px 14px 12px;
  border: 2px solid var(--ink);
  border-radius: 16px 16px 16px 5px;
  background: var(--paper);
  box-shadow: var(--shadow-hard-sm);
  font-family: var(--font-doc);
  font-size: 13px;
  line-height: 1.5;
  rotate: -2.4deg;
}

.stage__note img {
  width: 60px;
  height: auto;
  margin: 0 auto 6px;
  filter: drop-shadow(0 4px 0 rgba(25, 20, 16, 0.12));
}

.stage__note p {
  font-size: 13.5px;
  line-height: 1.55;
}

.stage__note span {
  display: block;
  margin-top: 6px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

/* 浮动小贴纸（视差层） */
.stage__sticker {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  opacity: 0.92;
  filter: drop-shadow(0 10px 12px rgba(25, 20, 16, 0.18));
}

.stage__sticker img {
  width: 100%;
  height: auto;
}

.stage__sticker--1 {
  width: 74px;
  top: 11%;
  right: 1%;
  rotate: 9deg;
}

.stage__sticker--2 {
  width: 58px;
  left: 4%;
  top: 24%;
  rotate: -12deg;
  opacity: 0.82;
}

.stage__sticker--3 {
  width: 52px;
  left: 8%;
  bottom: 3%;
  rotate: -6deg;
  opacity: 0.72;
}

/* ---------- 本机档案统计（叠在 hero 下方） ---------- */
.stats {
  position: relative;
  z-index: 4;
  margin-top: clamp(-64px, -5vw, -34px);
  margin-bottom: clamp(46px, 7vw, 88px);
}

.stats__card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: clamp(18px, 2.6vw, 26px) clamp(20px, 3vw, 34px);
  border: var(--bw) solid var(--ink);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(90deg, rgba(25, 20, 16, 0.03) 0 1px, transparent 1px 26px),
    var(--paper);
  box-shadow: var(--shadow-hard), var(--shadow-float);
  rotate: -0.4deg;
}

.stats__kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.stats__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 14px;
  border-left: 2px dashed rgba(25, 20, 16, 0.24);
}

.stat:first-child {
  border-left: 0;
  padding-left: 0;
}

.stat dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}

.stat dd {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-family: var(--font-num);
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat dd small {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  color: var(--ink-3);
  letter-spacing: 0.1em;
}

.stats__note {
  font-family: var(--font-doc);
  font-size: 12px;
  color: var(--ink-3);
}

/* ---------- 通用 section ---------- */
.section {
  position: relative;
  margin-bottom: clamp(52px, 8vw, 104px);
  scroll-margin-top: 26px;
}

.section-no {
  position: absolute;
  top: -46px;
  left: -6px;
  z-index: 0;
  font-family: var(--font-num);
  font-size: clamp(74px, 11vw, 150px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(25, 20, 16, 0.12);
  letter-spacing: -0.02em;
  user-select: none;
  pointer-events: none;
}

.section-head {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section-head__kicker {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.section-head__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  font-size: var(--fs-h2);
  line-height: 1.1;
}

.section-head__title small {
  font-family: var(--font-doc);
  font-size: 0.42em;
  font-weight: 400;
  color: var(--ink-3);
  letter-spacing: 0;
}

.section-head__aside {
  max-width: 210px;
  font-family: var(--font-doc);
  font-size: 11.5px;
  line-height: 1.8;
  color: var(--ink-3);
  text-align: right;
}

/* ---------- 纸张堆叠 ---------- */
.paper-stack {
  position: relative;
  z-index: 1;
}

.paper-stack__sheet {
  position: absolute;
  inset: 0;
  border: var(--bw) solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-2);
  pointer-events: none;
}

.paper-stack__sheet--a {
  transform: rotate(-1.2deg) translate(-8px, 10px);
  background: repeating-linear-gradient(45deg, rgba(25, 20, 16, 0.04) 0 7px, transparent 7px 14px), var(--paper-3);
}

.paper-stack__sheet--b {
  transform: rotate(0.9deg) translate(8px, 5px);
  background: var(--paper-2);
}

.paper-stack > .card,
.paper-stack > .court__form {
  position: relative;
  z-index: 2;
}

/* ---------- 审判席 ---------- */
.court {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, 0.86fr);
  gap: var(--gap);
  padding-top: 34px;
}

.court__stack {
  position: relative;
}

.court__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.court__peek {
  position: absolute;
  z-index: 0;
  top: -66px;
  right: 26px;
  width: 104px;
  rotate: 7deg;
  filter: drop-shadow(0 8px 10px rgba(25, 20, 16, 0.18));
  opacity: 0.95;
}

/* ---------- 报告 ---------- */
.report-section {
  padding-top: 30px;
  scroll-margin-top: 24px;
}

.report__body {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(20px, 3vw, 40px);
  position: relative;
}

/* ---------- 图鉴 ---------- */
.gallery {
  padding-top: 30px;
}

.gallery__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 22px);
}

/* ---------- 表情墙 ---------- */
.memes {
  position: relative;
  z-index: 1;
  margin-top: clamp(30px, 5vw, 54px);
}

.memes__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px dashed rgba(25, 20, 16, 0.28);
}

.memes__title {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
}

.memes__note {
  font-family: var(--font-doc);
  font-size: 11.5px;
  color: var(--ink-3);
}

.memes__rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 18px);
  align-items: end;
}

/* ---------- 榜单 ---------- */
.board {
  padding-top: 30px;
}

.board__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

/* ---------- 页脚 ---------- */
.foot {
  position: relative;
  margin-top: clamp(30px, 5vw, 60px);
  padding: clamp(34px, 5vw, 60px) 0 clamp(30px, 4vw, 46px);
  background: var(--ink);
  color: var(--paper-2);
  overflow: hidden;
  z-index: var(--z-content);
}

.foot__word {
  position: absolute;
  right: -2%;
  top: -18%;
  font-family: var(--font-num);
  font-size: clamp(120px, 20vw, 260px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 250, 240, 0.12);
  pointer-events: none;
  user-select: none;
}

.foot__mascot {
  position: absolute;
  right: clamp(20px, 6vw, 90px);
  bottom: 12%;
  width: clamp(64px, 7vw, 96px);
  height: auto;
  opacity: 0.95;
  animation: bob 3.2s ease-in-out infinite;
  filter: drop-shadow(0 10px 0 rgba(0, 0, 0, 0.25));
}

.foot__inner {
  position: relative;
  z-index: 1;
  width: min(100% - clamp(28px, 6vw, 72px), var(--page));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr);
  gap: clamp(18px, 4vw, 48px);
  align-items: start;
}

.foot__brand {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--yellow);
  line-height: 1.1;
}

.foot__brand span {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: rgba(255, 250, 240, 0.55);
  text-transform: uppercase;
}

.foot__fine {
  font-size: 12.5px;
  line-height: 1.85;
  color: rgba(255, 250, 240, 0.64);
}

.foot__fine + .foot__fine {
  margin-top: 12px;
}

.foot__fine a {
  color: var(--yellow-soft);
}

.foot__fine code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--yellow-soft);
}
