/* =====================================================================
   r21.10 · 法律页 / 定价页样式
   令牌与主应用 src/app/globals.css 保持一致（r16 起的中性灰白 + 靛蓝体系），
   取代 r15 遗留的米色纸感 + 墨绿强调 + 砖红点缀。
   注意：这三个页面是 /legal/*.html 静态文件，不经过 Next 的 globals.css，
   所以令牌必须在这里重新声明一份，且值要逐个对齐。
   ===================================================================== */
:root {
  color-scheme: light;
  --background: #f4f5f7;
  --panel: #ffffff;
  --panel-2: #f7f8fa;
  --panel-3: #eef1f4;
  --line: #e3e7ec;
  --line-strong: #cdd3db;
  --ink: #1c1f24;
  --ink-muted: #565e69;
  --ink-subtle: #7d8794;
  --accent: #2f5fd0;
  --accent-soft: #eef2fc;
  --accent-hover: #24499f;
  --danger: #b42318;
  --ok: #06795a;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 10px 28px -14px rgba(16, 24, 40, .22);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-md: 0 10px 30px -12px rgba(16, 24, 40, .28);
  /* 兼容旧类名（--paper / --white / --muted），避免改 HTML 时漏改 */
  --paper: var(--background);
  --white: var(--panel);
  --muted: var(--ink-muted);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

/* ---------- 页头 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
}
.header-inner, .shell, .site-footer { width: min(100% - 48px, 1120px); margin-inline: auto; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 19px; text-decoration: none;
  letter-spacing: -.02em; color: var(--ink);
}
.brand-mark {
  display: grid; place-items: center; width: 28px; height: 28px;
  border: 1px solid var(--line-strong); border-radius: 9px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 13px; line-height: 1;
}
.header-links { display: flex; gap: 26px; align-items: center; font-size: 14px; font-weight: 600; }
.header-links a { text-decoration: none; color: var(--ink-muted); }
.header-links a:hover { color: var(--ink); }
.header-links a[aria-current="page"] { color: var(--accent); font-weight: 700; }

/* ---------- 文档骨架 ---------- */
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 60px; padding-block: 52px 88px; }
.sidebar { align-self: start; position: sticky; top: 92px; }
.eyebrow {
  margin: 0; color: var(--accent);
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.sidebar nav { display: grid; gap: 2px; margin-top: 20px; }
.sidebar a {
  font-size: 14px; text-decoration: none; color: var(--ink-muted);
  padding: 8px 12px; border-radius: 8px; border-left: 2px solid transparent;
}
.sidebar a:hover { color: var(--ink); background: var(--panel-2); border-left-color: var(--line-strong); }
.document { min-width: 0; }

.document-header {
  padding: 28px 30px 26px; margin-bottom: 8px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow-sm);
}
.document h1 {
  font-size: clamp(30px, 4.4vw, 46px); line-height: 1.18; letter-spacing: -.04em;
  margin: 12px 0 14px; font-weight: 800;
}
.lead { font-size: 17px; max-width: 720px; margin: 0 0 16px; color: var(--ink-muted); }
.meta { color: var(--ink-subtle); font-size: 13px; margin: 0; }
.meta a { color: var(--ink-muted); }

/* 提示块：原来是米绿 #eff2e9，现在用中性 panel-3 + 左侧强调条 */
.note {
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 10px; background: var(--panel-2);
  padding: 14px 18px; margin: 16px 0; color: var(--ink-muted); font-size: 14.5px;
}

.section {
  padding: 30px 0; border-bottom: 1px solid var(--line);
}
.section:last-of-type { border-bottom: 0; }
.section h2 { font-size: 21px; letter-spacing: -.02em; line-height: 1.35; margin: 0 0 12px; font-weight: 750; }
.section h3 { font-size: 16px; margin: 18px 0 6px; font-weight: 700; }
.section p, .section ul { margin: 10px 0; color: var(--ink-muted); }
.section strong { color: var(--ink); font-weight: 650; }
.section li + li { margin-top: 7px; }
.section ul { padding-left: 1.3em; }
.section li::marker { color: var(--line-strong); }

/* ---------- 表格 ---------- */
.table-wrap {
  overflow-x: auto; margin: 18px 0;
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
}
table { border-collapse: collapse; width: 100%; font-size: 14px; min-width: 520px; }
th, td { border-bottom: 1px solid var(--line); padding: 12px 16px; text-align: left; vertical-align: top; }
th { background: var(--panel-2); color: var(--ink); font-weight: 700; font-size: 13px; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--panel-2); }

/* 联系卡：原来墨绿底白字，现在深墨底（--ink）配强调色链接 */
.contact-box {
  margin-top: 32px; padding: 24px 26px; border-radius: 14px;
  background: var(--ink); color: #fff;
}
.contact-box strong { display: block; font-size: 16px; margin-bottom: 6px; }
.contact-box p { color: #c8ced6; margin: 0 0 10px; font-size: 14.5px; }
.contact-box a { color: #9fbcf5; font-weight: 700; }

/* ---------- 页脚 ---------- */
.site-footer {
  display: flex; justify-content: space-between; gap: 18px;
  padding-block: 22px 40px; border-top: 1px solid var(--line);
  color: var(--ink-subtle); font-size: 13px;
}
.site-footer p { margin: 0; }
.site-footer a { margin-left: 16px; color: var(--ink-muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 800px) {
  .shell { display: block; padding-block: 30px 60px; }
  .sidebar { position: static; margin-bottom: 28px; }
  .sidebar nav { display: flex; overflow: auto; gap: 8px; margin-top: 10px; padding-bottom: 4px; }
  .sidebar a { white-space: nowrap; border: 0; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); padding: 7px 14px; }
  .document h1 { font-size: 32px; }
  .document-header { padding: 22px 20px; }
  .lead { font-size: 15.5px; }
  .header-inner, .shell, .site-footer { width: min(100% - 32px, 1120px); }
}
@media (max-width: 520px) {
  .header-inner { min-height: 60px; }
  .brand { font-size: 17px; }
  .header-links { gap: 14px; font-size: 13px; }
  .header-links a:first-child { display: none; }
  .section h2 { font-size: 19px; }
  .site-footer { display: block; }
  .site-footer a:first-child { margin-left: 0; }
}

/* =====================================================================
   定价页（/pricing）—— 静态营销页，卡片密度比法律页高
   ===================================================================== */
.pricing-shell { width: min(100% - 48px, 1120px); margin: 0 auto; padding: 56px 0 88px; }
.pricing-shell h1 {
  font-size: clamp(30px, 4.4vw, 46px); line-height: 1.18; letter-spacing: -.04em;
  margin: 12px 0 14px; font-weight: 800; max-width: 780px;
}
.pricing-intro { max-width: 720px; font-size: 16px; color: var(--ink-muted); margin: 0 0 28px; }
.pricing-shell > h2 { font-size: 18px; font-weight: 700; margin: 40px 0 0; }

.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 18px 0 8px; }
.price-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 24px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; min-width: 0;
}
.price-card.featured { border-color: var(--accent); box-shadow: var(--shadow); }
.price-card .label { font-size: 11.5px; font-weight: 700; color: var(--accent); letter-spacing: .1em; text-transform: uppercase; }
.price-card h2 { font-size: 22px; margin: 9px 0 0; font-weight: 750; letter-spacing: -.02em; }
.price-card .price { font-size: 34px; font-weight: 800; letter-spacing: -.05em; line-height: 1.25; margin: 14px 0 1px; }
.price-card .price small { font-size: 14px; font-weight: 600; color: var(--ink-subtle); letter-spacing: 0; }
.price-card p { font-size: 13.5px; color: var(--ink-muted); margin: 8px 0; }
.price-card ul { padding-left: 1.15em; font-size: 13px; color: var(--ink-muted); line-height: 1.8; margin: 14px 0 20px; }
.price-card li::marker { color: var(--line-strong); }
/* 直系 <a> 是 CTA 按钮；<p> 里的 <a> 是次级文字链接（规则 / 政策跳转）*/
.price-card > a {
  display: block; margin-top: auto; border-radius: 10px; padding: 10px 16px;
  background: var(--accent); color: #fff; text-align: center;
  text-decoration: none; font-size: 13.5px; font-weight: 700;
}
.price-card > a:hover { background: var(--accent-hover); color: #fff; }
.price-card p a { color: var(--accent); font-size: 13px; }
/* 定价页顶部那张「月付不限次」是 .pricing-shell 的直系子元素，不在 .price-grid 里 */
.pricing-shell > .price-card { margin: 26px 0 4px; padding: 28px; }
.pricing-shell > .price-card .price { font-size: 38px; }

.pricing-details { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.pricing-details section { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.pricing-details h2 { font-size: 18px; margin: 0 0 8px; font-weight: 700; }
.pricing-details p, .pricing-details li { font-size: 13.5px; color: var(--ink-muted); }

@media (max-width: 800px) {
  .price-grid { grid-template-columns: 1fr; }
  .pricing-details { grid-template-columns: 1fr; }
  .pricing-shell { width: min(100% - 32px, 1120px); padding: 34px 0 60px; }
}
