/* PasteLayer Design System — vanilla CSS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --brand: #1E82F5;
  --brand-deep: #0A74F0;
  --brand-soft: #d6e9ff;
  --brand-ink: #003a8c;
  --warm: #F5A500;
  --warm-soft: #ffe7b8;
  --danger: #E5484D;
  --ink: #0B1220;
  --ink-2: #1A2336;
  --ink-3: #3D4760;
  --muted: #6B7689;
  --line: rgba(11, 18, 32, 0.08);
  --line-strong: rgba(11, 18, 32, 0.14);
  --bg: #FAFBFD;
  --bg-2: #F1F4F9;
  --paper: #ffffff;
  --night: #0A1628;
  --night-2: #122036;
  --night-line: rgba(255,255,255,0.08);
  --night-muted: #8696B0;
  /* Motion tokens — unified micro-interaction timing */
  --dur: 160ms;          /* small controls (buttons, nav, links) */
  --dur-slow: 240ms;     /* surfaces (cards) — slightly slower for weight */
  --ease: cubic-bezier(.4, 0, .2, 1);      /* standard, for state/color changes */
  --ease-out: cubic-bezier(.22, 1, .36, 1); /* decelerate, for hover lifts */
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: transparent; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--brand); color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px;
  border-radius: 999px;
  font-size: 14px; font-weight: 600;
  letter-spacing: -0.005em;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
/* 禁用 / 加载中（如「登录中…」）：统一置灰、去掉悬浮与阴影、禁用指针 */
.btn:disabled, .btn[disabled] {
  background: var(--bg-2); color: var(--muted);
  box-shadow: none; opacity: 0.65; cursor: not-allowed;
}
.btn:disabled:hover, .btn[disabled]:hover {
  transform: none; background: var(--bg-2); box-shadow: none;
}
.btn.lg { height: 48px; padding: 0 24px; font-size: 15px; }
.btn.sm { height: 32px; padding: 0 14px; font-size: 13px; }
.btn.full { width: 100%; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-brand {
  background: var(--brand); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 6px 20px rgba(30,130,245,.32);
}
.btn-brand:hover { background: var(--brand-deep); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 10px 28px rgba(30,130,245,.42); }
.btn-brand:active { box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 4px 12px rgba(30,130,245,.3); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: rgba(11,18,32,0.05); }
.btn-outline {
  background: var(--paper); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn-outline:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }
.btn-danger-ghost { color: var(--danger); background: transparent; }
.btn-danger-ghost:hover { background: rgba(229,72,77,0.08); }
/* 设备筛选分段控件：选中态（非 .btn-ghost）用白底胶囊区分 */
[data-device-filter] .btn:not(.btn-ghost) {
  background: var(--paper); color: var(--ink);
  box-shadow: 0 1px 2px rgba(11,18,32,0.10);
}
[data-device-filter] .btn:hover { transform: none; }

/* Cards */
.card {
  background: var(--paper);
  border-radius: 18px;
  box-shadow: 0 1px 0 rgba(11,18,32,0.04), 0 0 0 1px var(--line);
  transition: box-shadow var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.card:hover { box-shadow: 0 1px 0 rgba(11,18,32,0.04), 0 0 0 1px var(--line-strong); }
.section-dark .card:hover { box-shadow: 0 0 0 1px rgba(255,255,255,0.16); }
.card-lg { border-radius: 24px; }

/* Typography */
.eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow.dark { color: #6FB6FF; }
.h-display {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 800; line-height: 0.98;
  letter-spacing: -0.045em; margin: 0;
}
.h1 {
  font-size: clamp(32px, 4.4vw, 54px);
  font-weight: 800; line-height: 1.1;
  letter-spacing: 0; margin: 0;
}
.h2 { font-size: 28px; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
.h3 { font-size: 20px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; margin: 0; }
.lead { color: var(--muted); font-size: 18px; line-height: 1.65; }
.muted { color: var(--muted); }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* Layout */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.wrap-sm { max-width: 1080px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) {
  .wrap, .wrap-sm { padding: 0 20px; }
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(250, 251, 253, 0.85);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; height: 64px; gap: 28px; }
.nav-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 17px; font-weight: 800; letter-spacing: -0.015em; }
.nav-logo .logo-mark { width: 28px; height: 28px; }
.nav-logo span em { font-style: normal; font-weight: 500; opacity: 0.55; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--ink-3);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav-links a:hover { background: rgba(11,18,32,0.05); color: var(--ink); }
.nav-links a.active { background: rgba(11,18,32,0.08); color: var(--ink); }
.nav-spacer { flex: 1; }
.nav-burger { display: none; }
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; }
  .nav-burger:hover { background: rgba(11,18,32,0.05); }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--paper); padding: 12px;
    border-bottom: 1px solid var(--line);
  }
  .nav-cta-desktop { display: none; }
}

/* Sections */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
/* 首屏：Hero 占满视口高度，文案在上方居中，面板图钉在视口最底部满宽展示
   （App 截图从屏幕底部探出）。面板用 margin-top:auto 推到底，与文案用等分 auto
   间距，故文案落在面板上方的居中位置。 */
/* 视口高度扣掉 sticky 导航高度（--nav-h 由 JS 实测写入），保证 Hero 正好占满
   首屏可视区，面板底边落在窗口最底部、完整露出，与浏览器尺寸无关。 */
.hero { min-height: calc(100vh - var(--nav-h, 64px)); display: flex; flex-direction: column; }
/* 文案区弹性占满面板上方空间并垂直居中；空间不足时压缩文案区，不裁面板。 */
.hero > .wrap { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; justify-content: center; }
/* 面板保持自然全高、不收缩，钉在视口最底部完整露出。 */
.hero-shot { flex: 0 0 auto; width: 100%; position: relative; overflow: hidden; }
.section-dark {
  background: var(--night);
  color: #E6ECF6;
}
.section-dark .lead, .section-dark .muted { color: var(--night-muted); }
.section-dark .card { background: var(--night-2); box-shadow: 0 0 0 1px var(--night-line); color: #E6ECF6; }
.section-soft { background: var(--bg-2); }

/* Pills */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 10px;
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  background: var(--bg-2); color: var(--ink-3);
}
.pill.brand { background: rgba(30,130,245,0.12); color: var(--brand-ink); }
.pill.warm  { background: rgba(245,165,0,0.18); color: #8A5500; }
.pill.green { background: rgba(34,153,84,0.12); color: #186A38; }
.pill.danger{ background: rgba(229,72,77,0.12); color: #9B1F23; }

/* Inputs */
.input, .select {
  height: 42px; width: 100%;
  padding: 0 14px;
  border: 0; -webkit-appearance: none; appearance: none;
  border-radius: 12px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 14px; color: var(--ink);
  outline: none; transition: box-shadow .15s;
}
.input:focus, .select:focus { box-shadow: inset 0 0 0 1.5px var(--brand); }
textarea.input { height: auto; padding: 12px 14px; line-height: 1.5; resize: vertical; }
/* 密码显隐切换：JS 给每个 type=password 自动包一层 .pw-wrap 并加小眼睛按钮 */
.pw-wrap { position: relative; width: 100%; }
.pw-wrap .input { padding-right: 42px; }
.pw-toggle {
  position: absolute; top: 0; right: 0;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  color: var(--ink-3); cursor: pointer;
  background: transparent; border: 0;
}
.pw-toggle:hover { color: var(--ink-2); }
.label { display:block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }

/* KBD */
.kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 6px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 1px 0 var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 600; color: var(--ink-2);
}

/* Tables */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 14px 16px; font-size: 13px; }
.table th { color: var(--muted); font-weight: 600; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.table tr + tr td { border-top: 1px solid var(--line); }
.table tbody tr:hover { background: var(--bg-2); }

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fadeUp .35s ease both; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Hero panel slide */
@keyframes hero-panel-slide-up {
  0% { transform: translateY(100%); opacity: 0; }
  60% { opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}
/* 默认隐藏在视口底部以下（translateY(100%)，被 .hero-shot overflow 裁掉）；
   .hero-shot.reveal 时播放上滑入场。JS(IntersectionObserver) 在面板进入/离开
   视口时增删 reveal，实现「回到顶部时从浏览器最底部再次滑出」。 */
.hero-panel-slide {
  transform: translateY(100%);
  opacity: 0;
  /* 双向 transition：展开(.reveal)上滑、收回(移除.reveal)下滑都平滑可见。
     时长 260ms + cubic-bezier(0.22,1,0.36,1)，与「功能」页宣传的「0.26 秒，从屏幕
     底部滑出 / macOS 系统动效曲线」一致。收回用基态 0 延迟立即开始；展开的 500ms
     延迟定义在 .reveal 上。 */
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), opacity 260ms ease;
  will-change: transform, opacity;
}
.hero-shot.reveal .hero-panel-slide {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 500ms;
}

/* 滚动揭示：JS 仅对加载时位于折线以下的卡片加 .reveal-init（隐藏），进入视口再加
   .reveal-in 淡入上滑，同容器内错峰（transition-delay 由 JS 设）。无 JS / 首屏内的
   卡片不受影响，避免闪烁。 */
.reveal-init {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 900ms ease, transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-init.reveal-in {
  opacity: 1;
  transform: none;
}
/* 展示图入场：用轻微放大替代上滑（data-reveal="zoom"）。 */
.reveal-init--zoom { transform: scale(0.95); }

/* Modal */
.modal-bg {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10,22,40,0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  padding: 20px;
  animation: fadeUp .2s ease;
}
.modal {
  background: var(--paper);
  border-radius: 22px;
  max-width: 460px; width: 100%;
  padding: 32px;
  box-shadow: 0 30px 80px rgba(11,18,32,0.32);
  position: relative;
}

/* Steps */
.steps { display: flex; gap: 8px; }
.step { display: flex; align-items: center; gap: 10px; flex: 1; color: var(--muted); font-size: 13px; font-weight: 600; }
.step-num { width: 28px; height: 28px; border-radius: 999px; background: var(--bg-2); color: var(--ink-3); display: grid; place-items: center; font-size: 13px; }
.step.done .step-num { background: var(--brand); color: #fff; }
.step.active .step-num { background: var(--ink); color: #fff; }
.step.active { color: var(--ink); }
.step-line { flex: 1; height: 2px; background: var(--bg-2); border-radius: 999px; align-self: center; }
.step.done + .step-line { background: var(--brand); }

/* Misc */
.divider { height: 1px; background: var(--line); }
.grow { flex: 1; }
.row { display: flex; align-items: center; gap: 12px; }
.col { display: flex; flex-direction: column; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; }
[hidden] { display: none !important; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 56px; margin-top: 40px; background: var(--paper); }
.site-footer .footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { font-size: 12px; font-weight: 700; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.site-footer .copy { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
@media (max-width: 720px) {
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-footer .copy { flex-direction: column; gap: 8px; }
}

/* Grid helpers */
.grid-cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-cols-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 880px) {
  .grid-cols-3, .grid-cols-4, .grid-cols-2 { grid-template-columns: 1fr; }
}

/* Feature card */
.feature-card {
  background: var(--paper); border-radius: 18px;
  box-shadow: 0 1px 0 rgba(11,18,32,0.04), 0 0 0 1px var(--line);
  padding: 28px; display: flex; flex-direction: column; gap: 14px; min-height: 220px;
}
.feature-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(30,130,245,0.08); color: var(--brand);
  display: grid; place-items: center; flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(30,130,245,0.18);
}

/* Hero */
.hero {
  padding-top: 52px; padding-bottom: 0;
  overflow: hidden; position: relative;
  background: linear-gradient(180deg, #FAFBFD 0%, #F1F4F9 60%, #FAFBFD 100%);
}

/* Dash layout */
.dash-layout { display: grid; grid-template-columns: 220px 1fr; gap: 56px; padding: 40px 0 80px; max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.dash-sidebar { position: sticky; top: 80px; align-self: start; min-width: 220px; }
.dash-sidebar a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: background .15s, color .15s; margin-bottom: 4px; }
.dash-sidebar a:hover { background: rgba(11,18,32,0.05); }
.dash-sidebar a.active { background: var(--ink); color: #fff; }
@media (max-width: 880px) {
  .dash-layout { grid-template-columns: 1fr; padding-left: 20px; padding-right: 20px; }
  .dash-sidebar { position: static; }
}

/* Article */
.article-content p { margin: 0; color: var(--ink-2); line-height: 1.75; font-size: 15px; }
.article-content h2 { margin-top: 32px; scroll-margin-top: 80px; }
.article-content h3 { margin-top: 16px; }
.article-content ul { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.article-content ul li { display: flex; gap: 12px; align-items: flex-start; }
.article-content ul li::before { content: ""; flex-shrink: 0; width: 6px; height: 6px; border-radius: 999px; background: var(--brand); margin-top: 11px; }
.article-content ol { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; counter-reset: step; }
.article-content ol li { display: flex; gap: 16px; align-items: flex-start; counter-increment: step; }
.article-content ol li::before {
  content: counter(step);
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 999px;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700;
}
.article-content ol li > div .step-title { font-size: 15px; font-weight: 600; color: var(--ink); }
.article-content ol li > div .step-desc { font-size: 14px; color: var(--muted); margin-top: 4px; line-height: 1.65; }
.callout {
  padding: 20px; border-radius: 12px;
  background: rgba(30,130,245,0.06);
  box-shadow: inset 0 0 0 1px rgba(30,130,245,0.25);
  display: flex; gap: 12px; align-items: flex-start;
}
.callout.warn { background: rgba(245,165,0,0.06); box-shadow: inset 0 0 0 1px rgba(245,165,0,0.3); }
.callout.tip { background: rgba(45,125,50,0.06); box-shadow: inset 0 0 0 1px rgba(45,125,50,0.25); }
.callout-icon { font-size: 20px; line-height: 1; }
.callout-title { font-size: 14px; font-weight: 700; color: var(--brand-ink); }
.callout.warn .callout-title { color: #8A5500; }
.callout.tip .callout-title { color: #186A38; }
.callout-body { font-size: 14px; color: var(--ink-2); margin-top: 6px; line-height: 1.65; }
pre.code-block {
  background: var(--night); color: #E6ECF6;
  padding: 20px; border-radius: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; line-height: 1.6;
  overflow: auto; margin: 0;
}

/* Pricing cards */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1024px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card { padding: 28px; position: relative; background: var(--paper); border-radius: 18px; box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out); }
.price-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(11,18,32,0.10), 0 0 0 1px var(--line-strong); }
.price-card.highlight:hover { transform: translateY(-16px); box-shadow: 0 32px 72px rgba(10,22,40,0.24); }
.price-card.lifetime:hover { box-shadow: 0 16px 40px rgba(245,165,0,0.16), 0 0 0 1px rgba(245,165,0,0.55); }
.price-card.highlight { background: linear-gradient(180deg, #0A1628, #122036); color: #fff; transform: translateY(-12px); box-shadow: 0 24px 60px rgba(10,22,40,0.18); }
.price-card.highlight .muted { color: var(--night-muted); }
.price-card.lifetime { background: linear-gradient(180deg, #FFF8E8, #FFFFFF); box-shadow: 0 0 0 1px rgba(245,165,0,0.4); }
.price-card .badge-top { position: absolute; top: 16px; right: 16px; }
.price-card .price-num { font-size: 40px; font-weight: 800; letter-spacing: -0.04em; }
.price-card ul { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 10px; }
.price-card ul li { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.55; }
.price-card .check { color: var(--brand); flex-shrink: 0; margin-top: 3px; }
.price-card.highlight .check { color: #6FB6FF; }

/* Stat card */
.stat-card { background: var(--paper); border-radius: 18px; box-shadow: 0 0 0 1px var(--line); padding: 24px; }
.stat-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.stat-value { font-size: 30px; font-weight: 800; margin-top: 10px; letter-spacing: -0.02em; }

/* Avatar */
.avatar {
  width: 32px; height: 32px; border-radius: 999px;
  background: linear-gradient(135deg, #1E82F5, #0A74F0);
  color: #fff; display: grid; place-items: center;
  font-size: 13px; font-weight: 700;
}
.avatar.lg { width: 72px; height: 72px; font-size: 28px; font-weight: 800; }

/* Help category card */
.help-cat-card { padding: 28px; display: block; transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out); background: var(--paper); border-radius: 18px; box-shadow: 0 0 0 1px var(--line); }
.help-cat-card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(11,18,32,0.08), 0 0 0 1px var(--line-strong); }

/* Search box hero */
.search-hero {
  max-width: 560px; margin: 32px auto 0;
  background: rgba(255,255,255,0.08);
  border-radius: 999px; padding: 4px;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 12px 32px rgba(0,0,0,0.3);
}
.search-hero input {
  flex: 1; background: transparent; border: 0; outline: none;
  color: #fff; font-size: 15px; padding: 14px 8px;
}

/* Spinner */
.spinner {
  display: inline-block; width: 14px; height: 14px; border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff;
  animation: spin .8s linear infinite;
}

/* Switch toggle */
.switch {
  width: 44px; height: 26px; border-radius: 999px;
  background: var(--bg-2);
  position: relative; transition: background .2s; cursor: pointer;
  border: 0; padding: 0;
}
.switch.on { background: var(--brand); }
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 999px;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: left .2s;
}
.switch.on::after { left: 22px; }

/* Toast */
.toast-container { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { padding: 12px 20px; background: var(--ink); color: #fff; border-radius: 999px; font-size: 13px; font-weight: 500; box-shadow: 0 12px 32px rgba(0,0,0,0.2); display: inline-flex; align-items: center; gap: 10px; }

/* Confirm dialog ----------------------------------------------------------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(11, 18, 32, 0.45);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .18s ease;
}
.modal-overlay.show { opacity: 1; }
.modal-card {
  width: 100%; max-width: 380px;
  background: var(--paper);
  border-radius: var(--td-radius-large, 16px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.24);
  padding: 28px 28px 22px;
  transform: translateY(8px) scale(0.98); transition: transform .18s ease;
}
.modal-overlay.show .modal-card { transform: none; }
.modal-title { font-size: 17px; font-weight: 700; color: var(--ink); }
.modal-body { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.modal-actions { margin-top: 24px; display: flex; justify-content: flex-end; gap: 10px; }

/* ===== PRIVACY section — scoped styles ===== */

/* Legend row: 3 equal columns */
.prv-legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
.prv-legend-item {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Stage: light, breathable container matching .section-soft */
.prv-stage {
  position: relative;
  border-radius: 0;
  overflow: visible;
  padding: 8px 0 0;
  background: transparent;
}

/* Ambient blobs — tuned for light background: very subtle, won't muddy */
.prv-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(72px);
  opacity: 0;
  animation: prv-blob-in 1.2s ease forwards;
}
.prv-blob-blue {
  width: 400px; height: 400px;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(30,130,245,0.09) 0%, transparent 65%);
  animation-delay: 0.05s;
}
.prv-blob-warm {
  width: 280px; height: 280px;
  bottom: -20px; left: 5%;
  background: radial-gradient(circle, rgba(245,165,0,0.08) 0%, transparent 65%);
  animation-delay: 0.2s;
}
.prv-blob-red {
  width: 240px; height: 240px;
  bottom: -20px; right: 5%;
  background: radial-gradient(circle, rgba(229,72,77,0.07) 0%, transparent 65%);
  animation-delay: 0.35s;
}
@keyframes prv-blob-in {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}
.prv-blob-blue {
  animation-name: prv-blob-in-center;
}
@keyframes prv-blob-in-center {
  from { opacity: 0; transform: translateX(-50%) scale(0.8); }
  to   { opacity: 1; transform: translateX(-50%) scale(1); }
}

/* Side-by-side card row */
.prv-row {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: stretch;
}

/* Shared card */
.prv-card {
  flex: 1;
  max-width: 440px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  transition: transform .25s cubic-bezier(0.34,1.3,0.64,1), box-shadow .25s ease;
}

/* Brand (blue) card shadow */
.prv-card-brand {
  box-shadow:
    0 0 0 1px rgba(30,130,245,0.22),
    0 4px 16px rgba(30,130,245,0.12),
    0 12px 32px rgba(11,18,32,0.08);
}
.prv-card-brand:hover {
  transform: translateY(-5px);
  box-shadow:
    0 0 0 1px rgba(30,130,245,0.35),
    0 8px 24px rgba(30,130,245,0.18),
    0 20px 48px rgba(11,18,32,0.12);
}

/* Warm card shadow */
.prv-card-front {
  box-shadow:
    0 0 0 1px rgba(245,165,0,0.35),
    0 4px 16px rgba(245,165,0,0.14),
    0 12px 32px rgba(11,18,32,0.08);
}
.prv-card-front:hover {
  transform: translateY(-5px);
  box-shadow:
    0 0 0 1px rgba(245,165,0,0.5),
    0 8px 24px rgba(245,165,0,0.20),
    0 20px 48px rgba(11,18,32,0.12);
}

/* Danger card shadow */
.prv-card-back {
  box-shadow:
    0 0 0 1px rgba(229,72,77,0.25),
    0 4px 16px rgba(229,72,77,0.12),
    0 12px 32px rgba(11,18,32,0.08);
}
.prv-card-back:hover {
  transform: translateY(-5px);
  box-shadow:
    0 0 0 1px rgba(229,72,77,0.42),
    0 8px 24px rgba(229,72,77,0.18),
    0 20px 48px rgba(11,18,32,0.12);
}

/* Card header */
.prv-card-header {
  position: relative;
  padding: 16px 18px;
  color: #fff;
  overflow: hidden;
}
.prv-card-header-brand {
  background: linear-gradient(135deg, #1E82F5 0%, #0A74F0 60%, #0062D4 100%);
}
.prv-card-header-warm {
  background: linear-gradient(135deg, #F5A500 0%, #E08600 60%, #C97200 100%);
}
.prv-card-header-danger {
  background: linear-gradient(135deg, #E5484D 0%, #C93337 60%, #A82025 100%);
}

/* Top-edge shimmer */
.prv-header-shine {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55) 40%, rgba(255,255,255,0.55) 60%, transparent);
  pointer-events: none;
}

/* App icon chip */
.prv-app-icon {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: #1B2430;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.07) inset;
}

/* Visibility badges */
.prv-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(4px);
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.prv-badge-warm   { color: #B87400; }
.prv-badge-danger { color: #C0282C; }

/* Card body */
.prv-card-body {
  position: relative;
  padding: 22px 20px;
  min-height: 160px;
  display: flex;
  align-items: center;
  flex: 1;
  background: var(--paper);
}
/* Open body: normal visible content, no overlay needed */
.prv-card-body-open {
  align-items: flex-start;
}

/* Blurred text lines */
.prv-blur-lines {
  width: 100%;
  filter: blur(4px);
  opacity: 0.45;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.prv-blur-lines div {
  height: 9px;
  border-radius: 999px;
  background: #AEB8C6;
}

/* Hidden overlay */
.prv-hidden-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Card footer */
.prv-card-footer {
  border-top: 1px solid var(--line);
  padding: 11px 18px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  background: var(--paper);
}

/* Shield badge — static, under the headline */
.prv-shield-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: var(--night);
  color: #6FB6FF;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow:
    0 0 0 1px rgba(30,130,245,0.35),
    0 4px 16px rgba(30,130,245,0.20),
    0 8px 24px rgba(10,22,40,0.35);
  white-space: nowrap;
  animation: prv-badge-float 3.2s ease-in-out infinite;
}
@keyframes prv-badge-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-4px); }
}

/* Responsive */
@media (max-width: 720px) {
  .prv-legend {
    grid-template-columns: 1fr;
  }
  .prv-row {
    flex-direction: column;
    align-items: stretch;
  }
  .prv-card {
    max-width: 100%;
  }
  .prv-stage {
    padding: 0;
  }
  .prv-blob { display: none; }
  .prv-shield-badge {
    animation: none;
  }
}
@media (min-width: 721px) and (max-width: 1024px) {
  .prv-legend {
    grid-template-columns: repeat(3, 1fr);
  }
  /* three cards: allow them to shrink, tighten gap */
  .prv-row {
    gap: 14px;
  }
  .prv-card {
    max-width: none;
  }
}
/* ===== END PRIVACY section ===== */

/* ===== FAQ toggle ===== */
.faq-toggle {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 999px;
  background: rgba(30,130,245,0.1);
  color: var(--brand);
  display: grid; place-items: center;
  transition: transform .25s ease, background-color .2s ease, color .2s ease;
}
details[open] .faq-toggle {
  transform: rotate(45deg);
  background: var(--brand);
  color: #fff;
}

/* ===== 统一微交互 (unified micro-interactions) =====
   Centralized hover/active polish that can't live next to its base rule.
   Timing uses the global motion tokens (--dur / --dur-slow / --ease / --ease-out). */

/* Article rows (help center lists) carry an inline `transition:background`,
   so we override with !important to also animate the lift + shadow. */
.article-row {
  transition: transform var(--dur-slow) var(--ease-out),
              box-shadow var(--dur-slow) var(--ease-out),
              background var(--dur) var(--ease) !important;
}
.article-row:hover {
  transform: translateY(-2px);
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(11,18,32,0.08), 0 0 0 1px var(--line-strong);
}

/* Accessibility: honor reduced-motion — drop movement + transitions/animations. */
@media (prefers-reduced-motion: reduce) {
  .btn, .card, .price-card, .help-cat-card, .article-row,
  .nav-links a, .prv-card, .faq-toggle, .switch, .switch::after,
  .input, .select, .table tbody tr {
    transition: none !important;
  }
  .btn:hover, .btn:active,
  .card:hover, .price-card:hover, .price-card.highlight:hover,
  .help-cat-card:hover, .article-row:hover, .prv-card:hover {
    transform: none !important;
  }
  .prv-shield-badge, .prv-blob, .hero-panel-slide, .fade-up {
    animation: none !important;
  }
  /* 无动画时直接显示面板，避免停留在隐藏的初始态。 */
  .hero-panel-slide {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
/* ===== END 统一微交互 ===== */
