/* ============================================================
   职场思维导图 · 墨金暗夜主题
   黄亦栋个人网站 | 共享样式
   ============================================================ */

:root {
  /* 背景 */
  --bg-page: #0e0d0b;       /* 近黑页面底 */
  --bg-ink: #14110d;        /* 深墨区块（Hero） */
  --bg-card: #1a160f;       /* 卡片底 */
  /* 文字 */
  --text-primary: #f5eedc;  /* 奶油主文字 */
  --text-soft: #e8dcc0;     /* 柔金副文字 */
  --text-muted: #b8a880;    /* 灰褐辅助文字 */
  --text-dim: #a89b7e;      /* 更暗的辅助文字 */
  /* 强调 */
  --gold: #c9a24b;          /* 暖金主强调 */
  --gold-deep: #c9bc9e;     /* 深金 */
  /* 描边 */
  --border-subtle: #2a2415;
  --border-line: #3a342a;
  /* 尺寸 */
  --maxw: 1180px;
  --radius: 14px;
  --radius-sm: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif {
  font-family: "Noto Serif SC", Georgia, "Songti SC", serif;
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.section { padding: 92px 0; }
.section--tight { padding: 64px 0; }

/* ---------- 通用文字 ---------- */
.tag {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--gold);
  margin-bottom: 18px;
}
.section-title {
  font-size: 40px;
  font-weight: 900;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.section-sub {
  font-size: 18px;
  color: var(--gold-deep);
  max-width: 720px;
  margin-bottom: 48px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: var(--gold);
  color: #14110d;
}
.btn-gold:hover { opacity: .92; }
.btn-ink {
  background: var(--bg-ink);
  color: var(--text-soft);
  border-color: var(--border-line);
}
.btn-ink:hover { background: #201a10; }

/* ---------- 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 13, 11, .86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Noto Serif SC", serif;
  font-weight: 900;
  font-size: 19px;
  color: var(--text-primary);
}
.brand svg { width: 26px; height: 26px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-size: 15px;
  color: var(--text-muted);
  transition: color .15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.nav-cta { margin-left: 8px; }

/* ---------- Hero ---------- */
.hero {
  background: var(--bg-ink);
  border-bottom: 1px solid var(--border-subtle);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
  padding: 96px 0;
}
.hero h1 {
  font-size: 82px;
  font-weight: 900;
  line-height: 1.08;
  color: var(--text-primary);
  margin: 14px 0 18px;
}
.hero-sub {
  font-family: "Noto Serif SC", serif;
  font-weight: 600;
  font-size: 24px;
  color: var(--text-soft);
  margin-bottom: 18px;
}
.hero-desc {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-cover {
  justify-self: center;
  width: 360px;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,.55));
}
.stats {
  display: flex;
  gap: 48px;
  margin-top: 46px;
  padding-top: 34px;
  border-top: 1px solid var(--border-subtle);
}
.stat-num {
  font-family: "Noto Serif SC", serif;
  font-weight: 900;
  font-size: 34px;
  color: var(--gold);
}
.stat-label { font-size: 14px; color: var(--text-muted); }

/* ---------- 卖点三栏 ---------- */
.points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 8px;
}
.point h3 {
  font-size: 22px;
  font-weight: 900;
  color: var(--text-soft);
  margin-bottom: 8px;
}
.point p { color: var(--text-dim); font-size: 15px; }

/* ---------- 八章网格 ---------- */
.grid-8 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.chapter {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.chapter h3 {
  font-size: 20px;
  font-weight: 900;
  color: var(--text-soft);
  margin-bottom: 12px;
}
.chapter p { font-size: 14px; color: var(--text-dim); line-height: 1.65; }

/* ---------- 客户 Logo 墙 ---------- */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
}
.logo-cell {
  background: var(--bg-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 18px;
}
.logo-cell span {
  font-family: "Noto Serif SC", serif;
  font-weight: 900;
  font-size: 21px;
  color: var(--gold-deep);
}

/* ---------- 书籍详情 ---------- */
.book-hero {
  background: var(--bg-ink);
  border-bottom: 1px solid var(--border-subtle);
}
.book-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 56px;
  align-items: center;
  padding: 90px 0;
}
.book-hero h1 {
  font-size: 64px;
  font-weight: 900;
  line-height: 1.1;
  margin: 14px 0 12px;
}
.book-hero .sub {
  font-family: "Noto Serif SC", serif;
  font-weight: 600;
  font-size: 26px;
  color: var(--gold-deep);
  margin-bottom: 18px;
}
.book-meta { font-size: 15px; color: var(--text-muted); margin-bottom: 30px; }
.book-cover {
  justify-self: center;
  width: 340px;
  filter: drop-shadow(0 26px 46px rgba(0,0,0,.55));
}

/* 收获三卡 */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.card h3 {
  font-size: 22px;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.card p { color: var(--text-dim); font-size: 15px; }

/* 目录 */
.toc { display: flex; flex-direction: column; gap: 14px; }
.toc-item {
  display: flex;
  align-items: baseline;
  gap: 20px;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
}
.toc-num {
  font-family: "Noto Sans SC", sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--gold);
  min-width: 30px;
}
.toc-name { font-size: 18px; color: var(--text-primary); }

/* 作者简介 */
.author { display: flex; gap: 40px; align-items: center; }
.author-avatar {
  width: 150px; height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-line);
  flex-shrink: 0;
}
.author-body { max-width: 720px; }
.author-body h2 {
  font-size: 40px; font-weight: 900; margin: 10px 0 16px;
}
.author-body p { color: var(--text-muted); font-size: 18px; }

/* ---------- 方法论详解 ---------- */
.method-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.method-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 32px 30px;
}
.method-card .num {
  font-size: 14px; font-weight: 500; letter-spacing: .1em;
  color: var(--gold);
}
.method-card h3 {
  font-size: 24px; font-weight: 900; color: var(--text-primary);
  margin: 8px 0 12px;
}
.method-card p { font-size: 15px; color: var(--text-dim); }

/* ---------- 购买引导（金底） ---------- */
.buy {
  background: var(--gold);
  text-align: center;
}
.buy .tag { color: #14110d; opacity: .7; }
.buy h2 {
  font-size: 56px; font-weight: 900; color: #14110d; margin-bottom: 16px;
}
.buy p { font-size: 18px; color: #2a2415; max-width: 640px; margin: 0 auto 36px; }
.channels {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}
.channel {
  background: #14110d;
  color: var(--text-soft);
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  font-size: 16px; font-weight: 500;
  border: 1px solid #2a2415;
  transition: transform .15s ease, opacity .15s ease;
}
.channel:hover { transform: translateY(-2px); opacity: .92; }
.buy-meta { margin-top: 30px; font-size: 14px; color: #2a2415; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: #090806;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 36px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .name {
  font-family: "Noto Serif SC", serif;
  font-weight: 900; font-size: 22px; color: var(--text-primary);
  margin-bottom: 10px;
}
.footer-brand .slogan { font-size: 14px; color: var(--text-dim); }
.footer-col h4 {
  font-size: 14px; font-weight: 500; letter-spacing: .1em;
  color: var(--gold); margin-bottom: 16px;
}
.footer-col a, .footer-col span {
  display: block; font-size: 14px; color: var(--gold-deep);
  margin-bottom: 10px; transition: color .15s ease;
}
.footer-col a:hover { color: var(--text-primary); }
.footer-divider { height: 1px; background: var(--border-subtle); margin-bottom: 22px; }
.copyright { font-size: 13px; color: var(--text-dim); }

/* ---------- 响应式 ---------- */
@media (max-width: 920px) {
  .hero-grid, .book-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 56px; }
  .grid-8 { grid-template-columns: repeat(2, 1fr); }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .points, .cards-3 { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .hero-cover, .book-cover { width: 260px; }
  .nav-links { display: none; }
  .section-title { font-size: 32px; }
  .buy h2 { font-size: 40px; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 44px; }
  .stats { gap: 28px; }
  .footer-top { grid-template-columns: 1fr; }
}
