/* ==========================================================================
   EF2 图鉴 · 设计系统
   ========================================================================== */

:root {
  /* 表面 */
  --bg:        #0d0f14;
  --bg-raise:  #141821;
  --bg-card:   #191e29;
  --bg-hover:  #212734;
  --bg-inset:  #0a0c11;
  --line:      #262d3b;
  --line-soft: #1e242f;

  /* 文本 */
  --text:      #e6e9f0;
  --text-dim:  #98a1b3;
  --text-mute: #667085;

  /* 品牌 */
  --gold:      #d9b25f;
  --gold-dim:  #8a713a;
  --accent:    #7c6cff;
  --accent-2:  #4fd1c5;

  /* 语义 */
  --up:        #5fb87a;
  --down:      #e0685c;
  --warn:      #e0a04a;

  /* 种族 */
  --t-human:   #5b9bd5;
  --t-elf:     #5fb87a;
  --t-orc:     #d1603f;
  --t-undead:  #9b6bd6;

  /* 品质 */
  --q1: #8d97a8;
  --q2: #5fb87a;
  --q3: #5b9bd5;
  --q4: #a273e0;
  --q5: #e0924a;
  --q6: #e05c5c;
  --q7: #f0d17a;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 8px 28px rgba(0, 0, 0, .45);
  --topbar-bg: rgba(20, 24, 33, .90);
  --font: "PingFang SC", "Microsoft YaHei", -apple-system, "Segoe UI", system-ui, sans-serif;
  --mono: "SF Mono", "Cascadia Mono", Consolas, monospace;
}

html[data-theme="light"] {
  --bg:        #f6f7fa;
  --bg-raise:  #ffffff;
  --bg-card:   #ffffff;
  --bg-hover:  #eef1f6;
  --bg-inset:  #f0f2f6;
  --line:      #dde1e9;
  --line-soft: #e8ebf1;
  --text:      #1a1d24;
  --text-dim:  #5a6373;
  --text-mute: #8d95a5;
  --gold:      #9a7628;
  --gold-dim:  #c9b48a;
  --shadow:    0 8px 24px rgba(20, 25, 40, .10);
  --topbar-bg: rgba(255, 255, 255, .92);
  --q1: #6b7585;
  --q5: #c97a2e;
  --q6: #c94a4a;
  --q7: #a8862a;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; }

::selection { background: var(--accent); color: #fff; }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-mute); }

/* ==========================================================================
   顶栏
   ========================================================================== */
.topbar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 20px;
  height: 58px; padding: 0 22px;
  background: var(--topbar-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 7px;
  background: linear-gradient(135deg, var(--gold), #8a5a1f);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 800; color: #1a1206;
  letter-spacing: -.5px;
}
.brand-text { font-size: 14px; font-weight: 700; letter-spacing: .3px; white-space: nowrap; }
.brand-text small { display: block; font-size: 10px; font-weight: 500; color: var(--text-mute); letter-spacing: 1.4px; }

.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  padding: 7px 13px; border-radius: var(--radius-sm);
  font-size: 13px; color: var(--text-dim); white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav a:hover { background: var(--bg-hover); color: var(--text); }
.nav a.active { background: var(--bg-card); color: var(--gold); box-shadow: inset 0 0 0 1px var(--line); }

.topbar-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.icon-btn {
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  background: transparent; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--text-dim);
  transition: .15s;
}
.icon-btn:hover { background: var(--bg-hover); color: var(--text); border-color: var(--text-mute); }

.lang-switch {
  display: flex; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden;
}
.lang-switch button {
  padding: 5px 10px; background: transparent; border: 0; font-size: 12px;
  color: var(--text-mute); transition: .15s;
}
.lang-switch button.on { background: var(--bg-card); color: var(--gold); }

/* ==========================================================================
   布局
   ========================================================================== */
.wrap { max-width: 1320px; margin: 0 auto; padding: 28px 22px 80px; }

.page-head { margin-bottom: 22px; }
.page-head h1 { margin: 0 0 6px; font-size: 24px; font-weight: 700; letter-spacing: -.2px; }
.page-head p { margin: 0; color: var(--text-dim); font-size: 13px; }

.section-title {
  display: flex; align-items: center; gap: 10px;
  margin: 34px 0 14px; font-size: 15px; font-weight: 700;
}
.section-title::before {
  content: ""; width: 3px; height: 15px; border-radius: 2px;
  background: linear-gradient(180deg, var(--gold), var(--gold-dim));
}
.section-title .sub { font-weight: 400; font-size: 12px; color: var(--text-mute); }

/* ==========================================================================
   首页 hero
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  padding: 40px 34px; border-radius: 16px;
  border: 1px solid var(--line);
  background:
    radial-gradient(900px 320px at 12% -30%, rgba(124,108,255,.22), transparent 65%),
    radial-gradient(700px 300px at 88% 130%, rgba(217,178,95,.14), transparent 60%),
    var(--bg-raise);
}
.hero h1 { margin: 0 0 10px; font-size: 30px; font-weight: 800; letter-spacing: -.6px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p { margin: 0; max-width: 620px; color: var(--text-dim); font-size: 14px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 100px;
  background: var(--bg-card); border: 1px solid var(--line);
  font-size: 12px; color: var(--text-dim);
}
.pill b { color: var(--text); font-weight: 600; }

.stat-grid {
  display: grid; gap: 12px; margin-top: 16px;
  grid-template-columns: repeat(6, 1fr);
}
.stat {
  padding: 16px 18px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--line);
  transition: .18s;
}
.stat:hover { border-color: var(--gold-dim); transform: translateY(-2px); }
.stat .n { font-size: 26px; font-weight: 800; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.stat .l { font-size: 12px; color: var(--text-mute); margin-top: 2px; }

.entry-grid {
  display: grid; gap: 12px; margin-top: 16px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.entry {
  display: block; padding: 18px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--line);
  transition: .18s;
}
.entry:hover { background: var(--bg-hover); border-color: var(--accent); transform: translateY(-2px); }
.entry .t { font-size: 15px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.entry .t span { font-size: 18px; }
.entry .d { margin-top: 5px; font-size: 12.5px; color: var(--text-dim); }

/* ==========================================================================
   工具栏 / 筛选
   ========================================================================== */
.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 14px 16px; border-radius: var(--radius);
  background: var(--bg-raise); border: 1px solid var(--line);
  position: sticky; top: 70px; z-index: 30;
  backdrop-filter: blur(10px);
}
.toolbar .spacer { flex: 1; }

.search-box { position: relative; flex: 0 1 260px; min-width: 180px; }
.search-box input {
  width: 100%; padding: 8px 12px 8px 32px;
  background: var(--bg-inset); border: 1px solid var(--line);
  border-radius: var(--radius-sm); color: var(--text); font-size: 13px;
  outline: none; transition: .15s;
}
.search-box input:focus { border-color: var(--accent); }
.search-box input::placeholder { color: var(--text-mute); }
.search-box::before {
  content: "⌕"; position: absolute; left: 11px; top: 50%; transform: translateY(-52%);
  color: var(--text-mute); font-size: 16px; pointer-events: none;
}

.seg { display: flex; gap: 2px; padding: 2px; background: var(--bg-inset); border-radius: var(--radius-sm); border: 1px solid var(--line); }
.seg button {
  padding: 5px 10px; background: transparent; border: 0; border-radius: 4px;
  font-size: 12px; color: var(--text-dim); transition: .15s; white-space: nowrap;
}
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--bg-hover); color: var(--gold); font-weight: 600; }

select.mini {
  padding: 7px 10px; background: var(--bg-inset); border: 1px solid var(--line);
  border-radius: var(--radius-sm); color: var(--text-dim); font-size: 12.5px;
  outline: none; cursor: pointer;
}
select.mini:focus { border-color: var(--accent); }

.count-tip { font-size: 12px; color: var(--text-mute); font-variant-numeric: tabular-nums; }

/* ==========================================================================
   卡片
   ========================================================================== */
.card-grid {
  display: grid; gap: 10px; margin-top: 16px;
  grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
}
.card-grid.wide { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.card {
  position: relative; overflow: hidden; text-align: left;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 12px 8px 10px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--line);
  transition: transform .16s, border-color .16s, background .16s;
}
.card:hover { transform: translateY(-3px); border-color: var(--gold-dim); background: var(--bg-hover); }

.thumb {
  width: 62px; height: 62px; display: grid; place-items: center;
  border-radius: 8px; background: var(--bg-inset); overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line-soft);
}
.thumb img { width: 100%; height: 100%; object-fit: contain; image-rendering: -webkit-optimize-contrast; }
.thumb.lg { width: 82px; height: 82px; }

.thumb-fallback {
  font-size: 22px; font-weight: 800; color: var(--text-mute);
  letter-spacing: -.5px;
}

.card .nm {
  font-size: 12.5px; font-weight: 600; text-align: center; line-height: 1.3;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.card .tags { display: flex; gap: 3px; flex-wrap: wrap; justify-content: center; }

.rank-badge {
  position: absolute; top: 7px; right: 7px;
  min-width: 17px; height: 17px; padding: 0 4px;
  display: grid; place-items: center;
  border-radius: 4px; font-size: 10px; font-weight: 700;
  background: var(--bg-inset); border: 1px solid var(--line);
  color: var(--text-dim); font-variant-numeric: tabular-nums;
}

.chip {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 1px 6px; border-radius: 4px; font-size: 10.5px; font-weight: 600;
  background: var(--bg-inset); color: var(--text-dim); border: 1px solid var(--line-soft);
  white-space: nowrap;
}
.chip.human  { color: var(--t-human);  border-color: var(--t-human); }
.chip.elf    { color: var(--t-elf);    border-color: var(--t-elf); }
.chip.orc    { color: var(--t-orc);    border-color: var(--t-orc); }
.chip.undead { color: var(--t-undead); border-color: var(--t-undead); }
.chip.gold   { color: var(--gold); border-color: var(--gold-dim); }
.chip.accent { color: var(--accent-2); border-color: var(--accent-2); }
/* 星级徽章：颜色由行内 --gc 决定 */
.chip.star {
  color: var(--gc, var(--text-dim));
  border-color: var(--gc, var(--line));
  font-weight: 700; letter-spacing: .3px;
}

.card .grade-bar {
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
}

/* 星级配色：卡片带 data-grade，颜色由主题变量给，内联不写死 */
.card[data-grade="1"] { --gc: var(--q1); }
.card[data-grade="2"] { --gc: var(--q2); }
.card[data-grade="3"] { --gc: var(--q3); }
.card[data-grade="4"] { --gc: var(--q4); }
.card[data-grade="5"] { --gc: var(--q5); }
.card[data-grade="6"] { --gc: var(--q6); }
.card[data-grade="7"] { --gc: var(--q7); }
.card[data-grade="1"] .grade-bar, .card[data-grade="2"] .grade-bar,
.card[data-grade="3"] .grade-bar, .card[data-grade="4"] .grade-bar,
.card[data-grade="5"] .grade-bar, .card[data-grade="6"] .grade-bar,
.card[data-grade="7"] .grade-bar { background: var(--gc); }

/* 套装卡再叠一层同色淡底：5★ 橙 / 6★ 红 / 7★ 金，1–4★ 不着色 */
.card.set-card[data-grade="5"] { --gs: rgba(224, 146, 74, .13); }
.card.set-card[data-grade="6"] { --gs: rgba(224, 92, 92, .13); }
.card.set-card[data-grade="7"] { --gs: rgba(240, 209, 122, .16); }
html[data-theme="light"] .card.set-card[data-grade="5"] { --gs: rgba(201, 122, 46, .16); }
html[data-theme="light"] .card.set-card[data-grade="6"] { --gs: rgba(201, 74, 74, .15); }
html[data-theme="light"] .card.set-card[data-grade="7"] { --gs: rgba(168, 134, 42, .16); }
.card.set-card[data-grade="5"],
.card.set-card[data-grade="6"],
.card.set-card[data-grade="7"] {
  border-color: var(--gs);
  background: linear-gradient(100deg, var(--gs), transparent 62%), var(--bg-card);
}
.card.set-card[data-grade="5"]:hover,
.card.set-card[data-grade="6"]:hover,
.card.set-card[data-grade="7"]:hover {
  border-color: var(--gc);
  background: linear-gradient(100deg, var(--gs), transparent 62%), var(--bg-hover);
}

/* ==========================================================================
   表格
   ========================================================================== */
.table-wrap {
  margin-top: 16px; border-radius: var(--radius); overflow: auto;
  border: 1px solid var(--line); background: var(--bg-card);
  max-height: calc(100vh - 220px);
}
table.grid { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.grid th, table.grid td { padding: 8px 10px; text-align: left; white-space: nowrap; }
table.grid thead th {
  position: sticky; top: 0; z-index: 2;
  background: var(--bg-raise); color: var(--text-dim);
  font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .4px;
  border-bottom: 1px solid var(--line);
  cursor: pointer; user-select: none;
}
table.grid thead th:hover { color: var(--gold); }
table.grid thead th.sorted { color: var(--gold); }
table.grid tbody tr { border-bottom: 1px solid var(--line-soft); cursor: pointer; }
table.grid tbody tr:hover { background: var(--bg-hover); }
table.grid td.num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--mono); font-size: 12px; }
table.grid td .cell-name { display: flex; align-items: center; gap: 8px; }
table.grid td .cell-name img { width: 24px; height: 24px; object-fit: cover; border-radius: 50%; background: var(--bg-inset); }
table.grid td .cell-name .cell-icon-fallback {
  width: 24px; height: 24px; flex: none; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-inset); color: var(--text-mute);
  border: 1px solid var(--line);
  font-size: 11px; font-weight: 700; line-height: 1;
  font-variant-numeric: tabular-nums;
}
table.grid td .cell-name .cb-human  { color: var(--t-human);  border-color: var(--t-human); }
table.grid td .cell-name .cb-elf    { color: var(--t-elf);    border-color: var(--t-elf); }
table.grid td .cell-name .cb-orc    { color: var(--t-orc);    border-color: var(--t-orc); }
table.grid td .cell-name .cb-undead { color: var(--t-undead); border-color: var(--t-undead); }

/* ==========================================================================
   详情抽屉
   ========================================================================== */
.drawer-mask {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(4, 6, 10, .62); backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity .22s;
}
.drawer-mask.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; z-index: 90; top: 0; right: 0; bottom: 0;
  width: min(560px, 100%);
  display: flex; flex-direction: column;
  background: var(--bg-raise); border-left: 1px solid var(--line);
  box-shadow: -20px 0 60px rgba(0, 0, 0, .4);
  transform: translateX(102%); transition: transform .26s cubic-bezier(.4, 0, .2, 1);
}
.drawer.open { transform: none; }

.drawer-head {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 20px 22px 16px; border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.drawer-head .thumb { width: 66px; height: 66px; flex-shrink: 0; }
.drawer-head h2 { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.3; }
.drawer-head .sub { font-size: 12px; color: var(--text-mute); margin-top: 2px; }
.drawer-head .tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.drawer-close {
  margin-left: auto; width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 6px; background: transparent; border: 1px solid var(--line);
  color: var(--text-dim); font-size: 15px; line-height: 1;
}
.drawer-close:hover { background: var(--bg-hover); color: var(--text); }

.drawer-body { padding: 18px 22px 40px; overflow-y: auto; flex: 1; }

.kv { display: grid; grid-template-columns: 92px 1fr; gap: 6px 12px; font-size: 12.5px; }
.kv dt { color: var(--text-mute); }
.kv dd { margin: 0; }

.skill-block {
  padding: 12px 14px; margin-bottom: 10px;
  border-radius: var(--radius-sm); background: var(--bg-card); border: 1px solid var(--line);
}
.skill-block .sk-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.skill-block .sk-slot {
  font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 4px;
  background: var(--bg-inset); color: var(--text-mute); border: 1px solid var(--line);
  text-transform: uppercase; letter-spacing: .5px; flex-shrink: 0;
}
.skill-block .sk-slot.master { color: var(--gold); border-color: var(--gold-dim); }
.skill-block .sk-name {
  font-size: 12.5px; font-weight: 600; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.skill-block .sk-name.clip { color: var(--gold); }
.skill-block .sk-desc { font-size: 12.5px; color: var(--text-dim); line-height: 1.65; }
.skill-block .sk-desc b { color: var(--gold); font-weight: 600; }
.skill-block .sk-id { margin-left: auto; font-size: 10.5px; color: var(--text-mute); font-family: var(--mono); }

.star-row {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px;
  margin-top: 9px; font-size: 11.5px;
}
.star-cell {
  padding: 4px 5px; border-radius: 4px; text-align: center;
  background: var(--bg-inset); border: 1px solid var(--line-soft);
}
.star-cell .s { display: block; font-size: 9.5px; color: var(--text-mute); }
.star-cell .v { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); }

/* ==========================================================================
   杂项
   ========================================================================== */
.empty {
  padding: 60px 20px; text-align: center; color: var(--text-mute); font-size: 13px;
  border: 1px dashed var(--line); border-radius: var(--radius); margin-top: 16px;
}

.note {
  padding: 12px 15px; border-radius: var(--radius-sm);
  background: rgba(224, 160, 74, .09);
  border: 1px solid rgba(224, 160, 74, .32);
  font-size: 12.5px; color: var(--text-dim); line-height: 1.65;
}
.note b { color: var(--warn); }

.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11.5px; color: var(--text-mute); margin-top: 10px; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; }

.footer {
  margin-top: 60px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 11.5px; color: var(--text-mute); line-height: 1.8;
}
.footer a { color: var(--text-dim); border-bottom: 1px dotted var(--line); }

/* 攻略页正文 */
.prose { max-width: 880px; font-size: 14px; line-height: 1.78; color: var(--text-dim); }
/* 多列表格页放宽正文宽度 */
.prose.wide { max-width: 1180px; }
.prose h2 { margin: 38px 0 12px; font-size: 19px; color: var(--text); font-weight: 700; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.prose h3 { margin: 26px 0 8px; font-size: 15.5px; color: var(--text); font-weight: 700; }
.prose h4 { margin: 20px 0 6px; font-size: 14px; color: var(--gold); font-weight: 600; }
.prose h5 { margin: 18px 0 6px; font-size: 13.5px; color: var(--text); font-weight: 700; letter-spacing: .02em; }
.prose p { margin: 9px 0; }
.prose ul, .prose ol { margin: 9px 0; padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose strong { color: var(--text); font-weight: 600; }
.prose code {
  padding: 1px 5px; border-radius: 4px; background: var(--bg-inset);
  font-family: var(--mono); font-size: 12px; color: var(--accent-2);
  border: 1px solid var(--line-soft);
}
.prose pre.code {
  margin: 14px 0; padding: 14px 16px; overflow-x: auto;
  background: var(--bg-inset); border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.prose pre.code code {
  padding: 0; border: 0; background: none; border-radius: 0;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.85;
  color: var(--text-dim); white-space: pre;
}
.prose table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13px; }
.prose th, .prose td { padding: 8px 11px; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--bg-card); color: var(--text); font-weight: 600; font-size: 12.5px; }
.prose td { color: var(--text-dim); }
/* 表格横向可滚，避免长代码串把表撑出容器 */
.table-wrap { overflow-x: auto; margin: 14px 0; }
.table-wrap table { margin: 0; }
.prose td code { white-space: normal; overflow-wrap: anywhere; }
/* 前两列不折行，避免中文被逐字拆断 */
.prose table td:nth-child(1), .prose table th:nth-child(1),
.prose table td:nth-child(2), .prose table th:nth-child(2) { white-space: nowrap; }
.prose table { table-layout: auto; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.prose .toc {
  margin: 0 0 30px; padding: 14px 18px 16px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.prose .toc-title { font-size: 11.5px; color: var(--text-mute); letter-spacing: .16em; margin-bottom: 10px; }
.prose .toc ul { margin: 0; padding-left: 0; list-style: none; columns: 2; column-gap: 30px; }
.prose .toc li { margin: 4px 0; font-size: 13px; break-inside: avoid; }
.prose .toc a { color: var(--text-dim); text-decoration: none; border-bottom: 1px solid transparent; }
.prose .toc a:hover { color: var(--gold); border-bottom-color: var(--gold-dim); }

.prose blockquote {
  margin: 14px 0; padding: 10px 16px; border-left: 3px solid var(--gold-dim);
  background: var(--bg-card); color: var(--text-dim); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.prose blockquote.guide-mark {
  border-left: 3px solid var(--gold);
  background: linear-gradient(90deg, rgba(217, 178, 95, .12), rgba(217, 178, 95, .02));
  color: var(--text);
}
.prose blockquote.guide-mark strong { color: var(--gold); }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1100px) {
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 560px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 780px) {
  .topbar { height: auto; padding: 10px 14px; flex-wrap: wrap; gap: 10px; }
  .nav { order: 3; width: 100%; }
  .topbar-tools { margin-left: auto; }
  .wrap { padding: 18px 14px 60px; }
  .hero { padding: 26px 20px; }
  .hero h1 { font-size: 23px; }
  .toolbar { position: static; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
  .drawer { width: 100%; }
  .table-wrap { max-height: none; }
  .prose .toc ul { columns: 1; }
}

/* 套装：分档 + 超越数值 */
.tier-head {
  display: flex; align-items: baseline; gap: 8px;
  margin: 16px 0 8px; font-size: 12px; font-weight: 700; color: var(--gold);
}
.tier-head small { font-weight: 400; font-size: 11px; color: var(--text-mute); }
.tier-vals { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.tier-vals .tv {
  font-size: 11px; color: var(--text-dim);
  background: var(--bg-inset); border: 1px solid var(--line);
  border-radius: 5px; padding: 1px 6px; white-space: nowrap;
}
.tier-vals .tv i { font-style: normal; color: var(--text-mute); margin-right: 4px; }
