/* ============================================================
   Skybility HA 官网 — 共享样式
   深色科技风 · 毛玻璃 · 蓝紫渐变
   ============================================================ */
:root {
  /* 原生 UI（滚动条/表单控件/以及 Chrome 强制暗色、WebView）感知默认档为暗色 */
  color-scheme: dark;
  /* 色彩 — 暗色档：企业暗蓝 · Linux 终端基调（#21 主题升级 C 方向，浅色档 [data-theme=light] 不受影响） */
  --bg-primary: #060a14;
  --bg-secondary: #03050b;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(0, 200, 255, 0.20);
  --border-hover: rgba(0, 200, 255, 0.6);
  /* 文字 */
  --text: #dfe8f4;
  --text-dim: #93a5c9;
  --text-faint: #7385ab;
  --text-strong: #ffffff;
  --heading-color: #ffffff;
  --heading-grad: linear-gradient(135deg, #ffffff, #8fd4ff);
  --h-title-color: #8fd4ff; /* issue #6 修复：标题纯色（暗色，保证暗色扩展下可见） */
  /* 主题强调 */
  --accent: #21d4fd;
  --accent-2: #2a6cff;
  --accent-grad: linear-gradient(135deg, #21d4fd 0%, #2a6cff 100%);
  --metric-num-color: #21d4fd; /* issue #6 修复：指标数字纯色（暗色） */
  --glow: rgba(33, 212, 253, 0.22);
  --on-accent: #ffffff;
  --btn-ghost-color: #ffffff;
  --accent-3: #ff7a18;
  --cta-grad: linear-gradient(135deg, #2a6cff 0%, #ff7a18 100%);
  --nav-bg: rgba(4, 8, 18, 0.82);
  --footer-bg: rgba(4, 8, 18, 0.88);
  --bg-glow-1: #0a1434;
  --bg-glow-2: #0c1c4a;
  --grid-line: rgba(33, 212, 253, 0.05);
  --tbl-th-color: #a9d6ff;
  --tbl-td-color: #d2dcec;
  --tbl-first-color: #ffffff;
  --tbl-border: rgba(255, 255, 255, 0.05);
  --tbl-hover-bg: rgba(255, 255, 255, 0.02);
  --ghost-border: rgba(255, 255, 255, 0.25);
  --ghost-hover-bg: rgba(255, 255, 255, 0.08);
  --footer-link-hover: #aaddff;
  --ok: #36e0a0;
  /* 布局尺寸 */
  --stroke-w: 1.8px; /* SVG 描边统一真值（P3） */
  --maxw: 1180px;
  --nav-h: 64px;
  --foot-h: 56px;
  /* 字体 */
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* 暗黑 Linux 风：数据读数/代码质感用等宽字体（#21 C 方向） */
  --font-mono: "JetBrains Mono", "Cascadia Code", "SF Mono", Consolas, "Courier New", ui-monospace, monospace;
}

/* 浅色主题：默认深色（data-theme="dark" 继承 :root），此处覆写为浅色 */
[data-theme="light"] {
  color-scheme: light;
  --bg-primary: #e9eef5;
  --bg-secondary: #f4f7fb;
  --surface: rgba(15, 30, 60, 0.04);
  --surface-2: rgba(15, 30, 60, 0.06);
  --border: rgba(10, 60, 120, 0.16);
  --border-hover: rgba(10, 60, 120, 0.5);
  --text: #1c2733;
  --text-dim: #5a6b85;
  --text-faint: #54647e;
  --text-strong: #0b1220;
  --heading-color: #0b1220;
  --heading-grad: linear-gradient(135deg, #0a4a8a, #2a6cff);
  --h-title-color: #0a4a8a; /* issue #6 修复：标题纯色（亮色） */
  --accent: #0a9fd4;
  --accent-2: #2a6cff;
  --accent-grad: linear-gradient(135deg, #0a9fd4 0%, #2a6cff 100%);
  --metric-num-color: #0a4a8a; /* issue #6 v2 修复：亮色主题数字对比度 2.48→8.07（WCAG AAA），避免浅灰背景上隐形 */
  --glow: rgba(33, 212, 253, 0.25);
  --on-accent: #ffffff;
  --btn-ghost-color: #0b1220;
  --nav-bg: rgba(255, 255, 255, 0.82);
  --footer-bg: rgba(255, 255, 255, 0.85);
  --bg-glow-1: #cfe0f5;
  --bg-glow-2: #dce8ff;
  --grid-line: rgba(20, 90, 160, 0.05);
  --tbl-th-color: #0b3a66;
  --tbl-td-color: #2a3850;
  --tbl-first-color: #0b1220;
  --tbl-border: rgba(15, 30, 60, 0.10);
  --tbl-hover-bg: rgba(15, 30, 60, 0.04);
  --ghost-border: rgba(15, 30, 60, 0.25);
  --ghost-hover-bg: rgba(15, 30, 60, 0.06);
  --footer-link-hover: #0a6cff;
  --ok: #13a874;
}

/* 第三主题：暗色 · 荧光绿终端（data-theme="terminal"）
   2026-09-11 改进（issue #25）：此前仅替换强调色（--accent 青蓝→荧光绿），底色与文字沿用暗色档，
   导致用户肉眼无法察觉切换、误认为只有"深/浅"两种主题。现补齐结构性变量：墨绿底色 + 青灰绿文字 +
   墨绿表面/导航/页脚/表格，使三档（暗蓝 / 墨绿终端 / 浅色）视觉上一眼可辨。 */
[data-theme="terminal"] {
  color-scheme: dark;
  /* 底色：墨绿近黑（对比暗色档深蓝黑 #03050b） */
  --bg-primary: #03110c;
  --bg-secondary: #010806;
  --surface: rgba(0, 230, 160, 0.055);
  --surface-2: rgba(0, 230, 160, 0.085);
  --border: rgba(0, 230, 160, 0.22);
  --border-hover: rgba(0, 230, 160, 0.6);
  /* 文字：青灰绿（对比暗色档冷白偏蓝 #dfe8f4） */
  --text: #d3f0e4;
  --text-dim: #88c1a2;
  --text-faint: #6ba183;
  --text-strong: #eafff5;
  --heading-color: #eafff5;
  --heading-grad: linear-gradient(135deg, #eafff5, #7ff0c0);
  --btn-ghost-color: #eafff5;
  /* 强调 */
  --accent: #00e6a0;
  --accent-2: #00a37a;
  --accent-grad: linear-gradient(135deg, #00e6a0 0%, #00a37a 100%);
  --metric-num-color: #00e6a0;
  --glow: rgba(0, 230, 160, 0.2);
  --on-accent: #02140c;
  --cta-grad: linear-gradient(135deg, #00a37a 0%, #00e6a0 100%);
  --accent-3: #ffcc4d; /* 终端风：琥珀警示色取代橙色 */
  /* 容器 */
  --nav-bg: rgba(2, 14, 10, 0.85);
  --footer-bg: rgba(2, 14, 10, 0.90);
  --bg-glow-1: #06281e;
  --bg-glow-2: #0a3a2c;
  --grid-line: rgba(0, 230, 160, 0.07);
  /* 表格 / 幽灵按钮 */
  --tbl-th-color: #a8ecd6;
  --tbl-td-color: #c6e8d7;
  --tbl-first-color: #eafff5;
  --tbl-border: rgba(0, 230, 160, 0.10);
  --tbl-hover-bg: rgba(0, 230, 160, 0.04);
  --ghost-border: rgba(0, 230, 160, 0.28);
  --ghost-hover-bg: rgba(0, 230, 160, 0.08);
  --footer-link-hover: #a9f2d8;
  --h-title-color: #a0f0d3;
  --ok: #00e6a0;
}
[data-theme="terminal"] .btn-primary { box-shadow: 0 6px 24px rgba(0, 230, 160, 0.26); }

/* 终端档质感：CRT 水平扫描线叠加在原网格之上 */
[data-theme="terminal"] body::after {
  background-image:
    repeating-linear-gradient(0deg, rgba(0, 230, 160, 0.045) 0 1px, transparent 1px 3px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: auto, 44px 44px;
}
/* 终端档质感：eyebrow 用等宽字体，强化 Linux 终端观感 */
[data-theme="terminal"] .eyebrow { font-family: var(--font-mono); letter-spacing: 2px; }
[data-theme="terminal"] .eyebrow::before {
  width: 9px; height: 16px;
  box-shadow: 0 0 12px rgba(0, 230, 160, 0.75);
  animation: blink 1.4s steps(1) infinite;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-secondary);
  line-height: 1.7;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  padding-top: var(--nav-h);
  padding-bottom: 0;
}

/* 背景网格 + 光晕 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, var(--bg-glow-1) 0%, transparent 55%),
    radial-gradient(circle at 85% 12%, var(--bg-glow-2) 0%, transparent 50%),
    var(--bg-secondary);
  z-index: -2;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  z-index: -1;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* 可访问性：跳转链接与焦点可见样式 */
.skip-link {
  position: absolute; left: 10px; top: -54px; z-index: 100;
  background: var(--accent-3); color: #fff; padding: 9px 16px;
  border-radius: 8px; font-weight: 600; transition: top .2s ease;
}
.skip-link:focus { top: 10px; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent-3); outline-offset: 2px; border-radius: 4px; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 26px;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}
.nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .5px;
  color: var(--text-strong);
  white-space: nowrap;
}
.nav .brand .brand-logo { height: 32px; width: auto; display: block; filter: drop-shadow(0 0 10px var(--glow)); }
.nav .links { margin-left: auto; display: flex; gap: 22px; flex-wrap: wrap; }
.nav .links a {
  color: var(--text-dim);
  font-size: 15px;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .25s, border-color .25s;
}
.nav .links a:hover, .nav .links a.active { color: var(--text-strong); border-bottom-color: var(--accent); text-decoration: none; }
.nav .cta {
  background: var(--cta-grad);
  color: var(--on-accent) !important;
  padding: 8px 18px;
  border-radius: 30px;
  font-weight: 600;
  box-shadow: 0 4px 18px rgba(42, 108, 255, .35);
}
.nav .cta:hover { box-shadow: 0 8px 28px rgba(42, 108, 255, .55); }

/* 主题切换按钮（深色/浅色） */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 13px 0 11px;
  flex: 0 0 auto;
  margin-left: 4px;
  border-radius: 19px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color .25s, background .25s, transform .25s, color .25s;
}
.theme-toggle:hover { border-color: var(--border-hover); transform: translateY(-1px); color: var(--accent); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .theme-label { font-size: 12px; font-weight: 600; line-height: 1;
  white-space: nowrap; color: var(--text-dim); letter-spacing: .3px; }
.theme-toggle:hover .theme-label { color: var(--accent); }
@media (max-width: 560px) {
  .theme-toggle { width: 38px; padding: 0; justify-content: center; }
  .theme-toggle .theme-label { display: none; }
}
.theme-toggle .icon-sun, .theme-toggle .icon-term { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-term { display: block; }
[data-theme="terminal"] .theme-toggle .icon-moon { display: none; }
[data-theme="terminal"] .theme-toggle .icon-term { display: none; }
[data-theme="terminal"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* 移动端汉堡菜单（≤860px 抽屉） */
.nav-toggle { display: none; }
@media (max-width: 860px) {
  .nav-toggle {
    display: inline-grid; place-items: center;
    width: 38px; height: 38px; flex: 0 0 auto; margin-left: auto;
    border-radius: 50%; border: 1px solid var(--border);
    background: var(--surface); color: var(--text); cursor: pointer;
    transition: border-color .25s, color .25s;
  }
  .nav-toggle:hover { border-color: var(--border-hover); color: var(--accent); }
  .nav-toggle svg { width: 22px; height: 22px; }
  .nav .links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--nav-bg); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border); padding: 12px 18px;
    transform: translateY(-140%); transition: transform .25s ease; margin-left: 0;
  }
  .nav .links.open { transform: translateY(0); }
  .nav .links a { padding: 12px 4px; border-bottom: 1px solid var(--border); }
  .nav .cta { display: none; }
}

/* ---------- 容器 ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }

/* ---------- 标题 ---------- */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 600;
  text-wrap: balance;
}
/* 暗黑 Linux 终端光标块：eyebrow 前置方块（仅暗色档，浅色档保持原样） */
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 7px; height: 15px;
  margin-right: 9px;
  background: var(--accent-grad);
  vertical-align: -2px;
  border-radius: 1.5px;
  box-shadow: 0 0 10px var(--glow);
  animation: blink 2.2s steps(1) infinite;
}
@keyframes blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: .35; } }
[data-theme="light"] .eyebrow::before { display: none; }
h1, h2, h3 { color: var(--heading-color); line-height: 1.25; font-weight: 700; text-wrap: balance; }
.h-title {
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 14px;
  /* issue #6 修复：弃用 background-clip:text 渐变文字填充，改用纯色，
     确保暗色模式扩展（Dark Reader 等）/部分老旧浏览器下文字始终可见 */
  color: var(--h-title-color);
  text-wrap: balance;
}
.h-sub { font-size: 17px; color: var(--text-dim); max-width: 760px; text-wrap: balance; line-break: strict; word-break: keep-all; widows: 3; orphans: 3; }
.h-center { text-align: center; }
.h-center .h-sub { margin: 0 auto; }
/* 工具类：关键卖点短语视觉强化（与 .nobr 配合用：<strong class="hl-key"><span class="nobr">…</span></strong>） */
.hl-key { color: var(--accent); font-weight: 600; }

/* ---------- 全站防拆行 / 中文断字规则 ----------
   品牌承诺短语（7×24、≤5 秒 等）不要被浏览器强行拆成两行
   词内不断；数字+汉字整体不可拆 */
.hero .tagline, .hero h1, .pagehead h1 {
  text-wrap: pretty;
  line-break: strict;
  word-break: keep-all;
}
.card p, .section>p, .metric p, .tbl td, .support-item p, .contact p {
  text-wrap: pretty;
  line-break: strict;
  word-break: keep-all;
}
/* 工具类：关键短语不可拆行统一写 <span class="nobr">…</span> */
.nobr, abbr { white-space: nowrap; }
abbr[data-tip] { cursor: help; }

/* ---------- HERO ---------- */
/* 统一头部版式：内页 .pagehead 与首页 .hero 同一视觉语言（#21 follow-up） */
.hero, .pagehead { padding: 84px 0 56px; text-align: center; }
.hero h1, .pagehead h1 { font-size: clamp(36px, 5.5vw, 54px); }
.hero .tagline, .pagehead .h-sub { font-size: 20px; color: var(--text-dim); margin: 16px auto 0; max-width: 720px; text-wrap: balance; widows: 3; orphans: 3; }
.metrics {
  display: flex; justify-content: center; gap: 54px;
  margin: 42px 0 40px; flex-wrap: wrap;
}
.metric { text-align: center; }
.metric .num {
  font-family: var(--font-mono);
  font-size: 42px; font-weight: 700;
  letter-spacing: .5px;
  /* issue #6 修复：同上，纯色保证指标数字在暗色模式下始终可见 */
  color: var(--metric-num-color);
}
.metric .lab { font-size: 14px; color: var(--text-dim); margin-top: 4px; }
.actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 34px; border-radius: 40px;
  font-weight: 600; font-size: 16px; transition: all .3s ease; border: 1px solid transparent;
}
.btn-primary { background: var(--cta-grad); color: var(--on-accent); box-shadow: 0 6px 24px rgba(255, 122, 24, .3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 34px rgba(42, 108, 255, .55); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--btn-ghost-color); border-color: var(--ghost-border); }
.btn-ghost:hover { background: var(--ghost-hover-bg); border-color: var(--accent); text-decoration: none; }

/* ---------- P3 品牌加分：hero 配图 / SVG 描边统一 / 案例徽章 ---------- */
.hero-visual { margin: 48px auto 0; max-width: 680px; }
.hero-visual svg { width: 100%; height: auto; display: block; stroke: var(--accent); stroke-width: var(--stroke-w); filter: drop-shadow(0 10px 34px var(--glow)); }
.hv-node { fill: var(--surface-2); stroke: var(--border); }
.hv-link { stroke: var(--accent); stroke-dasharray: 5 6; }
.hv-shield { stroke: var(--accent-3); fill: none; }
.hv-dot { fill: var(--accent); stroke: none; }
.hv-pulse { stroke: var(--accent-3); }
/* SVG 描边统一：以 --stroke-w 为唯一真值，覆盖各处内联 stroke-width 属性（P3） */
.nav-toggle svg, .theme-toggle svg, .card .ic svg, .figbox svg { stroke-width: var(--stroke-w); }
/* 案例数字徽章 */
.case-badge {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-grad); color: #fff;
  font-family: var(--font-mono);
  font-weight: 700; font-size: 15px; letter-spacing: .5px;
  margin-bottom: 14px;
  box-shadow: 0 6px 18px var(--glow);
}

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 22px;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-5px); border-color: var(--border-hover); box-shadow: 0 22px 60px rgba(0, 90, 220, .12); }
.card .ic {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 14px;
  background: rgba(33, 212, 253, .1); border: 1px solid var(--border);
}
.card .ic svg { width: 24px; height: 24px; stroke: var(--accent); fill: none; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--text-dim); }
.card .tag { display:inline-block; font-size:12px; color: var(--accent); background: rgba(33,212,253,.1); border:1px solid var(--border); padding:2px 10px; border-radius: 20px; margin-bottom: 10px; }

/* ---------- 表格 ---------- */
.tbl { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; font-size: 14.5px; }
.tbl th { background: rgba(33, 212, 253, .08); color: var(--tbl-th-color); text-align: left; padding: 14px 16px; font-weight: 600; }
.tbl td { padding: 12px 16px; border-top: 1px solid var(--tbl-border); color: var(--tbl-td-color); vertical-align: top; }
.tbl tr:hover td { background: var(--tbl-hover-bg); }
.tbl td:first-child { color: var(--tbl-first-color); font-weight: 500; white-space: nowrap; }

/* ---------- 分栏（图文） ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.split.flip { grid-template-columns: .95fr 1.05fr; }
.split .txt h2 { font-size: 30px; margin-bottom: 14px; }
.split .txt p { color: var(--text-dim); margin-bottom: 12px; }
.split .txt ul { list-style: none; }
.split .txt li { color: var(--text-dim); padding-left: 22px; position: relative; margin-bottom: 8px; }
.split .txt li::before { content: "▹"; position: absolute; left: 0; color: var(--accent); }

/* ---------- 架构图框 ---------- */
.figbox {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 20px; display: grid; place-items: center;
}
.figbox svg { width: 100%; height: auto; max-width: 520px; }

/* ---------- 徽章/统计条 ---------- */
.pill-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0; }
.pill { font-size: 13px; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); padding: 6px 14px; border-radius: 30px; }

/* ---------- 案例 ---------- */
.case { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.case .org { font-size: 18px; color: var(--text-strong); font-weight: 700; margin-bottom: 4px; }
.case .scene { font-size: 13px; color: var(--accent); margin-bottom: 10px; }
.case p { font-size: 14px; color: var(--text-dim); }

/* ---------- 面包屑/页头 ---------- */
/* 头部版式统一到 HERO 节（.hero, .pagehead 同一套 padding/h1/副文规格） */

/* ---------- 支持页 ---------- */
.support-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.support-item { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px; }
.support-item h3 { font-size: 17px; margin-bottom: 6px; }
.support-item p { font-size: 14px; color: var(--text-dim); }
.contact { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 16px; }
.contact div { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.contact .k { font-size: 13px; color: var(--text-faint); }
.contact .v { font-size: 16px; color: var(--text-strong); font-weight: 600; margin-top: 2px; }
.faq { display: grid; gap: 14px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--text-strong); font-size: 15.5px; }
.faq details p { color: var(--text-dim); font-size: 14px; margin-top: 10px; }

/* ---------- 页脚 ---------- */
.footer {
  position: static;
  display: flex; align-items: center; justify-content: center;
  background: var(--footer-bg);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  font-size: 12.5px; color: var(--text-dim);
  flex-wrap: wrap;
  padding: 18px 14px;
  margin-top: 48px;
}
.footer .inner { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.footer a { color: var(--accent); }
.footer a:hover { color: var(--footer-link-hover); }
.footer .sep { color: var(--text-faint); margin: 0 8px; }
.footer .beian-badge { height: 16px; width: auto; vertical-align: -3px; margin-right: 4px; }
.footer .footer-brand { height: 22px; width: auto; vertical-align: -4px; margin-right: 8px; border-radius: 4px; background: #fff; padding: 2px 5px; }
.footer .isp-link { display: inline-flex; align-items: center; gap: 5px; }
.footer .isp-badge { height: 40px; width: auto; border-radius: 3px; border: 1px solid var(--border); background: #fff; vertical-align: middle; }
.footer .isp-link:hover .isp-badge { border-color: var(--accent); }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .split.flip { grid-template-columns: 1fr; gap: 26px; }
  .support-grid, .contact { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav { gap: 12px; padding: 0 14px; }
  .nav .links { gap: 14px; }
  .nav .links a { font-size: 13.5px; }
  .nav .cta { padding: 6px 12px; font-size: 13px; }
  .hero .tagline { font-size: 16px; }
  .hero-visual { margin-top: 28px; }
  .metrics { gap: 30px; }
  .metric .num { font-size: 34px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer { font-size: 11px; }
  .footer .sep { margin: 0 5px; }
  .footer .isp-badge { height: 28px; }
}
@media (max-width: 480px) {
  .nav .brand span.txt { display: none; }
}

/* ---------- 可访问性：尊重「减少动效」系统偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
