/* ==========================================================================
   Sandustry Wiki — 全站共享样式
   主题：沙金色（amber gold）· 默认深色
   ========================================================================== */

/* ============ 主题变量 ============ */
:root {
  /* 导航页主题色 - 亮色主题 */
  --nav-theme: 38 92% 50%;        /* amber-500 沙金色（原 #f59e0b） */
  --nav-theme-light: 40 94% 60%;
  --bg: 40 33% 96%;
  --bg-elev: 40 30% 99%;
  --bg-card: 40 25% 93%;
  --text: 24 15% 12%;
  --text-dim: 28 10% 38%;
  --border: 36 15% 84%;
  --nav-bg: 40 33% 96% / 0.85;
  --shadow: 0 8px 30px hsl(30 40% 20% / 0.08);
  --ok: 152 60% 42%;
  --info: 210 80% 55%;
}

[data-theme="dark"] {
  /* 导航页主题色 - 暗色主题（默认） */
  --nav-theme: 38 95% 55%;
  --nav-theme-light: 40 96% 65%;
  --bg: 24 10% 10%;
  --bg-elev: 26 10% 13%;
  --bg-card: 26 9% 16%;
  --text: 40 20% 92%;
  --text-dim: 36 8% 62%;
  --border: 30 8% 24%;
  --nav-bg: 24 10% 10% / 0.85;
  --shadow: 0 8px 30px hsl(0 0% 0% / 0.35);
  --ok: 152 55% 50%;
  --info: 210 85% 62%;
}

/* ============ 基础 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  font-family: "Figtree", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: hsl(var(--bg));
  color: hsl(var(--text));
  line-height: 1.65;
  transition: background .3s, color .3s;
}

h1, h2, h3, h4, .logo {
  font-family: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
}

code, kbd, .mono {
  font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}

a { color: inherit; text-decoration: none; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }

/* ============ 公告条 ============ */
.announce {
  background: hsl(var(--nav-theme) / .14);
  border-bottom: 1px solid hsl(var(--nav-theme) / .35);
  color: hsl(var(--nav-theme-light));
  font-size: .8rem; font-weight: 600;
  text-align: center; padding: 8px 16px;
  letter-spacing: .3px;
}
.announce a { text-decoration: underline; }

/* ============ 导航栏 ============ */
nav {
  position: sticky; top: 0; z-index: 50;
  background: hsl(var(--nav-bg));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border));
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-weight: 800; font-size: 1.15rem; letter-spacing: .3px; display: flex; align-items: center; gap: 8px; }
.logo .dot {
  width: 12px; height: 12px; border-radius: 3px;
  background: hsl(var(--nav-theme));
  box-shadow: 0 0 12px hsl(var(--nav-theme) / .6);
}
.logo em { font-style: normal; color: hsl(var(--nav-theme)); }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: .92rem; }
.nav-links a { color: hsl(var(--text-dim)); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: hsl(var(--nav-theme-light)); }
.nav-tools { display: flex; align-items: center; gap: 10px; }
.lang-select, .theme-toggle {
  background: hsl(var(--bg-card));
  border: 1px solid hsl(var(--border));
  color: hsl(var(--text));
  border-radius: 8px; padding: 6px 10px;
  font-size: .82rem; cursor: pointer;
}
.theme-toggle:hover, .lang-select:hover { border-color: hsl(var(--nav-theme)); }
/* 移动端汉堡菜单按钮（默认隐藏，≤820px 显示） */
.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: 0 0 auto;
  background: hsl(var(--bg-card));
  border: 1px solid hsl(var(--border));
  border-radius: 8px;
  color: hsl(var(--text));
  font-size: 1.25rem; line-height: 1; cursor: pointer;
}
.nav-toggle:hover { border-color: hsl(var(--nav-theme)); }
.nav-toggle[aria-expanded="true"] { color: hsl(var(--nav-theme)); border-color: hsl(var(--nav-theme)); }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 60px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: hsl(var(--bg-elev));
    border-bottom: 1px solid hsl(var(--border));
    padding: 4px 0 10px;
    box-shadow: var(--shadow);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
  nav.nav-open .nav-links { display: flex; }
  .nav-links a {
    padding: 13px 24px;
    border-bottom: 1px solid hsl(var(--border) / .5);
    color: hsl(var(--text));
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a.active { color: hsl(var(--nav-theme-light)); }
}

/* 移动端表格横向滚动，避免溢出视口 */
@media (max-width: 640px) {
  .article-body table { display: block; overflow-x: auto; white-space: nowrap; }
  .wrap { padding: 0 16px; }
}

/* ============ 面包屑 ============ */
.breadcrumb {
  font-size: .82rem; color: hsl(var(--text-dim));
  padding: 18px 0 0;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.breadcrumb a { color: hsl(var(--nav-theme-light)); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { opacity: .5; }

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 80px 0 68px;
  overflow: hidden;
  background:
    radial-gradient(900px 400px at 85% -10%, hsl(var(--nav-theme) / .14), transparent 60%),
    radial-gradient(700px 380px at 5% 110%, hsl(var(--nav-theme) / .08), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: hsl(var(--nav-theme-light));
  border: 1px solid hsl(var(--nav-theme) / .45);
  background: hsl(var(--nav-theme) / .1);
  padding: 5px 14px; border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 900; letter-spacing: -1px; line-height: 1.05; margin-bottom: 18px; }
.hero h1 span { color: hsl(var(--nav-theme)); }
.hero .lede { color: hsl(var(--text-dim)); font-size: 1.06rem; max-width: 56ch; margin-bottom: 24px; }

.stat-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.pill {
  font-size: .82rem; font-weight: 600;
  background: hsl(var(--bg-card));
  border: 1px solid hsl(var(--border));
  padding: 7px 14px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 7px;
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: hsl(var(--nav-theme)); }
.snapshot { font-size: .76rem; color: hsl(var(--text-dim)); margin-bottom: 26px; }
.snapshot::before { content: "📸 "; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-block; font-weight: 700; font-size: .95rem;
  padding: 13px 26px; border-radius: 10px;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: hsl(var(--nav-theme)); color: hsl(24 30% 8%); box-shadow: 0 6px 22px hsl(var(--nav-theme) / .35); }
.btn-primary:hover { background: hsl(var(--nav-theme-light)); }
.btn-secondary { background: hsl(var(--bg-card)); border: 1px solid hsl(var(--border)); color: hsl(var(--text)); }
.btn-secondary:hover { border-color: hsl(var(--nav-theme)); }
.btn-ghost { color: hsl(var(--nav-theme-light)); padding: 13px 8px; }
.btn-ghost:hover { text-decoration: underline; }

.video-card {
  background: hsl(var(--bg-elev));
  border: 1px solid hsl(var(--border));
  border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow);
  display: block;
}
.video-thumb {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background: #17140f;
  display: flex; align-items: center; justify-content: center;
}
.video-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.play-btn {
  position: relative;
  z-index: 1;
  width: 72px; height: 72px; border-radius: 50%;
  background: hsl(var(--nav-theme));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px hsl(var(--nav-theme) / .45);
  transition: transform .2s;
}
.video-card:hover .play-btn { transform: scale(1.08); }
.video-meta { padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; font-size: .82rem; color: hsl(var(--text-dim)); }
.video-meta strong { color: hsl(var(--text)); font-size: .9rem; }

/* ============ 通用 Section ============ */
section { padding: 68px 0; }
.sec-head { margin-bottom: 36px; }
.sec-head .eyebrow { margin-bottom: 12px; }
.sec-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); font-weight: 800; letter-spacing: -.5px; }
.sec-head p { color: hsl(var(--text-dim)); margin-top: 8px; max-width: 64ch; }

/* ============ Hub 卡片 ============ */
.hubs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 1000px) { .hubs { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .hubs { grid-template-columns: repeat(2, 1fr); } }
.hub-card {
  background: hsl(var(--bg-elev));
  border: 1px solid hsl(var(--border));
  border-radius: 14px; padding: 22px 18px;
  transition: transform .18s, border-color .2s, box-shadow .2s;
  display: flex; flex-direction: column; gap: 8px;
}
.hub-card:hover { transform: translateY(-4px); border-color: hsl(var(--nav-theme) / .6); box-shadow: var(--shadow); }
.hub-card .icon { font-size: 1.5rem; }
.hub-card h3 { font-size: .98rem; font-weight: 800; }
.hub-card p { font-size: .8rem; color: hsl(var(--text-dim)); flex: 1; }
.hub-card .count { font-size: .74rem; font-weight: 700; color: hsl(var(--nav-theme-light)); }

/* ============ 分类标签 ============ */
.tag {
  display: inline-block;
  font-size: .68rem; font-weight: 800;
  letter-spacing: .8px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 6px;
  background: hsl(var(--nav-theme) / .14);
  color: hsl(var(--nav-theme-light));
  width: fit-content;
}
.tag.guides { background: hsl(var(--nav-theme) / .14); color: hsl(var(--nav-theme-light)); }
.tag.materials { background: hsl(152 55% 50% / .15); color: hsl(var(--ok)); }
.tag.research { background: hsl(210 85% 60% / .15); color: hsl(var(--info)); }
.tag.updates { background: hsl(280 60% 60% / .15); color: hsl(280 70% 70%); }
.tag.links { background: hsl(0 0% 50% / .15); color: hsl(var(--text-dim)); }

/* ============ Featured 文章网格 ============ */
.articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 960px) { .articles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .articles { grid-template-columns: 1fr; } }
.article-card {
  background: hsl(var(--bg-elev));
  border: 1px solid hsl(var(--border));
  border-radius: 14px; padding: 20px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .18s, border-color .2s, box-shadow .2s;
}
.article-card:hover { transform: translateY(-3px); border-color: hsl(var(--nav-theme) / .55); box-shadow: var(--shadow); }
.article-card h3 { font-size: .98rem; font-weight: 700; line-height: 1.4; }
.article-card p { font-size: .83rem; color: hsl(var(--text-dim)); flex: 1; }
.article-card .go { font-size: .8rem; font-weight: 700; color: hsl(var(--nav-theme-light)); }

/* 规划中徽章（空链接零容忍：未上线文章不放 <a>） */
.soon-badge {
  display: inline-block; font-size: .68rem; font-weight: 800;
  letter-spacing: .6px; padding: 3px 10px; border-radius: 6px;
  background: hsl(var(--bg-card)); border: 1px dashed hsl(var(--border));
  color: hsl(var(--text-dim)); width: fit-content;
}
.article-card.is-soon { opacity: .72; }
.article-card.is-soon:hover { transform: none; border-color: hsl(var(--border)); box-shadow: none; }

/* ============ Quick Start 步骤 ============ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: hsl(var(--bg-elev));
  border: 1px solid hsl(var(--border));
  border-radius: 14px; padding: 24px 20px;
  position: relative;
}
.step .n {
  width: 40px; height: 40px; border-radius: 12px;
  background: hsl(var(--nav-theme) / .14);
  color: hsl(var(--nav-theme-light));
  font-weight: 800; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.step h3 { font-size: .96rem; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: .83rem; color: hsl(var(--text-dim)); }

/* ============ Codes 侧条 ============ */
.codes-band {
  background: hsl(var(--bg-elev));
  border: 1px dashed hsl(var(--nav-theme) / .5);
  border-radius: 14px; padding: 26px 28px;
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
}
.codes-band h3 { font-size: 1.1rem; font-weight: 800; }
.code-item {
  background: hsl(var(--bg-card));
  border: 1px solid hsl(var(--border));
  border-radius: 10px; padding: 10px 20px;
  font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  color: hsl(var(--text-dim)); font-size: .92rem;
}
.codes-band small { color: hsl(var(--text-dim)); width: 100%; }

/* ============ About 数据格 ============ */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-text p { color: hsl(var(--text-dim)); margin-bottom: 16px; }
.about-text .btn { margin-top: 8px; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stat-box { background: hsl(var(--bg-elev)); border: 1px solid hsl(var(--border)); border-radius: 12px; padding: 18px; }
.stat-box .label { font-size: .74rem; text-transform: uppercase; letter-spacing: 1px; color: hsl(var(--text-dim)); margin-bottom: 4px; }
.stat-box .value { font-weight: 800; font-size: 1.02rem; color: hsl(var(--nav-theme-light)); }

/* ============ FAQ 手风琴 ============ */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 820px; }
.faq details {
  background: hsl(var(--bg-elev));
  border: 1px solid hsl(var(--border));
  border-radius: 12px; padding: 0 20px;
  transition: border-color .2s;
}
.faq details[open] { border-color: hsl(var(--nav-theme) / .5); }
.faq summary {
  cursor: pointer; list-style: none;
  font-weight: 700; font-size: .95rem;
  padding: 16px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.2rem; font-weight: 800;
  color: hsl(var(--nav-theme-light)); flex-shrink: 0;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: hsl(var(--text-dim)); font-size: .88rem; padding-bottom: 16px; }
.faq details a { color: hsl(var(--nav-theme-light)); text-decoration: underline; }

/* ============ Final CTA ============ */
.final-cta {
  text-align: center;
  background:
    radial-gradient(700px 300px at 50% 0%, hsl(var(--nav-theme) / .16), transparent 65%),
    hsl(var(--bg-elev));
  border: 1px solid hsl(var(--border));
  border-radius: 20px;
  padding: 60px 32px;
}
.final-cta h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 900; margin-bottom: 14px; }
.final-cta p { color: hsl(var(--text-dim)); max-width: 60ch; margin: 0 auto 28px; }
.final-cta .cta-row { justify-content: center; }

/* ============ Hub 页头 ============ */
.hub-head { padding: 40px 0 10px; }
.hub-head h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 900; letter-spacing: -.5px; margin: 14px 0 12px; }
.hub-head p { color: hsl(var(--text-dim)); max-width: 68ch; }

/* ============ 文章页布局（内容 + 粘性 TOC） ============ */
.article-layout {
  display: grid; grid-template-columns: 1fr 260px;
  gap: 48px; padding: 28px 0 72px;
}
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } .toc-aside { display: none; } }

.toc-aside { position: relative; }
.toc {
  position: sticky; top: 84px;
  background: hsl(var(--bg-elev));
  border: 1px solid hsl(var(--border));
  border-radius: 12px; padding: 18px;
  font-size: .84rem;
}
.toc h4 {
  font-size: .72rem; text-transform: uppercase; letter-spacing: 1.2px;
  color: hsl(var(--text-dim)); margin-bottom: 12px;
}
.toc ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.toc a {
  display: block; padding: 6px 10px; border-radius: 8px;
  color: hsl(var(--text-dim));
  border-left: 2px solid transparent;
  transition: color .15s, background .15s, border-color .15s;
}
.toc a:hover { color: hsl(var(--text)); background: hsl(var(--bg-card)); }
.toc a.active {
  color: hsl(var(--nav-theme-light));
  border-left-color: hsl(var(--nav-theme));
  background: hsl(var(--nav-theme) / .08);
}

.article-body { max-width: 760px; }
.article-body .tag { margin-bottom: 14px; }
.article-body > h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 900; letter-spacing: -.5px; line-height: 1.15; margin-bottom: 14px; }
.article-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  font-size: .8rem; color: hsl(var(--text-dim));
  padding-bottom: 22px; margin-bottom: 26px;
  border-bottom: 1px solid hsl(var(--border));
}
.article-body h2 {
  font-size: 1.45rem; font-weight: 800; letter-spacing: -.3px;
  margin: 42px 0 14px; padding-top: 8px;
}
.article-body h3 { font-size: 1.1rem; font-weight: 700; margin: 28px 0 10px; }
.article-body p { color: hsl(var(--text-dim)); margin-bottom: 14px; }
.article-body strong { color: hsl(var(--text)); }
.article-body ul, .article-body ol { color: hsl(var(--text-dim)); margin: 0 0 16px 22px; }
.article-body li { margin-bottom: 7px; }
.article-body li::marker { color: hsl(var(--nav-theme)); font-weight: 700; }
.article-body a:not(.btn) { color: hsl(var(--nav-theme-light)); text-decoration: underline; text-underline-offset: 3px; }
.article-body table {
  width: 100%; border-collapse: collapse;
  font-size: .88rem; margin: 18px 0 22px;
}
.article-body th, .article-body td {
  border: 1px solid hsl(var(--border));
  padding: 10px 14px; text-align: left;
}
.article-body th { background: hsl(var(--bg-card)); font-weight: 700; }
.article-body td { color: hsl(var(--text-dim)); }

/* 来源分级标签（差异化：VERIFIED 官方 / COMMUNITY 玩家实测） */
.src {
  display: inline-block; font-size: .66rem; font-weight: 800;
  letter-spacing: .8px; padding: 2px 8px; border-radius: 5px;
  vertical-align: middle; margin-left: 6px;
}
.src.verified { background: hsl(var(--ok) / .15); color: hsl(var(--ok)); }
.src.community { background: hsl(var(--info) / .15); color: hsl(var(--info)); }

/* 提示框 */
.callout {
  border: 1px solid hsl(var(--border));
  border-left: 4px solid hsl(var(--nav-theme));
  background: hsl(var(--bg-elev));
  border-radius: 10px; padding: 16px 20px;
  margin: 20px 0; font-size: .9rem;
}
.callout p { margin: 0; }
.callout.tip { border-left-color: hsl(var(--ok)); }
.callout.warn { border-left-color: hsl(8 80% 60%); }

/* 截图占位（像素游戏攻略视觉位） */
.figure-slot {
  border: 1px dashed hsl(var(--border));
  border-radius: 12px;
  aspect-ratio: 16 / 9;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: hsl(var(--text-dim)); font-size: .82rem;
  background: hsl(var(--bg-elev));
  margin: 20px 0;
}
.figure-slot .ico { font-size: 1.6rem; }
.figure-slot img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: block; }
.figure-slot.has-img { border-style: solid; padding: 6px; }

/* 键盘按键 */
kbd {
  background: hsl(var(--bg-card));
  border: 1px solid hsl(var(--border));
  border-bottom-width: 3px;
  border-radius: 6px; padding: 2px 8px;
  font-size: .8rem; color: hsl(var(--text));
}

/* 相关文章 / 上下篇 */
.related { margin-top: 48px; }
.related h2 { font-size: 1.25rem; font-weight: 800; margin-bottom: 16px; }
.prevnext {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin-top: 36px;
}
@media (max-width: 600px) { .prevnext { grid-template-columns: 1fr; } }
.prevnext a {
  background: hsl(var(--bg-elev));
  border: 1px solid hsl(var(--border));
  border-radius: 12px; padding: 16px 18px;
  transition: border-color .2s;
}
.prevnext a:hover { border-color: hsl(var(--nav-theme) / .6); }
.prevnext .dir { font-size: .74rem; color: hsl(var(--text-dim)); text-transform: uppercase; letter-spacing: 1px; }
.prevnext .t { font-weight: 700; font-size: .92rem; margin-top: 4px; }
.prevnext .next { text-align: right; }

/* ============ Footer ============ */
footer {
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--bg-elev));
  padding: 56px 0 32px;
  font-size: .88rem;
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-grid h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: 1.2px; color: hsl(var(--text-dim)); margin-bottom: 14px; }
.foot-grid ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot-grid a { color: hsl(var(--text-dim)); transition: color .2s; }
.foot-grid a:hover { color: hsl(var(--nav-theme-light)); }
.foot-about p { color: hsl(var(--text-dim)); margin: 10px 0; max-width: 44ch; }
.foot-about .tagline { color: hsl(var(--nav-theme-light)); font-weight: 600; }
.foot-bottom {
  border-top: 1px solid hsl(var(--border));
  padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: hsl(var(--text-dim)); font-size: .8rem;
}
.foot-bottom a { color: hsl(var(--text-dim)); }
.foot-bottom a:hover { color: hsl(var(--nav-theme-light)); }

/* ============ 新架构增补组件 ============ */
/* 分类标签扩展 */
.tag.compare { background: hsl(8 80% 60% / .15); color: hsl(8 85% 68%); }
.tag.buy { background: hsl(152 55% 50% / .15); color: hsl(var(--ok)); }
.tag.fix { background: hsl(0 75% 60% / .15); color: hsl(0 80% 68%); }
.tag.mods { background: hsl(200 70% 55% / .15); color: hsl(200 80% 66%); }
.tag.wiki { background: hsl(var(--nav-theme) / .14); color: hsl(var(--nav-theme-light)); }

/* 版本横幅（排障/更新页标注版本适用性） */
.version-banner {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  background: hsl(var(--info) / .1);
  border: 1px solid hsl(var(--info) / .4);
  border-radius: 10px; padding: 12px 18px;
  font-size: .85rem; color: hsl(var(--text-dim));
  margin: 18px 0;
}
.version-banner strong { color: hsl(var(--info)); }

/* 评测结论盒（buy/review 页） */
.verdict {
  background:
    linear-gradient(135deg, hsl(var(--nav-theme) / .12), transparent 60%),
    hsl(var(--bg-elev));
  border: 1px solid hsl(var(--nav-theme) / .5);
  border-radius: 16px; padding: 26px 28px;
  margin: 26px 0;
}
.verdict .score {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 2.4rem; font-weight: 900; color: hsl(var(--nav-theme));
  line-height: 1;
}
.verdict .who { font-size: .9rem; color: hsl(var(--text-dim)); margin-top: 10px; }

/* 价格卡（buy 中枢） */
.price-hero {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  margin: 10px 0 4px;
}
.price-hero .now { font-size: 2.2rem; font-weight: 900; color: hsl(var(--nav-theme)); }
.price-hero .was { font-size: 1.1rem; color: hsl(var(--text-dim)); text-decoration: line-through; }
.price-hero .off {
  background: hsl(var(--ok) / .15); color: hsl(var(--ok));
  font-weight: 800; font-size: .85rem; padding: 4px 12px; border-radius: 8px;
}

/* vs 对比页「你该选谁」双栏 */
.choose { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0; }
@media (max-width: 640px) { .choose { grid-template-columns: 1fr; } }
.choose .side {
  background: hsl(var(--bg-elev));
  border: 1px solid hsl(var(--border));
  border-radius: 12px; padding: 18px 20px;
}
.choose .side h3 { font-size: .95rem; margin-bottom: 8px; }
.choose .side ul { margin-left: 18px; }
.choose .side li { font-size: .86rem; color: hsl(var(--text-dim)); margin-bottom: 6px; }

/* ============ 语言切换 ============ */
.lang-switch {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .82rem; font-weight: 600; text-decoration: none;
  color: hsl(var(--text));
  background: hsl(var(--bg-elev));
  border: 1px solid hsl(var(--border));
  padding: 5px 10px; border-radius: 8px; margin-right: 8px;
}
.lang-switch:hover { border-color: hsl(var(--nav-theme)); color: hsl(var(--nav-theme)); }

/* ============ 无障碍：键盘焦点样式（全局） ============ */
:focus-visible {
  outline: 3px solid hsl(var(--nav-theme));
  outline-offset: 2px;
  border-radius: 4px;
}
/* 鼠标点击时不显示 outline，键盘导航时显示（:focus-visible 已处理）；额外兜底 */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}
