/* =========================================================
   六页纸 · 全站共享样式（v2）
   设计语言：深色编辑型 + 编辑器/学术感
   ========================================================= */

:root {
  /* 品牌色：深色编辑型 */
  --bg: #0f1111;
  --bg-soft: #131921;
  --bg-card: #1a1f23;
  --bg-elevated: #242a2f;
  --bg-paper: #161b1f;
  --border: #30373d;
  --border-soft: #2a2f33;

  /* 文本 */
  --ink: #ffffff;
  --ink-soft: #e7e9ea;
  --muted: #a3a9ad;
  --muted-2: #888;

  /* 强调色 */
  --link: #4ec0e4;
  --link-hover: #7fd5ed;
  --accent: #febd69;
  --accent-hover: #f3a847;
  --accent-deep: #b07a2c;

  /* 编辑型引用色 */
  --quote: #1a1f23;
  --rule: #2a2f33;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); }
body {
  font-family: "Amazon Ember", "Helvetica Neue", -apple-system, BlinkMacSystemFont,
               "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  line-height: 1.65; font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

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

.container { max-width: 1240px; margin: 0 auto; padding: 0 18px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 20px; }

/* =========================================================
   Header（统一导航）
   ========================================================= */
.site-header {
  background: var(--bg-soft);
  color: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.site-header-inner {
  display: flex; align-items: center; gap: 18px;
  height: 60px;
  flex-wrap: nowrap;
}
.site-logo {
  font-size: 18px; font-weight: 700; color: #fff;
  text-decoration: none; display: flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.site-logo img { height: 28px; width: 28px; display: block; border-radius: 4px; }
.site-logo:hover { text-decoration: none; color: #fff; }
.site-logo .logo-text-en {
  font-size: 11px; color: var(--muted); margin-left: 4px; font-weight: 500;
  letter-spacing: 0.04em;
}

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav-link {
  color: #d6d6d6; padding: 8px 12px; font-size: 14px;
  border-radius: 4px; transition: color .15s, background .15s;
  white-space: nowrap;
}
.site-nav-link:hover { color: #fff; background: rgba(255,255,255,0.06); text-decoration: none; }
.site-nav-link.is-active { color: var(--accent); }

.site-nav-spacer { flex: 1; }

.site-nav-cta {
  background: var(--accent); color: #0f1111;
  padding: 8px 16px; border-radius: 6px;
  font-weight: 700; font-size: 14px; white-space: nowrap;
}
.site-nav-cta:hover { background: var(--accent-hover); color: #0f1111; text-decoration: none; }

/* 移动汉堡按钮 */
.site-nav-toggle {
  display: none;
  background: transparent; border: 1px solid var(--border);
  color: #ddd; font-size: 18px; cursor: pointer;
  padding: 6px 10px; border-radius: 4px;
  line-height: 1;
}
.site-nav-toggle:hover { color: var(--accent); border-color: var(--accent); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--bg-soft); color: #ddd;
  padding: 36px 0 18px; margin-top: 32px;
}
.site-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid #232a2f;
}
.site-footer-grid h4 {
  color: #fff; font-size: 14px;
  margin-bottom: 10px; font-weight: 700;
}
.site-footer-grid a {
  display: block; color: #ddd; font-size: 13px;
  padding: 4px 0;
}
.site-footer-grid a:hover { color: #fff; text-decoration: underline; }
.site-footer-bottom {
  padding-top: 18px; font-size: 12px; color: #888; text-align: center;
}

/* =========================================================
   Hero / 通用板块
   ========================================================= */
.page-hero {
  background: linear-gradient(180deg, #0f1111 0%, #1a2026 100%);
  padding: 56px 0 48px;
}
.page-hero h1 { font-size: 42px; font-weight: 700; line-height: 1.15; margin-bottom: 14px; letter-spacing: -0.5px; }
.page-hero h1 .em { color: var(--accent); }
.page-hero .lede { font-size: 18px; color: var(--ink-soft); max-width: 780px; margin-bottom: 28px; }
.page-hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.page-head {
  background: linear-gradient(180deg, #0f1111 0%, #1a2026 100%);
  padding: 56px 0 40px; text-align: center;
}
.page-head h1 { font-size: 36px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.page-head p { color: var(--ink-soft); font-size: 16px; }

section { padding: 42px 0; }
.section-title { font-size: 24px; font-weight: 700; margin-bottom: 6px; color: #fff; }
.section-sub { color: var(--muted); margin-bottom: 22px; font-size: 14px; }

/* =========================================================
   Buttons
   ========================================================= */
.btn-amber {
  background: var(--accent); color: #0f1111;
  padding: 13px 22px; border-radius: 8px;
  font-weight: 700; font-size: 15px;
}
.btn-amber:hover { background: var(--accent-hover); text-decoration: none; color: #0f1111; }
.btn-ghost {
  background: transparent; color: #fff; border: 1px solid #555;
  padding: 13px 22px; border-radius: 8px;
  font-weight: 600; font-size: 15px;
}
.btn-ghost:hover { border-color: #fff; text-decoration: none; color: #fff; }

/* =========================================================
   Cards
   ========================================================= */
.card-grid { display: grid; gap: 18px; }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 22px;
}
.card h3 { font-size: 18px; color: #fff; margin-bottom: 8px; font-weight: 700; }
.card p { color: var(--ink-soft); font-size: 14px; }
.card .tag {
  display: inline-block; background: #23303a; color: var(--accent);
  padding: 3px 8px; border-radius: 4px; font-size: 11px;
  margin-bottom: 12px; font-weight: 700;
}

/* 引言条 */
.quote-strip {
  background: var(--bg-soft);
  padding: 36px 0;
  border-top: 1px solid #232a2f; border-bottom: 1px solid #232a2f;
}
.quote-strip blockquote {
  font-size: 22px; font-weight: 600; color: #fff;
  line-height: 1.4; max-width: 820px; margin: 0 auto; text-align: center;
}
.quote-strip .who { color: var(--accent); margin-top: 10px; font-size: 14px; text-align: center; }

/* =========================================================
   Template Cards（资源卡 · templates 页）
   ========================================================= */
.tpl-list { display: flex; flex-direction: column; gap: 12px; margin: 14px 0 28px; }
.tpl-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px;
  padding: 18px 20px;
  display: grid; grid-template-columns: 56px 1fr auto auto; gap: 18px;
  align-items: center; transition: border-color .15s, transform .15s;
}
.tpl-card:hover { border-color: var(--accent); }
.tpl-card.is-featured { border-color: var(--accent); background: #1a2733; }
.tpl-card .tpl-emoji {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  background: #23303a; border-radius: 8px; font-size: 22px;
}
.tpl-card .tpl-info h4 { font-size: 16px; color: #fff; margin-bottom: 4px; font-weight: 700; }
.tpl-card .tpl-info .meta { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.tpl-card .tpl-info .desc { font-size: 13px; color: var(--ink-soft); }
.tpl-card .tpl-format {
  font-size: 11px; color: var(--accent); font-weight: 700;
  background: rgba(254, 189, 105, 0.12); padding: 3px 8px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.tpl-card .tpl-actions a {
  background: var(--accent); color: #0f1111; padding: 9px 16px; border-radius: 6px;
  font-size: 13px; font-weight: 700; white-space: nowrap; display: inline-block;
  text-decoration: none;
}
.tpl-card .tpl-actions a:hover { background: var(--accent-hover); }
.tpl-card .tpl-actions a.is-secondary {
  background: #37475a; color: #fff;
}
.tpl-card .tpl-actions a.is-secondary:hover { background: #485769; }
.tpl-card .tpl-actions a.is-link {
  background: transparent; color: var(--link); border: 1px solid var(--link);
}
.tpl-card .tpl-actions a.is-link:hover { background: rgba(78, 192, 228, 0.12); color: var(--link-hover); }

/* 首页模板区：参考 v1 的紧凑按钮行，但增加细边界与轻微层次 */
.home-templates .section-block { padding: 24px; }
.home-templates .tpl-list { gap: 7px; margin: 0; }
.home-templates .tpl-card {
  min-height: 54px;
  padding: 8px 12px;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  border-radius: 6px;
  background: #1c2227;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.025);
}
.home-templates .tpl-card:hover { transform: translateX(2px); }
.home-templates .tpl-card .tpl-info h4 { margin: 0 0 2px; font-size: 14px; }
.home-templates .tpl-card .tpl-info .meta { margin: 0; font-size: 11px; }
.home-templates .tpl-card .tpl-format { padding: 3px 7px; font-size: 10px; }
.home-templates .tpl-card .tpl-actions a {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 5px;
}

.tpl-section-title {
  font-size: 18px; color: #fff; font-weight: 700;
  margin: 24px 0 8px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.tpl-section-hint { color: var(--muted); font-size: 13px; margin: 0 0 12px 0; }

/* =========================================================
   Process Steps（五步流程 · 首页）
   ========================================================= */
.process {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
  counter-reset: step;
}
.process-step {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 18px; position: relative;
  counter-increment: step;
}
.process-step::before {
  content: counter(step);
  position: absolute; top: -12px; left: 14px;
  width: 28px; height: 28px; background: var(--accent); color: #0f1111;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px;
}
.process-step h4 { font-size: 14px; color: #fff; margin: 6px 0 6px; font-weight: 700; }
.process-step p { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* =========================================================
   FAQ（可见 FAQ）
   ========================================================= */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 16px 20px;
}
.faq-item summary {
  font-weight: 700; color: #fff; cursor: pointer; font-size: 15px;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-size: 18px; font-weight: 700; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin-top: 10px; color: var(--ink-soft); font-size: 14px; line-height: 1.7; }

/* =========================================================
   Featured promo（智能体）
   ========================================================= */
.promo {
  background: linear-gradient(90deg, #1a2733 0%, #0f1111 100%);
  padding: 36px 0; border-top: 1px solid #232a2f;
}
.promo-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.promo-text h3 { font-size: 22px; color: #fff; margin-bottom: 6px; }
.promo-text p { color: var(--ink-soft); font-size: 14px; margin-bottom: 10px; max-width: 580px; }
.promo-cta {
  background: var(--link); color: #0f1111;
  padding: 13px 22px; border-radius: 8px;
  font-weight: 700; font-size: 15px; white-space: nowrap;
}
.promo-cta:hover { background: var(--link-hover); text-decoration: none; color: #0f1111; }
.promo-badge {
  display: inline-block; background: var(--link); color: #0f1111;
  padding: 2px 8px; border-radius: 4px; font-size: 11px;
  font-weight: 700; margin-bottom: 8px;
}

/* =========================================================
   Contact · Courses
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 36px 0 28px; }
.contact-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 24px; }
.contact-card h3 { font-size: 18px; color: #fff; margin-bottom: 14px; font-weight: 700; }
.contact-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.contact-item .ico {
  width: 36px; height: 36px; background: #23303a; color: var(--accent);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.contact-item .label { font-size: 12px; color: var(--muted); }
.contact-item .value { font-size: 15px; font-weight: 600; color: #fff; }
.contact-item .value a { color: var(--accent); }
.contact-item .value a:hover { color: var(--accent-hover); text-decoration: none; }

.product-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.product {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px;
  padding: 18px 20px; display: grid; grid-template-columns: 1fr auto auto; gap: 18px;
  align-items: center; transition: border-color .15s;
}
.product:hover { border-color: var(--accent); }
.product.featured { border-color: var(--accent); background: #1a2733; }
.product-info h3 { font-size: 17px; color: #fff; margin-bottom: 4px; font-weight: 700; }
.product-info p { font-size: 13px; color: var(--muted); }
.product-price { font-size: 22px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.product-cta a {
  background: var(--link); color: #0f1111;
  padding: 9px 16px; border-radius: 6px;
  font-weight: 700; font-size: 13px; display: inline-block; text-decoration: none;
}
.product-cta a:hover { background: var(--link-hover); color: #0f1111; }
.product .badge-new {
  display: inline-block; background: var(--link); color: #0f1111;
  padding: 2px 8px; border-radius: 4px;
  font-size: 10px; font-weight: 700; margin-left: 6px;
}

/* =========================================================
   About · Profile hero & timeline
   ========================================================= */
.profile-hero {
  display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: center;
  background: linear-gradient(135deg, #1a2733 0%, #1a1f23 100%);
  padding: 40px; border-radius: 8px; margin: 24px 0;
  border: 1px solid var(--border);
}
.profile-hero img {
  width: 280px; height: 280px; border-radius: 8px; object-fit: cover;
  border: 3px solid var(--accent); box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.profile-hero h1 { font-size: 32px; margin-bottom: 6px; color: #fff; font-weight: 700; }
.profile-hero .alias { color: var(--accent); font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.profile-hero .title { color: var(--ink-soft); font-weight: 600; font-size: 18px; margin-bottom: 18px; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.badge {
  background: #23303a; color: var(--accent);
  padding: 5px 12px; border-radius: 6px;
  font-size: 13px; font-weight: 600; border: 1px solid var(--border);
}
.profile-hero p { color: var(--ink-soft); font-size: 15px; line-height: 1.65; }

.section-block {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px;
  padding: 32px; margin-bottom: 18px;
}
.section-block h2 {
  font-size: 20px; color: #fff; margin-bottom: 18px;
  font-weight: 700; padding-bottom: 8px; border-bottom: 1px solid var(--border);
}

.timeline-item { padding: 14px 0; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: start; }
.timeline-item:last-child { border-bottom: none; }
.timeline-item .year { font-weight: 700; color: var(--accent); font-size: 14px; padding-top: 2px; }
.timeline-item h3 { font-size: 16px; color: #fff; margin-bottom: 4px; font-weight: 600; }
.timeline-item p { color: var(--ink-soft); font-size: 14px; }

.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.skill { background: var(--bg-elevated); padding: 18px; border-radius: 6px; border-left: 3px solid var(--accent); }
.skill h4 { font-size: 15px; color: #fff; margin-bottom: 6px; font-weight: 600; }
.skill p { font-size: 13px; color: var(--ink-soft); }

.clients { display: flex; flex-wrap: wrap; gap: 10px; }
.client {
  background: #23303a; color: #fff;
  padding: 8px 16px; border-radius: 20px;
  font-size: 13px; font-weight: 600; border: 1px solid var(--border);
}

/* Teaching gallery */
.tg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tg-item { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.tg-item img {
  width: 100%; height: auto; aspect-ratio: 4/3;
  object-fit: cover; display: block; transition: transform .35s ease;
}
.tg-item:hover img { transform: scale(1.04); }
.tg-cap { padding: 8px 12px 10px; color: var(--ink-soft); font-size: 13px; line-height: 1.45; }

/* Book block */
.book-row { display: flex; gap: 18px; align-items: flex-start; }
.book-cover { width: 120px; height: auto; border-radius: 6px; flex-shrink: 0; box-shadow: 0 4px 12px rgba(0,0,0,0.4); }
.book-meta { flex: 1; }
.book-meta h4 { font-size: 15px; color: #fff; margin-bottom: 6px; }
.book-meta .book-author { color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.book-meta .book-isbn { color: var(--muted); font-size: 12px; font-family: monospace; margin-bottom: 8px; }
.book-meta p { color: var(--ink-soft); font-size: 14px; margin-bottom: 8px; }
.book-rating { margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.rating-stars { color: var(--accent); font-size: 14px; letter-spacing: 2px; }
.rating-text { color: var(--muted); font-size: 12px; }
.rating-text strong { color: var(--accent); font-size: 14px; }
.book-reviews { margin: 10px 0 12px; display: flex; flex-direction: column; gap: 8px; }
.review-item {
  margin: 0; padding: 8px 12px;
  background: var(--bg-elevated);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
}
.review-item p { font-size: 13px; line-height: 1.5; color: var(--ink-soft); margin-bottom: 4px; font-style: italic; }
.review-item cite { font-style: normal; font-size: 11px; color: var(--muted); }
.book-buy a {
  display: inline-block; background: var(--accent); color: #0f1111;
  padding: 9px 16px; border-radius: 6px;
  font-weight: 700; font-size: 13px; margin-right: 8px; margin-top: 4px;
  text-decoration: none;
}
.book-buy a:hover { background: var(--accent-hover); }
.book-buy a.secondary { background: #37475a; color: #fff; }
.book-buy a.secondary:hover { background: #485769; color: #fff; }

/* QR section */
.qr-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 28px; }
.qr-section h3 { font-size: 18px; color: #fff; margin-bottom: 14px; font-weight: 700; }
.qr-section p { color: var(--ink-soft); font-size: 13px; margin-bottom: 10px; }
.qr-img { width: 200px; height: 200px; border-radius: 8px; margin-top: 14px; border: 1px solid var(--border); display: block; }

/* =========================================================
   Blog · 文章页
   ========================================================= */
.article-page {
  background: var(--bg);
  color: var(--ink-soft);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.article-page .article-wrap {
  max-width: 780px; margin: 0 auto; padding: 32px 20px 64px;
  line-height: 1.85; font-size: 17px;
}
.article-page h1 {
  color: var(--accent); font-size: 32px; margin-bottom: 8px;
  line-height: 1.25;
}
.article-page h2 {
  color: var(--accent); font-size: 22px; margin-top: 36px;
  border-top: 1px solid var(--border-soft); padding-top: 24px;
}
.article-page h3 { color: var(--link); font-size: 18px; margin-top: 24px; }
.article-page .article-meta {
  color: var(--muted); font-size: 14px; margin-bottom: 24px;
  display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center;
}
.article-page .article-meta .meta-source { color: var(--link); }
.article-page blockquote {
  border-left: 4px solid var(--accent); padding: 10px 16px;
  margin: 20px 0; background: var(--bg-card); color: var(--ink-soft);
  border-radius: 0 6px 6px 0;
}
.article-page blockquote em { color: var(--link); font-style: normal; display: block; margin-top: 8px; font-size: 14px; }
.article-page .quote-en {
  background: var(--bg-soft); padding: 12px 16px;
  border-left: 3px solid var(--link); margin: 16px 0;
  color: var(--ink-soft); font-size: 15px;
  border-radius: 0 4px 4px 0;
}
.article-page hr { border: none; border-top: 1px solid var(--rule); margin: 32px 0; }
.article-page .article-source-box {
  background: var(--bg-paper); border: 1px solid var(--border);
  border-left: 3px solid var(--link); border-radius: 4px;
  padding: 14px 18px; margin: 24px 0; font-size: 14px; color: var(--ink-soft);
}
.article-page .article-source-box strong { color: var(--accent); }

/* 上一篇 / 下一篇 */
.article-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--rule);
}
.article-nav-link {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 14px 18px;
  text-decoration: none; color: var(--ink-soft);
  transition: border-color .15s, transform .15s;
}
.article-nav-link:hover { border-color: var(--accent); transform: translateY(-1px); color: var(--ink); text-decoration: none; }
.article-nav-link .label {
  font-size: 11px; color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 4px; display: block;
}
.article-nav-link .title { color: var(--accent); font-size: 14px; font-weight: 700; }
.article-nav-link.is-disabled { opacity: 0.4; pointer-events: none; }

/* Tag chip */
.chip {
  display: inline-block; background: var(--bg-soft); color: var(--link);
  font-size: 12px; padding: 2px 8px; border-radius: 4px; margin-right: 6px;
}

/* =========================================================
   Blog Index 列表卡
   ========================================================= */
.post-list { display: flex; flex-direction: column; gap: 16px; }
.post-card {
  background: var(--bg-card); padding: 20px; border-radius: 8px;
  border-left: 4px solid var(--accent); transition: transform .2s, border-color .2s;
}
.post-card:hover { transform: translateX(4px); border-left-color: var(--link); }
.post-card h3 { margin: 0 0 8px; font-size: 19px; }
.post-card h3 a { color: var(--accent); text-decoration: none; }
.post-card h3 a:hover { color: var(--link); }
.post-meta { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.post-card p { color: var(--ink-soft); font-size: 14px; line-height: 1.65; margin: 8px 0 0; }

/* =========================================================
   404 页
   ========================================================= */
.error-page {
  min-height: 60vh; display: flex; align-items: center; justify-content: center;
  padding: 80px 20px; text-align: center;
}
.error-page h1 { font-size: 96px; color: var(--accent); margin-bottom: 8px; font-weight: 800; }
.error-page h2 { font-size: 24px; color: #fff; margin-bottom: 16px; }
.error-page p { color: var(--muted); max-width: 520px; margin: 0 auto 28px; }
.error-page .error-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* =========================================================
   通用 · 响应式
   ========================================================= */
@media (max-width: 1100px) {
  .process { grid-template-columns: repeat(2, 1fr); }
  .process-step:nth-child(n+3)::before { /* keep counter */ }
}

@media (max-width: 900px) {
  .site-nav { display: none; flex-direction: column; align-items: stretch; gap: 0;
    width: 100%; background: var(--bg-card); padding: 8px 0;
    border-top: 1px solid var(--border); margin-top: 8px; }
  .site-nav.is-open { display: flex; }
  .site-nav-link { padding: 10px 14px; border-radius: 0; }
  .site-nav-toggle { display: inline-block; margin-left: auto; }
  .site-header-inner { flex-wrap: wrap; height: auto; padding: 12px 0; gap: 10px; }
  .site-nav-spacer { display: none; }

  .profile-hero { grid-template-columns: 1fr; padding: 24px; text-align: center; }
  .profile-hero img { width: 200px; height: 200px; margin: 0 auto; }
  .timeline-item { grid-template-columns: 1fr; gap: 6px; }
  .tg-grid { grid-template-columns: repeat(2, 1fr); }
  .tpl-card { grid-template-columns: 1fr; }
  .home-templates .tpl-card { grid-template-columns: 1fr auto; }
  .home-templates .tpl-card .tpl-actions { grid-column: 1 / -1; }
  .home-templates .tpl-card .tpl-actions a { width: 100%; text-align: center; }
  .product { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .promo-grid { grid-template-columns: 1fr; text-align: center; }
  .book-row { flex-direction: column; }
  .article-nav { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .page-hero h1, .page-head h1 { font-size: 30px; }
  .page-hero .lede { font-size: 15px; }
  .process { grid-template-columns: 1fr; }
  .tg-grid { grid-template-columns: 1fr; }
}

/* 打印 / 无障碍 */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
