/* 博客模板 · 淡金色背景 */
:root {
  --bg: #f8f4eb;
  --bg-2: #faf6ef;
  --card: #fffefb;
  --text: #2d2d2d;
  --text-soft: #5c5c5c;
  --gold: #a67c00;
  --gold-light: #c9a227;
  --gold-bg: rgba(166, 124, 0, .08);
  --line: rgba(166, 124, 0, .18);
  --shadow: 0 4px 24px rgba(0, 0, 0, .06);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, .04);
  --radius: 16px;
  --radius-sm: 12px;
  --max: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  background-image:
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 30%, #f5f0e4 100%);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  font-size: 16px;
}
body.drawer-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

/* ========== 顶栏（博客风格：白底淡金边） ========== */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 254, 251, .96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255,255,255,.8);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  min-height: 56px;
}
.logo { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo img { width: clamp(160px, 22vw, 220px); height: auto; }
.menu { display: flex; gap: 24px; flex-wrap: wrap; justify-content: flex-end; }
.menu a {
  font-size: 15px;
  color: var(--text-soft);
  font-weight: 500;
  transition: color .2s;
}
.menu a:hover { color: var(--gold); }

/* 汉堡：移动端靠右 */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0 0 0 auto;
  background: var(--gold-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  gap: 5px;
  transition: background .2s, border-color .2s;
}
.hamburger:hover { background: rgba(166, 124, 0, .12); border-color: var(--gold); }
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
  transition: transform .25s, opacity .25s;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 抽屉遮罩 */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, .25);
  opacity: 0;
  transition: opacity .25s ease;
}
body.drawer-open .drawer-overlay {
  display: block;
  opacity: 1;
}

/* 抽屉：右侧滑入，白底 */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  width: min(280px, 85vw);
  max-width: 100%;
  height: 100vh;
  background: var(--card);
  border-left: 1px solid var(--line);
  box-shadow: -8px 0 32px rgba(0, 0, 0, .08);
  padding: 24px 20px 32px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transform: translateX(100%);
  transition: transform .28s ease;
  overflow-y: auto;
}
body.drawer-open .drawer { transform: translateX(0); }
.drawer-close {
  align-self: flex-end;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  padding: 0;
  font-size: 26px;
  line-height: 1;
  color: var(--text-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.drawer-close:hover { color: var(--gold); border-color: var(--gold); background: var(--gold-bg); }
.drawer-menu { display: flex; flex-direction: column; gap: 4px; }
.drawer-menu a {
  display: block;
  padding: 14px 16px;
  font-size: 16px;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: background .2s, color .2s;
}
.drawer-menu a:hover { background: var(--gold-bg); color: var(--gold); }

/* ========== Hero（博客首屏） ========== */
.hero { padding: 48px 0 36px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 36px;
  align-items: center;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--gold);
  background: var(--gold-bg);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: .02em;
}
.hero h1 {
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--text);
  font-weight: 700;
}
.hero p {
  font-size: 17px;
  color: var(--text-soft);
  max-width: 52ch;
  margin: 0 0 22px;
  line-height: 1.7;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .2s, box-shadow .2s;
}
.btn.primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #fff;
  box-shadow: 0 2px 12px rgba(166, 124, 0, .25);
}
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(166, 124, 0, .3); }
.btn.secondary {
  background: var(--card);
  border-color: var(--line);
  color: var(--text);
}
.btn.secondary:hover { border-color: var(--gold); color: var(--gold); }
.hero-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 14/10; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.badge {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-soft);
  background: var(--card);
  border: 1px solid var(--line);
}

/* ========== Section · 博客区块标题 ========== */
.section { padding: 32px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.section h2 {
  font-size: clamp(22px, 2.8vw, 28px);
  margin: 0;
  font-weight: 700;
  color: var(--text);
}
.section-head p { margin: 0; color: var(--text-soft); max-width: 58ch; font-size: 15px; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ========== 卡片（博客白卡） ========== */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: box-shadow .2s, border-color .2s;
}
.card:hover { box-shadow: var(--shadow); border-color: rgba(166, 124, 0, .25); }
.card h3 { margin: 0 0 10px; font-size: 20px; font-weight: 600; color: var(--text); }
.card p { margin: 0; color: var(--text-soft); font-size: 15px; line-height: 1.7; }
.card small, .muted { color: var(--text-soft); }
.feature-list { display: grid; gap: 10px; margin-top: 14px; }
.feature-list li { color: var(--text-soft); font-size: 15px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.stat {
  padding: 18px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  text-align: center;
}
.stat strong { display: block; font-size: 28px; color: var(--gold); margin-bottom: 4px; }
.stat span { font-size: 14px; color: var(--text-soft); }

/* ========== 文章卡片（博客列表项） ========== */
.post-card {
  padding: 0;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: box-shadow .2s, border-color .2s;
}
.post-card:hover { box-shadow: var(--shadow); border-color: rgba(166, 124, 0, .22); }
.post-thumb { aspect-ratio: 16/10; overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 20px 22px 22px; }
.post-meta {
  color: var(--text-soft);
  font-size: 13px;
  margin-bottom: 10px;
  font-weight: 500;
}
.post-card h3 {
  font-size: 20px;
  margin: 0 0 10px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}
.post-card p { color: var(--text-soft); margin-bottom: 14px; font-size: 15px; line-height: 1.65; }
.link-more { color: var(--gold); font-weight: 600; font-size: 15px; }
.link-more:hover { text-decoration: underline; }

/* Strip / FAQ */
.strip {
  padding: 24px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-card);
}
.faq-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { font-size: 18px; margin: 0 0 8px; font-weight: 600; color: var(--text); }
.faq-item p { color: var(--text-soft); margin: 0; font-size: 15px; }

/* Callout */
.callout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
  align-items: center;
  padding: 24px 26px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.callout h2 { margin: 0 0 10px; font-size: 22px; font-weight: 600; color: var(--text); }
.callout p { margin: 0; color: var(--text-soft); font-size: 15px; }

/* ========== Footer（博客页脚） ========== */
.footer {
  padding: 40px 0 48px;
  color: var(--text-soft);
  font-size: 15px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.footer-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: start; }
.footer p { margin: 0; line-height: 1.65; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--text-soft); }
.footer-links a:hover { color: var(--gold); }

/* ========== 面包屑 ========== */
.breadcrumbs {
  font-size: 14px;
  color: var(--text-soft);
  margin: 20px 0 16px;
}
.breadcrumbs a { color: var(--text-soft); }
.breadcrumbs a:hover { color: var(--gold); }

/* ========== 文章页（博客正文 + 侧栏） ========== */
.article-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  padding: 24px 0 40px;
}
.article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 36px 36px;
  box-shadow: var(--shadow-card);
}
.article h1 {
  font-size: clamp(26px, 3.5vw, 36px);
  line-height: 1.25;
  margin: 0 0 16px;
  font-weight: 700;
  color: var(--text);
}
.article h2 {
  margin-top: 28px;
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.article p, .article ul { color: var(--text-soft); font-size: 16px; line-height: 1.8; }
.article-cover {
  border-radius: var(--radius);
  overflow: hidden;
  margin: 16px 0 24px;
  border: 1px solid var(--line);
}
.sidebar {
  display: grid;
  gap: 20px;
  align-self: start;
  position: sticky;
  top: 88px;
}
.sidebar .card { padding: 20px; }
.sidebar .card h3 { font-size: 17px; margin-bottom: 12px; }
.taglist { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-soft);
  background: var(--gold-bg);
  border: 1px solid var(--line);
}
.notice {
  font-size: 14px;
  color: var(--text-soft);
  padding: 14px 18px;
  border-left: 3px solid var(--gold);
  background: var(--gold-bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ========== 栏目页 / 政策页 ========== */
.page-hero { padding: 32px 0 20px; }
.page-hero .kicker { margin-bottom: 12px; }
.lead {
  color: var(--text-soft);
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.7;
}
.icon-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.icon-grid .card h3 { font-size: 19px; }
.list-clean { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.list-clean li {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text-soft);
}
.meta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; color: var(--text-soft); font-size: 14px; }
.policy-list { display: grid; gap: 16px; margin-top: 20px; }
.policy-list section {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-card);
}
.policy-list h2 { margin: 0 0 10px; font-size: 20px; font-weight: 600; color: var(--text); }
.policy-list p { color: var(--text-soft); margin: 0; font-size: 15px; line-height: 1.7; }
.breadcrumbs { overflow-wrap: anywhere; }

/* ========== 平板 ========== */
@media (max-width: 980px) {
  .hero-grid, .callout, .footer-grid, .article-wrap { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .sidebar { position: static; }
  .icon-grid { grid-template-columns: 1fr; }
}

/* ========== 手机：汉堡 + 抽屉 + 博客排版 ========== */
@media (max-width: 720px) {
  .menu:not(.drawer-menu) { display: none; }
  .hamburger { display: flex; }
  .container { width: calc(100% - 24px); }
  .nav { padding: 14px 0; min-height: 52px; }

  .hero { padding: 28px 0 24px; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: left;
  }
  .hero-grid .hero-card { order: 2; }
  .hero-grid .hero-card img { aspect-ratio: 16/10; }
  .hero h1 { font-size: clamp(24px, 6vw, 30px); margin-bottom: 12px; }
  .hero p { font-size: 16px; max-width: none; margin-bottom: 18px; }
  .cta-row { margin-bottom: 16px; gap: 12px; }
  .hero-badges { margin-top: 14px; gap: 8px; }

  .section { padding: 24px 0; }
  .section-head {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 18px;
    padding-bottom: 10px;
  }
  .section-head p { max-width: none; font-size: 15px; }
  .section h2 { font-size: 22px; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 16px; }
  .stats { grid-template-columns: 1fr; gap: 12px; margin-top: 16px; }
  .card { padding: 20px; border-radius: var(--radius-sm); }
  .card h3 { font-size: 18px; }

  .post-card { border-radius: var(--radius-sm); overflow: hidden; }
  .post-thumb { aspect-ratio: 16/10; }
  .post-body { padding: 18px; }
  .post-card h3 { font-size: 18px; margin-bottom: 8px; }
  .post-card p { font-size: 15px; margin-bottom: 12px; }

  .callout {
    grid-template-columns: 1fr;
    padding: 20px;
    border-radius: var(--radius-sm);
  }
  .callout h2 { font-size: 20px; }
  .strip { padding: 20px; border-radius: var(--radius-sm); }

  .faq-item { padding: 18px 0; }
  .faq-item h3 { font-size: 17px; }

  .footer { padding: 32px 0 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; text-align: left; }
  .footer p { font-size: 15px; }
  .footer-links { gap: 16px; }

  .article-wrap { gap: 24px; }
  .article-wrap .sidebar { order: -1; }
  .article {
    padding: 24px 20px;
    border-radius: var(--radius-sm);
  }
  .article h1 { font-size: 24px; }
  .article h2 { font-size: 20px; margin-top: 24px; }
  .article-cover { margin: 12px 0 18px; border-radius: var(--radius-sm); }
  .sidebar .card { padding: 18px; }
  .sidebar .card h3 { font-size: 16px; }

  .breadcrumbs { margin: 14px 0 12px; font-size: 13px; }
  .page-hero { padding: 24px 0 16px; }
  .page-hero .lead { font-size: 16px; }
  .meta-row { margin-top: 12px; }

  .policy-list { gap: 14px; margin-top: 18px; }
  .policy-list section { padding: 18px; border-radius: var(--radius-sm); }
  .policy-list h2 { font-size: 18px; }

  .icon-grid { grid-template-columns: 1fr; gap: 16px; }
}
