/* =========================================================
   uu助手 · 官网封面样式
   1. 变量与基础  2. 头部导航  3. 封面 Hero  4. 通用区块
   5. 下载  6. 购买与激活  7. 教程 / FAQ / 页脚  8. 响应式
   ========================================================= */

:root {
  /* 取色自 uu助手客户端 app\ui.py 的主题常量 */
  --navy-950: #1b2836;   /* 更深的侧边栏底色，用于页脚 */
  --navy-900: #243447;   /* SIDEBAR_BG 侧边栏 */
  --navy-850: #2c425a;   /* SIDEBAR_HOVER 悬停 */
  --app-header: #204562; /* 顶部标题栏 */
  --app-content: #d6e4ef; /* CONTENT_BG 内容区底色 */
  --ink: #1d3d72;        /* CONTENT_FG 主文字 */
  --muted: #4f6a96;      /* 次级文字 */
  --line: #c7d9ea;
  --surface: #ffffff;
  --surface-soft: #e8f0fa;
  --section-tint: #d6e4ef;
  --cyan: #2f7df6;       /* SIDEBAR_ACTIVE 强调蓝 */
  --cyan-deep: #1a4f8b;  /* 按钮深蓝 */
  --teal: #5b9bd5;
  --green: #2f7df6;
  --danger: #c0392b;
  --red: #e02f2f;        /* 付款成功后显示密码用的红色 */
  --shadow-sm: 0 10px 24px rgba(29, 61, 114, .09);
  --shadow: 0 22px 60px rgba(29, 61, 114, .14);
  --radius-lg: 26px;
  --radius-md: 17px;
  --radius-sm: 11px;
  --shell: min(1180px, calc(100% - 40px));
  color-scheme: light;
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }

html { scroll-padding-top: 88px; }

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.65;
}

::selection { background: rgba(47, 125, 246, .22); }

button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { color: inherit; }
strong { font-weight: 700; }

.shell { width: var(--shell); margin-inline: auto; }

.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;
}

.skip-link {
  position: fixed; z-index: 1000; left: 16px; top: -80px; padding: 10px 16px;
  border-radius: 8px; background: #fff; color: var(--ink); box-shadow: var(--shadow);
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ==================== 2. 头部导航 ==================== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: 76px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background: rgba(36, 52, 71, .9);
  backdrop-filter: blur(18px);
  color: #fff;
  transition: box-shadow .2s, background .2s;
}
.site-header.is-scrolled {
  background: rgba(36, 52, 71, .98);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .16);
}
.header-inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; min-width: max-content; }
.brand img { border-radius: 11px; box-shadow: 0 8px 18px rgba(47, 125, 246, .28); }
.brand span { display: grid; line-height: 1.15; }
.brand strong { font-size: 16px; letter-spacing: .04em; }
.brand small { margin-top: 5px; font-size: 9px; color: #9fb3c8; letter-spacing: .16em; }

.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; font-size: 14px; color: #cbd9e8; }
.site-nav a { position: relative; padding: 26px 0 24px; transition: color .2s; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 18px; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--teal)); transition: right .2s;
}
.site-nav a:hover, .site-nav a:focus-visible { color: #fff; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { right: 0; }

.header-cta {
  display: inline-flex; align-items: center; padding: 9px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 700; color: #fff;
  background: linear-gradient(100deg, #1a4f8b, #2f7df6);
  box-shadow: 0 10px 22px rgba(47, 125, 246, .3);
  transition: transform .2s, box-shadow .2s;
}
.header-cta:hover { transform: translateY(-1px); box-shadow: 0 14px 26px rgba(47, 125, 246, .4); }

.nav-toggle { display: none; border: 0; background: transparent; padding: 10px; cursor: pointer; }
.nav-toggle > span:not(.sr-only) {
  display: block; width: 24px; height: 2px; margin: 5px 0; border-radius: 2px; background: #fff;
  transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] > span:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] > span:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] > span:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

/* ==================== 3. 封面 Hero ==================== */
.hero {
  position: relative; overflow: hidden; min-height: 780px; padding: 152px 0 110px; color: #fff;
  background:
    radial-gradient(circle at 76% 34%, rgba(47, 125, 246, .22), transparent 32%),
    radial-gradient(circle at 6% 6%, rgba(91, 155, 213, .14), transparent 32%),
    linear-gradient(135deg, #1b2836, #243447 52%, #204562);
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .28;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to right, #000, transparent 84%);
}
.hero::after {
  content: ""; position: absolute; left: -8%; right: -8%; bottom: -120px; height: 172px;
  border-radius: 50% 50% 0 0; background: #fff;
}

.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: 62px;
}
.hero-grid > * { min-width: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  padding: 7px 13px; border: 1px solid rgba(120, 170, 246, .32); border-radius: 999px;
  color: #cfe0f5; background: rgba(47, 125, 246, .16);
  font-size: 12px; letter-spacing: .04em;
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 5px rgba(47, 125, 246, .18); flex: none;
}

.hero h1 {
  margin: 0; max-width: 660px;
  font-size: clamp(44px, 5.1vw, 70px); line-height: 1.1; letter-spacing: -.045em; font-weight: 800;
}
.hero h1 em {
  display: inline-block; white-space: nowrap; color: transparent;
  background: linear-gradient(90deg, #8fc0ff, #3d8bfd);
  background-clip: text; -webkit-background-clip: text; font-style: normal;
}
.hero-lead {
  max-width: 600px; margin: 24px 0 32px; overflow-wrap: anywhere;
  color: #c3d4e6; font-size: 17px; line-height: 1.85;
}
.hero-lead strong { color: #8fc0ff; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 11px 22px; border: 1px solid transparent; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 15px; cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s, background .2s, color .2s;
}
.button svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; flex: none;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button-large { min-height: 52px; padding: 14px 28px; font-size: 16px; }
.button-primary {
  color: #fff; background: linear-gradient(100deg, #1a4f8b, #2f7df6);
  box-shadow: 0 13px 28px rgba(47, 125, 246, .3);
}
.button-primary:hover { box-shadow: 0 17px 34px rgba(47, 125, 246, .42); }
.button-ghost {
  border-color: rgba(255, 255, 255, .23); color: #e6f5f8; background: rgba(255, 255, 255, .05);
}
.button-ghost:hover { border-color: rgba(255, 255, 255, .48); background: rgba(255, 255, 255, .1); }
.button-line { border-color: var(--line); color: var(--ink); background: #fff; }
.button-line:hover { border-color: #b9d3e0; box-shadow: var(--shadow-sm); }

.hero-facts {
  display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 34px 0 0; padding: 0; list-style: none;
  color: #a9bdd2; font-size: 13.5px;
}
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts span {
  display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(47, 125, 246, .22); color: #8fc0ff; font-size: 11px;
}

/* ---- 封面右侧：客户端窗口模型 ---- */
.product-stage { position: relative; padding: 30px 12px 34px; }
.stage-orbit {
  position: absolute; border-radius: 50%; border: 1px dashed rgba(130, 176, 240, .24);
  pointer-events: none;
}
.orbit-one { inset: -2% 4% 6% 2%; animation: spin 40s linear infinite; }
.orbit-two { inset: 10% -4% -2% 12%; border-style: solid; border-color: rgba(130, 176, 240, .14); }
@keyframes spin { to { transform: rotate(360deg); } }

/* 客户端窗口模型：完全按 uu助手 的真实配色还原（深色侧边栏 + 浅蓝内容区） */
.app-window {
  position: relative; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .22);
  background: var(--app-content);
  box-shadow: 0 40px 80px rgba(10, 24, 40, .48), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.app-titlebar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .14);
  background: var(--app-header);
}
.app-brand-mini { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: #e6edf3; }
.app-brand-mini img { border-radius: 7px; }
.app-brand-mini small { color: #9fb3c8; font-size: 11px; }
.window-controls { display: inline-flex; gap: 7px; }
.window-controls i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .26); }

.app-body { display: grid; grid-template-columns: 132px 1fr; min-height: 320px; }
.app-nav-preview {
  display: grid; align-content: start; gap: 4px; padding: 16px 12px;
  border-right: 1px solid rgba(255, 255, 255, .1); background: var(--navy-900);
}
.app-nav-preview span {
  padding: 8px 10px; border-radius: 8px; color: #9fb3c8; font-size: 12.5px;
}
.app-nav-preview .active { color: #fff; background: var(--cyan); font-weight: 700; }

.app-main { padding: 18px 20px 20px; min-width: 0; background: var(--app-content); }
.app-main-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.app-main-head strong { font-size: 14px; color: var(--ink); }
.app-badge {
  padding: 3px 9px; border-radius: 999px; font-size: 11px; color: var(--cyan-deep);
  background: rgba(47, 125, 246, .12); border: 1px solid rgba(47, 125, 246, .28);
}
.app-progress {
  height: 6px; margin: 14px 0 18px; border-radius: 999px; overflow: hidden; background: #b9cfe4;
}
.app-progress i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #5b9bd5, #2f7df6);
  box-shadow: 0 0 14px rgba(47, 125, 246, .45);
  animation: pulseBar 2.6s ease-in-out infinite;
}
@keyframes pulseBar { 0%, 100% { opacity: 1; } 50% { opacity: .72; } }

.app-steps { display: grid; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.app-steps li {
  display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 10px; font-size: 12.5px; color: var(--muted);
  background: var(--surface-soft); border: 1px solid #cfdfee;
}
.app-steps b {
  display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  font-size: 11px; color: #fff; background: #93a9c0;
}
.app-steps i { font-style: normal; font-size: 11px; color: #7d94b5; }
.app-steps .is-done b { background: var(--cyan); }
.app-steps .is-done i { color: var(--cyan-deep); }
.app-steps .is-active { color: var(--ink); border-color: rgba(47, 125, 246, .34); background: rgba(47, 125, 246, .12); }
.app-steps .is-active b { background: linear-gradient(120deg, #5b9bd5, #2f7df6); }
.app-steps .is-active i { color: var(--cyan-deep); }

.app-log {
  margin: 0; padding: 12px 14px; border-radius: 12px; overflow: hidden;
  background: #ffffff; border: 1px solid #cfdfee;
  color: var(--cyan-deep); font-size: 11.5px; line-height: 1.9;
  font-family: Consolas, "Cascadia Mono", ui-monospace, monospace;
  white-space: pre-wrap; word-break: break-all;
}

.stage-chip {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px; font-size: 12.5px; color: #e6edf3;
  background: rgba(36, 52, 71, .95); border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 16px 34px rgba(10, 24, 40, .4); backdrop-filter: blur(8px);
}
.stage-chip b { color: #8fc0ff; font-size: 14px; }
.chip-a { left: -14px; bottom: 84px; animation: floaty 6s ease-in-out infinite; }
.chip-b { right: -10px; top: 6px; animation: floaty 7.5s ease-in-out infinite reverse; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ==================== 4. 通用区块 ==================== */
.trust-strip { position: relative; z-index: 3; padding: 6px 0 40px; margin-top: -34px; }
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  padding: 30px 34px; border-radius: var(--radius-lg);
  background: #fff; box-shadow: var(--shadow); border: 1px solid #dce8f5;
}
.trust-item strong { display: block; font-size: 15px; margin-bottom: 6px; }
.trust-item span { color: var(--muted); font-size: 13px; line-height: 1.7; }

.section { padding: 84px 0; }
.section-alt { background: var(--section-tint); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-eyebrow {
  margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .2em;
  color: var(--cyan-deep); text-transform: uppercase;
}
.section-head h2 {
  margin: 0 0 14px; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.24;
  letter-spacing: -.03em; font-weight: 800;
}
.section-sub { margin: 0; color: var(--muted); font-size: 15.5px; }

.card {
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: #fff; box-shadow: var(--shadow-sm);
}
.pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px;
  border-radius: 999px; font-size: 12px; font-weight: 700;
  color: var(--cyan-deep); background: rgba(47, 125, 246, .1); border: 1px solid rgba(47, 125, 246, .24);
}
.pill-live { color: var(--cyan-deep); background: rgba(47, 125, 246, .12); border-color: rgba(47, 125, 246, .3); }

/* 滚动出现动画：默认可见，只有 JS 正常运行时才隐藏后渐显，避免脚本异常时内容不可见 */
[data-reveal] { opacity: 1; transform: none; }
.has-reveal [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.has-reveal [data-reveal].is-visible { opacity: 1; transform: none; }

/* ==================== 4.5 支持软件 ==================== */
.software-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.software-card { padding: 28px; display: grid; align-content: start; gap: 12px; }
.software-card:hover { border-color: rgba(47, 125, 246, .42); box-shadow: var(--shadow); }
.software-card { transition: border-color .25s, box-shadow .25s, transform .25s; }
.software-card:hover { transform: translateY(-3px); }
.software-head { display: flex; align-items: center; gap: 12px; }
.software-head h3 { margin: 0; font-size: 18px; }
.software-tag {
  flex: none; display: grid; place-items: center; min-width: 46px; height: 30px; padding: 0 10px;
  border-radius: 10px; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; color: #fff;
}
.tag-sw { background: linear-gradient(120deg, #b83b34, #e0654f); }
.tag-ug { background: linear-gradient(120deg, #1a4f8b, #2f7df6); }
.tag-cad { background: linear-gradient(120deg, #204562, #5b9bd5); }
.tag-adobe { background: linear-gradient(120deg, #8e2f56, #d0567f); }
.software-card p { margin: 0; color: var(--muted); font-size: 14px; }
.software-points { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.software-points li { position: relative; padding-left: 20px; font-size: 13.5px; color: #3f5a6b; }
.software-points li::before {
  content: ""; position: absolute; left: 4px; top: 8px; width: 6px; height: 6px;
  border-radius: 50%; background: linear-gradient(120deg, #5b9bd5, #2f7df6);
}

.software-extra {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 26px;
  padding: 26px 30px; border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(47, 125, 246, .07), rgba(91, 155, 213, .07));
}
.extra-item b { display: block; margin-bottom: 7px; font-size: 15px; }
.extra-item span { color: var(--muted); font-size: 13px; }
.changelog-note { margin: 18px 0 0; padding-top: 16px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 12.5px; }

/* ==================== 5. 下载 ==================== */
.download-layout { display: grid; grid-template-columns: 1.55fr 1fr; gap: 26px; align-items: start; }
.download-card { padding: 30px; }
.download-card-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.download-card-top img { border-radius: 15px; box-shadow: var(--shadow-sm); }
.download-title { flex: 1; min-width: 180px; }
.download-title h3 { margin: 0 0 4px; font-size: 20px; }
.download-title h3 span { font-size: 12px; color: var(--cyan-deep); vertical-align: middle; margin-left: 6px; }
.download-title p { margin: 0; color: var(--muted); font-size: 13.5px; }

.spec-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin: 26px 0 22px; padding: 18px 0; border-block: 1px dashed var(--line);
}
.spec-grid dt { margin-bottom: 5px; color: var(--muted); font-size: 12.5px; }
.spec-grid dd { margin: 0; font-weight: 700; font-size: 15px; }

.hash-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: var(--radius-sm); background: var(--surface-soft); border: 1px solid var(--line);
}
.hash-label { flex: none; font-size: 12px; font-weight: 700; color: var(--cyan-deep); letter-spacing: .06em; }
.hash-row code {
  flex: 1; min-width: 0; font-size: 12px; color: var(--cyan-deep); overflow-wrap: anywhere;
  font-family: Consolas, "Cascadia Mono", ui-monospace, monospace;
}

.copy-btn {
  flex: none; padding: 7px 14px; border-radius: 9px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-size: 12.5px; font-weight: 700; cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.copy-btn:hover { border-color: var(--cyan); color: var(--cyan-deep); }
.copy-btn.is-copied { border-color: var(--cyan); color: var(--cyan-deep); background: rgba(47, 125, 246, .12); }

.download-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.download-note { margin: 18px 0 0; color: var(--muted); font-size: 12.5px; }
.download-note code, .pay-card code {
  padding: 2px 6px; border-radius: 6px; background: var(--surface-soft);
  font-family: Consolas, ui-monospace, monospace; font-size: 12px; color: var(--cyan-deep);
}

.changelog-card { padding: 28px; }
.changelog-card h3 { margin: 0 0 18px; font-size: 17px; }
.changelog { margin: 0; padding: 0; list-style: none; display: grid; gap: 20px; }
.changelog li { padding-left: 16px; border-left: 2px solid var(--line); }
.changelog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.changelog-head b { font-size: 14px; }
.changelog-head time { color: var(--muted); font-size: 12px; }
.changelog p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }

/* ==================== 5.6 套餐价格 ==================== */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan-card {
  position: relative; display: grid; align-content: start; gap: 14px; padding: 32px 28px;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.plan-card:hover { border-color: rgba(47, 125, 246, .42); box-shadow: var(--shadow); transform: translateY(-3px); }
.plan-card.is-featured {
  border-color: rgba(47, 125, 246, .55); box-shadow: var(--shadow);
  background: linear-gradient(180deg, #fff, rgba(47, 125, 246, .05));
}
.plan-badge {
  position: absolute; top: -13px; right: 24px; padding: 5px 13px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: #fff;
  background: linear-gradient(100deg, #1a4f8b, #2f7df6);
  box-shadow: 0 8px 18px rgba(47, 125, 246, .32);
}
.plan-name { margin: 0; font-size: 19px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; }
.plan-price small { font-size: 22px; font-weight: 700; color: var(--cyan-deep); }
.plan-price strong { font-size: 50px; line-height: 1; letter-spacing: -.04em; }
.plan-price em { font-style: normal; color: var(--muted); font-size: 14px; }
.plan-meta {
  margin: 0; padding: 9px 14px; border-radius: 10px; font-size: 13.5px;
  color: var(--ink); background: var(--surface-soft);
}
.plan-meta b { color: var(--cyan-deep); font-size: 16px; }
.plan-note {
  max-width: 760px; margin: 26px auto 0; text-align: center;
  color: var(--muted); font-size: 13.5px;
}

.feature-list { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.feature-list li { position: relative; padding-left: 26px; font-size: 14px; }
.feature-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 18px; height: 18px; margin-top: 3px;
  border-radius: 50%; background: rgba(47, 125, 246, .14); color: var(--cyan-deep); font-size: 11px;
}

/* ==================== 6. 立即购买弹窗 ==================== */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute; inset: 0; background: rgba(20, 32, 46, .62);
  backdrop-filter: blur(4px); animation: modalFade .2s ease;
}
.modal-panel {
  position: relative; z-index: 1; width: min(760px, 100%); max-height: calc(100vh - 48px);
  overflow-y: auto; padding: 30px; border-radius: var(--radius-lg); background: #fff;
  border: 1px solid var(--line); box-shadow: 0 40px 90px rgba(10, 24, 40, .45);
  animation: modalRise .26s ease;
}
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalRise { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }

.modal-close {
  position: absolute; top: 16px; right: 16px; display: grid; place-items: center;
  width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 50%;
  background: #fff; cursor: pointer; transition: border-color .2s, background .2s;
}
.modal-close svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.modal-close:hover { border-color: var(--cyan); background: var(--surface-soft); }

.modal-head { padding-right: 46px; }
.modal-title { margin: 12px 0 8px; font-size: 22px; letter-spacing: -.02em; }
.modal-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin: 0; color: var(--muted); font-size: 14px; }
.modal-price > b { font-size: 30px; color: var(--cyan-deep); }
.modal-devices { margin-left: 8px; padding: 3px 10px; border-radius: 999px; background: var(--surface-soft); color: var(--ink); font-size: 13px; }
.modal-devices b { color: var(--cyan-deep); }

/* 电脑网站支付：没有二维码，直接一个「去支付宝付款」按钮 */
.modal-pay-btn { display: flex; width: 100%; margin-top: 20px; }
.modal-pay-btn[hidden] { display: none; }

/* 当面付：页面上直接显示二维码 */
.pay-qr {
  position: relative; width: 220px; aspect-ratio: 1; margin: 20px auto 0;
  border-radius: var(--radius-md); overflow: hidden; background: #fff;
  border: 1px solid var(--line); display: grid; place-items: center;
}
.pay-qr[hidden] { display: none; }
.pay-qr img { width: 100%; height: 100%; object-fit: contain; }
.pay-qr.is-empty img { display: none; }
.pay-qr-fallback {
  position: absolute; inset: 0; display: none; place-content: center; justify-items: center;
  padding: 16px; text-align: center; color: var(--muted); font-size: 12.5px;
  background: repeating-linear-gradient(45deg, #f4f9ff, #f4f9ff 12px, #e6eff9 12px, #e6eff9 24px);
}
.pay-qr.is-empty .pay-qr-fallback { display: grid; }

.modal-steps { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.modal-steps li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 14px; color: #3f5a6b; }
.modal-steps li > span { min-width: 0; }
.modal-steps li b {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  font-size: 12px; color: #fff; background: linear-gradient(120deg, #5b9bd5, #2f7df6);
}
.modal-steps li strong { color: var(--ink); }

.pay-status {
  display: flex; align-items: center; gap: 9px; margin: 14px 0 0;
  padding: 10px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 700;
  color: var(--cyan-deep); background: rgba(47, 125, 246, .1);
  border: 1px solid rgba(47, 125, 246, .22);
}
.pay-status[hidden] { display: none; }
.pay-status-dot {
  width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: var(--cyan); box-shadow: 0 0 0 4px rgba(47, 125, 246, .16);
  animation: payPulse 1.4s ease-in-out infinite;
}
@keyframes payPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.pay-status.is-paid { color: #1a4f8b; background: rgba(47, 125, 246, .16); border-color: rgba(47, 125, 246, .4); }
.pay-status.is-paid .pay-status-dot { animation: none; background: #1a4f8b; }
.pay-status.is-error { color: var(--danger); background: rgba(192, 57, 43, .08); border-color: rgba(192, 57, 43, .28); }
.pay-status.is-error .pay-status-dot { animation: none; background: var(--danger); box-shadow: none; }

.is-locked { overflow: hidden; }

/* 顶部测试模式警告条 */
.test-banner {
  position: relative; z-index: 200; padding: 10px 20px; text-align: center;
  font-size: 13.5px; font-weight: 700; color: #fff; background: #d93025;
}
.test-banner[hidden] { display: none; }

/* 兑换规则提示：做得醒目一点 */
.rule-tip {
  display: grid; gap: 4px; margin: 18px 0 0; padding: 12px 16px;
  border-radius: var(--radius-sm); border: 1px solid rgba(230, 81, 0, .35);
  background: #fff7ed; color: #7a4a00; font-size: 13.5px; line-height: 1.7;
}
.rule-tip-title {
  font-size: 14px; font-weight: 800; color: #e65100;
}
.rule-tip-body strong, .rule-tip-body b {
  color: #c62828; font-size: 15px; letter-spacing: .02em;
}

.plan-buy { width: 100%; margin-top: 8px; }

/* 短标签不折行，避免被挤成一字一行 */
.modal-devices, .pay-status span, .code-result-label, .plan-badge { white-space: nowrap; }

/* 付款成功后直接显示的密码：红字 */
.order-box { display: flex; gap: 10px; align-items: stretch; margin-top: 18px; }
.order-field { flex: 1; min-width: 0; display: block; }
.order-field input {
  width: 100%; height: 100%; min-height: 48px; padding: 12px 16px;
  border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff;
  font-size: 15px; transition: border-color .2s, box-shadow .2s;
}
.order-field input::placeholder { color: #9fb3c1; font-size: 13.5px; }
.order-field input:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(47, 125, 246, .16); outline: none; }
.order-box .button { flex: none; padding-inline: 22px; }

.code-result {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 16px;
  margin-top: 18px; padding: 16px 20px; border-radius: var(--radius-md);
  background: rgba(224, 47, 47, .06); border: 1px solid rgba(224, 47, 47, .32);
}
.code-result[hidden] { display: none; }
.code-result-label {
  grid-column: 1 / -1; font-size: 13px; font-weight: 700; color: var(--red);
}
.code-value {
  font-family: Consolas, "Cascadia Mono", ui-monospace, monospace;
  font-size: clamp(26px, 3.8vw, 34px); font-weight: 700; letter-spacing: .16em;
  color: var(--red); white-space: nowrap;
}
.code-result .copy-btn { border-color: rgba(224, 47, 47, .4); color: var(--red); }
.code-result .copy-btn:hover { border-color: var(--red); color: var(--red); background: rgba(224, 47, 47, .08); }

/* ==================== 7. FAQ / CTA / 页脚 ==================== */
.faq-list { display: grid; gap: 12px; max-width: 900px; }
.faq-item {
  border-radius: var(--radius-md); border: 1px solid var(--line); background: #fff;
  padding: 4px 22px; box-shadow: var(--shadow-sm); transition: border-color .2s;
}
.faq-item[open] { border-color: rgba(47, 125, 246, .45); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0; font-weight: 700; font-size: 15.5px; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 24px; height: 24px;
  border-radius: 50%; background: var(--surface-soft); color: var(--cyan-deep);
  font-weight: 700; transition: transform .2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }

.cta-band {
  padding: 66px 0; color: #fff;
  background:
    radial-gradient(circle at 82% 20%, rgba(47, 125, 246, .3), transparent 36%),
    linear-gradient(120deg, var(--navy-900), var(--app-header));
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 34px; flex-wrap: wrap; }
.cta-inner h2 { margin: 0 0 10px; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.03em; }
.cta-inner p { margin: 0; color: #c3d4e6; font-size: 15px; max-width: 560px; }

.contact-list { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.contact-list li { position: relative; padding-left: 22px; color: #c3d4e6; font-size: 14px; }
.contact-list li::before {
  content: ""; position: absolute; left: 4px; top: 9px; width: 6px; height: 6px;
  border-radius: 50%; background: linear-gradient(120deg, #8fc0ff, #2f7df6);
}

.douyin-card {
  margin: 0; padding: 16px 16px 12px; border-radius: 20px; background: #fff;
  box-shadow: 0 24px 50px rgba(10, 24, 40, .38); text-align: center;
}
.douyin-card img { margin-inline: auto; border-radius: 12px; }
.douyin-card figcaption {
  margin-top: 10px; font-size: 13.5px; font-weight: 700; color: var(--cyan-deep);
}

.site-footer { padding: 42px 0; background: var(--navy-950); color: #9fb3c8; font-size: 13px; }
.footer-inner { display: grid; gap: 22px; justify-items: center; text-align: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.footer-brand img { border-radius: 10px; }
.footer-brand span { display: grid; text-align: left; line-height: 1.3; }
.footer-brand small { color: #9fb3c8; font-size: 11.5px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; }
.footer-nav a { transition: color .2s; }
.footer-nav a:hover { color: #fff; }
.footer-legal { margin: 0; }
.footer-legal a { color: #cbd9e8; text-decoration: underline; text-underline-offset: 3px; }

.toast {
  position: fixed; left: 50%; bottom: 34px; z-index: 200; transform: translate(-50%, 20px);
  padding: 12px 22px; border-radius: 999px; font-size: 14px; font-weight: 700;
  color: #fff; background: linear-gradient(100deg, #1a4f8b, #2f7df6);
  box-shadow: 0 18px 40px rgba(10, 24, 40, .3); opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ==================== 8. 响应式 ==================== */
@media (max-width: 1080px) {
  .site-nav { gap: 20px; font-size: 13.5px; }
  .header-cta { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 54px; }
  .hero { padding-top: 132px; }
  .product-stage { max-width: 640px; }
  .chip-a { left: 0; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .download-layout { grid-template-columns: 1fr; }
  .software-extra { grid-template-columns: 1fr; gap: 16px; }
  .plan-grid { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; margin-left: auto; }
  .site-nav {
    position: absolute; inset: 76px 0 auto; display: grid; gap: 0; margin: 0; padding: 8px 20px 20px;
    background: rgba(36, 52, 71, .985); border-bottom: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .28);
    max-height: 0; overflow: hidden; opacity: 0; visibility: hidden;
    transition: max-height .3s ease, opacity .25s ease, visibility .25s;
  }
  .site-nav.is-open { max-height: 420px; opacity: 1; visibility: visible; }
  .site-nav a { padding: 15px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); font-size: 15px; }
  .site-nav a::after { display: none; }

  .app-body { grid-template-columns: 1fr; }
  .app-nav-preview {
    grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto;
    border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .07);
  }
  .app-nav-preview span { padding: 6px 12px; white-space: nowrap; }
  .app-log { font-size: 11px; }

  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .software-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  :root { --shell: calc(100% - 32px); }
  .section { padding: 62px 0; }
  .hero { padding: 120px 0 96px; }
  .hero-lead { font-size: 15.5px; }
  .hero-actions .button { width: 100%; }
  .stage-chip { display: none; }
  .trust-grid { padding: 24px 22px; }
  .trust-grid { grid-template-columns: 1fr; }
  .download-card, .plan-card, .changelog-card { padding: 22px; }
  .modal { padding: 12px; }
  .modal-panel { padding: 22px; max-height: calc(100vh - 24px); }
  .modal-head { padding-right: 40px; }
  .order-box { flex-direction: column; }
  .order-box .button { width: 100%; }
  .plan-price strong { font-size: 42px; }
  .hash-row { flex-wrap: wrap; }
  .download-actions .button { width: 100%; }
  .pay-steps li { grid-template-columns: 22px 1fr; font-size: 13.5px; }
  .code-result { grid-template-columns: 1fr; }
  .code-result .copy-btn { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  [data-reveal], .has-reveal [data-reveal] { opacity: 1 !important; transform: none !important; }
}
