/* ==========================================================================
   蘭城副战场说明书 · 竹简卷轴 × 青绿水墨武侠重塑版 (styles.css?v=light12)
   自托管四级武侠字体 + 竹简木轴舞台 + 竹简卷合翻页 + 壁纸引擎动态背景
   lancheng.reqing.online
   ========================================================================== */

@font-face {
  font-family: "LanchengDisplay";
  src: url("../assets/fonts/lancheng-display.woff2?v=light12") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "LanchengDisplay";
  src: url("../assets/fonts/lancheng-display-lan.woff2?v=light12") format("woff2");
  unicode-range: U+862D;
  size-adjust: 91%;
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "LanchengPoem";
  src: url("../assets/fonts/lancheng-poem.woff2?v=light12") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "LanchengHeading";
  src: url("../assets/fonts/lancheng-heading.woff2?v=light12") format("woff2");
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "LanchengBody";
  src: url("../assets/fonts/lancheng-body-400.woff2?v=light12") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "LanchengBody";
  src: url("../assets/fonts/lancheng-body-500.woff2?v=light12") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "LanchengMono";
  src: url("../assets/fonts/lancheng-mono-800.woff2?v=light12") format("woff2");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* component-specific-light-dark-theme：声明 color-scheme 时显式指定浅色 background / color */
  color-scheme: only light;
  background: #ede4d1;
  color: #141a17;

  /* 渐变插值空间渐进增强（visual-effects） */
  --in-oklab: ;

  /* 熟宣 / 素绢 / 卡片 */
  --paper: #ede4d1;
  --silk: #f7f1e3;
  --card: #fffaf0;
  --bg-page: #ede4d1;
  --bg-stage: #f7f1e3;
  --bg-soft: #efe6d3;
  --border-subtle: #d9cba9;
  --border-strong: #bfa774;

  /* 墨色 */
  --ink: #141a17;
  --text-primary: #141a17;
  --text-secondary: #363e38;
  --text-muted: #565c53;

  /* 主强调：石青 / 松花玉青；点缀：赤金 / 朱砂 / 琥珀 */
  --azurite: #174a63;
  --azurite-deep: #0f3649;
  --azurite-soft: #dfebee;
  --jade: #0d6b5f;
  --jade-deep: #0a4f47;
  --jade-soft: #daeee8;
  --gold: #b8893a;
  --gold-deep: #7a5a1e;
  --gold-soft: #f2e7ce;
  --cinnabar: #a8231b;
  --cinnabar-deep: #7f1a14;
  --cinnabar-soft: #f6dfda;

  /* 旧变量名映射（兼容 app.js / sandbox.js 既有 class 与内联引用） */
  --blue: #174a63;
  --blue-soft: #dfebee;
  --teal: #0d6b5f;
  --teal-soft: #daeee8;
  --amber: #b45309;
  --amber-soft: #f9e8d0;
  --red: #a8231b;
  --red-soft: #f6dfda;

  --font-display: "LanchengDisplay", "LanchengBody", "STKaiti", "KaiTi", serif;
  --font-poem: "LanchengPoem", "LanchengDisplay", "STKaiti", "KaiTi", serif;
  --font-sans: "LanchengBody", "KaiTi", "STKaiti", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-serif: "LanchengHeading", "Noto Serif SC", "Songti SC", "STZhongsong", serif;
  --font-kai: "LanchengDisplay", "LanchengBody", "STKaiti", "KaiTi", serif;
  --font-mono: "LanchengMono", "JetBrains Mono", Consolas, ui-monospace, monospace;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --hud-header-h: 54px;
  --hud-footer-h: 56px;

  /* 竹简卷轴尺寸与颜色 token */
  --slip-w: 46px;
  --rod-w: 12px;
  --bamboo-1: #f1e5c8;
  --bamboo-seam: rgba(116, 84, 38, 0.13);
  --cord: #7a4f24;

  /* 竹简纵向纤维 & 宣纸微粒噪点 */
  --tex-bamboo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9 0.012' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.34 0 0 0 0 0.16 0.55 0 0 0 -0.45'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23b)'/%3E%3C/svg%3E");
  --tex-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.32 0 0 0 0 0.27 0 0 0 0 0.18 0.55 0 0 0 -0.19'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --tex-fiber: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.012 0.32' numOctaves='2' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.47 0 0 0 0 0.32 0.9 0 0 0 -0.46'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  /* 舞台底部淡青绿远山 */
  --tex-hills: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 220' preserveAspectRatio='xMidYMax slice'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23174a63' stop-opacity='.17'/%3E%3Cstop offset='1' stop-color='%23174a63' stop-opacity='0'/%3E%3C/linearGradient%3E%3ClinearGradient id='b' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%230d6b5f' stop-opacity='.21'/%3E%3Cstop offset='1' stop-color='%230d6b5f' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23a)' d='M0 120 C90 80 150 40 230 70 S360 20 450 60 S600 0 700 55 S860 40 950 75 S1100 30 1200 70 V220 H0Z'/%3E%3Cpath fill='url(%23b)' d='M0 170 C80 140 160 120 240 145 S400 100 480 140 S640 160 720 130 S880 90 960 135 S1120 150 1200 125 V220 H0Z'/%3E%3Cpath fill='none' stroke='%23b8893a' stroke-opacity='.42' stroke-width='1' d='M0 170 C80 140 160 120 240 145 S400 100 480 140 S640 160 720 130 S880 90 960 135 S1120 150 1200 125'/%3E%3C/svg%3E");

  font-family: var(--font-sans);
  line-height: 1.65;
  accent-color: var(--azurite);
}

@supports (background: linear-gradient(in oklab, white, black)) {
  :root {
    --in-oklab: in oklab;
  }
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100svh;
  background-color: #ede4d1;
  color: #141a17;
}

html {
  overflow-x: hidden;
}

/* clip 不建立滚动容器，保证顶栏 / 底栏 sticky 始终生效 */
body {
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  font-size-adjust: from-font;
  background-image:
    var(--tex-noise),
    var(--tex-fiber),
    radial-gradient(ellipse 60% 45% at 8% 0%, rgba(13, 107, 95, 0.16), transparent 70%),
    radial-gradient(ellipse 55% 40% at 100% 4%, rgba(23, 74, 99, 0.14), transparent 70%),
    radial-gradient(ellipse 60% 40% at 92% 100%, rgba(184, 137, 58, 0.22), transparent 72%),
    radial-gradient(ellipse 45% 35% at 0% 100%, rgba(168, 35, 27, 0.08), transparent 70%);
  background-size: 180px 180px, 420px 420px, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  background-attachment: fixed;
}

button,
input {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 2px solid var(--azurite);
  outline-offset: 2px;
}

::selection {
  background: rgba(197, 164, 103, 0.35);
  color: #1f2421;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ==========================================================================
   浅色活态武侠动态壁纸层（js/wuxia-canvas.js）：纯装饰，绝不拦截点击
   ========================================================================== */
#wuxia-bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
}

/* ==========================================================================
   顶部浅色宣纸导航栏（仅：☰ 目录 / 标题 / 域名 / 页码）
   ========================================================================== */
.hud-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--hud-header-h);
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(251, 249, 243, 0.9);
  backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.hud-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(197, 164, 103, 0.85) 18%, rgba(197, 164, 103, 0.85) 82%, transparent);
  pointer-events: none;
}

.hud-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.hud-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(30, 86, 112, 0.35);
  background: linear-gradient(180deg, #ffffff, #eef4f3);
  color: var(--azurite);
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}

.hud-menu-btn:hover {
  background: var(--azurite-soft);
  border-color: var(--azurite);
}

.brand-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-title::before {
  content: "";
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  background: var(--cinnabar);
  transform: rotate(45deg);
  box-shadow: 0 0 0 2px rgba(185, 50, 40, 0.15);
}

.hud-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-domain {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  white-space: nowrap;
}

.slide-counter {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: #fffdf7;
  border: 1px solid var(--gold);
  box-shadow: inset 0 0 0 2px #fffdf7, inset 0 0 0 3px rgba(197, 164, 103, 0.35);
  color: var(--azurite);
  white-space: nowrap;
}

/* ==========================================================================
   竹简卷轴舞台 + 竹简卷合翻页 View Transitions（directional-navigation-transitions）
   ========================================================================== */
.stage-wrapper {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 16px 22px;
  min-height: calc(100svh - var(--hud-header-h) - var(--hud-footer-h));
}

.scroll-frame {
  position: relative;
  display: flex;
  flex: 0 1 1320px;
  min-width: 0;
  container-type: inline-size;
}

.slide-stage {
  flex: 1;
  max-width: none;
  min-width: 0;
  min-height: calc(100svh - var(--hud-header-h) - var(--hud-footer-h) - 32px);
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  background-color: var(--bamboo-1);
  background-image:
    var(--tex-bamboo),
    repeating-linear-gradient(
      90deg,
      rgba(255, 250, 232, 0.56) 0 1px,
      transparent 1px calc(var(--slip-w) - 2px),
      var(--bamboo-seam) calc(var(--slip-w) - 2px) calc(var(--slip-w) - 1px),
      transparent calc(var(--slip-w) - 1px) var(--slip-w)
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0 calc(var(--slip-w) / 2),
      rgba(120, 88, 40, 0.028) calc(var(--slip-w) / 2) var(--slip-w)
    ),
    linear-gradient(180deg var(--in-oklab), rgba(255, 251, 238, 0.58) 0%, transparent 16% 84%, rgba(120, 88, 40, 0.1) 100%);
  background-size: 240px 240px, auto, auto, 100% 100%;
  border: 1px solid #c9ad74;
  border-radius: 4px;
  padding: 20px 26px;
  box-shadow:
    0 1px 0 rgba(255, 250, 240, 0.85) inset,
    0 18px 40px -18px rgba(52, 38, 14, 0.36),
    0 2px 6px rgba(52, 38, 14, 0.08);
  overflow: hidden;
  view-transition-name: slide-stage;
}

/* 上下编韦双绳（画在舞台上下内边距区，不占内容宽高） */
.slide-stage::before {
  content: "";
  position: absolute;
  inset: 9px 0;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  opacity: 0.58;
  background:
    linear-gradient(var(--cord), var(--cord)) 0 0 / 100% 2px no-repeat,
    linear-gradient(var(--cord), var(--cord)) 0 100% / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, transparent 0 calc(var(--slip-w) - 3px), var(--cord) 0 var(--slip-w)) 0 -2px / 100% 6px no-repeat,
    repeating-linear-gradient(90deg, transparent 0 calc(var(--slip-w) - 3px), var(--cord) 0 var(--slip-w)) 0 calc(100% + 2px) / 100% 6px no-repeat;
  pointer-events: none;
  z-index: 0;
}

/* 左右实木卷轴杆与暗木轴头 */
.scroll-rod {
  position: absolute;
  top: -8px;
  bottom: -8px;
  width: var(--rod-w);
  z-index: 2;
  pointer-events: none;
  border-radius: 99px;
  background: linear-gradient(90deg, #4a2c14, #8a5a2b 22%, #d6a560 48%, #9b6a35 70%, #3e2410);
  box-shadow: 0 6px 14px -6px rgba(40, 24, 8, 0.58);
}

.scroll-rod::before,
.scroll-rod::after {
  content: "";
  position: absolute;
  left: -3px;
  right: -3px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, #2a170a, #5b3a1d 45%, #2a170a);
  box-shadow: inset 0 0 0 1px rgba(201, 160, 98, 0.55);
}

.scroll-rod::before {
  top: -4px;
}

.scroll-rod::after {
  bottom: -4px;
}

.scroll-rod.is-l {
  left: calc(var(--rod-w) / -2);
  view-transition-name: rod-l;
}

.scroll-rod.is-r {
  right: calc(var(--rod-w) / -2);
  view-transition-name: rod-r;
}

.slide-decor .gf-corner {
  display: none;
}

/* 正文永远位于装饰层之上 */
.slide-stage > :not(.cover-art):not(.slide-decor) {
  position: relative;
  z-index: 1;
}

#slide-stage {
  view-transition-name: slide-stage;
}

html {
  view-transition-name: none;
}

::view-transition {
  pointer-events: none;
}

/* 竹简翻卷动画：禁止用 animation 简写覆写 group 原生尺寸过渡 */
::view-transition-group(slide-stage) {
  animation-duration: 0.66s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

::view-transition-old(slide-stage) {
  animation: slip-roll-up 0.66s both;
}

::view-transition-new(slide-stage) {
  animation: slip-unroll 0.66s both;
}

::view-transition-old(rod-l),
::view-transition-old(rod-r) {
  animation: none;
  opacity: 0;
}

::view-transition-new(rod-l),
::view-transition-new(rod-r) {
  animation: none;
}

::view-transition-group(rod-l) {
  animation: rod-l-close 0.66s both;
}

::view-transition-group(rod-r) {
  animation: rod-r-close 0.66s both;
}

@keyframes slip-roll-up {
  0% {
    clip-path: inset(0);
    animation-timing-function: cubic-bezier(0.55, 0, 0.8, 0.3);
  }
  48% {
    clip-path: inset(0 50% 0 50%);
    filter: brightness(0.82) sepia(0.16);
  }
  49%,
  100% {
    clip-path: inset(0 50% 0 50%);
    opacity: 0;
  }
}

@keyframes slip-unroll {
  0%,
  50% {
    clip-path: inset(0 50% 0 50%);
    opacity: 0;
  }
  51% {
    opacity: 1;
    filter: brightness(0.86);
    animation-timing-function: cubic-bezier(0.15, 0.75, 0.25, 1);
  }
  100% {
    clip-path: inset(0);
    filter: none;
  }
}

@keyframes rod-l-close {
  0% {
    translate: 0 0;
    animation-timing-function: cubic-bezier(0.55, 0, 0.8, 0.3);
  }
  48% {
    translate: calc(var(--stage-half, 45vw) - var(--rod-w) / 2) 0;
    scale: 1 1.03;
  }
  52% {
    translate: calc(var(--stage-half, 45vw) - var(--rod-w) / 2) 0;
    scale: 1 1.03;
    animation-timing-function: cubic-bezier(0.15, 0.75, 0.25, 1);
  }
  100% {
    translate: 0 0;
    scale: 1;
  }
}

@keyframes rod-r-close {
  0% {
    translate: 0 0;
    animation-timing-function: cubic-bezier(0.55, 0, 0.8, 0.3);
  }
  48% {
    translate: calc(-1 * (var(--stage-half, 45vw) - var(--rod-w) / 2)) 0;
    scale: 1 1.03;
  }
  52% {
    translate: calc(-1 * (var(--stage-half, 45vw) - var(--rod-w) / 2)) 0;
    scale: 1 1.03;
    animation-timing-function: cubic-bezier(0.15, 0.75, 0.25, 1);
  }
  100% {
    translate: 0 0;
    scale: 1;
  }
}

@keyframes drift-l {
  48%,
  100% {
    translate: -28px 0;
  }
}

@keyframes drift-from-r {
  0%,
  50% {
    translate: 28px 0;
  }
  100% {
    translate: 0 0;
  }
}

@keyframes drift-r {
  48%,
  100% {
    translate: 28px 0;
  }
}

@keyframes drift-from-l {
  0%,
  50% {
    translate: -28px 0;
  }
  100% {
    translate: 0 0;
  }
}

html:active-view-transition-type(forward)::view-transition-old(slide-stage) {
  animation-name: slip-roll-up, drift-l;
}

html:active-view-transition-type(forward)::view-transition-new(slide-stage) {
  animation-name: slip-unroll, drift-from-r;
}

html:active-view-transition-type(backward)::view-transition-old(slide-stage) {
  animation-name: slip-roll-up, drift-r;
}

html:active-view-transition-type(backward)::view-transition-new(slide-stage) {
  animation-name: slip-unroll, drift-from-l;
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes slip-open {
    from {
      clip-path: inset(0 50% 0 50%);
    }
    to {
      clip-path: inset(0);
    }
  }

  @keyframes rod-open-l {
    from {
      translate: calc(50cqi - var(--rod-w) / 2) 0;
    }
    to {
      translate: 0 0;
    }
  }

  @keyframes rod-open-r {
    from {
      translate: calc(-50cqi + var(--rod-w) / 2) 0;
    }
    to {
      translate: 0 0;
    }
  }

  .scroll-frame.is-unfurl .slide-stage {
    animation: slip-open 0.44s cubic-bezier(0.15, 0.75, 0.25, 1) both;
  }

  .scroll-frame.is-unfurl .scroll-rod.is-l {
    animation: rod-open-l 0.44s cubic-bezier(0.15, 0.75, 0.25, 1) both;
  }

  .scroll-frame.is-unfurl .scroll-rod.is-r {
    animation: rod-open-r 0.44s cubic-bezier(0.15, 0.75, 0.25, 1) both;
  }
}

@media (prefers-reduced-motion: reduce) {
  @keyframes vt-fade-out {
    to {
      opacity: 0;
    }
  }

  @keyframes vt-fade-in {
    from {
      opacity: 0;
    }
  }

  ::view-transition-group(slide-stage) {
    animation-duration: 0.16s !important;
  }

  ::view-transition-old(slide-stage) {
    animation: vt-fade-out 0.16s ease both !important;
  }

  ::view-transition-new(slide-stage) {
    animation: vt-fade-in 0.16s ease both !important;
  }

  ::view-transition-group(rod-l),
  ::view-transition-group(rod-r) {
    animation: none !important;
  }
}

/* ==========================================================================
   页眉（第 2~6 卷）
   ========================================================================== */
.slide-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  position: relative;
}

.slide-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 7px;
  background:
    linear-gradient(45deg, transparent 42%, var(--cinnabar) 42%, var(--cinnabar) 58%, transparent 58%) left center / 7px 7px no-repeat,
    linear-gradient(90deg, var(--gold) 0%, rgba(197, 164, 103, 0.7) 40%, rgba(197, 164, 103, 0.15) 100%) 12px center / calc(100% - 12px) 1px no-repeat;
  pointer-events: none;
}

.slide-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-deep);
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}

.slide-kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--gold);
}

.slide-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.25rem);
  font-weight: 400;
  font-synthesis: none;
  font-size-adjust: from-font;
  letter-spacing: 0.06em;
  color: var(--ink);
  line-height: 1.25;
  text-wrap: balance;
}

.slide-tag-pill {
  flex-shrink: 0;
  padding: 4px 10px 3px;
  border-radius: 3px;
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  background: rgba(185, 50, 40, 0.05);
  border: 1.5px solid var(--cinnabar);
  box-shadow: inset 0 0 0 2px #fbf9f3, inset 0 0 0 3px rgba(185, 50, 40, 0.35);
  color: var(--cinnabar);
}

.slide-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ==========================================================================
   公共装饰组件（来自 js/art-decor.js）
   ========================================================================== */
.slide-decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.gf-corner {
  position: absolute;
  width: 34px;
  height: 34px;
  pointer-events: none;
  z-index: 0;
}

.gf-corner svg {
  display: block;
  width: 100%;
  height: 100%;
}

.gf-corner.is-tl { top: 4px; left: 4px; }
.gf-corner.is-tr { top: 4px; right: 4px; transform: scaleX(-1); }
.gf-corner.is-bl { bottom: 4px; left: 4px; transform: scaleY(-1); }
.gf-corner.is-br { bottom: 4px; right: 4px; transform: scale(-1, -1); }

.slide-decor__seal {
  position: absolute;
  right: 14px;
  bottom: 13px;
  opacity: 0.9;
  line-height: 0;
}

.gf-seal {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.gf-emblem {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
  filter: drop-shadow(0 1px 1px rgba(70, 52, 20, 0.14));
}

.gf-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(320px, 70%);
  margin: 0 auto;
}

.gf-divider span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.gf-divider span:last-child {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.gf-divider i {
  width: 8px;
  height: 8px;
  background: var(--cinnabar);
  transform: rotate(45deg);
  box-shadow: 0 0 0 3px #fbf9f3, 0 0 0 4px rgba(197, 164, 103, 0.7);
}

.gf-panel-sub {
  display: block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-muted);
}

/* 门派玉佩小标签 */
.sect-jade {
  --sect: #5b6660;
  --sect-bg: #f1ede3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  padding: 1px 7px 1px 4px;
  border-radius: 999px;
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  color: var(--sect);
  background: var(--sect-bg);
  border: 1px solid color-mix(in srgb, var(--sect) 32%, transparent);
}

.sect-jade__bi {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  background: radial-gradient(circle, transparent 0 1.8px, var(--sect) 2.2px 4px, color-mix(in srgb, var(--sect) 55%, #ffffff) 4.4px 5px);
  box-shadow: 0 0 0 0.5px color-mix(in srgb, var(--sect) 40%, transparent);
}

/* 地图内装饰 */
.gf-monster,
.gf-rally {
  pointer-events: none;
}

.gf-halo-pulse {
  transform-box: fill-box;
  transform-origin: center;
}

/* ==========================================================================
   公共按钮与卡片
   ========================================================================== */
.pill-info {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 3px;
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--azurite-soft);
  border: 1px solid rgba(30, 86, 112, 0.28);
  color: var(--azurite);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 1px solid var(--azurite-deep);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #2a6d88 0%, #1e5670 55%, #194a61 100%);
  color: #fbf9f3;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow:
    inset 0 0 0 1px rgba(197, 164, 103, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 6px 16px -6px rgba(30, 86, 112, 0.55);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #1f6079 0%, #174a60 100%);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-primary-sm {
  padding: 6px 13px;
  border: 1px solid var(--azurite-deep);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #2a6d88, #1e5670);
  color: #fbf9f3;
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: inset 0 0 0 1px rgba(197, 164, 103, 0.6);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: #fffdf8;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
}

.btn-secondary:hover {
  background: var(--gold-soft);
}

.btn-outline {
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: #fffdf8;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.btn-outline:hover {
  background: var(--gold-soft);
  border-color: var(--gold);
}

/* ==========================================================================
   第 1 卷：竹简水墨迎宾（无地图水印）
   ========================================================================== */
.cover-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.cover-art__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 42% 34% at 12% 14%, rgba(13, 107, 95, 0.16), transparent 70%),
    radial-gradient(ellipse 44% 36% at 88% 16%, rgba(23, 74, 99, 0.14), transparent 70%);
}

.cover-art__sun {
  position: absolute;
  right: 17%;
  bottom: 22%;
  width: clamp(110px, 13vw, 180px);
  height: auto;
  aspect-ratio: 1;
}

.cover-art__mountains {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 39%;
  opacity: 0.7;
}

.gf-mountains {
  display: block;
  width: 100%;
  height: 100%;
}

.cover-art__geese {
  position: absolute;
  left: 21%;
  top: 15%;
  width: clamp(80px, 9vw, 130px);
  height: auto;
}

.cover-art__cloud {
  position: absolute;
  width: clamp(84px, 9vw, 128px);
  height: auto;
  opacity: 0.9;
}

.cover-art__cloud.is-left {
  left: 13%;
  bottom: 36%;
}

.cover-art__cloud.is-right {
  right: 12%;
  top: 11%;
  transform: scaleX(-1);
}

/* 正中留白托底：衬托墨题与开卷铭牌 */
.cover-art__wash {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 42% 35% at 50% 44%, rgba(247, 241, 227, 0.42) 0%, rgba(247, 241, 227, 0.2) 52%, rgba(247, 241, 227, 0) 100%);
}

.cover-art__poem {
  position: absolute;
  top: 56px;
  display: flex;
  flex-direction: row-reverse;
  gap: 14px;
  font-family: var(--font-poem);
  font-size: clamp(1.15rem, 0.95rem + 0.8vw, 1.65rem);
  font-weight: 400;
  font-synthesis: none;
  line-height: 1;
  letter-spacing: 0.3em;
  color: rgba(20, 26, 23, 0.84);
}

.cover-art__poem span {
  writing-mode: vertical-rl;
  text-orientation: upright;
  white-space: nowrap;
}

.cover-art__poem.is-left {
  left: clamp(36px, 6%, 92px);
}

.cover-art__poem.is-left span:last-child {
  margin-top: 2.2em;
  color: rgba(20, 26, 23, 0.72);
}

.cover-art__poem.is-left::after {
  content: "";
  position: absolute;
  top: -10px;
  bottom: -12px;
  left: calc(100% + 12px);
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(184, 137, 58, 0.85) 15%, rgba(184, 137, 58, 0.85) 85%, transparent);
}

.cover-art__poem.is-right {
  right: clamp(36px, 6%, 92px);
  font-size: clamp(1.45rem, 1.1rem + 1.15vw, 2.1rem);
  color: rgba(20, 26, 23, 0.9);
}

.cover-art__poem.is-right .is-lead {
  font-size: 0.52em;
  letter-spacing: 0.42em;
  color: var(--azurite);
  padding-top: 0.3em;
}

.cover-art__seal {
  position: absolute;
  right: clamp(46px, 7.2%, 104px);
  top: calc(58px + clamp(22px, 2.3vw, 32px) * 5.6);
  transform: rotate(-3deg);
  line-height: 0;
  filter: drop-shadow(0 1px 0 rgba(185, 50, 40, 0.15));
}

.cover-art__seal-sub {
  position: absolute;
  left: clamp(44px, 7%, 100px);
  bottom: 34px;
  line-height: 0;
  opacity: 0.9;
}

.cover-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  max-width: 1060px;
  margin: 0 auto;
  width: 100%;
}

.cover-page.is-clean {
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 24px 12px 7%;
}

.cover-page.is-clean .pill-info,
.cover-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-serif);
  font-size: clamp(13px, 1.25vw, 15px);
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--azurite);
}

.cover-page.is-clean .pill-info::before,
.cover-page.is-clean .pill-info::after,
.cover-kicker::before,
.cover-kicker::after {
  content: "";
  width: clamp(28px, 4vw, 54px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.cover-page.is-clean .pill-info::after,
.cover-kicker::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.cover-main-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 1.35rem + 3.8vw, 4.75rem);
  font-weight: 400;
  font-synthesis: none;
  font-size-adjust: from-font;
  letter-spacing: 0.06em;
  line-height: 1.18;
  color: #141a17;
  text-wrap: balance;
  text-shadow: 0 1px 0 rgba(255, 250, 240, 0.88), 0 10px 28px rgba(237, 228, 209, 0.95);
}

.cover-page.is-clean .cover-main-title {
  padding-left: 0.06em; /* 抵消 letter-spacing 视觉偏移 */
}

/* ==========================================================================
   第 1 页重塑：玄青玉底赤金八角导语铭牌 + 六章卷目速览条
   ========================================================================== */
.cover-plaque-wrap {
  width: 100%;
  max-width: 670px;
  margin: 0 auto;
  filter:
    drop-shadow(0 14px 26px rgba(15, 58, 64, 0.28))
    drop-shadow(0 2px 4px rgba(52, 38, 14, 0.22));
}

.cover-plaque {
  --cut: 14px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 15px 26px 15px 18px;
  text-align: left;
  background:
    var(--tex-noise),
    radial-gradient(ellipse 60% 120% at 15% 0%, rgba(126, 196, 180, 0.22), transparent 65%),
    linear-gradient(135deg var(--in-oklab), #0f3a40 0%, #123f4a 55%, #16354a 100%);
  background-size: 180px 180px, 100% 100%, 100% 100%;
  border: 1px solid #b8893a;
  box-shadow:
    inset 0 0 0 3px #0f3a40,
    inset 0 0 0 4px rgba(226, 197, 138, 0.58);
  clip-path: polygon(
    var(--cut) 0,
    calc(100% - var(--cut)) 0,
    100% var(--cut),
    100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%,
    var(--cut) 100%,
    0 calc(100% - var(--cut)),
    0 var(--cut)
  );
}

.cover-plaque__seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-inline-size: 2.5rem;
  min-block-size: 3.35rem;
  padding: 0.4rem 0.45rem;
  writing-mode: vertical-rl;
  text-orientation: upright;
  background: linear-gradient(180deg var(--in-oklab), #b92d24, #8f1a13);
  color: #fbf3ea;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.15;
  letter-spacing: 0.14em;
  border-radius: 3px;
  box-shadow:
    inset 0 0 0 2px rgba(251, 243, 234, 0.65),
    0 2px 6px rgba(10, 20, 22, 0.4);
  transform: rotate(-2deg);
}

.cover-plaque__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.cover-plaque__text {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.88rem + 0.55vw, 1.24rem);
  font-weight: 500;
  line-height: 1.55;
  color: #f3e6c4;
  text-wrap: pretty;
}

.cover-plaque__text b {
  font-family: var(--font-serif);
  font-weight: 800;
  color: #e9c77b;
  border-bottom: 1px dashed rgba(233, 199, 123, 0.72);
  padding-bottom: 1px;
}

.cover-plaque__sub {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgba(243, 230, 196, 0.78);
}

.cover-roadmap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 7px 6px;
  max-width: 720px;
}

.cover-roadmap__chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-block-size: 1.95rem;
  padding: 0.25rem 0.65rem;
  border-radius: 3px;
  border: 1px solid #cdb88d;
  background: rgba(255, 250, 240, 0.88);
  color: #174a63;
  font-family: var(--font-serif);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 6px -4px rgba(52, 38, 14, 0.35);
}

.cover-roadmap__chip i {
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.92rem;
  color: #a8231b;
}

.cover-roadmap__chip:hover {
  background: #fffdf8;
  border-color: #b8893a;
  color: #0f3649;
}

.cover-roadmap__chip + .cover-roadmap__chip {
  position: relative;
}

.cover-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 6px 0;
}

.cover-wave-card {
  background: #fffdf8;
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--azurite);
  border-radius: var(--radius-md);
  padding: 18px;
}

.wave-card-phase {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
}

.wave-card-title {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 800;
}

.wave-card-desc {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.cover-action-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
}

.cover-page:not(.is-clean) .cover-action-bar {
  justify-content: flex-start;
}

/* ==========================================================================
   第 1 页「开始看打法 →」剑锋玉符流光按钮（renderSwordButton）
   斜角切锋 + 赤金边 + 玄青玉身 + 内嵌剑徽 + 朱砂细点缀 + 悬停剑气斜扫
   ========================================================================== */
.btn-primary.btn-ink,
.cover-page.is-clean .btn-primary {
  padding: 13px 34px;
  font-size: 16px;
  letter-spacing: 0.18em;
  border-radius: 3px;
}

.btn-primary.btn-sword,
.cover-page.is-clean .btn-primary.btn-sword {
  --cut: 15px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 9px 38px 9px 12px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: #fbf3df;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-shadow: 0 1px 0 rgba(6, 34, 40, 0.65);
  filter:
    drop-shadow(0 10px 16px rgba(14, 63, 72, 0.32))
    drop-shadow(0 2px 3px rgba(70, 52, 20, 0.25));
}

/* 赤金外缘（斜切双角：左上 + 右下） */
.btn-sword__rim,
.btn-sword__body {
  position: absolute;
  pointer-events: none;
}

.btn-sword__rim {
  inset: 0;
  z-index: -2;
  background: linear-gradient(120deg, #f3dca2 0%, #c5a467 32%, #8a6a2f 55%, #e8cd8f 78%, #b28a45 100%);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}

/* 玄青玉身（内层玄甲斜纹 + 玉光） */
.btn-sword__body {
  inset: 2px;
  z-index: -1;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 7px),
    radial-gradient(ellipse 60% 120% at 22% 0%, rgba(126, 196, 180, 0.42), transparent 62%),
    linear-gradient(135deg, #0e3f48 0%, #1e5670 46%, #0f5d56 100%);
  box-shadow: inset 0 0 0 1px rgba(246, 225, 170, 0.35);
  clip-path: polygon(calc(var(--cut) - 1px) 0, 100% 0, 100% calc(100% - var(--cut) + 1px), calc(100% - var(--cut) + 1px) 100%, 0 100%, 0 calc(var(--cut) - 1px));
}

/* 内金线 */
.btn-sword__body::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(226, 197, 138, 0.45);
  clip-path: polygon(calc(var(--cut) - 4px) 0, 100% 0, 100% calc(100% - var(--cut) + 4px), calc(100% - var(--cut) + 4px) 100%, 0 100%, 0 calc(var(--cut) - 4px));
}

/* 剑气斜扫流光（默认藏于左侧；动画仅 no-preference） */
.btn-sword__body::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: 0;
  width: 46%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 244, 214, 0) 22%, rgba(255, 244, 214, 0.62) 50%, rgba(255, 244, 214, 0) 78%, transparent 100%);
  transform: translateX(-130%) skewX(-18deg);
  opacity: 0;
}

.btn-sword__emblem {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  line-height: 0;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3));
}

.btn-sword__emblem svg {
  width: 100%;
  height: 100%;
}

.btn-sword__label {
  position: relative;
  white-space: nowrap;
  padding-left: 2px;
  background: linear-gradient(180deg, #fff8e6 0%, #f3dca2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 1px 0 rgba(6, 34, 40, 0.7));
}

/* 朱砂印点（右上角）+ 切锋处小红缀 */
.btn-sword__seal {
  position: absolute;
  top: 7px;
  right: 10px;
  width: 8px;
  height: 8px;
  background: #c8392d;
  transform: rotate(45deg);
  box-shadow: 0 0 0 1.5px #f3dca2, 0 0 6px rgba(200, 57, 45, 0.6);
  pointer-events: none;
}

.btn-sword__seal::after {
  content: "";
  position: absolute;
  left: -40px;
  top: 3px;
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(243, 220, 162, 0.85));
  transform: rotate(-45deg);
  transform-origin: right center;
  opacity: 0;
}

.btn-primary.btn-sword:hover {
  background: none;
  filter:
    drop-shadow(0 12px 20px rgba(14, 63, 72, 0.38))
    drop-shadow(0 0 10px rgba(226, 197, 138, 0.55));
}

.btn-primary.btn-sword:hover .btn-sword__body {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0 2px, transparent 2px 7px),
    radial-gradient(ellipse 70% 130% at 26% 0%, rgba(150, 214, 196, 0.5), transparent 62%),
    linear-gradient(135deg, #114a54 0%, #22617d 46%, #117066 100%);
}

.btn-primary.btn-sword:active {
  transform: translateY(1px);
}

.btn-primary.btn-sword:focus-visible {
  outline: 2px solid var(--cinnabar);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: no-preference) {
  .btn-primary.btn-sword {
    transition: transform 0.18s ease, filter 0.25s ease;
  }

  .btn-primary.btn-sword:hover {
    transform: translateY(-2px);
  }

  .btn-primary.btn-sword:active {
    transform: translateY(0);
  }

  .btn-sword__emblem {
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .btn-primary.btn-sword:hover .btn-sword__emblem {
    transform: rotate(-12deg) scale(1.06);
  }

  /* 悬停：剑气斜扫 */
  .btn-primary.btn-sword:hover .btn-sword__body::after,
  .btn-primary.btn-sword:focus-visible .btn-sword__body::after {
    animation: gf-sword-sheen 0.85s cubic-bezier(0.3, 0.6, 0.2, 1) both;
  }

  /* 封面闲置：每 5.5s 一道淡淡剑光，引导点击 */
  .cover-action-bar.is-revealed .btn-sword:not(:hover) .btn-sword__body::after {
    animation: gf-sword-sheen-idle 5.5s ease-in-out 1.2s infinite;
  }

  .btn-primary.btn-sword:hover .btn-sword__seal::after {
    animation: gf-sword-spark 0.7s ease-out both;
  }

  @keyframes gf-sword-sheen {
    0% { transform: translateX(-130%) skewX(-18deg); opacity: 0; }
    15% { opacity: 1; }
    100% { transform: translateX(260%) skewX(-18deg); opacity: 0.9; }
  }

  @keyframes gf-sword-sheen-idle {
    0%, 72% { transform: translateX(-130%) skewX(-18deg); opacity: 0; }
    76% { opacity: 0.75; }
    92%, 100% { transform: translateX(260%) skewX(-18deg); opacity: 0; }
  }

  @keyframes gf-sword-spark {
    0% { opacity: 0; transform: rotate(-45deg) scaleX(0.2); }
    40% { opacity: 1; }
    100% { opacity: 0; transform: rotate(-45deg) scaleX(1.4); }
  }
}

/* ==========================================================================
   第 2 页：规则与纪律 · 双栏卷轴卡
   ========================================================================== */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  flex: 1;
  padding: 6px 4px;
}

.card-panel {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 22px -16px rgba(70, 52, 20, 0.35);
}

/* 卷轴卡：上下赤金卷轴杆 */
.gf-scroll-card,
.two-col-grid > .card-panel {
  position: relative;
  background:
    var(--tex-noise),
    linear-gradient(180deg, #fffdf8 0%, #fbf6ea 100%);
  background-size: 180px 180px, 100% 100%;
  border: 1px solid #e3d5b6;
  border-radius: 2px;
  padding: 22px 20px 20px;
  margin: 6px 0;
  box-shadow:
    inset 0 0 0 4px rgba(255, 253, 248, 0.9),
    inset 0 0 0 5px rgba(197, 164, 103, 0.28),
    0 12px 26px -18px rgba(70, 52, 20, 0.45);
}

.gf-scroll-card::before,
.gf-scroll-card::after,
.two-col-grid > .card-panel::before,
.two-col-grid > .card-panel::after {
  content: "";
  position: absolute;
  left: -7px;
  right: -7px;
  height: 9px;
  border-radius: 5px;
  background: linear-gradient(180deg, #e2c98f 0%, #b58d4a 45%, #8a6a2f 100%);
  box-shadow: 0 2px 4px rgba(70, 52, 20, 0.25);
  pointer-events: none;
}

.gf-scroll-card::before,
.two-col-grid > .card-panel::before {
  top: -6px;
}

.gf-scroll-card::after,
.two-col-grid > .card-panel::after {
  bottom: -6px;
}

.gf-scroll-card.is-teal::before,
.gf-scroll-card.is-teal::after,
.two-col-grid > .card-panel:nth-child(2)::before,
.two-col-grid > .card-panel:nth-child(2)::after {
  background: linear-gradient(180deg, #8fc7bd 0%, #2f8a7f 45%, #0f5d56 100%);
}

.gf-scroll-card.is-cinnabar::before,
.gf-scroll-card.is-cinnabar::after {
  background: linear-gradient(180deg, #e39a8f 0%, #b93228 50%, #8a231c 100%);
}

.panel-heading {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink);
  line-height: 1.4;
}

.panel-heading > span:not(.gf-panel-sub),
.panel-heading > div {
  min-width: 0;
}

.stack-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-item-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #ebe2cf;
  border-left: 3px solid var(--azurite);
  border-radius: 3px;
  padding: 11px 14px;
  box-shadow: 0 1px 0 rgba(197, 164, 103, 0.15);
}

.info-item-card.is-teal {
  border-left-color: var(--jade);
}

.item-badge {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 1px 8px;
  border-radius: 2px;
  background: var(--azurite-soft);
  border: 1px solid rgba(30, 86, 112, 0.2);
  color: var(--azurite);
  margin-bottom: 5px;
}

.item-badge.is-teal {
  background: var(--jade-soft);
  border-color: rgba(15, 118, 110, 0.22);
  color: var(--jade);
}

.info-item-card h4 {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.45;
}

.info-item-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
  text-wrap: pretty;
}

/* 第 2 卷左栏：竹片展条纪律卡 + 单字朱砂印 */
.discipline-card {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 48px 13px 14px;
  overflow: hidden;
  border-radius: 6px / 14px;
  border: 1px solid #cdb27a;
  background:
    var(--tex-bamboo),
    linear-gradient(180deg var(--in-oklab), #f7edd2 0%, #ecdcb4 58%, #dfca98 100%);
  background-size: 240px 240px, 100% 100%;
  box-shadow:
    inset 0 1px 0 rgba(255, 250, 232, 0.9),
    inset 0 -2px 0 rgba(122, 90, 40, 0.18),
    0 6px 14px -10px rgba(60, 40, 12, 0.5);
}

.discipline-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform: translateX(-120%);
  background: linear-gradient(105deg, transparent 38%, rgba(232, 190, 100, 0.6) 50%, transparent 62%);
}

.discipline-card__num {
  display: grid;
  place-items: center;
  align-self: start;
  min-block-size: 2.5rem;
  border-right: 1px dashed rgba(122, 90, 40, 0.38);
  padding-right: 10px;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  font-synthesis: none;
  color: var(--jade-deep);
  line-height: 1;
}

.discipline-card__body {
  min-width: 0;
}

.discipline-card__body h4 {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.4;
}

.discipline-card__body p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.68;
  color: var(--text-secondary);
  text-wrap: pretty;
}

.discipline-card__seal {
  position: absolute;
  top: 10px;
  right: 11px;
  display: inline-grid;
  place-items: center;
  min-inline-size: 1.85rem;
  min-block-size: 1.85rem;
  padding: 2px 5px;
  border-radius: 3px;
  background: linear-gradient(180deg var(--in-oklab), #b92d24, #8f1a13);
  border: 1px solid #e9c77b;
  box-shadow: 0 0 0 1.5px rgba(246, 235, 205, 0.9), 0 2px 6px rgba(90, 16, 10, 0.35);
  color: #fbf3ea;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.1;
  transform: rotate(-8deg);
  pointer-events: none;
}

.discipline-pills {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.discipline-pills li {
  padding: 2px 9px;
  border-radius: 3px;
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cinnabar-deep);
  background: color-mix(in oklab, var(--cinnabar-soft) 78%, #fffaf0);
  border: 1px solid color-mix(in oklab, var(--cinnabar) 32%, transparent);
}

/* 右栏镇纸木条（比必查卡早 0.1s 落下） */
.edict-weight {
  position: absolute;
  top: 0;
  left: 14px;
  right: 70px;
  height: 4px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, #3e2410, #7a4f24 45%, #3e2410);
  box-shadow: 0 2px 4px rgba(40, 24, 8, 0.35);
  pointer-events: none;
}

/* 素宣微磨砂 + 刀锋斜角装饰边（右下角金线切锋） */
.info-item-card {
  background:
    var(--tex-noise),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(253, 250, 243, 0.94) 100%);
  background-size: 180px 180px, 100% 100%;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 0 rgba(197, 164, 103, 0.18),
    0 6px 14px -12px rgba(70, 52, 20, 0.45);
}

.info-item-card::before,
.wave3-card::before {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 16px;
  height: 16px;
  background: linear-gradient(315deg, #f7f2e6 0 7px, var(--gold) 7px 8.4px, transparent 8.4px);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   第 2 页左栏：「朱砂赤金军令虎符」帮派大纪律与开局必查
   -------------------------------------------------------------------------- */
.two-col-grid > .card-panel.is-edict,
.card-panel.is-edict {
  background:
    var(--tex-noise),
    radial-gradient(ellipse 80% 40% at 0% 0%, rgba(185, 50, 40, 0.08), transparent 70%),
    linear-gradient(180deg, #fffaf4 0%, #fbefe4 100%);
  background-size: 180px 180px, 100% 100%, 100% 100%;
  border: 1px solid rgba(185, 50, 40, 0.5);
  box-shadow:
    inset 0 0 0 4px rgba(255, 250, 244, 0.92),
    inset 0 0 0 5px rgba(197, 164, 103, 0.6),
    0 16px 32px -18px rgba(185, 50, 40, 0.5);
}

.two-col-grid > .card-panel.is-edict::before,
.two-col-grid > .card-panel.is-edict::after {
  background: linear-gradient(180deg, #f3d48e 0%, #c8392d 52%, #7f1d16 100%);
  box-shadow: 0 2px 5px rgba(127, 29, 22, 0.35), inset 0 0 0 1px rgba(243, 212, 142, 0.6);
}

.card-panel.is-edict > .panel-heading {
  color: #8f1f17;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

/* 标题右侧「先查再打」小印 */
.card-panel.is-edict > .panel-heading::after {
  content: "先查再打";
  flex-shrink: 0;
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 2px;
  background: linear-gradient(180deg, #c8392d, #9e2219);
  border: 1px solid #e2c07a;
  box-shadow: 0 0 0 2px rgba(255, 250, 244, 0.9), 0 0 0 3px rgba(185, 50, 40, 0.35);
  color: #fbe7b0;
  font-family: var(--font-kai);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1.5;
  transform: rotate(-3deg);
}

.info-item-card.is-edict {
  border-color: #efd9cc;
  border-left: 3px solid var(--cinnabar);
  background:
    var(--tex-noise),
    linear-gradient(90deg, rgba(253, 238, 232, 0.96) 0%, rgba(255, 255, 255, 0.96) 42%, rgba(255, 252, 246, 0.95) 100%);
  background-size: 180px 180px, 100% 100%;
}

.item-badge.is-edict {
  background: var(--cinnabar-soft);
  border-color: rgba(185, 50, 40, 0.3);
  color: #9e2219;
}

/* ★ 进图必查高危项：朱砂红边框 + 赤金微光角标「必查」+ 虎符 / 金身小徽标 */
.info-item-card.is-critical {
  border: 1.5px solid var(--cinnabar);
  border-left: 6px solid var(--cinnabar);
  padding: 13px 64px 13px 15px;
  background:
    var(--tex-noise),
    repeating-linear-gradient(135deg, rgba(185, 50, 40, 0.035) 0 6px, transparent 6px 14px),
    linear-gradient(100deg, #fde4da 0%, #fff4ec 46%, #fffcf6 100%);
  background-size: 180px 180px, auto, 100% 100%;
  box-shadow:
    0 0 0 3px rgba(226, 192, 122, 0.45),
    0 12px 24px -12px rgba(185, 50, 40, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.85);
}

.info-item-card.is-critical::after {
  content: "必查";
  position: absolute;
  top: -1px;
  right: -1px;
  padding: 4px 11px 4px 17px;
  background:
    linear-gradient(180deg, rgba(255, 236, 190, 0.35), transparent 55%),
    linear-gradient(180deg, #d0402f 0%, #9e2219 100%);
  color: #fde9b6;
  font-family: var(--font-serif);
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.24em;
  line-height: 1.3;
  text-shadow: 0 1px 0 rgba(90, 16, 10, 0.6);
  border-bottom: 1.5px solid #e2c07a;
  border-left: 1.5px solid #e2c07a;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.info-item-card.is-critical::before {
  background: linear-gradient(315deg, #f7f2e6 0 7px, var(--cinnabar) 7px 8.6px, transparent 8.6px);
}

.info-item-card.is-critical h4 {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #8f1f17;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.info-item-card.is-critical p {
  color: #4a2a22;
  font-weight: 500;
}

.info-item-card.is-critical .item-badge {
  background: linear-gradient(180deg, #c8392d, #9e2219);
  border-color: #e2c07a;
  color: #fde9b6;
  box-shadow: 0 0 0 1.5px rgba(226, 192, 122, 0.35);
}

.critical-mark {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  line-height: 0;
  filter: drop-shadow(0 0 4px rgba(226, 192, 122, 0.75));
}

.critical-mark .gf-emblem {
  width: 24px;
  height: 24px;
}

/* --------------------------------------------------------------------------
   第 2 页右栏：青玉石青卷轴（核心机制与开局打法）
   -------------------------------------------------------------------------- */
.two-col-grid > .card-panel.is-jade-scroll,
.card-panel.is-jade-scroll {
  background:
    var(--tex-noise),
    radial-gradient(ellipse 80% 40% at 100% 0%, rgba(15, 118, 110, 0.08), transparent 70%),
    linear-gradient(180deg, #fbfdfb 0%, #eef5f1 100%);
  background-size: 180px 180px, 100% 100%, 100% 100%;
  border: 1px solid rgba(15, 118, 110, 0.32);
  box-shadow:
    inset 0 0 0 4px rgba(251, 253, 251, 0.92),
    inset 0 0 0 5px rgba(30, 86, 112, 0.2),
    0 14px 28px -20px rgba(15, 93, 86, 0.45);
}

.two-col-grid > .card-panel.is-jade-scroll::before,
.two-col-grid > .card-panel.is-jade-scroll::after {
  background: linear-gradient(180deg, #8fc7bd 0%, #2f8a7f 45%, #0f5d56 100%);
}

.card-panel.is-jade-scroll > .panel-heading {
  color: #0f4f4a;
}

.card-panel.is-jade-scroll .info-item-card.is-teal {
  border-color: #d7e7e1;
  border-left: 3px solid var(--jade);
}

/* 第 2 页第 7 条：落地石块 / 留尾刀要点 */
.rule-points {
  list-style: none;
  margin: 7px 0 0;
  padding: 0;
  display: grid;
  gap: 5px;
}

.rule-point {
  position: relative;
  padding: 5px 9px 5px 22px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(248, 231, 227, 0.9), rgba(255, 250, 244, 0.6));
  border: 1px solid rgba(185, 50, 40, 0.22);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink);
}

.rule-point::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0.95em;
  width: 6px;
  height: 6px;
  background: var(--cinnabar);
  transform: rotate(45deg);
}

.rule-point b {
  color: #9e2219;
  font-family: var(--font-serif);
  font-weight: 900;
}

.rule-point em,
.landing-alert-list em {
  font-style: normal;
  font-weight: 800;
  color: #9e2219;
  background: linear-gradient(transparent 58%, rgba(231, 194, 122, 0.55) 58%);
  padding: 0 1px;
}

/* ==========================================================================
   第 3 页：80 人点将台
   ========================================================================== */
.roster-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.search-input-wrap {
  flex: 1;
  min-width: 240px;
}

.search-input {
  width: 100%;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--ink);
  font-size: 14px;
}

.search-input:focus {
  border-color: var(--azurite);
  box-shadow: 0 0 0 3px rgba(30, 86, 112, 0.14);
  outline: none;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.filter-pill {
  padding: 6px 12px;
  border-radius: 3px;
  border: 1px solid var(--border-strong);
  background: #fffdf8;
  color: var(--text-secondary);
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.filter-pill:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--ink);
}

.filter-pill.is-active {
  background: linear-gradient(180deg, #2a6d88, #1e5670);
  border-color: var(--azurite-deep);
  color: #fbf9f3;
  box-shadow: inset 0 0 0 1px rgba(197, 164, 103, 0.65);
}

.roster-summary-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px 18px;
  padding: 10px 16px;
  border-radius: 3px;
  background:
    linear-gradient(90deg, rgba(197, 164, 103, 0.14), rgba(197, 164, 103, 0.04) 50%, rgba(197, 164, 103, 0.14)),
    #fffdf8;
  border: 1px solid rgba(197, 164, 103, 0.55);
  box-shadow: inset 0 0 0 3px #fffdf8, inset 0 0 0 4px rgba(197, 164, 103, 0.25);
  font-size: 12.5px;
  color: var(--text-secondary);
}

.roster-summary-bar strong {
  font-family: var(--font-serif);
  color: var(--ink);
}

.roster-summary-bar > span {
  flex: 1 1 240px;
  min-width: 0;
}

.search-result-banner {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--azurite-soft);
  border: 1px solid rgba(30, 86, 112, 0.3);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-result-banner.is-empty {
  background: var(--amber-soft);
  border-color: #ecd09a;
  color: #8a4b0a;
  font-size: 13px;
  font-weight: 600;
}

.hit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.hit-name {
  font-weight: 800;
  color: var(--azurite);
}

.hit-target {
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid;
  font-size: 12px;
  font-weight: 700;
}

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

.team-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e6dcc7;
  border-radius: 3px;
  padding: 10px 11px 9px;
  box-shadow: 0 6px 16px -12px rgba(70, 52, 20, 0.4);
}

.team-card::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(197, 164, 103, 0.18);
  border-radius: 2px;
  pointer-events: none;
}

.team-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(197, 164, 103, 0.55);
}

.team-card-title {
  font-family: var(--font-serif);
  font-size: 13.5px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.team-card-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 2px;
  white-space: nowrap;
}

.team-member-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.team-member-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  padding: 2px 4px;
  border-radius: 2px;
}

.team-member-row:nth-child(odd) {
  background: rgba(244, 239, 228, 0.55);
}

.team-member-row.is-hit {
  background: #fbe7a8;
  font-weight: 800;
}

.m-name {
  min-width: 0;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.m-sect {
  color: var(--text-muted);
  font-size: 11px;
  flex-shrink: 0;
}

/* ==========================================================================
   第 4 & 6 页：实景水墨地图装裱 & 纯平面星翼路线
   ========================================================================== */
.map-overview-layout {
  display: grid;
  grid-template-columns: 1.5fr 0.95fr;
  align-items: start;
  gap: 18px;
  flex: 1;
}

.map-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 10px 24px -18px rgba(70, 52, 20, 0.45);
}

.map-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

/* 装裱框：锦缎边 + 赤金细线 */
.map-svg-box {
  position: relative;
  width: 100%;
  border-radius: 3px;
  overflow: hidden;
  padding: 7px;
  border: 1px solid #b89a5e;
  background:
    repeating-linear-gradient(45deg, rgba(138, 106, 47, 0.07) 0 2px, transparent 2px 6px),
    linear-gradient(180deg, #efe4cb, #e6d7b5);
  box-shadow:
    inset 0 0 0 1px #fff8e6,
    0 10px 24px -14px rgba(70, 52, 20, 0.5);
}

.map-svg-box > .map-svg,
.map-svg-box > svg {
  border: 1px solid #9c7f48;
  border-radius: 2px;
  background: #dfe6dc;
  box-shadow: 0 0 0 2px rgba(255, 248, 230, 0.7);
}

.map-svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 560 / 325;
}

.map-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.highlight-note-card {
  background:
    var(--tex-noise),
    linear-gradient(180deg, #fffdf8, #fbf6ea);
  background-size: 180px 180px, 100% 100%;
  border: 1px solid #e3d5b6;
  border-top: 3px solid var(--azurite);
  border-radius: 3px;
  padding: 14px 16px;
  box-shadow: 0 10px 22px -18px rgba(70, 52, 20, 0.45);
}

.squad-mini-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.squad-mini-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 3px;
  border: 1px solid #ebe2cf;
  background: #ffffff;
  text-align: left;
  font-size: 13px;
  color: var(--ink);
}

.squad-mini-row:hover {
  border-color: var(--gold);
  background: #fffaf0;
}

.squad-mini-row.is-active {
  border-color: var(--azurite);
  background: var(--azurite-soft);
  box-shadow: inset 3px 0 0 var(--azurite);
}

.squad-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 3px rgba(197, 164, 103, 0.6);
}

.squad-main {
  flex: 1;
  min-width: 0;
  line-height: 1.45;
}

.squad-eta {
  flex-shrink: 0;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
}

.route-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.route-tab {
  padding: 5px 10px;
  border-radius: 3px;
  border: 1px solid var(--border-strong);
  background: #fffdf8;
  color: var(--text-secondary);
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 700;
}

.route-tab:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.route-tab.is-active {
  background: linear-gradient(180deg, #2a6d88, #1e5670);
  border-color: var(--azurite-deep);
  color: #fbf9f3;
  box-shadow: inset 0 0 0 1px rgba(197, 164, 103, 0.65);
}

.route-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.route-scrubber {
  flex: 1;
  min-width: 120px;
  accent-color: var(--azurite);
}

.route-hint-mono {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  min-width: 38px;
  text-align: right;
}

.rule-tip-box {
  padding: 10px 12px 10px 14px;
  border-radius: 3px;
  background: linear-gradient(90deg, #fbf0dc, #fdf8ee);
  border: 1px solid #ecd6a8;
  border-left: 3px solid var(--cinnabar);
  color: #7a3f0b;
  font-size: 12.5px;
  font-weight: 600;
}

/* ==========================================================================
   第 5 页：三波倒计时竹简 & 耗时仪表
   ========================================================================== */
.waves-timeline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* 竹简：竖向简片 + 上下编绳 */
.wave-node-card {
  position: relative;
  background:
    repeating-linear-gradient(90deg, transparent 0 25px, rgba(138, 106, 47, 0.1) 25px 26px),
    linear-gradient(180deg, #fbf3df 0%, #f6ead0 100%);
  border: 1px solid #dcc697;
  border-top: 3px solid var(--azurite);
  border-radius: 3px;
  padding: 20px 18px 18px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 251, 240, 0.8),
    0 10px 22px -16px rgba(70, 52, 20, 0.5);
}

.wave-node-card::before,
.wave-node-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: repeating-linear-gradient(90deg, #a07a3c 0 6px, #c9a86a 6px 9px);
  opacity: 0.55;
  pointer-events: none;
}

.wave-node-card::before { top: 9px; }
.wave-node-card::after { bottom: 8px; }

.wave-node-card:nth-child(2) { border-top-color: var(--jade); }
.wave-node-card:nth-child(3),
.wave-node-card.is-final { border-top-color: var(--cinnabar); }

.wave-node-clock {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: var(--azurite);
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

.wave-node-card:nth-child(2) .wave-node-clock { color: var(--jade); }
.wave-node-card:nth-child(3) .wave-node-clock,
.wave-node-card.is-final .wave-node-clock { color: var(--cinnabar); }

.wave-node-card h4 {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

.wave-node-target {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--jade);
  margin-bottom: 8px;
  padding: 1px 8px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(15, 118, 110, 0.22);
}

.wave-node-card p {
  margin: 0;
  font-size: 13px;
  color: #3f4741;
}

.benchmark-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.benchmark-card {
  background: #ffffff;
  border: 1px solid #ebe2cf;
  border-radius: 3px;
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  box-shadow: inset 0 0 0 3px #ffffff, inset 0 0 0 4px rgba(197, 164, 103, 0.18);
}

.benchmark-card > strong {
  font-family: var(--font-serif);
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bar-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  min-width: 82px;
}

.bar-label.is-bad { color: var(--cinnabar); }
.bar-label.is-good { color: var(--jade); }

/* 刻度仪表槽 */
.bar-track {
  position: relative;
  flex: 1;
  height: 12px;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(138, 106, 47, 0.28) calc(10% - 1px) 10%),
    linear-gradient(180deg, #ebe2cf, #f5efe2);
  border: 1px solid #dccca7;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(70, 52, 20, 0.18);
}

.bar-fill {
  position: relative;
  height: 100%;
  border-radius: 999px;
}

.bar-fill::after {
  content: "";
  position: absolute;
  inset: 1px 2px auto 2px;
  height: 40%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.bar-fill.is-bad { background: linear-gradient(90deg, #d8735f, #b93228); }
.bar-fill.is-good { background: linear-gradient(90deg, #4fae9f, #0f766e); }

.bar-value {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  min-width: 36px;
  text-align: right;
  color: var(--ink);
}

.bar-desc {
  font-size: 12px;
  color: var(--text-secondary);
}

.bar-desc.is-good {
  color: var(--jade);
  font-weight: 600;
}

/* ==========================================================================
   第 7 页：第三波破局规划（左 1 通高前提 + 右 3 场景等高，暂撤群通知）
   ========================================================================== */
.wave3-body {
  min-height: 0;
}

.wave3-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 14px;
  min-height: 0;
}

.wave3-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background:
    var(--tex-noise),
    linear-gradient(160deg var(--in-oklab), #fffdf8 0%, #f5ebd4 100%);
  background-size: 180px 180px, 100% 100%;
  border: 1px solid #dbc9a4;
  border-radius: 3px;
  padding: 15px 18px 14px 20px;
  box-shadow:
    inset 0 0 0 3px rgba(255, 250, 240, 0.92),
    inset 0 0 0 4px rgba(184, 137, 58, 0.24),
    0 10px 22px -16px rgba(52, 38, 14, 0.45);
}

.wave3-card.is-premise {
  grid-row: 1 / 4;
  justify-content: flex-start;
  padding: 20px 22px 18px 22px;
  background:
    var(--tex-noise),
    radial-gradient(ellipse 80% 45% at 0% 0%, rgba(168, 35, 27, 0.08), transparent 70%),
    linear-gradient(165deg var(--in-oklab), #fffaf3 0%, #f7e9dc 100%);
  background-size: 180px 180px, 100% 100%, 100% 100%;
}

.wave3-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 16px;
}

.wave3-card__meta {
  flex: 1;
  min-width: 0;
}

.wave3-badge {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 3px;
  border: 1px solid;
  background: #fffaf0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.wave3-metric {
  margin: 4px 0 2px;
  padding: 12px 14px;
  border-radius: 4px;
  background: rgba(255, 250, 240, 0.88);
  border: 1px dashed rgba(168, 35, 27, 0.38);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.wave3-metric__label {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.wave3-metric__num {
  font-family: var(--font-mono);
  font-size: clamp(1.65rem, 1.3rem + 1.1vw, 2.3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--cinnabar);
  letter-spacing: -0.01em;
}

/* 锦囊结扣 */
.wave3-card::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 12px;
  width: 9px;
  height: 9px;
  background: var(--cinnabar);
  transform: rotate(45deg);
  box-shadow: 0 0 0 2px #fffdf8, 0 0 0 3px rgba(184, 137, 58, 0.85);
  opacity: 0.88;
}

.wave3-tag {
  font-family: var(--font-serif);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 2px;
}

.wave3-card h4 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.38;
  color: var(--ink);
}

.wave3-card.is-premise h4 {
  font-size: 1.15rem;
}

.wave3-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.68;
  color: var(--text-secondary);
  text-wrap: pretty;
}

.wave3-cue {
  margin-top: auto;
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 3px;
  background: color-mix(in oklab, var(--sc-accent, #174a63) 10%, #fffaf0);
  border: 1px solid color-mix(in oklab, var(--sc-accent, #174a63) 34%, transparent);
  color: var(--sc-accent, var(--ink));
  font-family: var(--font-serif);
  font-size: 0.8rem;
  font-weight: 800;
}

/* 纸笺：朱丝栏 + 右上印章位 */
.notice-paper {
  position: relative;
  border: 1px solid #e0cfa9;
  border-radius: 3px;
  background: #fffdf7;
  padding: 6px;
  box-shadow: 0 10px 24px -18px rgba(70, 52, 20, 0.5);
}

.notice-paper > .gf-seal,
.notice-paper__seal {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 2;
  line-height: 0;
  opacity: 0.88;
  transform: rotate(4deg);
  pointer-events: none;
}

.notice-paper .notice-pre {
  padding-right: 72px;
}

.notice-pre {
  position: relative;
  margin: 0;
  padding: 12px 16px 12px 22px;
  border-radius: 2px;
  background:
    linear-gradient(90deg, transparent 12px, rgba(185, 50, 40, 0.35) 12px 13px, transparent 13px),
    repeating-linear-gradient(180deg, transparent 0 23px, rgba(185, 50, 40, 0.13) 23px 24px),
    #fffdf7;
  background-position: 0 0, 0 12px, 0 0;
  border: 1px solid #eadcbc;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 13px;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 24px;
}

/* ==========================================================================
   底部宣纸翻页栏
   ========================================================================== */
.hud-footer {
  position: sticky;
  bottom: 0;
  z-index: 20;
  height: var(--hud-footer-h);
  padding: 0 18px;
  background: rgba(251, 249, 243, 0.92);
  backdrop-filter: blur(10px) saturate(1.1);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.progress-bar-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(197, 164, 103, 0.3);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #1e5670, #0f766e 70%, #c5a467);
}

.nav-btn {
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, #ffffff, #f8f2e5);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}

.nav-btn:hover:not(:disabled) {
  border-color: var(--azurite);
  color: var(--azurite);
  background: var(--azurite-soft);
}

.nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.hud-center-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.slide-dots {
  display: flex;
  align-items: center;
  gap: 9px;
}

.step-status-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--azurite);
  background: var(--azurite-soft);
  border: 1px solid rgba(30, 86, 112, 0.24);
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.step-status-pill.is-done {
  color: var(--jade);
  background: var(--jade-soft);
  border-color: rgba(15, 118, 110, 0.24);
}

.btn-reveal-all {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: #fffdf7;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.btn-reveal-all:hover {
  background: var(--gold-soft);
  border-color: var(--gold-deep);
}

.btn-reveal-all[hidden] {
  display: none;
}

.slide-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid #b8a271;
  background: #fffdf7;
}

.slide-dot:hover {
  background: var(--gold-soft);
  border-color: var(--gold-deep);
}

.slide-dot.is-active {
  width: 26px;
  background: linear-gradient(90deg, #1e5670, #0f766e);
  border-color: var(--azurite-deep);
  box-shadow: 0 0 0 2px rgba(197, 164, 103, 0.3);
}

/* ==========================================================================
   navigation-drawer 宣纸目录抽屉（scroll-snap + scroll-timeline）
   ========================================================================== */
.Drawer {
  --drawer-width: min(21em, 82dvw, 100dvw - 24px);
  --drawer-backdrop: 0;

  inset: 0;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  overflow: visible;
}

.Drawer::backdrop {
  background: #2b2a24;
  opacity: calc(var(--drawer-backdrop) * 0.38);
}

.Drawer-scroller {
  position: relative;
  display: grid;
  grid-template-columns: var(--drawer-width) 100%;
  overflow-x: scroll;
  overscroll-behavior: none;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

@media (prefers-reduced-motion: no-preference) {
  .Drawer-scroller {
    scroll-behavior: smooth;
  }
}

.Drawer-scroller::after {
  content: "";
  scroll-snap-align: end;
  scroll-initial-target: nearest;
}

.Drawer-sheet {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100svh;
  background-color: #fbf9f3;
  background-image:
    var(--tex-noise),
    var(--tex-hills),
    linear-gradient(180deg, #fcfaf5, #f6f0e2);
  background-size: 180px 180px, 100% 120px, 100% 100%;
  background-position: 0 0, center bottom, 0 0;
  background-repeat: repeat, no-repeat, no-repeat;
  color: var(--ink);
  border-right: 1px solid var(--gold);
  box-shadow: inset -4px 0 0 rgba(251, 249, 243, 0.8), inset -5px 0 0 rgba(197, 164, 103, 0.35), 12px 0 30px -12px rgba(43, 42, 36, 0.35);
  overflow-y: auto;
  scroll-snap-align: start;
  scrollbar-width: none;
  padding: 18px 16px;
  gap: 12px;
}

@supports (animation-timeline: scroll()) {
  .Drawer {
    timeline-scope: --drawer-fade;
    animation: fade-drawer-backdrop linear both;
    animation-timeline: --drawer-fade;
  }

  .Drawer-scroller {
    scroll-timeline: --drawer-fade x;
  }

  @property --drawer-backdrop {
    syntax: "<number>";
    inherits: true;
    initial-value: 0;
  }

  @keyframes fade-drawer-backdrop {
    0% { --drawer-backdrop: 1; }
    100% { --drawer-backdrop: 0; }
  }
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(197, 164, 103, 0.6);
}

.drawer-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.drawer-title::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  background: var(--cinnabar);
  transform: rotate(45deg);
}

.drawer-close-btn {
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: #fffdf8;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 12px;
}

.drawer-close-btn:hover {
  border-color: var(--cinnabar);
  color: var(--cinnabar);
}

.drawer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-nav-btn {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 3px;
  border: 1px solid transparent;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 13.5px;
  color: var(--text-secondary);
}

.drawer-nav-btn:hover {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(197, 164, 103, 0.45);
  color: var(--ink);
}

.drawer-nav-btn.is-active {
  background: #ffffff;
  border-color: rgba(30, 86, 112, 0.35);
  box-shadow: inset 3px 0 0 var(--azurite);
  color: var(--azurite);
  font-weight: 800;
}

.drawer-nav-num {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 22px;
  flex-shrink: 0;
  border: 1px solid rgba(197, 164, 103, 0.8);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-deep);
  background: #fffdf7;
}

.drawer-nav-btn.is-active .drawer-nav-num {
  background: var(--azurite);
  border-color: var(--azurite-deep);
  color: #fbf9f3;
}

.drawer-footer-tip {
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid rgba(197, 164, 103, 0.5);
  padding-top: 10px;
}

/* ==========================================================================
   motion：装饰动画（仅 prefers-reduced-motion: no-preference）
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .progress-bar-fill {
    transition: width 0.3s ease;
  }

  .slide-dot {
    transition: width 0.22s ease, background-color 0.22s ease;
  }

  .btn-primary,
  .nav-btn,
  .filter-pill,
  .route-tab,
  .squad-mini-row,
  .drawer-nav-btn {
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
  }

  @keyframes gf-mist-drift {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(28px); }
  }

  @keyframes gf-geese-glide {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(14px, -6px); }
  }

  @keyframes gf-sun-breathe {
    0%, 100% { opacity: 0.85; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.04); }
  }

  @keyframes gf-cloud-float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -5px; }
  }

  @keyframes gf-ink-in {
    from { opacity: 0; transform: translateY(10px); filter: blur(3px); }
    to { opacity: 1; transform: none; filter: none; }
  }

  @keyframes gf-halo-pulse {
    0%, 100% { transform: scale(0.9); opacity: 0.75; }
    50% { transform: scale(1.12); opacity: 1; }
  }

  .gf-mountains .gf-mist {
    animation: gf-mist-drift 14s ease-in-out infinite;
  }

  .gf-mountains .gf-mist.is-low {
    animation-duration: 18s;
    animation-direction: reverse;
  }

  .cover-art__geese {
    animation: gf-geese-glide 9s ease-in-out infinite;
  }

  .cover-art__sun {
    animation: gf-sun-breathe 7s ease-in-out infinite;
  }

  .cover-art__cloud {
    animation: gf-cloud-float 8s ease-in-out infinite;
  }

  .cover-art__cloud.is-right {
    animation-delay: -4s;
  }

  .cover-page.is-clean > * {
    animation: gf-ink-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .cover-page.is-clean > :nth-child(2) { animation-delay: 0.08s; }
  .cover-page.is-clean > :nth-child(3) { animation-delay: 0.16s; }
  .cover-page.is-clean > :nth-child(4) { animation-delay: 0.24s; }
  .cover-page.is-clean > :nth-child(5) { animation-delay: 0.32s; }

  .gf-halo-pulse {
    animation: gf-halo-pulse 2.4s ease-in-out infinite;
  }
}

/* ==========================================================================
   响应式适配（平板 / 手机单手查阅）
   ========================================================================== */
@media (max-width: 1024px) {
  .roster-teams-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cover-art__poem.is-left {
    left: 34px;
  }

  .cover-art__poem.is-right {
    right: 34px;
  }

  .cover-art__seal {
    right: 40px;
  }
}

@media (max-width: 900px) {
  .stage-wrapper {
    padding: 10px;
  }

  .slide-stage {
    padding: 20px 16px;
    min-height: auto;
  }

  .slide-stage:has(.cover-art) {
    min-height: calc(100svh - var(--hud-header-h) - var(--hud-footer-h) - 20px);
  }

  .cover-cards-grid,
  .two-col-grid,
  .map-overview-layout,
  .waves-timeline-grid,
  .benchmark-grid,
  .wave3-grid,
  .tac-split,
  .tac-rally-layout {
    grid-template-columns: 1fr;
  }

  .wave3-grid {
    grid-template-rows: auto;
  }

  .wave3-card.is-premise {
    grid-row: auto;
  }

  .tac-rally-diagram {
    justify-self: center;
  }

  .two-col-grid {
    gap: 26px;
  }

  .slide-head {
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .hud-header {
    padding: 0 10px;
    gap: 8px;
  }

  .hud-menu-btn {
    padding: 5px 8px;
    font-size: 12px;
  }

  .brand-title {
    font-size: 14px;
    letter-spacing: 0.04em;
  }

  .brand-domain {
    display: none;
  }

  .roster-teams-grid {
    grid-template-columns: 1fr;
  }

  .hud-footer {
    padding: 0 10px;
  }

  .nav-btn {
    padding: 7px 11px;
    letter-spacing: 0.02em;
  }

  .slide-dots {
    gap: 5px;
  }

  .step-status-pill {
    display: none;
  }

  .btn-reveal-all {
    padding: 3px 8px;
    font-size: 11px;
  }

  .slide-dot {
    width: 7px;
    height: 7px;
  }

  .slide-dot.is-active {
    width: 18px;
  }

  .slide-head {
    flex-wrap: wrap;
  }

  .slide-head > .slide-tag-pill {
    position: absolute;
    top: 0;
    right: 0;
    padding: 2px 7px 1px;
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .slide-kicker {
    padding-right: 76px;
    font-size: 11px;
    letter-spacing: 0.06em;
  }

  .gf-corner {
    width: 24px;
    height: 24px;
  }

  .slide-decor__seal {
    right: 10px;
    bottom: 9px;
  }

  .notice-paper .notice-pre {
    padding-right: 14px;
    padding-top: 46px;
  }

  .roster-summary-bar > span {
    flex-basis: 100%;
  }

  /* 第 1 页手机构图：题词上移至两上角，正文与玄青铭牌居中 */
  .cover-page.is-clean {
    padding: 132px 6px 20%;
    gap: 14px;
  }

  .cover-main-title {
    font-size: clamp(2rem, 1.2rem + 4.4vw, 2.7rem);
    letter-spacing: 0.05em;
  }

  .cover-plaque {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
  }

  .cover-plaque__seal {
    writing-mode: horizontal-tb;
    min-block-size: auto;
    min-inline-size: auto;
    padding: 0.2rem 0.65rem;
    font-size: 0.95rem;
  }

  .cover-roadmap {
    gap: 5px;
  }

  .cover-roadmap__chip {
    font-size: 0.76rem;
    padding: 0.2rem 0.5rem;
  }

  .cover-page.is-clean .cover-main-title {
    padding-left: 0.05em;
  }

  .cover-kicker,
  .cover-page.is-clean .pill-info {
    letter-spacing: 0.16em;
    gap: 8px;
  }

  .cover-art__poem {
    top: 34px;
    font-size: 14px;
    gap: 9px;
  }

  .cover-art__poem.is-left {
    left: 26px;
  }

  .cover-art__poem.is-left::after {
    left: calc(100% + 8px);
  }

  .cover-art__poem.is-right {
    right: 26px;
    font-size: 19px;
  }

  .cover-art__seal {
    top: auto;
    right: 26px;
    bottom: 30px;
  }

  .cover-art__seal .gf-seal {
    width: 32px;
    height: 54px;
  }

  .cover-art__seal-sub {
    left: 24px;
    bottom: 30px;
  }

  .cover-art__seal-sub .gf-seal {
    height: 28px;
    width: auto;
  }

  .cover-art__geese {
    left: 50%;
    top: 40px;
    width: 72px;
    margin-left: -36px;
  }

  .cover-art__cloud {
    width: 64px;
  }

  .cover-art__cloud.is-left {
    left: 8%;
    bottom: 27%;
  }

  .cover-art__cloud.is-right {
    right: 22%;
    top: 104px;
  }

  .cover-art__sun {
    right: 12%;
    bottom: 18%;
    width: 96px;
  }

  .cover-art__mountains {
    height: 30%;
  }

  .cover-art__wash {
    background: radial-gradient(ellipse 72% 34% at 50% 56%, rgba(247, 241, 227, 0.7) 0%, rgba(247, 241, 227, 0.42) 55%, rgba(247, 241, 227, 0) 100%);
  }

  .tac-wave-row {
    gap: 8px;
  }

  .tac-wave {
    grid-template-columns: 1fr;
    padding: 10px 10px 12px;
  }

  .tac-wave__clock {
    grid-row: auto;
    font-size: 1.25rem;
  }

  .tac-wave__do {
    display: none;
  }

  .tac-chain {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 12px;
  }

  .tac-chain ol {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    justify-content: flex-start;
    gap: 12px;
    padding-bottom: 2px;
  }
}

/* ==========================================================================
   真 PPT 逐条点击浮现演示系统 (data-ppt-step)
   ========================================================================== */
.cover-step-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.slide-stage.has-pending-steps {
  cursor: pointer;
}

.slide-stage.has-pending-steps button,
.slide-stage.has-pending-steps .map-svg-box,
.slide-stage.has-pending-steps .notice-paper,
.slide-stage.has-pending-steps [role="button"] {
  cursor: auto;
}

.slide-stage.has-pending-steps button,
.slide-stage.has-pending-steps [role="button"] {
  cursor: pointer;
}

.ppt-step {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .ppt-step {
    transform: translateY(14px);
    transition:
      opacity 0.36s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
      transform 0.36s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
      box-shadow 0.36s ease;
  }

  .discipline-card.ppt-step {
    transform: none;
    transition: opacity 0.2s ease var(--reveal-delay, 0ms), box-shadow 0.25s ease;
  }

  .ppt-step .bar-fill {
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.12s;
  }

  .ppt-step.is-revealed .bar-fill {
    transform: scaleX(1);
  }
}

.ppt-step.is-revealed {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.ppt-step.is-latest:not(.cover-step-group):not(.cover-action-bar):not(.gf-scroll-card):not(.is-critical) {
  box-shadow: 0 8px 24px rgba(23, 74, 99, 0.15), 0 0 0 1px rgba(184, 137, 58, 0.6);
}

.info-item-card.is-critical.is-latest {
  box-shadow:
    0 0 0 3px rgba(226, 192, 122, 0.78),
    0 0 22px rgba(226, 160, 90, 0.45),
    0 14px 28px -12px rgba(168, 35, 27, 0.6),
    inset 0 0 0 1px rgba(255, 255, 255, 0.85);
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes slip-unfurl {
    0% {
      clip-path: inset(0 100% 0 0 round 6px);
      translate: -10px 0;
      rotate: -1.2deg;
    }
    60% {
      clip-path: inset(0 round 6px);
      translate: 2px 0;
      rotate: 0.2deg;
    }
    100% {
      clip-path: inset(0 round 6px);
      translate: 0 0;
      rotate: 0deg;
    }
  }

  @keyframes gold-sweep {
    to {
      transform: translateX(120%);
    }
  }

  @keyframes ink-in {
    from {
      opacity: 0;
      scale: 1.6;
      filter: blur(3px);
    }
    to {
      opacity: 1;
      scale: 1;
      filter: none;
    }
  }

  @keyframes seal-drop {
    0% {
      opacity: 0;
      scale: 2.2;
      rotate: -18deg;
    }
    70% {
      opacity: 1;
      scale: 0.94;
      rotate: -8deg;
    }
    100% {
      opacity: 1;
      scale: 1;
      rotate: -8deg;
    }
  }

  @keyframes edict-slam {
    0% {
      opacity: 0;
      translate: 0 -18px;
      scale: 1.06;
    }
    55% {
      opacity: 1;
      translate: 0 2px;
      scale: 0.99;
    }
    100% {
      opacity: 1;
      translate: 0 0;
      scale: 1;
    }
  }

  @keyframes weight-drop {
    from {
      opacity: 0;
      translate: 0 -10px;
    }
    to {
      opacity: 1;
      translate: 0 0;
    }
  }

  @keyframes mark-ripple {
    0% {
      opacity: 0.65;
      scale: 0.4;
    }
    100% {
      opacity: 0;
      scale: 2.2;
    }
  }

  @keyframes chip-pop {
    from {
      opacity: 0;
      scale: 0.84;
      translate: 0 5px;
    }
    to {
      opacity: 1;
      scale: 1;
      translate: 0 0;
    }
  }

  @keyframes gf-critical-glow {
    0%,
    100% {
      box-shadow:
        0 0 0 3px rgba(226, 192, 122, 0.45),
        0 0 0 rgba(226, 160, 90, 0),
        0 12px 24px -12px rgba(168, 35, 27, 0.55),
        inset 0 0 0 1px rgba(255, 255, 255, 0.85);
    }
    50% {
      box-shadow:
        0 0 0 3px rgba(226, 192, 122, 0.85),
        0 0 20px rgba(226, 160, 90, 0.5),
        0 14px 28px -12px rgba(168, 35, 27, 0.6),
        inset 0 0 0 1px rgba(255, 255, 255, 0.85);
    }
  }

  .discipline-card.is-revealed {
    animation: slip-unfurl 0.62s cubic-bezier(0.2, 0.8, 0.2, 1) var(--reveal-delay, 0ms) both;
  }

  .discipline-card.is-revealed::after {
    animation: gold-sweep 0.9s ease-out calc(var(--reveal-delay, 0ms) + 0.45s) both;
  }

  .discipline-card.is-revealed .discipline-card__num {
    animation: ink-in 0.5s ease calc(var(--reveal-delay, 0ms) + 0.2s) both;
  }

  .discipline-card.is-revealed .discipline-card__seal {
    animation: seal-drop 0.42s cubic-bezier(0.3, 1.6, 0.5, 1) calc(var(--reveal-delay, 0ms) + 0.7s) both;
  }

  .info-item-card.is-critical.is-revealed {
    animation:
      edict-slam 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) var(--reveal-delay, 0ms) both,
      gf-critical-glow 2.4s ease-in-out calc(var(--reveal-delay, 0ms) + 0.55s) 2;
  }

  .info-item-card.is-critical.is-revealed .edict-weight {
    animation: weight-drop 0.36s cubic-bezier(0.2, 1.4, 0.4, 1) var(--reveal-delay, 0ms) both;
  }

  .info-item-card.is-critical.is-revealed .critical-mark {
    position: relative;
    animation: gf-critical-stamp 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) calc(var(--reveal-delay, 0ms) + 0.15s) both;
  }

  .info-item-card.is-critical.is-revealed .critical-mark::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--cinnabar);
    animation: mark-ripple 0.65s ease-out calc(var(--reveal-delay, 0ms) + 0.25s) both;
    pointer-events: none;
  }

  .edict-summary-strip.is-revealed .edict-summary-formula b {
    display: inline-block;
    animation: chip-pop 0.3s cubic-bezier(0.2, 1.3, 0.4, 1) calc(var(--k, 0) * 90ms + 0.2s) both;
  }

  @keyframes gf-critical-stamp {
    from {
      transform: scale(1.8) rotate(-12deg);
      opacity: 0;
    }
    to {
      transform: none;
      opacity: 1;
    }
  }
}

/* ==========================================================================
   第 3 / 5 页：我方出生侧镜像切换条（左蓝营 ⇄ 右红营）
   ========================================================================== */
.side-switch-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 8px 10px 8px 12px;
  border-radius: 3px;
  background:
    var(--tex-noise),
    linear-gradient(90deg, rgba(30, 86, 112, 0.1) 0%, rgba(255, 253, 248, 0.92) 30%, rgba(255, 253, 248, 0.92) 70%, rgba(185, 50, 40, 0.1) 100%);
  background-size: 180px 180px, 100% 100%;
  border: 1px solid rgba(197, 164, 103, 0.65);
  border-left: 3px solid var(--azurite);
  border-right: 3px solid var(--cinnabar);
  box-shadow: inset 0 0 0 2px rgba(255, 253, 248, 0.7), 0 6px 14px -12px rgba(70, 52, 20, 0.45);
}

.side-switch-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-family: var(--font-serif);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #7a3f0b;
}

.side-switch-label::before {
  content: "⇄";
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fffaf0;
  border: 1px solid var(--gold);
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 900;
}

.side-switch-group {
  display: inline-flex;
  flex-shrink: 0;
  gap: 3px;
  padding: 3px;
  border-radius: 4px;
  background: linear-gradient(180deg, #efe6d3, #f6efe1);
  border: 1px solid #d8c69f;
  box-shadow: inset 0 1px 2px rgba(70, 52, 20, 0.16);
}

.side-switch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 3px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-serif);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.side-switch-btn::before {
  content: "";
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--azurite);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
}

.side-switch-btn.is-right::before {
  background: var(--cinnabar);
}

.side-switch-btn:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(197, 164, 103, 0.6);
  color: var(--ink);
}

.side-switch-btn.is-active,
.side-switch-btn[aria-pressed="true"] {
  color: #fbf9f3;
  border-color: #16445a;
  background: linear-gradient(180deg, #2a6d88 0%, #1e5670 60%, #194a61 100%);
  box-shadow: inset 0 0 0 1px rgba(226, 197, 138, 0.75), 0 3px 8px -3px rgba(30, 86, 112, 0.6);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.side-switch-btn.is-right.is-active,
.side-switch-btn.is-right[aria-pressed="true"] {
  border-color: #7f1d16;
  background: linear-gradient(180deg, #d0402f 0%, #b93228 60%, #9e2219 100%);
  box-shadow: inset 0 0 0 1px rgba(243, 212, 142, 0.8), 0 3px 8px -3px rgba(185, 50, 40, 0.6);
}

.side-switch-btn.is-active::before,
.side-switch-btn[aria-pressed="true"]::before {
  background: #fde9b6;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35), 0 0 6px rgba(253, 233, 182, 0.9);
}

/* 第 5 页战术秒表 */
.route-stopwatch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  padding: 10px 12px;
  border-radius: 3px;
  background:
    var(--tex-noise),
    linear-gradient(135deg, #fffdf8, #f4ecdb);
  background-size: 180px 180px, 100% 100%;
  border: 1px solid rgba(197, 164, 103, 0.7);
  box-shadow: inset 0 0 0 3px #fffdf8, inset 0 0 0 4px rgba(197, 164, 103, 0.25), 0 8px 18px -14px rgba(70, 52, 20, 0.45);
}

.route-stopwatch__time {
  flex: 1 0 auto;
  min-width: 84px;
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--azurite);
  font-variant-numeric: tabular-nums;
}

.route-stopwatch__chip {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: #fffdf8;
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.route-stopwatch__chip.is-arrived {
  border-color: var(--jade);
  background: var(--jade-soft);
  color: var(--jade);
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.14);
}

#rt-sw-enemy.is-arrived {
  border-color: var(--cinnabar);
  background: var(--cinnabar-soft);
  color: var(--cinnabar);
  box-shadow: 0 0 0 2px rgba(185, 50, 40, 0.14);
}

/* ==========================================================================
   第 5 页：朱砂强调战术盒（落周围石块 / 开局入侵留尾刀）
   ========================================================================== */
.landing-alert-box {
  position: relative;
  padding: 12px 14px 12px 16px;
  border-radius: 3px;
  background:
    var(--tex-noise),
    repeating-linear-gradient(135deg, rgba(185, 50, 40, 0.03) 0 6px, transparent 6px 14px),
    linear-gradient(100deg, #fde4da 0%, #fff4ec 55%, #fffcf6 100%);
  background-size: 180px 180px, auto, 100% 100%;
  border: 1.5px solid var(--cinnabar);
  border-left-width: 5px;
  box-shadow:
    0 0 0 3px rgba(226, 192, 122, 0.45),
    0 12px 24px -14px rgba(185, 50, 40, 0.55);
}

.landing-alert-box::after {
  content: "";
  position: absolute;
  right: -1.5px;
  bottom: -1.5px;
  width: 16px;
  height: 16px;
  background: linear-gradient(315deg, #f7f2e6 0 7px, var(--cinnabar) 7px 8.6px, transparent 8.6px);
  pointer-events: none;
}

.landing-alert-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 7px;
}

.landing-alert-seal {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  padding: 2px 6px;
  border-radius: 2px;
  background: linear-gradient(180deg, #d0402f, #9e2219);
  border: 1px solid #e2c07a;
  box-shadow: 0 0 0 2px rgba(255, 248, 240, 0.9), 0 0 0 3px rgba(185, 50, 40, 0.35);
  color: #fde9b6;
  font-family: var(--font-kai);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.4;
  transform: rotate(-4deg);
}

.landing-alert-title {
  font-family: var(--font-serif);
  font-size: 15.5px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #8f1f17;
}

.landing-alert-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.landing-alert-list li {
  position: relative;
  padding-left: 16px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink);
}

.landing-alert-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  background: var(--cinnabar);
  transform: rotate(45deg);
  box-shadow: 0 0 0 2px rgba(226, 192, 122, 0.5);
}

.landing-alert-list b {
  color: #9e2219;
  font-family: var(--font-serif);
  font-weight: 900;
}

/* 手机端：切换条与必查项适配 */
@media (max-width: 600px) {
  .side-switch-bar {
    padding: 8px;
  }

  .side-switch-label {
    flex-basis: 100%;
    font-size: 12px;
  }

  .side-switch-group {
    flex: 1 1 100%;
  }

  .side-switch-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 7px 6px;
    font-size: 12px;
    white-space: normal;
    text-align: center;
  }

  .info-item-card.is-critical {
    padding-right: 14px;
    padding-top: 26px;
  }

  .card-panel.is-edict > .panel-heading::after {
    display: none;
  }

  .btn-primary.btn-sword,
  .cover-page.is-clean .btn-primary.btn-sword {
    min-height: 50px;
    padding: 8px 28px 8px 10px;
    font-size: 15.5px;
    letter-spacing: 0.14em;
  }

  .btn-sword__emblem {
    width: 32px;
    height: 32px;
  }
}

/* ==========================================================================
   第 2 页右栏口诀+上标贴士 & 第 3 页三段式饱满布局（三波 → 上平台+BOSS → 节奏链）
   ========================================================================== */
.edict-summary-strip {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(168, 35, 27, 0.45);
  background: rgba(255, 250, 240, 0.88);
  font-size: 0.86rem;
  color: #5c2a22;
}

.edict-summary-formula {
  text-align: center;
  line-height: 1.55;
}

.edict-summary-strip b {
  color: var(--cinnabar-deep);
  font-weight: 800;
}

.edict-mark-tip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 3px;
  background: color-mix(in oklab, var(--cinnabar-soft) 55%, #fffaf0);
  border: 1px solid color-mix(in oklab, var(--cinnabar) 28%, transparent);
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--ink);
  text-align: left;
}

.edict-mark-tip strong {
  color: var(--cinnabar-deep);
  font-family: var(--font-serif);
}

.tac-body {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  min-height: 0;
}

.card-panel.gf-scroll-card.tac-waves {
  padding: 15px 18px 16px;
  margin: 4px 0 0;
  gap: 10px;
}

.tac-wave-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tac-wave {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  row-gap: 3px;
  padding: 11px 14px;
  background: #fffaf0;
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--wave-tone, var(--azurite));
  border-radius: 4px;
  box-shadow: 0 6px 14px -12px rgba(52, 38, 14, 0.4);
}

.tac-wave__clock {
  grid-row: 1 / 4;
  align-self: center;
  font-family: var(--font-mono);
  font-size: 1.95rem;
  font-weight: 800;
  line-height: 1;
  color: var(--wave-tone, var(--azurite));
  font-variant-numeric: tabular-nums;
}

.tac-wave__name {
  font-family: var(--font-serif);
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--ink);
}

.tac-wave__what {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--wave-tone, var(--azurite));
  line-height: 1.45;
}

.tac-wave__do {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.tac-wave:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -16px;
  top: 50%;
  width: 9px;
  height: 9px;
  border: solid var(--gold);
  border-width: 2px 2px 0 0;
  transform: translateY(-50%) rotate(45deg);
}

.tac-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  min-height: 0;
}

.card-panel.gf-scroll-card.tac-rally,
.card-panel.gf-scroll-card.tac-boss {
  margin: 4px 0;
  padding: 18px 18px 16px;
  gap: 10px;
}

.tac-rally-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  flex: 1;
}

.tac-rally-diagram {
  line-height: 0;
  flex-shrink: 0;
}

.tac-rally-svg {
  display: block;
  filter: drop-shadow(0 4px 10px rgba(52, 38, 14, 0.14));
}

.tac-rally-points {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.tac-rally-points li {
  position: relative;
  padding: 5px 10px 5px 20px;
  border-radius: 3px;
  background: rgba(255, 250, 240, 0.85);
  border: 1px solid rgba(13, 107, 95, 0.24);
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink);
}

.tac-rally-points li::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0.82em;
  width: 6px;
  height: 6px;
  background: var(--jade);
  transform: rotate(45deg);
}

.tac-rally-points b {
  font-family: var(--font-serif);
  color: var(--jade-deep);
}

.tactic-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.tactic-card-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink);
}

.tactic-card-desc {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.68;
  color: var(--text-secondary);
  text-wrap: pretty;
}

.tactic-card-desc b {
  color: var(--cinnabar-deep);
}

.tac-chain {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 10px 16px;
  border-radius: 4px;
  background: linear-gradient(90deg var(--in-oklab), #0f3a40, #174a63);
  border: 1px solid var(--gold);
  box-shadow: inset 0 0 0 1px rgba(243, 230, 196, 0.22), 0 8px 18px -12px rgba(15, 58, 64, 0.55);
  color: #f3e6c4;
}

.tac-chain__label {
  flex-shrink: 0;
  padding: 2px 9px;
  border-radius: 2px;
  background: var(--cinnabar);
  border: 1px solid #e9c77b;
  color: #fbf3ea;
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.tac-chain ol {
  display: flex;
  flex: 1;
  min-width: 0;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.86rem;
  font-weight: 500;
  white-space: nowrap;
}

.tac-chain li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.tac-chain li + li::before {
  content: "›";
  margin-right: 4px;
  color: #e9c77b;
  font-weight: 800;
}

.tac-chain time {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 800;
  color: #e9c77b;
}

/* ==========================================================================
   第 3 / 4 / 5 卷：每波专属地图 + 图文分兵联动样式
   ========================================================================== */
.wave-slide-body {
  min-height: 0;
}

.wave-split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 0.96fr);
  align-items: start;
  gap: 16px;
  flex: 1;
  min-height: 0;
}

.wave-map-shell {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.wave-map-shell .map-svg {
  width: 100%;
  height: auto;
  max-height: min(400px, 50svh);
}

.wave-map-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.side-switch-group.is-compact {
  flex-shrink: 0;
  padding: 2px;
  gap: 2px;
}

.side-switch-group.is-compact .side-switch-btn {
  padding: 4px 9px;
  font-size: 0.78rem;
}

.route-tabs.is-wave-tabs {
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 5px;
}

.route-tabs.is-wave-tabs .route-tab {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 4px 10px;
  font-size: 0.8rem;
}

.btn-outline.is-compact {
  flex-shrink: 0;
  padding: 4px 10px;
  font-size: 0.78rem;
  white-space: nowrap;
}

.wave-chips {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.wave-chips .route-stopwatch__chip {
  padding: 2px 8px;
  font-size: 0.74rem;
}

.wave-chips .route-stopwatch__chip.is-cinnabar.is-arrived {
  border-color: var(--cinnabar);
  background: var(--cinnabar-soft);
  color: var(--cinnabar-deep);
  box-shadow: 0 0 0 2px rgba(168, 35, 27, 0.14);
}

.wave-chips .route-stopwatch__chip.is-amber.is-arrived {
  border-color: var(--amber);
  background: var(--amber-soft);
  color: #8a4b0a;
  box-shadow: 0 0 0 2px rgba(180, 83, 9, 0.14);
}

.wave-legend-row {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-deep);
  text-align: center;
  padding: 3px 10px;
  border-radius: 3px;
  background: rgba(255, 250, 240, 0.8);
  border: 1px dashed rgba(184, 137, 58, 0.45);
}

.wave-legend-row[hidden] {
  display: none;
}

.wave-side-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.wave-side-card {
  cursor: pointer;
  background: linear-gradient(180deg var(--in-oklab), #fffdf8, #f7eed6);
  border: 1px solid #d9cba9;
  border-left: 4px solid var(--azurite);
  border-radius: 4px;
  padding: 11px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-shadow: 0 6px 14px -12px rgba(52, 38, 14, 0.35);
}

.wave-side-card.is-jade {
  border-left-color: var(--jade);
}

.wave-side-card.is-cinnabar {
  border-left-color: var(--cinnabar);
}

.wave-side-card.is-amber {
  border-left-color: var(--amber);
}

.wave-side-card:hover {
  border-color: var(--gold);
  background: #fffdf8;
}

.wave-side-card.is-active-variant {
  background: #fffaf0;
  box-shadow:
    0 0 0 2px rgba(184, 137, 58, 0.75),
    0 10px 22px -12px rgba(23, 74, 99, 0.32);
}

.wave-side-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.wave-side-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 2px;
  font-family: var(--font-serif);
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--azurite);
  background: var(--azurite-soft);
  border: 1px solid rgba(23, 74, 99, 0.24);
}

.wave-side-badge.is-jade {
  color: var(--jade-deep);
  background: var(--jade-soft);
  border-color: rgba(13, 107, 95, 0.24);
}

.wave-side-badge.is-cinnabar {
  color: var(--cinnabar-deep);
  background: var(--cinnabar-soft);
  border-color: rgba(168, 35, 27, 0.28);
}

.wave-side-badge.is-amber {
  color: #8a4b0a;
  background: var(--amber-soft);
  border-color: rgba(180, 83, 9, 0.28);
}

.wave-side-metric {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--cinnabar);
}

.wave-side-card h4 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.38;
}

.wave-side-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-secondary);
  text-wrap: pretty;
}

.wave1-squad-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 8px;
  margin-top: 3px;
}

.wave1-squad-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 7px;
  border-radius: 3px;
  background: rgba(255, 250, 240, 0.88);
  border: 1px solid #e6dac0;
  font-size: 0.78rem;
  min-width: 0;
}

.wave1-squad-txt {
  flex: 1;
  min-width: 0;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wave-mechanism-note {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: 4px;
  background: linear-gradient(90deg var(--in-oklab), #f6dfda, #fffaf0);
  border: 1px solid rgba(168, 35, 27, 0.38);
  border-left: 4px solid var(--cinnabar);
  font-family: var(--font-serif);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--cinnabar-deep);
  line-height: 1.5;
}

.wave-arrive-ring {
  transform-box: fill-box;
  transform-origin: center;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes wave-arrive-pulse {
    0% {
      transform: scale(0.65);
      opacity: 0.85;
    }
    100% {
      transform: scale(1.45);
      opacity: 0;
    }
  }

  .wave-arrive-ring.is-arrived {
    animation: wave-arrive-pulse 1.5s ease-out infinite;
  }
}

@media (max-width: 900px) {
  .wave-split-layout {
    grid-template-columns: 1fr;
  }

  .wave-map-shell .map-svg {
    max-height: none;
  }
}

@media (max-width: 600px) {
  :root {
    --slip-w: 30px;
    --rod-w: 8px;
  }

  .scroll-rod {
    top: -5px;
    bottom: -5px;
  }

  .scroll-rod::before,
  .scroll-rod::after {
    height: 10px;
  }

  .wave-map-bar {
    flex-wrap: wrap;
  }

  .wave1-squad-grid {
    grid-template-columns: 1fr;
  }

  .discipline-card {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 11px 40px 11px 10px;
    gap: 9px;
  }

  .discipline-card__num {
    font-size: 1.45rem;
    padding-right: 7px;
  }

  .info-item-card.is-critical .edict-weight {
    right: 56px;
  }
}
