/* ==================================================================
   圆环之理动漫社 · 前台样式（漫画分格 × 偶像舞台 / MANGA IDOL STAGE）
   ------------------------------------------------------------------
   设计原则：
   1) 版面优先：首屏是「舞台 + 画框 + 跑马灯」的分格，不是居中大标题。
      卡片允许旋转、斜切、贴胶带，禁止回到等宽居中宫格。
   2) 描边 + 硬投影是骨架：3px 墨边 + 4~6px 实色投影，不要换成大圆角柔光。
   3) 大面积用色仍由 --pink-* / --purple-* 派生（后台可一键换肤）；
      固定应援色 --hot / --sun / --mint / --sky / --grape 只做点缀。
   4) 新增组件必须同步三件事：深色模式、mono 预设去色、prefers-reduced-motion。
   ================================================================== */

/* ================= 设计令牌 ================= */
:root {
  /* 品牌色阶（后台换肤会覆盖这些变量，勿改名） */
  --pink-50: #fff5f7;
  --pink-100: #ffe8ee;
  --pink-200: #ffd1dd;
  --pink-300: #ffb3c6;
  --pink-400: #f48fb1;
  --pink-500: #ec6f9b;
  --purple-100: #f3eaff;
  --purple-200: #e0cffc;
  --purple-300: #c9a9f7;
  --purple-500: #9575cd;
  --purple-600: #7e57c2;
  --accent-grad-a: #c9a9f7;
  --accent-grad-b: #ffb3c6;

  /* 应援色（固定，不随换肤变化） */
  --hot: #ff4fa3;
  --sun: #ffd93d;
  --mint: #2ee6c5;
  --sky: #6fb7ff;
  --grape: #7b5cff;

  /* 纸感与墨色 */
  --paper: #fff8f0;
  --paper-2: #ffefe4;
  --card: #ffffff;
  --ink: #1b1032;
  --ink-line: #1b1032;
  --shadow-ink: #1b1032;
  /* 亮黄底上的固定深色文字（深色模式下 --ink 会反转，不能拿来放在黄底上） */
  --on-sun: #1b1032;
  /* 点缀底色：跑马灯 / 贴纸 / 激活标签跟随主题换色（--on-sun 作其上文字） */
  --accent-pop: var(--pink-200);
  --ink-soft: rgba(27, 16, 50, 0.08);
  --text: #1b1032;
  --text-light: #4a3a62;
  --text-mute: #6a5b80;

  /* 派生强调色 */
  --accent: var(--purple-500);
  --accent-strong: var(--purple-600);
  --accent-soft: var(--purple-200);
  --grad-brand: linear-gradient(135deg, var(--purple-500), var(--pink-300));
  --grad-brand-deep: linear-gradient(135deg, var(--purple-600) 0%, var(--pink-400) 58%, var(--cta-a, var(--hot)) 100%);
  --grad-cta: linear-gradient(135deg, var(--cta-a, var(--hot)) 0%, var(--cta-b, var(--grape)) 100%);

  /* 描边 / 投影 / 圆角 */
  --stroke: 3px;
  --shadow-hard: 6px 6px 0 var(--shadow-ink);
  --shadow-card: 4px 4px 0 var(--shadow-ink);
  --shadow-soft: 0 18px 40px rgba(27, 16, 50, 0.14);
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-full: 999px;
  --cut: 18px;

  /* 尺寸 */
  --header-h: 68px;
  --container: 1200px;

  /* 字体 */
  --font-display: "ZCOOL KuaiLe", "Baloo 2", "PingFang SC", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-num: "Baloo 2", "ZCOOL KuaiLe", "PingFang SC", sans-serif;

  /* 排版 */
  --fs-display: clamp(3.4rem, 8.6vw, 6.8rem);
  --fs-h1: clamp(2rem, 4vw, 2.9rem);
  --fs-h2: clamp(1.55rem, 2.8vw, 2.2rem);
  --fs-h3: 1.2rem;
  --fs-lg: 1.08rem;
  --fs-base: 1rem;
  --fs-sm: 0.92rem;
  --fs-meta: 0.82rem;
  --lh-tight: 1.06;
  --lh-snug: 1.45;
  --lh: 1.85;

  /* 间距 */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;

  --dur: 0.28s;
  --dur-fast: 0.16s;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ================= 基础 ================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh);
  color: var(--text);
  background-color: var(--paper);
  /* 纸感：极细的横纹 + 稀疏网点，避免纯色平铺 */
  background-image:
    repeating-linear-gradient(0deg, rgba(27, 16, 50, 0.022) 0 1px, transparent 1px 7px),
    radial-gradient(circle at 18% 12%, rgba(255, 79, 163, 0.06), transparent 42%),
    radial-gradient(circle at 86% 4%, rgba(123, 92, 255, 0.07), transparent 40%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; font-weight: 800; color: var(--text); line-height: var(--lh-snug); }
p { margin: 0 0 var(--sp-3); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: var(--sun); color: var(--on-sun); }
:focus-visible {
  outline: 3px solid var(--ink-line);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-6); }
.container-narrow { max-width: 880px; }
.muted { color: var(--text-light); font-size: var(--fs-sm); }
/* 正文内的强调链接 */
.link-inline { color: var(--accent-strong); font-weight: 800; border-bottom: 2px solid var(--sun); }
.req { color: var(--hot); }

.site-main { position: relative; z-index: 1; }

/* ================= 工具类 ================= */
/* 半调网点：漫画印刷质感 */
.halftone {
  background-image: radial-gradient(rgba(27, 16, 50, 0.16) 1.2px, transparent 1.3px);
  background-size: 10px 10px;
}
/* 速度线：用于色带与舞台边缘 */
.speedlines {
  background-image: repeating-linear-gradient(115deg,
    rgba(27, 16, 50, 0.14) 0 2px, transparent 2px 12px);
}
/* 胶带：贴在卡片角上 */
.tape {
  position: absolute;
  width: 92px;
  height: 26px;
  background: linear-gradient(180deg, rgba(255, 217, 61, 0.86), rgba(255, 217, 61, 0.72));
  border-left: 2px dashed rgba(27, 16, 50, 0.18);
  border-right: 2px dashed rgba(27, 16, 50, 0.18);
  transform: rotate(-8deg);
  z-index: 4;
  pointer-events: none;
}
/* 斜切 */
.cut { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), 0 100%); }
.cut-b { clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%); }
/* 贴纸 */
.sticker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px;
  font-family: var(--font-display);
  font-size: var(--fs-meta);
  font-weight: 700;
  color: var(--on-sun);
  background: var(--accent-pop);
  border: var(--stroke) solid var(--ink-line);
  border-radius: var(--radius-sm);
  box-shadow: 3px 3px 0 var(--shadow-ink);
  transform: rotate(-2.5deg);
}
/* 倾斜卡片 */
.tilt-a { transform: rotate(-1.4deg); }
.tilt-b { transform: rotate(1.2deg); }
/* 滚动入场：用独立的 translate 属性，避免覆盖卡片自身的 rotate */
.reveal {
  opacity: 0;
  translate: 0 28px;
  transition: opacity 0.6s var(--ease), translate 0.6s var(--ease-bounce);
}
.reveal.in { opacity: 1; translate: 0 0; }

/* ================= 顶部导航 ================= */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0;
  z-index: 90;
  background: linear-gradient(90deg, var(--hot), var(--sun), var(--mint), var(--sky), var(--grape));
  box-shadow: 0 2px 0 rgba(27, 16, 50, 0.18);
  transition: width 0.1s linear;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: var(--stroke) solid var(--ink-line);
}
.site-header::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--hot), var(--sun), var(--mint), var(--sky), var(--grape));
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  height: var(--header-h);
}

.logo { display: flex; align-items: center; gap: var(--sp-3); flex: none; }

/* 社团图标：墨边 + 硬投影 + 倾斜，内嵌星环 SVG */
.logo-mark {
  --mark-size: 42px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--mark-size);
  height: var(--mark-size);
  flex: none;
  color: #fff;
  background: var(--grad-cta);
  border: var(--stroke) solid var(--ink-line);
  border-radius: var(--radius-sm);
  box-shadow: 4px 4px 0 var(--shadow-ink);
  transform: rotate(-4deg);
  transition: transform var(--dur) var(--ease-bounce);
}
.logo:hover .logo-mark,
.footer-logo:hover .logo-mark { transform: rotate(4deg) scale(1.05); }
.logo-mark svg {
  width: 74%;
  height: 74%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.logo-mark .mark-fill { fill: currentColor; stroke: none; }
.logo-mark.is-lg { --mark-size: 50px; }

.logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  color: var(--text);
  white-space: nowrap;
}
.logo-img { height: 42px; width: auto; object-fit: contain; }

.main-nav { display: flex; gap: 2px; margin-left: auto; }
.main-nav a {
  position: relative;
  padding: 9px 11px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-light);
  clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
  transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.main-nav a:hover { color: var(--text); background: var(--ink-soft); }
.main-nav a.active {
  color: var(--on-sun);
  background: var(--accent-pop);
  box-shadow: inset 0 -3px 0 var(--ink-line);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  padding: 0;
  color: var(--ink);
  background: var(--card);
  border: var(--stroke) solid var(--ink-line);
  border-radius: var(--radius-sm);
  box-shadow: 3px 3px 0 var(--shadow-ink);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-bounce), box-shadow var(--dur-fast) var(--ease);
}
.theme-toggle:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--shadow-ink); }
.theme-toggle:active { transform: translate(3px, 3px); box-shadow: none; }
.theme-toggle svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 9px 8px;
  background: var(--card);
  border: var(--stroke) solid var(--ink-line);
  border-radius: var(--radius-sm);
  box-shadow: 3px 3px 0 var(--shadow-ink);
  cursor: pointer;
}
.hamburger span { width: 20px; height: 3px; border-radius: 2px; background: var(--ink); }

/* ================= 移动 Dock ================= */
.dock { display: none; }

/* ================= 首页舞台 ================= */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(var(--header-h) + var(--sp-8));
  /* 跑马灯旋转 -1.2° 后两端会超出布局框约 1.1vw，需预留底部空间，
     否则下倾端会被 overflow 裁切、贴住下一分区（暗色主题下尤其明显） */
  padding-bottom: max(20px, 1.5vw);
  background: var(--paper);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(27, 16, 50, 0.13) 1.1px, transparent 1.2px);
  background-size: 12px 12px;
  mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 68%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 68%);
  opacity: 0.7;
}
.hero-overlay { position: absolute; inset: 0; z-index: 0; }

.hero-deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.deco-blob { position: absolute; border-radius: 50%; filter: blur(40px); opacity: 0.5; }
.deco-blob.b1 { width: 360px; height: 360px; left: -8%; top: -12%; background: var(--pink-200); }
.deco-blob.b2 { width: 300px; height: 300px; right: -6%; top: 6%; background: var(--purple-200); }
.deco-blob.b3 { width: 280px; height: 280px; left: 38%; bottom: -18%; background: var(--mint); opacity: 0.22; }
.deco-star {
  position: absolute;
  font-size: 20px;
  line-height: 1;
  color: var(--hot);
  animation: twinkle 3.4s ease-in-out infinite;
}
.deco-star.s1 { left: 5%; top: 22%; font-size: 28px; color: var(--sun); animation-delay: 0s; }
.deco-star.s2 { left: 16%; top: 68%; font-size: 16px; color: var(--grape); animation-delay: 0.6s; }
.deco-star.s3 { right: 8%; top: 18%; font-size: 32px; color: var(--mint); animation-delay: 1.2s; }
.deco-star.s4 { right: 24%; top: 82%; font-size: 18px; color: var(--hot); animation-delay: 1.8s; }
.deco-star.s5 { left: 2%; top: 52%; font-size: 14px; color: var(--sky); animation-delay: 2.3s; }
.deco-star.s6 { right: 2%; top: 46%; font-size: 15px; color: var(--sun); animation-delay: 0.4s; }
@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(0.85) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.15) rotate(16deg); }
}

/* 左右分格：左侧文案，右侧画框 */
.stage-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding-bottom: var(--sp-16);
}
.stage-copy { position: relative; text-align: left; min-width: 0; }

.stage-side-label {
  position: absolute;
  left: -48px;
  top: 4px;
  writing-mode: vertical-rl;
  font-family: var(--font-num);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  color: var(--text-mute);
  text-transform: uppercase;
}
.stage-side-label::after {
  content: "";
  display: block;
  width: 2px;
  height: 76px;
  margin: 10px auto 0;
  background: var(--ink-line);
  opacity: 0.25;
}

.hero-badge,
.stage-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: var(--sp-5);
  font-family: var(--font-num);
  font-size: var(--fs-meta);
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--ink);
  background: var(--card);
  border: var(--stroke) solid var(--ink-line);
  border-radius: var(--radius-sm);
  box-shadow: 3px 3px 0 var(--shadow-ink);
  transform: rotate(-1.2deg);
}
/* 校徽小章：圆章内用主题墨色描摹校徽，深色/换肤时自动变色 */
.badge-seal {
  position: relative;
  width: 26px;
  height: 26px;
  flex: none;
  background: var(--card);
  border: 1.5px solid var(--ink-line);
  border-radius: 50%;
  color: var(--ink);
}
.badge-seal::before {
  content: "";
  position: absolute;
  inset: 2px;
  background-color: currentColor;
  -webkit-mask: url("/images/brand/baoji-emblem.png") center / contain no-repeat;
  mask: url("/images/brand/baoji-emblem.png") center / contain no-repeat;
}

.hero-title,
.stage-title {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 900;
  line-height: var(--lh-tight);
  letter-spacing: 0.01em;
  margin: 0 0 var(--sp-4) -0.04em;
  /* 内部填充跟随主题：渐变取自当前预设的 --purple-600 / --pink-400 / --cta-a */
  background: var(--grad-brand-deep);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* 白色描边垫在填充下层（paint-order: stroke fill）：
     渐变不再被描边内侧吃掉一截，字形整体加粗，保留贴纸感 */
  -webkit-text-stroke: 0.03em rgba(255, 255, 255, 0.95);
  paint-order: stroke fill;
  filter: drop-shadow(4px 4px 0 rgba(27, 16, 50, 0.55));
}
@keyframes titleDrop {
  0% { opacity: 0; transform: translateY(-18px) rotate(-1.5deg) scale(0.94); }
  100% { opacity: 1; transform: translateY(0) rotate(0) scale(1); }
}
/* 标题逐字入场：用 inline-block span 包裹每个字，按顺序错峰播放 */
.title-char {
  display: inline-block;
  /* 拆字后父级 background-clip:text 裁不到子元素文本，渐变需下放到每个字上。
     background-image 继承父级（含深色 / cyber 覆盖），再用 --tc-i / --tc-n
     按字宽平移，使整行渐变保持连续而非每字重复。 */
  background-image: inherit;
  background-size: calc(var(--tc-n, 1) * 1em) 100%;
  background-position: calc(var(--tc-i, 0) * -1em) center;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: charDrop 0.5s var(--ease-bounce) both;
}
@keyframes charDrop {
  0%   { opacity: 0; transform: translateY(-14px) rotate(-6deg) scale(0.7); }
  60%  { opacity: 1; transform: translateY(2px) rotate(2deg) scale(1.05); }
  100% { opacity: 1; transform: translateY(0) rotate(0) scale(1); }
}
.hero-title-solid {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-stroke: 0;
  filter: drop-shadow(3px 3px 0 rgba(27, 16, 50, 0.18));
}
/* 后台自定义标题色时走纯色，子 span 不能再用渐变裁剪，否则整行隐形 */
.hero-title-solid .title-char {
  background-image: none;
  color: inherit;
}

.stage-sub {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  color: var(--accent-strong);
  margin-bottom: var(--sp-3);
  animation: rise 0.6s 0.08s var(--ease) both;
}
.hero-subtitle { font-family: var(--font-display); font-size: 1.2rem; color: var(--accent-strong); }
.stage-desc,
.hero-desc {
  max-width: 44ch;
  color: var(--text-light);
  font-size: var(--fs-base);
  margin-bottom: var(--sp-6);
  animation: rise 0.6s 0.14s var(--ease) both;
}
.hero-actions,
.stage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  animation: rise 0.6s 0.2s var(--ease) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 画框：白边照片 + 墨边 + 胶带 + 贴纸 */
.stage-frame {
  position: relative;
  z-index: 2;
  aspect-ratio: 4 / 4.2;
  max-height: 480px;
  padding: 10px;
  background: var(--card);
  border: var(--stroke) solid var(--ink-line);
  box-shadow: var(--shadow-hard);
  transform: rotate(1.2deg);
}
.stage-frame::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 2px solid var(--ink-line);
  pointer-events: none;
  z-index: 3;
}
.stage-frame .hero-carousel,
.stage-frame .stage-photo {
  position: absolute;
  inset: 10px;
  overflow: hidden;
  background: var(--paper-2);
}
/* 半调叠层：让二次元图有印刷感 */
.stage-frame .hero-carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: radial-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1.2px);
  background-size: 5px 5px;
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.stage-photo {
  background-size: cover;
  background-position: center;
}
.stage-photo.is-gradient {
  background:
    radial-gradient(circle at 28% 24%, var(--pink-200), transparent 52%),
    radial-gradient(circle at 76% 72%, var(--purple-200), transparent 52%),
    linear-gradient(180deg, var(--pink-50), var(--purple-100));
}
.stage-photo .stage-figure-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--accent-strong);
  text-align: center;
  padding: var(--sp-6);
}
.stage-figure-inner .fig-star { font-size: 64px; line-height: 1; color: var(--accent-strong); }
.stage-figure-inner .fig-line {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
}
.stage-figure-inner .fig-sub { font-size: var(--fs-meta); color: var(--text-light); letter-spacing: 0.18em; }

.stage-tape { top: -14px; left: 22px; transform: rotate(-7deg); }
.stage-sticker {
  position: absolute;
  right: -12px;
  bottom: 14px;
  z-index: 5;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  font-family: var(--font-num);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--on-sun);
  background: var(--accent-pop);
  border: var(--stroke) solid var(--ink-line);
  box-shadow: 4px 4px 0 var(--shadow-ink);
  transform: rotate(9deg);
}

/* 轮播（沿用原有 DOM 结构，JS 依赖这些类名） */
.hero-carousel { z-index: 1; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.85s var(--ease), transform 6s ease-out;
}
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero-slide-link { position: absolute; inset: 0; z-index: 1; }
.hero-slide-caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 3;
  max-width: 78%;
  padding: 6px 12px;
  background: var(--card);
  border: 2px solid var(--ink-line);
  box-shadow: 3px 3px 0 var(--shadow-ink);
  transform: rotate(-1.2deg);
}
.slide-caption-title { font-family: var(--font-display); font-size: var(--fs-sm); color: var(--ink); line-height: 1.3; }
.slide-caption-sub { font-size: var(--fs-meta); color: var(--text-light); }

.hero-nav-zone { position: absolute; top: 0; bottom: 0; width: 26%; z-index: 4; cursor: pointer; }
.hero-nav-zone-prev { left: 0; }
.hero-nav-zone-next { right: 0; }
.hero-nav-btn {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
  color: var(--ink);
  background: var(--card);
  border: var(--stroke) solid var(--ink-line);
  border-radius: var(--radius-sm);
  box-shadow: 3px 3px 0 var(--shadow-ink);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity var(--dur-fast) var(--ease);
}
.hero-nav-prev { left: 12px; }
.hero-nav-next { right: 12px; }
.hero-carousel.nav-visible .hero-nav-btn,
.hero-carousel:hover .hero-nav-btn { opacity: 1; pointer-events: auto; }
.hero-carousel.nav-visible .hero-nav-zone { pointer-events: auto; }

/* 轮播模式下文案为白字 + 墨边，保证在任何动漫图上都可读 */
.hero-carousel-mode .hero-title:not(.hero-title-solid) {
  background: linear-gradient(160deg, #ffffff 6%, #ffe3f1 48%, #e6d6ff 92%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 0.05em rgba(27, 16, 50, 0.72);
  filter: drop-shadow(3px 3px 0 rgba(27, 16, 50, 0.4));
}
.hero-carousel-mode .stage-sub,
.hero-carousel-mode .hero-subtitle { color: #fff; text-shadow: 0 2px 10px rgba(27, 16, 50, 0.65); }
.hero-carousel-mode .stage-desc,
.hero-carousel-mode .hero-desc { color: rgba(255, 255, 255, 0.94); text-shadow: 0 2px 10px rgba(27, 16, 50, 0.6); }

/* ================= 跑马灯 ================= */
.marquee {
  position: relative;
  z-index: 3;
  overflow: hidden;
  width: 104%;
  margin-left: -2%;
  padding: 10px 0;
  background: var(--accent-pop);
  border-top: var(--stroke) solid var(--ink-line);
  border-bottom: var(--stroke) solid var(--ink-line);
  transform: rotate(-1.2deg);
  transform-origin: center;
}
.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 0 18px;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--on-sun);
  white-space: nowrap;
}
.marquee-sep { color: var(--accent-strong); font-size: 0.9rem; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ================= 统计条 ================= */
.stat-strip {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-3);
  margin-top: var(--sp-10);
  margin-bottom: var(--sp-2);
}
.stat-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: var(--sp-5) var(--sp-6);
  background: var(--card);
  border: var(--stroke) solid var(--ink-line);
  box-shadow: var(--shadow-card);
}
.stat-item:nth-child(1) { transform: rotate(-0.7deg); }
.stat-item:nth-child(2) { transform: rotate(0.5deg); }
.stat-item:nth-child(3) { transform: rotate(-0.4deg); }
.stat-num {
  font-family: var(--font-num);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1;
  color: var(--accent-strong);
}
.stat-label { font-size: var(--fs-sm); color: var(--text-light); font-weight: 700; letter-spacing: 0.1em; }

/* ================= 区块 ================= */
.section { position: relative; padding: var(--sp-12) 0; }
.section-alt {
  background-color: var(--paper-2);
  background-image: radial-gradient(rgba(27, 16, 50, 0.1) 1.1px, transparent 1.2px);
  background-size: 14px 14px;
  border-top: var(--stroke) solid var(--ink-line);
  border-bottom: var(--stroke) solid var(--ink-line);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: var(--sp-8);
}
.section-title {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  padding: 0 0 6px 26px;
  letter-spacing: 0.02em;
}
.section-title::before {
  content: "★";
  position: absolute;
  left: 0;
  top: 0.12em;
  font-size: 0.62em;
  color: var(--hot);
  transform: rotate(-12deg);
}
.section-title::after {
  content: "";
  position: absolute;
  left: 24px;
  right: -6px;
  bottom: 0;
  height: 8px;
  background: var(--accent-pop);
  transform: skewX(-18deg);
  z-index: -1;
}
.section-more {
  position: relative;
  font-family: var(--font-num);
  font-size: var(--fs-sm);
  font-weight: 800;
  color: var(--accent-strong);
  padding-bottom: 2px;
  border-bottom: 3px solid var(--accent);
}
.section-more:hover { color: var(--hot); border-color: var(--hot); }

/* ================= 公告：节目单 ================= */
.schedule-list { border-top: var(--stroke) solid var(--ink-line); }
.schedule-item {
  display: grid;
  grid-template-columns: 52px 108px minmax(0, 1fr) 32px;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-2);
  border-bottom: 2px solid var(--ink-line);
  transition: background-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.schedule-item:hover { background: var(--card); transform: translateX(6px); }
.schedule-no {
  font-family: var(--font-num);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-mute);
}
.schedule-date {
  font-family: var(--font-num);
  font-size: var(--fs-meta);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--accent-strong);
}
.schedule-main { min-width: 0; }
.schedule-title {
  display: block;
  font-weight: 800;
  font-size: var(--fs-lg);
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.schedule-summary {
  display: block;
  font-size: var(--fs-meta);
  color: var(--text-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.schedule-arrow { font-size: 1.2rem; color: var(--accent-strong); text-align: right; }
.schedule-pin { color: var(--accent-strong); }

/* 旧版公告列表（公告页仍在用） */
.announce-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.announce-item {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  background: var(--card);
  border: var(--stroke) solid var(--ink-line);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur) var(--ease-bounce), box-shadow var(--dur) var(--ease);
}
.announce-item:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--shadow-ink); }
.announce-main { flex: 1; min-width: 0; }
.announce-title { font-weight: 800; font-size: var(--fs-lg); }
.announce-summary { font-size: var(--fs-sm); color: var(--text-light); }
.announce-date {
  font-family: var(--font-num);
  font-size: var(--fs-meta);
  color: var(--text-mute);
  white-space: nowrap;
}
.announce-head { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.announce-meta { font-size: var(--fs-meta); color: var(--text-mute); }
/* 公告列表页：报纸双栏排版（编号 + 标题 + 日期 + 摘要） */
.announce-list-page {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--sp-8);
  row-gap: 0;
  border-top: var(--stroke) solid var(--ink-line);
}
.announce-list-page .announce-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  grid-template-areas:
    "no title date"
    "no summary summary";
  align-items: baseline;
  gap: 4px var(--sp-3);
  padding: var(--sp-5) 0;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--ink-line);
  box-shadow: none;
}
.announce-list-page .announce-item:hover { transform: none; box-shadow: none; background: var(--card); }
.announce-list-page .announce-no {
  grid-area: no;
  font-family: var(--font-num);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-mute);
}
.announce-list-page .announce-title { grid-area: title; font-family: var(--font-display); font-size: var(--fs-lg); }
.announce-list-page .announce-pin { color: var(--accent-strong); }
.announce-list-page .announce-date {
  grid-area: date;
  font-family: var(--font-num);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--text-mute);
  white-space: nowrap;
}
.announce-list-page .announce-summary { grid-area: summary; font-size: var(--fs-sm); color: var(--text-light); }

/* ================= 活动：场次票 ================= */
.ticket-row {
  display: flex;
  gap: var(--sp-4);
  overflow-x: auto;
  padding: var(--sp-2) var(--sp-2) var(--sp-6);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.ticket-row::-webkit-scrollbar { height: 8px; }
.ticket-row::-webkit-scrollbar-thumb { background: var(--ink-line); border-radius: 99px; }
.ticket {
  position: relative;
  flex: 0 0 min(340px, 82%);
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  scroll-snap-align: start;
  background: var(--card);
  border: var(--stroke) solid var(--ink-line);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur) var(--ease-bounce), box-shadow var(--dur) var(--ease);
}
.ticket:hover { transform: translateY(-4px) rotate(-0.8deg); box-shadow: 8px 8px 0 var(--shadow-ink), 0 0 24px var(--accent-pop); }
.ticket::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 12%;
  bottom: 12%;
  width: 2px;
  border-right: 2px dashed var(--ink-line);
  opacity: 0.45;
}
.ticket-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: var(--accent-pop);
  border-right: var(--stroke) solid var(--ink-line);
  padding: var(--sp-3) 0;
}
.ticket-date b { font-family: var(--font-num); font-size: 1.15rem; font-weight: 800; color: var(--on-sun); line-height: 1.1; }
.ticket-date i { font-style: normal; font-size: 0.7rem; color: var(--on-sun); opacity: 0.72; }
.ticket-body { padding: var(--sp-4); min-width: 0; }
.ticket-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ticket-meta { display: block; font-size: var(--fs-meta); color: var(--text-light); line-height: 1.7; }
.ticket-stub {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-family: var(--font-num);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--hot);
  opacity: 0.8;
}
/* 活动列表页：竖排场次票 */
.ticket-list { display: flex; flex-direction: column; gap: var(--sp-4); }
.ticket-list .ticket { flex: none; width: 100%; }

/* 旧版活动卡片（活动页仍在用） */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--sp-6); }
.activity-card {
  display: block;
  background: var(--card);
  border: var(--stroke) solid var(--ink-line);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur) var(--ease-bounce), box-shadow var(--dur) var(--ease);
}
.activity-card:nth-child(odd) { transform: rotate(-0.8deg); }
.activity-card:nth-child(even) { transform: rotate(0.6deg); }
.activity-card:hover { transform: translate(-3px, -3px) rotate(0deg); box-shadow: 9px 9px 0 var(--shadow-ink); }
.card-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: var(--stroke) solid var(--ink-line); }
.card-cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-display);
  color: var(--accent-strong);
  background:
    radial-gradient(circle at 30% 30%, var(--pink-200), transparent 55%),
    linear-gradient(180deg, var(--pink-50), var(--purple-100));
}
.card-body { padding: var(--sp-4) var(--sp-5) var(--sp-5); }
.card-title { font-family: var(--font-display); font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.card-meta { font-size: var(--fs-meta); color: var(--text-light); }

/* ================= 作品：拼贴墙 ================= */
.collage {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--sp-4);
}
.collage-item {
  --rot: 0deg;
  position: relative;
  grid-column: span 4;
  padding: 8px 8px 12px;
  background: var(--card);
  border: var(--stroke) solid var(--ink-line);
  box-shadow: var(--shadow-card);
  transform: rotate(var(--rot));
  transition: transform var(--dur) var(--ease-bounce), box-shadow var(--dur) var(--ease);
}
.collage-item.rot-a { --rot: -1.2deg; }
.collage-item.rot-b { --rot: 1deg; }
.collage-item.is-wide { grid-column: span 5; }
.collage-item.is-tall { grid-column: span 3; }
.collage-item:hover { transform: rotate(0) translateY(-4px); box-shadow: 9px 9px 0 var(--shadow-ink), 0 0 24px var(--accent-pop); z-index: 3; }
.collage-item .work-cover,
.collage-item .collage-cover {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 2px solid var(--ink-line);
  background: var(--paper-2);
}
.collage-item.is-tall .work-cover,
.collage-item.is-tall .collage-cover { aspect-ratio: 3 / 4; }
.collage-item img { width: 100%; height: 100%; object-fit: cover; }
.collage-tape { top: -12px; left: 50%; margin-left: -46px; transform: rotate(-3deg); }
.collage-meta { padding: 10px 4px 0; }
.collage-name { font-family: var(--font-display); font-size: var(--fs-base); }
.collage-author { font-size: var(--fs-meta); color: var(--text-light); }

/* 作品列表页网格 */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--sp-5) var(--sp-4);
  align-items: start;
}
.work-card {
  display: block;
  background: var(--card);
  border: var(--stroke) solid var(--ink-line);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur) var(--ease-bounce), box-shadow var(--dur) var(--ease);
}
.work-card:nth-child(3n + 1) { transform: rotate(-0.8deg); }
.work-card:nth-child(3n + 2) { transform: rotate(0.6deg); }
.work-card:nth-child(3n + 3) { transform: rotate(-0.4deg); }
/* 错落：偶数卡片下移，封面比例轮换，避免整墙等高等宽 */
.work-card:nth-child(even) { margin-top: var(--sp-6); }
.work-card:nth-child(3n + 1) .work-cover { aspect-ratio: 4 / 5; }
.work-card:nth-child(3n + 2) .work-cover { aspect-ratio: 4 / 3; }
.work-card:nth-child(3n + 3) .work-cover { aspect-ratio: 1 / 1; }
.work-card:hover { transform: translate(-3px, -3px) rotate(0); box-shadow: 9px 9px 0 var(--shadow-ink), 0 0 24px var(--accent-pop); }
.work-cover { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-bottom: var(--stroke) solid var(--ink-line); }
.work-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.work-card:hover .work-cover img { transform: scale(1.04); }
/* 悬停揭层：底部浮出类型 / 作者 */
.work-peek {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 26px 12px 8px;
  font-size: var(--fs-meta);
  font-weight: 800;
  color: #fff;
  background: linear-gradient(transparent, rgba(27, 16, 50, 0.88));
  translate: 0 100%;
  transition: translate var(--dur) var(--ease);
}
.work-card:hover .work-peek { translate: 0 0; }
.work-info { padding: var(--sp-3) var(--sp-4) var(--sp-4); }
.work-name { font-family: var(--font-display); font-size: var(--fs-base); }
.work-author { font-size: var(--fs-meta); color: var(--text-light); }
.play-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--on-sun);
  background: var(--accent-pop);
  border: var(--stroke) solid var(--ink-line);
  border-radius: 50%;
  box-shadow: 3px 3px 0 var(--shadow-ink);
}
.type-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  display: inline-block;
  padding: 3px 9px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent-strong);
  background: var(--purple-100);
  border: 2px solid var(--ink-line);
  border-radius: var(--radius-xs);
  box-shadow: 2px 2px 0 var(--shadow-ink);
  transform: rotate(-2deg);
}

.filter-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: var(--sp-8); }
.filter-tab {
  padding: 8px 16px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text-light);
  background: var(--card);
  border: 2px solid var(--ink-line);
  border-radius: var(--radius-sm);
  box-shadow: 3px 3px 0 var(--shadow-ink);
  transition: transform var(--dur-fast) var(--ease-bounce), background-color var(--dur-fast) var(--ease);
}
.filter-tab:hover { transform: translate(-1px, -1px); }
.filter-tab.active { color: var(--on-sun); background: var(--accent-pop); }
.filter-tab.is-dashed { border-style: dashed; color: var(--accent-strong); }

.pager { display: flex; align-items: center; justify-content: center; gap: var(--sp-3); margin-top: var(--sp-10); }
.pager a, .pager span {
  padding: 8px 18px;
  font-weight: 700;
  background: var(--card);
  border: 2px solid var(--ink-line);
  border-radius: var(--radius-sm);
  box-shadow: 3px 3px 0 var(--shadow-ink);
}
.pager-disabled { opacity: 0.4; box-shadow: none; }

/* ================= 报名 CTA 色带 ================= */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: var(--sp-12) 0;
  background: var(--grad-cta);
  border-top: var(--stroke) solid var(--ink-line);
  border-bottom: var(--stroke) solid var(--ink-line);
  clip-path: polygon(0 0, 100% 4%, 100% 100%, 0 96%);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.16) 0 3px, transparent 3px 16px);
  opacity: 0.7;
}
.cta-band-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  flex-wrap: wrap;
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: #fff;
  -webkit-text-stroke: 0.04em rgba(27, 16, 50, 0.55);
  paint-order: stroke fill;
  filter: drop-shadow(3px 3px 0 rgba(27, 16, 50, 0.35));
  line-height: 1.2;
}
.cta-sub { color: rgba(255, 255, 255, 0.92); font-size: var(--fs-sm); margin-top: 6px; }

/* ================= 杂志跨页 ================= */
.spread {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.spread-col { min-width: 0; }
.spread-figure {
  position: relative;
  padding: 10px;
  background: var(--card);
  border: var(--stroke) solid var(--ink-line);
  box-shadow: var(--shadow-card);
  transform: rotate(-0.9deg);
}
.spread-figure img {
  display: block;
  width: 100%;
  border: 2px solid var(--ink-line);
}
.spread-placeholder {
  aspect-ratio: 4 / 3;
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: center;
}
.spread-caption {
  margin-top: 10px;
  font-size: var(--fs-meta);
  color: var(--text-light);
  text-align: center;
}
.about-brief { position: relative; }
.about-intro, .about-text { font-size: var(--fs-base); color: var(--text-light); }
.about-text { margin-bottom: var(--sp-5); }
.about-cta { margin-top: var(--sp-5); }
.dept-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--sp-4) 0; }
.chip {
  display: inline-block;
  padding: 4px 12px;
  font-size: var(--fs-meta);
  font-weight: 700;
  color: var(--accent-strong);
  background: var(--card);
  border: 2px solid var(--ink-line);
  border-radius: var(--radius-full);
  box-shadow: 2px 2px 0 var(--shadow-ink);
}
.dept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--sp-4); }
.dept-card {
  position: relative;
  padding: var(--sp-5);
  background: var(--card);
  border: var(--stroke) solid var(--ink-line);
  box-shadow: var(--shadow-card);
}
.dept-card:nth-child(odd) { transform: rotate(-0.7deg); }
.dept-card:nth-child(even) { transform: rotate(0.6deg); }
/* 社团名册：左上角编号 */
.dept-index {
  position: absolute;
  top: 10px;
  right: 12px;
  font-family: var(--font-num);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--ink-soft);
}
.dept-name { font-family: var(--font-display); font-size: var(--fs-lg); color: var(--accent-strong); }
.dept-duty { font-size: var(--fs-sm); color: var(--text-light); }

/* 关于页：社团档案铭牌 */
.about-plate { transform: rotate(0.8deg); }
.about-plate-body {
  padding: var(--sp-6) var(--sp-5);
  text-align: center;
  background: var(--paper-2);
  border: 2px solid var(--ink-line);
}
/* 关于页：校徽圆章（白底保证深色模式下仍然清晰） */
.about-plate-seal {
  display: inline-flex;
  width: 78px;
  height: 78px;
  padding: 5px;
  background: #fff;
  border: 2px solid var(--ink-line);
  border-radius: 50%;
  box-shadow: 3px 3px 0 var(--shadow-ink);
  transform: rotate(-4deg);
}
.about-plate-seal img { width: 100%; height: 100%; object-fit: contain; }
.about-plate-name { margin: var(--sp-2) 0 4px; font-family: var(--font-display); font-size: 1.5rem; color: var(--text); }
.about-plate-tag { font-family: var(--font-num); font-size: 0.7rem; letter-spacing: 0.16em; color: var(--text-mute); }
.about-plate-list { margin: var(--sp-4) 0 0; padding: 0; list-style: none; }
.about-plate-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 7px 0;
  font-size: var(--fs-sm);
  text-align: left;
  border-top: 1px dashed var(--ink-line);
}
.about-plate-list span { color: var(--text-mute); }
.about-plate-list b { font-weight: 800; word-break: break-all; }

/* 校方联名条：深紫底 + 金色校名题字，作为「学校 → 社团」的层级说明 */
.school-band {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 6vw, 72px) 0;
  color: #f4ecff;
  background: #1b1032;
  clip-path: polygon(0 0, 100% 2.6vw, 100% 100%, 0 calc(100% - 2.6vw));
}
.school-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(244, 236, 255, 0.12) 1px, transparent 1.2px);
  background-size: 14px 14px;
  opacity: 0.5;
  pointer-events: none;
}
.school-band::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -60px;
  width: 280px;
  height: 280px;
  border: 2px solid rgba(244, 236, 255, 0.16);
  border-radius: 50%;
  pointer-events: none;
}
.school-band-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}
.school-band-lockup img {
  width: clamp(170px, 21vw, 250px);
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 10px 0 rgba(5, 3, 10, 0.35));
}
.school-band-eyebrow {
  margin: 0 0 6px;
  font-family: var(--font-num);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--sun);
}
.school-band-title {
  margin: 0 0 var(--sp-3);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: #fff;
}
.school-band-text { max-width: 44ch; color: rgba(244, 236, 255, 0.82); }
.school-band-note { margin: 0; font-size: var(--fs-meta); color: rgba(244, 236, 255, 0.45); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--sp-4); }
.contact-item {
  padding: var(--sp-4);
  background: var(--card);
  border: 2px solid var(--ink-line);
  box-shadow: 3px 3px 0 var(--shadow-ink);
}
.contact-label { display: block; font-size: var(--fs-meta); color: var(--text-mute); letter-spacing: 0.1em; }
.contact-value { font-weight: 700; word-break: break-all; }

/* ================= 内页头部 ================= */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: var(--sp-16) 0 var(--sp-12);
  border-bottom: var(--stroke) solid var(--ink-line);
  background-color: var(--paper-2);
  background-image: radial-gradient(rgba(27, 16, 50, 0.1) 1.2px, transparent 1.3px);
  background-size: 14px 14px;
}
.page-hero::after {
  content: "★ ✦ ★";
  position: absolute;
  right: 6%;
  top: 28%;
  font-size: 22px;
  letter-spacing: 12px;
  color: var(--hot);
  opacity: 0.28;
  transform: rotate(-8deg);
}
.page-title {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
}
.page-title::after {
  content: "";
  display: block;
  width: 84px;
  height: 8px;
  margin-top: 10px;
  background: var(--accent-pop);
  transform: skewX(-18deg);
}
.page-sub { margin-top: var(--sp-3); color: var(--text-light); }
.page-wrap { padding: var(--sp-12) 0 var(--sp-16); }
.back-link {
  display: inline-block;
  margin-bottom: var(--sp-4);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text-light);
}
.back-link:hover { color: var(--accent-strong); }
.back-link.light { color: rgba(255, 255, 255, 0.8); }

/* ================= 按钮 ================= */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 24px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
  background: var(--card);
  border: var(--stroke) solid var(--ink-line);
  border-radius: var(--radius-full);
  box-shadow: 4px 4px 0 var(--shadow-ink);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-bounce), box-shadow var(--dur-fast) var(--ease);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--shadow-ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--shadow-ink); }
.btn-primary { color: #fff; background: var(--grad-cta); }
.btn-outline { color: var(--accent-strong); background: var(--card); }
.btn-ghost {
  color: var(--text-light);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.btn-ghost:hover { color: var(--text); background: var(--ink-soft); box-shadow: none; transform: none; }
.btn-sticker { color: var(--on-sun); background: var(--accent-pop); }
.btn-lg { padding: 14px 30px; font-size: 1.02rem; }
.btn-sm { padding: 6px 14px; font-size: var(--fs-meta); box-shadow: 2px 2px 0 var(--shadow-ink); }
.btn-block { width: 100%; }

/* ================= 标签 / 提示 ================= */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent-strong);
  background: var(--card);
  border: 2px solid var(--ink-line);
  border-radius: var(--radius-xs);
}
.tag-pin { color: #fff; background: var(--accent-strong); }

.flash, .msg-flash {
  padding: 12px 16px;
  margin-bottom: var(--sp-4);
  font-size: var(--fs-sm);
  border: 2px solid var(--ink-line);
  border-radius: var(--radius-sm);
  box-shadow: 3px 3px 0 var(--shadow-ink);
}
.flash-warn { background: #fff6d8; color: #6b4a00; }
.flash-ok, .msg-flash.success { background: #d9f7e9; color: #11603c; }
.msg-flash.error { background: #ffe1e1; color: #8c1f1f; }

/* ================= 空状态 ================= */
.empty-state {
  padding: var(--sp-12) var(--sp-6);
  text-align: center;
  color: var(--text-light);
  background: var(--card);
  border: var(--stroke) dashed var(--ink-line);
}
.empty-state.big { padding: var(--sp-16) var(--sp-6); }
.empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  margin-bottom: var(--sp-4);
  font-size: 40px;
  background: var(--purple-100);
  border: var(--stroke) solid var(--ink-line);
  border-radius: var(--radius-lg);
  box-shadow: 4px 4px 0 var(--shadow-ink);
  transform: rotate(-4deg);
}
.empty-hint { font-size: var(--fs-meta); color: var(--text-mute); }

/* ================= 表单 ================= */
.form-row { margin-bottom: var(--sp-5); }
.form-grid { display: grid; gap: var(--sp-4); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.form-label { display: block; margin-bottom: 8px; font-size: var(--fs-sm); font-weight: 800; color: var(--text); }
.form-input, .form-textarea, select.form-input {
  width: 100%;
  padding: 11px 14px;
  font-family: inherit;
  font-size: var(--fs-sm);
  color: var(--text);
  background: var(--card);
  border: 2px solid var(--ink-line);
  border-radius: var(--radius-sm);
  outline: none;
  transition: box-shadow var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.form-textarea { resize: vertical; line-height: 1.75; min-height: 120px; }
.form-input:focus, .form-textarea:focus {
  box-shadow: 3px 3px 0 var(--shadow-ink);
  transform: translate(-1px, -1px);
}
.form-hint { font-size: var(--fs-meta); color: var(--text-mute); margin-top: 6px; }
.form-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-6); }
.field { margin-bottom: var(--sp-4); }
.field-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-5); }
.field-span { grid-column: 1 / -1; }

/* 活动详情页报名卡片 */
.activity-signup {
  margin-top: var(--sp-10);
  padding: var(--sp-6);
  background: var(--paper-2);
  border: var(--stroke) solid var(--ink-line);
  box-shadow: var(--shadow-card);
}
.activity-signup .signup-title { font-size: var(--fs-lg); margin-bottom: var(--sp-4); }
.activity-signup .signup-title small { font-size: var(--fs-meta); font-weight: 400; color: var(--text-mute); }
.activity-signup .field label { display: block; font-size: var(--fs-sm); font-weight: 700; margin-bottom: 6px; }
.activity-signup .field input,
.activity-signup .field textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: inherit;
  font-size: var(--fs-sm);
  color: var(--text);
  background: var(--card);
  border: 2px solid var(--ink-line);
  border-radius: var(--radius-sm);
}
.activity-signup .field input:focus,
.activity-signup .field textarea:focus { outline: none; box-shadow: 3px 3px 0 var(--sun); }

/* 报名页：考号展示 / 考号输入 / 考试须知 */
.exam-no-display {
  padding: var(--sp-4);
  margin: var(--sp-4) 0;
  font-family: var(--font-num);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-align: center;
  color: var(--on-sun);
  background: var(--accent-pop);
  border: var(--stroke) solid var(--ink-line);
  box-shadow: var(--shadow-card);
}
.exam-no-input {
  font-family: var(--font-num);
  font-size: 1.4rem;
  letter-spacing: 0.4em;
  text-align: center;
}
.exam-notice {
  margin-top: var(--sp-8);
  padding: var(--sp-6);
  background: var(--paper-2);
  border: var(--stroke) solid var(--ink-line);
  box-shadow: var(--shadow-card);
}
.exam-notice h3 { font-family: var(--font-display); font-size: var(--fs-lg); margin-bottom: var(--sp-3); }
.exam-notice ul { padding-left: 20px; color: var(--text-light); font-size: var(--fs-sm); line-height: 1.8; }

.pager-prev, .pager-next { max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.msg-form, .comment-form {
  padding: var(--sp-6);
  background: var(--card);
  border: var(--stroke) solid var(--ink-line);
  box-shadow: var(--shadow-card);
}
.form-row .form-grid-2 { align-items: start; }
/* 评论表单控件（模板未套 .form-input，需单独补） */
.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: inherit;
  font-size: var(--fs-sm);
  color: var(--text);
  background: var(--paper);
  border: 2px solid var(--ink-line);
  border-radius: var(--radius-sm);
}
.comment-form textarea { min-height: 84px; resize: vertical; }
.comment-form input:focus,
.comment-form textarea:focus { outline: none; box-shadow: 3px 3px 0 var(--sun); }
.comment-form input::placeholder,
.comment-form textarea::placeholder { color: var(--text-mute); }
.comment-form-row { display: block; margin-bottom: var(--sp-3); }
.comment-form-actions { display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-3); flex-wrap: wrap; }
.comment-name { font-weight: 800; }

/* ================= 详情页 ================= */
.detail-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  margin-bottom: var(--sp-3);
}
.detail-cover {
  border: var(--stroke) solid var(--ink-line);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: var(--sp-6);
}
.detail-cover img { width: 100%; }
.detail-cover-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  color: var(--accent-strong);
  background: var(--purple-100);
}
.detail-content { font-size: var(--fs-base); line-height: 1.95; color: var(--text); }
/* 杂志内页首字下沉（nl2br 输出为纯文本，故挂在容器上） */
.detail-content::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 3.1em;
  line-height: 0.92;
  padding: 4px 10px 0 0;
  color: var(--hot);
}
.detail-foot { margin-top: var(--sp-8); padding-top: var(--sp-4); border-top: 2px dashed var(--ink-line); }
.detail-comments { margin-top: var(--sp-10); }
.info-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  padding: var(--sp-4);
  margin-bottom: var(--sp-6);
  background: var(--paper-2);
  border: 2px solid var(--ink-line);
}
.info-item { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); }
.info-label { color: var(--text-mute); font-size: var(--fs-meta); }

/* 评论 */
.comment-list { display: flex; flex-direction: column; gap: var(--sp-3); margin: 0 0 var(--sp-6); padding: 0; list-style: none; }
.comment-item {
  padding: var(--sp-4) var(--sp-5);
  background: var(--card);
  border: 2px solid var(--ink-line);
  box-shadow: 3px 3px 0 var(--shadow-ink);
}
.comment-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-bottom: 6px; }
.comment-name { font-family: var(--font-display); color: var(--accent-strong); }
.comment-body { font-size: var(--fs-sm); color: var(--text); }

/* ================= 作品查看器 ================= */
.work-viewer {
  position: relative;
  padding: var(--sp-8) 0 var(--sp-10);
  background:
    radial-gradient(circle at 18% 8%, rgba(123, 92, 255, 0.35), transparent 55%),
    radial-gradient(circle at 84% 82%, rgba(255, 79, 163, 0.26), transparent 55%),
    #16111f;
  border-bottom: var(--stroke) solid var(--ink-line);
}
.viewer-main {
  position: relative;
  width: 100%;
  max-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0c0813;
  border: var(--stroke) solid rgba(255, 255, 255, 0.28);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.5);
  margin-bottom: var(--sp-5);
}
.viewer-main img { max-width: 100%; max-height: 72vh; object-fit: contain; }
.viewer-main.no-image { height: 300px; color: #9d92ac; font-size: var(--fs-sm); }
/* 缩略图胶片条：上下齿孔虚线 + 轻微交错倾斜 */
.viewer-thumbs {
  display: flex;
  gap: var(--sp-3);
  overflow-x: auto;
  padding: 14px 0;
  border-top: 2px dashed rgba(255, 255, 255, 0.26);
  border-bottom: 2px dashed rgba(255, 255, 255, 0.26);
}
.thumb {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  border: 2px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-sm);
  transform: rotate(-1.5deg);
  transition: opacity var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur) var(--ease-bounce);
}
.thumb:nth-child(even) { transform: rotate(1.5deg); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 1; transform: translateY(-4px) rotate(0); }
.thumb.active { opacity: 1; border-color: var(--sun); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--sp-10);
  background: rgba(10, 6, 16, 0.95);
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 95%; max-height: 95%; object-fit: contain; }
/* 作品图保护：禁止长按保存 / 拖拽（与后台水印、防盗链配合） */
.work-viewer img,
.lightbox img,
.viewer-thumbs img {
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}
/* 版权条：舞台下方的说明铭牌 */
.work-copyright {
  max-width: 720px;
  margin: var(--sp-5) auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 0;
  padding: 9px 18px;
  font-size: var(--fs-sm);
  line-height: 1.7;
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
}
.work-copyright .cp-mark { font-weight: 800; margin-right: 2px; }
.work-copyright .cp-sep { opacity: 0.5; margin: 0 6px; }

.video-block {
  padding: var(--sp-5);
  margin-bottom: var(--sp-8);
  background: var(--paper-2);
  border: var(--stroke) solid var(--ink-line);
}
.video-block h3 { font-family: var(--font-display); margin-bottom: var(--sp-3); }

/* 点赞 */
.work-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  font-weight: 800;
  background: var(--card);
  border: 2px solid var(--ink-line);
  border-radius: var(--radius-full);
  box-shadow: 3px 3px 0 var(--shadow-ink);
  cursor: pointer;
}
.work-like-btn .heart { color: var(--hot); font-size: 1.05rem; }
.work-like-btn.is-liked { background: var(--pink-100); }
.like-count { font-family: var(--font-num); }

/* ================= 留言板：应援墙 ================= */
.msg-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--sp-5); }
.msg-item {
  position: relative;
  padding: var(--sp-5);
  background: var(--card);
  border: 2px solid var(--ink-line);
  box-shadow: var(--shadow-card);
  transform: rotate(var(--rot, -0.8deg));
}
.msg-item:nth-child(even) { --rot: 0.9deg; }
.msg-item:nth-child(3n) { --rot: -0.3deg; }
.msg-item::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 64px;
  height: 20px;
  margin-left: -32px;
  background: rgba(255, 217, 61, 0.75);
  transform: rotate(-4deg);
}
.msg-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-bottom: 8px; }
.msg-name { font-family: var(--font-display); color: var(--accent-strong); }
.msg-date { font-size: var(--fs-meta); color: var(--text-mute); }
.msg-body { font-size: var(--fs-sm); white-space: pre-wrap; word-break: break-word; }
.msg-reply {
  margin-top: var(--sp-3);
  padding: var(--sp-3);
  font-size: var(--fs-sm);
  background: var(--paper-2);
  border-left: 4px solid var(--accent);
}
.reply-label { font-weight: 800; color: var(--accent-strong); margin-right: 4px; }
.msg-divider { height: 2px; margin: var(--sp-8) 0; background: var(--ink-line); opacity: 0.2; }

/* ================= 报名 ================= */
/* 左表单 + 右粘性流程卡 */
.join-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}
.join-main { min-width: 0; }
.join-rail {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  padding: var(--sp-5);
  background: var(--card);
  border: var(--stroke) solid var(--ink-line);
  box-shadow: var(--shadow-card);
  transform: rotate(0.5deg);
}
.join-rail-title { font-family: var(--font-display); font-size: var(--fs-lg); margin-bottom: var(--sp-3); }
.join-rail-list { margin: 0; padding: 0; list-style: none; }
.join-rail-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: var(--fs-sm);
  color: var(--text-light);
  border-bottom: 1px dashed var(--ink-line);
}
.join-rail-list li:last-child { border-bottom: none; }
.join-rail-list li span { font-family: var(--font-num); font-weight: 800; font-size: 0.78rem; color: var(--text-mute); }
.join-rail-list li.is-current { color: var(--text); font-weight: 800; }
.join-rail-list li.is-current span { color: var(--accent-strong); }
.join-rail-list li.is-done span { color: #159a63; }
.join-rail-tip { margin: var(--sp-3) 0 0; font-size: var(--fs-meta); color: var(--text-light); }
.join-intro {
  padding: var(--sp-5);
  margin-bottom: var(--sp-8);
  background: var(--card);
  border: var(--stroke) solid var(--ink-line);
  box-shadow: var(--shadow-card);
}
.merge-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: var(--sp-8) 0 var(--sp-4);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.merge-step:first-of-type { margin-top: var(--sp-2); }
.merge-step-no {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-num);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--on-sun);
  background: var(--accent-pop);
  border: var(--stroke) solid var(--ink-line);
  border-radius: var(--radius-sm);
  box-shadow: 3px 3px 0 var(--shadow-ink);
  transform: rotate(-5deg);
}
.merge-step-title { font-family: var(--font-display); font-size: var(--fs-h3); margin: 0 0 4px; }
.merge-step-sub { margin: 0; color: var(--text-light); font-size: var(--fs-sm); }
.class-picker { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.class-picker .form-input { flex: 0 0 auto; width: 100px; }
.class-picker-label { font-weight: 800; font-size: var(--fs-sm); }
.class-picker-sep { color: var(--text-light); font-size: var(--fs-sm); }

.join-result-card {
  padding: var(--sp-6);
  background: var(--card);
  border: var(--stroke) solid var(--ink-line);
  box-shadow: var(--shadow-hard);
}
.join-result-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-5); }
.signup-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.signup-title { font-family: var(--font-display); }
.signup-name { font-weight: 800; }
.signup-contact, .signup-when { font-size: var(--fs-meta); color: var(--text-mute); }

/* ================= 考试 ================= */
.exam-watermark {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-repeat: repeat;
  opacity: 0.55;
}
.exam-blur-mask {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 12, 34, 0.96);
}
.exam-blur-mask[hidden] { display: none; }
.exam-blur-box {
  padding: var(--sp-8);
  text-align: center;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}
.exam-blackout { position: fixed; inset: 0; z-index: 950; background: #000; }
.exam-blackout[hidden] { display: none; }

.exam-test-banner {
  padding: 10px 0;
  font-size: var(--fs-sm);
  background: var(--accent-pop);
  border-bottom: var(--stroke) solid var(--ink-line);
}
.exam-fs-hint {
  position: relative;
  padding: 10px 0;
  font-size: var(--fs-meta);
  background: #fff6d8;
  border-bottom: 2px solid var(--ink-line);
}
.exam-fs-hint[hidden] { display: none; }
.exam-fs-hint .container { display: flex; align-items: center; gap: var(--sp-3); }
.exam-fs-hint-close {
  margin-left: auto;
  font-size: 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
}

.exam-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: var(--ink);
  color: #fff;
}
.exam-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}
.exam-bar-info { display: flex; gap: var(--sp-4); flex-wrap: wrap; font-size: var(--fs-meta); }
.exam-bar-item { opacity: 0.9; }
.exam-bar-item b { color: var(--sun); font-family: var(--font-num); }
.exam-guard { font-size: var(--fs-meta); font-weight: 700; }
.exam-guard b { color: var(--sun); font-family: var(--font-num); }
.exam-guard-save { margin-left: 8px; color: var(--mint); }

.exam-section { background: var(--paper); }
.exam-paper-head { margin-bottom: var(--sp-8); }
.exam-paper-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  margin-bottom: var(--sp-3);
}
.exam-form { display: flex; flex-direction: column; gap: var(--sp-4); }
.q-card {
  padding: var(--sp-5) var(--sp-6);
  background: var(--card);
  border: var(--stroke) solid var(--ink-line);
  box-shadow: var(--shadow-card);
}
.q-head { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-3); flex-wrap: wrap; }
.q-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  font-family: var(--font-num);
  font-weight: 800;
  color: var(--on-sun);
  background: var(--accent-pop);
  border: 2px solid var(--ink-line);
  border-radius: var(--radius-xs);
}
.q-type { font-size: 0.72rem; font-weight: 800; color: #fff; background: var(--accent); padding: 2px 9px; border-radius: var(--radius-xs); }
.q-score { margin-left: auto; font-size: var(--fs-meta); color: var(--text-mute); font-weight: 700; }
.q-stem { font-size: var(--fs-base); font-weight: 700; line-height: 1.75; margin-bottom: var(--sp-3); }
.q-options { display: flex; flex-direction: column; gap: 8px; }
.q-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  background: var(--paper);
  border: 2px solid var(--ink-line);
  transition: background-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.q-option:hover { background: var(--paper-2); box-shadow: 2px 2px 0 var(--shadow-ink); }
.q-option input { margin-top: 4px; accent-color: var(--hot); }
.q-option-mark {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-num);
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--accent-strong);
  background: var(--purple-100);
  border: 1px solid var(--ink-line);
  border-radius: 50%;
}
.q-option-text { flex: 1; font-size: var(--fs-sm); }
.q-tip { margin-top: 8px; font-size: var(--fs-meta); color: var(--text-mute); }
.exam-submit-row {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  padding: var(--sp-6) 0;
}
.exam-modal {
  position: fixed;
  inset: 0;
  z-index: 920;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  background: rgba(20, 12, 34, 0.8);
}
.exam-modal[hidden] { display: none; }
.exam-modal-box {
  width: min(420px, 100%);
  padding: var(--sp-6);
  background: var(--card);
  border: var(--stroke) solid var(--ink-line);
  box-shadow: var(--shadow-hard);
}
.exam-modal-box h3 { font-family: var(--font-display); margin-bottom: var(--sp-3); }
.exam-no-copy .q-stem,
.exam-no-copy .q-option-text,
.exam-no-copy .q-head,
.exam-no-copy .q-tip,
.exam-no-copy .exam-paper-title { user-select: none; -webkit-user-select: none; }
.exam-no-copy input, .exam-no-copy textarea { user-select: text; -webkit-user-select: text; }
.exam-no-copy img {
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}
body.exam-landscape-blur .exam-section { filter: blur(14px); }

/* 报名与考试合并页：步骤卡 */
.exam-consent-mask {
  position: fixed;
  inset: 0;
  z-index: 940;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  background: rgba(20, 12, 34, 0.72);
}
.exam-consent-mask[hidden] { display: none; }
.exam-consent-dialog {
  width: min(520px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  padding: var(--sp-6);
  background: var(--card);
  border: var(--stroke) solid var(--ink-line);
  box-shadow: var(--shadow-hard);
}
.exam-consent-title { font-family: var(--font-display); font-size: var(--fs-h3); margin-bottom: var(--sp-3); }
.exam-consent-body { font-size: var(--fs-sm); color: var(--text-light); }
.exam-consent-notice {
  padding: var(--sp-3);
  margin: var(--sp-3) 0;
  background: #fff6d8;
  border-left: 4px solid var(--sun);
  font-size: var(--fs-meta);
}
.exam-consent-agree { display: flex; align-items: flex-start; gap: 8px; margin: var(--sp-4) 0; font-size: var(--fs-sm); }
.exam-consent-btns, .exam-consent-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.exam-perm-list { display: flex; flex-direction: column; gap: 8px; }
.exam-perm-item { display: flex; gap: 10px; font-size: var(--fs-sm); }
.exam-perm-name { font-weight: 800; min-width: 84px; }
.exam-perm-desc { color: var(--text-light); }
.exam-perm-tip { font-size: var(--fs-meta); color: var(--text-mute); }
.exam-perm-section { margin-top: var(--sp-4); }

/* 考试结果 */
.result-card {
  padding: var(--sp-8);
  background: var(--card);
  border: var(--stroke) solid var(--ink-line);
  box-shadow: var(--shadow-hard);
  text-align: center;
}
.result-pass {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.4rem);
  color: var(--accent-strong);
}
.result-pass.is-pass { color: #159a63; }
.result-pass.is-fail { color: var(--hot); }
.result-score {
  font-family: var(--font-num);
  font-size: clamp(2.4rem, 7vw, 4rem);
  font-weight: 800;
  line-height: 1;
  color: var(--hot);
}
.result-total { font-size: 0.4em; color: var(--text-mute); }
.result-detail { text-align: left; margin-top: var(--sp-6); }
.result-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.result-num { font-family: var(--font-num); font-weight: 800; color: var(--accent-strong); }
.result-caption { font-size: var(--fs-meta); color: var(--text-mute); }
.result-contact { margin-top: var(--sp-5); }
.result-contact-body { display: flex; gap: var(--sp-5); flex-wrap: wrap; align-items: center; justify-content: center; }
.result-qr-card, .result-qr { text-align: center; }
.qr-img { width: 148px; height: 148px; border: 2px solid var(--ink-line); background: #fff; padding: 6px; }

/* ================= 滑块验证 ================= */
.captcha-mask {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  background: rgba(20, 12, 34, 0.78);
}
.captcha-mask[hidden] { display: none; }
.captcha-box {
  position: relative;
  /* 360px 时 stage 只有 312px 宽，缩放比 0.52，拼图块仅 31px，
     对齐容差换算成 CSS 像素不到 3px，手机端几乎无法通过。
     放宽到 460px 后缩放比约 0.69，块约 41px。 */
  width: min(460px, 100%);
  padding: var(--sp-6);
  background: var(--card);
  border: var(--stroke) solid var(--ink-line);
  box-shadow: var(--shadow-hard);
}
.captcha-close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 22px;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
}
.captcha-title { font-family: var(--font-display); font-size: var(--fs-lg); margin-bottom: 4px; }
.captcha-sub { font-size: var(--fs-meta); color: var(--text-light); margin-bottom: var(--sp-4); }
/*
  captcha-stage 严格匹配后端生成的 600×300 画布，保证前端缩放时
  piece / block 只需按同一 scale 换算即可与后端 SVG 坐标一一对齐。
*/
.captcha-stage {
  position: relative;
  width: 100%;
  max-width: 480px;        /* 移动端最多占满 480px */
  aspect-ratio: 600 / 300;
  border: 2px solid var(--ink-line);
  user-select: none;
  overflow: hidden;
}
.captcha-bg-canvas {
  display: block;
  width: 100%;
  height: auto;
  object-fit: fill;
  pointer-events: none;
}
.captcha-piece {
  position: absolute;
  top: 0; left: 0;
  pointer-events: none;    /* 让事件落到 stage/block 上 */
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.3));
}
.captcha-track {
  position: relative;
  height: 44px;
  margin-top: 12px;
  border: 2px solid var(--ink-line);
  background: rgba(255,255,255,.75);
  border-radius: 4px;
  overflow: hidden;
}
.captcha-track-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-light);
  letter-spacing: 2px;
  transition: opacity .2s;
}
.captcha-block {
  position: absolute;
  top: 0; left: 0;
  width: 40px;
  height: 100%;
  background: var(--grad-cta);
  border-right: 2px solid var(--ink-line);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  box-sizing: border-box;
  font-size: 18px;
  transition: box-shadow .15s;
}
.captcha-block::after { content: "≡"; }
.captcha-block.is-dragging {
  cursor: grabbing;
  box-shadow: 0 0 0 2px rgba(0,0,0,.12);
}
.captcha-block.is-ok {
  background: #159a63;
  cursor: default;
}
.captcha-block.is-ok::after { content: "✓"; font-size: 20px; }
.captcha-block.is-fail {
  background: #c62828;
  cursor: default;
}
.captcha-block.is-fail::after { content: "✗"; font-size: 20px; }
.captcha-msg { margin-top: 10px; font-size: var(--fs-meta); min-height: 20px; color: var(--text-light); }
.captcha-msg.captcha-ok { color: #159a63; }
.captcha-msg.captcha-fail { color: #c62828; }

/* ================= 404 ================= */
.notfound { padding: var(--sp-20) 0; }
.notfound-inner { text-align: center; }
.notfound-code {
  font-family: var(--font-num);
  font-size: clamp(5rem, 18vw, 11rem);
  font-weight: 800;
  line-height: 0.9;
  color: var(--hot);
  -webkit-text-stroke: 0.03em var(--ink);
  filter: drop-shadow(6px 6px 0 var(--shadow-ink));
}
.notfound-title { font-family: var(--font-display); font-size: var(--fs-h2); margin: var(--sp-4) 0; }
.notfound-desc { color: var(--text-light); }
.notfound-actions { margin-top: var(--sp-6); display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; }
.notfound-dot { font-size: 1.4rem; color: var(--sun); }

/* ================= 页脚 ================= */
.site-footer {
  position: relative;
  margin-top: var(--sp-16);
  padding: var(--sp-12) 0 var(--sp-6);
  color: #f4ecff;
  background: #1b1032;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--hot), var(--sun), var(--mint), var(--sky), var(--grape));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--sp-8);
  padding-bottom: var(--sp-8);
}
.footer-brand { min-width: 0; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: var(--sp-3);
}
.footer-tag { font-size: var(--fs-meta); color: rgba(244, 236, 255, 0.7); }
/* 页脚校方联名：白色校徽 + 校名题字，压在固定深底上 */
.footer-school {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(244, 236, 255, 0.18);
}
.footer-school-seal { width: 52px; height: 52px; flex: none; opacity: 0.9; }
.footer-school-name { width: 160px; height: auto; opacity: 0.92; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: var(--fs-base);
  color: var(--sun);
  margin-bottom: var(--sp-3);
}
.footer-col a, .footer-col p {
  display: block;
  margin: 0 0 8px;
  font-size: var(--fs-sm);
  color: rgba(244, 236, 255, 0.78);
}
.footer-col a:hover { color: var(--sun); }
.footer-bottom {
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(244, 236, 255, 0.2);
  font-size: var(--fs-meta);
  color: rgba(244, 236, 255, 0.6);
}
.site-footer .logo-mark { box-shadow: 4px 4px 0 #000; }

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 70;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-sun);
  background: var(--accent-pop);
  border: var(--stroke) solid var(--ink-line);
  border-radius: var(--radius-sm);
  box-shadow: 4px 4px 0 var(--shadow-ink);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ================= 点击星芒 ================= */
.spark { position: fixed; z-index: 1200; pointer-events: none; width: 0; height: 0; }
.spark i {
  position: absolute;
  font-style: normal;
  font-size: 14px;
  line-height: 1;
  color: var(--hot);
  animation: sparkFly 0.7s ease-out forwards;
}
.spark i:nth-child(2) { color: var(--sun); }
.spark i:nth-child(3) { color: var(--mint); }
.spark i:nth-child(4) { color: var(--grape); }
@keyframes sparkFly {
  from { opacity: 1; transform: translate(0, 0) scale(0.6) rotate(0deg); }
  to { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.2) rotate(90deg); }
}

/* ================= 深色模式 ================= */
html[data-theme="dark"] {
  /* 让原生滚动条、下拉框、日期选择器等跟随暗色，避免暗色页面里出现亮白控件 */
  color-scheme: dark;
  --paper: #140c22;
  --paper-2: #1b1230;
  --card: #221840;
  --ink: #f4ecff;
  --ink-line: #7b67a8;
  --shadow-ink: #05030a;
  --ink-soft: rgba(244, 236, 255, 0.1);
  --text: #f4ecff;
  --text-light: #c2b4dd;
  --text-mute: #9a8ab5;
  --accent-strong: var(--purple-300);
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.5);
  /* 品牌点缀随暗色换档（引用预设调色板 / 深色色板，自动跟随后台换肤的色相）：
     跑马灯 / 贴纸 / 激活标签换成深紫底 + 浅色文字（--on-sun 反转），
     按钮渐变换成暗底上更亮的中饱和色 */
  --accent-pop: #3d2b6b;
  --on-sun: #ffd9e8;
  --cta-a: var(--pink-400);
  --cta-b: var(--purple-600);
}
/* 选中高亮仍是亮黄底，深色模式下 --on-sun 已反转为浅色，需保持深字 */
html[data-theme="dark"] ::selection { color: #1b1032; }
html[data-theme="dark"] body {
  background-image:
    repeating-linear-gradient(0deg, rgba(244, 236, 255, 0.03) 0 1px, transparent 1px 7px),
    radial-gradient(circle at 18% 12%, rgba(255, 79, 163, 0.12), transparent 42%),
    radial-gradient(circle at 86% 4%, rgba(123, 92, 255, 0.16), transparent 40%);
}
html[data-theme="dark"] .site-header { background: var(--paper); }
html[data-theme="dark"] .hero-bg::after,
html[data-theme="dark"] .page-hero,
html[data-theme="dark"] .section-alt { background-image: radial-gradient(rgba(244, 236, 255, 0.13) 1.1px, transparent 1.2px); }
/* 首屏背景色来自后台三色（固定浅色），深色模式下压暗，否则浅底 + 浅字不可读 */
html[data-theme="dark"] .hero-bg { filter: brightness(0.3) saturate(1.2); }
/* 首屏装饰光斑在暗底上会透出浅色光斑，降低不透明度保留氛围又不抢视线 */
html[data-theme="dark"] .deco-blob { opacity: 0.22; }
/* 无图占位画框同理：浅色渐变底在深色模式下压暗，避免浅底浅字 */
html[data-theme="dark"] .stage-photo.is-gradient { filter: brightness(0.35) saturate(1.2); }
html[data-theme="dark"] .stage-frame,
html[data-theme="dark"] .collage-item,
html[data-theme="dark"] .work-card,
html[data-theme="dark"] .activity-card,
html[data-theme="dark"] .announce-item,
html[data-theme="dark"] .ticket,
html[data-theme="dark"] .msg-item,
html[data-theme="dark"] .q-card,
html[data-theme="dark"] .stat-item { background: var(--card); }
html[data-theme="dark"] .section-title::after { background: var(--grape); opacity: 0.7; }
html[data-theme="dark"] .empty-icon { background: #2c2050; }
html[data-theme="dark"] .footer-col a:hover { color: var(--mint); }
html[data-theme="dark"] .flash-ok, html[data-theme="dark"] .msg-flash.success { background: #12392b; color: #8ff0c6; }
html[data-theme="dark"] .flash-warn { background: #3a2d08; color: #ffe08a; }
html[data-theme="dark"] .msg-flash.error { background: #3d1414; color: #ffb3b3; }

/* 深色模式：首屏标题换成更亮的渐变，避免深紫在暗底上糊掉 */
html[data-theme="dark"] .hero-title,
html[data-theme="dark"] .stage-title {
  background: linear-gradient(135deg, var(--purple-200) 0%, var(--pink-200) 55%, var(--cta-a, var(--sun)) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 0.016em rgba(8, 5, 14, 0.9);
  filter: drop-shadow(3px 3px 0 rgba(255, 79, 163, 0.32));
}

/* 深色模式：把原本的浅色「纸面」组件换成暗色表面。
   这些组件的基础色是浅色阶（--purple-100 / --pink-50 等），深色模式下不会自动翻转，
   直接压在暗底上会形成大面积刺眼白块，因此逐个换到底色令牌。 */
html[data-theme="dark"] .detail-cover-placeholder {
  background: var(--card);
  background-image: radial-gradient(circle at 50% 40%, var(--ink-soft), transparent 60%);
}
html[data-theme="dark"] .cover-placeholder {
  background:
    radial-gradient(circle at 30% 30%, var(--ink-soft), transparent 55%),
    linear-gradient(180deg, var(--card), var(--paper));
}
html[data-theme="dark"] .cta-band {
  /* 兜底：不支持 color-mix 的浏览器用固定深紫 */
  background: linear-gradient(135deg, #401b5c 0%, #6b2057 100%);
  /* 把当前预设的 CTA 色混进深底，换肤后色相仍与按钮一致 */
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--cta-a, var(--hot)) 32%, var(--paper)) 0%,
    color-mix(in srgb, var(--cta-b, var(--grape)) 48%, var(--paper)) 100%
  );
}
html[data-theme="dark"] .cta-band::before { opacity: 0.35; }

/* 小标签 / 选中态：浅紫底 + 浅紫字在暗色下几乎不可读，统一换成深紫底 + 浅色字 */
html[data-theme="dark"] .type-tag,
html[data-theme="dark"] .tag-pin,
html[data-theme="dark"] .q-type,
html[data-theme="dark"] .q-option-mark {
  background: var(--accent-pop);
  color: var(--on-sun);
}
html[data-theme="dark"] .work-like-btn.is-liked { background: var(--accent-pop); }

/* 考试页：浅黄提示条在暗色下换成琥珀底，避免浅底浅字 */
html[data-theme="dark"] .exam-fs-hint,
html[data-theme="dark"] .exam-consent-notice {
  background: #3a2d08;
  color: #ffe08a;
}
html[data-theme="dark"] .exam-fs-hint-close { color: #ffe08a; }
/* 考试信息条原本用 --ink 作底，而深色模式下 --ink 已反转为浅色，需换回暗底 */
html[data-theme="dark"] .exam-bar {
  background: var(--card);
  color: var(--text);
  border-bottom: 2px solid var(--ink-line);
}
/* 滑块验证的成功 / 失败提示在暗底上提亮 */
html[data-theme="dark"] .captcha-msg.captcha-ok { color: #5eead4; }
html[data-theme="dark"] .captcha-msg.captcha-fail { color: #ff9b9b; }
/* 场次票根角标在暗底上提高可读性 */
html[data-theme="dark"] .ticket-stub { color: var(--accent-strong); opacity: 1; }

/* ================= cyber 预设：赛博夜光（常驻深色） ================= */
/* 表面换成更深夜色，霓虹粉 / 青由 color.js 的 dark 块提供；
   页头在选该预设时直接渲染 data-theme="dark" */
html[data-theme-preset="cyber"][data-theme="dark"] {
  --paper: #0a0616;
  --paper-2: #120a24;
  --card: #170d2e;
  --ink: #eafcff;
  --ink-line: #6f5d94;
  --shadow-ink: #030208;
  --on-sun: #04121a;
  --ink-soft: rgba(143, 122, 255, 0.14);
  --text: #eafcff;
  --text-light: #b9aee0;
  --text-mute: #8d80b5;
  --accent-strong: #67e8f9;
}
/* 夜光三色本身就是深色，不需要普通深色模式的压暗处理 */
html[data-theme-preset="cyber"][data-theme="dark"] .hero-bg { filter: none; }
/* 霓虹描边：墨线换成半透明夜光紫，投影偏青 */
html[data-theme-preset="cyber"][data-theme="dark"] .site-header,
html[data-theme-preset="cyber"][data-theme="dark"] .site-footer {
  border-color: #6f5d94;
}
html[data-theme-preset="cyber"][data-theme="dark"] .hero-title,
html[data-theme-preset="cyber"][data-theme="dark"] .stage-title {
  background: linear-gradient(135deg, #e879f9 0%, #f0abfc 45%, #67e8f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 0.016em rgba(4, 2, 10, 0.92);
  filter: drop-shadow(0 0 18px rgba(232, 121, 249, 0.45));
}
/* 点缀底换成霓虹青，文字走 --on-sun（近黑）保证对比 */
html[data-theme-preset="cyber"][data-theme="dark"] .marquee,
html[data-theme-preset="cyber"][data-theme="dark"] .sticker,
html[data-theme-preset="cyber"][data-theme="dark"] .stage-sticker { box-shadow: 4px 4px 0 rgba(3, 2, 8, 0.85), 0 0 14px rgba(34, 211, 238, 0.35); }
html[data-theme-preset="cyber"][data-theme="dark"] .footer-col h4 { color: #67e8f9; }
html[data-theme-preset="cyber"][data-theme="dark"] .footer-col a:hover { color: #e879f9; }

/* ================= mono 预设：去色 ================= */
/* 直接把应援色与渐变改成灰阶，比逐元素 filter 更彻底，也避免彩色按钮漏网 */
html[data-theme-preset="mono"] {
  --hot: #7a7a7a;
  --sun: #d9d9d9;
  --mint: #bdbdbd;
  --sky: #a8a8a8;
  --grape: #8f8f8f;
  /* 大面积浅色底同样去色，避免占位图 / 标签仍带粉紫 */
  --pink-50: #fafafa;
  --pink-100: #f2f2f2;
  --pink-200: #e4e4e4;
  --pink-300: #cfcfcf;
  --pink-400: #a8a8a8;
  --pink-500: #8a8a8a;
  --purple-100: #f0f0f0;
  --purple-200: #e2e2e2;
  --purple-300: #cccccc;
  --purple-500: #8a8a8a;
  --purple-600: #666666;
  --accent-grad-a: #bdbdbd;
  --accent-grad-b: #9e9e9e;
  --grad-brand: linear-gradient(135deg, #777777, #bbbbbb);
  --grad-brand-deep: linear-gradient(135deg, #444444 0%, #777777 58%, #999999 100%);
  --grad-cta: linear-gradient(135deg, #555555 0%, #999999 100%);
}
html[data-theme-preset="mono"] .logo-mark,
html[data-theme-preset="mono"] .site-header::before,
html[data-theme-preset="mono"] .site-footer::before,
html[data-theme-preset="mono"] .scroll-progress,
html[data-theme-preset="mono"] .deco-star,
html[data-theme-preset="mono"] .deco-blob,
html[data-theme-preset="mono"] .hero-bg,
html[data-theme-preset="mono"] .hero-slide,
html[data-theme-preset="mono"] .marquee,
html[data-theme-preset="mono"] .cta-band,
html[data-theme-preset="mono"] .stage-sticker,
html[data-theme-preset="mono"] .section-title::after,
html[data-theme-preset="mono"] .cover-placeholder,
html[data-theme-preset="mono"] .tape,
html[data-theme-preset="mono"] .btn-primary,
html[data-theme-preset="mono"] .about-plate-seal img,
html[data-theme-preset="mono"] .school-band-lockup img,
html[data-theme-preset="mono"] .footer-school img { filter: grayscale(1); }

/* mono + 深色：该预设的 grayscale 会覆盖深色模式的压暗，两者需要合并，
   否则首屏背景会是一块亮灰。底色与描边也一并换成中性色。 */
html[data-theme-preset="mono"][data-theme="dark"] {
  --paper: #0a0a0a;
  --paper-2: #141414;
  --ink-line: #4d4d4d;
}
html[data-theme-preset="mono"][data-theme="dark"] .hero-bg,
html[data-theme-preset="mono"][data-theme="dark"] .hero-slide,
html[data-theme-preset="mono"][data-theme="dark"] .stage-photo.is-gradient {
  filter: grayscale(1) brightness(0.3);
}
html[data-theme-preset="mono"][data-theme="dark"] .site-footer { background: #141414; }
/* 深色标题渐变在 mono 下是深灰，压在暗底上不可读，改成反相灰阶 */
html[data-theme-preset="mono"][data-theme="dark"] .hero-title,
html[data-theme-preset="mono"][data-theme="dark"] .stage-title {
  background: linear-gradient(135deg, #f2f2f2 0%, #cccccc 55%, #a8a8a8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  /* 深色标题规则里的粉色投影在灰阶主题下会漏出色相 */
  filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.5));
}
/* 页面底纹的粉紫光晕同样去掉，只留纸纹 */
html[data-theme-preset="mono"][data-theme="dark"] body {
  background-image: repeating-linear-gradient(0deg, rgba(244, 236, 255, 0.03) 0 1px, transparent 1px 7px);
}

/* ================= 减弱动效 ================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .marquee-track { animation: none; }
  .deco-star, .spark i { animation: none; }
  .reveal { opacity: 1; translate: none; }
  .hero-title, .stage-title, .stage-sub, .stage-desc, .hero-actions, .stage-actions { animation: none; }
  .title-char { animation: none; opacity: 1; transform: none; }
  .work-card, .activity-card, .collage-item, .msg-item, .stat-item, .dept-card { transform: none !important; }
  .work-card:hover, .activity-card:hover, .collage-item:hover, .ticket:hover { transform: none; }
}

/* ================= 响应式 ================= */
/* 视口不够宽时藏起竖排栏目标签，避免被容器边缘裁掉 */
@media (max-width: 1300px) {
  .stage-side-label { display: none; }
}

@media (max-width: 1080px) {
  .main-nav a { padding: 8px 9px; font-size: 0.86rem; }
  .logo-text { font-size: 1.06rem; }
  .stage-grid { gap: 28px; }
  .stage-side-label { display: none; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}

@media (max-width: 900px) {
  .stage-grid { grid-template-columns: minmax(0, 1fr); padding-bottom: var(--sp-12); }
  .stage-frame { width: 100%; max-width: 460px; justify-self: center; aspect-ratio: 4 / 3.4; }
  .stage-copy { text-align: left; }
  .hero-title, .stage-title { font-size: clamp(2.6rem, 12vw, 4rem); }
  .spread { grid-template-columns: minmax(0, 1fr); }
  .join-layout { grid-template-columns: minmax(0, 1fr); }
  .join-rail { position: static; transform: none; order: -1; }
  .announce-list-page { grid-template-columns: minmax(0, 1fr); }
  .work-card:nth-child(even) { margin-top: 0; }
  .collage-item { grid-column: span 6; }
  .collage-item.is-wide, .collage-item.is-tall { grid-column: span 6; }
  .section { padding: var(--sp-12) 0; }
  .school-band-inner { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); text-align: center; }
  .school-band-text { margin-inline: auto; }
}

@media (max-width: 820px) {
  :root { --header-h: 60px; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 55;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: var(--sp-4) var(--sp-5) var(--sp-6);
    background: var(--paper);
    border-bottom: var(--stroke) solid var(--ink-line);
    box-shadow: 0 12px 0 rgba(27, 16, 50, 0.12);
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    clip-path: none;
    padding: 14px 6px;
    font-family: var(--font-display);
    font-size: 1.2rem;
    border-bottom: 2px dashed var(--ink-line);
  }
  .main-nav a.active { background: transparent; color: var(--accent-strong); box-shadow: none; }
  .main-nav a.active::after { content: " ★"; color: var(--accent-strong); }
  /* theme-toggle 占居靠右起始位，margin-left:auto 把它后面的 hamburger 一起推到最右 */
  .theme-toggle { display: flex; margin-left: auto; }
  .hamburger { display: flex; }

  /* 移动 Dock */
  .dock {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 75;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    padding: 6px;
    background: var(--card);
    border: var(--stroke) solid var(--ink-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hard);
  }
  .dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 0;
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--text-light);
    border-radius: var(--radius-xs);
  }
  .dock-item.active {
    color: var(--on-sun);
    background: var(--accent-pop);
    box-shadow: inset 0 0 0 2px var(--ink-line);
  }
  .dock-ico { font-size: 18px; line-height: 1; }
  .dock-label { line-height: 1; }
  body { padding-bottom: 84px; }
  .back-to-top { bottom: 92px; }
  .stat-strip { margin-top: var(--sp-6); }
  .schedule-item { grid-template-columns: 36px minmax(0, 1fr) 24px; }
  .schedule-date { grid-column: 2; font-size: 0.74rem; }
  .schedule-no { grid-row: span 2; }
  .schedule-arrow { grid-row: span 2; }
}

@media (max-width: 640px) {
  .container { padding: 0 var(--sp-4); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .stat-strip { grid-template-columns: 1fr; gap: 10px; }
  .stat-item { padding: var(--sp-4) var(--sp-5); }
  .stat-num { font-size: 2rem; }
  .hero { padding-top: calc(var(--header-h) + var(--sp-6)); }
  .stage-frame { aspect-ratio: 4 / 3.2; transform: rotate(0.8deg); }
  .stage-sticker { width: 68px; height: 68px; font-size: 0.62rem; right: -8px; }
  .collage { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .collage-item, .collage-item.is-wide, .collage-item.is-tall { grid-column: span 1; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .work-name { font-size: var(--fs-sm); }
  .btn { padding: 10px 18px; font-size: var(--fs-sm); }
  .btn-lg { padding: 12px 22px; }
  .cta-band { clip-path: polygon(0 0, 100% 2%, 100% 100%, 0 98%); }
  .school-band { clip-path: polygon(0 0, 100% 3.2%, 100% 100%, 0 96.8%); }
  .school-band-lockup img { width: 160px; }
  .about-plate-seal { width: 68px; height: 68px; }
  .page-title::after { width: 64px; }
  .msg-list { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .q-card { padding: var(--sp-4); }
  .schedule-title { font-size: var(--fs-base); }
  .comment-form, .msg-form { padding: var(--sp-4); }
  /* 手机端取消杂志首字下沉：窄屏上大字浮动易错位、观感像渲染错误 */
  .detail-content::first-letter {
    float: none;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    padding: 0;
    color: inherit;
  }
  /* 手机端公告列表：日期移到摘要行右对齐，避免长标题换行时日期悬空 */
  .announce-list-page .announce-item {
    grid-template-areas:
      "no title title"
      "no summary date";
  }
  .announce-list-page .announce-summary,
  .announce-list-page .announce-date { align-self: baseline; }
}

/* ================= 加载页（仅首页）================= */
/* 漫画分格 × 偶像舞台：深紫底 + 方形画框 + 旋转角标 + 跳动小点 */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 6px),
    radial-gradient(circle at 30% 25%, rgba(255,120,180,0.18), transparent 55%),
    radial-gradient(circle at 75% 80%, rgba(150,120,255,0.18), transparent 55%),
    #120822;
  color: #f4ecff;
  /* 第二条是纯 CSS 兜底：若 JS 报错/未执行，1.8s 后自动淡出，
     避免用户被全屏遮罩永久困住（.skip/.done 会用 animation 简写覆盖掉它） */
  animation: loader-fade-in 0.35s ease-out both,
             loader-auto-hide 0.4s ease 1.8s forwards;
}
@keyframes loader-auto-hide {
  from { opacity: 1; visibility: visible; }
  to   { opacity: 0; visibility: hidden; pointer-events: none; }
}
/* 跳过（站内跳转）或结束时：瞬间淡出并上移 */
.loader.skip,
.loader.done {
  pointer-events: none;
  animation: loader-done 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.loader-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
/* 左上小标签 */
.loader-eyebrow {
  position: absolute;
  top: -36px;
  left: -22px;
  padding: 4px 10px;
  font-family: var(--font-num);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.26em;
  color: #120822;
  background: var(--sun);
  transform: rotate(-7deg);
  box-shadow: 2px 2px 0 var(--ink);
}
/* 右下小标签 */
.loader-label {
  position: absolute;
  bottom: -38px;
  right: -34px;
  padding: 4px 10px;
  font-family: var(--font-num);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #f4ecff;
  border: 1.5px solid #f4ecff;
  transform: rotate(-3deg);
}
/* 方形画框 */
.loader-frame {
  position: relative;
  width: 220px;
  height: 220px;
  border: 3px solid #f4ecff;
  background: rgba(255,255,255,0.04);
  box-shadow:
    0 0 0 6px rgba(255,79,163,0.25),
    0 10px 0 rgba(5,3,10,0.55);
  animation: loader-frame-bob 1.6s ease-in-out infinite;
}
/* 画框四角小圆块，交错旋转 */
.loader-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--hot);
  animation: loader-corner 1.4s linear infinite;
}
.loader-corner.c1 { top: -7px;  left: -7px;  animation-delay: 0s;   background: var(--hot); }
.loader-corner.c2 { top: -7px;  right: -7px; animation-delay: 0.35s; background: var(--sun); }
.loader-corner.c3 { bottom: -7px; right: -7px; animation-delay: 0.7s; background: var(--mint); }
.loader-corner.c4 { bottom: -7px; left: -7px;  animation-delay: 1.05s; background: var(--sky); }
/* 框内校徽（mask 描摹 → 白色） */
.loader-seal {
  position: absolute;
  inset: 28px;
  background-color: #f4ecff;
  -webkit-mask: url("/images/brand/baoji-emblem.png") center / contain no-repeat;
  mask: url("/images/brand/baoji-emblem.png") center / contain no-repeat;
  animation: loader-seal 2s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(244,236,255,0.35));
}
/* 下方三点：逐个点亮 */
.loader-dots {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.loader-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(244,236,255,0.28);
  animation: loader-dot 1.2s ease-in-out infinite;
}
.loader-dots i:nth-child(1) { animation-delay: 0s; }
.loader-dots i:nth-child(2) { animation-delay: 0.2s; }
.loader-dots i:nth-child(3) { animation-delay: 0.4s; }

@keyframes loader-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes loader-done {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-12px); }
}
@keyframes loader-frame-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes loader-corner {
  0%   { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(180deg) scale(0.8); }
  100% { transform: rotate(360deg) scale(1); }
}
@keyframes loader-seal {
  0%, 100% { transform: scale(1);   opacity: 0.85; }
  50%      { transform: scale(1.08); opacity: 1; }
}
@keyframes loader-dot {
  0%, 80%, 100% { transform: scale(1);   background: rgba(244,236,255,0.28); }
  40%           { transform: scale(1.45); background: var(--sun); }
}

/* 深色模式：加载页本身用固定深底，不跟主题色走；但在 mono 预设下把校徽去色 */
html[data-theme-preset="mono"] .loader-seal { filter: grayscale(1) drop-shadow(0 0 8px rgba(244,236,255,0.25)); }

/* 减弱动效：只保留淡出 */
@media (prefers-reduced-motion: reduce) {
  .loader { animation: none; }
  .loader-frame,
  .loader-corner,
  .loader-seal,
  .loader-dots i { animation: none !important; }
  .loader.skip,
  .loader.done { animation: none; opacity: 0; transition: opacity 0.2s; }
}
