/* ==========================================================================
   dupeGuru 中文官方网站 · www.dupeguru.cn
   设计系统：明亮扁平 / 现代专业
   配色：石墨中性 + 品牌橙 #DE7718（保留 logo 橙作为唯一强调色）
   深色区使用微冷近黑 #17181A，中性色为纯灰阶
   ========================================================================== */

/* ---------- 设计令牌 ---------- */
:root {
  /* 深色区（微冷近黑，变量名沿用旧名 maroon，实际为中性黑） */
  --maroon-950: #0e0f10;
  --maroon-900: #17181a;
  --maroon-800: #24262a;
  --maroon-700: #393c41;
  --maroon-600: #4f5359;

  --orange-700: #9c560c;
  --orange-600: #b9660e;
  --orange-500: #de7718;   /* 主强调色：品牌橙，白字对比 3.11:1 */
  --orange-400: #f5a55c;
  --orange-100: #fbe3c8;
  --orange-50:  #fef7ee;

  --pic-500:    #3d6e8e;   /* 图片模式（官方 PE 图标青蓝） */
  --pic-50:     #ecf2f7;
  --music-500:  #6090c0;   /* 音乐模式（官方 ME 图标蓝） */
  --music-50:   #edf3fa;

  /* 中性色（纯灰阶） */
  --ink-900: #171717;
  --ink-700: #404040;
  --ink-500: #737373;
  --ink-400: #8a8a8a;
  --line:    #e5e5e5;
  --line-soft: #f0f0f0;
  --bg-warm: #fafafa;
  --bg-warm-2: #f4f4f4;
  --white: #ffffff;

  /* 语义 */
  --ok-600: #2e7d4f;
  --ok-50:  #ecf6f0;

  /* 字体 */
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC",
    "Noto Sans SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", "Cascadia Code", Consolas,
    "Noto Sans Mono", "Microsoft YaHei", monospace;

  /* 布局 */
  --container: 1160px;
  --radius: 10px;
  --radius-sm: 8px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 16px rgba(0, 0, 0, .05);
  --shadow-2: 0 4px 10px rgba(0, 0, 0, .06), 0 16px 40px rgba(0, 0, 0, .10);
  --header-h: 68px;
}

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

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

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

h1, h2, h3, h4 {
  font-family: inherit;
  color: var(--ink-900);
  line-height: 1.3;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: .01em;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
/* 居中区块与首页主标题做均衡断行，避免末行仅剩一两个字 */
.home-hero h1, .section-head h2 { text-wrap: balance; }
h3 { font-size: 1.18rem; }
h4 { font-size: 1.02rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--orange-700); text-decoration: none; }
a:hover { color: var(--orange-600); text-decoration: underline; text-underline-offset: 3px; }

ul, ol { padding-left: 1.25em; margin: 0 0 1em; }
li { margin: .3em 0; }
li::marker { color: var(--orange-500); }

strong, b { color: var(--ink-900); font-weight: 650; }
code {
  font-family: var(--font-mono);
  font-size: .88em;
  background: var(--bg-warm-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .1em .45em;
  color: var(--maroon-800);
}
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }

::selection { background: var(--orange-500); color: #fff; }

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

.skip-link {
  position: absolute; left: 12px; top: -60px;
  z-index: 200; background: var(--orange-500); color: #fff;
  padding: 10px 18px; border-radius: 0 0 10px 10px; font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 0; color: #fff; text-decoration: none; }

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

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: inherit; font-size: 1rem; font-weight: 600; line-height: 1;
  padding: 15px 30px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn .icon { width: 19px; height: 19px; }

.btn-primary { background: var(--orange-500); color: #fff; box-shadow: 0 6px 16px rgba(222, 119, 24, .282); }
.btn-primary:hover { background: var(--orange-600); color: #fff; box-shadow: 0 8px 20px rgba(222, 119, 24, .352); }

.btn-ghost { background: transparent; color: var(--maroon-900); border-color: #d4d4d4; }
.btn-ghost:hover { border-color: var(--maroon-900); color: var(--maroon-900); background: var(--orange-50); }

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

.btn-sm { padding: 10px 20px; font-size: .92rem; }
.btn-lg { padding: 17px 36px; font-size: 1.06rem; }

.btn-block { width: 100%; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--maroon-900);
  box-shadow: 0 1px 0 rgba(255,255,255,.07);
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }

.header-inner {
  display: flex; align-items: center; gap: 28px;
  height: var(--header-h);
}

.brand {
  display: inline-flex; align-items: center; gap: 11px;
  color: #fff; text-decoration: none; flex-shrink: 0;
}
.brand:hover { color: #fff; text-decoration: none; }
.brand-logo { width: 38px; height: 38px; border-radius: 9px; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 1.28rem; font-weight: 750; letter-spacing: .01em; }
.brand-name .guru { color: var(--orange-400); }
.brand-sub { font-size: .68rem; color: rgba(255,255,255,.62); letter-spacing: .24em; }

.site-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: block; color: rgba(255,255,255,.85); font-size: .98rem; font-weight: 500;
  padding: 9px 15px; border-radius: 8px; text-decoration: none;
  transition: color .15s, background-color .15s;
}
.nav-list a:hover { color: #fff; background: rgba(255,255,255,.09); text-decoration: none; }
.nav-list a[aria-current="page"] { position: relative; color: var(--orange-400); font-weight: 650; }
.nav-list a[aria-current="page"]::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 4px;
  height: 2px; background: var(--orange-500); border-radius: 2px;
}

.header-cta { flex-shrink: 0; }
.header-cta .btn { box-shadow: 0 4px 12px rgba(222, 119, 24, .308); }

.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  color: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle .icon { width: 22px; height: 22px; }

.mobile-nav { display: none; border-top: 1px solid rgba(255,255,255,.1); }
.mobile-nav ul { list-style: none; margin: 0; padding: 10px 24px 18px; }
.mobile-nav a {
  display: block; padding: 13px 8px; color: rgba(255,255,255,.9);
  font-size: 1.02rem; font-weight: 500; text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mobile-nav li:last-child a { border-bottom: 0; }
.mobile-nav a:hover { color: var(--orange-400); text-decoration: none; }
.mobile-nav a[aria-current="page"] { color: var(--orange-400); font-weight: 650; }
.mobile-nav .mobile-dl { margin: 14px 8px 2px; }
.mobile-nav.is-open { display: block; }

/* ---------- 页面横幅（内页 Hero）---------- */
.page-hero {
  background:
    radial-gradient(900px 320px at 85% -40%, rgba(222, 119, 24, .075), transparent 70%),
    linear-gradient(180deg, var(--bg-warm) 0%, var(--white) 100%);
  padding: 66px 0 58px;
  border-bottom: 1px solid var(--line-soft);
}
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; font-size: .86rem; color: var(--ink-500); }
.breadcrumb li { margin: 0; display: flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before { content: "/"; color: var(--ink-400); }
.breadcrumb li::marker { color: inherit; }
.breadcrumb a { color: var(--ink-500); }
.breadcrumb a:hover { color: var(--orange-600); }
.breadcrumb [aria-current="page"] { color: var(--orange-700); font-weight: 600; }

.page-hero h1 { max-width: 760px; margin-bottom: 14px; }
.page-hero .lead { font-size: 1.12rem; max-width: 720px; color: var(--ink-700); }

/* ---------- 小标签 / 徽章 ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .84rem; font-weight: 700; letter-spacing: .18em;
  color: var(--orange-600); margin: 0 0 12px;
}
.kicker::before { content: ""; width: 22px; height: 2.5px; background: var(--orange-500); border-radius: 2px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 600; line-height: 1;
  padding: 6px 12px; border-radius: 999px;
  background: var(--bg-warm-2); color: var(--ink-700); border: 1px solid var(--line);
}
.chip .icon { width: 14px; height: 14px; }
.chip-orange { background: var(--orange-50); border-color: var(--orange-100); color: var(--orange-700); }
.chip-green  { background: var(--ok-50); border-color: #d6eade; color: var(--ok-600); }
.chip-pic    { background: var(--pic-50); border-color: #d8e4ee; color: var(--pic-500); }
.chip-music  { background: var(--music-50); border-color: #d9e5f4; color: var(--music-500); }
.chip-maroon { background: rgba(0, 0, 0, .07); border-color: rgba(0, 0, 0, .16); color: var(--maroon-700); }

/* ---------- 首页 Hero ---------- */
.home-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(760px 420px at 88% 18%, rgba(222, 119, 24, .065), transparent 65%),
    radial-gradient(600px 380px at -10% 100%, rgba(23, 24, 26, .05), transparent 60%),
    linear-gradient(180deg, var(--bg-warm) 0%, #ffffff 78%, var(--white) 100%);
  padding: 84px 0 76px;
}
.home-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 580px);
  gap: 48px; align-items: center;
}
.hero-copy { min-width: 0; }
.home-hero h1 { margin-bottom: 18px; }
.home-hero h1 .accent { color: var(--orange-600); }
.home-hero .lead { font-size: 1.16rem; max-width: 540px; margin-bottom: 26px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; padding: 0; list-style: none; }
.hero-badges li { margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-meta { margin-top: 22px; font-size: .88rem; color: var(--ink-500); display: flex; flex-wrap: wrap; gap: 8px 22px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta .icon { width: 15px; height: 15px; color: var(--ok-600); }

.hero-shot { position: relative; margin: 0 0 0 auto; max-width: 580px; }
.hero-shot img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: 12px; background: var(--white);
  box-shadow: 0 30px 64px -28px rgba(23, 24, 26, .26), 0 2px 10px rgba(23, 24, 26, .05);
}
.hero-shot figcaption { margin-top: 15px; text-align: center; font-size: .84rem; color: var(--ink-500); }

/* ---------- 数据条 ---------- */
.stat-strip { background: var(--maroon-900); color: #fff; padding: 34px 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-item { text-align: center; padding: 6px 10px; }
.stat-num {
  font-size: 2rem; font-weight: 750; color: var(--orange-400);
  line-height: 1.2; letter-spacing: .01em;
}
.stat-num small { font-size: 1.1rem; font-weight: 650; margin-left: 2px; }
.stat-label { font-size: .9rem; color: rgba(255,255,255,.72); margin-top: 4px; }

/* ---------- 通用区块 ---------- */
.section { padding: 78px 0; }
.section-alt { background: var(--bg-warm); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-tight { padding: 60px 0; }

.section-head { max-width: 720px; margin: 0 auto 46px; text-align: center; }
.section-head .kicker { justify-content: center; }
.section-head .kicker::before { display: none; }
.section-head p { color: var(--ink-500); font-size: 1.05rem; }

.section-head-left { max-width: 760px; margin: 0 0 42px; }
.section-head-left p { color: var(--ink-500); font-size: 1.05rem; }

/* ---------- 卡片网格 ---------- */
.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); }
.grid-5 { grid-template-columns: repeat(5, 1fr); gap: 18px; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); border-color: #d4d4d4; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-700); font-size: .96rem; margin-bottom: 0; }

.card-icon {
  width: 52px; height: 52px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; background: var(--orange-50); color: var(--orange-600);
}
.card-icon .icon { width: 26px; height: 26px; }
.card-icon--maroon { background: rgba(0, 0, 0,.08); color: var(--maroon-700); }
.card-icon--pic { background: var(--pic-50); color: var(--pic-500); }
.card-icon--music { background: var(--music-50); color: var(--music-500); }
.card-icon--ok { background: var(--ok-50); color: var(--ok-600); }

.card-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* 场景卡：图标在上，底部箭头链接 */
.scenario-card { display: flex; flex-direction: column; }
.scenario-card .card-body { flex: 1; }
.scenario-card ul { margin: 10px 0 0; padding-left: 1.1em; font-size: .92rem; color: var(--ink-500); }
.scenario-card ul li { margin: .25em 0; }
.scenario-card ul li::marker { color: var(--orange-400); }

/* 模式卡：顶色条 */
.mode-card { border-top: 4px solid var(--orange-500); padding-top: 24px; }
.mode-card.mode-pic { border-top-color: var(--pic-500); }
.mode-card.mode-music { border-top-color: var(--music-500); }
.mode-card .card-icon { margin-bottom: 14px; }
.mode-card h3 .mode-tag { font-size: .72rem; vertical-align: middle; margin-left: 8px; position: relative; top: -1px; }
.mode-card dl { margin: 12px 0 0; font-size: .93rem; }
.mode-card dt { font-weight: 650; color: var(--ink-900); margin-top: 10px; }
.mode-card dd { margin: 2px 0 0; color: var(--ink-500); }

/* 步骤卡 */
.step-card { position: relative; padding-top: 34px; }
.step-num {
  position: absolute; top: -24px; left: 26px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--maroon-900); color: var(--orange-400);
  font-weight: 750; font-size: 1.25rem;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid #fff; box-shadow: var(--shadow-1);
}
.steps-grid { margin-top: 46px; }

/* ---------- 安全横幅 ---------- */
.trust-band {
  background: linear-gradient(120deg, var(--maroon-900), var(--maroon-800) 60%, var(--maroon-700));
  color: rgba(255,255,255,.88); border-radius: 18px;
  padding: 40px 42px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 34px; align-items: center;
}
.trust-band .icon { width: 54px; height: 54px; color: var(--orange-400); }
.trust-band h2 { color: #fff; margin-bottom: 8px; font-size: 1.35rem; }
.trust-band p { margin: 0; font-size: .98rem; max-width: 640px; }
.trust-band .btn { flex-shrink: 0; }

/* ---------- CTA 横幅 ---------- */
.cta-banner {
  background:
    radial-gradient(600px 260px at 12% 0%, rgba(222, 119, 24, .11), transparent 60%),
    var(--maroon-900);
  border-radius: 20px; color: #fff; text-align: center;
  padding: 60px 40px;
}
.cta-banner h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-banner p { color: rgba(255,255,255,.75); max-width: 620px; margin: 0 auto 28px; font-size: 1.06rem; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.cta-banner .btn-ghost-light:hover { background: rgba(255,255,255,.16); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-1); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
caption { caption-side: top; text-align: left; padding: 18px 22px 4px; font-weight: 700; color: var(--ink-900); font-size: 1.05rem; }
th, td { text-align: left; padding: 14px 22px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
thead th {
  background: var(--maroon-900); color: #fff; font-weight: 600;
  border-bottom: 0; white-space: nowrap; font-size: .92rem;
}
thead th:first-child { border-radius: 0; }
tbody tr:nth-child(even) { background: #fafafa; }
tbody tr:last-child td { border-bottom: 0; }
td .chip { margin: 2px 4px 2px 0; }
.table-note { font-size: .86rem; color: var(--ink-500); margin-top: 12px; }

/* ---------- 代码块 ---------- */
.code-block {
  background: var(--maroon-950); border-radius: var(--radius-sm);
  overflow: hidden; border: 1px solid var(--maroon-800);
  margin: 0 0 14px;
}
.code-block-header {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; background: rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: .82rem; color: rgba(255,255,255,.66); font-family: var(--font-mono);
}
.code-block-header .icon { width: 15px; height: 15px; }
.code-copy {
  margin-left: auto; background: transparent; border: 1px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.8); font-size: .78rem; font-family: var(--font-sans);
  padding: 4px 12px; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background-color .15s, border-color .15s;
}
.code-copy:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); }
.code-copy .icon { width: 13px; height: 13px; }
.code-copy.is-copied { color: #fbc98f; border-color: var(--orange-500); }
.code-block pre {
  margin: 0; padding: 16px 18px; overflow-x: auto;
  font-family: var(--font-mono); font-size: .88rem; line-height: 1.8;
  color: #e5e5e5;
}
.code-block .cmt { color: rgba(255, 255, 255,.45); }
.code-block .cmd { color: #fbc98f; }

/* ---------- 时间线 ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px;
  width: 2.5px; background: linear-gradient(var(--orange-500), var(--line)); border-radius: 2px;
}
.timeline li { position: relative; padding: 0 0 34px 52px; margin: 0; }
.timeline li::marker { content: none; }
.timeline li::before {
  content: ""; position: absolute; left: 3px; top: 7px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 4px solid var(--orange-500); box-shadow: 0 0 0 4px #fff;
}
.timeline .t-year {
  display: inline-block; font-family: var(--font-mono); font-weight: 700;
  color: var(--orange-700); background: var(--orange-50);
  border: 1px solid var(--orange-100); border-radius: 999px;
  font-size: .82rem; padding: 2px 12px; margin-bottom: 8px;
}
.timeline h3 { margin-bottom: 6px; font-size: 1.08rem; }
.timeline p { font-size: .95rem; color: var(--ink-700); margin: 0; max-width: 640px; }

/* ---------- 人物卡 ---------- */
.person-card { display: flex; gap: 20px; align-items: flex-start; }
.person-avatar {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 750; color: #fff;
}
.person-avatar .icon { width: 30px; height: 30px; }
.person-card h3 { margin-bottom: 4px; }
.person-role { font-size: .86rem; font-weight: 650; color: var(--orange-700); margin-bottom: 8px; }
.person-card p { font-size: .94rem; }

/* ---------- FAQ 手风琴 ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  margin-bottom: 12px; overflow: hidden;
}
.faq-q {
  width: 100%; display: flex; align-items: center; gap: 14px;
  background: none; border: 0; cursor: pointer; text-align: left;
  font-family: inherit; font-size: 1.02rem; font-weight: 650; color: var(--ink-900);
  padding: 19px 22px;
}
.faq-q:hover { color: var(--orange-700); }
.faq-q .icon { width: 20px; height: 20px; color: var(--orange-600); flex-shrink: 0; margin-left: auto; transition: transform .22s; }
.faq-q .q-ic { width: 22px; height: 22px; color: var(--orange-500); flex-shrink: 0; }
.faq-item.is-open .faq-q .icon { transform: rotate(180deg); }
.faq-a { display: none; padding: 2px 22px 20px 58px; font-size: .96rem; color: var(--ink-700); }
.faq-a p { margin-bottom: .7em; }
.faq-a a { word-break: break-all; }
.faq-item.is-open .faq-a { display: block; animation: faqIn .25s ease; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- 下载平台卡 ---------- */
.dl-platform-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 30px; display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.dl-platform-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); }
.dl-platform-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.dl-platform-icon {
  width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0;
  background: rgba(0, 0, 0,.07); color: var(--maroon-700);
  display: flex; align-items: center; justify-content: center;
}
.dl-platform-icon .icon { width: 30px; height: 30px; }
.dl-platform-head h3 { margin: 0; }
.dl-platform-head .req { font-size: .85rem; color: var(--ink-500); }
.dl-files { list-style: none; margin: 0 0 18px; padding: 0; font-size: .93rem; }
.dl-files li {
  padding: 10px 2px; border-bottom: 1px dashed var(--line); margin: 0;
}
.dl-files li::marker { content: none; }
.dl-files .f-name {
  display: block; font-family: var(--font-mono); font-size: .84rem;
  color: var(--ink-900); word-break: keep-all; overflow-wrap: anywhere;
}
.dl-files .f-size { display: block; margin-top: 2px; color: var(--ink-500); font-size: .78rem; }
.dl-platform-card .btn { margin-top: auto; }

/* ---------- 说明列表（下载页） ---------- */
.note-box {
  display: flex; gap: 16px; background: var(--orange-50);
  border: 1px solid var(--orange-100); border-radius: var(--radius-sm);
  padding: 20px 22px; font-size: .95rem;
}
.note-box .icon { width: 22px; height: 22px; color: var(--orange-600); flex-shrink: 0; margin-top: 3px; }
.note-box p { margin: 0; }
.note-box strong { display: block; margin-bottom: 3px; }

/* ---------- 下载弹窗 ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 24px;   left: 0;
  right: 0;
  top: 0;
  bottom: 0;}
button { outline: none } 
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .62); backdrop-filter: blur(3px); animation: fadeIn .2s ease; }
.modal-panel {
  position: relative; background: #fff; border-radius: 18px;
  width: 100%; max-width: 620px; max-height: calc(100vh - 48px); overflow-y: auto;
  padding: 34px 34px 30px; box-shadow: var(--shadow-2);
  animation: modalIn .26s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }

.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg-warm-2); border: 1px solid var(--line);
  color: var(--ink-700); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background-color .15s, color .15s;
}
.modal-close:hover { background: var(--maroon-900); color: #fff; }
.modal-close .icon { width: 18px; height: 18px; }

.modal-panel h2 { font-size: 1.45rem; margin-bottom: 6px; padding-right: 44px; }
.modal-version { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.modal-platform {
  font-size: .95rem; background: var(--bg-warm); border: 1px solid var(--line-soft);
  border-radius: 10px; padding: 12px 16px; margin: 14px 0 22px;
  display: flex; align-items: center; gap: 10px;
}
.modal-platform .icon { width: 19px; height: 19px; color: var(--orange-600); flex-shrink: 0; }
.modal-platform strong { font-weight: 650; }

/* 二维码（网盘渠道） */
.qr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.qr-item { text-align: center; }
.qr-box {
  height: 178px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
  display: flex; align-items: center; justify-content: center; padding: 9px;
}
.qr-box img { width: auto; height: 100%; max-width: 100%; object-fit: contain; }
.qr-label {
  margin: 12px 0 0; font-size: .95rem; font-weight: 650; color: var(--ink-900);
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.qr-label .icon { width: 16px; height: 16px; color: var(--orange-600); }
.qr-label small { display: block; font-size: .78rem; color: var(--ink-500); font-weight: 400; margin-top: 2px; }

.modal-note {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-soft);
  font-size: .84rem; color: var(--ink-500); text-align: center;
}
.modal-note a { color: var(--orange-700); }

body.modal-open { overflow: hidden; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--maroon-950); color: rgba(255,255,255,.78); margin-top: 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px;
  padding: 60px 0 46px;
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { font-size: .92rem; color: rgba(255,255,255,.6); max-width: 300px; }
.footer-badge { margin-top: 18px; }

.site-footer h3 {
  color: #fff; font-size: .95rem; letter-spacing: .1em;
  margin-bottom: 16px; font-weight: 650;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 9px 0; }
.site-footer li::marker { content: none; }
.site-footer a { color: rgba(255,255,255,.68); font-size: .93rem; text-decoration: none; }
.site-footer a:hover { color: var(--orange-400); text-decoration: none; }
.site-footer a .icon { width: 14px; height: 14px; margin-right: 6px; opacity: .7; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 22px 0; font-size: .84rem; color: rgba(255,255,255,.5);
}
.footer-bottom .container {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; align-items: center;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: rgba(255,255,255,.66); }
.footer-bottom a:hover { color: var(--orange-400); }

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--maroon-900); color: #fff; border: 0; cursor: pointer;
  box-shadow: var(--shadow-2);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .22s, visibility .22s, transform .22s, background-color .15s;
}
.back-top .icon { width: 20px; height: 20px; }
.back-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { background: var(--orange-600); }

/* ---------- 引用块 ---------- */
.quote {
  border-left: 4px solid var(--orange-500); background: var(--bg-warm);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 26px; font-size: .98rem; color: var(--ink-700);
}
.quote footer { margin-top: 8px; font-size: .86rem; color: var(--ink-500); }

/* ---------- 布局辅助 ---------- */
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 22px; } .mt-4 { margin-top: 44px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 22px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-720 { max-width: 720px; } .max-820 { max-width: 820px; }

/* 两栏图文 */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split-art { order: -1; }
.split-art svg { width: 100%; height: auto; }

/* ---------- 入场动画 ---------- */
/* 仅在 JS 可用时（html.js）才隐藏初始态，确保 JS 失效/爬虫抓取时内容完整可见 */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .home-hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .hero-shot { margin: 0 auto; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split-art { order: 0; max-width: 520px; }
}

@media (max-width: 860px) {
  .site-nav, .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 12px; }
  .trust-band { grid-template-columns: 1fr; text-align: left; gap: 20px; padding: 32px 26px; }
  .trust-band .btn { justify-self: start; }
}

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .home-hero { padding: 56px 0 52px; }
  .home-hero .lead { font-size: 1.05rem; }
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .qr-grid { grid-template-columns: 1fr; }
  .modal-panel { padding: 26px 22px 24px; }
  .faq-a { padding-left: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding: 44px 0 34px; }
  .footer-bottom .container { flex-direction: column; align-items: flex-start; }
  .btn-lg { padding: 15px 28px; }
  .step-card { margin-top: 20px; }
  .step-num { left: 50%; transform: translateX(-50%); }
  .stat-num { font-size: 1.6rem; }
  .cta-banner { padding: 44px 24px; }
}

/* ==========================================================================
   正文配图（SEO 图片资源）
   ========================================================================== */
.content-figure {
  margin: 40px 0 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}
.content-figure img {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius-sm);
  background: var(--orange-50);
}
.content-figure figcaption {
  margin-top: 14px;
  font-size: .88rem;
  line-height: 1.65;
  color: var(--ink-500);
  text-align: center;
}
.content-figure--plain { padding: 0; border: 0; box-shadow: none; background: none; overflow: hidden; }
.content-figure--plain img { border-radius: var(--radius); border: 1px solid var(--line); }
.content-figure--wide { margin-top: 46px; }
.content-figure--narrow { max-width: 660px; margin-left: auto; margin-right: auto; }
.split .content-figure { margin-top: 0; }

@media (max-width: 640px) {
  .content-figure { padding: 10px; }
  .content-figure figcaption { font-size: .84rem; }
}
