/* ==========================================================================
   上岸模拟器 · Landing Page
   设计规范：docs/damoutech_homepage_redesign_spec.md
   原则：clean · premium · high-conversion · SEO-friendly
   ========================================================================== */

:root {
  /* --- Brand colors (per spec 3.2) --- */
  --brand: #2563EB;
  --brand-hover: #1D4ED8;
  --brand-soft: #EFF6FF;

  /* --- Page / surface --- */
  --bg-page: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-soft: #F1F5F9;

  /* --- Text --- */
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-tertiary: #64748B;
  --text-quaternary: #94A3B8;
  --text-white: #FFFFFF;

  /* --- Borders --- */
  --border: #E2E8F0;
  --border-strong: #CBD5E1;

  /* --- State --- */
  --success: #16A34A;
  --warn: #EA580C;
  --danger: #DC2626;

  /* --- Shadows --- */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 16px 32px rgba(15, 23, 42, 0.10);
  --shadow-btn: 0 10px 20px rgba(37, 99, 235, 0.18);
  --shadow-btn-hover: 0 14px 28px rgba(37, 99, 235, 0.28);

  /* --- Radius --- */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* --- Spacing / layout --- */
  --max: 1200px;
  --gutter: 24px;
  --section-pad: 120px;

  /* --- Type / font --- */
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC", "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* --- Motion --- */
  --ease-out: cubic-bezier(.16,.84,.44,1);
}

@media (max-width: 767px) {
  :root {
    --gutter: 16px;
    --section-pad: 64px;
  }
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (max-width: 767px) { html { scroll-padding-top: 72px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg-page);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; color: var(--text-primary); line-height: 1.22; }
p { margin: 0; line-height: 1.7; color: var(--text-secondary); }
ul, ol { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { border: 0; background: transparent; font-family: inherit; cursor: pointer; }

[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--bg-card); padding: 10px 14px;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-md);
  z-index: 200;
}
.skip-link:focus { left: 16px; top: 16px; }

.container {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin: 0 auto;
}

/* ==========================================================================
   Typography scale (per spec 3.3)
   ========================================================================== */
h1, .h1 {
  font-size: clamp(28px, 5.6vw, 56px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h2, .h2 {
  font-size: clamp(24px, 4.2vw, 40px);
  line-height: 1.26;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
h3 {
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  font-weight: 600;
}
h4 {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  margin: 0 0 20px;
}

.title-accent { color: var(--brand); }

/* Desktop-only cosmetic line break — hidden on tablet/mobile so text flows naturally */
.br-d { display: none; }
@media (min-width: 1024px) { .br-d { display: inline; } }

/* Reveal animation */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.js-ready .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Buttons (per spec 13.1)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 14px;
  letter-spacing: 0.005em;
  white-space: nowrap;
  border: 1px solid transparent;
  line-height: 1;
  transition: transform .2s var(--ease-out), box-shadow .2s, background .2s, color .2s, border-color .2s;
  cursor: pointer;
}
.btn-sm { height: 38px; padding: 0 16px; font-size: 13.5px; border-radius: 12px; gap: 6px; }
.btn-lg {
  height: 52px;
  padding: 0 26px;
  font-size: 15.5px;
  gap: 10px;
  border-radius: 14px;
}
.btn-xl {
  height: 60px;
  padding: 0 36px;
  font-size: 17px;
  gap: 12px;
  border-radius: 16px;
  letter-spacing: 0.01em;
}
@media (max-width: 767px) {
  .btn-lg { height: 48px; font-size: 15px; }
  .btn-xl { height: 54px; font-size: 16px; padding: 0 28px; }
}
.btn-block { width: 100%; }

.btn-primary {
  background: var(--brand);
  color: var(--text-white);
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-btn-hover);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--bg-card);
  color: var(--brand);
  border: 1px solid var(--brand);
}
.btn-secondary:hover {
  background: var(--brand-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--bg-soft);
  border-color: var(--border-strong);
}

.btn-white {
  background: var(--text-white);
  color: var(--brand);
  border: 1px solid var(--text-white);
}
.btn-white:hover { background: var(--brand-soft); }

/* ==========================================================================
   Announce bar
   ========================================================================== */
.announce-bar {
  background: linear-gradient(90deg, #1E3A8A 0%, #2563EB 55%, #3B82F6 100%);
  color: var(--text-white);
  position: relative;
  overflow: hidden;
  max-height: 52px;
  transition: max-height .35s var(--ease-out), opacity .3s var(--ease-out);
}
.announce-bar.is-collapsed {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}
.announce-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 0;
  flex-wrap: nowrap;
  font-size: 12.5px;
  min-width: 0;
}
@media (min-width: 768px) {
  .announce-inner { font-size: 13px; gap: 16px; padding: 11px 0; }
}
.announce-tag {
  padding: 3px 8px;
  background: var(--text-white);
  color: var(--brand-hover);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  flex-shrink: 0;
}
.announce-text {
  color: rgba(255,255,255,0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 0 1 auto;
}
.announce-text em {
  color: var(--text-white);
  font-style: normal;
  font-weight: 600;
  padding: 0 2px;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.55);
  text-underline-offset: 3px;
}
.announce-cta {
  color: var(--text-white);
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.35);
  padding-bottom: 1px;
  flex-shrink: 0;
  transition: border-color .2s;
}
.announce-cta:hover { border-bottom-color: var(--text-white); }
@media (max-width: 560px) {
  .announce-bar .announce-cta { display: none !important; }
  .announce-bar .announce-text { font-size: 11.5px; flex: 1 1 auto; text-align: center; }
  .announce-bar .announce-inner { gap: 8px; padding: 9px 0; }
}

/* ==========================================================================
   Header / Nav (per spec 4)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.80);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  transition: box-shadow .2s, border-color .2s, background .2s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
@media (max-width: 767px) {
  .site-header-inner { height: 64px; }
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.brand-mark {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  overflow: hidden;
  display: inline-block;
  box-shadow: var(--shadow-xs);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.brand-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.005em;
}
.brand-sub {
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.03em;
}
@media (max-width: 767px) {
  .brand-sub { display: none; }
  .brand-footer .brand-sub { display: block; }
}

.nav-links {
  display: flex;
  gap: 4px;
}
.nav-links a {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text-primary); background: var(--bg-soft); }
@media (max-width: 1023px) {
  .nav-links { display: none; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
@media (max-width: 767px) {
  .header-actions .btn-sm { display: none; }
}

.nav-toggle {
  width: 40px; height: 40px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 10px;
}
.nav-toggle span {
  width: 20px; height: 2px;
  background: var(--text-primary);
  transition: transform .2s, opacity .2s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }
}

.mobile-nav {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 12px var(--gutter) 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mobile-nav a {
  padding: 12px 8px;
  font-size: 15px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-of-type { border-bottom: none; }
.mobile-nav .btn { margin-top: 12px; }

/* ==========================================================================
   Section base
   ========================================================================== */
.section {
  padding: var(--section-pad) 0;
}
.section-soft { background: var(--bg-soft); }

.section-head {
  max-width: 760px;
  margin: 0 0 56px;
}
@media (min-width: 1024px) {
  .section-head { margin-bottom: 72px; }
}
.section-head h2 {
  color: var(--text-primary);
}
.section-intro {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 680px;
}
.section-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 56px;
}
.section-cta-helper {
  font-size: 13px;
  color: var(--text-tertiary);
  margin: 0;
}

/* ==========================================================================
   Hero (per spec 5)
   ========================================================================== */
.hero {
  position: relative;
  padding: clamp(40px, 6vw, 96px) 0 clamp(64px, 8vw, 120px);
  overflow: hidden;
  background: linear-gradient(160deg, #EFF6FF 0%, var(--bg-page) 42%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}
.hero-glow-1 {
  top: -10%;
  left: -10%;
  width: 480px;
  height: 480px;
  background: rgba(37, 99, 235, 0.12);
}
.hero-glow-2 {
  bottom: -20%;
  right: -15%;
  width: 580px;
  height: 580px;
  background: rgba(37, 99, 235, 0.08);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 56fr 44fr;
    gap: 56px;
    align-items: start;
  }
}

.hero-copy { min-width: 0; }
.hero h1 {
  color: var(--text-primary);
  margin: 0 0 20px;
}
.hero-lede {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 0 32px;
}
.hero-lede strong {
  color: var(--text-primary);
  font-weight: 600;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
@media (max-width: 600px) {
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions .btn { width: 100%; }
}
.hero-helper {
  font-size: 13.5px;
  color: var(--text-tertiary);
  margin: 0 0 32px;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-tags li {
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Hero visual — device shell */
.hero-visual {
  min-width: 0;
  position: relative;
}
.device-shell {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 32px 64px -24px rgba(15, 23, 42, 0.18), 0 12px 32px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  max-width: 480px;
  margin: 0 auto;
}
.device-topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.device-topbar > span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}
.device-topbar > span:nth-child(1) { background: #F87171; }
.device-topbar > span:nth-child(2) { background: #FBBF24; }
.device-topbar > span:nth-child(3) { background: #4ADE80; }
.device-title {
  margin-left: auto;
  font-size: 11px;
  font-style: normal;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
}
.device-screen {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.screen-eyebrow {
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 6px;
  font-weight: 600;
}
.screen-score {
  font-size: 13px;
  color: var(--text-tertiary);
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin: 0;
  font-weight: 400;
}
.screen-score em {
  font-style: normal;
  font-size: 44px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.02em;
}
.score-unit {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* Hero device-shell — 4-row insight layout */
.screen-row { padding: 4px 0; }
.screen-row-score {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.screen-row-issue {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0 10px;
}
.screen-eyebrow-danger {
  color: var(--danger);
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
}
.screen-issue {
  margin: 0;
  padding: 5px 12px;
  background: #FEF2F2;
  color: var(--danger);
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.screen-card {
  padding: 12px 14px;
  background: var(--bg-soft);
  border-radius: 10px;
  border-left: 3px solid var(--border-strong);
}
.screen-card label {
  display: block;
  font-size: 10.5px;
  color: var(--text-tertiary);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.screen-card p {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}
.screen-card-danger {
  background: #FEF2F2;
  border-left-color: var(--danger);
}
.screen-card-danger label { color: var(--danger); }
.screen-card-success {
  background: #F0FDF4;
  border-left-color: var(--success);
}
.screen-card-success label { color: var(--success); }

/* ==========================================================================
   Pain points (per spec 6)
   ========================================================================== */
.pain-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .pain-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
.pain-card {
  position: relative;
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.pain-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, 0.18);
}
.pain-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
  font-variant-numeric: tabular-nums;
}
.pain-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.012em;
  margin-bottom: 12px;
}
.pain-card p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* ==========================================================================
   Capability (per spec 7)
   ========================================================================== */
.capability-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .capability-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (min-width: 1024px) {
  .capability-grid { gap: 24px; }
}
.cap-card {
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.cap-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, 0.18);
}
.cap-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.cap-card h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.012em;
  margin-bottom: 10px;
}
.cap-card p {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* ==========================================================================
   AI Feedback / 真实诊断 — single centered example card
   ========================================================================== */
.feedback-showcase-v2 {
  display: flex;
  justify-content: center;
}
.feedback-example {
  width: 100%;
  max-width: 720px;
  padding: 36px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.05), var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
@media (max-width: 767px) {
  .feedback-example { padding: 28px 22px; gap: 18px; }
}
.fe-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--border);
}
.fe-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}
.fe-label {
  align-self: flex-start;
  padding: 4px 12px;
  background: var(--bg-soft);
  color: var(--text-tertiary);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.fe-label-problem { background: #FFF7ED; color: var(--warn); }
.fe-label-fix { background: #F0FDF4; color: var(--success); }
.fe-label-next { background: var(--brand-soft); color: var(--brand); }
.fe-text {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-primary);
  margin: 0;
}
@media (max-width: 767px) { .fe-text { font-size: 15px; } }
.fe-text-original {
  color: #9CA3AF;
  text-decoration: line-through;
  text-decoration-color: rgba(220, 38, 38, 0.55);
  text-decoration-thickness: 1.5px;
  padding: 4px 0;
}
.fe-text-fixed {
  color: var(--text-primary);
  font-weight: 500;
  background: rgba(22, 163, 74, 0.07);
  border-left: 3px solid rgba(22, 163, 74, 0.55);
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
}

/* ==========================================================================
   How it works (per spec 9)
   ========================================================================== */
/* Horizontal timeline (PC) / vertical (H5) */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 20px 0 0;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 38px;
  left: calc(12.5% + 8px);
  right: calc(12.5% + 8px);
  height: 2px;
  background: linear-gradient(
    to right,
    rgba(37, 99, 235, 0.12),
    rgba(37, 99, 235, 0.45) 20%,
    rgba(37, 99, 235, 0.45) 80%,
    rgba(37, 99, 235, 0.12)
  );
  z-index: 0;
}
.timeline-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.timeline-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand) 0%, #1E40AF 100%);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28), 0 0 0 4px var(--bg-card);
  margin-bottom: 20px;
}
.section-soft .timeline-dot { box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28), 0 0 0 4px var(--bg-soft); }
.timeline-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.008em;
  margin: 0 0 6px;
}
.timeline-body p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}
@media (max-width: 767px) {
  .timeline {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 20px 0 0;
    max-width: 400px;
    margin: 0 auto;
  }
  .timeline::before { display: none; }
  .timeline-step {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 0;
    position: relative;
  }
  .timeline-step:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    width: 2px;
    height: 14px;
    background: linear-gradient(to bottom, rgba(37, 99, 235, 0.4), rgba(37, 99, 235, 0.08));
    border-radius: 1px;
    transform: translateX(-50%);
  }
  .timeline-dot {
    margin: 0;
    width: 40px;
    height: 40px;
    font-size: 15px;
  }
  .timeline-body { padding-top: 0; }
}

/* ==========================================================================
   Trust / 用户反馈 — reviews only
   ========================================================================== */
.review-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .review-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
.review-card {
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.review-card blockquote {
  flex: 1;
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-primary);
  font-weight: 500;
  padding-left: 14px;
  border-left: 3px solid var(--brand-soft);
}
.review-card footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.review-card footer strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}
.review-card footer span {
  display: block;
  font-size: 12px;
  color: var(--text-tertiary);
}
.avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: 14px;
  font-weight: 600;
}
.avatar-1 { background: #2563EB; }
.avatar-2 { background: #0EA5E9; }
.avatar-3 { background: #6366F1; }

/* ==========================================================================
   Differentiation / 差异化模块
   ========================================================================== */
.diff-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: stretch;
}
@media (min-width: 768px) {
  .diff-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
.diff-col {
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.diff-col-ours {
  background: linear-gradient(180deg, #F5F9FF 0%, var(--bg-card) 65%);
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.10);
}
.diff-head { margin-bottom: 20px; }
.diff-tag {
  display: inline-block;
  padding: 5px 12px;
  background: var(--bg-soft);
  color: var(--text-tertiary);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.diff-tag-accent {
  background: var(--brand-soft);
  color: var(--brand);
}
.diff-head h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin: 0;
}
.diff-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.diff-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.diff-list li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-quaternary);
}
.diff-col-ours .diff-list li::before { background: var(--brand); }
.diff-footnote {
  margin: 32px 0 0;
  text-align: center;
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 500;
}
.diff-footnote::before,
.diff-footnote::after {
  content: '—';
  color: var(--text-quaternary);
  margin: 0 10px;
  font-weight: 400;
}

/* ==========================================================================
   Community / 考友群
   ========================================================================== */
.community-panel {
  position: relative;
  overflow: hidden;
  padding: 56px 40px;
  background: linear-gradient(135deg, #EFF6FF 0%, #F5F3FF 100%);
  border-radius: var(--r-xl);
  text-align: center;
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.06);
}
.community-panel::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -15%;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.10), transparent 60%);
  filter: blur(60px);
  pointer-events: none;
}
.community-panel > * { position: relative; z-index: 1; }
@media (max-width: 767px) {
  .community-panel { padding: 40px 24px; }
}
.community-panel h2 {
  color: var(--text-primary);
  margin-bottom: 14px;
}
.community-desc {
  font-size: 16.5px;
  color: var(--text-secondary);
  margin: 0 auto 28px;
  max-width: 520px;
  line-height: 1.7;
}
.community-actions { display: flex; justify-content: center; margin-bottom: 16px; }
@media (max-width: 600px) { .community-actions .btn { width: 100%; max-width: 360px; } }
@media (min-width: 1024px) {
  .community-panel { text-align: left; padding: 64px 56px; }
  .community-desc { margin: 0 0 28px; max-width: 620px; }
  .community-actions { justify-content: flex-start; }
}
.community-helper {
  font-size: 13.5px;
  color: var(--text-tertiary);
  margin: 0;
}
.community-helper strong {
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 2px 8px;
  background: var(--bg-card);
  border-radius: 6px;
  margin: 0 2px;
}

/* ==========================================================================
   Final CTA (per spec 11)
   ========================================================================== */
.final-cta { padding: 0 0 var(--section-pad); }
.final-panel {
  position: relative;
  overflow: hidden;
  padding: 48px 32px;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border-radius: var(--r-xl);
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 1024px) {
  .final-panel {
    grid-template-columns: 1.5fr 1fr;
    gap: 56px;
    padding: 72px 64px;
    align-items: center;
  }
  .final-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .final-side {
    justify-content: center;
  }
  .final-copy h2 { font-size: clamp(32px, 3.4vw, 44px); line-height: 1.18; }
}
.final-panel::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08), transparent 60%);
  filter: blur(80px);
  pointer-events: none;
}
.final-copy { position: relative; z-index: 1; }
.final-copy h2 {
  color: var(--text-primary);
  margin-bottom: 16px;
}
.final-desc {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 28px;
}
.final-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
@media (max-width: 600px) {
  .final-actions .btn { width: 100%; }
}
.final-trust {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.final-trust svg { color: var(--success); flex-shrink: 0; }
.final-trust strong {
  color: var(--text-primary);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.final-side {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
.qr-card {
  width: 100%;
  max-width: 260px;
  padding: 24px 20px;
  background: var(--bg-card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
}
.qr-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px;
  letter-spacing: -0.008em;
}
.qr-sub {
  font-size: 12.5px;
  color: var(--text-tertiary);
  margin: 0 0 18px;
}
.qr-image {
  width: 180px;
  height: 180px;
  margin: 0 auto 14px;
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr-image svg, .qr-image img { width: 100%; height: 100%; display: block; object-fit: contain; }
.qr-helper {
  font-size: 12px;
  color: var(--brand);
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.01em;
}

.wx-id-card {
  width: 100%;
  max-width: 240px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.wx-id-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.005em;
}
.wx-id-sub {
  font-size: 11.5px;
  color: var(--text-tertiary);
  margin: -4px 0 4px;
  line-height: 1.5;
}
.wx-id-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: var(--bg-soft);
  border-radius: 8px;
  color: #07C160;
  width: 100%;
  justify-content: center;
}
.wx-id-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
.wx-copy-btn { width: 100%; }
.wx-copy-btn.is-copied {
  color: var(--success);
  border-color: var(--success);
}
.wx-id-helper {
  font-size: 11px;
  color: var(--text-tertiary);
  margin: 0;
}

/* ==========================================================================
   Footer (per spec 12)
   ========================================================================== */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 56px 0 calc(48px + env(safe-area-inset-bottom));
}
@media (max-width: 767px) {
  .site-footer { padding: 40px 0 calc(48px + env(safe-area-inset-bottom)); }
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1.2fr 2fr;
    gap: 56px;
  }
}
.footer-brand { max-width: 360px; }
.brand-footer .brand-mark { box-shadow: none; }
.footer-tag {
  margin-top: 18px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-tertiary);
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}
@media (max-width: 480px) {
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
}
.footer-col h4 {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-tertiary);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  padding: 5px 0;
  font-size: 13.5px;
  color: var(--text-secondary);
  transition: color .2s;
}
.footer-col a:hover { color: var(--brand); }

.footer-copyright {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-tertiary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  text-align: center;
}
.footer-company-logo {
  height: 36px;
  width: auto;
  display: block;
  opacity: 0.78;
  transition: opacity .2s;
}
.footer-company-logo:hover { opacity: 1; }
@media (max-width: 639px) {
  .footer-bottom { gap: 10px; padding-top: 20px; }
  .footer-company-logo { height: 30px; }
}

/* ==========================================================================
   Small-screen fine-tunes
   ========================================================================== */
@media (max-width: 767px) {
  .section-intro { font-size: 15.5px; line-height: 1.7; }
  .final-desc { font-size: 15.5px; }
  .qr-card, .wx-id-card { max-width: 100%; }

  /* H5 标题与副标题统一居中 */
  .section-head { text-align: center; margin-left: auto; margin-right: auto; }
  .section-head .section-intro { text-align: center; margin-left: auto; margin-right: auto; }

  .hero-copy { text-align: center; }
  .hero-lede { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-tags { justify-content: center; }
  .hero-actions .btn-secondary { font-weight: 500; }

  .final-copy { text-align: center; }
  .final-actions { justify-content: center; }
  .final-trust { align-self: center; }

  /* footer 品牌区整体居中 */
  .footer-brand { text-align: center; margin-left: auto; margin-right: auto; }
}
@media (max-width: 639px) {
  .section-head { margin-bottom: 40px; }
  .pain-card, .cap-card, .review-card, .diff-col { padding: 24px 20px; }
  .final-panel { padding: 36px 20px; }
  .final-copy h2 { font-size: 28px; }
  .section-cta { margin-top: 40px; }
  .section-cta .btn { width: 100%; max-width: 360px; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions .btn { width: 100%; }
  .diff-footnote::before, .diff-footnote::after { margin: 0 6px; }
}

/* ==========================================================================
   Hero visual enhancements (spec 5.4)
   ========================================================================== */
.hv-container {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
}

/* Floating "AI 评测已完成" badge — PC only */
.hv-float-badge {
  position: absolute;
  top: -16px;
  right: 16px;
  z-index: 10;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px 7px 10px;
  box-shadow: var(--shadow-md);
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}
@media (min-width: 1024px) {
  .hv-float-badge { display: inline-flex; }
}

.hv-badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.4); }
  50%       { box-shadow: 0 0 0 5px rgba(22, 163, 74, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hv-badge-pulse { animation: none; }
}

/* ==========================================================================
   How-it-works QR companion (spec 9.5)
   ========================================================================== */
@media (min-width: 768px) {
  .hiw-cta {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
  }
}
.hiw-qr-inline {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xs);
}
@media (min-width: 768px) {
  .hiw-qr-inline { display: flex; }
}
.hiw-qr-img {
  width: 52px;
  height: 52px;
  min-width: 52px;
  background: var(--bg-soft);
  border-radius: 8px;
  padding: 4px;
}
.hiw-qr-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hiw-qr-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 2px;
}
.hiw-qr-sub {
  font-size: 11px;
  color: var(--text-tertiary);
  margin: 0;
  line-height: 1.4;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 880px;
  margin: 0 auto;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.faq-item:hover {
  border-color: var(--border-strong);
}
.faq-item[open] {
  border-color: rgba(37, 99, 235, 0.32);
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; }
.faq-q {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.005em;
  line-height: 1.5;
}
.faq-icon {
  position: relative;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--brand-soft);
  transition: background .25s var(--ease-out);
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--brand);
  border-radius: 1px;
  transition: transform .25s var(--ease-out), background .25s var(--ease-out);
}
.faq-icon::before {
  width: 10px;
  height: 2px;
  transform: translate(-50%, -50%);
}
.faq-icon::after {
  width: 2px;
  height: 10px;
  transform: translate(-50%, -50%);
}
.faq-item[open] .faq-icon { background: var(--brand); }
.faq-item[open] .faq-icon::before,
.faq-item[open] .faq-icon::after {
  background: var(--text-white);
}
.faq-item[open] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.faq-a {
  padding: 0 24px 22px;
  animation: faqSlide .28s var(--ease-out);
}
.faq-a p {
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--text-secondary);
  margin: 0;
}
.faq-a strong {
  color: var(--text-primary);
  font-weight: 600;
}
@keyframes faqSlide {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .faq-a { animation: none; }
}
@media (max-width: 639px) {
  .faq-item summary { padding: 16px 18px; gap: 12px; }
  .faq-a { padding: 0 18px 18px; }
  .faq-q { font-size: 15px; line-height: 1.5; }
}
