/* ============================================================
   Precedent AI — 统一设计体系
   方向:法律文书气质。深墨蓝 + 暖纸 + 火漆红 + 黄铜细节。
   衬线标题 / 无衬线正文 / 等宽标签。发丝线分区,克制动效。
   注意:类名与变量名是 JS/其他页面的依赖,不可改名,只可改值。
   ============================================================ */

:root {
  --ink: #0f1e2d;
  --ink-soft: #1b3046;
  --ink-deep: #081321;
  --paper: #faf7f0;
  --paper-pure: #fffdf8;
  --canvas: #f1ede1;
  --line: #ded5c2;
  --line-strong: #c9c0aa;
  --muted: #5d6a6e;
  --coral: #ab4322;
  --coral-dark: #8a3419;
  --mint: #d8e8dd;
  --mint-dark: #2d6a51;
  --amber: #c08a2e;
  --brass: #b08a3e;
  --blue: #3d6497;
  --shadow: 0 30px 70px -24px rgba(8, 19, 33, 0.35);
  --font-serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

button, input { font: inherit; }

button { cursor: pointer; }

::selection { background: rgba(176, 138, 62, 0.32); }

.section-shell {
  width: min(1160px, calc(100% - 56px));
  margin: 0 auto;
}

/* 锚点定位避开吸顶导航 */
.how-anchor, .example-section, .reserve-section, .faq-section { scroll-margin-top: 76px; }
#how-it-works, #example, #faq, #reserve { scroll-margin-top: 76px; }

/* ---------------- 页头 ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 68px;
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 24px;
  padding: 12px max(28px, calc((100% - 1160px) / 2));
  background: rgba(250, 247, 240, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 192, 170, 0.55);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.1px;
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 5px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  position: relative;
  color: #54636e;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1.5px;
  background: var(--coral);
  content: "";
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { opacity: 1; transform: scaleX(1); }

.site-header > .button { justify-self: end; }
.header-account-link { justify-self: end; color: #54636e; font-size: 13px; font-weight: 650; }

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.1px;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button:focus-visible, .text-link:focus-visible, .site-nav a:focus-visible, details summary:focus-visible, input:focus-visible { outline: 3px solid rgba(61, 100, 151, 0.45); outline-offset: 3px; }

.button-dark { background: var(--ink); color: var(--paper); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
.button-dark:hover { background: var(--ink-soft); }

.button-coral { background: var(--coral); color: #fdf6ec; box-shadow: 0 10px 22px -10px rgba(138, 52, 25, 0.55); }
.button-coral:hover { background: #b94e2b; }

.hero .button-outline {
  border-color: rgba(250, 247, 240, 0.45);
  background: transparent;
  color: var(--paper);
}
.hero .button-outline:hover { border-color: rgba(250, 247, 240, 0.8); background: rgba(250, 247, 240, 0.08); }
.button-outline { border: 1px solid var(--line-strong); background: transparent; color: var(--ink); }
.button-outline:hover { border-color: var(--ink); }

.button-small { min-height: 36px; padding: 0 14px; font-size: 12px; }
.button-large { min-height: 52px; padding: 0 22px; font-size: 15px; }

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

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 480px at 50% -12%, rgba(64, 98, 134, 0.55), transparent 62%),
    linear-gradient(180deg, var(--ink) 0%, #0b1826 100%);
  color: var(--paper);
}

/* 背景细纹:极淡的纵向栏线,像判例汇编的版心 */
.hero::before {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, rgba(250, 247, 240, 0.028) 0 1px, transparent 1px 128px);
  content: "";
  pointer-events: none;
}

.hero-inner {
  position: relative;
  width: min(980px, calc(100% - 56px));
  margin: 0 auto;
  padding: 92px 0 70px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--coral-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.7px;
  line-height: 1.2;
}

.eyebrow-light { color: #b08a3e; }

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 900px;
  margin: 0 auto;
  font-family: var(--font-serif);
  font-size: clamp(42px, 5.4vw, 68px);
  font-weight: 500;
  letter-spacing: -0.8px;
  line-height: 1.04;
  text-wrap: balance;
}

.hero-copy {
  max-width: 620px;
  margin: 26px auto 0;
  color: #c2d0db;
  font-size: 19px;
  line-height: 1.55;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link-light { color: #e3e9ea; }
.text-link-dark { color: var(--ink); }

.hero-note {
  margin: 20px 0 0;
  color: #8ba0b1;
  font-size: 12.5px;
}

.hero-rule { height: 1px; background: rgba(250, 247, 240, 0.16); }

.hero-foot {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1160px, calc(100% - 56px));
  margin: 0 auto;
  padding: 17px 0 19px;
  color: #93a6b5;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 1.4px;
}

.hero-foot span { display: inline-flex; align-items: center; gap: 9px; }
.hero-foot span::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brass);
  content: "";
}

/* 首屏入场:轻,一次性 */
@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * { animation: hero-rise 640ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-inner > *:nth-child(2) { animation-delay: 70ms; }
  .hero-inner > *:nth-child(3) { animation-delay: 140ms; }
  .hero-inner > *:nth-child(4) { animation-delay: 210ms; }
  .hero-inner > *:nth-child(5) { animation-delay: 280ms; }
  @keyframes hero-rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }
}

/* ---------------- 产品预览(浏览器框) ---------------- */

.proof-visual { background: var(--canvas); padding-bottom: 80px; }

.demo-tabs {
  position: static;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 26px;
  margin-bottom: 16px;
}

.demo-tab {
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  background: var(--paper-pure);
  color: #56646e;
  font-size: 13px;
  font-weight: 600;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.demo-tab:hover { border-color: var(--ink); color: var(--ink); }
.demo-tab.active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.demo-tab-note {
  margin-left: 6px;
  color: #77807b;
  font-family: var(--font-mono);
  font-size: 11px;
}

/* 无 JS 时默认显示第一个案例;JS 切换 .active */
.case-panel { display: none; }
.case-panel.active { display: block; }

.browser-frame {
  position: relative;
  top: 0;
  overflow: hidden;
  border: 1px solid #c4bca8;
  border-radius: 10px;
  background: var(--paper-pure);
  box-shadow: var(--shadow);
}

.browser-bar {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 17px;
  border-bottom: 1px solid var(--line);
  background: #ede8db;
}

.browser-dots { display: flex; gap: 5px; }
.browser-dots i { display: block; width: 9px; height: 9px; border-radius: 50%; background: #b3ac9a; }
.browser-dots i:nth-child(1) { background: var(--coral); }
.browser-dots i:nth-child(2) { background: var(--amber); }
.browser-dots i:nth-child(3) { background: var(--mint-dark); }
.browser-title { color: #6a716c; font-family: var(--font-mono); font-size: 11px; }
.browser-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 4px 9px;
  border: 1px solid rgba(45, 106, 81, 0.35);
  border-radius: 99px;
  background: rgba(216, 232, 221, 0.6);
  color: var(--mint-dark);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.9px;
}
.browser-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint-dark); }

.output-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 0.38fr); align-items: stretch; }
.generated-draft { min-width: 0; background: var(--paper-pure); }
.generated-draft-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
  padding: 13px 26px;
  border-bottom: 1px solid var(--line);
  background: #f4f0e5;
}
.sample-box-tag { color: #8a6416; font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 1px; }
.document-kicker { color: #85887e; font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 1.3px; }
.generated-document {
  height: 640px;
  padding: 38px 46px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  color: #333f48;
  font-size: 16px;
  overflow-wrap: anywhere;
}
.generated-document:focus-visible { outline: 3px solid rgba(61, 100, 151, 0.45); outline-offset: -3px; }
.generated-document h2 { max-width: 710px; margin: 0 0 12px; color: var(--ink); font-family: var(--font-serif); font-size: 32px; font-weight: 600; letter-spacing: -0.3px; line-height: 1.12; }
.generated-document h3 { max-width: 710px; margin: 30px 0 10px; color: var(--ink); font-family: var(--font-serif); font-size: 20px; font-weight: 600; line-height: 1.25; }
.generated-document p { max-width: 710px; margin: 0 0 16px; font-family: var(--font-serif); font-size: 16px; line-height: 1.66; }
.generated-document p.document-meta { margin-bottom: 20px; color: #6e7a83; font-family: var(--font-sans); font-size: 12px; line-height: 1.45; }
.generated-document p.document-disclaimer { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); color: #7c837d; font-size: 12px; font-style: italic; }
.generated-document ul { max-width: 710px; margin: -4px 0 18px; padding-left: 21px; font-family: var(--font-serif); font-size: 16px; line-height: 1.58; }
.generated-document li { margin-bottom: 6px; }
.generated-document strong { font-weight: 700; }

/* 来源链接 = 产品核心卖点,视觉上要突出 */
.generated-document a {
  color: var(--mint-dark);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(45, 106, 81, 0.45);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  background: linear-gradient(transparent 68%, rgba(176, 138, 62, 0.28) 0);
}
.generated-document a:hover { text-decoration-color: var(--mint-dark); }

.document-rule { width: 44px; height: 3px; margin-bottom: 22px; background: var(--coral); }
.preview-loading { color: var(--muted); }
.generated-draft-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  min-height: 66px;
  padding: 14px 26px;
  border-top: 1px solid var(--line);
  background: #f4f0e5;
}
.sample-copy { min-height: 38px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font-size: 13px; }
.sample-copy:hover { border-color: var(--mint-dark); background: #eef6f1; }
.sample-copy.copied { border-color: var(--mint-dark); color: var(--mint-dark); }
.sample-copy-state { color: var(--mint-dark); font-family: var(--font-mono); font-size: 11px; font-weight: 600; }

/* 来源按钮:胶囊样式,和正文里的高亮来源呼应 */
.sample-source {
  margin-left: auto;
  padding: 8px 13px;
  border: 1px solid rgba(45, 106, 81, 0.4);
  border-radius: 5px;
  background: #eef6f1;
  color: var(--mint-dark);
  font-size: 12px;
  font-weight: 650;
}
.sample-source:hover { background: #e2efe8; text-decoration: none; }

.preview-report {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 25px 24px 22px;
  border-left: 1px solid #cfd8cc;
  background: #ecf1e9;
}
.report-topline { display: flex; align-items: baseline; gap: 5px; }
.report-topline .document-kicker { margin-right: auto; }
.report-topline strong { color: var(--mint-dark); font-size: 26px; font-weight: 700; line-height: 1; }
.report-topline small { color: #5d7268; font-size: 11px; font-weight: 700; }
.report-case { min-height: 37px; margin: 10px 0 21px; color: #4f6159; font-size: 12px; line-height: 1.5; }
.axis-list { display: grid; gap: 12px; }
.axis-row {
  display: grid;
  grid-template-columns: 36px 30px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  color: #3f534b;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}
.axis-row b { color: var(--ink); font-family: var(--font-sans); font-size: 12px; font-weight: 650; text-align: right; }
.axis-bar { display: block; height: 6px; overflow: hidden; border-radius: 99px; background: #c9d5ca; }
.axis-bar i { display: block; height: 100%; border-radius: inherit; background: var(--mint-dark); }
.review-flags { margin-top: 28px; padding-top: 18px; border-top: 1px solid #c9d5ca; }
.review-flags ul { display: grid; gap: 10px; margin: 13px 0 0; padding: 0; list-style: none; }
.review-flags li { position: relative; padding-left: 15px; color: #42544c; font-size: 12px; line-height: 1.5; }
.review-flags li::before { position: absolute; top: 7px; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); content: ""; }
.report-note { margin: auto 0 0; padding-top: 20px; color: #5b6c65; font-size: 11px; line-height: 1.5; }
.visual-caption {
  max-width: 500px;
  margin: 20px auto 0;
  color: #67716c;
  font-family: var(--font-serif);
  font-size: 16.5px;
  font-style: italic;
  text-align: center;
}

/* ---------------- 痛点区 ---------------- */

.pain-section { padding: 100px 0; background: #f6f2e8; border-top: 1px solid var(--line); }
.pain-grid { display: grid; grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr); gap: 96px; }
.pain-grid h2, .section-intro h2 {
  margin-bottom: 0;
  font-family: var(--font-serif);
  font-size: clamp(34px, 3.6vw, 46px);
  font-weight: 500;
  letter-spacing: -0.5px;
  line-height: 1.1;
  text-wrap: balance;
}
.pain-list { border-top: 1px solid var(--line-strong); }
.pain-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 17px;
  padding: 27px 0;
  border-bottom: 1px solid var(--line);
  transition: background-color 160ms ease;
}
.pain-number, .step-number { color: var(--coral); font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.6px; }
.pain-row h3, .step h3, .feature-card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; line-height: 1.25; }
.pain-row p { max-width: 620px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* ---------------- 工作流 ---------------- */

.mechanism-section { padding: 104px 0 94px; background: var(--paper); }
.section-intro { max-width: 530px; }
.section-intro-wide { max-width: 710px; }
.section-intro > p:not(.eyebrow) { margin: 20px 0 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 56px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.step { min-height: 250px; padding: 30px 25px 25px 0; border-right: 1px solid var(--line); }
.step + .step { padding-left: 25px; }
.step:last-child { border-right: 0; }
.step h3 { margin-top: 56px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.step-closing { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 0; color: #57656e; font-family: var(--font-serif); font-size: 20px; }
.step-closing span::after { content: " ·"; color: var(--brass); }
.step-closing span:last-of-type::after { content: ""; }
.step-closing strong { color: var(--coral-dark); font-weight: 600; }

/* ---- 时间账(workflow 区) ---- */
.time-math {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  max-width: 860px;
  margin: 36px auto 0;
  padding: 26px 30px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-pure);
  box-shadow: 0 14px 34px -22px rgba(8, 19, 33, 0.35);
}
.time-math h4 { margin: 0 0 8px; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 1.1px; text-transform: uppercase; color: var(--coral-dark); }
.time-math-col:last-child h4 { color: var(--mint-dark); }
.time-math p { margin: 0; color: #55616b; font-size: 14px; line-height: 1.65; }
@media (max-width: 640px) { .time-math { grid-template-columns: 1fr; } }

/* ---------------- 保障特性(深色区) ---------------- */

.feature-section {
  padding: 100px 0 108px;
  background:
    radial-gradient(900px 420px at 85% 0%, rgba(64, 98, 134, 0.35), transparent 60%),
    var(--ink);
  color: var(--paper);
}
.section-intro-light h2 { color: var(--paper); }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 50px; }
.feature-card {
  position: relative;
  min-height: 262px;
  padding: 24px 22px;
  border: 1px solid rgba(250, 247, 240, 0.16);
  border-radius: 8px;
  background: rgba(250, 247, 240, 0.045);
  color: var(--paper);
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.feature-card:hover { background: rgba(250, 247, 240, 0.08); border-color: rgba(250, 247, 240, 0.3); transform: translateY(-2px); }
.feature-card::before {
  position: absolute;
  top: 0;
  left: 22px;
  width: 34px;
  height: 2px;
  content: "";
}
.feature-card-coral::before { background: #c96a44; }
.feature-card-mint::before { background: #7fae95; }
.feature-card-paper::before { background: #d8cbb2; }
.feature-card-amber::before { background: #c99b4a; }
.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 48px;
  border: 1px solid rgba(250, 247, 240, 0.32);
  border-radius: 50%;
  color: var(--brass);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}
.feature-card h3 { font-size: 19px; font-weight: 700; }
.feature-card p { margin: 0; color: rgba(250, 247, 240, 0.72); font-size: 14px; line-height: 1.6; }

/* ---------------- 真实输出区 ---------------- */

.example-section { padding: 106px 0; background: #ece7d9; }
.example-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(350px, 0.82fr); gap: 120px; align-items: center; }
.example-notes { border-top: 1px solid var(--line-strong); }
.note-line { display: grid; grid-template-columns: 15px 1fr; gap: 14px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.note-dot { display: block; width: 11px; height: 11px; margin-top: 5px; border-radius: 50%; }
.note-dot-coral { background: var(--coral); }
.note-dot-mint { background: var(--mint-dark); }
.note-dot-amber { background: var(--brass); }
.note-line b { font-size: 15px; font-weight: 700; }
.note-line p { margin: 3px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ---------------- 转化区($1) ---------------- */

.reserve-section {
  padding: 96px 0;
  background:
    radial-gradient(800px 380px at 18% 110%, rgba(64, 98, 134, 0.4), transparent 60%),
    linear-gradient(180deg, #0e1c2b 0%, var(--ink-deep) 100%);
  color: var(--paper);
  border-top: 1px solid rgba(176, 138, 62, 0.4);
}
.reserve-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr); gap: 92px; align-items: center; }
.reserve-section .eyebrow { color: var(--brass); }
.reserve-copy h2 {
  max-width: 580px;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(36px, 4vw, 50px);
  font-weight: 500;
  letter-spacing: -0.5px;
  line-height: 1.08;
  text-wrap: balance;
}
.reserve-copy > p:not(.eyebrow) { max-width: 550px; margin: 21px 0 0; color: #b6c4d0; font-size: 16.5px; line-height: 1.6; }
.reserve-copy .refund-note { display: flex; gap: 9px; align-items: flex-start; margin-top: 24px; color: #d8e8dd; font-size: 14px; font-weight: 650; }
.refund-note span {
  display: grid;
  place-items: center;
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(45, 106, 81, 0.55);
  color: #d8e8dd;
  font-size: 11px;
}
.reserve-actions { padding-left: 3px; }
.reserve-section .button-dark { background: var(--paper); color: var(--ink); box-shadow: none; }
.reserve-section .button-dark:hover { background: #ffffff; }
.reserve-helper { margin: 12px 0 26px; color: #8ba0b1; font-size: 12.5px; }
.reserve-byline { margin: 24px 0 0; color: #8ba0b1; font-size: 12px; }
.reserve-byline a { color: #e3e9ea; text-decoration: underline; text-underline-offset: 3px; }
.email-form { max-width: 440px; }
.email-form label { display: block; margin-bottom: 8px; color: var(--paper); font-size: 14px; font-weight: 650; }
.email-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.email-row input {
  min-width: 0;
  height: 44px;
  padding: 0 13px;
  border: 1px solid rgba(250, 247, 240, 0.38);
  border-radius: 5px;
  background: rgba(250, 247, 240, 0.06);
  color: var(--paper);
}
.email-row input::placeholder { color: #7d93a5; }
.email-row input:focus { border-color: rgba(250, 247, 240, 0.75); background: rgba(250, 247, 240, 0.1); }
.honey-field { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.form-message { min-height: 19px; margin: 9px 0 0; color: #9fd3b4; font-size: 12px; font-weight: 600; }
.form-message.error { color: #f0a48e; }

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

.faq-section { padding: 110px 0; background: #f6f2e8; }
.faq-grid { display: grid; grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr); gap: 110px; }
.faq-list { border-top: 1px solid var(--line-strong); }
details { border-bottom: 1px solid var(--line); }
details summary {
  position: relative;
  padding: 21px 32px 21px 0;
  color: var(--ink);
  cursor: pointer;
  font-size: 16.5px;
  font-weight: 650;
  list-style: none;
  transition: color 150ms ease;
}
details summary:hover { color: var(--coral-dark); }
details summary::-webkit-details-marker { display: none; }
details summary::after {
  position: absolute;
  top: 16px;
  right: 2px;
  color: var(--coral);
  content: "+";
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
}
details[open] summary::after { content: "\2212"; }
details p { max-width: 720px; margin: -2px 0 22px; color: var(--muted); font-size: 14px; line-height: 1.65; }

/* ---- FAQ 轮播 ---- */
.faq-carousel {
  margin-bottom: 26px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-pure);
  box-shadow: 0 18px 40px -26px rgba(8, 19, 33, 0.4);
  overflow: hidden;
}
.faq-slides { position: relative; min-height: 168px; }
.faq-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 28px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 260ms ease, transform 260ms ease;
  pointer-events: none;
}
.faq-slide.active { position: relative; opacity: 1; transform: translateY(0); pointer-events: auto; }
.faq-slide-tag {
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 3px 9px;
  border-radius: 4px;
  background: #f2e2d9;
  color: var(--coral-dark);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
}
.faq-slide h3 { margin: 0 0 8px; font-family: var(--font-serif); font-size: 20px; font-weight: 600; line-height: 1.25; cursor: pointer; }
.faq-slide h3::after { content: " \2197"; color: var(--coral); font-size: 13px; }
.faq-slide p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.faq-dots { display: flex; justify-content: center; gap: 7px; padding: 0 0 16px; }
.faq-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #cfc7b3;
  cursor: pointer;
  transition: background-color 150ms ease, transform 150ms ease;
}
.faq-dot.active { background: var(--coral); transform: scale(1.15); }
.faq-carousel-cta {
  display: block;
  width: 100%;
  padding: 12px;
  border: 0;
  border-top: 1px solid var(--line);
  background: #f4f0e5;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.faq-carousel-cta:hover { background: #ede7d8; }

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

.site-footer { padding: 46px 0; background: var(--ink-deep); color: #c9d3d9; border-top: 1px solid rgba(176, 138, 62, 0.35); }
.footer-grid { display: grid; grid-template-columns: 1fr minmax(320px, 1.25fr) auto; gap: 50px; align-items: end; }
.wordmark-footer { color: var(--paper); }
.wordmark-footer .wordmark-mark { background: var(--coral); color: #fdf6ec; }
.site-footer p { margin: 12px 0 0; color: #8399a8; font-size: 12px; line-height: 1.6; }
.footer-meta p { max-width: 490px; margin: 0 0 6px; }
.back-top { color: #c99b4a; font-size: 12px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.back-top:hover { color: #e0b662; text-decoration: underline; text-underline-offset: 4px; }

/* ---------------- Toast ---------------- */

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  max-width: min(390px, calc(100vw - 48px));
  padding: 13px 16px;
  border: 1px solid rgba(250, 247, 240, 0.14);
  border-radius: 8px;
  background: var(--ink-deep);
  box-shadow: 0 16px 36px rgba(8, 19, 33, 0.4);
  color: var(--paper);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ---------------- 性能:首屏以下区块延迟渲染 ---------------- */

.pain-section, .mechanism-section, .feature-section, .example-section, .reserve-section, .faq-section, .site-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 700px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------------- 响应式 ---------------- */

@media (max-width: 940px) {
  .site-header { grid-template-columns: 1fr auto auto; }
  .site-nav { display: none; }
  .pain-grid, .example-grid, .reserve-grid, .faq-grid { gap: 58px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-card { min-height: 218px; }
  .feature-icon { margin-bottom: 30px; }
}

@media (max-width: 720px) {
  .section-shell, .hero-inner, .hero-foot { width: min(100% - 32px, 620px); }
  .site-header { min-height: 60px; padding: 10px 16px; }
  .wordmark { font-size: 16px; }
  .wordmark-mark { width: 26px; height: 26px; font-size: 16px; }
  .site-header .button { min-height: 36px; padding: 0 11px; font-size: 11.5px; }
  .header-account-link { font-size: 11px; }
  .hero-inner { padding: 68px 0 56px; text-align: left; }
  .hero-copy { margin-left: 0; font-size: 17px; }
  .hero-actions { justify-content: flex-start; gap: 13px; }
  .hero-note { max-width: 320px; }
  .hero-foot { justify-content: flex-start; flex-wrap: wrap; gap: 12px 20px; padding: 14px 0; }
  .proof-visual { padding-top: 0; padding-bottom: 54px; }
  .demo-tabs { gap: 6px; padding-top: 24px; margin-bottom: 14px; }
  .demo-tab { min-height: 32px; padding: 0 12px; font-size: 12px; }
  .demo-tab-note { width: 100%; margin: 2px 0 0; font-size: 10.5px; }
  .browser-bar { padding: 0 12px; }
  .browser-title { display: none; }
  .browser-status { font-size: 9px; }
  .output-layout { grid-template-columns: 1fr; }
  .generated-document { height: 520px; padding: 28px 22px; }
  .generated-document h2 { font-size: 28px; }
  .generated-document p, .generated-document ul { font-size: 15px; }
  .generated-draft-head, .generated-draft-foot { padding: 12px 16px; }
  .preview-report { border-top: 1px solid #cfd8cc; border-left: 0; }
  .sample-source { width: 100%; margin-left: 0; }
  .visual-caption { margin-top: 16px; font-size: 15.5px; }
  .pain-section, .mechanism-section, .feature-section, .example-section, .reserve-section, .faq-section { padding: 74px 0; }
  .pain-grid, .example-grid, .reserve-grid, .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .pain-grid h2, .section-intro h2 { font-size: 36px; }
  .steps-grid { grid-template-columns: 1fr 1fr; margin-top: 40px; }
  .step { min-height: 210px; padding: 22px 17px 22px 0; border-bottom: 1px solid var(--line); }
  .step:nth-child(2n) { padding-left: 17px; border-right: 0; }
  .step:nth-child(3), .step:nth-child(4) { border-bottom: 0; }
  .step h3 { margin-top: 38px; font-size: 16px; }
  .step p { font-size: 13px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
  .feature-icon { margin-bottom: 22px; }
  .example-grid { align-items: start; }
  .reserve-copy h2 { font-size: 36px; }
  .reserve-actions { padding-left: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .back-top { width: max-content; }
}

@media (max-width: 430px) {
  .site-header .button span { display: none; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .browser-status { margin-left: 0; }
  .steps-grid { grid-template-columns: 1fr; }
  .step, .step + .step, .step:nth-child(2n) { min-height: 0; padding: 22px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
  .step h3 { margin-top: 24px; }
  .email-row { grid-template-columns: 1fr; }
  .email-row .button { width: 100%; }
}

.auth-chip { display: flex; align-items: center; gap: 10px; margin-left: auto; font-size: 13px; flex-wrap: wrap; }
.auth-email { font-weight: 600; }
.auth-plan { opacity: .65; }
.auth-signout { border: 1px solid currentColor; background: none; color: inherit; border-radius: 6px; padding: 4px 10px; cursor: pointer; font-size: 12px; }
.auth-signin { border: 1px solid currentColor; border-radius: 6px; padding: 6px 14px; text-decoration: none; }
