/* Page Screenshot Pro — 官网样式（六个页面共用一份）
 *
 * 视觉参考同组织的 walletpro 站点：深色底 + 玻璃卡片 + 蓝紫渐变。
 * 刻意**不含任何 JavaScript**：FAQ 用原生 <details>，其余全是静态标记。
 * 因此 _headers 里可以写 script-src 'none'，页面在禁用 JS 的环境里也完整。
 *
 * 断点只有两个：720px（导航收起文字链接）和 560px（单列、缩小留白）。
 */

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

:root {
  --bg: #050a14;
  --bg-deep: #02060e;
  --primary: #3b82f6;
  --primary-light: #60a5fa;
  --primary-glow: rgba(59, 130, 246, 0.42);
  --accent: #a855f7;
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --glass: rgba(255, 255, 255, 0.03);
  --glass-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --ok: #34d399;
  --warn: #fbbf24;
  --radius: 20px;
  --maxw: 1120px;
  --nav-h: 64px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "PingFang SC", "Hiragino Sans", "Microsoft YaHei", sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 620px at 50% -12%, rgba(59, 130, 246, 0.18), transparent 70%),
    radial-gradient(900px 520px at 88% 4%, rgba(168, 85, 247, 0.13), transparent 66%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* 代码/模板占位符在正文和卡片里都要能读，所以这条是全局的；
   .prose code 只是把字号再收一点（见下）。 */
code {
  padding: 1px 6px; border-radius: 5px; font-size: 0.88em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: rgba(255, 255, 255, 0.07); color: #e2e8f0;
}

a { color: var(--primary-light); text-decoration: none; }
a:hover { color: #93c5fd; }

:focus-visible { outline: 2px solid var(--primary-light); outline-offset: 3px; border-radius: 6px; }

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------------------------------------------------------------- 导航 */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(5, 10, 20, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 800; font-size: 0.86rem;
  letter-spacing: 0.07em; text-transform: uppercase; white-space: nowrap;
}
.brand img { border-radius: 7px; }
.brand:hover { color: var(--text); }

.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links > a:not(.btn) { color: var(--muted); font-size: 0.92rem; }
.nav-links > a:not(.btn):hover { color: var(--text); }

/* ---------------------------------------------------------------- 按钮 */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.72rem 1.5rem; border-radius: 999px;
  font-size: 0.95rem; font-weight: 600; line-height: 1.2;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease,
    border-color 0.18s ease, color 0.18s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #6366f1);
  color: #fff;
  box-shadow: 0 6px 22px var(--primary-glow);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 30px var(--primary-glow); }
.btn-ghost { background: var(--glass); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: var(--glass-hover); color: var(--text); transform: translateY(-2px); }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

/* ---------------------------------------------------------------- 首屏 */

main { padding-top: var(--nav-h); }

.hero { padding: 5.5rem 0 0; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0.9rem; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--border);
  color: var(--muted); font-size: 0.8rem; letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}
.eyebrow b { color: var(--ok); font-weight: 600; }

h1.hero-title {
  margin: 0 auto;
  font-size: clamp(2.3rem, 5.6vw, 4rem);
  line-height: 1.06; letter-spacing: -0.025em; font-weight: 900;
  max-width: 15em;
}
.text-gradient {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.lead {
  max-width: 660px; margin: 1.5rem auto 2.25rem;
  font-size: 1.09rem; color: var(--muted);
}
.lead strong { color: var(--text); font-weight: 600; }

.trust { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin: 2.25rem 0 0; padding: 0; list-style: none; }
.trust li {
  padding: 0.32rem 0.8rem; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--border);
  color: var(--muted); font-size: 0.8rem;
}

/* 首屏的"长图"示意：纯 CSS，不加载任何图片。
   三段之间用虚线缝标出拼接位置，正是产品在做的事。 */
.shot {
  max-width: 780px; margin: 3.25rem auto 0;
  border: 1px solid var(--border-strong); border-radius: 18px; overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 40px 90px rgba(2, 6, 14, 0.75);
}
.shot-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 0.6rem 0.85rem;
  background: rgba(255, 255, 255, 0.04); border-bottom: 1px solid var(--border);
}
.shot-dot { width: 9px; height: 9px; border-radius: 50%; background: #475569; }
.shot-url {
  flex: 1; margin-left: 0.6rem; height: 22px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  display: flex; align-items: center; padding: 0 0.7rem;
  font-size: 0.68rem; color: var(--muted-2);
  overflow: hidden; white-space: nowrap;
}
.shot-page {
  padding: 1.1rem 1.25rem 1.35rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 14, 0.96));
}
.shot-sticky {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.6rem; margin-bottom: 0.9rem;
  border: 1px dashed rgba(52, 211, 153, 0.45); border-radius: 8px;
  font-size: 0.62rem; color: var(--ok);
}
.shot-sticky::before { content: ""; width: 14px; height: 8px; border-radius: 2px; background: rgba(52, 211, 153, 0.55); }
.shot-h { height: 15px; border-radius: 5px; background: rgba(255, 255, 255, 0.22); margin-bottom: 12px; }
.shot-line { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.09); margin-bottom: 8px; }
.shot-line.w80 { width: 80%; }
.shot-line.w62 { width: 62%; }
.shot-line.w90 { width: 90%; }
.shot-seam {
  position: relative; height: 0; margin: 15px 0 19px;
  border-top: 1px dashed rgba(56, 189, 248, 0.55);
}
.shot-seam span {
  position: absolute; right: 0; top: -10px;
  padding: 1px 7px; border-radius: 999px;
  background: var(--bg-deep); border: 1px solid rgba(56, 189, 248, 0.4);
  font-size: 0.6rem; color: #38bdf8; white-space: nowrap;
}

/* ---------------------------------------------------------------- 区块 */

.section { margin-top: 6rem; }
.section-head { max-width: 720px; margin: 0 auto 2.75rem; text-align: center; }
.section-head h2 { margin: 0 0 0.75rem; font-size: clamp(1.65rem, 3.6vw, 2.35rem); letter-spacing: -0.02em; }
.section-head p { margin: 0; color: var(--muted); }
.section-head.left { margin-left: 0; text-align: left; }

/* 三个收紧段间距的变体，代替页面里原来写的 style="margin-top:…"。
   写成 `.section.section-tight`（0,2,0）而不是 `.section-tight`（0,1,0），
   是因为下面的 @media (max-width:720px) 里还有一条 `.section{margin-top:4.25rem}`：
   同特异性下文件靠后的赢，普通类会被那条压掉，移动端就变回 4.25rem。 */
.section.section-tight { margin-top: 2.5rem; }
.section.section-tighter { margin-top: 1.5rem; }
.section.section-flush { margin-top: 0; }

.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }

.card {
  background: var(--glass); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(59, 130, 246, 0.42); background: var(--glass-hover); }
.card h3 { margin: 0 0 0.55rem; font-size: 1.1rem; letter-spacing: -0.01em; }
.card h2 { margin: 0 0 0.75rem; font-size: 1.5rem; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* 卡片内部的排版全部由 CSS 负责，页面里**不写** style=""。
   原因在 _headers 顶部：CSP 是 style-src 'self'，内联 style 属性
   归 style-src-attr 管、缺省回落到 style-src，所以部署后会被浏览器
   静默丢弃——本地 file:// 打开看不出任何差别，也不会让任何检查变红。
   这几条把原来散在六个 HTML 里的间距收回来，改一次就全站生效。 */
.card p + p { margin-top: 0.9rem; }
.card p + .btn { margin-top: 1.1rem; }
.card .btn-row { margin-top: 1.2rem; }
.card ul { margin: 0.6rem 0 0; padding-left: 1.25rem; color: var(--muted); font-size: 0.94rem; }
.card ul li { margin-bottom: 0.35rem; }
.card-narrow { max-width: 720px; margin-left: auto; margin-right: auto; }
.card-mid { max-width: 760px; margin-left: auto; margin-right: auto; }
.card-center { text-align: center; }

.icon {
  width: 2.7rem; height: 2.7rem; margin-bottom: 1rem;
  display: grid; place-items: center;
  border-radius: 14px; font-size: 1.2rem; line-height: 1;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(168, 85, 247, 0.18));
  border: 1px solid var(--border);
}

.badge {
  display: inline-block; padding: 0.12rem 0.5rem; margin-left: 0.45rem;
  border-radius: 999px; font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; vertical-align: middle;
  color: #ddd6fe; background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.42);
}

/* ---------------------------------------------------------------- 步骤 */

.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.steps li { position: relative; padding: 1.6rem 1.6rem 1.6rem 3.6rem; background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius); }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 1.35rem; top: 1.5rem;
  width: 1.6rem; height: 1.6rem; display: grid; place-items: center;
  border-radius: 50%; font-size: 0.8rem; font-weight: 700;
  color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent));
}
.steps strong { display: block; margin-bottom: 0.3rem; }
.steps span { color: var(--muted); font-size: 0.92rem; }

/* ---------------------------------------------------------------- 表格 */

.table-wrap {
  overflow-x: auto; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--border);
}
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
thead th {
  text-align: left; padding: 1rem; font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--border-strong); white-space: nowrap;
}
tbody td { padding: 0.95rem 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.05); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody th { padding: 0.95rem 1rem; text-align: left; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.col-us { color: #38bdf8; font-weight: 600; }
.yes { color: var(--ok); }
.no { color: var(--muted-2); }

/* ---------------------------------------------------------------- 价格 */

.plans { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); align-items: stretch; }
.plan {
  display: flex; flex-direction: column;
  padding: 1.9rem 1.7rem;
  background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.plan:hover { transform: translateY(-4px); }
.plan.featured { border-color: rgba(59, 130, 246, 0.55); background: linear-gradient(180deg, rgba(59, 130, 246, 0.1), rgba(255, 255, 255, 0.02)); box-shadow: 0 18px 50px rgba(59, 130, 246, 0.16); }
.plan-tag { align-self: flex-start; margin-bottom: 0.9rem; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.plan.featured .plan-tag { color: #dbeafe; background: rgba(59, 130, 246, 0.28); border: 1px solid rgba(96, 165, 250, 0.5); }
.plan:not(.featured) .plan-tag { color: var(--muted); background: var(--glass); border: 1px solid var(--border); }
.plan h3 { margin: 0 0 0.4rem; font-size: 1.15rem; }
.price { display: flex; align-items: baseline; gap: 0.35rem; margin: 0.35rem 0 0.9rem; }
.price b { font-size: 2.3rem; font-weight: 800; letter-spacing: -0.02em; }
.price span { color: var(--muted); font-size: 0.9rem; }
.plan ul { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: 0.5rem; font-size: 0.92rem; color: var(--muted); }
.plan ul li { padding-left: 1.4rem; position: relative; }
.plan ul li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.plan ul li.off { color: var(--muted-2); }
.plan ul li.off::before { content: "—"; color: var(--muted-2); }
.plan .btn { margin-top: auto; width: 100%; }

.note { margin: 1.5rem 0 0; color: var(--muted-2); font-size: 0.85rem; text-align: center; }

/* ---------------------------------------------------------------- FAQ */

.faq { display: grid; gap: 0.75rem; }
details.qa {
  background: var(--glass); border: 1px solid var(--border);
  border-radius: 14px; padding: 0 1.3rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
details.qa[open] { border-color: rgba(59, 130, 246, 0.4); background: var(--glass-hover); }
details.qa summary {
  cursor: pointer; list-style: none; padding: 1.05rem 0;
  font-weight: 600; font-size: 0.98rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: "+"; color: var(--primary-light); font-size: 1.3rem; line-height: 1; flex: 0 0 auto; }
details.qa[open] summary::after { content: "–"; }
details.qa .answer { padding: 0 0 1.2rem; color: var(--muted); font-size: 0.94rem; }
details.qa .answer p { margin: 0 0 0.7rem; }
details.qa .answer p:last-child { margin-bottom: 0; }
details.qa .answer ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }

/* ---------------------------------------------------------------- 正文页 */

.page-head { padding: 4.5rem 0 0; }
.page-head h1 { margin: 0 0 0.75rem; font-size: clamp(2rem, 4.4vw, 2.9rem); letter-spacing: -0.02em; }
.page-head p { margin: 0; color: var(--muted); max-width: 720px; }
/* 标题下面的两三种段落间距，原来是每页手写 style="margin-top:…" 的。 */
.page-head p + p { margin-top: 1.25rem; }
.page-head .meta { margin-top: 0.5rem; color: var(--muted-2); font-size: 0.9rem; }
/* 隐私页那行「中文版在页面下方」夹在两段之间，间距比生效日期松一点。
   两条 .meta 规则都是 (0,2,0)，压得住上面的 .page-head p + p (0,1,2)。 */
.page-head .meta-2 { margin-top: 0.75rem; }

.prose { max-width: 800px; margin-top: 2.5rem; }
.prose h2 { margin: 2.6rem 0 0.75rem; font-size: 1.25rem; letter-spacing: -0.01em; }
.prose h3 { margin: 1.6rem 0 0.5rem; font-size: 1.02rem; }
.prose p, .prose li { color: var(--muted); font-size: 0.96rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.45rem; }
.prose strong { color: var(--text); font-weight: 600; }
.prose code {
  padding: 1px 6px; border-radius: 5px; font-size: 0.86em;
  background: rgba(255, 255, 255, 0.07); color: #e2e8f0;
}
.prose .meta { color: var(--muted-2); font-size: 0.88rem; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 3rem 0 0; }

/* 第一块标题不需要上边距——它前面已经是 .page-head 的留白。
   原来靠每个页面手写 <h2 style="margin-top:0">，现在一条 :first-child 收掉；
   两页里 `<div class="prose" style="margin-top:0">` 则是 .prose-flush。 */
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose-flush { margin-top: 0; }

/* ---------------------------------------------------------------- 页脚 */

.footer { margin-top: 6rem; border-top: 1px solid var(--border); padding: 3rem 0 2rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 2.5rem; justify-content: space-between; }
.footer-brand { max-width: 320px; }
.footer-brand p { margin: 0.9rem 0 0; color: var(--muted-2); font-size: 0.88rem; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 3rem; }
.footer-cols h4 { margin: 0 0 0.7rem; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.footer-cols a { display: block; margin-bottom: 0.45rem; color: var(--muted); font-size: 0.88rem; }
.footer-cols a:hover { color: var(--text); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between;
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
  color: var(--muted-2); font-size: 0.82rem;
}

/* ---------------------------------------------------------------- 自适应 */

@media (max-width: 720px) {
  .nav-links { gap: 1rem; }
  .nav-links > a:not(.btn) { display: none; }
  .hero { padding-top: 3.5rem; }
  .section { margin-top: 4.25rem; }
  .footer-inner { gap: 2rem; }
  .footer-cols { gap: 2rem; }
}

@media (max-width: 560px) {
  .brand span { display: none; }
  .lead { font-size: 1rem; }
  .card { padding: 1.4rem; }
  .plan { padding: 1.5rem 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .card:hover, .plan:hover, .btn:hover { transform: none; }
}

@media print {
  .nav, .footer, .btn { display: none; }
  body { background: #fff; color: #000; }
  .prose p, .prose li { color: #222; }
}
