/* 刘磊聊GEO · 文章页样式
   独立于 styles.css，避免影响首页。深色为默认，与首页一致。 */

:root {
  --bg: #101313;
  --surface: #171b1a;
  --surface-2: #1d2321;
  --line: #262c2a;
  --text: #eef2ec;
  --text-soft: #b9c4bd;
  --muted: #8d9a92;
  --lime: #c4ff4d;
  --maxw: 720px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--lime); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 顶栏 ---------- */
.topbar {
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
  background: rgba(16, 19, 19, .88);
  backdrop-filter: saturate(160%) blur(12px);
}
.topbar-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); font-size: 15px; font-weight: 600; letter-spacing: .02em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--lime); color: #10170f; font-size: 14px; font-weight: 700;
}
.brand-accent { color: var(--lime); }
.topbar-link { font-size: 14px; color: var(--muted); }
.topbar-link:hover { color: var(--lime); text-decoration: none; }

/* ---------- 文章头 ---------- */
article { padding: 56px 0 24px; }

.art-type {
  display: inline-block; margin-bottom: 18px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(196, 255, 77, .12);
  border: 1px solid rgba(196, 255, 77, .3);
  color: var(--lime); font-size: 12.5px; font-weight: 600; letter-spacing: .04em;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 4.6vw, 42px);
  line-height: 1.2; letter-spacing: -.035em; font-weight: 700;
  text-wrap: balance;
}

.art-meta {
  margin-top: 22px; padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  color: var(--muted); font-size: 14px;
}
.art-meta .dot { color: #3a423e; }

/* ---------- 正文 ---------- */
.body { padding-top: 12px; }

.body p { margin: 20px 0; color: var(--text-soft); }
.body p.lead {
  margin-top: 30px; font-size: 19px; line-height: 1.75;
  color: var(--text); font-weight: 500;
}
.body strong { color: var(--text); font-weight: 600; }
.body em { font-style: normal; color: var(--lime); }

h2 {
  margin: 52px 0 0;
  font-size: clamp(21px, 2.6vw, 26px);
  line-height: 1.35; letter-spacing: -.025em; font-weight: 700;
  text-wrap: balance;
}
h2::before {
  content: ""; display: block;
  width: 34px; height: 3px; border-radius: 2px;
  background: var(--lime); margin-bottom: 18px;
}

h3 { margin: 34px 0 0; font-size: 18.5px; font-weight: 600; letter-spacing: -.015em; }

ul, ol { margin: 20px 0; padding-left: 0; list-style: none; }
li {
  position: relative; padding-left: 26px; margin: 12px 0;
  color: var(--text-soft);
}
li::before {
  content: ""; position: absolute; left: 6px; top: 13px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--lime);
}
ol { counter-reset: n; }
ol li { padding-left: 34px; }
ol li::before {
  content: counter(n); counter-increment: n;
  left: 0; top: 0; width: auto; height: auto; border-radius: 0;
  background: none; color: var(--lime); font-weight: 700; font-size: 15px;
}

/* 要点框 */
.callout {
  margin: 30px 0; padding: 22px 24px;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--lime); border-radius: 12px;
}
.callout p { margin: 0; color: var(--text-soft); font-size: 16px; }
.callout p + p { margin-top: 12px; }
.callout-title {
  display: block; margin-bottom: 10px;
  color: var(--lime); font-size: 13px; font-weight: 700; letter-spacing: .05em;
}

/* 示意数据标注 */
.note-illus {
  margin: 14px 0 0; font-size: 13.5px; color: var(--muted);
}
.note-illus::before { content: "※ "; }

/* 自查清单 */
.checklist {
  margin: 26px 0; padding: 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
}
.checklist h3 { margin: 0 0 6px; font-size: 16px; }
.checklist > p { margin: 0 0 16px; font-size: 14.5px; color: var(--muted); }
.checklist ol li { margin: 14px 0; }
.checklist ol li strong { display: block; color: var(--text); font-weight: 600; }
.checklist ol li span { font-size: 15px; color: var(--muted); }

/* ---------- 文末 ---------- */
.art-foot {
  margin-top: 60px; padding-top: 28px; border-top: 1px solid var(--line);
  font-size: 15px; color: var(--muted);
}

.cta {
  margin: 44px 0 0; padding: 30px 28px;
  background: linear-gradient(150deg, #1b2320, #141a18);
  border: 1px solid var(--line); border-radius: 18px;
}
.cta h3 { margin: 0 0 10px; font-size: 20px; letter-spacing: -.02em; }
.cta p { margin: 0 0 20px; font-size: 15.5px; color: var(--text-soft); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px;
  font-size: 15px; font-weight: 600; transition: transform .2s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--lime); color: #10170f; }
.btn-ghost { border: 1px solid var(--line); color: var(--text); background: var(--surface-2); }

/* ---------- 相关阅读 ---------- */
.related { margin-top: 56px; }
.related-title {
  font-size: 13px; font-weight: 700; letter-spacing: .06em;
  color: var(--muted); margin-bottom: 16px;
}
.related-list { display: grid; gap: 10px; }
.related-item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--text);
  font-size: 15.5px; font-weight: 500; line-height: 1.5;
  transition: border-color .2s ease, transform .2s ease;
}
.related-item:hover { border-color: rgba(196,255,77,.45); text-decoration: none; transform: translateX(2px); }
.related-item span { color: var(--lime); flex: none; }

/* ---------- 页脚 ---------- */
footer {
  margin-top: 72px; padding: 34px 0 56px;
  border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}
footer .foot-row { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; justify-content: space-between; }

@media (max-width: 600px) {
  body { font-size: 16.5px; }
  .wrap { padding: 0 20px; }
  .topbar-inner { padding: 12px 20px; }
  article { padding: 40px 0 20px; }
  .cta { padding: 26px 22px; }
  h2 { margin-top: 44px; }
}
