/* ============================================================
   鼠鼠求职官方文档站 · 共用样式（视觉改版 v2）
   纯静态、无框架、无 JS
   头部像素级对齐现网：72px sticky 白底 header + logo.png
   导航 hover：#ff8135 加粗 + 品牌渐变下划线（照抄现网）
   ============================================================ */

:root {
  --brand: #FF8135;
  --brand-hover: #ff892b;
  --brand-50: #fff7f0;
  --brand-100: #fff3e9;
  --border: #f2f3f5;
  --border-strong: #d9d9d9;
  --text: #1f2328;
  --text-dark: #19191a;
  --text-secondary: #666;
  --text-muted: #999;
  --bg-muted: #f6f8fa;
  --radius: 10px;
  --content-w: 960px;
  --header-w: 1330px;
  --font: "PingFang SC", -apple-system, "Segoe UI", "Noto Sans SC", sans-serif;
  /* 现网导航下划线品牌渐变，勿改 */
  --nav-gradient: linear-gradient(90deg, #765bff 1%, #bd6bf3 53%, #ff7ae8);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text);
  background: #fff;
}

::selection { background: var(--brand-100); }

img { max-width: 100%; }

a {
  color: var(--brand);
  text-decoration: none;
}
a:hover { color: var(--brand-hover); text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 2px; }

/* 正文内容容器 */
.container {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* 头部容器（与现网一致 1330px） */
.header-container {
  max-width: var(--header-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 顶部主导航（像素级对齐现网） ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand img {
  display: block;
  height: 42px;
  width: auto;
}
.main-nav { margin-left: 58px; }
.main-nav ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav a {
  position: relative;
  display: inline-block;
  font-size: 16px;
  line-height: 36px;
  color: var(--text-dark);
  white-space: nowrap;
}
.main-nav a:hover {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}
.main-nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 3px;
  border-radius: 2px;
  background: var(--nav-gradient);
}

/* ---------- 文档站子导航（轻量版） ---------- */
.docs-subnav {
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.docs-subnav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 6px;
  margin: 0;
  padding: 10px 0;
  list-style: none;
}
.docs-subnav a {
  display: inline-block;
  padding: 4px 10px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  border-radius: 6px;
}
.docs-subnav a:hover {
  color: var(--brand-hover);
  background: var(--brand-50);
  text-decoration: none;
}
.docs-subnav a[aria-current="page"] {
  color: var(--brand);
  font-weight: 600;
  background: var(--brand-50);
}

/* ---------- 面包屑与页头 ---------- */
.breadcrumb {
  margin: 30px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--border-strong);
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--brand-hover); }

.page-meta {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- 正文排版 ---------- */
.page-main { padding-bottom: 80px; }

h1 {
  margin: 18px 0 8px;
  font-size: 30px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--text-dark);
}
.page-subtitle {
  margin: 0 0 34px;
  font-size: 16px;
  color: var(--text-secondary);
}

section { margin: 52px 0; }

h2 {
  margin: 0 0 18px;
  padding-left: 13px;
  border-left: 4px solid var(--brand);
  font-size: 21px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--text-dark);
}
h3 {
  margin: 30px 0 12px;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--text-dark);
}
p { margin: 12px 0; }

ul, ol { padding-left: 1.5em; }
li { margin: 6px 0; }

strong { font-weight: 600; }

/* ---------- 直接答案块（GEO 核心组件） ---------- */
.answer-block {
  margin: 16px 0 20px;
  padding: 18px 22px;
  background: var(--brand-50);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 15.5px;
  line-height: 1.85;
}
.answer-block p { margin: 0; }
.answer-block p + p { margin-top: 10px; }
.answer-block .tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 1px 10px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--brand);
  background: #fff;
  border: 1px solid var(--brand);
  border-radius: 999px;
}

/* ---------- 事实表 ---------- */
.facts-table {
  width: 100%;
  margin: 16px 0 8px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14.5px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.facts-table th,
.facts-table td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  line-height: 1.75;
  border-bottom: 1px solid var(--border);
}
.facts-table tr:last-child th,
.facts-table tr:last-child td { border-bottom: none; }
.facts-table thead th {
  background: var(--brand-100);
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
}
.facts-table tbody th {
  width: 150px;
  background: var(--brand-50);
  font-weight: 600;
  color: var(--text-dark);
}
.facts-table tbody tr:hover td { background: #fffbf7; }

/* ---------- 功能入口卡 ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 20px 0 8px;
}
.card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  border-color: var(--brand);
  box-shadow: 0 8px 24px rgba(25, 25, 26, 0.08);
}
.card h3 {
  margin: 0 0 10px;
  font-size: 17px;
}
.card h3 a { color: var(--text-dark); }
.card h3 a:hover { color: var(--brand-hover); text-decoration: none; }
.card p {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}
.card .card-link {
  margin-top: auto;
  font-size: 13.5px;
  font-weight: 600;
}
.card .card-link::after { content: " →"; }

/* ---------- 信任 / 溯源说明 ---------- */
.trust-note {
  padding: 20px 24px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14.5px;
}
.trust-note p { margin: 8px 0; }
.trust-note p:first-child { margin-top: 0; }
.trust-note p:last-child { margin-bottom: 0; }
.source-tag {
  color: var(--text-muted);
  font-size: 13px;
}

/* ---------- FAQ ---------- */
.faq-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }
.faq-item h3 {
  margin: 0 0 8px;
  font-size: 15.5px;
  font-weight: 600;
}
.faq-item h3::before {
  content: "Q";
  display: inline-block;
  margin-right: 10px;
  color: var(--brand);
  font-weight: 700;
}
.faq-item p {
  margin: 0;
  padding-left: 26px;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ---------- 本页目录 TOC ---------- */
.toc {
  margin: 26px 0 4px;
  padding: 14px 20px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13.5px;
  line-height: 1.7;
}
.toc-title {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
}
.toc ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}
.toc li { margin: 0; counter-increment: toc; }
.toc li::before {
  content: counter(toc) ".";
  margin-right: 4px;
  color: var(--text-muted);
}
.toc a { color: var(--text-secondary); }
.toc a:hover { color: var(--brand-hover); }

/* ---------- 步骤列表（使用指南 / 溯源流程） ---------- */
.steps { padding-left: 0; list-style: none; counter-reset: step; }
.steps li {
  position: relative;
  margin: 10px 0;
  padding-left: 38px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-50);
  border: 1px solid var(--brand);
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  line-height: 22px;
  text-align: center;
}

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: 24px;
  padding: 40px 0 48px;
  background: var(--bg-muted);
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 18px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.footer-nav a { color: var(--text-secondary); }
.footer-nav a:hover { color: var(--brand); }
.footer-legal { margin: 4px 0; line-height: 2; }
.footer-legal .sep { margin: 0 8px; color: var(--border-strong); }
.footer-legal a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-legal a:hover { color: var(--brand); }

/* ---------- 响应式 ---------- */
@media (max-width: 720px) {
  body { font-size: 15px; }
  .header-container, .container { padding: 0 16px; }
  .header-inner {
    height: auto;
    flex-wrap: wrap;
    padding: 12px 0 8px;
  }
  .brand img { height: 36px; }
  .main-nav {
    margin-left: 0;
    width: 100%;
    margin-top: 6px;
  }
  .main-nav ul { gap: 0 18px; }
  .main-nav a { font-size: 14px; line-height: 32px; }
  h1 { font-size: 24px; }
  h2 { font-size: 18px; }
  section { margin: 38px 0; }
  .card-grid { grid-template-columns: 1fr; }
  .facts-table { font-size: 13.5px; }
  .facts-table tbody th { width: 106px; }
  .facts-table th, .facts-table td { padding: 10px 12px; }
}
