/* 郝友圈官网 · 设计系统
   一个强调色（藏蓝）+ 灰阶中性色；系统字体栈；3 级字号；8px 间距刻度 */

:root {
  --accent: #1f3a5f;      /* 强调色：藏蓝 */
  --ink: #1c2430;         /* 正文深灰 */
  --muted: #5a6472;       /* 辅助灰 */
  --bg: #ffffff;
  --panel: #f5f7fa;
  --line: #dfe4ea;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;          /* 正文 ≥16px */
  line-height: 1.75;
}

.wrap { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* ---- 字号层级：28 / 20 / 17 / 14 ---- */
h1 { font-size: 28px; font-weight: 700; color: var(--accent); }
h2 { font-size: 20px; font-weight: 700; margin: 40px 0 16px; }
h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }

p { margin-bottom: 16px; }

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

.muted { color: var(--muted); font-size: 14px; }

/* ---- 头部 ---- */
.site-header { border-bottom: 1px solid var(--line); padding: 16px 0; }
.brand { font-size: 20px; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
nav a { margin-right: 16px; font-size: 14px; color: var(--ink); }
nav a:hover { color: var(--accent); }

/* ---- Hero：首段做成全页最醒目 ---- */
.hero { padding: 48px 0 8px; }
.hero h1 { margin-bottom: 16px; }
.lead { font-size: 20px; font-weight: 700; line-height: 1.6; margin-bottom: 24px; }

.stats { display: flex; gap: 32px; margin: 24px 0 16px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 28px; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 14px; color: var(--muted); }

/* ---- 卡片：宽度一致、间距一致、圆角一致 ---- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-bottom: 24px; }
.card {
  background: var(--panel);
  border-radius: 12px;
  padding: 24px;
}
.card h3 { color: var(--accent); }

/* ---- 面板块 ---- */
.panel {
  background: var(--panel);
  border-radius: 12px;
  padding: 24px;
  margin: 32px 0;
}
.panel h2 { margin-top: 0; }

/* ---- 页脚 ---- */
.site-footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 24px 0; }
.site-footer p { margin-bottom: 8px; font-size: 14px; }

/* ---- 面包屑 ---- */
.crumb { font-size: 14px; color: var(--muted); padding: 16px 0 0; }

/* ---- 图片与图集 ---- */
img { max-width: 100%; }
.figure-wide { margin: 24px 0 32px; }
.figure-wide img { width: 100%; height: auto; border-radius: 12px; display: block; }
figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; line-height: 1.6; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: start;
  margin: 24px 0 32px;
}
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: auto; border-radius: 12px; display: block; background: var(--panel); }

/* ---- 事实清单 ---- */
.fact-list { list-style: none; }
.fact-list li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.fact-list li:last-child { border-bottom: none; }
.fact-list strong { display: inline-block; min-width: 84px; color: var(--accent); }

/* ---- 响应式：375px 无横向滚动 ---- */
@media (max-width: 768px) {
  body { font-size: 16px; }
  .hero { padding-top: 32px; }
  .stats { gap: 16px; }
  nav a { display: inline-block; margin-bottom: 8px; }
  .gallery { grid-template-columns: 1fr; gap: 16px; }
  .fact-list strong { min-width: 72px; }
}
