/* ============================================================
   出海罗盘 · 样式
   ============================================================ */

:root {
  --bg: #080d16;
  --bg-2: #0b1220;
  --surface: #111b2c;
  --surface-2: #16223a;
  --surface-3: #1c2a44;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e9eff8;
  --text-2: #b6c4d8;
  --muted: #7d8ea8;
  --primary: #2dd4bf;
  --primary-2: #14b8a6;
  --primary-glow: rgba(45, 212, 191, 0.18);
  --amber: #f5b544;
  --danger: #f87171;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --mono: "SF Mono", "Cascadia Code", Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.hidden { display: none !important; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.wrap.narrow { max-width: 720px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(8, 13, 22, 0.82);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.3px;
}
.brand-mark { width: 22px; height: 22px; fill: var(--primary); }
.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  background: none;
  border: none;
  color: var(--text-2);
  font-family: inherit;
  font-size: 14px;
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: color .18s, background .18s;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.mode-badge {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 99px;
  border: 1px solid var(--border-strong);
  color: var(--muted);
  margin-left: 8px;
  white-space: nowrap;
}
.mode-badge.live {
  color: var(--primary);
  border-color: rgba(45, 212, 191, 0.4);
  background: var(--primary-glow);
}
.mode-badge.demo {
  color: var(--amber);
  border-color: rgba(245, 181, 68, 0.35);
  background: rgba(245, 181, 68, 0.1);
}

/* ---------- Hero ---------- */
.hero {
  padding: 92px 0 76px;
  background:
    radial-gradient(900px 420px at 50% -8%, rgba(45, 212, 191, 0.14), transparent 65%),
    radial-gradient(700px 360px at 88% 12%, rgba(120, 90, 255, 0.09), transparent 60%);
  border-bottom: 1px solid var(--border);
}
.eyebrow {
  font-size: 13px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 18px;
  font-weight: 600;
}
.hero h1 {
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.22;
  margin: 0 0 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.hl {
  color: var(--primary);
  position: relative;
  white-space: nowrap;
}
.hl::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 9px;
  background: var(--primary-glow);
  border-radius: 2px;
  z-index: -1;
}
.hero-sub {
  font-size: 17px;
  color: var(--text-2);
  max-width: 660px;
  margin: 0 0 32px;
}
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.hero-note { font-size: 13px; color: var(--muted); margin: 0; }
.hero-honest {
  font-size: 13px;
  color: var(--muted);
  margin: 10px 0 0;
  padding-left: 12px;
  border-left: 2px solid rgba(245, 181, 68, 0.4);
  max-width: 560px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #04211d;
  box-shadow: 0 6px 22px rgba(45, 212, 191, 0.28);
}
.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(45, 212, 191, 0.42);
  transform: translateY(-1px);
}
.btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.btn-ghost {
  background: rgba(255,255,255,0.03);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.24); }

/* ---------- Pain grid ---------- */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 56px 0 8px;
}
.pain-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.pain-icon {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--primary-glow);
  color: var(--primary);
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}
.pain-card h3 { font-size: 15px; margin: 0 0 8px; font-weight: 700; }
.pain-card p { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.65; }

/* ---------- Section head ---------- */
.section-head { padding: 64px 0 28px; }
.section-head h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.section-head p { color: var(--muted); margin: 0; font-size: 15px; max-width: 640px; }

/* ---------- Agent grid ---------- */
.agent-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.agent-card {
  grid-column: span 2;
  background: linear-gradient(180deg, var(--surface) 0%, rgba(17,27,44,0.6) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: border-color .2s, transform .2s;
}
.agent-card:hover { border-color: rgba(45,212,191,0.35); transform: translateY(-2px); }
.agent-icon {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--surface-3);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.agent-icon svg { width: 21px; height: 21px; fill: var(--primary); }
.agent-card h3 { font-size: 17px; margin: 0 0 3px; font-weight: 700; }
.agent-role { font-size: 12px; color: var(--primary); margin: 0 0 12px; letter-spacing: .3px; }
.agent-desc { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.65; }

/* ---------- CTA band ---------- */
.cta-band {
  margin: 56px 0 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 32px 36px;
  border-radius: 18px;
  background:
    radial-gradient(600px 200px at 12% 0%, rgba(45,212,191,0.16), transparent 70%),
    var(--surface);
  border: 1px solid var(--border-strong);
}
.cta-band h3 { margin: 0 0 6px; font-size: 21px; font-weight: 800; }
.cta-band p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- Wizard ---------- */
.view#view-wizard { padding: 48px 0 80px; }
.back-link {
  background: none; border: none; padding: 0;
  color: var(--muted); font-family: inherit; font-size: 14px;
  cursor: pointer; margin-bottom: 22px; display: inline-block;
  transition: color .18s;
}
.back-link:hover { color: var(--text); }
.wizard-title { font-size: 30px; margin: 0 0 8px; font-weight: 800; letter-spacing: -.3px; }
.wizard-sub { color: var(--muted); margin: 0 0 28px; font-size: 15px; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-2);
}
.req { color: var(--primary); }
.field input, .field select {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  padding: 11px 13px;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  outline: none;
  transition: border-color .18s, box-shadow .18s;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237d8ea8' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 11px;
  padding-right: 34px;
}
.field input::placeholder { color: #56657d; }
.field input:focus, .field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.hint { font-size: 12.5px; color: var(--muted); margin: 7px 0 0; }
.form-note { font-size: 12px; color: var(--muted); text-align: center; margin: 14px 0 0; }

/* ---------- Report ---------- */
.view#view-report { padding: 40px 0 80px; }
.report-head { margin-bottom: 26px; }
.report-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.report-title-row h2 { font-size: 30px; margin: 0 0 6px; font-weight: 800; letter-spacing: -.3px; }
.report-meta { color: var(--muted); font-size: 14px; margin: 0; }

.score-box { position: relative; width: 120px; height: 120px; flex-shrink: 0; }
.score-ring { width: 120px; height: 120px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255,255,255,0.07); stroke-width: 8; }
.ring-fg {
  fill: none;
  stroke: var(--primary);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 326.7;
  stroke-dashoffset: 326.7;
  transition: stroke-dashoffset 1.1s cubic-bezier(.2,.8,.2,1), stroke .4s;
}
.score-text {
  position: absolute; inset: 0;
  display: grid; place-content: center; text-align: center;
}
.score-text span { font-size: 30px; font-weight: 800; line-height: 1; }
.score-text small { font-size: 11px; color: var(--muted); letter-spacing: 1px; margin-top: 4px; }

.report-actions { display: flex; gap: 9px; margin-top: 20px; flex-wrap: wrap; }

/* ---------- Progress ---------- */
.progress { margin: 8px 0 26px; }
.progress-bar {
  height: 5px;
  background: var(--surface-3);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 10px;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-2), var(--primary));
  border-radius: 99px;
  transition: width .45s ease;
}
.progress-text { font-size: 13px; color: var(--muted); margin: 0; }

/* ---------- Agent result ---------- */
.agent-result {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 18px;
  overflow: hidden;
  animation: rise .4s ease both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.agent-result-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
}
.result-num {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--primary-glow);
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 800;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.agent-result-head h3 { font-size: 16px; margin: 0; font-weight: 700; flex: 1; }
.result-badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 99px;
  color: var(--muted);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.result-badge.live { color: var(--primary); border-color: rgba(45,212,191,.35); }
.result-badge.demo { color: var(--amber); border-color: rgba(245,181,68,.3); }

.result-body { padding: 22px 26px 26px; }

/* ---------- Markdown rendering ---------- */
.md h2 {
  font-size: 17px;
  margin: 26px 0 12px;
  font-weight: 700;
  color: var(--text);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.md h2:first-child { margin-top: 0; }
.md h3 {
  font-size: 15px;
  margin: 20px 0 8px;
  font-weight: 700;
  color: var(--primary);
}
.md h4 { font-size: 14px; margin: 16px 0 6px; font-weight: 700; }
.md p { margin: 0 0 12px; color: var(--text-2); font-size: 14.5px; }
.md ul, .md ol { margin: 0 0 14px; padding-left: 22px; }
.md li { margin-bottom: 8px; color: var(--text-2); font-size: 14.5px; }
.md li::marker { color: var(--primary); }
.md strong { color: var(--text); font-weight: 700; }
.md em { color: var(--text-2); }
.md code {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--bg-2);
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid var(--border);
  color: var(--primary);
}
.md pre {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 18px;
  overflow-x: auto;
  margin: 0 0 14px;
}
.md pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.75;
}
.md table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 16px;
  font-size: 13.5px;
  display: block;
  overflow-x: auto;
}
.md th, .md td {
  border: 1px solid var(--border);
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
}
.md th {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}
.md td { color: var(--text-2); }
.md blockquote {
  margin: 0 0 14px;
  padding: 12px 16px;
  border-left: 3px solid var(--primary);
  background: rgba(45,212,191,0.06);
  border-radius: 0 8px 8px 0;
  color: var(--text-2);
  font-size: 14px;
}
.md blockquote p:last-child { margin-bottom: 0; }
.md hr { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

/* ---------- Report footer ---------- */
.report-footer { margin-top: 36px; }
.footer-card {
  background:
    radial-gradient(600px 220px at 10% 0%, rgba(45,212,191,0.14), transparent 70%),
    var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 34px;
}
.footer-card h3 { margin: 0 0 12px; font-size: 21px; font-weight: 800; }
.footer-card p { color: var(--muted); font-size: 14.5px; margin: 0 0 12px; max-width: 720px; }
.footer-strong { color: var(--text) !important; font-weight: 600; }
.footer-card .btn { margin-top: 8px; }
/* 留资接收 / 联系号码（config.json 的 ownerPhone，前端可点拨打） */
.footer-contact { color: var(--text) !important; margin-top: 14px !important; }
.footer-contact a,
.lead-contact a { color: var(--primary); font-weight: 700; text-decoration: none; white-space: nowrap; }
.footer-contact a:hover,
.lead-contact a:hover { text-decoration: underline; }
.lead-contact { color: var(--muted); font-size: 14px; margin-top: 10px; }

/* ---------- Site footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  background: var(--bg-2);
}
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer p { margin: 0; font-size: 13px; color: var(--muted); }
.footer-note { font-size: 12px !important; }
.footer-links { display: flex; gap: 8px 16px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--primary); text-decoration: underline; }
.consent a,
.privacy a { color: var(--primary); text-decoration: none; }
.consent a:hover,
.privacy a:hover { text-decoration: underline; }

/* ---------- 工具箱：Tabs ---------- */
.view#view-tools { padding: 48px 0 80px; }

.tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--border);
  margin: 28px 0 26px;
  overflow-x: auto;
}
.tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  padding: 11px 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: color .18s, border-color .18s;
}
.tab:hover { color: var(--text-2); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

.tab-panel { animation: rise .3s ease both; }

/* ---------- 提示条 ---------- */
.notice {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 15px 18px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-2);
  margin: 0 0 18px;
}
.notice b, .notice strong { color: var(--text); }
.notice-warn {
  border-left-color: var(--amber);
  background: rgba(245, 181, 68, 0.06);
}
.notice-info {
  border-left-color: var(--primary);
  background: rgba(45, 212, 191, 0.06);
}

/* ---------- 报价计算器 ---------- */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}
.calc-inputs {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
}
.calc-h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}
.calc-inputs .field { margin-bottom: 16px; }
.calc-inputs .field-row { gap: 12px; }
.calc-inputs .field input,
.calc-inputs .field select { font-size: 14px; padding: 9px 11px; }

.calc-out {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 24px 22px;
  position: sticky;
  top: 80px;
}
.calc-empty { color: var(--muted); font-size: 14px; margin: 0; }

.calc-block { margin-bottom: 22px; }
.calc-block:last-child { margin-bottom: 0; }
.calc-block h4 {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .8px;
  color: var(--muted);
  margin: 0 0 10px;
  text-transform: uppercase;
}
.calc-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.06);
  color: var(--text-2);
}
.calc-line:last-child { border-bottom: none; }
.calc-line span:last-child { color: var(--text); font-variant-numeric: tabular-nums; font-weight: 600; }
.calc-line.minus span:last-child { color: var(--amber); }
.calc-line.total {
  border-top: 1px solid var(--border-strong);
  border-bottom: none;
  margin-top: 6px;
  padding-top: 10px;
  font-weight: 700;
  color: var(--text);
}
.calc-line.total span:last-child { color: var(--primary); font-size: 15px; }
.calc-line.big span:last-child { font-size: 19px; color: var(--primary); }

.calc-flag {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.65;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #fca5a5;
}
.calc-flag.ok {
  background: rgba(45, 212, 191, 0.08);
  border-color: rgba(45, 212, 191, 0.28);
  color: var(--primary);
}
.calc-flag b { color: #fff; }

/* ---------- 退税表 ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 18px;
}
.tax-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.tax-table th, .tax-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.tax-table th {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
  font-size: 12.5px;
  letter-spacing: .3px;
}
.tax-table td { color: var(--text-2); }
.tax-table tr:last-child td { border-bottom: none; }
.tax-table td.rate-cell { font-weight: 700; color: var(--text); white-space: nowrap; }
.conf {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  white-space: nowrap;
}
.conf-high { background: rgba(45,212,191,.14); color: var(--primary); }
.conf-mid  { background: rgba(245,181,68,.14); color: var(--amber); }
.conf-low  { background: rgba(248,113,113,.14); color: #fca5a5; }

.hint-warn { color: var(--amber); }

/* ---------- 发信体检 ---------- */
.checklist { display: grid; gap: 8px; margin-bottom: 22px; }
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color .18s, background .18s;
}
.check-item:hover { border-color: var(--border-strong); }
.check-item.done { border-color: rgba(45,212,191,.35); background: rgba(45,212,191,.05); }
.check-item input {
  appearance: none;
  width: 18px; height: 18px;
  border: 1.5px solid var(--border-strong);
  border-radius: 5px;
  margin: 2px 0 0;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  transition: background .15s, border-color .15s;
}
.check-item input:checked {
  background: var(--primary);
  border-color: var(--primary);
}
.check-item input:checked::after {
  content: "";
  position: absolute;
  left: 5px; top: 1.5px;
  width: 5px; height: 10px;
  border: solid #04211d;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.check-item-body { flex: 1; }
.check-item-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.check-item-desc { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.check-item.done .check-item-title { color: var(--primary); }

.check-result {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  flex-wrap: wrap;
}
.check-score { font-size: 30px; font-weight: 800; line-height: 1; color: var(--primary); }
.check-score small { font-size: 13px; color: var(--muted); font-weight: 400; margin-left: 3px; }
.check-verdict { font-size: 14px; color: var(--text-2); flex: 1; min-width: 220px; }
.check-verdict.bad { color: #fca5a5; }
.check-verdict.good { color: var(--primary); }

/* ---------- 来信助手 ---------- */
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.7;
  padding: 12px 13px;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  outline: none;
  resize: vertical;
  transition: border-color .18s, box-shadow .18s;
}
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.field textarea::placeholder { color: #56657d; }

.inbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}
.inbox-in {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  position: sticky;
  top: 80px;
}
.inbox-out {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 24px 22px;
  min-height: 320px;
}
.inbox-out .md h2:first-child { margin-top: 0; }
.inbox-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}
.spinner {
  width: 16px; height: 16px;
  border: 2px solid var(--surface-3);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 模型设置 ---------- */
.settings-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  margin-bottom: 18px;
  max-width: 640px;
}
.settings-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.notice code {
  font-family: var(--mono);
  font-size: 12.5px;
  background: var(--bg-2);
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid var(--border);
  color: var(--primary);
}
.status-line { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.dot.on { background: var(--primary); box-shadow: 0 0 9px var(--primary); }
.dot.off { background: var(--danger); }

/* ---------- 来信样例 ---------- */
.sample-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.sample-tag {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--amber);
  background: rgba(245, 181, 68, .12);
  border: 1px solid rgba(245, 181, 68, .28);
  padding: 3px 9px;
  border-radius: 99px;
}
.sample-meta { font-size: 12px; color: var(--muted); }
.sample-letter {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--text-2);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  max-height: 620px;
  overflow: auto;
}

/* ---------- 页内转化条 ---------- */
.cta-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding: 22px 26px;
  border-radius: 16px;
  background:
    radial-gradient(500px 160px at 8% 0%, rgba(45, 212, 191, 0.14), transparent 70%),
    var(--surface);
  border: 1px solid var(--border-strong);
}
.cta-inline-text h4 { margin: 0 0 6px; font-size: 17px; font-weight: 800; }
.cta-inline-text p { margin: 0; font-size: 13.5px; color: var(--muted); max-width: 620px; }
.cta-bottom { margin-top: 38px; margin-bottom: 64px; }

/* ---------- 报告页留资表单 ---------- */
.footer-hint {
  background: rgba(245, 181, 68, .08);
  border: 1px solid rgba(245, 181, 68, .25);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-2) !important;
  max-width: 720px;
}
.footer-hint code {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 5px;
  color: var(--primary);
}

.lead-card {
  margin-top: 20px;
  background:
    radial-gradient(700px 240px at 90% 0%, rgba(45, 212, 191, 0.10), transparent 70%),
    var(--surface);
}
.lead-head h3 { margin: 0 0 10px; font-size: 21px; font-weight: 800; }
.lead-head p { color: var(--muted); font-size: 14px; line-height: 1.75; margin: 0 0 24px; max-width: 780px; }

.contact-row {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 10px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 10px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-2);
  cursor: pointer;
}
.consent input {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border-strong);
  border-radius: 5px;
  margin: 2px 0 0;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  transition: background .15s, border-color .15s;
}
.consent input:checked {
  background: var(--primary);
  border-color: var(--primary);
}
.consent input:checked::after {
  content: "";
  position: absolute;
  left: 5px; top: 1.5px;
  width: 5px; height: 10px;
  border: solid #04211d;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.privacy {
  margin: 0 0 18px;
  font-size: 12.5px;
  color: var(--muted);
}
.privacy summary {
  cursor: pointer;
  color: var(--text-2);
  padding: 4px 0;
  user-select: none;
}
.privacy summary:hover { color: var(--primary); }
.privacy p { margin: 6px 0 0; line-height: 1.8; }

/* 蜜罐字段：正常访客看不见 */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lead-status { min-height: 18px; margin-top: 12px; }
.lead-status.ok { color: var(--primary); font-weight: 600; font-size: 13.5px; }
.lead-status.bad { color: #fca5a5; font-size: 13.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .pain-grid { grid-template-columns: repeat(2, 1fr); }
  .agent-grid { grid-template-columns: repeat(2, 1fr); }
  .agent-card { grid-column: span 1; }
  .calc-grid { grid-template-columns: 1fr; }
  .calc-out { position: static; }
  .inbox-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 18px; }
  .pain-grid, .agent-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .hero h1 { font-size: 30px; }
  .form-card { padding: 22px 18px; }
  .agent-result-head { padding: 15px 18px; }
  .result-body { padding: 18px; }
  .report-title-row { gap: 16px; }
  .score-box { width: 92px; height: 92px; }
  .score-ring { width: 92px; height: 92px; }
  .score-text span { font-size: 24px; }
  .cta-band { padding: 24px; }
  .footer-card { padding: 24px; }
  .site-nav { gap: 0; }
  .nav-link { padding: 7px 7px; font-size: 12.5px; }
  .mode-badge { display: none; }
  .tabs { gap: 2px; }
  .tab { padding: 10px 11px; font-size: 13.5px; }
  .check-result { padding: 16px 18px; gap: 12px; }
  .contact-row { grid-template-columns: 1fr; gap: 10px; }
  .lead-head h3 { font-size: 19px; }
}
