/* ============================================================
   芒格思维 · 书卷暖光 风格（mungermodels 原站调性）
   奶油底 + 赤陶色 + 衬线标题 + 格栅网络概念
   与"毛泽东思想·革命文献风"刻意区分，也不套用户主站主题
   ============================================================ */

:root {
  --bg: #faf6ef;
  --surface: #fffdf8;
  --surface-2: #f3ece0;
  --text: #2b2620;
  --muted: #6b6258;
  --accent: #b4532a;        /* 赤陶 terracotta */
  --accent-deep: #8a3e1d;
  --accent-soft: #e8d9c8;
  --line: #e6ddcf;
  --heading: "Noto Serif SC", "Songti SC", Georgia, serif;
  --body: "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(80,60,30,.07);
  --diamond: var(--accent);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- 顶栏 ---------- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(250,246,239,.86);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-family: var(--heading); font-weight: 700; font-size: 20px; letter-spacing: .5px; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 22px; align-items: center; font-size: 14px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.hub { color: var(--accent); font-family: var(--mono); font-size: 13px; }

/* ---------- Hero ---------- */
.hero { padding: 76px 0 36px; text-align: center; position: relative; }
.hero::after {
  /* 格栅暗纹，呼应"把思维织成格栅" */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(180,83,42,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180,83,42,.05) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000, transparent 75%);
          mask-image: radial-gradient(circle at 50% 30%, #000, transparent 75%);
}
.hero > * { position: relative; z-index: 1; }
.hero .kicker {
  font-family: var(--mono); font-size: 13px; letter-spacing: 2px;
  color: var(--accent); text-transform: uppercase; margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--heading); font-weight: 700;
  font-size: clamp(34px, 6vw, 60px); line-height: 1.15; margin-bottom: 18px;
}
.hero p.lead { max-width: 660px; margin: 0 auto; color: var(--muted); font-size: 18px; }
.hero .by { margin-top: 18px; font-size: 14px; color: var(--muted); font-family: var(--mono); }

/* 数据看板 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 48px 0 8px; }
.stat {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 12px; text-align: center;
  box-shadow: var(--shadow);
}
.stat .num { font-family: var(--heading); font-size: 30px; font-weight: 700; color: var(--accent); }
.stat .label { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ---------- 区块标题 ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 56px 0 22px; }
.section-head h2 { font-family: var(--heading); font-size: 26px; }
.section-head .meta { font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* ---------- 学科网格（格栅） ---------- */
.discipline-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.disc {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease;
  position: relative; overflow: hidden;
}
.disc::before {
  content: ""; position: absolute; right: -30px; top: -30px;
  width: 90px; height: 90px; border: 1px solid var(--accent-soft); border-radius: 50%;
  opacity: .5;
}
.disc:hover { transform: translateY(-4px); border-color: var(--accent); }
.disc .idx { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.disc h3 { font-family: var(--heading); font-size: 21px; margin: 6px 0 2px; }
.disc .en { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
.disc p { font-size: 14px; color: var(--muted); margin: 12px 0 16px; }
.disc .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip {
  font-size: 13px; padding: 4px 11px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
}
.chip:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.disc .more { font-size: 13px; font-family: var(--mono); }

/* ---------- 精选模型卡 ---------- */
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.model {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease;
}
.model:hover { transform: translateY(-4px); border-color: var(--accent); }
.model .m-head { display: flex; align-items: baseline; justify-content: space-between; }
.model h3 { font-family: var(--heading); font-size: 19px; }
.model .en { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; }
.model .diff { color: var(--diamond); letter-spacing: 2px; font-size: 13px; margin: 8px 0 10px; }
.model p { font-size: 14px; color: var(--muted); }
.model .more { font-family: var(--mono); font-size: 12px; display: inline-block; margin-top: 12px; }

/* ---------- 模型详情页 ---------- */
.breadcrumb { font-family: var(--mono); font-size: 13px; color: var(--muted); padding: 28px 0 0; }
.breadcrumb a { color: var(--muted); }
.model-head { padding: 18px 0 28px; border-bottom: 1px solid var(--line); }
.model-head .tag {
  display: inline-block; font-family: var(--mono); font-size: 12px;
  padding: 3px 10px; border-radius: 999px; background: var(--accent-soft);
  color: var(--accent-deep); margin-bottom: 12px;
}
.model-head h1 { font-family: var(--heading); font-size: clamp(30px,5vw,46px); line-height: 1.2; }
.model-head .en { font-family: var(--mono); color: var(--muted); font-size: 15px; margin-top: 6px; }
.difficulty { margin-top: 14px; color: var(--diamond); letter-spacing: 3px; font-size: 16px; }

.lead {
  font-size: 19px; line-height: 1.9; color: var(--text);
  padding: 28px 0; border-bottom: 1px dashed var(--line); margin-bottom: 8px;
}
.lead .quote-mark { color: var(--accent); font-family: var(--heading); font-size: 40px; line-height: 0; }

.section { padding: 26px 0; }
.section .sec-no { font-family: var(--mono); color: var(--accent); font-size: 14px; }
.section h2 { font-family: var(--heading); font-size: 24px; margin: 4px 0 14px; }
.section p { margin-bottom: 14px; color: var(--text); }
.section strong { color: var(--accent); }

.related {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; margin: 28px 0; box-shadow: var(--shadow);
}
.related h3 { font-family: var(--heading); font-size: 18px; margin-bottom: 14px; }
.related ul { list-style: none; }
.related li { padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.related li:last-child { border-bottom: none; }
.related li .desc { color: var(--muted); font-size: 13px; display: block; margin-top: 2px; }

.checklist {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; margin: 28px 0; box-shadow: var(--shadow);
}
.checklist h3 { font-family: var(--heading); font-size: 18px; margin-bottom: 14px; }
.checklist label { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: 15px; cursor: pointer; }
.checklist input { margin-top: 6px; accent-color: var(--accent); width: 16px; height: 16px; }
.checklist .reset { font-family: var(--mono); font-size: 12px; color: var(--muted); cursor: pointer; }

.faq { margin: 28px 0; }
.faq h3 { font-family: var(--heading); font-size: 18px; margin-bottom: 10px; }
.faq dt { font-weight: 600; margin-top: 14px; }
.faq dd { color: var(--muted); font-size: 15px; }

.quotes { border-left: 3px solid var(--accent); padding: 8px 0 8px 22px; margin: 28px 0; }
.quotes blockquote { font-family: var(--heading); font-style: italic; font-size: 18px; margin-bottom: 14px; }
.quotes cite { display: block; font-size: 13px; color: var(--muted); font-style: normal; }

/* ---------- 页脚 ---------- */
footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 36px 0; color: var(--muted); font-size: 13px; text-align: center; }

/* ---------- 响应式 ---------- */
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2,1fr); }
  .discipline-grid, .models { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
