/* 明健读书会 · 公共样式 */
:root {
  --ink: #1c3029;
  --ink-2: #3c544a;
  --muted: #7b8b83;
  --green: #14382c;
  --green-2: #2b6b52;
  --gold: #b3894b;
  --gold-2: #d9b26a;
  --paper: #f7f4ed;
  --paper-2: #fffdf8;
  --line: #e3ddd0;
  --shadow: 0 12px 40px rgba(20, 56, 44, 0.08);
  --serif: "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif CJK SC", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font-family: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; margin: 0; }

.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

/* ---------- 页头 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 237, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 78px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 48px; height: 48px; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--serif); font-size: 21px; letter-spacing: 2px; color: var(--green); }
.brand-sub { font-size: 11px; letter-spacing: 1.5px; color: var(--gold); margin-top: 3px; }
.main-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.main-nav a {
  padding: 9px 16px; border-radius: 6px; font-size: 15px; color: var(--ink-2);
  transition: all .2s ease; white-space: nowrap;
}
.main-nav a:hover { color: var(--green); background: rgba(43,107,82,.08); }
.main-nav a.active { color: #fff; background: var(--green); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 6px;
  width: 42px; height: 38px; cursor: pointer; color: var(--green); font-size: 20px;
}

/* ---------- 通用区块标题 ---------- */
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.page-hero {
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: #fff; padding: 56px 0 52px; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; right: -80px; top: -100px;
  width: 360px; height: 360px; border: 1px solid rgba(217,178,106,.35); border-radius: 50%;
}
.page-hero::before {
  content: ''; position: absolute; right: 20px; top: -30px;
  width: 220px; height: 220px; border: 1px solid rgba(217,178,106,.25); border-radius: 50%;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(28px, 4vw, 42px); letter-spacing: 5px; }
.page-hero p { color: rgba(255,255,255,.8); margin: 12px 0 0; font-size: 16px; }
.crumb { font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 14px; }
.crumb a:hover { color: var(--gold-2); }

.eyebrow { color: var(--gold); font-size: 13px; letter-spacing: 3px; font-weight: 600; }
.title-section { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: 3px; color: var(--green); margin: 8px 0 18px; }
.divider { width: 56px; height: 3px; background: var(--gold); border-radius: 2px; margin: 16px 0 24px; }

/* ---------- 卡片与按钮 ---------- */
.card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 6px; border: 1px solid var(--green);
  background: var(--green); color: #fff; font-size: 15px; cursor: pointer;
  transition: all .2s ease;
}
.btn:hover { background: var(--green-2); border-color: var(--green-2); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--green); }
.btn-ghost:hover { background: var(--green); color: #fff; }
.btn-gold { background: var(--gold); border-color: var(--gold); }
.btn-gold:hover { background: #9c7440; border-color: #9c7440; }

/* ---------- 富文本正文 ---------- */
.rich-text { color: var(--ink-2); font-size: 16px; line-height: 1.95; }
.rich-text h2 { font-size: 26px; color: var(--green); margin: 28px 0 12px; letter-spacing: 2px; }
.rich-text h3 { font-size: 21px; color: var(--green); margin: 24px 0 10px; letter-spacing: 1px; }
.rich-text p { margin: 0 0 16px; }
.rich-text ul, .rich-text ol { margin: 0 0 18px; padding-left: 24px; }
.rich-text li { margin: 6px 0; }
.rich-text strong { color: var(--green); }
.rich-text img { max-width: 100%; height: auto; border-radius: 8px; margin: 14px 0; }
.rich-text video { max-width: 100%; border-radius: 8px; margin: 14px 0; }
.rich-text a { color: var(--green-2); text-decoration: underline; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--green); color: rgba(255,255,255,.78); padding: 52px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 200px; gap: 40px; padding-bottom: 40px; }
.footer-grid h4 { color: var(--gold-2); font-size: 16px; letter-spacing: 2px; margin-bottom: 16px; }
.footer-grid p, .footer-grid a { font-size: 14px; display: block; margin: 7px 0; }
.footer-grid a:hover { color: var(--gold-2); }
.footer-qr { width: 130px; height: 130px; background: #fff; border-radius: 8px; padding: 6px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14); padding: 18px 0;
  text-align: center; font-size: 13px; color: rgba(255,255,255,.55);
}
.footer-bottom a { color: rgba(255,255,255,.7); margin: 0 6px; }
.footer-bottom a:hover { color: var(--gold-2); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; padding: 12px 0; }
  .nav-toggle { display: block; }
  .main-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .container { width: min(100% - 28px, 1180px); }
  .page-hero { padding: 40px 0 36px; }
  .section { padding: 44px 0; }
}
