/* ==========================================================================
   Kando 官方推广站点样式 · www.kando.net.cn
   风格：扁平 · 现代 · 专业（配色源自 Kando 品牌标识）
   ========================================================================== */

/* ---------- 1. 设计变量 ---------- */
:root {
  /* 品牌色（取自 Logo） */
  --c-primary: #382848;        /* 深紫：主品牌色 */
  --c-primary-dark: #2E2140;   /* 更深紫：深色区块 */
  --c-primary-deeper: #241A31; /* 页脚 */
  --c-accent: #884878;         /* 紫红 */
  --c-mint: #4FA396;           /* 深薄荷青 */
  --c-mint-light: #A8D8D8;     /* 浅薄荷 */
  --c-mint-tint: #EAF5F3;      /* 薄荷底色 */
  --c-coral: #E0785F;          /* 深珊瑚 */
  --c-coral-light: #F8A898;    /* 浅珊瑚 */
  --c-coral-tint: #FDF0EC;     /* 珊瑚底色 */
  --c-cream: #F8C888;          /* 奶油黄 */
  --c-cream-tint: #FCF4E6;     /* 奶油底色 */
  --c-purple-tint: #F4EDF6;    /* 紫红底色 */

  /* 中性色 */
  --c-bg: #FAF9FB;
  --c-surface: #FFFFFF;
  --c-text: #2A2233;
  --c-text-2: #655D70;
  --c-text-3: #918AA0;
  --c-border: #E7E2EE;
  --c-border-strong: #D5CEDF;

  /* 布局 */
  --radius: 14px;
  --radius-sm: 9px;
  --container: 1160px;
  --header-h: 68px;

  /* 字体 */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "Cascadia Code", Consolas, "Liberation Mono", Menlo, monospace;
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-mint); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--c-primary); }

ul, ol { list-style: none; }

:focus-visible {
  outline: 3px solid var(--c-mint);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--c-mint-light); color: var(--c-primary); }

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-text);
  letter-spacing: -.01em;
}

.section { padding: 84px 0; }
.section-sm { padding: 60px 0; }
.section-dark { background: var(--c-primary-dark); color: #EDE9F2; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #FFFFFF; }
.section-tint { background: #F3F0F7; }
.section-white { background: var(--c-surface); }

.section-head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.section-head-left { text-align: left; margin-left: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--c-mint);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--c-mint);
}
.section-dark .eyebrow { color: var(--c-mint-light); }
.section-dark .eyebrow::before { background: var(--c-mint-light); }

.section-title { font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 16px; }
.section-lead { font-size: 17px; color: var(--c-text-2); }
.section-dark .section-lead { color: #BFB6CC; }

.text-link { font-weight: 600; }

/* ---------- 4. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease,
    transform .15s ease, box-shadow .2s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--c-primary);
  color: #fff;
}
.btn-primary:hover {
  background: #4A3860;
  color: #fff;
  box-shadow: 0 6px 18px rgba(56, 40, 72, .28);
}

.btn-outline {
  background: transparent;
  color: var(--c-primary);
  border-color: var(--c-border-strong);
}
.btn-outline:hover {
  border-color: var(--c-primary);
  background: rgba(56, 40, 72, .04);
  color: var(--c-primary);
}

.btn-light {
  background: #fff;
  color: var(--c-primary);
}
.btn-light:hover {
  background: var(--c-mint-light);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
  color: var(--c-primary);
}

.btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .38);
}
.btn-ghost-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.btn-lg { padding: 16px 40px; font-size: 17px; }
.btn-sm { padding: 9px 20px; font-size: 14px; }

.btn .btn-note {
  display: block;
  font-size: 12px;
  font-weight: 400;
  opacity: .75;
  margin-top: 2px;
}

.btn-with-note { flex-direction: column; gap: 2px; padding-top: 11px; padding-bottom: 11px; }

/* ---------- 5. 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--c-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.brand img { width: 38px; height: 38px; }
.brand-name {
  font-size: 21px;
  font-weight: 800;
  color: var(--c-primary);
  letter-spacing: -.01em;
}
.brand-sub {
  font-size: 12px;
  color: var(--c-text-3);
  border-left: 1px solid var(--c-border-strong);
  padding-left: 11px;
  margin-top: 3px;
}

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  position: relative;
  display: block;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--c-text-2);
  border-radius: 8px;
}
.main-nav a:hover { color: var(--c-primary); background: rgba(56, 40, 72, .06); }
.main-nav a[aria-current="page"] { color: var(--c-primary); font-weight: 700; }
.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 2px;
  height: 3px;
  border-radius: 2px;
  background: var(--c-mint);
}

.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--c-primary);
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- 6. 首页 Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 88% -10%, rgba(168, 216, 216, .30), transparent 60%),
    radial-gradient(900px 480px at -6% 110%, rgba(136, 72, 120, .10), transparent 55%),
    var(--c-bg);
  padding: 88px 0 92px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--c-text-2);
  margin-bottom: 26px;
}
.hero-badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-mint);
}
.hero-badge strong { color: var(--c-primary); }

.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.02em;
  margin-bottom: 22px;
}
.hero h1 .hl {
  color: var(--c-accent);
  position: relative;
  white-space: nowrap;
}

.hero-desc {
  font-size: 18px;
  color: var(--c-text-2);
  max-width: 540px;
  margin-bottom: 34px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 42px; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: 14px;
  color: var(--c-text-2);
}
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 17px; height: 17px; color: var(--c-mint); flex-shrink: 0; }

/* Hero 右侧：交互演示画布 */
.hero-demo {
  position: relative;
  background: var(--c-primary-dark);
  border-radius: 22px;
  padding: 8px;
  box-shadow: 0 24px 60px rgba(46, 33, 64, .30);
}
.hero-demo-frame {
  position: relative;
  border-radius: 16px;
  background:
    radial-gradient(rgba(255,255,255,.055) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  min-height: 430px;
  overflow: hidden;
  cursor: crosshair;
  user-select: none;
  -webkit-user-select: none;
}
.hero-demo-hint {
  position: absolute;
  left: 50%;
  top: 26px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 18px;
  background: rgba(36, 26, 49, .82);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  color: #D9D2E4;
  font-size: 13.5px;
  pointer-events: none;
  white-space: nowrap;
}
.hero-demo-hint svg { width: 16px; height: 16px; color: var(--c-mint-light); }
.hero-demo-version {
  position: absolute;
  right: 16px;
  bottom: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, .45);
  font-family: var(--font-mono);
  pointer-events: none;
}

/* 饼状菜单演示（JS 生成 SVG） */
.pie-demo { position: absolute; inset: 0; z-index: 5; }
.pie-demo svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pie-wedge { fill: rgba(255, 255, 255, .07); stroke: rgba(255, 255, 255, .14); stroke-width: 1; cursor: pointer; transition: fill .12s ease; }
.pie-wedge:hover, .pie-wedge.active { fill: rgba(255, 255, 255, .16); }
.pie-item { pointer-events: none; color: #D9EDF5; }
.pie-item use { color: inherit; }
.pie-item .pie-icon { transition: transform .15s ease; transform-origin: center; transform-box: fill-box; }
.pie-wedge.active + .pie-item .pie-icon { transform: scale(1.18); }
.pie-label {
  font-size: 12.5px;
  fill: #E7E0F0;
  font-weight: 600;
  text-anchor: middle;
  dominant-baseline: middle;
}
.pie-center {
  fill: var(--c-primary);
  stroke: rgba(255, 255, 255, .22);
  stroke-width: 1.5;
}
.pie-center-text {
  font-size: 13px;
  font-weight: 700;
  fill: #fff;
  text-anchor: middle;
  dominant-baseline: middle;
}

/* 演示结果提示（Toast） */
.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translate(-50%, 20px);
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(92vw, 520px);
  padding: 14px 22px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(42, 34, 51, .25);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast-icon {
  width: 38px; height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--c-mint-tint);
  color: var(--c-mint);
}
.toast-icon svg { width: 20px; height: 20px; }
.toast-body strong { display: block; font-size: 15px; color: var(--c-text); }
.toast-body span { display: block; font-size: 13px; color: var(--c-text-2); line-height: 1.5; }

/* ---------- 7. 通用卡片 ---------- */
.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 {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.card:hover {
  border-color: var(--c-border-strong);
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(42, 34, 51, .08);
}

.card-icon {
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  margin-bottom: 18px;
}
.card-icon svg { width: 25px; height: 25px; }
.card-icon.mint { background: var(--c-mint-tint); color: var(--c-mint); }
.card-icon.coral { background: var(--c-coral-tint); color: var(--c-coral); }
.card-icon.cream { background: var(--c-cream-tint); color: #C99236; }
.card-icon.purple { background: var(--c-purple-tint); color: var(--c-accent); }

.card h3 { font-size: 18.5px; margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--c-text-2); }

/* 使用场景卡片 */
.scenario-card { position: relative; overflow: hidden; }
.scenario-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--c-mint);
}
.scenario-card:nth-child(4n+2)::before { background: var(--c-coral); }
.scenario-card:nth-child(4n+3)::before { background: #C99236; }
.scenario-card:nth-child(4n+4)::before { background: var(--c-accent); }
.scenario-card .card-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--c-text-3);
  margin-bottom: 8px;
}

/* 功能编号列表卡 */
.feature-list-card li {
  display: flex;
  gap: 12px;
  padding: 9px 0;
  font-size: 15px;
  color: var(--c-text-2);
}
.feature-list-card svg { width: 19px; height: 19px; color: var(--c-mint); flex-shrink: 0; margin-top: 4px; }

/* ---------- 8. 数据统计条 ---------- */
.stats-band {
  background: var(--c-primary-dark);
  padding: 54px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-item .stat-num {
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.stat-num .unit { font-size: .5em; font-weight: 600; color: var(--c-mint-light); margin-left: 2px; }
.stat-item .stat-label { font-size: 14px; color: #A99FB8; margin-top: 6px; }
.stat-item { position: relative; }
.stat-item + .stat-item::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 18%;
  height: 64%;
  width: 1px;
  background: rgba(255, 255, 255, .12);
}

/* ---------- 9. 步骤流程 ---------- */
.steps { counter-reset: step; display: grid; gap: 22px; }
.step-item {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.step-num {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  font-size: 21px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-item h3 { font-size: 17.5px; margin-bottom: 6px; }
.step-item p { font-size: 15px; color: var(--c-text-2); }
.step-item kbd {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: #F1ECF6;
  border: 1px solid var(--c-border-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 1px 8px;
  color: var(--c-primary);
  white-space: nowrap;
}

/* ---------- 10. 平台标识行 ---------- */
.platform-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 44px;
}
.platform-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--c-text-2);
  font-weight: 600;
  font-size: 16px;
}
.platform-item svg { width: 26px; height: 26px; color: var(--c-primary); }
.section-dark .platform-item { color: #D9D2E4; }
.section-dark .platform-item svg { color: var(--c-mint-light); }

/* ---------- 11. 子页头部 / 面包屑 ---------- */
.page-hero {
  background:
    radial-gradient(900px 400px at 85% -20%, rgba(168, 216, 216, .25), transparent 60%),
    var(--c-primary-dark);
  padding: 64px 0 58px;
  color: #EDE9F2;
}
.page-hero h1 {
  color: #fff;
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 14px;
  letter-spacing: -.015em;
}
.page-hero .page-lead { max-width: 780px; font-size: 16.5px; color: #BFB6CC; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 13.5px;
  color: #9C92AC;
  margin-bottom: 22px;
}
.breadcrumb a { color: #CFC6DB; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb li { display: flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before {
  content: "/";
  color: rgba(255, 255, 255, .35);
}
.breadcrumb [aria-current] { color: var(--c-mint-light); }

/* ---------- 12. 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.table th, .table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--c-border); }
.table thead th {
  background: #F5F1F9;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--c-text-2);
  white-space: nowrap;
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: #FAF8FC; }
.table code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: #F1ECF6;
  border-radius: 6px;
  padding: 2px 8px;
  color: var(--c-primary);
  white-space: nowrap;
}
.table .ok { color: var(--c-mint); font-weight: 700; }
.table .warn { color: #C99236; font-weight: 700; }

/* ---------- 13. 下载平台卡片 ---------- */
.dl-platform-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
}
.dl-platform-card .os-head { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.os-head svg { width: 34px; height: 34px; color: var(--c-primary); }
.os-head h2 { font-size: 21px; }
.os-head .os-en { font-size: 12.5px; color: var(--c-text-3); font-weight: 500; display: block; letter-spacing: .04em; }
.dl-platform-card .dl-desc { font-size: 14.5px; color: var(--c-text-2); margin-bottom: 20px; }
.dl-files { margin-bottom: 22px; }
.dl-files li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 2px;
  border-bottom: 1px dashed var(--c-border);
  font-size: 14px;
}
.dl-files li:last-child { border-bottom: none; }
.dl-file-name { display: flex; align-items: center; gap: 9px; color: var(--c-text); font-family: var(--font-mono); font-size: 12.8px; word-break: break-all; }
.dl-file-name svg { width: 16px; height: 16px; color: var(--c-text-3); flex-shrink: 0; }
.dl-file-meta { color: var(--c-text-3); font-size: 12.5px; white-space: nowrap; }
.dl-platform-card .btn { margin-top: auto; }
.dl-note {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: var(--c-text-2);
  background: var(--c-cream-tint);
  border: 1px solid #EFDCB4;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-top: 20px;
}
.dl-note svg { width: 16px; height: 16px; color: #C99236; flex-shrink: 0; margin-top: 3px; }

/* ---------- 14. 版本时间线 ---------- */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--c-border-strong);
}
.timeline-item { position: relative; padding: 0 0 34px 18px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 7px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--c-mint);
  border: 4px solid #fff;
  box-shadow: 0 0 0 2px var(--c-mint);
}
.timeline-item.pre::before { background: #fff; box-shadow: 0 0 0 2px var(--c-coral); }
.timeline-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 8px; }
.timeline-head h3 { font-size: 18px; }
.timeline-date { font-size: 13px; color: var(--c-text-3); }
.timeline-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  letter-spacing: .05em;
}
.timeline-tag.stable { background: var(--c-mint-tint); color: var(--c-mint); }
.timeline-tag.beta { background: var(--c-coral-tint); color: var(--c-coral); }
.timeline-item p { font-size: 15px; color: var(--c-text-2); max-width: 720px; }
.timeline-item ul { margin-top: 8px; max-width: 720px; }
.timeline-item ul li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  color: var(--c-text-2);
  margin-bottom: 4px;
}
.timeline-item ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-border-strong);
}

/* ---------- 15. FAQ 折叠 ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 600;
  color: var(--c-text);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--c-primary); }
.faq-item summary svg { width: 19px; height: 19px; color: var(--c-text-3); flex-shrink: 0; transition: transform .25s ease; }
.faq-item[open] summary svg { transform: rotate(45deg); color: var(--c-mint); }
.faq-item .faq-body { padding: 0 22px 20px; font-size: 15px; color: var(--c-text-2); }
.faq-item .faq-body p + p { margin-top: 10px; }
.faq-item .faq-body a { word-break: break-all; }

/* ---------- 16. 下载弹窗 ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal[hidden] { display: none; }
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(36, 26, 49, .62);
  backdrop-filter: blur(4px);
}
.modal-card {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  padding: 38px 36px 34px;
  box-shadow: 0 30px 80px rgba(20, 14, 30, .4);
  animation: modalIn .28s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(22px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  background: #fff;
  color: var(--c-text-2);
  cursor: pointer;
  transition: all .2s ease;
}
.modal-close:hover { color: var(--c-primary); border-color: var(--c-border-strong); }
.modal-close svg { width: 18px; height: 18px; }

.modal-head { text-align: center; margin-bottom: 26px; }
.modal-head img { width: 62px; height: 62px; margin: 0 auto 14px; }
.modal-head h3 { font-size: 24px; margin-bottom: 6px; }
.modal-head p { font-size: 14px; color: var(--c-text-2); }

.btn-download-main {
  width: 100%;
  background: var(--c-primary);
  color: #fff;
  flex-direction: column;
  gap: 1px;
  border-radius: 14px;
  padding: 15px;
}
.btn-download-main:hover { background: #4A3860; color: #fff; box-shadow: 0 10px 26px rgba(56, 40, 72, .32); }
.btn-download-main .btn-note { font-weight: 400; font-size: 12.5px; opacity: .8; }

.modal-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
  color: var(--c-text-3);
  font-size: 12.5px;
}
.modal-divider::before, .modal-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--c-border);
}

.modal-qrs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.qr-item {
  border: 1px solid var(--c-border);
  border-radius: 14px;
  padding: 18px 12px 14px;
  text-align: center;
  transition: border-color .2s ease;
}
.qr-item:hover { border-color: var(--c-mint); }
.qr-item img {
  width: 148px;
  height: 148px;
  margin: 0 auto 10px;
  border-radius: 8px;
  border: 1px solid var(--c-border);
}
.qr-item .qr-name { font-size: 14.5px; font-weight: 700; color: var(--c-text); margin-bottom: 2px; }
.qr-item .qr-tip { font-size: 12.5px; color: var(--c-text-2); }

.modal-foot { margin-top: 22px; text-align: center; font-size: 12.5px; color: var(--c-text-3); line-height: 1.6; }
.modal-foot a { color: var(--c-text-2); font-weight: 600; }

/* ---------- 17. CTA 区块 ---------- */
.cta-band {
  background:
    radial-gradient(700px 300px at 15% 0%, rgba(168, 216, 216, .16), transparent 55%),
    var(--c-primary);
  color: #fff;
  text-align: center;
  padding: 76px 0;
}
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 14px; }
.cta-band p { color: #C9C0D6; max-width: 640px; margin: 0 auto 34px; font-size: 16.5px; }
.cta-band .hero-cta { justify-content: center; margin-bottom: 0; }

/* ---------- 18. 页脚 ---------- */
.site-footer {
  background: var(--c-primary-deeper);
  color: #A99FB8;
  padding: 64px 0 0;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 48px;
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: #6E6480; border-color: #453757; }
.footer-brand p { max-width: 340px; line-height: 1.75; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #453757;
  border-radius: 10px;
  color: #C9C0D6;
}
.footer-social a:hover { border-color: var(--c-mint); color: var(--c-mint-light); }
.footer-social svg { width: 17px; height: 17px; }

.footer-col h4 {
  color: #fff;
  font-size: 14px;
  letter-spacing: .12em;
  margin-bottom: 16px;
}
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: #A99FB8; }
.footer-col a:hover { color: var(--c-mint-light); }

.footer-bottom {
  border-top: 1px solid #3A2C4E;
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: 13px;
  color: #83779A;
}
.footer-bottom a { color: #A99FB8; }
.footer-bottom a:hover { color: #fff; }

/* ---------- 19. 动效（滚动显现） ---------- */
/* 仅在 JS 可用时隐藏待显现内容，确保无 JS 环境（含部分搜索引擎爬虫）内容可见 */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .6s ease, transform .6s ease;
}
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .modal-card { animation: none; }
}

/* ---------- 20. 响应式 ---------- */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .stat-item + .stat-item::before { display: none; }
}

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    border-bottom: 1px solid var(--c-border);
    padding: 12px 24px 18px;
    box-shadow: 0 18px 40px rgba(42, 34, 51, .12);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; font-size: 15.5px; }
  .main-nav a[aria-current="page"]::after { display: none; }
  .header-actions .btn { display: none; }
  .section { padding: 64px 0; }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 64px; }
  .hero-desc { font-size: 16.5px; }
  .hero-demo-frame { min-height: 360px; }
  .modal-card { padding: 30px 22px 26px; }
  .modal-qrs { grid-template-columns: 1fr; }
  .qr-item img { width: 132px; height: 132px; }
  .step-item { grid-template-columns: 44px 1fr; }
  .step-num { width: 44px; height: 44px; font-size: 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .brand-sub { display: none; }
  .hero-trust { gap: 8px 18px; font-size: 13px; }
}

/* 视觉隐藏（无障碍） */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
