/* 语核AI 官网
   严格对齐 ChatGPT Codex 落地页的设计规格（实测计算样式）：
   画布 #fcfcfc / 文字 #0d0d0d / 次要 #5d5d5d
   标题 weight 500 + 字距 -0.03em（Hero 64px、区块 48px、次级 40px）
   按钮 纯黑 #0d0d0d · pill · 高 44px · 14px/500
   卡片 圆角 6px · 1px rgba(0,0,0,0.05) 发丝线 · 无阴影
   版心 1152px / 内边距 24px；区块垂直节奏 128px
   字体：Codex 用 OpenAI Sans（非公开字体），此处以 Inter + Noto Sans SC 最接近替代
*/

:root {
  --bg: #fcfcfc;
  --surface: #ffffff;
  --text: #0d0d0d;
  --muted: #5d5d5d;
  --line: rgba(0, 0, 0, 0.05);
  --line-hover: rgba(0, 0, 0, 0.12);
  --accent: #0d9488; /* 品牌青绿：仅用于数据可视化元素 */
  --r-card: 6px;
  --r-pill: 9999px;
  --max: 1152px;
  --pad: 24px;
  --section-y: 128px;
  --header-h: 64px;
  --font: "Inter", "Noto Sans SC", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

body.site {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
::selection { background: rgba(13, 148, 136, 0.16); }

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s ease, border-color 0.15s ease, color 0.15s ease,
    background-color 0.15s ease;
}

.btn-dark { background: #0d0d0d; color: #fff; }
.btn-dark:hover { opacity: 0.86; }

.btn-quiet {
  background: transparent;
  color: var(--text);
  border-color: var(--line-hover);
  padding: 0 16px;
}
.btn-quiet:hover { border-color: var(--text); }

.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); }

/* ---------- 顶栏 ---------- */
.header {
  height: var(--header-h);
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(252, 252, 252, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand-img { height: 34px; width: auto; object-fit: contain; object-position: left center; }

.nav { display: none; align-items: center; gap: 28px; font-size: 14px; color: var(--muted); }
.nav a { transition: color 0.15s; }
.nav a:hover { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 8px; }

@media (min-width: 900px) { .nav { display: flex; } }
@media (max-width: 719px) { .nav-only { display: none !important; } }

/* ---------- 排版尺度（对齐 Codex） ---------- */
.mkt-h1 {
  margin: 0 auto;
  max-width: 896px;
  font-size: clamp(40px, 6.4vw, 64px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-align: center;
}

.mkt-h2 {
  margin: 0 auto 20px;
  max-width: 896px;
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.03em;
  text-align: center;
}

.mkt-h2.left { text-align: left; margin-inline: 0; }

.lead {
  margin: 28px auto 0;
  max-width: 896px;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.65;
  color: var(--muted);
  text-align: center;
}

.lead-sm { margin: 16px 0 0; font-size: 17px; color: var(--muted); text-align: left; }
.section-sub { margin: 0 auto 72px; max-width: 720px; font-size: 17px; color: var(--muted); text-align: center; }
.note { margin: 28px 0 0; font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 0; }

.hero-inner { display: flex; flex-direction: column; align-items: center; }

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.actions-left { justify-content: flex-start; margin-top: 40px; }

.hero-visual { width: 100%; max-width: 1040px; margin-top: 80px; }

/* ---------- 报告卡 ---------- */
.report-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}

.report-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.report-card-title { display: flex; align-items: center; gap: 12px; }
.report-card-title strong { display: block; font-size: 15px; font-weight: 500; }
.report-card-title small { display: block; font-size: 13px; color: var(--muted); }

.report-avatar { width: 36px; height: 36px; border-radius: 50%; background: #f2f2f2; }

.report-badge {
  flex-shrink: 0;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(13, 148, 136, 0.3);
  font-size: 12px;
  font-weight: 500;
  color: #0f766e;
}

.report-card-body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  padding: 24px 20px;
  align-items: center;
}

@media (max-width: 560px) {
  .report-card-body { grid-template-columns: 1fr; justify-items: center; gap: 28px; }
}

.score-ring {
  position: relative;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--score) * 360deg), #f0f0f0 0);
  display: flex;
  align-items: center;
  justify-content: center;
}

.score-ring::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #fff;
}

.score-num {
  position: relative;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.score-unit { font-size: 14px; color: var(--muted); margin-left: 2px; }
.score-label { margin: 12px 0 0; text-align: center; font-size: 12px; color: var(--muted); }

.report-metrics { display: flex; flex-direction: column; gap: 20px; min-width: 0; width: 100%; }
.metric-name { display: block; margin-bottom: 10px; font-size: 12px; font-weight: 500; letter-spacing: 0.06em; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-hover);
  color: var(--muted);
}
.chip.ok { color: #0f766e; border-color: rgba(13, 148, 136, 0.35); }

.bar-row {
  display: grid;
  grid-template-columns: 40px 1fr 44px;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}
.bar-row + .bar-row { margin-top: 8px; }
.bar-row b { font-weight: 500; color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }

.bar { height: 4px; border-radius: var(--r-pill); background: #f0f0f0; overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--accent); }

.report-card-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
}

.trend { width: 108px; flex-shrink: 0; color: var(--accent); }
.report-card-foot p { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- 信任行 ---------- */
.trust-strip {
  margin-top: 96px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}

.trust-strip p {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

/* ---------- 区块 ---------- */
.section { padding: var(--section-y) 0; }

@media (max-width: 767px) {
  :root { --section-y: 80px; }
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 72px;
}

@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  transition: border-color 0.15s ease;
}

.card:hover { border-color: var(--line-hover); }

.card h3 { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.card p { margin: 12px 0 0; font-size: 16px; line-height: 1.65; color: var(--muted); }

/* ---------- 流程 ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 72px 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.step { padding-top: 20px; border-top: 1px solid var(--line-hover); }

.step-num {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.step h3 { margin: 12px 0 0; font-size: 18px; font-weight: 500; }
.step p { margin: 8px 0 0; font-size: 15px; color: var(--muted); }

/* ---------- 安全分栏 ---------- */
.split { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }

@media (min-width: 900px) {
  .split { grid-template-columns: 0.85fr 1.15fr; gap: 80px; }
}

.check-list { margin: 0; padding: 0; list-style: none; }

.check-list li {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.check-list li:first-child { border-top: 0; padding-top: 0; }

.check { flex-shrink: 0; font-size: 13px; font-weight: 500; color: #0f766e; }
.check-list strong { display: block; font-size: 16px; font-weight: 500; }
.check-list p { margin: 4px 0 0; font-size: 15px; color: var(--muted); }

/* ---------- 结尾 ---------- */
.closing { padding: 0 0 var(--section-y); }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--line); background: var(--surface); }

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 56px 0 40px;
}

@media (min-width: 900px) {
  .footer-inner { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 80px; }
}

.footer-logo { height: 30px; width: auto; object-fit: contain; }
.footer-brand p { margin: 16px 0 0; font-size: 13px; color: var(--muted); max-width: 260px; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; color: var(--muted); }
.footer-nav a:hover { color: var(--text); }

@media (min-width: 900px) {
  .footer-nav { flex-direction: column; gap: 12px; }
}

.footer-bottom { padding: 20px 0 32px; border-top: 1px solid var(--line); }
.footer-bottom p { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- 入场（轻微上移淡入） ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

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