/* ============================================================
   Magpie 中文官网样式表 | www.magpie.net.cn
   品牌配色提取自官方 Logo：
   品牌蓝 #168DD5 → #066ABD | 石板灰 #727980 → #46494E
   风格：扁平 / 现代 / 专业，浅色主题
   ============================================================ */

:root {
  /* 品牌色 */
  --brand-500: #0F6FBE;        /* 主品牌蓝（取 logo 蓝渐变中值加深，保证对比度） */
  --brand-600: #066ABD;        /* logo 渐变深端 */
  --brand-400: #168DD5;        /* logo 渐变亮端 */
  --brand-100: #E3F0FB;        /* 浅蓝底 */
  --brand-50:  #F2F8FD;        /* 极浅蓝底 */
  /* 中性色（取 logo 石板灰） */
  --ink-900: #1E242B;          /* 主文字 */
  --ink-700: #46494E;          /* 次级文字 / logo 灰深端 */
  --ink-500: #5B6470;          /* 辅助文字 */
  --ink-300: #AFB4B9;          /* logo 银灰 */
  --line-200: #DFE4EA;         /* 分隔线 */
  --bg-body: #FFFFFF;
  --bg-soft: #F6F8FA;
  /* 功能色 */
  --ok-600: #1D7A4D;
  --warn-700: #A85B00;
  /* 其他 */
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(30, 36, 43, 0.08);
  --shadow-md: 0 4px 16px rgba(30, 36, 43, 0.10);
  --shadow-lg: 0 12px 40px rgba(6, 106, 189, 0.16);
  --container: 1160px;
  --font-sans: "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* 锚点定位补偿 sticky header 高度 */
:target, section[id] { scroll-margin-top: 84px; }

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

/* 品牌色选中文字 */
::selection { background: rgba(15, 111, 190, 0.18); color: var(--ink-900); }

/* 细滚动条（WebKit） */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: #C3CBD4; border-radius: 6px; border: 2px solid var(--bg-soft); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-300); }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand-500); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { padding-left: 1.3em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- 通用板块 ---------- */
.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); border-top: 1px solid var(--line-200); border-bottom: 1px solid var(--line-200); }
.section-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.section-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--brand-600);
  background: var(--brand-100);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 14px;
}
.section-title { font-size: 32px; line-height: 1.35; font-weight: 700; color: var(--ink-900); }
.section-desc { margin-top: 12px; color: var(--ink-500); font-size: 16px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none !important;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease, box-shadow 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
  border-radius: 6px;
}
.btn--primary {
  position: relative;
  background: linear-gradient(135deg, var(--brand-400), var(--brand-600));
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(6, 106, 189, 0.28);
  overflow: hidden;
}
.btn--primary::after {
  /* 顶部高光，增强立体感 */
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent);
  pointer-events: none;
}
.btn--primary:hover { box-shadow: 0 8px 26px rgba(6, 106, 189, 0.40); filter: saturate(1.08); }
.btn--ghost { background: #FFFFFF; border-color: var(--brand-500); color: var(--brand-600); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { background: var(--brand-50); border-color: var(--brand-600); }
.btn--lg { padding: 15px 36px; font-size: 17px; border-radius: 12px; }
.btn--sm { padding: 8px 18px; font-size: 14px; }

/* 按钮内 SVG 图标 */
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line-200);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none !important; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font-size: 21px; font-weight: 700; color: var(--ink-900); letter-spacing: 0.01em; }
.brand-name small { font-size: 12px; font-weight: 500; color: var(--ink-500); margin-left: 6px; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; }
.nav-links a {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  color: var(--ink-700);
  border-radius: 8px;
  text-decoration: none !important;
}
.nav-links a:hover { color: var(--brand-600); background: var(--brand-50); }
.nav-links a[aria-current="page"] { color: var(--brand-600); font-weight: 600; }

.nav-cta { margin-left: 12px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-200);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; color: var(--ink-700); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(22, 141, 213, 0.13), transparent 60%),
    radial-gradient(700px 380px at 0% 110%, rgba(114, 121, 128, 0.10), transparent 55%),
    linear-gradient(180deg, #F5FAFE 0%, #FFFFFF 100%);
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--line-200);
}
/* 顶部细蓝渐变线 + 网格纹理 */
.hero::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand-600), var(--brand-400), #7FB3E0);
  opacity: 0.9;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(15, 111, 190, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 111, 190, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(720px 460px at 78% 12%, #000 30%, transparent 75%);
  mask-image: radial-gradient(720px 460px at 78% 12%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--brand-600);
  background: var(--brand-100); border: 1px solid rgba(15, 111, 190, 0.18);
  padding: 5px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { font-size: 42px; line-height: 1.28; font-weight: 700; letter-spacing: 0.005em; }
.hero h1 .accent {
  background: linear-gradient(120deg, var(--brand-400) 10%, var(--brand-600) 60%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--brand-600);
}
.hero-lead { margin-top: 18px; font-size: 18px; color: var(--ink-500); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 26px; font-size: 14px; color: var(--ink-500); padding: 0; }
.hero-meta li { list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 15px; height: 15px; color: var(--ok-600); }

/* Hero 右侧真实截图（官方仓库 img 目录，WebP 优化） */
.hero-visual { position: relative; padding-bottom: 64px; }
.hero-shot {
  position: relative; margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-200);
  box-shadow:
    0 24px 60px -18px rgba(6, 106, 189, 0.30),
    0 4px 14px rgba(30, 36, 43, 0.08);
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hero-shot img { width: 100%; height: auto; display: block; }
.hero-shot:hover { transform: translateY(-4px); }
.hero-shot--overlay {
  position: absolute; right: -14px; bottom: 0;
  width: 58%;
  border: 4px solid #fff;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(30, 36, 43, 0.24);
}
.hero-shot--overlay:hover { transform: translateY(-3px); }
@media (max-width: 960px) {
  .hero-visual { padding-bottom: 56px; }
  .hero-shot--overlay { width: 52%; right: 6px; }
}

/* ---------- 数据条 ---------- */
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat-card {
  background: #FFFFFF; border: 1px solid var(--line-200); border-radius: var(--radius);
  padding: 22px 24px; text-align: center; box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.stat-card::before {
  /* 顶部品牌色细线（悬停展开） */
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 3px; border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--brand-400), var(--brand-600));
  transition: width 0.25s ease;
}
.stat-card:hover { border-color: rgba(15, 111, 190, 0.30); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-card:hover::before { width: 100%; }
.stat-num { font-size: 28px; font-weight: 700; color: var(--brand-600); line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat-num small { font-size: 14px; font-weight: 600; color: var(--ink-500); margin-left: 2px; }
.stat-label { margin-top: 6px; font-size: 13.5px; color: var(--ink-500); }

/* ---------- 卡片网格 ---------- */
.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: #FFFFFF;
  border: 1px solid var(--line-200);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.card::before {
  /* 悬停时左上角光晕 */
  content: "";
  position: absolute; top: -60px; right: -60px; width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(22, 141, 213, 0.10), transparent 70%);
  opacity: 0; transition: opacity 0.25s ease; pointer-events: none;
}
.card:hover { box-shadow: var(--shadow-md); border-color: rgba(15, 111, 190, 0.32); transform: translateY(-3px); }
.card:hover::before { opacity: 1; }
.card-icon {
  width: 46px; height: 46px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, var(--brand-100), #D8EAF9);
  color: var(--brand-600); margin-bottom: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 2px 6px rgba(15, 111, 190, 0.12);
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--ink-900); }
.card p { font-size: 14.5px; color: var(--ink-500); }
.card .card-link { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 600; }

/* ---------- 使用场景 ---------- */
.scene-card { position: relative; overflow: hidden; }
.scene-num {
  position: absolute; top: 14px; right: 20px;
  font-size: 44px; font-weight: 800; line-height: 1;
  background: linear-gradient(160deg, #D8EAF9, var(--brand-100));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--brand-100);
  user-select: none; pointer-events: none;
  transition: opacity 0.2s ease;
}
.scene-card:hover .scene-num { opacity: 0.55; }
.scene-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.scene-tags span {
  font-size: 12px; padding: 3px 10px; border-radius: 999px;
  background: var(--brand-50); color: var(--brand-600); border: 1px solid rgba(15, 111, 190, 0.18);
}

/* ---------- 算法表 ---------- */
.algo-table-wrap { overflow-x: auto; border: 1px solid var(--line-200); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
table.algo { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 720px; }
table.algo th {
  text-align: left; font-size: 13px; letter-spacing: 0.05em; color: var(--ink-500);
  background: var(--bg-soft); border-bottom: 1px solid var(--line-200);
  padding: 12px 16px; white-space: nowrap;
}
table.algo td { padding: 12px 16px; border-bottom: 1px solid var(--line-200); vertical-align: top; color: var(--ink-700); transition: background-color 0.12s ease; }
table.algo tbody tr:hover td { background: var(--brand-50); }
table.algo tbody tr:last-child td { border-bottom: none; }
table.algo td.name { font-weight: 600; color: var(--ink-900); white-space: nowrap; }
table.algo .tag {
  display: inline-block; font-size: 12px; font-weight: 600;
  border-radius: 5px; padding: 1px 8px; margin-right: 6px;
}
.tag--anime { background: #FDF0E7; color: #B4530A; }
.tag--game3d { background: var(--brand-100); color: var(--brand-600); }
.tag--pixel { background: #EAF3EC; color: var(--ok-600); }
.tag--crt { background: #F1EDF8; color: #5B3FA8; }
.tag--sharp { background: #FDF3E0; color: #A85B00; }
.tag--basic { background: var(--bg-soft); color: var(--ink-700); }

/* ---------- 步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 26px; }
.step-num {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-400), var(--brand-600));
  color: #fff; font-weight: 700; font-size: 16px; margin-bottom: 14px;
  box-shadow: 0 4px 10px rgba(6, 106, 189, 0.30);
  position: relative;
}
.step-num::after {
  /* 序号光晕 */
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid rgba(22, 141, 213, 0.22);
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: #fff; border: 1px solid var(--line-200); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.faq-item.open { border-color: rgba(15, 111, 190, 0.35); box-shadow: var(--shadow-md); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 14px;
  background: none; border: none; cursor: pointer;
  padding: 17px 20px; text-align: left; font-size: 15.5px; font-weight: 600;
  color: var(--ink-900); font-family: inherit; border-radius: var(--radius);
}
.faq-q:hover { color: var(--brand-600); }
.faq-q .chev { flex: none; width: 18px; height: 18px; color: var(--ink-500); transition: transform 0.2s ease; }
.faq-item.open .chev { transform: rotate(180deg); color: var(--brand-600); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-a-inner { padding: 0 20px 18px; color: var(--ink-500); font-size: 14.5px; }
.faq-a-inner a { font-weight: 600; }

/* ---------- 下载区（首页横幅式） ---------- */
.dl-banner {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-400) 100%);
  border-radius: var(--radius-lg);
  color: #fff; padding: 44px 48px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px;
  box-shadow: var(--shadow-lg);
}
/* 装饰性圆环 */
.dl-banner::before {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 240px; height: 240px; border-radius: 50%;
  border: 36px solid rgba(255, 255, 255, 0.08); pointer-events: none;
}
.dl-banner::after {
  content: ""; position: absolute; left: -50px; bottom: -90px;
  width: 200px; height: 200px; border-radius: 50%;
  border: 28px solid rgba(255, 255, 255, 0.06); pointer-events: none;
}
.dl-banner > * { position: relative; z-index: 1; }
.dl-banner h2 { font-size: 28px; font-weight: 700; }
.dl-banner p { margin-top: 8px; opacity: 0.92; font-size: 15px; }
.dl-banner .btn--white {
  background: #FFFFFF; color: var(--brand-600);
  box-shadow: 0 6px 18px rgba(4, 60, 110, 0.28);
}
.dl-banner .btn--white:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(4, 60, 110, 0.36); }
.dl-banner .meta { font-size: 13px; opacity: 0.85; margin-top: 10px; }

/* ---------- 版本卡片（下载中心） ---------- */
.release-card { border-left: 4px solid var(--brand-500); }
.release-card::before { display: none; }  /* 关闭卡片通用光晕，保持版本卡简洁 */
.release-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.release-badge {
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  background: linear-gradient(135deg, var(--brand-400), var(--brand-600));
  color: #fff; padding: 3px 10px; border-radius: 6px;
  box-shadow: 0 2px 8px rgba(6, 106, 189, 0.25);
}
.release-badge--old { background: var(--ink-300); box-shadow: none; }
.release-title { font-size: 22px; font-weight: 700; }
.release-date { font-size: 13.5px; color: var(--ink-500); }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-top: 18px; }
.asset {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--line-200); border-radius: var(--radius); padding: 14px 16px; background: var(--bg-soft);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.asset:hover { border-color: rgba(15, 111, 190, 0.32); box-shadow: var(--shadow-sm); background: #fff; }
.asset-info .a-name { font-weight: 600; font-size: 14.5px; }
.asset-info .a-meta { font-size: 12.5px; color: var(--ink-500); margin-top: 3px; }
.asset .btn { flex: none; }
.sha-box {
  margin-top: 16px; background: var(--bg-soft); border: 1px dashed var(--ink-300);
  border-radius: 8px; padding: 10px 14px; font-size: 12.5px; color: var(--ink-700);
  overflow-x: auto; white-space: nowrap;
}
.sha-box code { font-family: Consolas, "Courier New", monospace; }
.notes { margin-top: 18px; }
.notes h4 { font-size: 15px; margin-bottom: 8px; color: var(--ink-900); }
.notes ul { font-size: 14px; color: var(--ink-500); }
.notes li { margin-bottom: 5px; }
.ver-table-wrap { overflow-x: auto; border: 1px solid var(--line-200); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
table.ver { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
table.ver th { text-align: left; font-size: 13px; color: var(--ink-500); background: var(--bg-soft); padding: 11px 16px; border-bottom: 1px solid var(--line-200); white-space: nowrap; }
table.ver td { padding: 11px 16px; border-bottom: 1px solid var(--line-200); color: var(--ink-700); }
table.ver tr:last-child td { border-bottom: none; }

/* ---------- 通用信息面板 ---------- */
.info-panel { background: var(--brand-50); border: 1px solid rgba(15, 111, 190, 0.2); border-radius: var(--radius); padding: 20px 24px; }
.info-panel h4 { font-size: 15px; color: var(--brand-600); margin-bottom: 8px; }
.info-panel p, .info-panel li { font-size: 14px; color: var(--ink-700); }

.check-list { list-style: none; padding: 0; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; font-size: 14.5px; color: var(--ink-700); }
.check-list svg { width: 17px; height: 17px; color: var(--ok-600); flex: none; margin-top: 4px; }

/* ---------- 关于页 ---------- */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.prose h3 { font-size: 19px; font-weight: 700; margin: 26px 0 10px; }
.prose p { margin-bottom: 12px; color: var(--ink-700); font-size: 15.5px; }
.prose ul { margin: 0 0 14px; color: var(--ink-700); font-size: 15px; }

/* ---------- 页脚 ---------- */
.site-footer { background: #22262C; color: #C6CBD2; padding: 56px 0 0; margin-top: 0; position: relative; overflow: hidden; }
.site-footer::before {
  /* 页脚顶部品牌渐变细线 */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand-600), var(--brand-400), transparent 70%);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand .brand-name { color: #fff; }
.footer-desc { font-size: 13.5px; line-height: 1.8; color: #9AA1AB; max-width: 300px; }
.footer-grid h4 { font-size: 14px; color: #FFFFFF; margin-bottom: 14px; letter-spacing: 0.05em; }
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: #C6CBD2; font-size: 13.5px; text-decoration: none; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid #33383F; padding: 18px 0; font-size: 12.5px; color: #9AA1AB;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
}

/* ---------- 下载弹窗 ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(20, 26, 33, 0.55);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
  background: #fff; border-radius: var(--radius-lg);
  width: 100%; max-width: 680px; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 24px 80px rgba(6, 24, 40, 0.35);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.22s ease;
}
.modal-overlay.active .modal { transform: translateY(0) scale(1); }
.modal-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 26px; border-bottom: 1px solid var(--line-200);
  position: relative;
}
.modal-head::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 64px; height: 2px;
  background: linear-gradient(90deg, var(--brand-400), var(--brand-600));
}
.modal-head h3 { font-size: 19px; font-weight: 700; }
.modal-head .ver { font-size: 13px; color: var(--ink-500); font-weight: 500; margin-left: 8px; }
.modal-close {
  background: var(--bg-soft); border: 1px solid var(--line-200); border-radius: 8px;
  width: 36px; height: 36px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--ink-700); transition: background-color 0.15s ease, transform 0.15s ease;
}
.modal-close:hover { background: var(--line-200); transform: rotate(90deg); }
.modal-close svg { width: 18px; height: 18px; }
.modal-body { padding: 26px; }
.qr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.qr-item {
  border: 1px solid var(--line-200); border-radius: var(--radius);
  padding: 20px 16px; text-align: center; background: var(--bg-soft);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.qr-item:hover { border-color: rgba(15, 111, 190, 0.32); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.qr-box {
  width: 190px; height: 190px; margin: 0 auto 14px;
  background: #FFFFFF; border: 1px solid var(--line-200); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 8px;
}
.qr-box img { width: 100%; height: 100%; object-fit: contain; display: block; }
.qr-item h4 { font-size: 15px; font-weight: 700; color: var(--ink-900); }
.qr-item h4 .net { color: var(--brand-600); }
.qr-item p { font-size: 12.5px; color: var(--ink-500); margin-top: 4px; }
.modal-tips { margin-top: 20px; font-size: 12.5px; color: var(--ink-500); background: var(--brand-50); border-left: 3px solid var(--brand-400); border-radius: 8px; padding: 12px 16px; }

/* ---------- 面包屑 ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13.5px; color: var(--ink-500); padding: 18px 0 0; }
.breadcrumb a { color: var(--ink-500); }
.breadcrumb a:hover { color: var(--brand-600); }
.breadcrumb .sep { color: var(--ink-300); }

/* ---------- 页面标题区 ---------- */
.page-head { padding: 52px 0 10px; }
.page-head h1 { font-size: 34px; font-weight: 700; }
.page-head .lead { margin-top: 12px; color: var(--ink-500); font-size: 16.5px; max-width: 780px; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 60px 0 56px; }
  .hero h1 { font-size: 33px; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line-200);
    padding: 10px 18px 16px; box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { width: 100%; }
  .nav-toggle { display: inline-flex; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .qr-grid { grid-template-columns: 1fr; }
  .section { padding: 54px 0; }
  .section-title { font-size: 26px; }
  .dl-banner { padding: 32px 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 29px; }
}

/* ---------- 进场动画（配合 JS IntersectionObserver） ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- 回到顶部 ---------- */
.back-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 900;
  width: 44px; height: 44px; border-radius: 12px;
  background: #FFFFFF; border: 1px solid var(--line-200);
  color: var(--brand-600); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background-color 0.15s ease;
}
.back-top svg { width: 20px; height: 20px; }
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--brand-50); border-color: rgba(15, 111, 190, 0.35); }
.back-top:active { transform: translateY(1px); }
@media (max-width: 680px) {
  .back-top { right: 16px; bottom: 16px; width: 40px; height: 40px; }
}

/* 无障碍：跳转链接 */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand-600); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0; z-index: 200;
}
.skip-link:focus { left: 0; }

/* 打印样式 */
@media print {
  .site-header, .site-footer, .btn, .modal-overlay { display: none !important; }
  body { color: #000; }
}
