@charset "UTF-8";
/* ==========================================================================
   espanso.cn — 中文官方网站
   设计系统 · 扁平 / 现代 / 专业 · 浅色主题
   品牌色取自官方 Logo：深青绿 #053D36 → 青绿 #3DCFB8 → 柠檬绿 #E3ED23
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  /* 品牌色 */
  --brand-deep: #053d36;
  --brand-900: #0a4a42;
  --brand-800: #0a5c52;
  --brand-700: #0d7466;
  --brand-600: #128b78;
  --brand-500: #3dcfb8;
  --brand-400: #6ddcc9;
  --brand-300: #a5e8dc;
  --brand-100: #e3f6f2;
  --brand-50: #f1faf8;

  --lime-600: #b5c01b;
  --lime-500: #d7e21f;
  --lime-400: #e3ed23;
  --lime-200: #f0f6a3;
  --lime-50: #fbfce8;

  /* 中性色 */
  --ink-900: #101a18;
  --ink-800: #1c2b28;
  --ink-700: #33443f;
  --ink-600: #4b5c57;
  --ink-500: #6a7a75;
  --ink-400: #8e9b97;
  --ink-300: #b9c3c0;
  --ink-200: #dde4e2;
  --ink-100: #eef2f1;
  --ink-50: #f7faf9;
  --white: #ffffff;

  /* 语义色 */
  --success: #128b78;
  --warning: #b7791f;
  --danger: #c0392b;

  /* 排版 */
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
    "Source Han Sans SC", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, "Courier New", monospace;

  /* 尺寸 */
  --wrap: 1160px;
  --wrap-narrow: 860px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  /* 阴影（克制，扁平优先） */
  --shadow-xs: 0 1px 2px rgba(16, 26, 24, 0.05);
  --shadow-sm: 0 2px 8px rgba(16, 26, 24, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 26, 24, 0.08);
  --shadow-lg: 0 18px 48px rgba(16, 26, 24, 0.12);

  /* 动效 */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.22s;

  --header-h: 68px;
}

/* ---------- 2. 基础重置 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  color: var(--ink-900);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 4.4vw, 3.05rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  line-height: 1.32;
}

h3 {
  font-size: 1.18rem;
}

h4 {
  font-size: 1rem;
}

p {
  margin: 0;
}

a {
  color: var(--brand-700);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

a:hover {
  color: var(--brand-800);
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* 图标尺寸兜底：未显式设定尺寸的内联图标默认按 1em 渲染，
   避免裸 SVG 撑满容器 */
svg[viewBox]:not([width]):not([height]) {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

code,
kbd,
pre,
samp {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* 焦点可见性（无障碍） */
:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--brand-800);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

/* ---------- 3. 布局工具 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-narrow {
  max-width: var(--wrap-narrow);
}

.section {
  padding: 88px 0;
}

.section--tight {
  padding: 60px 0;
}

.section--muted {
  background: var(--ink-50);
}

.section--brand {
  background: var(--brand-50);
}

.section--dark {
  background: var(--brand-deep);
  color: rgba(255, 255, 255, 0.78);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: #fff;
}

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-700);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--lime-400);
  border-radius: 2px;
}

.section--dark .eyebrow {
  color: var(--brand-400);
}

.section-head p {
  margin-top: 16px;
  font-size: 1.06rem;
  color: var(--ink-600);
}

.section--dark .section-head p {
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- 4. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
  white-space: nowrap;
}

.btn svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.btn--primary {
  background: var(--brand-800);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--brand-700);
  color: #fff;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn--lime {
  background: var(--lime-400);
  color: var(--brand-deep);
  box-shadow: var(--shadow-sm);
}

.btn--lime:hover {
  background: var(--lime-500);
  color: var(--brand-deep);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--brand-800);
  border-color: var(--ink-200);
}

.btn--ghost:hover {
  background: var(--brand-50);
  border-color: var(--brand-300);
  color: var(--brand-800);
}

.btn--onDark {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.btn--onDark:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn--sm {
  padding: 9px 16px;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
}

.btn--lg {
  padding: 16px 34px;
  font-size: 1.05rem;
}

.btn--block {
  width: 100%;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 5. 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--ink-100);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand img {
  height: 26px;
  width: auto;
}

.brand__suffix {
  padding-left: 10px;
  margin-left: 2px;
  border-left: 1px solid var(--ink-200);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-500);
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  position: relative;
  display: block;
  padding: 9px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-600);
  border-radius: var(--radius-sm);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.nav__link:hover {
  color: var(--brand-800);
  background: var(--brand-50);
}

.nav__link[aria-current="page"] {
  color: var(--brand-800);
  font-weight: 600;
}

.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--lime-400);
  border-radius: 2px;
}

.header__cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--ink-700);
}

.nav-toggle:hover {
  background: var(--ink-100);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.nav-toggle__close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__close {
  display: block;
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 84px;
  background: linear-gradient(180deg, var(--brand-50) 0%, #ffffff 72%);
}

/* 粒子网络背景（复刻官网首页的连线动效，canvas 由 main.js 绘制） */
.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  top: -280px;
  right: -180px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(61, 207, 184, 0.16) 0%, rgba(61, 207, 184, 0) 68%);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -240px;
  left: -200px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(227, 237, 35, 0.18) 0%, rgba(227, 237, 35, 0) 68%);
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 8px;
  margin-bottom: 22px;
  background: #fff;
  border: 1px solid var(--brand-100);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-600);
  box-shadow: var(--shadow-xs);
}

.hero__badge b {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  background: var(--lime-50);
  border-radius: 100px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--lime-600);
  letter-spacing: 0.02em;
}

.hero h1 em {
  font-style: normal;
  white-space: nowrap;
  background-image: linear-gradient(to top, var(--lime-200) 0, var(--lime-200) 0.26em, transparent 0.26em);
}

.hero__lead {
  margin-top: 20px;
  font-size: 1.12rem;
  line-height: 1.8;
  color: var(--ink-600);
  max-width: 540px;
}

.hero__actions {
  margin-top: 32px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 26px;
  font-size: 0.86rem;
  color: var(--ink-500);
}

.hero__meta li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero__meta svg {
  width: 15px;
  height: 15px;
  color: var(--brand-600);
  flex: 0 0 auto;
}

/* ---------- 6b. 官方产品截图（Hero 主视觉） ---------- */
.shot {
  position: relative;
}

.shot__frame {
  position: relative;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.shot__frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.shot__cap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.shot__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: 100px;
  font-size: 0.79rem;
  font-weight: 500;
  color: var(--ink-600);
  box-shadow: var(--shadow-xs);
  white-space: nowrap;
}

.shot__chip svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: var(--brand-600);
}

/* 浮动说明气泡 */
.shot__tip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--brand-100);
  border-radius: 100px;
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--brand-800);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

.shot__tip svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: var(--brand-600);
}

.shot__tip--tl {
  top: -16px;
  left: -18px;
}

/* 表单截图（功能页） */
.shot--form .shot__frame {
  padding: 8px;
}

/* ---------- 7. 卡片与网格 ---------- */
.grid {
  display: grid;
  gap: 22px;
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  position: relative;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.card--hover:hover {
  border-color: var(--brand-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: var(--radius);
  color: var(--brand-700);
}

.card__icon svg {
  width: 22px;
  height: 22px;
}

.card__icon--lime {
  background: var(--lime-50);
  border-color: var(--lime-200);
  color: var(--lime-600);
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--ink-600);
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-700);
}

.card__link svg {
  width: 15px;
  height: 15px;
  transition: transform var(--dur) var(--ease);
}

.card__link:hover svg {
  transform: translateX(3px);
}

/* 场景卡 */
.scene {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.scene__item {
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.scene__item:hover {
  border-color: var(--brand-300);
  box-shadow: var(--shadow-md);
}

.scene__tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 3px 10px;
  margin-bottom: 16px;
  background: var(--brand-50);
  border-radius: 100px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--brand-700);
  letter-spacing: 0.03em;
}

.scene__item h3 {
  margin-bottom: 10px;
}

.scene__item p {
  font-size: 0.94rem;
  color: var(--ink-600);
}

.scene__example {
  margin-top: auto;
  padding-top: 18px;
}

.scene__example code {
  display: inline-block;
  padding: 3px 9px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  color: var(--brand-800);
  white-space: pre;
}

.scene__example span {
  display: block;
  margin-top: 8px;
  font-size: 0.84rem;
  color: var(--ink-500);
}

/* ---------- 8. 特性列表（带勾选） ---------- */
.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 32px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.96rem;
  color: var(--ink-700);
}

.checklist svg {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  margin-top: 3px;
  color: var(--brand-600);
}

.checklist b {
  color: var(--ink-900);
  font-weight: 600;
}

/* ---------- 9. 代码块 ---------- */
.code {
  position: relative;
  margin: 0;
  background: var(--brand-deep);
  border-radius: var(--radius);
  overflow: hidden;
}

.code__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code__file {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--brand-300);
  letter-spacing: 0.02em;
}

.code__copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.code__copy:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.code__copy svg {
  width: 13px;
  height: 13px;
}

.code__copy.is-copied {
  color: var(--lime-400);
  border-color: var(--lime-500);
}

.code pre {
  margin: 0;
  padding: 18px 20px 20px;
  overflow-x: auto;
  font-size: 0.86rem;
  line-height: 1.75;
  color: #d8e6e3;
  tab-size: 2;
}

.code pre::-webkit-scrollbar {
  height: 8px;
}

.code pre::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}

/* 语法着色 */
.tok-key {
  color: var(--brand-400);
}

.tok-str {
  color: var(--lime-400);
}

.tok-cmt {
  color: #8fa9a4;
  font-style: italic;
}

.tok-var {
  color: #ffd98e;
}

.tok-fn {
  color: #9fd8ff;
}

code.inline {
  padding: 2px 6px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: 4px;
  font-size: 0.87em;
  color: var(--brand-800);
  white-space: nowrap;
}

kbd.inline {
  display: inline-block;
  padding: 1px 7px;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-bottom-width: 2px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.82em;
  line-height: 1.6;
  color: var(--ink-800);
  white-space: nowrap;
}

/* ---------- 10. 平台下载卡 ---------- */
.platform {
  display: flex;
  flex-direction: column;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.platform:hover {
  border-color: var(--brand-300);
  box-shadow: var(--shadow-md);
}

.platform__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink-100);
}

.platform__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  background: var(--ink-50);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  color: var(--ink-800);
}

.platform__icon svg {
  width: 22px;
  height: 22px;
}

.platform__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.4;
}

.platform__req {
  font-size: 0.82rem;
  color: var(--ink-500);
}

.platform__body {
  flex: 1 1 auto;
  padding: 18px 0;
}

.platform__list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 9px;
  font-size: 0.9rem;
  color: var(--ink-600);
}

.platform__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 6px;
  height: 6px;
  background: var(--brand-400);
  border-radius: 50%;
}

.platform__list li:last-child {
  margin-bottom: 0;
}

.platform__foot {
  padding-top: 4px;
}

.platform__hint {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--ink-400);
  text-align: center;
}

/* ---------- 11. 数据条 ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--ink-200);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stats__item {
  padding: 26px 20px;
  background: #fff;
  text-align: center;
}

.stats__num {
  display: block;
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--brand-800);
  letter-spacing: -0.02em;
}

.stats__num small {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-500);
  letter-spacing: 0;
}

.stats__label {
  display: block;
  margin-top: 6px;
  font-size: 0.84rem;
  color: var(--ink-500);
}

/* ---------- 12. 折叠面板（FAQ） ---------- */
.faq {
  border-top: 1px solid var(--ink-200);
}

.faq__item {
  border-bottom: 1px solid var(--ink-200);
}

.faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 22px 0;
  text-align: left;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink-900);
  line-height: 1.6;
  transition: color var(--dur) var(--ease);
}

.faq__q:hover {
  color: var(--brand-700);
}

.faq__q svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 5px;
  color: var(--brand-600);
  transition: transform var(--dur) var(--ease);
}

.faq__q[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur) var(--ease);
}

.faq__q[aria-expanded="true"] + .faq__a {
  grid-template-rows: 1fr;
}

.faq__a > div {
  overflow: hidden;
}

.faq__a p {
  padding: 0 0 24px;
  max-width: 78ch;
  font-size: 0.96rem;
  line-height: 1.85;
  color: var(--ink-600);
}

.faq__a p + p {
  padding-top: 0;
  margin-top: -12px;
}

/* ---------- 13. 步骤 ---------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: 0;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 20px;
  padding-bottom: 40px;
}

.step:last-child {
  padding-bottom: 0;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-left: 14px;
  background: #fff;
  border: 1px solid var(--brand-300);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--brand-700);
}

.step::after {
  content: "";
  position: absolute;
  left: 36px;
  top: 46px;
  bottom: 0;
  width: 1px;
  background: var(--ink-200);
}

.step:last-child::after {
  display: none;
}

.step__body {
  padding-top: 4px;
}

.step__body h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.step__body p {
  font-size: 0.95rem;
  color: var(--ink-600);
  margin-bottom: 14px;
}

.step__body > :last-child {
  margin-bottom: 0;
}

/* ---------- 14. 提示条 ---------- */
.note {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  line-height: 1.75;
  border: 1px solid var(--brand-100);
  background: var(--brand-50);
  color: var(--ink-700);
}

.note svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--brand-700);
}

.note--warn {
  background: #fdf8ea;
  border-color: #f0e2bd;
}

.note--warn svg {
  color: var(--warning);
}

.note b {
  color: var(--ink-900);
}

.note p + p {
  margin-top: 8px;
}

/* ---------- 15. 目录侧栏（指南页） ---------- */
.doc {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  padding-right: 8px;
}

.toc__title {
  margin-bottom: 12px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-400);
}

.toc__list {
  border-left: 1px solid var(--ink-200);
}

.toc__link {
  display: block;
  padding: 7px 0 7px 14px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: 0.9rem;
  color: var(--ink-600);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.toc__link:hover {
  color: var(--brand-800);
}

.toc__link.is-active {
  color: var(--brand-800);
  font-weight: 600;
  border-left-color: var(--brand-600);
}

.doc__body > section {
  padding-bottom: 56px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--ink-100);
}

.doc__body > section:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.doc__body h2 {
  margin-bottom: 18px;
}

.doc__body h3 {
  margin: 32px 0 12px;
  font-size: 1.08rem;
}

.doc__body p {
  margin-bottom: 16px;
  font-size: 0.98rem;
  line-height: 1.85;
  color: var(--ink-600);
}

.doc__body > section > :first-child {
  margin-top: 0;
}

.doc__body .code,
.doc__body .note,
.doc__body .table {
  margin-bottom: 20px;
}

.doc__body ul.bullets {
  margin-bottom: 20px;
}

ul.bullets li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 9px;
  font-size: 0.96rem;
  line-height: 1.8;
  color: var(--ink-600);
}

ul.bullets li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 6px;
  height: 6px;
  background: var(--brand-400);
  border-radius: 50%;
}

ul.bullets b {
  color: var(--ink-900);
  font-weight: 600;
}

/* ---------- 16. 表格 ---------- */
.table {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
}

.table table {
  min-width: 560px;
  font-size: 0.92rem;
}

.table th,
.table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--ink-100);
  vertical-align: top;
}

.table th {
  background: var(--ink-50);
  font-weight: 600;
  color: var(--ink-800);
  white-space: nowrap;
}

.table tr:last-child td {
  border-bottom: 0;
}

.table td {
  color: var(--ink-600);
}

.table code {
  white-space: nowrap;
}

/* ---------- 17. 页内 CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  padding: 56px 48px;
  background: var(--brand-deep);
  border-radius: var(--radius-xl);
  color: rgba(255, 255, 255, 0.76);
}

.cta::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -80px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(61, 207, 184, 0.26) 0%, rgba(61, 207, 184, 0) 70%);
}

.cta__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta h2 {
  color: #fff;
  font-size: clamp(1.4rem, 2.3vw, 1.85rem);
}

.cta p {
  margin-top: 10px;
  font-size: 0.98rem;
  max-width: 52ch;
}

/* ---------- 18. 页脚 ---------- */
.site-footer {
  padding: 56px 0 28px;
  background: var(--brand-deep);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.62);
}

.site-footer a:hover {
  color: #fff;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__brand img {
  height: 24px;
  width: auto;
  margin-bottom: 16px;
}

.footer__brand p {
  max-width: 30ch;
  font-size: 0.88rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.55);
}

.footer__col h4 {
  margin-bottom: 14px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.footer__col li {
  margin-bottom: 9px;
}

.footer__col a {
  font-size: 0.9rem;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer__bottom p {
  max-width: 76ch;
  line-height: 1.8;
}

.footer__legal {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* ---------- 19. 下载弹窗 ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  /* 关闭时先播完淡出再隐藏；visibility 不参与插值，避免元素延迟可聚焦 */
  transition: opacity var(--dur) var(--ease), visibility 0s linear var(--dur);
}

.modal.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity var(--dur) var(--ease), visibility 0s linear 0s;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 42, 37, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border: 0;
  padding: 0;
  cursor: default;
}

.modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 620px;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 30px 32px 26px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: translateY(14px) scale(0.985);
  transition: transform var(--dur) var(--ease);
}

.modal.is-open .modal__panel {
  transform: none;
}

.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 6px;
}

.modal__title {
  font-size: 1.24rem;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.45;
}

.modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  margin: -4px -6px 0 0;
  border-radius: var(--radius-sm);
  color: var(--ink-500);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.modal__close:hover {
  background: var(--ink-100);
  color: var(--ink-800);
}

.modal__close svg {
  width: 19px;
  height: 19px;
}

.modal__desc {
  font-size: 0.92rem;
  color: var(--ink-500);
  margin-bottom: 22px;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 16px 16px;
  background: var(--ink-50);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  text-align: center;
}

.qr__box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 200px;
  aspect-ratio: 1 / 1;
  padding: 0;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

/* 二维码图片：等比铺满，保持像素锐利 */
.qr__box img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.qr__box svg {
  width: 46px;
  height: 46px;
}

.qr__label {
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-800);
  line-height: 1.5;
}

.modal__foot {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--ink-100);
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--ink-500);
}

.modal__foot svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin-top: 3px;
  color: var(--brand-600);
}

body.is-locked {
  overflow: hidden;
}

/* ---------- 20. 内页 Hero ---------- */
.page-hero {
  padding: 56px 0 52px;
  background: linear-gradient(180deg, var(--brand-50) 0%, #fff 100%);
  border-bottom: 1px solid var(--ink-100);
}

.page-hero__inner {
  max-width: 760px;
}

.page-hero h1 {
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 1.06rem;
  line-height: 1.8;
  color: var(--ink-600);
  max-width: 66ch;
}

.page-hero .btn-group {
  margin-top: 26px;
}

/* 面包屑 */
.breadcrumb {
  padding: 14px 0 0;
  font-size: 0.82rem;
  color: var(--ink-400);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  color: var(--ink-300);
}

.breadcrumb a {
  color: var(--ink-500);
}

.breadcrumb a:hover {
  color: var(--brand-700);
}

.breadcrumb [aria-current="page"] {
  color: var(--ink-600);
  font-weight: 500;
}

/* ---------- 21. 对比表 / 规格 ---------- */
.compare th:first-child,
.compare td:first-child {
  white-space: nowrap;
  font-weight: 600;
  color: var(--ink-800);
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 20px;
  background: var(--ink-200);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  overflow: hidden;
}

.spec-list > div {
  padding: 14px 18px;
  background: #fff;
}

.spec-list dt {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-400);
}

.spec-list dd {
  margin: 4px 0 0;
  font-size: 0.94rem;
  color: var(--ink-800);
}

/* ---------- 22. 响应式 ---------- */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero__lead {
    max-width: none;
  }

  .shot {
    max-width: 560px;
  }

  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scene {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .doc {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .toc {
    position: static;
    padding: 18px 20px;
    background: var(--ink-50);
    border: 1px solid var(--ink-200);
    border-radius: var(--radius);
  }

  .toc__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 6px;
    border-left: 0;
  }

  .toc__link {
    padding: 5px 12px;
    margin-left: 0;
    border: 1px solid var(--ink-200);
    border-radius: 100px;
    background: #fff;
    font-size: 0.85rem;
  }

  .toc__link.is-active {
    border-color: var(--brand-400);
    background: var(--brand-50);
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 62px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header__cta .btn {
    display: none;
  }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 20px 20px;
    background: #fff;
    border-bottom: 1px solid var(--ink-200);
    box-shadow: var(--shadow-md);
  }

  .nav.is-open {
    display: flex;
  }

  .nav__link {
    padding: 12px 14px;
    font-size: 1rem;
  }

  .nav__link[aria-current="page"]::after {
    display: none;
  }

  .nav__link[aria-current="page"] {
    background: var(--brand-50);
  }

  .section {
    padding: 60px 0;
  }

  .hero {
    padding: 48px 0 60px;
  }

  .grid--2,
  .grid--3,
  .grid--4,
  .scene,
  .checklist,
  .spec-list {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta {
    padding: 38px 26px;
  }

  .cta__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .doc__body > section {
    padding-bottom: 40px;
    margin-bottom: 40px;
  }
}

@media (max-width: 620px) {
  .wrap {
    padding: 0 18px;
  }

  .section {
    padding: 52px 0;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .hero__lead {
    font-size: 1.02rem;
  }

  .btn-group .btn {
    flex: 1 1 auto;
  }

  .btn--lg {
    padding: 14px 22px;
    font-size: 1rem;
  }

  .brand__suffix {
    display: none;
  }

  /* 小屏下收起浮动气泡，避免遮挡截图内容 */
  .shot__tip {
    display: none;
  }

  .shot__frame {
    padding: 7px;
  }

  .step {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 16px;
  }

  .step::before {
    margin-left: 0;
    width: 40px;
    height: 40px;
    font-size: 0.85rem;
  }

  .step::after {
    left: 20px;
    top: 40px;
  }

  .qr-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .qr {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    text-align: left;
    padding: 14px;
  }

  .qr__box {
    width: 116px;
    max-width: 116px;
    height: 116px;
    flex: 0 0 auto;
    aspect-ratio: 1 / 1;
  }

  .qr__box svg {
    width: 32px;
    height: 32px;
  }

  .qr__label {
    margin-top: 0;
  }

  .modal__panel {
    padding: 24px 20px 20px;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .stats {
    grid-template-columns: 1fr;
  }
}

/* ---------- 22b. 网站地图 ---------- */
.map__group + .map__group {
  margin-top: 44px;
  padding-top: 40px;
  border-top: 1px solid var(--ink-100);
}

.map__head {
  margin-bottom: 20px;
}

.map__head h2 {
  font-size: 1.22rem;
  margin-bottom: 6px;
}

.map__head p {
  font-size: 0.9rem;
  color: var(--ink-500);
  margin: 0;
}

.map__list {
  display: grid;
  gap: 10px;
}

.map__item {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 20px;
  align-items: baseline;
  padding: 13px 16px;
  background: var(--ink-50);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.map__item:hover {
  background: var(--brand-50);
  border-color: var(--brand-300);
}

.map__link {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--brand-800);
}

.map__item:hover .map__link {
  color: var(--brand-700);
}

.map__desc {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--ink-600);
}

@media (max-width: 620px) {
  .map__item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* ---------- 23. 动效偏好与打印 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .modal,
  .toc,
  .btn {
    display: none !important;
  }

  body {
    color: #000;
  }
}
