/*
 * 静态内容页样式（SEO 获客层）。
 * 与主站 styles.css 品牌变量保持一致（#2563eb 主色），
 * 但完全独立、无 JS 依赖、移动端优先；构建时复制到 web/public/assets/seo.css。
 */

:root {
  --bg: #f4f7fb;
  --panel: #ffffff;
  --ink: #1e293b;
  --muted: #6d778a;
  --line: rgba(130, 149, 176, 0.24);
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --radius: 8px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", sans-serif;
  line-height: 1.7;
}

.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 16px;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); font-size: 0.9em; }

/* 头部 */
.site-header {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand { display: inline-flex; align-items: baseline; gap: 4px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-cn-primary { color: var(--primary); font-weight: 700; font-size: 18px; }
.brand-cn-secondary { font-weight: 700; font-size: 18px; }
.brand-domain { color: var(--muted); font-size: 12px; margin-left: 4px; }
.site-nav { display: flex; gap: 16px; margin-left: 8px; flex: 1; }
.site-nav a { color: var(--ink); font-size: 15px; }

/* 按钮 */
.cta {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  white-space: nowrap;
}
.cta:hover { background: var(--primary-dark); text-decoration: none; }
.cta-small { padding: 6px 14px; font-size: 14px; }
.cta-large { padding: 12px 24px; font-size: 16px; }

/* 面包屑 */
.breadcrumb {
  padding-top: 14px;
  font-size: 14px;
  color: var(--muted);
}
.crumb-sep { margin: 0 6px; }

/* 正文 */
.content { padding-top: 8px; padding-bottom: 24px; }
.entity-page h1 {
  font-size: 26px;
  line-height: 1.4;
  margin: 12px 0 16px;
}
.entity-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 0 0 20px;
}
.entity-facts div { display: flex; gap: 8px; }
.entity-facts dt { color: var(--muted); }
.entity-facts dd { margin: 0; font-weight: 600; }
.entity-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 16px;
}
.entity-section h2 {
  font-size: 19px;
  margin: 0 0 10px;
  padding-left: 10px;
  border-left: 3px solid var(--primary);
}
.entity-section p { margin: 8px 0; }
.entity-list { margin: 8px 0; padding-left: 20px; }
.entity-list li { margin: 6px 0; }

/* 一分一段表 */
.score-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.score-table th,
.score-table td {
  padding: 6px 10px;
  text-align: right;
  border-bottom: 1px solid var(--line);
}
.score-table th:first-child,
.score-table td:first-child { text-align: center; font-weight: 600; }
.score-table thead th {
  position: sticky;
  top: 56px;
  background: var(--panel);
}
.index-grid {
  list-style: none;
  padding-left: 0;
  columns: 3;
  column-gap: 24px;
}
.index-grid li { break-inside: avoid; }
@media (max-width: 640px) {
  .index-grid { columns: 2; }
}

/* 注册引导横幅 */
.cta-banner {
  background: linear-gradient(120deg, #1d4ed8, #2563eb 55%, #0ea5e9);
  color: #fff;
  margin-top: 8px;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 26px;
  padding-bottom: 26px;
}
.cta-text { display: flex; flex-direction: column; gap: 4px; }
.cta-text strong { font-size: 19px; }
.cta-text span { opacity: 0.9; font-size: 14px; }
.cta-banner .cta { background: #fff; color: var(--primary-dark); }
.cta-banner .cta:hover { background: #eef4ff; }

/* 页脚 */
.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  padding: 20px 0 32px;
}
.site-footer p { margin: 6px 0; }
.year-note { color: var(--ink); }

/* 移动端 */
@media (max-width: 640px) {
  .site-nav { display: none; }
  .entity-page h1 { font-size: 22px; }
  .cta-inner { flex-direction: column; text-align: center; }
}
