/* ===== 雾影猎人攻略站 - 全局样式 ===== */

:root {
  --bg-primary: #0a0e14;
  --bg-secondary: #111821;
  --bg-card: #1a2230;
  --bg-card-hover: #222d3d;
  --bg-tag: #2a3548;
  --text-primary: #e8eef5;
  --text-secondary: #9ba8b8;
  --text-muted: #6b7689;
  --accent: #c9a84c;
  --accent-glow: rgba(201, 168, 76, 0.15);
  --accent-dim: #8a7438;
  --danger: #e74c3c;
  --danger-dim: rgba(231, 76, 60, 0.12);
  --success: #2ecc71;
  --success-dim: rgba(46, 204, 113, 0.12);
  --info: #3498db;
  --info-dim: rgba(52, 152, 219, 0.12);
  --purple: #9b59b6;
  --purple-dim: rgba(155, 89, 182, 0.12);
  --border: #2a3548;
  --border-light: #3a4a5e;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
  --max-width: 1200px;
  --sidebar-width: 240px;
  --font: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --mono: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 15px;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: #f0c050; }

/* ===== 导航栏 ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 60px;
  background: rgba(10, 14, 20, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 24px;
}
.navbar-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center; gap: 32px; width: 100%;
}
.navbar-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 800; letter-spacing: 1px;
  color: var(--text-primary); white-space: nowrap;
}
.navbar-brand .logo {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--bg-primary); font-weight: 900;
}
.navbar-brand .brand-text { background: linear-gradient(90deg, var(--accent), #f0c050); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.navbar-links { display: flex; gap: 4px; list-style: none; flex: 1; }
.navbar-links a {
  color: var(--text-secondary); padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; transition: all .2s;
}
.navbar-links a:hover, .navbar-links a.active {
  color: var(--accent); background: var(--bg-card);
}
.navbar-search {
  position: relative; width: 200px;
}
.navbar-search input {
  width: 100%; height: 36px; padding: 0 12px 0 36px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-primary); font-size: 13px;
  font-family: var(--font);
}
.navbar-search input:focus { outline: none; border-color: var(--accent-dim); }
.navbar-search::before {
  content: '\1F50D'; position: absolute; left: 10px; top: 50%;
  transform: translateY(-50%); font-size: 14px; opacity: .5;
}
.navbar-search input::placeholder { color: var(--text-muted); }

/* ===== 布局 ===== */
.container {
  max-width: var(--max-width); margin: 0 auto;
  padding: 80px 24px 60px;
}
.page-layout { display: flex; gap: 28px; }
.sidebar {
  width: var(--sidebar-width); flex-shrink: 0;
  position: sticky; top: 76px; align-self: flex-start;
  max-height: calc(100vh - 80px); overflow-y: auto;
}
.sidebar-section { margin-bottom: 24px; }
.sidebar-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--text-muted);
  padding: 0 12px 8px; margin-bottom: 4px;
}
.sidebar-link {
  display: block; padding: 7px 12px; border-radius: var(--radius-sm);
  color: var(--text-secondary); font-size: 14px; transition: all .15s;
  border-left: 2px solid transparent;
}
.sidebar-link:hover { color: var(--text-primary); background: var(--bg-card); }
.sidebar-link.active { color: var(--accent); border-left-color: var(--accent); background: var(--accent-glow); }
.content { flex: 1; min-width: 0; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #0d1218 0%, #16202c 50%, #0a0e14 100%);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 48px 40px; margin-bottom: 32px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.hero-tag {
  display: inline-block; padding: 4px 12px; border-radius: 20px;
  background: var(--danger-dim); color: var(--danger);
  font-size: 12px; font-weight: 700; margin-bottom: 16px;
}
.hero h1 { font-size: 36px; font-weight: 800; margin-bottom: 12px; line-height: 1.3; }
.hero h1 .sub { color: var(--accent); }
.hero p { color: var(--text-secondary); font-size: 16px; max-width: 640px; margin-bottom: 24px; }
.hero-stats { display: flex; gap: 24px; flex-wrap: wrap; }
.hero-stat {
  display: flex; flex-direction: column; gap: 2px;
}
.hero-stat .num { font-size: 22px; font-weight: 800; color: var(--accent); }
.hero-stat .label { font-size: 12px; color: var(--text-muted); }

/* ===== 卡片网格 ===== */
.section { margin-bottom: 40px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-title { font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.section-title .icon { font-size: 26px; }
.section-title::before {
  content: ''; width: 4px; height: 24px;
  background: var(--accent); border-radius: 2px; margin-right: 12px;
}
.section-link { font-size: 13px; color: var(--text-secondary); }

.card-grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  transition: all .25s; cursor: pointer; position: relative; overflow: hidden;
}
.card:hover { background: var(--bg-card-hover); border-color: var(--accent-dim); transform: translateY(-2px); box-shadow: var(--shadow); }
.card .card-icon { font-size: 32px; margin-bottom: 12px; }
.card .card-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.card .card-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.card .card-meta { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; }

/* 标签 */
.tag {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 600;
}
.tag-danger { background: var(--danger-dim); color: var(--danger); }
.tag-success { background: var(--success-dim); color: var(--success); }
.tag-info { background: var(--info-dim); color: var(--info); }
.tag-purple { background: var(--purple-dim); color: var(--purple); }
.tag-accent { background: var(--accent-glow); color: var(--accent); }
.tag-muted { background: var(--bg-tag); color: var(--text-muted); }

/* ===== 表格 ===== */
.table-wrap { overflow-x: auto; margin-bottom: 24px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th {
  background: var(--bg-secondary); color: var(--text-secondary);
  font-weight: 700; text-align: left; padding: 12px 16px;
  border-bottom: 2px solid var(--border); white-space: nowrap;
}
tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
tbody tr:hover { background: var(--bg-card); }
tbody tr:last-child td { border-bottom: none; }

/* ===== 内容区块 ===== */
.content-block {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin-bottom: 20px;
}
.content-block h2 { font-size: 20px; font-weight: 800; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.content-block h3 { font-size: 16px; font-weight: 700; margin: 20px 0 10px; color: var(--accent); }
.content-block p { margin-bottom: 12px; color: var(--text-secondary); }
.content-block ul, .content-block ol { margin: 8px 0 16px 20px; color: var(--text-secondary); }
.content-block li { margin-bottom: 6px; }
.content-block strong { color: var(--text-primary); }
.content-block code {
  background: var(--bg-secondary); padding: 2px 6px; border-radius: 4px;
  font-family: var(--mono); font-size: 13px; color: var(--accent);
}

/* 提示框 */
.callout {
  border-left: 3px solid; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px; margin: 16px 0; font-size: 14px;
}
.callout-tip { border-color: var(--info); background: var(--info-dim); }
.callout-warn { border-color: var(--danger); background: var(--danger-dim); }
.callout-success { border-color: var(--success); background: var(--success-dim); }
.callout-title { font-weight: 700; margin-bottom: 4px; }
.callout p { margin: 0; color: var(--text-primary); }

/* Boss 卡 */
.boss-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 20px; transition: all .25s;
}
.boss-card:hover { border-color: var(--accent-dim); box-shadow: var(--shadow); }
.boss-header {
  display: flex; align-items: center; gap: 16px; padding: 20px 24px;
  background: linear-gradient(90deg, var(--bg-card), var(--bg-secondary));
  border-bottom: 1px solid var(--border);
}
.boss-avatar {
  width: 56px; height: 56px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; flex-shrink: 0;
}
.boss-info { flex: 1; }
.boss-info h3 { font-size: 18px; font-weight: 800; margin-bottom: 2px; }
.boss-info .boss-meta { font-size: 12px; color: var(--text-muted); display: flex; gap: 12px; }
.boss-body { padding: 20px 24px; }
.boss-body h4 { font-size: 14px; font-weight: 700; color: var(--accent); margin: 16px 0 8px; }
.boss-body h4:first-child { margin-top: 0; }
.boss-body p, .boss-body li { font-size: 14px; color: var(--text-secondary); }
.boss-body ul { margin: 4px 0 12px 20px; }
.boss-phase {
  display: flex; gap: 4px; margin: 8px 0; flex-wrap: wrap;
}
.phase-bar {
  height: 6px; flex: 1; min-width: 40px; border-radius: 3px;
  background: var(--bg-tag);
}
.phase-bar.active { background: var(--danger); }

/* 职业卡 */
.class-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; transition: all .25s; position: relative; overflow: hidden;
}
.class-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
}
.class-card.c-assassin::before { background: var(--danger); }
.class-card.c-guardian::before { background: var(--info); }
.class-card.c-hunter::before { background: var(--success); }
.class-card.c-warlock::before { background: var(--purple); }
.class-card.c-illusionist::before { background: #e67e22; }
.class-card.c-medic::before { background: #1abc9c; }
.class-card:hover { border-color: var(--border-light); transform: translateY(-2px); box-shadow: var(--shadow); }
.class-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.class-icon { font-size: 28px; }
.class-name { font-size: 17px; font-weight: 800; }
.class-role { font-size: 12px; color: var(--text-muted); }
.class-stats { display: flex; gap: 12px; margin: 12px 0; font-size: 12px; }
.class-stat { flex: 1; text-align: center; }
.class-stat .bar { height: 4px; border-radius: 2px; background: var(--bg-tag); margin-top: 4px; overflow: hidden; }
.class-stat .bar-fill { height: 100%; border-radius: 2px; }
.class-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.class-skills { margin-top: 12px; }
.class-skill {
  display: flex; align-items: flex-start; gap: 8px; padding: 6px 0;
  font-size: 13px; border-top: 1px solid var(--border);
}
.class-skill .sk-icon { flex-shrink: 0; }
.class-skill .sk-name { font-weight: 700; color: var(--text-primary); }
.class-skill .sk-desc { color: var(--text-muted); }

/* 时间线 */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: ''; position: absolute; left: 8px; top: 4px; bottom: 4px;
  width: 2px; background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 24px; }
.timeline-item::before {
  content: ''; position: absolute; left: -24px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--bg-primary);
}
.timeline-item .tl-time { font-size: 12px; color: var(--accent); font-weight: 700; }
.timeline-item .tl-title { font-size: 16px; font-weight: 700; margin: 2px 0 6px; }
.timeline-item .tl-desc { font-size: 14px; color: var(--text-secondary); }

/* 步骤 */
.steps { counter-reset: step; margin: 16px 0; }
.step { position: relative; padding-left: 44px; margin-bottom: 20px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: var(--bg-primary);
  font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.step h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.step p { font-size: 14px; color: var(--text-secondary); }

/* 进度条 */
.progress { display: flex; align-items: center; gap: 12px; margin: 8px 0; }
.progress-label { width: 80px; font-size: 12px; color: var(--text-muted); flex-shrink: 0; }
.progress-track { flex: 1; height: 8px; border-radius: 4px; background: var(--bg-tag); overflow: hidden; }
.progress-fill { height: 100%; border-radius: 4px; transition: width .5s; }
.progress-val { width: 36px; font-size: 12px; font-weight: 700; text-align: right; }

/* Tab */
.tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.tab-btn {
  padding: 10px 18px; background: transparent; border: none;
  color: var(--text-muted); font-size: 14px; font-weight: 600;
  cursor: pointer; border-bottom: 2px solid transparent; transition: all .2s;
  font-family: var(--font);
}
.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* 撤离点地图 */
.extraction-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.extraction-point {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; transition: all .2s;
}
.extraction-point:hover { border-color: var(--accent-dim); }
.extraction-point .ep-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.extraction-point .ep-name { font-size: 15px; font-weight: 700; }
.extraction-point .ep-type { font-size: 12px; }
.extraction-point .ep-desc { font-size: 13px; color: var(--text-secondary); }
.extraction-point .ep-risk { margin-top: 8px; }

/* Footer */
.footer {
  border-top: 1px solid var(--border); padding: 32px 24px;
  text-align: center; color: var(--text-muted); font-size: 13px;
}
.footer a { color: var(--text-secondary); }
.footer-links { display: flex; gap: 20px; justify-content: center; margin-bottom: 12px; }

/* 返回顶部 */
.back-to-top {
  position: fixed; right: 24px; bottom: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; cursor: pointer; opacity: 0; transition: all .3s;
  z-index: 90;
}
.back-to-top.show { opacity: 1; }
.back-to-top:hover { background: var(--accent); color: var(--bg-primary); border-color: var(--accent); }

/* 响应式 */
@media (max-width: 768px) {
  .navbar-links { display: none; }
  .navbar-search { display: none; }
  .lang-switch { margin-left: auto; }
  .sidebar { display: none; }
  .page-layout { display: block; }
  .hero { padding: 32px 20px; }
  .hero h1 { font-size: 26px; }
  .container { padding: 70px 16px 40px; }
}

/* 面包屑导航 */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb .sep { opacity: .5; }

/* 大数字统计 */
.stat-row { display: flex; gap: 16px; flex-wrap: wrap; margin: 16px 0; }
.stat-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 20px;
  background: var(--bg-card); border: 1px solid var(--border);
}
.stat-pill .sp-icon { font-size: 18px; }
.stat-pill .sp-val { font-weight: 800; font-size: 16px; }
.stat-pill .sp-label { font-size: 12px; color: var(--text-muted); }

/* 武器表 */
.weapon-row { display: flex; align-items: center; gap: 12px; }
.weapon-icon { font-size: 20px; }
.weapon-tier {
  display: inline-flex; align-items: center; gap: 2px;
}
.star { color: var(--accent); font-size: 12px; }
.star.empty { color: var(--bg-tag); }

/* ===== 补充样式 ===== */

/* 页面头 */
.page-header {
  background: linear-gradient(135deg, #0d1218 0%, #16202c 50%, #0a0e14 100%);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px 32px; margin-bottom: 32px; text-align: center;
}
.page-header h1 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.page-header p { color: var(--text-secondary); font-size: 15px; max-width: 640px; margin: 0 auto; }

/* data-table 表格 */
table.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data-table thead th {
  background: var(--bg-secondary); color: var(--text-secondary);
  font-weight: 700; text-align: left; padding: 10px 14px;
  border-bottom: 2px solid var(--border); white-space: nowrap;
}
table.data-table tbody td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
table.data-table tbody tr:hover { background: var(--bg-card); }
table.data-table a { color: var(--accent); }

/* 难度星级 */
.diff { font-size: 13px; font-weight: 700; letter-spacing: 1px; white-space: nowrap; }
.diff.d1 { color: var(--success); }
.diff.d2 { color: #f1c40f; }
.diff.d3 { color: var(--accent); }
.diff.d4 { color: var(--danger); }
.diff.d5 { color: #ff0040; text-shadow: 0 0 8px rgba(255,0,64,.4); }

/* Boss 卡片扩展 */
.boss-card-header {
  display: flex; align-items: center; gap: 16px; padding: 20px 24px;
  background: linear-gradient(90deg, var(--bg-card), var(--bg-secondary));
  border-bottom: 1px solid var(--border);
}
.boss-num {
  font-size: 28px; font-weight: 900; color: var(--accent);
  opacity: .5; line-height: 1; min-width: 40px;
}
.boss-info h2 { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.boss-tags { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Tab 组 */
.tab-group { margin-bottom: 20px; }
.tab-bar {
  display: flex; gap: 2px; margin-bottom: 16px;
  border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.tab-bar-scroll { overflow-x: auto; }
.tab-bar .tab-btn {
  padding: 10px 16px; background: transparent; border: none;
  color: var(--text-muted); font-size: 14px; font-weight: 600;
  cursor: pointer; border-bottom: 2px solid transparent; transition: all .2s;
  font-family: var(--font); white-space: nowrap;
}
.tab-bar .tab-btn:hover { color: var(--text-primary); }
.tab-bar .tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

/* 策略步骤 */
.strategy-steps { margin: 16px 0; }
.strategy-steps .step {
  position: relative; padding-left: 48px; margin-bottom: 16px;
}
.strategy-steps .step-num {
  position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: var(--bg-primary);
  font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.strategy-steps .step-body { font-size: 14px; color: var(--text-secondary); padding-top: 4px; }
.strategy-steps .step-body strong { color: var(--text-primary); }

/* Build 卡片 */
.build-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; transition: all .25s;
}
.build-card:hover { border-color: var(--border-light); box-shadow: var(--shadow); }
.build-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.build-header h3 { font-size: 18px; font-weight: 800; }
.build-tier {
  padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 800;
}
.tier-s { background: var(--danger-dim); color: var(--danger); }
.tier-a { background: var(--accent-glow); color: var(--accent); }
.tier-b { background: var(--info-dim); color: var(--info); }
.build-meta { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.build-body h4 { font-size: 14px; font-weight: 700; color: var(--accent); margin: 14px 0 6px; }
.build-body ul { margin: 4px 0 10px 18px; font-size: 13px; color: var(--text-secondary); }
.build-body li { margin-bottom: 4px; }
.build-body p { font-size: 13px; color: var(--text-secondary); }
.build-pros-cons { display: flex; gap: 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 13px; }
.build-pros-cons .pros { color: var(--success); flex: 1; }
.build-pros-cons .cons { color: var(--danger); flex: 1; }

/* 路线展示 */
.route-line {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 12px 16px; background: var(--bg-secondary); border-radius: var(--radius-sm);
  margin: 12px 0; font-size: 13px;
}
.route-node {
  padding: 4px 10px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 4px; font-weight: 600; color: var(--text-primary);
}
.route-arrow { color: var(--accent); font-weight: 700; }

/* 内容布局（侧栏+主内容） */
.content-layout { display: flex; gap: 28px; }
.content-main { flex: 1; min-width: 0; }
.content-layout .sidebar {
  width: var(--sidebar-width); flex-shrink: 0;
  position: sticky; top: 76px; align-self: flex-start;
  max-height: calc(100vh - 80px); overflow-y: auto;
}

/* 章节导航按钮 */
.section-nav {
  display: flex; justify-content: space-between; gap: 16px;
  margin: 40px 0 20px; padding-top: 24px; border-top: 1px solid var(--border);
}
.nav-btn {
  padding: 10px 20px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-secondary); font-size: 14px;
  font-weight: 600; transition: all .2s;
}
.nav-btn:hover { background: var(--bg-card-hover); border-color: var(--accent-dim); color: var(--accent); }

/* 危险提示框 */
.callout-danger { border-color: var(--danger); background: rgba(231,76,60,.08); }

/* 移动端菜单 */
.menu-toggle { display: none; cursor: pointer; font-size: 22px; color: var(--text-primary); }
.navbar-links.mobile-open { display: flex !important; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--bg-secondary); padding: 16px; border-bottom: 1px solid var(--border); }

@media (max-width: 768px) {
  .content-layout { display: block; }
  .content-layout .sidebar { display: none; }
  .page-header { padding: 24px 16px; }
  .page-header h1 { font-size: 22px; }
  .build-pros-cons { flex-direction: column; gap: 8px; }
  .section-nav { flex-direction: column; gap: 8px; }
  .boss-card-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero-stats { gap: 16px; }
}

/* 搜索高亮 */
[data-searchable] { transition: opacity .2s; }

/* 职业卡片内的统计条 */
.class-card .class-stats { display: flex; gap: 8px; margin: 12px 0; }
.class-card .class-stat { flex: 1; }
.class-card .class-stat > div:first-child { font-size: 11px; color: var(--text-muted); text-align: center; margin-bottom: 4px; }
.class-card .bar { height: 4px; border-radius: 2px; background: var(--bg-tag); overflow: hidden; }
.class-card .bar-fill { height: 100%; border-radius: 2px; }

/* 流程攻略步骤间导航 */
.section-nav-sub { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.nav-prev, .nav-next { font-size: 14px; color: var(--accent); text-decoration: none; padding: 8px 16px; border: 1px solid var(--border); border-radius: 6px; transition: all .2s; }
.nav-prev:hover, .nav-next:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.nav-prev { display: inline-flex; align-items: center; gap: 4px; }
.nav-next { display: inline-flex; align-items: center; gap: 4px; }

/* 侧栏子标题（章节分隔） */
.sidebar-subtitle { font-size: 11px; text-transform: uppercase; color: var(--text-muted); letter-spacing: 1px; padding: 12px 12px 4px; font-weight: 700; }

/* ===== 语言切换 ===== */
.lang-switch {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  min-width: 46px; height: 36px; padding: 0 12px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; color: var(--text-secondary);
  font-size: 13px; font-weight: 700; letter-spacing: .5px;
  transition: all .3s;
}
.lang-switch:hover {
  color: var(--accent-bright); border-color: var(--accent-dim);
  box-shadow: 0 0 16px var(--accent-glow);
}
