/* 索拉 · 微博助手 —— 站点样式（无外部依赖，纯静态） */

:root {
  --ink: #16181d;
  --muted: #6b7280;
  --line: #e6e8ec;
  --bg: #ffffff;
  --tint: #f5f6fa;
  --accent: #2f5fe0;
  --max: 760px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- 顶栏 ---------- */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .02em;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }

.site-header nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
}
.site-header nav a { color: var(--muted); }
.site-header nav a[aria-current="page"] { color: var(--ink); font-weight: 500; }

/* ---------- 主体 ---------- */

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 24px 72px;
}

.hero {
  padding: 56px 0 40px;
}

.kicker {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0 0 18px;
  font-size: 34px;
  line-height: 1.3;
  letter-spacing: -.01em;
  font-weight: 600;
}

.lede {
  margin: 0;
  font-size: 17px;
  color: #3b3f47;
}

h2 {
  margin: 48px 0 14px;
  font-size: 19px;
  font-weight: 600;
}

h2 + p, h2 + ul, h2 + table { margin-top: 0; }

p { margin: 0 0 16px; }

.list {
  margin: 0 0 16px;
  padding-left: 20px;
}
.list li { margin-bottom: 8px; }

/* ---------- 事实表 ---------- */

.facts {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.facts th,
.facts td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.facts tr:last-child th,
.facts tr:last-child td { border-bottom: 0; }
.facts th {
  width: 34%;
  font-weight: 500;
  color: var(--muted);
  background: var(--tint);
}

/* ---------- 文档页 ---------- */

.doc { padding-top: 40px; }
.doc h1 { font-size: 28px; margin-bottom: 6px; }
.doc h2 { margin-top: 36px; font-size: 18px; }
.doc p, .doc li { color: #2c3039; }

/* ---------- 页脚 ---------- */

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 24px 48px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.site-footer p { margin: 0 0 4px; }
.site-footer .muted { color: #9aa1ad; }

/* ---------- 小屏 ---------- */

@media (max-width: 560px) {
  h1 { font-size: 27px; }
  .hero { padding: 36px 0 28px; }
  .site-header { padding: 18px 20px; }
  main, .site-footer { padding-left: 20px; padding-right: 20px; }
  .facts th { width: 40%; }
}
