/* ==========================================================================
   AI 订阅额度查询助手 · 官网样式
   配色与客户端保持一致：白天 #0d9488 / 黑夜 #41d9ce
   ========================================================================== */

:root {
  --brand: #0d9488;
  --brand-hover: #12a89b;
  --brand-pressed: #0b7f75;
  --brand-ink: #ffffff;

  --bg: #f4f7f8;
  --bg-soft: #eef3f4;
  --surface: #ffffff;
  --surface-2: #f3f6f7;
  --surface-3: #e9eff1;
  --border: #e2e9ec;
  --border-strong: #cdd8dc;

  --text-1: #0f1b21;
  --text-2: #4b5d66;
  --text-3: #7b8d95;

  --ok: #16a34a;
  --warn: #c2820b;
  --danger: #dc4b40;
  --info: #0d9488;

  --brand-soft: rgba(13, 148, 136, 0.1);
  --brand-softer: rgba(13, 148, 136, 0.05);
  --shadow-sm: 0 1px 2px rgba(15, 27, 33, 0.06);
  --shadow-md: 0 6px 20px -8px rgba(15, 27, 33, 0.16);
  --shadow-lg: 0 24px 60px -24px rgba(15, 27, 33, 0.28);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --container: 1140px;

  --font: "PingFang SC", "Microsoft YaHei", "Segoe UI", -apple-system,
    BlinkMacSystemFont, "Noto Sans SC", "Hiragino Sans GB", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Consolas,
    "Liberation Mono", monospace;
}

html[data-theme="dark"] {
  --brand: #41d9ce;
  --brand-hover: #66e5dc;
  --brand-pressed: #2bbcb2;
  --brand-ink: #031011;

  --bg: #0b0f14;
  --bg-soft: #0e141a;
  --surface: #13181e;
  --surface-2: #181e25;
  --surface-3: #1f262e;
  --border: #262d35;
  --border-strong: #333b44;

  --text-1: #eef0f3;
  --text-2: #ccd0d4;
  --text-3: #939aa2;

  --ok: #61da92;
  --warn: #f9c965;
  --danger: #ff7a70;
  --info: #41d9ce;

  --brand-soft: rgba(65, 217, 206, 0.14);
  --brand-softer: rgba(65, 217, 206, 0.06);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 20px -8px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
}

/* ---------- 基础 ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--brand-hover);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 0.15em 0.42em;
  border-radius: 5px;
  background: var(--surface-3);
  color: var(--text-1);
  word-break: break-all;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: var(--brand-ink);
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

/* ---------- 顶部导航 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.site-header.is-stuck {
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-1);
  white-space: nowrap;
}

.brand:hover {
  color: var(--text-1);
}

.brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex: none;
}

.brand-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid var(--brand-soft);
  padding: 2px 7px;
  border-radius: 999px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.site-nav a {
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-2);
  font-weight: 500;
}

.site-nav a:hover {
  background: var(--surface-2);
  color: var(--text-1);
}

.site-nav a.is-active {
  color: var(--brand);
  background: var(--brand-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-toggle {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  padding: 0;
  transition: background-color 0.18s ease, color 0.18s ease,
    border-color 0.18s ease;
}

.icon-toggle:hover {
  background: var(--surface-2);
  color: var(--text-1);
  border-color: var(--border-strong);
}

.icon-toggle svg {
  width: 17px;
  height: 17px;
}

html[data-theme="dark"] .icon-toggle .icon-sun {
  display: none;
}

html:not([data-theme="dark"]) .icon-toggle .icon-moon {
  display: none;
}

.nav-toggle {
  display: none;
}

.nav-download {
  display: none;
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.4;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.18s ease, border-color 0.18s ease,
    color 0.18s ease, transform 0.12s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.btn-primary {
  background: var(--brand);
  color: var(--brand-ink);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--brand-hover);
  color: var(--brand-ink);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-1);
}

.btn-ghost:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
  color: var(--text-1);
}

.btn-sm {
  padding: 7px 13px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

/* ---------- 区块 ---------- */

.section {
  padding: 84px 0;
}

.section-tight {
  padding: 60px 0;
}

.section-alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 720px;
  margin-bottom: 44px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  text-wrap: balance;
}

.section-desc {
  margin-top: 14px;
  color: var(--text-2);
  font-size: 16px;
}

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 88px;
  background:
    radial-gradient(760px 380px at 12% -8%, var(--brand-softer), transparent 70%),
    radial-gradient(680px 340px at 92% 4%, var(--brand-soft), transparent 72%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(
    ellipse 80% 60% at 50% 0%,
    #000 30%,
    transparent 78%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
}

.pill-brand {
  background: var(--brand-soft);
  border-color: transparent;
  color: var(--brand);
}

.pill-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.hero h1 {
  font-size: clamp(32px, 4.2vw, 46px);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero h1 em {
  font-style: normal;
  color: var(--brand);
}

.hero-lead {
  margin-top: 20px;
  font-size: 17px;
  color: var(--text-2);
  max-width: 560px;
  text-wrap: pretty;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-meta {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13.5px;
  color: var(--text-3);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-meta svg {
  width: 15px;
  height: 15px;
  color: var(--brand);
}

/* 窗口框 */

.window {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}

.window-title {
  font-size: 12.5px;
  color: var(--text-3);
  margin-left: 6px;
}

.window-body {
  padding: 0;
  background: var(--bg);
}

.window-body img {
  width: 100%;
  height: auto;
}

/* ---------- 痛点 / 方案 ---------- */

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.pain-card {
  padding: 26px 26px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.pain-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.pain-card p {
  color: var(--text-2);
  font-size: 14.5px;
}

.pain-card .pain-q {
  display: block;
  color: var(--danger);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

/* ---------- 功能网格 ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature {
  position: relative;
  padding: 26px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature h3 {
  font-size: 16.5px;
  margin-bottom: 8px;
}

.feature p {
  color: var(--text-2);
  font-size: 14.5px;
}

/* ---------- 截图展示 ---------- */

.shot {
  margin: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.shot img {
  width: 100%;
  height: auto;
  display: block;
}

.shot figcaption {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text-2);
  background: var(--surface);
}

.shot figcaption strong {
  color: var(--text-1);
  font-weight: 600;
}

.shot-lg {
  max-width: 1000px;
  margin: 0 auto;
}

.shot-duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
  align-items: start;
}

/* 悬浮窗 / 提醒 小图 */

.widget-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.widget {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 26px 24px;
  text-align: center;
}

.widget-stage {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 26px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  margin-bottom: 16px;
}

.widget-stage img {
  width: auto;
  height: auto;
  max-width: 100%;
  image-rendering: auto;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.18));
}

.widget-stage img.scale-2 {
  width: 236px;
  image-rendering: pixelated;
}

.widget h3 {
  font-size: 15.5px;
  margin-bottom: 6px;
}

.widget p {
  font-size: 13.5px;
  color: var(--text-2);
}

.widget-scale {
  display: inline-block;
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: 10px;
}

/* ---------- 平台 ---------- */

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.platform {
  display: flex;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.platform-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 17px;
  color: #fff;
  flex: none;
}

.platform-logo.minimax {
  background: linear-gradient(135deg, #ff6a8b, #f5336b);
}

.platform-logo.zhipu {
  background: linear-gradient(135deg, #2b3448, #10151f);
}

.platform h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.platform .platform-id {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
}

.platform ul {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.platform ul li {
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
}

/* ---------- 数据表 ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

th,
td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  background: var(--surface-2);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text-2);
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: none;
}

td code {
  white-space: nowrap;
}

/* ---------- 隐私 ---------- */

.privacy-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: start;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 18px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-soft);
  border: 1px solid var(--brand);
}

.check-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 11px;
  width: 7px;
  height: 4px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

.check-list strong {
  display: block;
  font-size: 15.5px;
  margin-bottom: 4px;
}

.check-list span {
  color: var(--text-2);
  font-size: 14.5px;
}

.notice {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-left: 3px solid var(--warn);
  background: var(--surface);
  padding: 20px 22px;
}

.notice h4 {
  font-size: 15px;
  margin-bottom: 8px;
}

.notice p {
  color: var(--text-2);
  font-size: 14px;
}

.notice ul {
  margin-top: 10px;
}

.notice li {
  position: relative;
  padding-left: 16px;
  color: var(--text-2);
  font-size: 14px;
  margin-bottom: 6px;
}

.notice li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-3);
}

/* ---------- 步骤 ---------- */

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.step {
  position: relative;
  padding: 26px 24px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  width: fit-content;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 2px 9px;
  border-radius: 7px;
  margin-bottom: 12px;
}

.step h3 {
  font-size: 16.5px;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-2);
  font-size: 14.5px;
}

/* ---------- 折叠 FAQ ---------- */

.faq {
  max-width: 820px;
  margin: 0 auto;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq details[open] {
  border-color: var(--border-strong);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 17px 52px 17px 20px;
  font-weight: 600;
  font-size: 15.5px;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -6px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: -2px;
}

.faq .faq-body {
  padding: 0 20px 20px;
  color: var(--text-2);
  font-size: 14.5px;
}

.faq .faq-body p + p {
  margin-top: 10px;
}

/* ---------- CTA ---------- */

.cta {
  border-radius: var(--radius-lg);
  padding: 52px 48px;
  background:
    radial-gradient(600px 300px at 88% 0%, rgba(255, 255, 255, 0.14), transparent 70%),
    linear-gradient(135deg, var(--brand), var(--brand-pressed));
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.cta h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
}

.cta p {
  margin: 14px auto 26px;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15.5px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.cta .btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
}

.cta .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.cta .btn-primary {
  background: #fff;
  color: var(--brand-pressed);
}

.cta .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand-pressed);
}

/* ---------- 页脚 ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 48px 0 40px;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer-grid h4 {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
}

.footer-grid li {
  margin-bottom: 9px;
}

.footer-grid a,
.footer-grid li span {
  font-size: 14px;
  color: var(--text-2);
}

.footer-grid a:hover {
  color: var(--brand);
}

.footer-about p {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-2);
  max-width: 320px;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-3);
}

.copy-btn {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--brand);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.copy-btn:hover {
  text-decoration: underline;
}

.copy-btn svg {
  width: 14px;
  height: 14px;
}

/* ---------- 使用说明页 ---------- */

.guide-layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.guide-toc {
  position: sticky;
  top: 88px;
  padding: 18px 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.guide-toc h4 {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}

.guide-toc a {
  display: block;
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 13.5px;
  color: var(--text-2);
  border-left: 2px solid transparent;
}

.guide-toc a:hover {
  background: var(--surface-2);
  color: var(--text-1);
}

.guide-toc a.is-active {
  color: var(--brand);
  background: var(--brand-soft);
  border-left-color: var(--brand);
  font-weight: 600;
}

.guide-body section {
  margin-bottom: 56px;
  scroll-margin-top: 88px;
}

.guide-body h2 {
  font-size: clamp(22px, 2.8vw, 28px);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
}

.guide-body h3 {
  font-size: 17px;
  margin: 30px 0 10px;
}

.guide-body p {
  color: var(--text-2);
  margin-bottom: 14px;
}

.guide-body p strong {
  color: var(--text-1);
}

.guide-body ul.bullet {
  margin: 0 0 16px;
}

.guide-body ul.bullet li {
  position: relative;
  padding-left: 20px;
  color: var(--text-2);
  margin-bottom: 8px;
}

.guide-body ul.bullet li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}

.guide-body ol.numbered {
  margin: 0 0 16px;
  padding-left: 22px;
  counter-reset: n;
  list-style: none;
}

.guide-body ol.numbered li {
  position: relative;
  color: var(--text-2);
  margin-bottom: 10px;
  counter-increment: n;
}

.guide-body ol.numbered li::before {
  content: counter(n);
  position: absolute;
  left: -22px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.callout {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  background: var(--surface);
  padding: 16px 20px;
  margin: 18px 0;
}

.callout p {
  margin: 0;
  font-size: 14.5px;
}

.callout strong {
  color: var(--text-1);
}

.callout.warn {
  border-left-color: var(--warn);
}

.callout.danger {
  border-left-color: var(--danger);
}

.callout-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-3);
  margin-bottom: 4px;
}

.shortcut-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.shortcut {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 14px;
}

.shortcut .kbd {
  font-family: var(--mono);
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text-1);
  white-space: nowrap;
}

/* ---------- 进场动效 ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- 响应式 ---------- */

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }

  .privacy-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .guide-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .guide-toc {
    position: static;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .section {
    padding: 60px 0;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 24px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 10px 12px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-actions {
    margin-left: auto;
  }

  .header-actions .btn-primary {
    display: none;
  }

  .site-nav a.nav-download {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    background: var(--brand);
    color: var(--brand-ink);
  }

  .site-nav a.nav-download:hover {
    background: var(--brand-hover);
    color: var(--brand-ink);
  }

  .cta {
    padding: 38px 24px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .container {
    padding: 0 18px;
  }
}

@media print {
  .site-header,
  .guide-toc,
  .cta {
    display: none;
  }
}
