/* ==========================================================================
   三国大时代4·群英新篇 · 古风宣纸书册样式
   ========================================================================== */

:root {
  /* 宣纸与墨色 */
  --bg-page: #f5eee0;
  --bg-card: #fcf8ef;
  --bg-card-hover: #fffdf8;
  --bg-subtle: #efe5d2;
  --bg-nav: rgba(247, 240, 227, 0.92);
  --bg-table-head: #ede1ca;

  /* 卷首深棕木质色（呼应游戏内深棕底、细金边、米白字） */
  --masthead-bg-1: #2b1a11;
  --masthead-bg-2: #412719;
  --masthead-text: #f7efe1;
  --masthead-muted: #d2bfa3;

  /* 文字层次 */
  --ink-primary: #2a2016;
  --ink-secondary: #5a4a38;
  --ink-muted: #847059;

  /* 鎏金与朱砂印章色 */
  --gold: #b88b3b;
  --gold-bright: #dab466;
  --gold-line: #d6be8f;
  --gold-line-soft: rgba(184, 139, 59, 0.28);

  --cinnabar: #a62e23;
  --cinnabar-bg: rgba(166, 46, 35, 0.09);
  --cinnabar-border: rgba(166, 46, 35, 0.28);

  /* 标签语义色 */
  --tag-feature-bg: rgba(43, 108, 76, 0.10);
  --tag-feature-fg: #21593d;
  --tag-fix-bg: rgba(166, 46, 35, 0.10);
  --tag-fix-fg: #992a20;
  --tag-balance-bg: rgba(166, 108, 22, 0.12);
  --tag-balance-fg: #87520b;
  --tag-ui-bg: rgba(52, 87, 132, 0.10);
  --tag-ui-fg: #284b76;

  /* 搜索高亮 */
  --mark-bg: #f6d57a;
  --mark-fg: #22170c;

  /* 阴影与圆角 */
  --shadow-sm: 0 2px 8px rgba(46, 30, 14, 0.06);
  --shadow-md: 0 8px 24px rgba(46, 30, 14, 0.09);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  /* 字体栈（零外链阻塞，国内直连秒开） */
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
}

/* 夜间墨韵模式 */
[data-theme="dark"] {
  --bg-page: #15120f;
  --bg-card: #1f1a15;
  --bg-card-hover: #27201a;
  --bg-subtle: #2a231c;
  --bg-nav: rgba(24, 20, 16, 0.92);
  --bg-table-head: #2d251d;

  --masthead-bg-1: #120d0a;
  --masthead-bg-2: #241911;
  --masthead-text: #f3eadb;
  --masthead-muted: #baa68a;

  --ink-primary: #ece2d0;
  --ink-secondary: #bfb09a;
  --ink-muted: #8f7e69;

  --gold: #c99d4e;
  --gold-bright: #e0bd75;
  --gold-line: #5b4829;
  --gold-line-soft: rgba(201, 157, 78, 0.24);

  --cinnabar: #d95a49;
  --cinnabar-bg: rgba(217, 90, 73, 0.14);
  --cinnabar-border: rgba(217, 90, 73, 0.34);

  --tag-feature-bg: rgba(74, 173, 122, 0.15);
  --tag-feature-fg: #7dd3a5;
  --tag-fix-bg: rgba(217, 90, 73, 0.16);
  --tag-fix-fg: #f08a7c;
  --tag-balance-bg: rgba(218, 165, 67, 0.16);
  --tag-balance-fg: #e7be6d;
  --tag-ui-bg: rgba(102, 153, 214, 0.16);
  --tag-ui-fg: #90bcf0;

  --mark-bg: #7a5b14;
  --mark-fg: #fff4d2;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.42);
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-primary);
  background-color: var(--bg-page);
  background-image:
    radial-gradient(rgba(166, 124, 55, 0.05) 1px, transparent 0),
    radial-gradient(rgba(166, 124, 55, 0.03) 1px, transparent 0);
  background-size: 28px 28px;
  background-position: 0 0, 14px 14px;
  min-height: 100vh;
}

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

button {
  cursor: pointer;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.35;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
}

mark {
  background: var(--mark-bg);
  color: var(--mark-fg);
  padding: 0 2px;
  border-radius: 3px;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   顶部卷首（Masthead）
   ========================================================================== */

.masthead {
  position: relative;
  color: var(--masthead-text);
  background:
    radial-gradient(circle at 82% 20%, rgba(218, 180, 102, 0.14), transparent 48%),
    radial-gradient(circle at 12% 88%, rgba(166, 46, 35, 0.18), transparent 44%),
    linear-gradient(150deg, var(--masthead-bg-1) 0%, var(--masthead-bg-2) 100%);
  border-bottom: 3px solid var(--gold);
  box-shadow: inset 0 -1px 0 rgba(255, 232, 184, 0.2);
}

.masthead-inner {
  padding-top: 20px;
  padding-bottom: 34px;
}

.masthead-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.seal-stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fdf6ea;
  background: var(--cinnabar);
  border: 1.5px solid rgba(253, 246, 234, 0.72);
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  line-height: 1.2;
}

.seal-sm {
  font-size: 12px;
  padding: 2px 6px;
}

.brand-tag {
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
  opacity: 0.92;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--masthead-text);
  background: rgba(255, 245, 224, 0.08);
  border: 1px solid rgba(218, 180, 102, 0.42);
  border-radius: 999px;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.icon-btn:hover {
  background: rgba(218, 180, 102, 0.18);
  border-color: var(--gold-bright);
}

.masthead-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 28px;
  align-items: center;
}

.masthead-title-block h1 {
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: 0.06em;
  color: #fdf6ea;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.masthead-desc {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--masthead-muted);
  max-width: 520px;
}

.masthead-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 20px;
}

.stat-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 247, 232, 0.07);
  border: 1px solid rgba(218, 180, 102, 0.25);
  border-radius: var(--radius-sm);
}

.stat-value {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--gold-bright);
}

.stat-label {
  font-size: 12.5px;
  color: var(--masthead-muted);
}

/* 最新版本速览卡片 */
.latest-card {
  position: relative;
  padding: 20px 22px;
  background: rgba(22, 13, 8, 0.52);
  border: 1px solid rgba(218, 180, 102, 0.48);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

/* 古风角饰 */
.corner {
  position: absolute;
  width: 11px;
  height: 11px;
  border-color: var(--gold-bright);
  border-style: solid;
  pointer-events: none;
}

.corner-tl { top: 5px; left: 5px; border-width: 1.5px 0 0 1.5px; }
.corner-tr { top: 5px; right: 5px; border-width: 1.5px 1.5px 0 0; }
.corner-bl { bottom: 5px; left: 5px; border-width: 0 0 1.5px 1.5px; }
.corner-br { bottom: 5px; right: 5px; border-width: 0 1.5px 1.5px 0; }

.latest-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.latest-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  font-size: 12px;
  font-weight: 600;
  color: #fff8ec;
  background: var(--cinnabar);
  border-radius: 4px;
  letter-spacing: 0.06em;
}

.latest-date {
  font-size: 12.5px;
  color: var(--masthead-muted);
  font-family: var(--font-mono);
}

.latest-version-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.latest-ver-num {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--gold-bright);
  letter-spacing: 0.02em;
}

.latest-ver-title {
  font-family: var(--font-serif);
  font-size: 16.5px;
  color: #fdf6ea;
}

.latest-summary {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--masthead-muted);
  line-height: 1.65;
}

.latest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.gold-btn {
  padding: 7px 15px;
  font-size: 13.5px;
  font-weight: 600;
  color: #2b1a11;
  background: linear-gradient(180deg, #e7c57c 0%, #c99b44 100%);
  border: 1px solid #f0d598;
  border-radius: var(--radius-sm);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.gold-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.ghost-gold-btn {
  padding: 7px 14px;
  font-size: 13.5px;
  color: var(--gold-bright);
  background: transparent;
  border: 1px solid rgba(218, 180, 102, 0.5);
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}

.ghost-gold-btn:hover {
  background: rgba(218, 180, 102, 0.14);
}

/* ==========================================================================
   吸顶导航与搜索
   ========================================================================== */

.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-nav);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gold-line);
  box-shadow: var(--shadow-sm);
}

.sticky-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.main-tabs {
  display: inline-flex;
  background: var(--bg-subtle);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gold-line-soft);
  flex-shrink: 0;
}

.main-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-secondary);
  background: transparent;
  border: none;
  border-radius: 7px;
  transition: all 0.18s ease;
}

.main-tab:hover {
  color: var(--ink-primary);
}

.main-tab.is-active {
  color: #fdf6ea;
  background: linear-gradient(180deg, #4b2f1e 0%, #331f14 100%);
  box-shadow: 0 2px 8px rgba(46, 26, 14, 0.25);
}

[data-theme="dark"] .main-tab.is-active {
  color: #1c130c;
  background: linear-gradient(180deg, #dfb86c 0%, #c1923d 100%);
}

.tab-count {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(132, 112, 89, 0.16);
  color: inherit;
}

.main-tab.is-active .tab-count {
  background: rgba(255, 255, 255, 0.18);
}

[data-theme="dark"] .main-tab.is-active .tab-count {
  background: rgba(28, 19, 12, 0.16);
}

.search-wrap {
  position: relative;
  flex: 1;
  max-width: 440px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--ink-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 8px 34px 8px 34px;
  font-size: 14px;
  background: var(--bg-card);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.search-input::placeholder {
  color: var(--ink-muted);
}

.search-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 139, 59, 0.18);
}

.clear-search-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--ink-secondary);
  font-size: 15px;
  line-height: 1;
}

.clear-search-btn:hover {
  background: var(--cinnabar-bg);
  color: var(--cinnabar);
}

/* ==========================================================================
   主内容区与通用块
   ========================================================================== */

.main-content {
  padding-top: 28px;
  padding-bottom: 56px;
}

.section-block + .section-block {
  margin-top: 38px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gold-line-soft);
}

.section-title {
  position: relative;
  font-size: 21px;
  color: var(--ink-primary);
  padding-left: 14px;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--cinnabar), var(--gold));
}

.section-sub {
  margin-top: 4px;
  padding-left: 14px;
  font-size: 13.5px;
  color: var(--ink-muted);
}

.text-link-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 4px 2px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--cinnabar);
}

.text-link-btn:hover {
  text-decoration: underline;
}

/* ==========================================================================
   视图一：改动总览
   ========================================================================== */

/* 近期更新速递 */
.recent-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.recent-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 15px 17px;
  background: var(--bg-card);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.recent-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}

.recent-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.recent-ver {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--cinnabar);
}

.recent-title {
  margin-top: 6px;
  font-family: var(--font-serif);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink-primary);
}

.recent-desc {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 分类筛选胶囊 */
.filter-bar, .era-bar, .tag-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-bar {
  margin-bottom: 16px;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  font-size: 13.5px;
  color: var(--ink-secondary);
  background: var(--bg-card);
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  transition: all 0.15s ease;
}

.pill-btn:hover {
  border-color: var(--gold);
  color: var(--ink-primary);
}

.pill-btn.is-active {
  color: #fdf6ea;
  background: var(--cinnabar);
  border-color: var(--cinnabar);
}

.pill-count {
  font-size: 11.5px;
  opacity: 0.78;
}

/* 25 大系统总汇网格 */
.systems-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.system-card {
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--gold-line-soft);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.16s ease, background 0.16s ease;
}

.system-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold);
}

.system-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.system-name {
  font-family: var(--font-serif);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink-primary);
}

.system-cat-tag {
  flex-shrink: 0;
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--bg-subtle);
  color: var(--ink-muted);
}

.system-desc {
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.72;
}

/* 核心规则速查（子标签） */
.sub-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.sub-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-secondary);
  background: var(--bg-card);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-sm);
  transition: all 0.16s ease;
}

.sub-tab:hover {
  border-color: var(--gold);
  color: var(--ink-primary);
}

.sub-tab.is-active {
  color: #fdf6ea;
  background: #3d2618;
  border-color: #3d2618;
}

[data-theme="dark"] .sub-tab.is-active {
  color: #1c130c;
  background: var(--gold-bright);
  border-color: var(--gold-bright);
}

.sub-count {
  font-family: var(--font-sans);
  font-size: 12px;
  opacity: 0.8;
}

.ref-panel {
  display: none;
}

.ref-panel.is-active {
  display: block;
}

.ref-intro {
  margin-bottom: 14px;
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--ink-secondary);
  background: var(--bg-subtle);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
}

/* 特技卡片网格 */
.talents-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.talent-card {
  padding: 15px 16px;
  background: var(--bg-card);
  border: 1px solid var(--gold-line-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

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

.talent-id {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  padding: 0 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--cinnabar);
  background: var(--cinnabar-bg);
  border: 1px solid var(--cinnabar-border);
  border-radius: 4px;
}

.talent-name {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-primary);
}

.talent-effect {
  font-size: 13.8px;
  color: var(--ink-secondary);
  line-height: 1.7;
}

/* 特色兵与线索网格 */
.clues-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.clue-card {
  padding: 15px 17px;
  background: var(--bg-card);
  border: 1px solid var(--gold-line-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.clue-name {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--cinnabar);
  margin-bottom: 6px;
}

.clue-rule {
  font-size: 13.8px;
  color: var(--ink-secondary);
  line-height: 1.7;
}

/* 成长与升品面板 */
.growth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.growth-card {
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.growth-card h3 {
  font-size: 17px;
  color: var(--ink-primary);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--gold-line);
}

.growth-intro {
  font-size: 13.8px;
  color: var(--ink-secondary);
  margin-bottom: 12px;
}

.bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bullet-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.72;
}

.bullet-list li::before {
  content: "▪";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-size: 13px;
}

/* 优雅古风表格 */
.table-wrap {
  overflow-x: auto;
  margin: 12px 0;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-sm);
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.styled-table th,
.styled-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--gold-line-soft);
}

.styled-table th {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--ink-primary);
  background: var(--bg-table-head);
}

.styled-table tr:last-child td {
  border-bottom: none;
}

.styled-table tbody tr:hover {
  background: rgba(184, 139, 59, 0.06);
}

/* 后续计划 */
.planned-card {
  padding: 16px 20px;
  background: var(--bg-subtle);
  border: 1px dashed var(--gold);
  border-radius: var(--radius-md);
}

.planned-badge {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 8px;
}

.planned-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.planned-list li {
  font-size: 13.8px;
  color: var(--ink-secondary);
  padding-left: 14px;
  position: relative;
}

.planned-list li::before {
  content: "◇";
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ==========================================================================
   视图二：逐版更新（时间轴）
   ========================================================================== */

.versions-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.versions-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--gold-line-soft);
}

.versions-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.control-pill {
  padding: 5px 12px;
  font-size: 13px;
  color: var(--ink-secondary);
  background: var(--bg-subtle);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.control-pill:hover {
  border-color: var(--gold);
  color: var(--ink-primary);
}

.versions-status-bar {
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--ink-muted);
}

/* 卷轴时间轴 */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-left: 22px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--cinnabar) 0%, var(--gold-line) 24%, var(--gold-line-soft) 100%);
}

.version-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--gold-line-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  scroll-margin-top: 84px;
}

.version-card::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 22px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2.5px solid var(--gold);
}

.version-card.is-official {
  border-color: var(--gold);
}

.version-card.is-official::before {
  background: var(--cinnabar);
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 3px var(--cinnabar-bg);
}

.version-card.is-highlighted {
  border-color: var(--cinnabar);
  box-shadow: 0 0 0 3px var(--cinnabar-bg), var(--shadow-md);
}

.version-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 15px 18px;
  text-align: left;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
}

.version-header:hover {
  background: rgba(184, 139, 59, 0.05);
}

.version-head-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.version-title-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.version-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  border-radius: 5px;
  color: var(--ink-primary);
  background: var(--bg-subtle);
  border: 1px solid var(--gold-line);
}

.version-card.is-official .version-badge {
  color: #fdf6ea;
  background: var(--cinnabar);
  border-color: var(--cinnabar);
}

.version-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-primary);
}

.version-tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
}

.v-tag {
  font-size: 11.5px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 4px;
}

.v-tag-official { background: var(--cinnabar-bg); color: var(--cinnabar); }
.v-tag-feature  { background: var(--tag-feature-bg); color: var(--tag-feature-fg); }
.v-tag-fix      { background: var(--tag-fix-bg); color: var(--tag-fix-fg); }
.v-tag-balance  { background: var(--tag-balance-bg); color: var(--tag-balance-fg); }
.v-tag-ui       { background: var(--tag-ui-bg); color: var(--tag-ui-fg); }

.version-collapsed-preview {
  font-size: 13.5px;
  color: var(--ink-muted);
  line-height: 1.55;
}

.version-card.is-open .version-collapsed-preview {
  display: none;
}

.version-head-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding-top: 2px;
}

.share-anchor-btn {
  padding: 3px 8px;
  font-size: 12px;
  color: var(--ink-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.share-anchor-btn:hover {
  color: var(--ink-primary);
  border-color: var(--gold-line);
  background: var(--bg-subtle);
}

.chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 12px;
  color: var(--ink-muted);
  transition: transform 0.2s ease;
}

.version-card.is-open .chevron {
  transform: rotate(180deg);
}

.version-body {
  display: none;
  padding: 0 18px 18px 18px;
  border-top: 1px dashed var(--gold-line-soft);
}

.version-card.is-open .version-body {
  display: block;
  padding-top: 14px;
}

.superseded-banner {
  margin-bottom: 12px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--tag-balance-fg);
  background: var(--tag-balance-bg);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
}

.extra-group {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--gold-line-soft);
}

.extra-group-title {
  font-family: var(--font-serif);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 8px;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--ink-muted);
  background: var(--bg-card);
  border: 1px dashed var(--gold-line);
  border-radius: var(--radius-md);
}

.empty-state .control-pill {
  margin-top: 12px;
}

/* ==========================================================================
   页脚与悬浮控件
   ========================================================================== */

.site-footer {
  margin-top: 24px;
  padding: 28px 0 36px;
  background: var(--bg-subtle);
  border-top: 2px solid var(--gold-line);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-primary);
}

.footer-meta {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 2px;
}

.footer-community {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-md);
}

.qq-label {
  font-size: 13.5px;
  color: var(--ink-secondary);
}

.qq-number {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--cinnabar);
  letter-spacing: 0.04em;
}

.copy-pill {
  margin-left: auto;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-primary);
  background: var(--bg-subtle);
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  transition: all 0.15s ease;
}

.copy-pill:hover {
  border-color: var(--cinnabar);
  color: var(--cinnabar);
}

.footer-disclaimer {
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 1.65;
}

/* 返回顶部印章按钮 */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 60;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1.5px solid var(--gold-bright);
  background: #362116;
  color: var(--gold-bright);
  font-size: 18px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.back-to-top:hover {
  transform: translateY(-2px);
}

/* 轻提示 Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 80;
  padding: 9px 18px;
  font-size: 13.5px;
  color: #fdf6ea;
  background: #2f1d13;
  border: 1px solid var(--gold-bright);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   响应式（移动端优先体验）
   ========================================================================== */

@media (max-width: 860px) {
  .masthead-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .recent-strip {
    grid-template-columns: 1fr;
  }

  .systems-grid,
  .talents-grid,
  .clues-grid,
  .growth-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .container {
    padding: 0 14px;
  }

  .sticky-nav-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .main-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .main-tab {
    justify-content: center;
    padding: 8px 10px;
    font-size: 14.5px;
  }

  .search-wrap {
    max-width: none;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .timeline {
    padding-left: 16px;
  }

  .timeline::before {
    left: 4px;
  }

  .version-card::before {
    left: -16px;
    width: 9px;
    height: 9px;
  }

  .version-header {
    padding: 13px 14px;
  }

  .version-body {
    padding-left: 14px;
    padding-right: 14px;
  }

  .share-anchor-btn {
    display: none;
  }

  .footer-community {
    justify-content: space-between;
  }

  .copy-pill {
    margin-left: 0;
  }
}
