/* ============================================================
   寻源 · 起名网站 全局样式
   新中式 · 青绿米白 ｜ 移动优先 + 桌面断点
   ============================================================ */

/* ---------- 设计 Token ---------- */
:root {
  --green: #3E6B5E;
  --green-deep: #2F5147;
  --green-light: #DCE8E1;
  --cream: #FAF7F0;
  --ink: #2E2B26;
  --ink-2: #55524A;
  --gray: #6B675F;
  --gray-2: #8A867D;
  --gray-3: #B4B0A6;
  --gold: #B79A5B;
  --cinnabar: #C0524A;
  --white: #FFFFFF;
  --card-border: rgba(62, 107, 94, 0.14);
  --card-border-strong: rgba(62, 107, 94, 0.4);

  --font-kai: 'LXGW WenKai', 'STKaiti', 'KaiTi', 'Kaiti SC', serif;
  --font-serif: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', 'SimSun', serif;
  --font-sans: 'Source Han Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  --shadow-card: 0 8px 24px rgba(62, 107, 94, 0.10), 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-float: 0 12px 32px rgba(62, 107, 94, 0.16), 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-btn: 0 6px 16px rgba(47, 81, 71, 0.35);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-serif);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ---------- 布局骨架 ---------- */
.page {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: 120px; /* 为底部导航留位 */
  background: var(--cream);
}
.section { padding: 40px 24px; }
.section-title {
  font-family: var(--font-kai);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.section-sub {
  font-size: 13px;
  color: var(--gray-2);
  margin-bottom: 18px;
}

/* ---------- 状态栏（移动端模拟） ---------- */
.statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 56px;
  padding: 0 24px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
}
.statusbar-icons { display: flex; align-items: center; gap: 4px; }

/* ---------- 组件：按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 34px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  transition: transform .15s, box-shadow .15s, opacity .15s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #4A7A6C 0%, var(--green) 45%, var(--green-deep) 100%);
  box-shadow: var(--shadow-btn);
}
.btn-secondary {
  color: var(--green);
  background: #fff;
  border: 1.5px solid var(--green);
}
.btn-gold {
  color: #fff;
  background: var(--gold);
  box-shadow: 0 6px 16px rgba(183, 154, 91, .35);
}
.btn-block { display: flex; width: 100%; }
.btn-sm { height: 40px; padding: 0 20px; font-size: 14px; }

/* ---------- 组件：标签 / 徽章 / 印章 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 14px;
  background: var(--green-light);
  color: var(--green-deep);
  font-family: var(--font-sans);
  font-size: 12px;
}
.tag-gold {
  background: rgba(183, 154, 91, .16);
  color: #9A7F45;
}
.badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 12px;
  border-radius: 12px;
  background: var(--gold);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
}
.seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--cinnabar);
  color: #fff;
  font-family: var(--font-kai);
  font-size: 18px;
  font-weight: 700;
  flex: none;
}
.seal-green { background: var(--green); }

/* ---------- 组件：卡片 ---------- */
.card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-card);
}
.card-flat { box-shadow: none; }

/* ---------- 组件：底部导航（移动端胶囊） ---------- */
.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: 12px 21px 21px;
  z-index: 100;
  pointer-events: none;
}
.tabbar-pill {
  pointer-events: auto;
  display: flex;
  height: 62px;
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(62, 107, 94, .15);
  border-radius: 36px;
  padding: 4px;
  box-shadow: 0 10px 30px rgba(46, 43, 38, .12);
}
.tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 26px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--gray-2);
  transition: background .2s, color .2s;
}
.tab.active {
  background: var(--green);
  color: #fff;
  font-weight: 500;
}

/* ---------- 顶部导航（桌面端） ---------- */
.topnav-desktop {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
}
.topnav-desktop .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-kai);
  font-size: 22px;
  font-weight: 700;
}
.topnav-desktop .menu { display: flex; gap: 28px; align-items: center; }
.topnav-desktop .menu a {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--gray-2);
}
.topnav-desktop .menu a.active { color: var(--green); font-weight: 500; }

/* ---------- 首屏 Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 20px 24px 36px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../img/shan-portrait.webp') center / cover no-repeat;
  opacity: .9;
}
.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(250,247,240,.55) 0%, rgba(250,247,240,.28) 55%, rgba(250,247,240,.96) 100%);
}
.hero-inner { position: relative; z-index: 1; }
.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hero-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-kai);
  font-size: 20px;
  font-weight: 700;
}
.hero-link {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--green);
  font-weight: 500;
}
.hero-body { padding-top: 44px; }
.hero-headline {
  font-family: var(--font-kai);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}
.hero-headline .accent {
  display: block;
  font-size: 30px;
  font-weight: 400;
  color: var(--green);
}
.hero-sub {
  margin-top: 12px;
  font-size: 14px;
  color: var(--gray);
  max-width: 320px;
}
.hero-cta { margin-top: 22px; }
.hero-note {
  margin-top: 10px;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--gray-2);
}
.hero-preview { margin-top: 26px; }
.hero-preview-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}
.hero-preview-row { display: flex; gap: 10px; }
.hero-mini {
  flex: 1;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-card);
}
.hero-mini .name {
  font-family: var(--font-kai);
  font-size: 22px;
  font-weight: 700;
}
.hero-mini .src {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--gray-2);
  margin-top: 4px;
}

/* ---------- 名字卡片瀑布 ---------- */
.name-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.name-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-card);
}
.name-card .name { font-family: var(--font-kai); font-size: 24px; font-weight: 700; }
.name-card .src {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--green);
  margin-top: 4px;
}
.name-card .verse {
  font-size: 12px;
  color: var(--gray);
  margin-top: 6px;
}

/* ---------- 问卷表单 ---------- */
.step-hint {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--green);
  font-weight: 500;
}
.form-title {
  font-family: var(--font-kai);
  font-size: 26px;
  font-weight: 700;
  margin: 8px 0 4px;
}
.form-sub { font-size: 13px; color: var(--gray-2); margin-bottom: 18px; }
.field { margin-bottom: 16px; }
.field-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.input {
  display: flex;
  align-items: center;
  width: 100%;
  height: 52px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid rgba(62, 107, 94, .18);
  border-radius: 12px;
  font-size: 14px;
  color: var(--ink);
}
.input::placeholder { color: var(--gray-3); }
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; }
.pill {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(62, 107, 94, .18);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--gray);
  transition: all .15s;
}
.pill.selected {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  font-weight: 500;
}
.form-note {
  margin-top: 12px;
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--gray-3);
  text-align: center;
}

/* ---------- 源流选择器 ---------- */
.origin-hint {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--green);
  font-weight: 500;
  margin-bottom: 12px;
}
.origin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.origin-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 12px;
  text-align: left;
  transition: all .15s;
}
.origin-card .t {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.origin-card .s {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--gray-2);
  margin-top: 4px;
}
.origin-card.selected {
  background: var(--green-light);
  border: 2px solid var(--green);
}
.origin-card.selected .t { color: var(--green-deep); }
.origin-card.gold {
  background: #FDFBF5;
  border: 1px solid rgba(183, 154, 91, .5);
}
.origin-card.gold .t { color: #9A7F45; }

/* ---------- 套餐矩阵 ---------- */
.plan-list { display: flex; flex-direction: column; gap: 12px; }
.plan {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
}
.plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.plan-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-kai);
  font-size: 19px;
  font-weight: 700;
}
.plan-price {
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 700;
  color: var(--green);
}
.plan-price.gold { color: var(--gold); }
.plan-desc {
  font-size: 12px;
  color: var(--gray);
  margin: 10px 0 12px;
}
.plan.recommended {
  border: 2px solid var(--green);
  box-shadow: var(--shadow-float);
}

/* ---------- 大师介绍 ---------- */
.master-avatar {
  position: relative;
  height: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-light), #C6D9CE);
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
}
.master-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.master-avatar figcaption {
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-size: 11px;
  font-family: var(--font-sans);
  color: #fff;
  background: rgba(46, 43, 38, 0.55);
  border-radius: 999px;
  padding: 3px 12px;
  letter-spacing: 1px;
}
.master-badges { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.master-head { text-align: center; margin-bottom: 16px; }
.master-head .t { font-family: var(--font-kai); font-size: 28px; font-weight: 700; }
.master-head .s { font-size: 13px; color: var(--gold); margin-top: 2px; }
.master-intro { font-size: 14px; color: var(--ink); }
.master-intro p + p { margin-top: 10px; }
.quote-card {
  margin-top: 18px;
  background: var(--green-light);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-align: center;
}
.quote-card .q {
  font-family: var(--font-kai);
  font-size: 17px;
  font-weight: 700;
  color: var(--green-deep);
}
.quote-card .who { font-size: 12px; color: var(--green); margin-top: 8px; }
.master-sign {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
}
.master-sign .sig {
  font-family: var(--font-kai);
  font-size: 18px;
  font-weight: 700;
}

/* ---------- 灵感文章 ---------- */
.article-list { display: flex; flex-direction: column; gap: 14px; }
.article {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 14px;
}
.article-cover {
  height: 90px;
  border-radius: 12px;
  margin-bottom: 10px;
}
.article-cover.c1 { background: linear-gradient(90deg, #DCE8E1, #6B998A); }
.article-cover.c2 { background: linear-gradient(90deg, #E3EBD8, #4C7565); }
.article-cover.c3 { background: linear-gradient(90deg, #FAF3E0, #B79A5B); }
.article .t { font-size: 16px; font-weight: 600; }
.article .d { font-size: 13px; color: var(--gray); margin-top: 6px; }
.article .src { font-family: var(--font-sans); font-size: 11px; color: var(--green); margin-top: 8px; }

/* ---------- 证言 / FAQ ---------- */
.witness {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
}
.witness .w { font-size: 14px; color: var(--ink); }
.witness .who { font-family: var(--font-sans); font-size: 12px; color: var(--gray-2); margin-top: 8px; }
.faq-title { font-family: var(--font-kai); font-size: 18px; font-weight: 700; margin: 20px 0 10px; }
.faq-item { margin-bottom: 12px; }
.faq-q {
  width: 100%;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-q .arrow { transition: transform .2s; color: var(--green); }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a {
  display: none;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--gray);
}
.faq-item.open .faq-a { display: block; }
.site-footer { text-align: center; padding: 30px 24px 16px; }
.site-footer .brand { font-family: var(--font-kai); font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.site-footer .legal { font-family: var(--font-sans); font-size: 11px; color: var(--gray-3); }
.site-footer .legal a { color: var(--gray-3); }
.site-footer .legal a:hover { color: var(--green); }

/* ---------- 吾家页 ---------- */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.empty-logo {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.empty-state .t { font-family: var(--font-kai); font-size: 24px; font-weight: 700; }
.empty-state .d { font-size: 14px; color: var(--gray); max-width: 300px; }
.empty-state .link { font-family: var(--font-sans); font-size: 12px; color: var(--gray-2); }
.file-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow-float);
  margin-bottom: 14px;
}
.file-card .name {
  font-family: var(--font-kai);
  font-size: 40px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}
.file-tags { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.info-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 14px;
}
.info-card p { font-size: 13px; margin-bottom: 6px; }
.info-card p:last-child { margin-bottom: 0; }
.baby2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--green-light);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 4px;
}
.baby2 .t { font-size: 14px; font-weight: 600; color: var(--green-deep); }
.baby2 .go { font-family: var(--font-sans); font-size: 13px; color: var(--green); font-weight: 500; }
.deliver-zone { margin-bottom: 18px; }
.deliver-zone .z-title { font-size: 15px; font-weight: 600; color: var(--green); margin-bottom: 10px; }
.deliver-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.deliver-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 14px;
}
.deliver-card .t { font-size: 14px; font-weight: 600; }
.deliver-card .d { font-family: var(--font-sans); font-size: 11px; color: var(--gray-2); margin-top: 4px; }
.deliver-card .d.gold { color: var(--gold); }

/* ---------- 名篇占位 ---------- */
.coming-soon { text-align: center; padding: 80px 24px; display: flex; flex-direction: column; align-items: center; gap: 14px; }

/* ---------- 弹层（套餐/支付示意） ---------- */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(46, 43, 38, .45);
  z-index: 200;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.modal-mask.show { display: flex; }
.modal {
  width: 100%;
  max-width: 480px;
  background: var(--cream);
  border-radius: 24px 24px 0 0;
  padding: 28px 24px 40px;
  animation: slideUp .25s ease;
}
@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal .m-title { font-family: var(--font-kai); font-size: 22px; font-weight: 700; margin-bottom: 14px; }
.modal .m-close {
  position: absolute;
  right: 20px;
  top: 22px;
  font-size: 20px;
  color: var(--gray-2);
}
.modal .m-body { font-size: 14px; color: var(--gray); margin-bottom: 20px; }
.modal .m-price { font-family: var(--font-sans); font-size: 30px; font-weight: 700; color: var(--green); margin-bottom: 18px; }

/* ---------- 结果演示卡 ---------- */
.result-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow-float);
}
.result-card .name { font-family: var(--font-kai); font-size: 52px; font-weight: 700; }
.result-card .pinyin { font-family: var(--font-sans); font-size: 13px; color: var(--gray-2); margin-top: 4px; }
.result-card .verse { font-size: 13px; color: var(--gray); margin-top: 12px; }
.lock-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #F4F1E9;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 14px;
  color: var(--gray-2);
  font-size: 13px;
}
.lock-icon { flex: none; color: var(--gray-3); }

/* ---------- 通用工具 ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.center { text-align: center; }
.hidden { display: none !important; }

/* ---------- 桌面端断点 ---------- */
@media (min-width: 1024px) {
  .page { max-width: 1280px; padding-bottom: 60px; }
  .tabbar { display: none; }
  .statusbar { display: none; }
  .topnav-desktop { display: flex; }

  .hero { padding: 40px 80px 60px; border-radius: 0; }
  .hero-body { display: flex; gap: 60px; align-items: center; padding-top: 60px; }
  .hero-copy { flex: 0 0 560px; }
  .hero-headline { font-size: 64px; }
  .hero-headline .accent { font-size: 64px; }
  .hero-sub { font-size: 17px; max-width: 480px; }
  .hero-preview { margin-top: 0; flex: 1; }

  .section { padding: 60px 80px; max-width: 1280px; margin: 0 auto; }
  .section-title { font-size: 32px; }

  .name-grid { grid-template-columns: repeat(4, 1fr); }
  .origin-grid { grid-template-columns: repeat(4, 1fr); }

  .plan-list { flex-direction: row; gap: 16px; }
  .plan { flex: 1; padding: 24px 20px; }

  .article-list { flex-direction: row; }
  .article { flex: 1; }

  .deliver-grid { grid-template-columns: repeat(3, 1fr); }
  .witness-row { display: flex; gap: 14px; }
  .witness { flex: 1; }

  .modal { border-radius: 24px; margin-bottom: 60px; }
  .modal-mask { align-items: center; }
}

/* ---------- 名篇文章页 ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--gray-2);
  padding: 18px 24px 0;
}
.breadcrumb a { color: var(--gray-2); }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb .sep { color: var(--gray-3); }
.breadcrumb .cur { color: var(--green); }

.article-page { padding: 24px 24px 40px; }
.article-hero-img {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  display: block;
  background: var(--green-light);
}
.article-page h1 {
  font-family: var(--font-kai);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  margin: 20px 0 8px;
}
.article-meta {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--gray-2);
  margin-bottom: 22px;
}
.article-body { font-size: 15px; color: var(--ink-2); line-height: 1.9; }
.article-body h2 {
  font-family: var(--font-kai);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin: 28px 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--green);
}
.article-body h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--green-deep);
  margin: 20px 0 8px;
}
.article-body p { margin-bottom: 14px; }
.article-body ul, .article-body ol { padding-left: 22px; margin-bottom: 14px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--ink); }
.article-body .name-item {
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
}
.article-body .word {
  font-family: var(--font-kai);
  font-size: 24px;
  font-weight: 700;
  color: var(--green-deep);
  width: 56px;
  flex: none;
}
.article-body .word-desc { flex: 1; min-width: 200px; }
.article-callout {
  background: var(--green-light);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 14px;
  color: var(--green-deep);
  margin: 20px 0;
}
.article-cta {
  background: #fff;
  border: 1.5px solid var(--green);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  margin-top: 30px;
}
.article-cta .t { font-family: var(--font-kai); font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.article-cta .d { font-size: 13px; color: var(--gray); margin-bottom: 16px; }
.related {
  margin-top: 28px;
  border-top: 1px solid var(--card-border);
  padding-top: 20px;
}
.related .r-title { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.related a {
  display: block;
  padding: 10px 0;
  font-size: 14px;
  color: var(--green);
  border-bottom: 1px dashed var(--card-border);
}
.related a:last-child { border-bottom: none; }
.related a:hover { color: var(--green-deep); }

/* 文章列表卡片 */
.article-card {
  display: block;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .15s, box-shadow .15s;
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-float); }
.article-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background: var(--green-light);
}
.article-card .ac-body { padding: 16px; }
.article-card .ac-title {
  font-family: var(--font-kai);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.article-card .ac-desc { font-size: 13px; color: var(--gray); margin-bottom: 10px; }
.article-card .ac-tags { display: flex; gap: 8px; flex-wrap: wrap; }

@media (min-width: 1024px) {
  .article-page { max-width: 780px; margin: 0 auto; padding: 40px 24px 60px; }
  .article-hero-img { height: 320px; }
  .article-page h1 { font-size: 34px; }
  .article-body { font-size: 16px; }
  .article-list-desktop { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
}

/* ---------- 登录 / 注册 / 账号 ---------- */
.auth-page { padding: 26px 24px 40px; min-height: 100vh; }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; font-family: var(--font-kai); font-size: 22px; font-weight: 700; color: var(--ink); }
.auth-headline { font-family: var(--font-kai); font-size: 26px; font-weight: 700; color: var(--ink); margin: 0; }
.auth-sub { font-size: 13px; color: #8A867D; font-family: var(--font-serif); margin: 6px 0 14px; }
.auth-tabs { display: flex; gap: 10px; margin-bottom: 2px; }
.auth-tab { padding: 10px 20px; border-radius: 22px; font-size: 14px; font-family: var(--font-sans); color: #6B675F; background: #fff; border: 1px solid rgba(62,107,94,.18); cursor: pointer; }
.auth-tab.active { background: var(--green); color: #fff; border-color: var(--green); font-weight: 500; }
.auth-field { display: flex; align-items: center; background: #fff; border: 1px solid rgba(62,107,94,.18); border-radius: 12px; height: 52px; padding: 0 16px; margin-top: 12px; }
.auth-field input { flex: 1; border: none; outline: none; font-size: 14px; font-family: var(--font-serif); color: var(--ink); background: transparent; width: 100%; min-width: 0; }
.auth-field input::placeholder { color: #B4B0A6; }
.auth-code-row { display: flex; gap: 10px; }
.auth-code-row .auth-field { flex: 1; }
.auth-code-btn { width: 112px; flex: none; height: 52px; margin-top: 12px; border-radius: 12px; border: none; background: var(--green-light); color: var(--green-deep); font-size: 13px; font-family: var(--font-sans); cursor: pointer; }
.auth-code-btn:disabled { background: #ECE7DC; color: #B4B0A6; cursor: not-allowed; }
.auth-wx { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 52px; margin-top: 14px; background: #fff; border: 1px solid rgba(62,107,94,.2); border-radius: 12px; font-size: 15px; color: var(--ink); font-family: var(--font-sans); cursor: pointer; }
.auth-agree { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; font-size: 12px; color: var(--gray); font-family: var(--font-sans); line-height: 1.6; cursor: pointer; }
.auth-agree .box { width: 18px; height: 18px; border-radius: 4px; border: 1.5px solid var(--green); flex: none; cursor: pointer; position: relative; background: #fff; margin-top: 1px; }
.auth-agree .box.checked { background: var(--green); }
.auth-agree .box.checked::after { content: ''; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.auth-agree a { color: var(--green); }
.auth-switch { display: block; text-align: center; margin-top: 16px; font-size: 13px; font-family: var(--font-sans); color: var(--green); }
.auth-note { text-align: center; font-size: 11px; color: #B4B0A6; font-family: var(--font-sans); margin-top: 10px; }
.auth-note a { color: #B4B0A6; }
.auth-icp { text-align: center; font-size: 11px; color: #B4B0A6; font-family: var(--font-sans); margin-top: 6px; }
.auth-icp a { color: #B4B0A6; }

/* 吾家门控 */
.auth-gate { min-height: calc(100vh - 200px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 30px 24px; text-align: center; }
.auth-gate .logo-badge { width: 88px; height: 88px; border-radius: 24px; background: var(--green-light); display: flex; align-items: center; justify-content: center; }
.auth-gate h2 { font-family: var(--font-kai); font-size: 24px; font-weight: 700; color: var(--ink); margin: 0; }
.auth-gate .d { font-size: 14px; color: var(--gray); font-family: var(--font-serif); max-width: 300px; }
.auth-gate .note { font-size: 11px; color: #B4B0A6; font-family: var(--font-sans); }
.auth-gate .btn { width: 100%; max-width: 342px; }
.auth-gate .guest-link { font-size: 13px; color: var(--green); font-family: var(--font-sans); background: none; border: none; cursor: pointer; margin-top: 4px; }

/* 登录态工具条 */
.profile-strip { display: flex; align-items: center; justify-content: space-between; padding: 16px 0 2px; font-size: 13px; font-family: var(--font-sans); color: var(--green-deep); }
.link-btn { background: none; border: none; color: #8A867D; font-size: 12px; font-family: var(--font-sans); cursor: pointer; padding: 0; }
.link-btn:hover { color: var(--cinnabar); }
.guest-bar { background: var(--green-light); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 12px; color: var(--green-deep); font-family: var(--font-sans); margin-bottom: 4px; }
.login-tip { background: var(--green-light); border-radius: var(--radius-md); padding: 12px 14px; font-size: 13px; color: var(--green-deep); font-family: var(--font-serif); margin-top: 14px; }
.login-tip a { color: var(--green); font-family: var(--font-sans); font-weight: 500; }
.toast { position: fixed; left: 50%; bottom: 130px; transform: translateX(-50%) translateY(20px); background: rgba(46,43,38,.92); color: #fff; font-size: 13px; font-family: var(--font-sans); padding: 10px 18px; border-radius: 999px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 999; max-width: 80vw; text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.topnav-desktop .menu .login-link { color: #8A867D; font-size: 14px; font-family: var(--font-sans); }
.topnav-desktop .menu .login-link:hover { color: var(--green); }
.hero-links { display: flex; align-items: center; gap: 16px; }
.hero-links .hero-link { font-size: 14px; }

@media (min-width: 1024px) {
  .auth-page { max-width: 420px; margin: 0 auto; padding-top: 80px; }
  .auth-gate { min-height: calc(100vh - 160px); }
}

/* ---------- 注册分步（高级感升级） ---------- */
.reg-steps { display: flex; align-items: center; gap: 8px; margin: 2px 0 14px; }
.step-dot { width: 8px; height: 8px; border-radius: 50%; background: #D8D2C4; transition: all .3s; flex: none; }
.step-dot.active { width: 26px; border-radius: 4px; background: var(--green); }
.step-dot.done { background: var(--green); }
.reg-step .step-hint { font-size: 12px; color: var(--green); font-family: var(--font-sans); margin: 0 0 4px; }
.back-link { display: block; margin: 14px auto 0; background: none; border: none; font-size: 13px; font-family: var(--font-sans); color: #8A867D; cursor: pointer; padding: 0; }
.back-link:hover { color: var(--green); }
.pwd-meter { display: flex; gap: 6px; margin-top: 10px; }
.pwd-meter i { flex: 1; height: 6px; border-radius: 3px; background: #ECE7DC; transition: background .3s; }
.pwd-meter i.on { background: #8FBF9F; }
.pwd-meter i.on.strong { background: var(--green); }
.pwd-tip { font-size: 11px; color: #8A867D; font-family: var(--font-sans); margin-top: 6px; }
.pwd-tip.good { color: var(--green); }
.forgot-link { display: block; text-align: right; font-size: 12px; color: #8A867D; font-family: var(--font-sans); background: none; border: none; cursor: pointer; padding: 0; margin-top: 6px; }
.forgot-link:hover { color: var(--green); }
.trust-line { text-align: center; font-size: 11px; color: #B4B0A6; font-family: var(--font-sans); margin-top: 12px; }
.auth-field:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(62, 107, 94, 0.12); }
.auth-wx.disabled { opacity: .6; cursor: not-allowed; }
.reg-step .auth-switch { margin-top: 14px; }
.reg-step .trust-line { text-align: left; }

/* 注册完成 · 欢迎过渡 */
.welcome-screen { position: fixed; inset: 0; background: var(--cream); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; z-index: 1000; }
.welcome-screen.hidden { display: none; }
.welcome-screen .seal-lg { width: 96px; height: 96px; border-radius: 26px; background: var(--green); color: #fff; font-family: var(--font-kai); font-size: 38px; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-btn); animation: welcomeIn .6s ease both; }
.welcome-screen h2 { font-family: var(--font-kai); font-size: 26px; color: var(--ink); margin: 6px 0 0; }
.welcome-screen p { font-size: 14px; color: var(--gray); font-family: var(--font-serif); margin: 0; }
@keyframes welcomeIn { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- 密保找回 ---------- */
.select-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' stroke='%238A867D' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}
.select-input option { color: var(--ink); }
.qa-card { background: var(--green-light); border-radius: var(--radius-md); padding: 16px; margin-top: 14px; }
.qa-card .q-label { font-size: 11px; color: var(--green); font-family: var(--font-sans); margin: 0 0 6px; }
.qa-card .q-text { font-family: var(--font-serif); font-size: 17px; font-weight: 600; color: var(--green-deep); margin: 0; }
.forgot-link { text-decoration: none; }

/* ---------- 购买动态浮层 ---------- */
.buy-pop {
  position: fixed;
  left: 14px;
  bottom: 96px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 10px 12px 10px 10px;
  max-width: 300px;
  box-shadow: var(--shadow-float);
  animation: buyIn .4s ease both;
}
.buy-pop.hidden { display: none; }
.bp-avatar {
  width: 36px; height: 36px; flex: none;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green-deep);
  font-family: var(--font-kai);
  font-size: 16px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.bp-body { min-width: 0; }
.bp-who { font-size: 11px; color: #8A867D; font-family: var(--font-sans); margin: 0; }
.bp-what { font-size: 13px; color: var(--ink); font-family: var(--font-serif); font-weight: 600; margin: 2px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-close { background: none; border: none; color: #B4B0A6; font-size: 16px; cursor: pointer; padding: 2px 4px; flex: none; }
.bp-close:hover { color: var(--ink); }
@keyframes buyIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (min-width: 1024px) {
  .buy-pop { left: 28px; bottom: 40px; }
}

/* ---------- 名篇分类宫格 ---------- */
.cat-group { font-size: 15px; font-weight: 600; color: var(--green); font-family: var(--font-serif); margin: 18px 0 10px; }
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cat-card {
  display: flex; flex-direction: column; gap: 3px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: border-color .2s, background .2s;
}
.cat-card:hover { border-color: var(--card-border-strong); }
.cat-card.active { border: 1.5px solid var(--green); background: var(--green-light); }
.cat-card .cat-t { font-family: var(--font-kai); font-size: 16px; font-weight: 700; color: var(--ink); }
.cat-card .cat-s { font-size: 11px; color: var(--gray); font-family: var(--font-serif); }
.cat-card .cat-n { font-size: 11px; color: var(--green); }
.cat-empty { text-align: center; font-size: 13px; color: #8A867D; font-family: var(--font-serif); padding: 30px 0; background: var(--green-light); border-radius: var(--radius-md); margin-top: 12px; }
@media (min-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
}

/* 名篇无封面占位 */
.article-card-ph {
  height: 180px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--green-light), #C6D9CE);
  color: var(--green-deep);
  font-family: var(--font-kai);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 3px;
}
