/* 霞鹜文楷 Lite（本地托管，OFL 开源免费商用）：温润手写楷书，书卷气浓，覆盖 2.6 万汉字 */
@font-face {
  font-family: "WenKai";
  src: url("../fonts/lxgw-wenkai.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #17352d;
  --ink-2: #244a3f;
  --ink-dark: #0d221d;
  --jade: #22644f;
  --jade-2: #3d8c6e;
  --jade-3: #dcece4;
  --gold: #bd9952;
  --gold-2: #efe2bd;
  --gold-3: #f7eccb;
  --vermilion: #c23a2b;
  --paper: #fffdf8;
  --cream: #f6f2e9;
  --rice: #faf5e9;
  --soft: #edf2ed;
  --line: #dfe6df;
  --line-gold: #e5d4a6;
  --muted: #6b7872;
  --white: #ffffff;
  --danger: #9b4d42;
  --shadow: 0 24px 70px rgba(23, 53, 45, .09);
  --shadow-soft: 0 12px 32px rgba(23, 53, 45, .07);
  --radius: 24px;
  --radius-sm: 16px;
  --container: 1180px;
  --title-font: "中宋体", "STZhongsong", "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --serif: "中宋体", "STZhongsong", "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --brush: "Ma Shan Zheng", "WenKai", "Noto Serif SC", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* ===== 主题语义变量（浅色=默认宣纸风；深色见文件末尾 data-theme="dark" 覆写） ===== */
  --surface: var(--white);              /* 卡片表面 */
  --input-bg: #fbfcf9;                  /* 输入框底色 */
  --header-bg: rgba(255,253,248,.84);   /* 顶栏/侧栏底 */
  --btn-primary-bg: var(--ink);
  --btn-primary-bg-hover: var(--jade);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, h4, h5, h6 { font-family: var(--title-font); font-weight: 700; line-height: 1.25; letter-spacing: .01em; }

/* 页面标题统一使用中宋体优先的字体栈 */
.hero h1 .lang-zh,
.page-hero h1 .lang-zh,
.section-head h2 .lang-zh,
.cta-band h2 .lang-zh,
.split-copy h2 .lang-zh {
  font-family: var(--title-font);
  font-weight: 400;
  letter-spacing: .06em;
}

/* ===== 中国风通用装饰 ===== */
/* 宣纸纹理背景 */
.paper-texture, body {
  background-image:
    radial-gradient(ellipse at 20% 15%, rgba(189,153,82,.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 85%, rgba(34,100,79,.03) 0%, transparent 50%);
}

/* 回纹/云纹装饰边框 — 用纯 CSS 模拟 */
.cloud-border {
  position: relative;
}
.cloud-border::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid var(--line-gold);
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 3px var(--paper),
    inset 0 0 0 4px var(--line-gold);
}

/* 中国风分隔竖线 */
.cn-divider {
  width: 1px;
  height: 1.4em;
  background: linear-gradient(to bottom, transparent, var(--gold) 20%, var(--gold) 80%, transparent);
  margin: 0 .6em;
  display: inline-block;
  vertical-align: middle;
}

/* 印章通用样式（圆形/方形） */
.seal, .seal-square {
  font-family: var(--brush);
}

/* 水墨晕染背景效果 */
.ink-wash {
  position: relative;
}
.ink-wash::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 60% 40% at 75% 30%, rgba(23,53,45,.08), transparent 70%),
    radial-gradient(ellipse 50% 50% at 20% 70%, rgba(189,153,82,.06), transparent 70%);
}
h1 { font-size: clamp(2.75rem, 4.4vw, 4.15rem); margin-bottom: 24px; }
h2 { font-size: clamp(2rem, 4vw, 3.55rem); margin-bottom: 18px; }
h3 { font-size: 1.35rem; margin-bottom: 10px; }
p { margin-bottom: 1em; }
small { font-size: .82rem; }
.container { width: min(calc(100% - 40px), var(--container)); margin: 0 auto; }
.narrow { max-width: 880px; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 999; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 16px; }
.lang-en { display: none !important; }
body.is-en .lang-zh { display: none !important; }
body.is-en .lang-en { display: inline !important; }
body.is-en .lang-en.block { display: block !important; }
.eyebrow { margin: 0 0 13px; color: var(--jade); font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.lede { color: var(--muted); font-size: 1.08rem; }
.muted { color: var(--muted); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); border-bottom: 1px solid rgba(223,230,223,.8); backdrop-filter: blur(18px); }
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand-mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--vermilion), #a82f22);
  color: #fef5d4;
  font-family: var(--brush);
  font-size: 1.55rem;
  box-shadow: 0 6px 16px rgba(194,58,43,.28), inset 0 0 8px rgba(255,255,255,.1);
  border: 1px solid rgba(254,245,212,.2);
  transform: rotate(-3deg);
}
.brand-copy { display: grid; line-height: 1.1; }
.brand-copy strong { font-family: var(--brush); font-size: 1.08rem; letter-spacing: .04em; color: var(--ink); }
.brand-copy small { color: var(--muted); font-size: .66rem; letter-spacing: .02em; margin-top: 5px; }
.nav-links { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--ink-2); font-size: .9rem; font-weight: 650; transition: color .2s ease; padding-bottom: 4px; }
.nav-links a:hover { color: var(--vermilion); }
.nav-links a[aria-current="page"] { color: var(--jade); position: relative; }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--vermilion));
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle, .nav-theme-toggle, .menu-toggle { border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 999px; min-width: 54px; height: 42px; padding: 0 14px; }
.lang-toggle:hover, .nav-theme-toggle:hover, .menu-toggle:hover { border-color: var(--jade); }
/* 侧栏主题按钮：浅色显☾（去深色）/深色显☀（回浅色），与 hollow·ops 同约定 */
.nav-theme-toggle { display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; line-height: 1; }
.nav-theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .nav-theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .nav-theme-toggle .icon-sun { display: inline; }
.menu-toggle { display: none; width: 44px; padding: 0; }
.menu-toggle span { display: block; width: 17px; height: 2px; margin: 4px auto; background: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent; font-size: .9rem; font-weight: 750; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--btn-primary-bg); color: #fff; box-shadow: 0 12px 26px rgba(23,53,45,.18); }
.btn-primary:hover { background: var(--btn-primary-bg-hover); box-shadow: 0 16px 30px rgba(34,100,79,.24); }
.btn-ghost { background: rgba(255,255,255,.56); border-color: rgba(23,53,45,.2); color: var(--ink); }
.btn-ghost:hover { background: var(--white); }
.btn-small { min-height: 40px; padding: 9px 16px; font-size: .8rem; }
.btn-card { width: 100%; margin-top: 12px; background: var(--soft); color: var(--ink); border-color: var(--line); }
.btn-card:hover { background: var(--ink); color: #fff; }
.text-link { display: inline-flex; margin-top: 4px; color: var(--jade); font-weight: 800; font-size: .9rem; }
.text-link:hover { color: var(--gold); }

/* Hero — 水墨山水风 */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 85% 20%, rgba(61,140,110,.15), transparent 60%),
    radial-gradient(ellipse 60% 50% at 15% 85%, rgba(189,153,82,.1), transparent 60%),
    linear-gradient(135deg, #fffdf8 0%, #f4f7f1 40%, #f8f1df 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .25;
  background-image:
    linear-gradient(rgba(23,53,45,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,53,45,.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}
/* 水墨远山装饰 */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 40%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 90% at 15% 100%, rgba(23,53,45,.12), transparent 70%),
    radial-gradient(ellipse 45% 80% at 55% 100%, rgba(34,100,79,.08), transparent 70%),
    radial-gradient(ellipse 50% 100% at 90% 100%, rgba(189,153,82,.07), transparent 70%);
}
.hero-orb { position: absolute; border-radius: 50%; filter: blur(4px); opacity: .5; }
.hero-orb-a { width: 340px; height: 340px; right: -120px; bottom: 80px; background: radial-gradient(circle, rgba(189,153,82,.25), transparent 68%); }
.hero-orb-b { width: 250px; height: 250px; left: -100px; top: 110px; background: radial-gradient(circle, rgba(61,140,110,.2), transparent 68%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(340px, .94fr); gap: 54px; align-items: center; padding: 92px 0 48px; }
.hero-copy { max-width: 710px; }
.hero h1 { color: var(--ink); }
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--jade);
  font-size: 1.333rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .02em;
}
.hero-eyebrow .lang-zh { font-size: 1.333rem; letter-spacing: .02em; }
.hero-eyebrow .lang-en { font-size: 1.35rem; letter-spacing: .1em; }
.hero h1 .lang-zh { font-family: var(--title-font); letter-spacing: .05em; }
.hero-lead { max-width: 640px; color: var(--muted); font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 38px; color: var(--muted); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.hero-meta b { display: block; margin-top: 6px; color: var(--ink); font-size: .92rem; letter-spacing: 0; text-transform: none; }
.hero-visual { position: relative; min-height: 520px; display: grid; place-items: center; }
.hero-visual > svg { width: min(100%, 560px); filter: drop-shadow(0 22px 32px rgba(23,53,45,.12)); animation: float 6s ease-in-out infinite; }

/* 印章 — 朱砂红中式印章 */
.seal {
  position: absolute;
  top: 24px;
  right: 16px;
  width: 116px;
  height: 116px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 2px solid var(--vermilion);
  border-radius: 50%;
  color: var(--vermilion);
  transform: rotate(-6deg);
  background: rgba(194, 58, 43, .04);
  box-shadow:
    0 4px 20px rgba(194, 58, 43, .15),
    inset 0 0 12px rgba(194, 58, 43, .08);
}
.seal span { font-family: var(--brush); font-size: 3.3rem; line-height: 1; font-weight: 400; }
.seal small { letter-spacing: .3em; font-size: .55rem; margin-left: .3em; opacity: .85; }

.visual-label {
  position: absolute;
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line-gold);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--ink-2);
  font-size: .78rem;
  font-weight: 750;
}
.label-one { left: 8%; top: 30%; }
.label-two { right: 6%; bottom: 25%; }
.partner-strip { position: relative; z-index: 1; margin-bottom: 30px; padding: 22px 24px; border: 1px solid rgba(23,53,45,.08); border-radius: var(--radius); background: rgba(255,255,255,.6); backdrop-filter: blur(12px); }
.partner-strip p { margin: 0 0 10px; color: var(--jade); font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.partner-strip-list { display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--ink-2); font-family: var(--serif); font-size: 1rem; }
.partner-strip-list span { position: relative; }
.partner-strip-list span:not(:last-child)::after { content: "·"; color: var(--gold); position: absolute; right: -15px; }
.partner-strip small { display: block; margin-top: 10px; color: var(--muted); }

/* Sections */
section[id], article[id] { scroll-margin-top: 98px; }
.section { padding: 108px 0; }
.section-soft { background: var(--cream); }
.section-dark { color: #eef5ef; background: var(--ink); }
.section-dark .lede, .section-dark p { color: rgba(238,245,239,.72); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 840px; margin-bottom: 46px; }
.section-head-light .eyebrow { color: #d9bd75; }
.section-head-light .lede { color: rgba(238,245,239,.72); }
.path-grid, .product-grid, .topic-grid, .partner-grid { display: grid; gap: 22px; }
.path-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.path-card { position: relative; overflow: hidden; padding: 34px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line-gold); box-shadow: var(--shadow-soft); }
.path-card::after { content: ""; position: absolute; width: 180px; height: 180px; right: -70px; bottom: -80px; border-radius: 50%; background: rgba(61,140,110,.08); }
.path-companion::after { background: rgba(189,153,82,.1); }
.path-top, .product-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 24px; }
.path-number, .product-index { color: var(--muted); font-family: var(--serif); font-size: 1.15rem; }
.path-card h3 { font-size: 1.75rem; margin-bottom: 14px; }
.path-card p { color: var(--muted); }
.pill { display: inline-flex; align-items: center; min-height: 34px; padding: 7px 16px; border-radius: 999px; font-size: .84rem; font-weight: 800; letter-spacing: .05em; }
.pill-green { color: #1d5c46; background: #e3f1e9; }
.pill-gold { color: #826321; background: #f7edcf; }
.pill-sand { color: #7e5e2d; background: #f3e8d4; }
.pill-blue { color: #315a72; background: #e2edf1; }
.check-list, .mini-list { list-style: none; padding: 0; margin: 22px 0 0; }
.check-list li, .mini-list li { position: relative; padding-left: 23px; margin: 10px 0; color: var(--ink-2); }
.check-list li::before, .mini-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(189,153,82,.13); }

/* Products */
.product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-card { display: flex; flex-direction: column; min-height: 100%; padding: 28px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line-gold); box-shadow: 0 10px 26px rgba(23,53,45,.04); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.product-card:hover { transform: translateY(-6px); border-color: rgba(189,153,82,.7); box-shadow: var(--shadow); }
.product-featured { background: linear-gradient(145deg, #fffefb, #f7f0dd); border-color: var(--gold); }
.classics-hero-copy { max-width: 1100px; margin: 0 auto; text-align: center; }
.classics-hero-title { margin-bottom: 0; font-size: clamp(2.2rem, 4.2vw, 3.9rem); white-space: nowrap; }
.classics-hero-subtitle { max-width: none; margin: 0 auto 16px; color: var(--ink-2); font-family: var(--serif); font-size: clamp(1.55rem, 2.95vw, 2.6rem); line-height: 1.3; }
.classics-heading { font-size: clamp(1.8rem, 3.2vw, 3rem); white-space: nowrap; }
.wellness-heading { font-size: clamp(1.7rem, 2.95vw, 2.75rem); white-space: nowrap; }
.wellness-audience-heading { font-size: clamp(1.65rem, 2.85vw, 2.75rem); white-space: nowrap; }
body.is-en .wellness-heading { white-space: normal; font-size: clamp(2rem, 4vw, 3.2rem); }
.classics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .classics-hero-title, .classics-heading, .wellness-heading, .wellness-audience-heading { white-space: normal; font-size: 2rem; } .classics-grid { grid-template-columns: 1fr; } }
.product-card h3 { font-size: 1.55rem; }
.product-sub { color: var(--jade); font-weight: 750; font-size: .88rem; margin-bottom: 15px; }
.product-card p { color: var(--muted); font-size: .94rem; }
.product-card .mini-list { margin-top: auto; padding-top: 16px; }
.product-card .mini-list li { font-size: .88rem; }
.teacher-recommend { display: grid; gap: 3px; margin-top: 20px; padding: 15px 16px; border-radius: 15px; background: var(--soft); border: 1px solid var(--line); }
.teacher-recommend strong { color: var(--ink); font-family: var(--serif); font-size: 1.1rem; }
.teacher-recommend small { color: var(--muted); line-height: 1.5; }
.teacher-badge { display: inline-flex; width: fit-content; margin-bottom: 3px; padding: 3px 8px; border-radius: 999px; color: var(--jade); background: var(--jade-3); font-size: .62rem; font-weight: 800; letter-spacing: .04em; }
.ai-qa-section { padding-bottom: 64px; }
.books-section { padding-top: 64px; }
.ai-chat-box { display: grid; grid-template-columns: 280px minmax(0, 1fr); max-width: 1120px; margin: 0 auto; overflow: hidden; border: 1px solid var(--line-gold); border-radius: 26px; background: var(--rice); box-shadow: var(--shadow); }
.ai-chat-portrait { position: relative; min-height: 100%; background: linear-gradient(180deg, #eef3ec, #e0ebe4); }
.ai-chat-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.ai-chat-portrait::after { content: ""; position: absolute; inset: 0; border-radius: 26px 0 0 26px; box-shadow: inset 0 0 0 1px rgba(189,153,82,.4); pointer-events: none; }
.ai-chat-portrait > span { position: absolute; left: 18px; bottom: 18px; padding: 5px 16px; border: 1px solid var(--line-gold); border-radius: 999px; color: #173f35; background: rgba(255,253,248,.92); font-family: var(--brush); font-size: 1.1rem; letter-spacing: .14em; }
.ai-chat-panel { display: flex; flex-direction: column; min-width: 0; }
.ai-chat-header { display: flex; align-items: center; gap: 14px; padding: 18px 22px; color: #fff; background: repeating-linear-gradient(135deg, rgba(255,255,255,.028) 0 2px, transparent 2px 9px), linear-gradient(135deg, #205e4c, #14382f); border-bottom: 2px solid var(--gold); }
.ai-chat-header div { display: grid; gap: 2px; }
.ai-chat-header strong { color: #f7eccf; font-family: var(--brush); font-size: 1.42rem; font-weight: 400; letter-spacing: .08em; text-shadow: 0 1px 0 rgba(0,0,0,.18); }
.ai-chat-header small { color: rgba(255,255,255,.72); font-size: .72rem; }
.ai-avatar, .chat-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; border-radius: 9px; color: #fdf4e4; background: radial-gradient(circle at 30% 22%, #d5614d, #b33a2a 72%); font-family: var(--serif); font-weight: 800; font-size: 1.15rem; box-shadow: 0 4px 10px rgba(162,46,33,.28), inset 0 0 0 2px rgba(253,244,228,.55), inset 0 0 0 3px rgba(162,46,33,.6); }
.ai-status { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 4px 11px; border-radius: 999px; color: #d9f1e4; background: rgba(255,255,255,.12); font-size: .68rem; }
.ai-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #7fd6a3; animation: aiPulse 2.2s infinite; }
@keyframes aiPulse { 0% { box-shadow: 0 0 0 0 rgba(127,214,163,.55); } 70% { box-shadow: 0 0 0 7px rgba(127,214,163,0); } 100% { box-shadow: 0 0 0 0 rgba(127,214,163,0); } }
.ai-chat-body { display: grid; align-content: start; gap: 14px; height: 442px; overflow-y: auto; padding: 24px 22px; scrollbar-width: thin; scrollbar-color: var(--line-gold) transparent; background: radial-gradient(1100px 280px at 82% -8%, rgba(189,153,82,.12), transparent 60%), linear-gradient(180deg, var(--paper), var(--rice)); }
.ai-chat-body::-webkit-scrollbar { width: 8px; }
.ai-chat-body::-webkit-scrollbar-thumb { border-radius: 999px; background: var(--line-gold); }
.ai-chat-body::-webkit-scrollbar-track { background: transparent; }
.chat-row { display: flex; gap: 10px; align-items: flex-start; animation: chatIn .35s ease both; }
@keyframes chatIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.chat-user { justify-content: flex-end; }
.chat-avatar { width: 32px; height: 32px; border-radius: 7px; font-size: .82rem; }
/* 艾老气泡：仿古花笺——宣纸肌理、描金双线框、左右一对中式框角 */
.chat-bubble { position: relative; max-width: 80%; padding: 15px 22px; border-radius: 14px 14px 14px 4px; color: #322d24; background: radial-gradient(130% 120% at 0% 0%, rgba(189,153,82,.12), transparent 55%), repeating-linear-gradient(0deg, rgba(122,91,42,.028) 0 1px, transparent 1px 5px), #fffdf4; border: 1px solid #d8c285; box-shadow: inset 0 0 0 4px #fbf3df, inset 0 0 0 5px rgba(189,153,82,.42), 0 10px 22px rgba(23,53,45,.09); font-family: "WenKai", var(--serif); font-size: 1.12rem; letter-spacing: .03em; line-height: 2; white-space: pre-line; }
.chat-bot .chat-bubble::before, .chat-bot .chat-bubble::after { content: ""; position: absolute; width: 11px; height: 11px; pointer-events: none; border-color: rgba(173,132,58,.75); border-style: solid; }
.chat-bot .chat-bubble::before { top: 9px; left: 9px; border-width: 1.5px 0 0 1.5px; }
.chat-bot .chat-bubble::after { bottom: 9px; right: 9px; border-width: 0 1.5px 1.5px 0; }
/* 访客气泡：深青绢帛，米色隶楷字 */
.chat-user .chat-bubble { padding: 12px 20px; border: 1px solid rgba(229,212,166,.5); border-radius: 14px 14px 4px 14px; color: #f5edd6; background: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 2px, transparent 2px 8px), linear-gradient(160deg, #2e7058, #1a4d3c); font-family: "WenKai", var(--serif); font-size: 1.08rem; letter-spacing: .03em; line-height: 1.8; box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), 0 8px 18px rgba(29,84,66,.22); }
.chat-typing { display: flex; align-items: center; gap: 6px; padding: 15px 18px; }
.chat-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: aiTyping 1.2s infinite ease-in-out; }
.chat-typing i:nth-child(2) { animation-delay: .18s; }
.chat-typing i:nth-child(3) { animation-delay: .36s; }
@keyframes aiTyping { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-5px); opacity: 1; } }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: 8px 10px; padding: 14px 22px 4px; background: var(--rice); border-top: 1px solid rgba(189,153,82,.28); }
.chat-suggestions button { border: 1px solid var(--line-gold); border-radius: 999px; padding: 8px 16px; color: var(--jade); background: var(--paper); font-family: "WenKai", var(--serif); font-size: 1rem; letter-spacing: .04em; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.chat-suggestions button:hover { border-color: var(--gold); color: var(--ink); background: var(--gold-3); }
.chat-suggestions button:disabled { opacity: .5; cursor: default; }
.ai-chat-composer { display: flex; gap: 10px; padding: 14px 22px 8px; background: var(--rice); }
.ai-chat-composer input { flex: 1; min-width: 0; border: 1px solid var(--line-gold); border-radius: 999px; padding: 13px 20px; color: var(--ink-2); background: var(--paper); font-family: "WenKai", var(--serif); font-size: 1.08rem; letter-spacing: .03em; }
.ai-chat-composer input::placeholder { color: #9aa39c; }
.ai-chat-composer input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(189,153,82,.2); }
.ai-chat-composer button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--gold); border-radius: 999px; padding: 0 28px; min-height: 46px; color: #f5ead0; background: linear-gradient(160deg, #2a7159, #173f35); font-family: var(--brush); font-size: 1.05rem; letter-spacing: .18em; font-weight: 400; cursor: pointer; transition: box-shadow .2s ease, filter .2s ease; }
.ai-chat-composer button:hover { box-shadow: 0 8px 18px rgba(23,63,53,.28); filter: brightness(1.06); }
.ai-chat-composer button:disabled { opacity: .55; cursor: wait; box-shadow: none; filter: none; }
.ai-chat-note { margin: 0; padding: 2px 22px 4px; color: var(--muted); background: var(--rice); font-size: .68rem; }
.ai-chat-disclaimer { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 8px 22px 16px; color: #8a6d3b; background: var(--rice); font-size: .69rem; line-height: 1.6; }
.ai-disclaimer-seal { display: inline-grid; place-items: center; flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px; color: #fdf3e7; background: var(--vermilion); font-family: var(--serif); font-size: .72rem; font-weight: 800; }
.chat-paywall { font-family: var(--sans); border-color: var(--line-gold); background: var(--gold-3); }
.chat-paywall p { margin: 0 0 12px; }
.chat-paywall-actions { display: grid; gap: 8px; max-width: 330px; }
.chat-paywall-actions .btn { min-height: 36px; padding: 7px 12px; font-size: .72rem; }
.paypal-option-label { margin: 6px 0 0; color: var(--ink-2); font-size: .74rem; font-weight: 750; }
.paypal-slot { min-height: 40px; }
.paypal-brand-button {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d4b44a;
  border-radius: 8px;
  background: #ffe48a;
  color: #1d1d1d;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  line-height: 1.5;
  transition: background .2s ease, border-color .2s ease;
}
.paypal-brand-button:hover { background: #ffda62; border-color: #bf9b2f; }
.paypal-brand-top, .paypal-brand-footer { display: block; }
.paypal-brand-card { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 7px 0; }
.paypal-card-icon { display: inline-block; width: 24px; height: 16px; border: 1px solid #876b20; border-radius: 3px; background: linear-gradient(180deg, #fff8d8 0 34%, #d9b84c 34% 58%, #fff8d8 58%); }

/* 会员方案"购买开通"按钮：覆盖在 PayPal 按钮之上，点击穿透直接弹出 PayPal */
.paypal-plan-slot {
  position: relative;
  min-height: 46px;
  margin-top: 12px;
}
.paypal-plan-slot iframe {
  display: block !important;
  width: 100% !important;
  min-height: 46px !important;
}
.paypal-overlay-btn {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 8px;
  background: var(--jade);
  color: #fff;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .08em;
  cursor: pointer;
  pointer-events: none; /* 让点击穿透到底层 PayPal 按钮，直接弹出 PayPal */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(23, 53, 45, .18);
}
.paypal-overlay-btn:hover { background: var(--jade); }
.paypal-direct-btn {
  width: 100%;
  background: var(--jade);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .08em;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(23, 53, 45, .18);
}
.paypal-direct-btn:hover { filter: brightness(1.08); }
.membership-pay-success {
  margin: 10px 0 0;
  color: var(--jade);
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.5;
}
@media (max-width: 840px) { .ai-chat-box { grid-template-columns: 1fr; } .ai-chat-portrait { height: 260px; } .ai-chat-portrait img { object-position: center 24%; } .ai-chat-portrait::after { border-radius: 26px 26px 0 0; } }
@media (max-width: 560px) { .ai-chat-body { height: 380px; padding-left: 12px; padding-right: 12px; } .chat-row .chat-avatar { display: none; } .chat-bubble { max-width: 100%; } .ai-chat-composer { flex-direction: column; } .ai-chat-composer button { min-height: 46px; } }
@media (prefers-reduced-motion: reduce) { .chat-row, .ai-status-dot, .chat-typing i { animation: none; } }
.price-row, .price-inline { display: flex; align-items: baseline; gap: 10px; margin: 20px 0 2px; }
.price-row span, .price-inline span { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.price-row strong, .price-inline strong { color: var(--ink); font-family: var(--serif); font-size: 2.6rem; line-height: 1; }
.price-row small { color: var(--muted); }

/* Timeline */
.timeline { display: grid; gap: 0; max-width: 940px; margin: 0 auto; }
.timeline-item { display: grid; grid-template-columns: 150px 1fr; gap: 28px; padding: 28px 0; border-top: 1px solid rgba(238,245,239,.14); }
.timeline-item:last-child { border-bottom: 1px solid rgba(238,245,239,.14); }
.timeline-day { color: #d9bd75; font-family: var(--serif); font-size: 1.3rem; }
.timeline-item h3 { margin-bottom: 8px; }
.timeline-item p { margin-bottom: 0; }
.audience-list { list-style: none; margin: 0; padding: 0; display: grid; }
.audience-list li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.audience-list li:first-child { border-top: 1px solid var(--line); }
.audience-index { color: var(--gold); font-family: var(--serif); font-size: 1.05rem; }
.audience-list h3 { margin-bottom: 7px; }
.audience-list p { margin: 0; color: var(--muted); }
.notice { margin-top: 28px; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--soft); border: 1px solid var(--line); color: var(--ink-2); font-size: .9rem; }
.notice-list { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 7px; }
.notice-list li { line-height: 1.7; }
.notice-list li strong { color: var(--ink); margin-right: 2px; }
.member-price-notice + .notice { margin-top: 16px; }
#classics-reading .notice,
#books ~ .notice,
.member-price-notice,
#books + .notice { white-space: nowrap; overflow-x: auto; }
.notice::-webkit-scrollbar { height: 4px; }
.notice::-webkit-scrollbar-thumb { background: var(--line-gold); border-radius: 2px; }
.notice-dark { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: rgba(238,245,239,.78); }
.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.16); }
.service-list li {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  min-height: 104px;
  padding: 26px 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.16);
}
.service-list li > span {
  position: absolute;
  z-index: 0;
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(217,189,117,.14);
  font-family: var(--serif);
  font-size: 5.3rem;
  font-weight: 700;
  line-height: .8;
  letter-spacing: -.06em;
  pointer-events: none;
  user-select: none;
}
.service-list p {
  position: relative;
  z-index: 1;
  grid-column: 2;
  margin: 0;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.65vw, 1.3rem);
  line-height: 1.4;
}
@media (max-width: 560px) {
  .service-list li { grid-template-columns: 82px minmax(0, 1fr); min-height: 84px; padding: 20px 0; }
  .service-list li > span { left: -3px; font-size: 3.75rem; }
}

/* Membership */
.topic-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.topic-grid.experience-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 840px) { .topic-grid.experience-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .topic-grid.experience-grid { grid-template-columns: 1fr; } }
.topic-card { min-height: 190px; padding: 24px; border-radius: var(--radius-sm); background: var(--paper); border: 1px solid var(--line-gold); box-shadow: 0 10px 24px rgba(23,53,45,.04); }
.topic-card > span { color: var(--gold); font-family: var(--serif); font-size: 1.1rem; }
.topic-card h3 { margin-top: 18px; font-size: 1.18rem; }
.topic-card p { margin-bottom: 0; color: var(--muted); font-size: .87rem; }
.membership-bar { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 24px; padding: 28px 30px; border-radius: var(--radius); color: #fff; background: linear-gradient(120deg, var(--jade), var(--ink)); box-shadow: var(--shadow); }
.membership-bar .eyebrow { color: #d9bd75; }
.membership-bar h3 { margin: 0; font-size: 1.55rem; }
.membership-bar .price-inline { margin: 0; }
.membership-bar .price-inline span { color: rgba(255,255,255,.65); }
.membership-bar .price-inline strong { color: #fff; }
.membership-bar .btn-primary { background: #fff; color: var(--ink); box-shadow: none; }
.membership-cta-section { padding-top: 72px; }
.membership-cta { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 34px; align-items: center; padding: 38px; overflow: hidden; border-radius: 30px; color: #fff; background: radial-gradient(circle at 12% 18%, rgba(215,183,109,.22), transparent 28%), linear-gradient(135deg, #1f6651, #102f28); box-shadow: var(--shadow); }
.membership-cta-copy .eyebrow { color: #e4c77d; }
.membership-cta-copy h2 { color: #fff; margin-bottom: 16px; }
.membership-cta-copy p { color: rgba(255,255,255,.76); }
.membership-cta-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.price-chip { display: inline-flex; align-items: center; justify-content: center; min-width: 92px; height: 52px; padding: 0 20px; border-radius: 999px; color: var(--ink); background: #f2dfac; font-family: var(--serif); font-size: 1.7rem; font-weight: 800; }
.membership-cta .btn-primary { background: #fff; color: var(--ink); box-shadow: none; }
.membership-cta-gallery { display: grid; grid-template-columns: 1.15fr .85fr; grid-template-rows: repeat(2, 145px); gap: 12px; }
.membership-cta-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; box-shadow: 0 14px 30px rgba(0,0,0,.14); }
.membership-cta-gallery img:first-child { grid-row: 1 / 3; }
@media (max-width: 840px) { .membership-cta { grid-template-columns: 1fr; } .membership-cta-gallery { grid-template-rows: repeat(2, 120px); } }
@media (max-width: 560px) { .membership-cta { padding: 26px; } .membership-cta-gallery { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 110px); } .membership-cta-gallery img:first-child { grid-row: auto; } }

/* Library */
.split-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.workflow { display: grid; gap: 14px; }
.workflow-item { display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding: 22px; border-radius: var(--radius-sm); background: var(--paper); border: 1px solid var(--line-gold); }
/* ===== 选购区 —— 中国风局部配色 ===== */
#classics-reading {
  --ink-r: 31; --ink-g: 78; --ink-b: 63;           /* 青黛 */
  --ink: #1f4e3f;
  --ink-2: #3a6858;
  --jade: #2d6b56;
  --gold: #c8a86a;
  --gold-strong: #b08a45;
  --vermilion: #a23d2e;                            /* 朱砂 */
  --paper: #fdf8ec;                                /* 宣纸 */
  --paper-deep: #f5ecd3;                          /* 深宣纸 */
  --line: #e4d6a8;                                 /* 淡金分割线 */
  --line-soft: #ede2c4;
  --muted: #7a7260;
  --shadow-soft: 0 8px 24px rgba(31,78,63,.06);
}

/* 分类导航 —— 大气舒展药丸（等宽、铺满、均匀） */
#classics-reading .book-category-nav {
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px; margin: -20px 0 24px;
}
#classics-reading .book-category-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 6px;
  min-height: 38px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink-2); background: transparent;
  font-size: .8rem; font-weight: 500; letter-spacing: .02em;
  white-space: nowrap;
  transition: all .25s cubic-bezier(.22,.61,.36,1);
}
@media (max-width: 840px) {
  #classics-reading .book-category-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
#classics-reading .book-category-btn span {
  color: var(--muted); font-size: .65rem; font-weight: 600;
  padding: 1px 7px; border-radius: 999px;
  background: var(--paper-deep);
}
#classics-reading .book-category-btn:hover {
  color: var(--ink); border-color: var(--gold); background: var(--paper);
}
#classics-reading .book-category-btn.is-active {
  color: #fff; background: var(--ink); border-color: var(--gold);
  box-shadow: 0 2px 10px rgba(31,78,63,.3);
}
#classics-reading .book-category-btn.is-active span {
  background: rgba(200,168,106,.3); color: rgba(255,255,255,.9);
}

/* ===== 书籍表格 ===== */
#classics-reading .book-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--gold);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}
#classics-reading .book-table { width: 100%; border-collapse: collapse; }
#classics-reading .book-table thead th {
  padding: 16px 14px;
  font-family: var(--serif);
  font-size: .95rem; font-weight: 700; letter-spacing: .05em;
  color: var(--ink);
  background: linear-gradient(180deg, #faf2da, var(--paper-deep));
  border-bottom: 2px solid var(--gold);
  white-space: nowrap; text-align: left;
}
#classics-reading .book-table thead th .lang-en { display: none; }
#classics-reading .book-table tbody td {
  padding: 14px 14px;
  font-size: .92rem; color: var(--ink-2);
  border-bottom: 1px solid var(--line-soft);
  line-height: 1.55;
  text-align: center;
}
#classics-reading .book-table tbody td.col-title,
#classics-reading .book-table tbody td.col-author,
#classics-reading .book-table tbody td.col-publisher { text-align: left; }
#classics-reading .book-table tbody tr:last-child td { border-bottom: 0; }
#classics-reading .book-table tbody tr:hover td { background: rgba(200,168,106,.08); }

/* 列宽 */
#classics-reading .book-table .col-level { width: 90px; white-space: nowrap; }
#classics-reading .book-table .col-title { width: auto; }
#classics-reading .book-table .col-author { width: auto; }
#classics-reading .book-table .col-publisher { width: auto; }
#classics-reading .book-table .col-price { width: 100px; text-align: center; font-weight: 600; color: var(--vermilion); white-space: nowrap; }
#classics-reading .book-table .col-cart { width: 130px; white-space: nowrap; text-align: center; }

/* 分级标签 —— 中国风配色 */
#classics-reading .level-tag {
  display: inline-block; padding: 5px 12px;
  border-radius: 4px;
  font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  border: 1px solid transparent;
}
#classics-reading .level-入门级 {
  background: #e8f4ec; color: #2e7d56; border-color: #c8dfd2;
}
#classics-reading .level-临床深造 {
  background: #fef3e2; color: var(--vermilion); border-color: #f0d9b0;
}
#classics-reading .level-学术考证 {
  background: #eef0f7; color: #4a5b8a; border-color: #d2d9ec;
}

/* 书名链接 */
#classics-reading .book-title-link {
  color: var(--ink); font-family: var(--serif);
  font-size: .92rem; font-weight: 700; text-decoration: none;
  transition: color .2s ease;
}
#classics-reading .book-title-link:hover { color: var(--vermilion); }

/* 加入购物车按钮 */
#classics-reading .btn-cart-add {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 30px; padding: 0 14px;
  border-radius: 4px;
  border: 1px solid var(--gold);
  background: transparent; color: var(--ink);
  font-size: .72rem; font-weight: 600; cursor: pointer;
  transition: all .2s ease;
}
#classics-reading .btn-cart-add:hover {
  background: var(--ink); color: #fff; border-color: var(--ink);
}
#classics-reading .btn-cart-add.is-added {
  background: var(--gold); border-color: var(--gold); color: #fff;
}

/* ===== 移动端书单卡片化（≤840px）：6 列表格在窄屏被压成竖排不可读，
   重排为「分级+价格 / 书名 / 作者·出版社 / 通栏按钮」卡片结构。
   仅 CSS 重排 display，表格语义与 JS 行模板保持不变，桌面端不受影响 ===== */
@media (max-width: 840px) {
  #classics-reading .book-table { display: block; }
  #classics-reading .book-table thead { display: none; }
  #classics-reading .book-table tbody { display: block; }
  #classics-reading .book-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    grid-template-areas:
      "level   price"
      "title   title"
      "author  publisher"
      "cart    cart";
    gap: 7px 12px;
    padding: 16px 16px 18px;
  }
  #classics-reading .book-table tbody tr + tr { border-top: 1px solid var(--line-soft); }
  #classics-reading .book-table tbody td { display: block; padding: 0; border-bottom: 0; }
  /* 桌面列宽（90/100/130px）必须重置，否则锁死卡片内各区域宽度：
     价格贴不到右缘、购物按钮通栏失效（被压回 130px） */
  #classics-reading .book-table .col-level,
  #classics-reading .book-table .col-price,
  #classics-reading .book-table .col-cart { width: auto; }
  /* 触屏无 hover：禁用桌面端整行金色浸润背景，避免色块盖住卡片分隔 */
  #classics-reading .book-table tbody tr:hover td { background: transparent; }
  #classics-reading .book-table .col-level { grid-area: level; }
  #classics-reading .book-table .col-price { grid-area: price; text-align: right; }
  #classics-reading .book-table .col-title { grid-area: title; }
  #classics-reading .book-table .col-author { grid-area: author; }
  #classics-reading .book-table .col-publisher { grid-area: publisher; }
  #classics-reading .book-table .col-cart { grid-area: cart; }
  /* 书名升级为卡片主视觉；作者/出版社收为辅助小字 */
  #classics-reading .book-table .book-title-link { font-size: 1.04rem; line-height: 1.4; }
  #classics-reading .book-table .col-author,
  #classics-reading .book-table .col-publisher { font-size: .8rem; color: var(--muted); line-height: 1.5; }
  /* 购物按钮通栏 + 触控 44px（原 30px 小按钮不满足触控规范） */
  #classics-reading .book-table .col-cart .btn-cart-add { width: 100%; min-height: 44px; font-size: .82rem; }
}

/* ===== 分页 ===== */
#classics-reading .book-pagination {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px;
  margin-top: 24px; padding: 10px 0;
}
#classics-reading .pg-btn {
  min-width: 34px; height: 34px; padding: 0 8px;
  border: 1px solid var(--line); border-radius: 6px;
  background: var(--paper); color: var(--ink-2);
  font-size: .78rem; font-weight: 600; cursor: pointer;
  transition: all .18s ease;
}
#classics-reading .pg-btn:hover:not(.is-disabled) {
  border-color: var(--gold); color: var(--ink); background: #fff;
}
#classics-reading .pg-btn.is-active {
  background: var(--ink); border-color: var(--gold); color: #fff;
  box-shadow: 0 1px 6px rgba(31,78,63,.2);
}
#classics-reading .pg-btn.is-disabled { opacity: .35; cursor: not-allowed; }
#classics-reading .pg-ellipsis { color: var(--muted); font-size: .85rem; padding: 0 4px; }
#classics-reading .pg-info { margin-left: 12px; color: var(--muted); font-size: .72rem; }

/* ===== 购物车栏 ===== */
#classics-reading .cart-bar {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  margin-top: 18px; padding: 18px 28px;
  border: 1px solid var(--gold); border-radius: 10px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}
#classics-reading .cart-entry {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 20px; border-radius: 6px;
  border: 1px solid var(--gold);
  background: var(--paper-deep); color: var(--ink);
  font-size: .84rem; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: all .2s ease;
}
#classics-reading .cart-entry:hover {
  background: var(--gold); color: #fff; border-color: var(--gold);
}
#classics-reading .cart-icon { font-size: 1.05rem; }
#classics-reading .cart-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: .65rem; font-weight: 700;
}
#classics-reading .cart-total-inline { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; color: var(--muted); }
#classics-reading .cart-total-inline strong { color: var(--ink); font-size: .82rem; }
#classics-reading .cart-caret { color: var(--muted); font-size: .8rem; }

#classics-reading .cart-fields { display: flex; flex-wrap: nowrap; gap: 20px; align-items: center; overflow-x: auto; padding: 4px 0; }
#classics-reading .cart-fields label { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .76rem; font-weight: 500; white-space: nowrap; flex-shrink: 0; letter-spacing: .03em; }
#classics-reading .cart-fields select { min-width: 160px; padding: 8px 12px; border-radius: 6px; border-color: var(--line); font-size: .78rem; }
#classics-reading .cart-actions { display: flex; gap: 14px; margin-left: auto; }
#classics-reading .cart-actions .btn-primary { background: var(--ink); border-color: var(--ink); }
#classics-reading .cart-actions .btn-ghost { border-color: var(--gold); color: var(--ink); }

@media (max-width: 840px) {
  #classics-reading .cart-bar { flex-direction: column; align-items: stretch; }
  #classics-reading .cart-actions { margin-left: 0; }
  /* cart-fields：桌面一行 nowrap（会员指示器 + 配送选择），
     移动端 label+select 占太多宽度挤爆了会员文字 → 改为 column 两行布局 */
  #classics-reading .cart-fields {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 6px;
  }
  #classics-reading .cart-fields .applied-level-inline {
    display: flex;
    flex-wrap: wrap;
    line-height: 1.55;
  }
  #classics-reading .cart-fields .applied-level-text {
    word-break: normal;
    overflow-wrap: break-word;
  }
  #classics-reading .cart-fields label {
    flex-wrap: wrap;
  }
  /* select min-width:160px 在 column 布局下仍会撑破 300px 容器，改为充满可用宽度 */
  #classics-reading .cart-fields select { min-width: 0; width: 100%; }

  /* 订单弹窗内的 applied-level-row：同样 flex 布局，弹窗约 324px 宽也会挤爆文字 */
  .applied-level-row { flex-wrap: wrap; line-height: 1.55; }
  .applied-level-row .applied-level-text { word-break: normal; overflow-wrap: break-word; }
}

/* ===== 购物车抽屉 ===== */
#classics-reading .cart-drawer { position: fixed; inset: 0; z-index: 9999; pointer-events: none; }
#classics-reading .cart-drawer.is-open { pointer-events: auto; }
#classics-reading .cart-drawer-backdrop {
  position: absolute; inset: 0;
  background: rgba(31,78,63,.4); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .25s ease;
}
#classics-reading .cart-drawer.is-open .cart-drawer-backdrop { opacity: 1; }
#classics-reading .cart-drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(440px, 100%);
  background: var(--paper);
  border-left: 2px solid var(--gold);
  box-shadow: -12px 0 40px rgba(31,78,63,.18);
  transform: translateX(100%); transition: transform .32s cubic-bezier(.22,.61,.36,1);
  display: flex; flex-direction: column;
}
#classics-reading .cart-drawer.is-open .cart-drawer-panel { transform: translateX(0); }
#classics-reading .cart-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px; border-bottom: 2px solid var(--gold);
  background: var(--paper-deep);
}
#classics-reading .cart-drawer-head h3 { margin: 0; font-size: 1.1rem; font-family: var(--serif); color: var(--ink); letter-spacing: .04em; }
#classics-reading .cart-drawer-close {
  width: 32px; height: 32px; border: none; border-radius: 6px;
  background: transparent; color: var(--muted); font-size: 1.3rem; cursor: pointer;
  display: grid; place-items: center; transition: all .18s ease;
}
#classics-reading .cart-drawer-close:hover { background: rgba(162,61,46,.1); color: var(--vermilion); }
#classics-reading .cart-drawer-body { flex: 1; overflow-y: auto; padding: 8px 0; }

#classics-reading .cart-empty { text-align: center; padding: 60px 24px; color: var(--muted); }
#classics-reading .cart-empty-icon { font-size: 2.5rem; margin-bottom: 14px; }
#classics-reading .cart-empty p { font-size: .9rem; font-weight: 600; color: var(--ink-2); margin: 0 0 6px; }
#classics-reading .cart-empty small { font-size: .76rem; }

#classics-reading .cart-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 24px; border-bottom: 1px solid var(--line-soft);
  transition: background .15s ease;
}
#classics-reading .cart-item:hover { background: rgba(200,168,106,.06); }
#classics-reading .cart-item-info { flex: 1; min-width: 0; }
#classics-reading .cart-item-title { font-size: .84rem; font-weight: 600; color: var(--ink); line-height: 1.4; }
#classics-reading .cart-item-meta { font-size: .68rem; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#classics-reading .cart-item-price { font-size: .82rem; font-weight: 700; color: var(--vermilion); white-space: nowrap; }
#classics-reading .cart-item-remove {
  width: 26px; height: 26px; flex-shrink: 0;
  border: none; border-radius: 6px; background: transparent; color: var(--muted);
  font-size: 1.1rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: all .15s ease;
}
#classics-reading .cart-item-remove:hover { background: rgba(162,61,46,.12); color: var(--vermilion); }

#classics-reading .cart-drawer-foot {
  padding: 18px 24px; border-top: 2px solid var(--gold);
  background: var(--paper-deep);
  display: grid; gap: 8px;
}
#classics-reading .cart-drawer-summary {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: .8rem; color: var(--muted);
}
#classics-reading .cart-drawer-summary strong { color: var(--ink); font-size: .88rem; }
#classics-reading .cart-drawer-summary.total {
  padding-top: 10px; margin-top: 4px;
  border-top: 1px solid var(--gold);
  font-size: .86rem; font-weight: 600; color: var(--ink);
}
#classics-reading .cart-drawer-summary.total strong { font-size: 1.15rem; color: var(--vermilion); }

/* ===== 必读中医经典卡片 —— 中国风 ===== */
#books { --card-gold-strong: #a98037; }
#books .book-grid { gap: 22px; }
#books .book-card {
  padding: 22px;
  border: 1px solid var(--gold);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  transition: box-shadow .25s ease, border-color .25s ease;
}
#books .book-card:hover {
  border-color: var(--card-gold-strong);
  box-shadow: 0 10px 28px rgba(23,53,45,.1);
}
/* 右上角朱红印章 */
#books .book-card::before {
  content: "典";
  position: absolute; top: 12px; right: 12px;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: var(--vermilion);
  color: #fff;
  font-family: var(--brush);
  font-size: 1.05rem;
  border-radius: 4px;
  transform: rotate(-8deg);
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(194,58,43,.35);
  letter-spacing: 0;
  line-height: 1;
}
#books .book-card:nth-child(1)::before { content: "经"; }
#books .book-card:nth-child(2)::before { content: "经"; }
#books .book-card:nth-child(3)::before { content: "论"; }
#books .book-card:nth-child(4)::before { content: "典"; }
/* 封面 —— 青黛古典风 */
#books .book-cover {
  min-height: 220px;
  padding: 18px 14px;
  border-radius: 4px 10px 10px 4px;
  background: linear-gradient(160deg, #13362c, #2d5b48 60%, #17352d);
  box-shadow: inset 6px 0 0 rgba(255,255,255,.06), 4px 4px 0 rgba(189,153,82,.4), 0 18px 28px rgba(19,54,44,.25);
  color: #f6edcf;
  position: relative;
}
#books .book-cover::after {
  content: "";
  position: absolute; top: 0; bottom: 0; left: 0;
  width: 3px; background: var(--gold);
  opacity: .7;
}
#books .book-cover-mark {
  font-family: var(--serif);
  font-size: 1.7rem; font-weight: 700;
  color: #f6edcf;
  letter-spacing: .08em;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
#books .book-cover small {
  color: rgba(246,237,207,.7);
  font-size: .6rem; letter-spacing: .1em;
}
/* 数字编号 —— 金色 */
#books .book-number {
  color: var(--card-gold-strong);
  font-family: var(--serif);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .18em;
}
/* 书名标题 */
#books .book-info h3 {
  margin: 8px 0 14px;
  font-size: 1.15rem;
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.35;
}
/* 元数据 */
#books .book-meta dt {
  color: var(--card-gold-strong);
  font-size: .62rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
}
#books .book-meta dd {
  color: var(--ink-2);
  font-size: .78rem; line-height: 1.5;
}
/* 价格 —— 朱砂红 */
#books .book-price small { color: var(--muted); font-size: .66rem; }
#books .book-price strong {
  color: var(--vermilion);
  font-family: var(--serif);
  font-size: 1.35rem; font-weight: 700;
  letter-spacing: .02em;
}
/* 卡片里的"加入购物车"按钮 —— 金色强调 */
#books .book-buy-row { display: flex; align-items: center; gap: 14px; }
#books .book-buy-row .btn-cart-add {
  flex: 1;
  min-height: 36px;
  border-radius: 4px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #fff;
  font-size: .78rem; font-weight: 700;
  letter-spacing: .04em;
}
#books .book-buy-row .btn-cart-add:hover {
  background: var(--ink); border-color: var(--ink);
}
#books .book-buy-row .btn-cart-add.is-added {
  background: var(--vermilion); border-color: var(--vermilion);
}

/* ===== 书籍详情页（紧凑 + 中国风） ===== */
.book-detail-section { padding: 40px 0 56px; }
.book-detail-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 20px; align-items: stretch; }
.detail-panel {
  position: relative;
  padding: 22px 24px;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--line-gold);
  box-shadow: 0 4px 16px rgba(23, 53, 45, .05);
}
/* 外细内粗 双线框 —— 古籍版框风格 */
.detail-panel::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(189, 153, 82, .35);
  border-radius: 10px;
  pointer-events: none;
}
.detail-panel h2, .detail-price-card h2 { font-size: clamp(1.05rem, 1.5vw, 1.3rem); margin: 0; line-height: 1.5; font-weight: 600; }
.detail-priority { color: var(--vermilion); letter-spacing: .08em; font-weight: 700; }

/* 主卡片：4行纵向排列，每行一个标签 + 内容 */
.book-detail-main-card { padding: 22px 24px 8px; }
.book-detail-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line-gold);
}
.book-detail-row.is-last { border-bottom: 0; }
.row-label {
  color: var(--jade);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding-top: 3px;
  text-align: right;
  white-space: nowrap;
}

/* 两个卡片标题统一风格 —— 金色毛笔字 */
.book-detail-meta .eyebrow, .book-detail-main-card .eyebrow { margin-bottom: 14px; font-family: var(--brush); font-size: 1.05rem; color: var(--gold); letter-spacing: .2em; }
.detail-info-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0 0 16px; }
.detail-info-list > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.detail-info-list > div:nth-child(odd) { border-right: 1px solid var(--line); }
.detail-info-list > div:nth-last-child(-n+2) { border-bottom: 0; }
.detail-info-list dt { color: var(--jade); font-size: .68rem; font-weight: 800; letter-spacing: .12em; }
.detail-info-list dd { margin: 0; color: var(--ink); font-size: .85rem; font-family: var(--serif); line-height: 1.3; }
/* 培训详情信息清单：单列"标签+内容"式，与左栏面板同一视觉语言 */
.detail-info-list.training-detail-facts { grid-template-columns: 1fr; margin: 0 0 6px; }
.detail-info-list.training-detail-facts > div,
.detail-info-list.training-detail-facts > div:nth-child(odd),
.detail-info-list.training-detail-facts > div:nth-last-child(-n+2) {
  display: block;
  padding: 13px 0;
  border-right: 0;
  border-bottom: 1px dashed var(--line-gold);
}
.detail-info-list.training-detail-facts > div:last-child { border-bottom: 0; }
.detail-info-list.training-detail-facts dt { font-size: 1.35rem; line-height: 1.25; font-family: var(--serif); font-weight: 700; color: var(--vermilion); letter-spacing: .08em; }
.detail-info-list.training-detail-facts dt::after { content: ""; }
.detail-info-list.training-detail-facts dd { font-size: 1rem; line-height: 1.7; margin-top: 6px; }
.detail-info-list.training-detail-facts .is-price-row dd { margin-top: 4px; font-size: 1.22rem; font-weight: 800; color: var(--jade); font-family: var(--serif); }
.detail-back { font-family: var(--brush); letter-spacing: .3em; font-size: .85rem; }
#detail-title { white-space: normal; font-family: var(--title-font); font-size: clamp(1.8rem, 3.2vw, 2.8rem); letter-spacing: .06em; line-height: 1.35; color: var(--ink); }
@media (max-width: 840px) {
  .book-detail-grid { grid-template-columns: 1fr; gap: 16px; }
  .book-detail-row { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }
  .row-label { text-align: left; padding-top: 0; }
  .detail-info-list { grid-template-columns: 1fr 1fr; }
}
.reading-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.reading-list li { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.reading-buy { min-width: 84px; }
.reading-no { color: var(--gold); font-family: var(--serif); font-size: 1.05rem; }
.reading-list h3 { margin: 0 0 6px; font-size: 1.25rem; }
.reading-list p { margin: 0; color: var(--muted); }
.workflow-item > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--jade); background: var(--jade-3); font-weight: 800; font-size: .8rem; }
.workflow-item h3 { font-size: 1.15rem; margin: 0 0 5px; }
.workflow-item p { margin: 0; color: var(--muted); font-size: .88rem; }

/* Partners */
.partner-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.partner-card { display: flex; flex-direction: column; padding: 26px; border-radius: var(--radius-sm); background: var(--paper); border: 1px solid var(--line-gold); box-shadow: 0 10px 24px rgba(23,53,45,.04); }
.partner-type { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--jade-3); color: var(--jade); font-size: .64rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.partner-card h3 { margin: 14px 0 10px; font-size: 1.2rem; }
.partner-card p { margin: 0 0 14px; color: var(--muted); font-size: .9rem; }
.partner-card small { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line-gold); color: var(--gold); font-size: .76rem; line-height: 1.6; }
.partner-card-wide { grid-column: 1 / -1; }
.partner-photo { margin: 24px 0 0; overflow: hidden; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.partner-photo img { width: 100%; height: clamp(260px, 48vw, 520px); object-fit: cover; }
.partner-photo figcaption { padding: 12px 18px; color: var(--muted); font-size: .78rem; background: var(--white); }
.tai-chi-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.tai-chi-option { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.tai-chi-option img { width: 100%; height: clamp(240px, 32vw, 410px); object-fit: cover; }
.tai-chi-option figcaption { display: grid; gap: 5px; padding: 16px 18px; color: var(--muted); font-size: .78rem; }
.tai-chi-option figcaption strong { color: var(--ink); font-family: var(--serif); font-size: 1rem; }
@media (max-width: 760px) { .tai-chi-gallery { grid-template-columns: 1fr; } }

/* Contact */
.contact-layout { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 54px; align-items: start; }
.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 28px 0 16px; }
.contact-card { display: grid; gap: 3px; min-height: 118px; padding: 18px; border-radius: var(--radius-sm); background: var(--paper); border: 1px solid var(--line-gold); }
.contact-card:hover { border-color: var(--jade); }
.contact-card span { color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.contact-card strong { color: var(--ink); font-size: .92rem; word-break: break-word; }
.contact-card small { color: var(--muted); }
.safety-note { color: var(--danger); font-size: .82rem; }
.enquiry-form { padding: 30px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line-gold); box-shadow: var(--shadow-soft); }
.form-row { display: grid; gap: 8px; margin-bottom: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
.form-row-full { grid-column: 1 / -1; }
.checkbox-group { display: grid; gap: 10px; margin: 20px 0; }
.checkbox-group .consent-row { margin: 0; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.form-row label { color: var(--ink-2); font-size: .82rem; font-weight: 750; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 13px; background: var(--input-bg); color: var(--ink); padding: 13px 14px; outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--jade); box-shadow: 0 0 0 4px rgba(61,140,110,.1); }
.consent-row { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0; color: var(--muted); font-size: .78rem; }
.consent-row input { width: 15px; height: 15px; min-width: 15px; margin-top: 5px; accent-color: var(--jade); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form-actions .btn { flex: 1; }
.form-note { margin: 14px 0 0; color: var(--muted); font-size: .76rem; }

/* Books and order modal */
body.modal-open { overflow: hidden; }
.book-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.book-card { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 22px; padding: 24px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line-gold); box-shadow: var(--shadow-soft); }
.book-cover { display: flex; flex-direction: column; justify-content: space-between; min-height: 240px; padding: 18px 14px; border-radius: 12px 18px 18px 12px; color: #f6edcf; background: linear-gradient(145deg, #173f35, #2f765e); box-shadow: inset 5px 0 0 rgba(255,255,255,.12), 0 16px 24px rgba(23,53,45,.18); }
.book-cover-mark { font-family: var(--serif); font-size: 1.65rem; line-height: 1.25; }
.book-cover small { color: rgba(255,255,255,.65); font-size: .63rem; letter-spacing: .08em; }
.book-info { display: flex; flex-direction: column; }
.book-number { color: var(--gold); font-family: var(--serif); font-size: 1rem; }
.book-info h3 { margin: 10px 0 15px; font-size: 1.35rem; }
.book-meta { display: grid; gap: 11px; margin: 0; }
.book-meta div { display: grid; gap: 2px; }
.book-meta dt { color: var(--jade); font-size: .67rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.book-meta dd { margin: 0; color: var(--muted); font-size: .82rem; }
.book-buy-row { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 20px; }
.book-price { display: grid; gap: 3px; line-height: 1.15; }
.book-price small { color: var(--muted); font-size: .68rem; }
.book-price strong { color: var(--jade); font-family: var(--serif); font-size: 1.3rem; }
.book-buy-row .btn { flex: 1; margin-top: 0; }
.order-modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.order-modal.is-open { display: flex; }
.order-modal-backdrop { position: absolute; inset: 0; background: rgba(13,34,29,.62); backdrop-filter: blur(8px); }
.order-dialog { position: relative; z-index: 1; width: min(100%, 620px); max-height: min(90vh, 860px); overflow: auto; padding: 30px; border-radius: 24px; background: var(--paper); box-shadow: 0 36px 90px rgba(0,0,0,.28); }
.order-close { position: absolute; right: 18px; top: 16px; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--ink); font-size: 1.45rem; line-height: 1; }
.order-dialog h2 { margin-bottom: 14px; font-size: 2rem; }
.order-book-summary { display: grid; gap: 3px; margin: 18px 0 22px; padding: 16px 18px; border-radius: 16px; background: var(--jade-3); }
.order-book-summary strong { font-family: var(--serif); font-size: 1.1rem; }
.order-book-summary span { color: var(--muted); font-size: .8rem; }
.order-book-summary b { color: var(--jade); font-family: var(--serif); font-size: 1.6rem; }
.order-cost-summary { display: grid; gap: 10px; margin: 16px 0 20px; padding: 16px; border: 1px solid var(--line-gold); border-radius: 16px; background: var(--cream); }
.order-cost-summary > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--muted); font-size: .82rem; }
.order-cost-summary strong { color: var(--ink); }
.order-total-row { padding-top: 10px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 800; }
.order-total-row strong { color: var(--jade); font-family: var(--serif); font-size: 1.2rem; }
@media (max-width: 840px) { .book-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .book-card { grid-template-columns: 1fr; } .book-cover { min-height: 150px; } }

/* FAQ */
.faq-list { display: grid; gap: 12px; }
details { border: 1px solid var(--line-gold); border-radius: var(--radius-sm); background: var(--paper); padding: 0 22px; }
summary { list-style: none; cursor: pointer; padding: 20px 28px 20px 0; position: relative; font-weight: 750; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 17px; color: var(--jade); font-size: 1.4rem; }
details[open] summary::after { content: "−"; }
details p { margin: 0 0 20px; color: var(--muted); font-size: .92rem; }

/* Footer */
.site-footer { padding: 38px 0 20px; color: rgba(238,245,239,.78); background: #102f28; }
.footer-grid { display: grid; grid-template-columns: 2.2fr .9fr .85fr .85fr 1.1fr; gap: 48px; }
.footer-grid > div:first-child { padding-right: 28px; }
#membership-plans .product-card[id] { scroll-margin-top: 96px; }
.footer-contact-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: nowrap; }
.footer-contact-row span { margin: 0 !important; white-space: nowrap; }
/* 用 .site-footer a.footer-brand 保证特异性 (0-2-1) 高于通用的 .site-footer a (0-1-1) */
.site-footer a.footer-brand { display: inline-flex !important; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 12px; min-width: max-content; margin: 0 0 14px; font-size: inherit; line-height: inherit; color: inherit; }
.site-footer a.footer-brand:hover { color: inherit; }
.site-footer a.footer-brand .brand-mark {
  background: linear-gradient(145deg, var(--vermilion), #a82f22);
  color: #fef5d4;
  box-shadow: 0 4px 12px rgba(194,58,43,.25);
}
.site-footer a.footer-brand .brand-copy strong { color: #fff; }
.site-footer a.footer-brand .brand-copy small { color: rgba(238,245,239,.55); }
.site-footer h3 {
  position: relative;
  color: #fff;
  font-family: var(--title-font);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: .04em;
  margin: 0 0 14px;
  padding-bottom: 10px;
}
.site-footer h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 4em;
  height: 2px;
  background: linear-gradient(90deg, #d9bd75, rgba(217,189,117,.3));
  border-radius: 2px;
}
.site-footer a, .footer-grid span { display: block; color: rgba(238,245,239,.7); font-size: .82rem; margin: 4px 0; line-height: 1.6; }
.site-footer a:hover { color: #d9bd75; }
.site-footer p { color: rgba(238,245,239,.66); font-size: .82rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 28px; margin-top: 30px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(238,245,239,.5); font-size: .72rem; }
.footer-bottom span { display: inline; margin: 0; white-space: normal; }
.footer-bottom > span:first-child { flex-shrink: 0; white-space: nowrap; }
.footer-bottom > span:last-child { flex: 1; min-width: 0; }
.floating-whatsapp { position: fixed; right: 22px; bottom: 22px; z-index: 40; display: inline-flex; align-items: center; gap: 9px; padding: 10px 14px 10px 10px; border-radius: 999px; color: #fff; background: #1f8c57; box-shadow: 0 14px 30px rgba(31,140,87,.28); }
.floating-whatsapp span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.2); font-weight: 900; }
.floating-whatsapp strong { font-size: .78rem; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===== Page Hero (子页面头部) ===== */
.page-hero {
  position: relative;
  padding: 64px 0 56px;
  background:
    radial-gradient(ellipse 70% 60% at 80% 20%, rgba(61,140,110,.12), transparent 60%),
    linear-gradient(180deg, #fffdf8 0%, #f6f2e9 100%);
  border-bottom: 1px solid var(--line-gold);
}
.page-hero::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent);
}
.breadcrumb {
  margin: 0 0 28px;
  font-size: .78rem;
  color: var(--muted);
  font-weight: 650;
  letter-spacing: .04em;
}
.breadcrumb a { color: var(--jade); transition: color .2s ease; }
.breadcrumb a:hover { color: var(--gold); }
.detail-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: nowrap;
}
.detail-top-bar .breadcrumb { margin-bottom: 0; }
.back-to-list {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}
.back-to-list svg { width: 13px; height: 13px; }
.back-to-list:hover svg { transform: translateX(-2px); transition: transform .15s ease; }

/* ===== 书籍详情 Hero ===== */
.book-hero { padding: 36px 0 32px; }
.detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 32px;
  align-items: start;
}
.detail-hero-title-block { position: relative; padding-left: 56px; }
.detail-hero-title-block .lede { margin-top: 8px; }
.detail-eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  gap: 16px;
}
.detail-eyebrow-row .eyebrow { margin-bottom: 0; flex-shrink: 0; }

/* 印章 */
.seal-mark {
  position: absolute;
  top: -6px;
  left: -6px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  color: #fff;
  background: var(--vermilion);
  font-family: var(--brush);
  font-size: 1.4rem;
  transform: rotate(-6deg);
  box-shadow: 0 2px 8px rgba(194, 58, 43, .28);
  letter-spacing: 0;
}

/* 价格卡：更紧凑 + 古籍版框 */
.detail-price-card {
  position: sticky;
  top: 98px;
  display: grid;
  align-self: start;     /* 不随左列高度拉伸 */
  align-content: start;  /* 行高保持内容自然高度，避免提示框/按钮被撑大 */
  gap: 8px;
  padding: 22px 22px 24px;
  border-radius: 14px;
  background: linear-gradient(145deg, #fffef8, #f7f0e0);
  border: 1px solid var(--line-gold);
  box-shadow: 0 4px 16px rgba(23, 53, 45, .08);
  text-align: center;
}
.detail-price-card::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(189, 153, 82, .35);
  border-radius: 9px;
  pointer-events: none;
}
/* 卡内按钮行：两枚按钮并排等宽 */
.detail-price-cta-row { display: flex; gap: 10px; }
.detail-price-cta-row .btn { flex: 1 1 auto; min-width: 0; padding: 12px 10px; }
.detail-price-cta-row .detail-back { letter-spacing: .12em; font-size: .8rem; }
.detail-price-card .notice { margin-top: 8px; }
/* 培训详情页：卡片内容左对齐，与左侧面板一致 */
body.training-page .detail-price-card { text-align: left; }
.detail-price-card > span {
  color: var(--jade);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .2em;
}
.detail-price-card strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 2.2rem;
  margin: 6px 0 4px;
  line-height: 1;
  position: relative;
}
.detail-price-card strong::before,
.detail-price-card strong::after {
  content: "·";
  position: absolute;
  top: 50%;
  transform: translateY(-55%);
  color: var(--gold);
  font-size: 1rem;
}
.detail-price-card strong::before { left: -14px; }
.detail-price-card strong::after { right: -14px; }
.price-shipping-note { display: block; margin: 4px 0 12px; color: var(--muted); font-size: .66rem; line-height: 1.45; }
.price-shipping-note a { color: var(--jade); text-decoration: underline; }
.detail-price-actions { display: grid; gap: 6px; position: relative; }
.detail-price-actions .btn { width: 100%; }
.detail-price-actions .btn-primary.is-added {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

/* 详情页价格卡：会员价展示 */
.detail-price-display { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.detail-price-list-strike {
  color: var(--muted);
  font-size: .82rem;
  text-decoration: line-through;
  text-decoration-color: var(--vermilion);
  opacity: .75;
}
.detail-price-card strong.is-member { color: var(--vermilion); }
.detail-price-savings {
  display: inline-block;
  align-self: center;
  background: var(--jade);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
  letter-spacing: .05em;
}

/* 订单弹窗 / 购物车栏：已套用会员等级指示器 */
.applied-level-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background: rgba(61, 118, 99, .08);
  border: 1px solid rgba(61, 118, 99, .22);
  border-radius: 8px;
  font-size: .82rem;
  color: var(--ink);
  line-height: 1.5;
}
.applied-level-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .76rem;
  color: var(--ink);
}
.applied-level-badge {
  flex: 0 0 auto;
  background: var(--muted);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  letter-spacing: .06em;
}
.applied-level-badge.is-member { background: var(--jade); }
.applied-level-text a { color: var(--jade); text-decoration: underline; }
.applied-level-text b { color: var(--ink); }

/* 书单表格价格列：会员价 */
.col-price .price-member { color: var(--vermilion); font-weight: 700; font-size: 1rem; }
.col-price .price-list-strike {
  display: block;
  color: var(--muted);
  font-size: .7rem;
  text-decoration: line-through;
  text-decoration-color: var(--vermilion);
  opacity: .7;
  margin-top: 1px;
}
.col-price .price-member-hint {
  display: block;
  color: var(--jade);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .05em;
  margin-top: 2px;
}

/* 特色书卡价格：会员价 */
.book-price strong.is-member { color: var(--vermilion); }
.book-price-list-strike {
  color: var(--muted);
  font-size: .7rem;
  text-decoration: line-through;
  text-decoration-color: var(--vermilion);
  opacity: .7;
}

/* ===== CTA Band (底部行动号召) ===== */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 44px 48px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 85% 30%, rgba(215,183,109,.15), transparent 40%),
    linear-gradient(135deg, #1f6651, #102f28);
  color: #fff;
  box-shadow: var(--shadow);
}
.cta-band h2 { margin: 0; color: #fff; }
.cta-band p.eyebrow { color: var(--gold-2); }
.cta-band .btn-primary { background: #fff; color: var(--ink); box-shadow: none; white-space: nowrap; }
.cta-band .btn-primary:hover { background: var(--gold-2); }

/* ===== 首页：数据信任带 ===== */
.stats-band {
  position: relative;
  padding: 42px 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line-gold);
}
.stats-band::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 22%, var(--gold) 78%, transparent);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.learning-path-strip {
  display: grid;
  gap: 8px;
  text-align: center;
}
.hero-program-card strong a,
.learning-path-strip strong a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .16em;
  transition: color .2s ease;
}
.hero-program-card strong a:hover,
.learning-path-strip strong a:hover { color: var(--gold); }
.hero-program-card strong {
  display: block;
  font-size: clamp(.86rem, 1.1vw, 1rem);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .01em;
}
.learning-path-strip strong {
  color: var(--jade);
  font-family: var(--title-font);
  font-size: clamp(.95rem, 1.6vw, 1.35rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: .015em;
}
.learning-path-strip p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}
.stat-item { display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; padding: 2px 10px; }
.stat-item + .stat-item { border-left: 1px dashed var(--line-gold); }
.stat-item strong {
  color: var(--jade);
  font-family: var(--brush);
  font-weight: 400;
  font-size: clamp(2.1rem, 3.2vw, 2.8rem);
  line-height: 1;
}
.stat-item span { color: var(--muted); font-size: .84rem; letter-spacing: .02em; }

/* ===== 首页：如何开始（三步） ===== */
.steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.step-card {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 30px 28px 28px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line-gold);
  box-shadow: var(--shadow-soft);
  transition: border-color .25s ease;
}
.step-card:hover { border-color: var(--gold); }
.step-card::after {
  content: "";
  position: absolute;
  width: 130px; height: 130px;
  right: -52px; bottom: -58px;
  border-radius: 50%;
  background: rgba(61,140,110,.07);
}
.step-no { color: var(--gold); font-family: var(--brush); font-size: 1.9rem; line-height: 1; }
.step-card h3 { margin: 0; font-size: 1.28rem; color: var(--ink); }
.step-card p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.75; }

@media (max-width: 840px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; }
  .stat-item + .stat-item { border-left: none; }
  .stat-item:nth-child(even) { border-left: 1px dashed var(--line-gold); }
  .steps-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .stats-band { padding: 34px 0; }
  .step-card { padding: 24px 22px 22px; }
}

/* ===== Split Copy (学习方式左栏) ===== */
.split-copy h2 .lang-zh { font-family: var(--title-font); }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 1080px) {
  .nav-links { gap: 15px; }
  .nav-links a { font-size: .82rem; }
  .hero-grid { grid-template-columns: 1fr 420px; gap: 30px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 22px 18px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; padding-right: 0; }
}

/* 通用移动端触摸目标增强 */
@media (max-width: 840px) {
  .container { width: min(calc(100% - 28px), var(--container)); }

  /* 移动端导航菜单 — 全屏体验 */
  .nav-links {
    position: fixed;
    inset: 72px 12px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 16px 12px;
    border: 1px solid var(--line-gold);
    border-radius: 20px;
    background: rgba(255,253,248,.985);
    box-shadow: 0 24px 60px rgba(23,53,45,.18);
    backdrop-filter: blur(18px);
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    animation: slideDown .25s ease;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a {
    display: flex;
    flex-direction: column;
    min-height: 48px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    border-radius: 12px;
    font-size: .95rem;
    font-weight: 700;
    color: var(--ink);
    transition: background .15s ease;
  }
  .nav-links a:hover, .nav-links a:active { background: var(--jade-3); color: var(--jade); }
  .nav-links a .lang-en { font-size: .72rem; color: var(--muted); font-weight: 500; margin-top: 2px; }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a[aria-current="page"] { background: var(--jade-3); color: var(--jade); }
  .nav-links a[aria-current="page"]::after { display: none; }

  /* 二级折叠菜单（移动端） */
  .nav-item-row { display: flex; align-items: stretch; width: 100%; }
  .nav-item-row > a { flex: 1 1 auto; min-width: 0; }
  .nav-caret {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    min-height: 48px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
  }
  /* 箭头 svg 无 width/height 属性，必须在此约束尺寸，
     否则浏览器按默认尺寸渲染出约 30px 的粗大箭头（桌面端 15px 规则在 841px+ 块内）。
     热区仍为 46px，仅收小图标；muted 色让箭头退后、不与菜单标题抢层级 */
  .nav-caret svg { width: 14px; height: 14px; display: block; }
  .nav-sub-inner { margin-left: 16px; padding-left: 6px; }
  .nav-sub a {
    min-height: 42px;
    padding: 9px 12px;
    border-bottom: 0;
    font-size: .88rem;
    font-weight: 600;
  }
  .nav-sub a .lang-en { font-size: .72rem; }

  .menu-toggle { display: flex; flex-direction: column; justify-content: center; align-items: center; min-width: 48px; height: 48px; }
  .nav-actions .btn-small { display: none; }

  /* 触摸目标 ≥ 44px */
  .btn, input, textarea, select, summary, .contact-card, .topic-card { min-height: 44px; }
  .lang-toggle { min-width: 54px; min-height: 44px; }
  .nav-theme-toggle { min-width: 44px; width: 44px; min-height: 44px; padding: 0; }
  details summary { padding: 18px 48px 18px 0; }

  /* Grid 统一单列 */
  .hero-grid, .path-grid, .split-layout, .contact-layout, .detail-hero-grid { grid-template-columns: 1fr; }
  .detail-hero-grid { gap: 20px; }
  .detail-price-card { position: static; max-width: 300px; margin: 0 auto; }
  .hero-grid { padding-top: 56px; gap: 28px; }
  .hero-copy { max-width: 100%; }
  .hero-visual { min-height: 360px; order: -1; }
  .hero-visual > svg { width: min(100%, 380px); }
  .seal { width: 82px; height: 82px; top: 8px; right: 8px; }
  .seal span { font-size: 2.1rem; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }

  /* 产品卡片 2 列 */
  .product-grid, .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .partner-grid { grid-template-columns: 1fr; }

  /* 会员条 */
  .membership-bar { align-items: flex-start; flex-direction: column; }
  .membership-bar .btn { width: 100%; }

  /* Page Hero */
  .page-hero { padding: 48px 0 40px; }
  .book-hero { padding: 28px 0 24px; }
  .seal-mark { width: 36px; height: 36px; font-size: 1.15rem; top: -4px; left: -4px; }
  .detail-hero-title-block { padding-left: 48px; }
  #detail-title { font-size: 1.6rem; }
  .detail-top-bar { flex-wrap: wrap; }
  .detail-top-bar .breadcrumb { flex: 1 1 auto; }
  .detail-eyebrow-row { flex-wrap: wrap; }

  /* CTA Band */
  .cta-band { flex-direction: column; align-items: stretch; padding: 32px 28px; text-align: center; }
  .cta-band .btn { width: 100%; }

  /* 书卡 */
  .book-card { grid-template-columns: 1fr; }
  .book-cover { min-height: 160px; flex-direction: row; align-items: center; padding: 18px 20px; gap: 16px; border-radius: 14px; }
  .book-cover-mark { font-size: 2rem; }
}

@media (max-width: 560px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }
  h3 { font-size: 1.2rem; }
  .brand-copy small { display: none; }
  .brand-mark { width: 38px; height: 38px; font-size: 1.2rem; }
  .nav-wrap { min-height: 64px; gap: 12px; }

  /* 顶栏紧凑化：品牌文案允许收缩省略，动作区收窄，
     保证 360-390px 机型上「印章 + 站名 + 登录 + 语言 + 菜单」一行放下不溢出 */
  .brand { flex: 0 1 auto; min-width: 0; }
  .brand-copy { min-width: 0; }
  .brand-copy strong { overflow: hidden; text-overflow: ellipsis; font-size: .98rem; }
  .nav-actions { flex: 0 0 auto; gap: 6px; }
  .lang-toggle { min-width: 44px; padding: 0 10px; font-size: .8rem; }
  .nav-theme-toggle { min-width: 42px; width: 42px; height: 42px; padding: 0; font-size: .95rem; }
  .menu-toggle { min-width: 42px; width: 42px; height: 42px; }
  .footer-contact-row { flex-wrap: wrap; }

  /* 所有 grid 单列 */
  .product-grid, .topic-grid, .partner-grid, .contact-cards, .classics-grid, .tai-chi-gallery, .book-grid { grid-template-columns: 1fr; }
  .path-grid { grid-template-columns: 1fr; }

  .hero-meta { gap: 14px; font-size: .72rem; }
  .hero-meta b { font-size: .85rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn, .form-actions .btn { width: 100%; }

  .partner-strip-list { display: grid; gap: 8px; }
  .partner-strip-list span::after { display: none; }

  .timeline-item { grid-template-columns: 64px 1fr; gap: 12px; padding: 22px 0; }
  .timeline-day { font-size: 1.1rem; }

  .footer-bottom { flex-direction: column; gap: 8px; }
  .floating-whatsapp { right: 14px; bottom: 14px; padding: 12px; }
  .floating-whatsapp strong { display: none; }

  .section { padding: 42px 0; }
  .product-card { padding: 18px; }
  .path-card { padding: 22px 18px; }
  .topic-card { padding: 18px; min-height: auto; }
  .partner-card { padding: 18px; }

  .membership-cta-gallery { grid-template-columns: 1fr; grid-template-rows: auto; }
  .membership-cta-gallery img:first-child { grid-row: auto; }

  .contact-card { min-height: auto; padding: 16px; }
  .enquiry-form { padding: 22px 18px; }

  .detail-price-card { max-width: 100%; }

  .seal { width: 68px; height: 68px; }
  .seal span { font-size: 1.7rem; }

  /* iOS 安全区：聚焦字号 <16px 会触发整页自动放大，移动端统一抬高输入控件字号 */
  input:not([type="checkbox"]):not([type="radio"]), select, textarea { font-size: 16px; }
  #classics-reading .cart-fields select { font-size: 16px; }

  /* 购物车条：390px 机型上「图标+文案+角标+合计+箭头」一行放不下（角标两位数时超宽），
     允许合计换行到第二行并靠右，避免整条横向溢出 */
  #classics-reading .cart-entry { flex-wrap: wrap; row-gap: 4px; }
  #classics-reading .cart-total-inline { margin-left: auto; }

  /* 订单弹窗小屏密度 */
  .order-dialog { padding: 24px 18px; }
  .order-dialog h2 { font-size: 1.55rem; }
  .order-close { right: 10px; top: 10px; }

  /* —— 移动端简洁化：收紧标题节奏、减轻投影重量、书卡更紧凑 —— */
  :root { --shadow-soft: 0 8px 20px rgba(31, 78, 63, .06); }
  .eyebrow { margin-bottom: 8px; }
  h2 { margin-bottom: 12px; }
  .lede { font-size: .96rem; }
  .book-card { gap: 14px; padding: 16px; }
}

/* 标准手机屏（≤560px）：品牌通栏 + 学习路径/支持/联系 三列并排，联系列内部垂直堆叠 */
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 18px 14px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; padding-bottom: 14px; padding-right: 0; }
  .footer-grid h3 { font-size: .95rem; }
  .site-footer a, .footer-grid span { font-size: .75rem; line-height: 1.5; margin: 3px 0; }
  .footer-contact-row { flex-direction: column; gap: 3px; }
  .footer-contact-row span { white-space: normal; }
}

/* 极窄屏（≤400px）：再让一档内边距，菜单贴齐更紧凑的顶栏 */
@media (max-width: 400px) {
  .container { width: calc(100% - 24px); }
  .nav-links { inset: 64px 8px auto; }
  .footer-bottom > span:first-child { white-space: normal; }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.membership-plan-price { margin-top: auto; padding-top: 20px; color: var(--jade); font-family: var(--serif); font-size: 1.65rem; font-weight: 800; }
.membership-plan-price small { color: var(--muted); font-family: var(--sans); font-size: .75rem; font-weight: 600; }
.membership-pay-success { margin-top: 10px; color: var(--jade); font-size: .78rem; }

/* 会员价格卡：推荐档与年度价值注记 */
.product-card.is-featured { position: relative; border-color: rgba(189,153,82,.75); box-shadow: 0 16px 40px rgba(189,153,82,.14); }
.product-card.is-featured:hover { border-color: var(--gold); }
.plan-flag {
  position: absolute; top: 16px; right: 16px;
  display: inline-flex; padding: 4px 12px; border-radius: 999px;
  background: var(--gold-3); color: #7e5e2d;
  border: 1px solid rgba(189,153,82,.5);
  font-size: .68rem; font-weight: 800; letter-spacing: .04em;
  z-index: 1;
}
.plan-value-note { margin: 10px 0 12px; color: var(--gold); font-size: .8rem; font-weight: 650; line-height: 1.6; }


/* Wellness experience detail cards and modal */
.wellness-experience-card { cursor: pointer; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.wellness-experience-card > span { font-size: .95rem; }
.wellness-experience-card h3 { margin-top: 10px; }
.wellness-experience-card:hover,
.wellness-experience-card:focus-visible { transform: translateY(-4px); border-color: rgba(34,100,79,.35); box-shadow: 0 18px 38px rgba(23,53,45,.12); outline: none; }
.wellness-experience-card:focus-visible { box-shadow: 0 0 0 4px rgba(61,140,110,.16), 0 18px 38px rgba(23,53,45,.12); }
.experience-card-action { display: inline-flex; margin-top: 16px; color: var(--jade); font-size: .76rem; font-weight: 800; letter-spacing: .02em; }
.experience-detail-dialog { width: min(100%, 980px); padding: 0; overflow: auto; }
.experience-detail-media { height: clamp(220px, 38vw, 390px); background: var(--soft); }
.experience-detail-media img { width: 100%; height: 100%; object-fit: cover; }
.experience-detail-media img[src$=".png"] { object-fit: contain; padding: 48px; background: var(--soft); }
.experience-detail-content { padding: 30px 34px 34px; }
.experience-detail-content h2 { margin: 4px 0 14px; font-size: clamp(1.8rem, 3vw, 2.65rem); }
.experience-detail-lead { color: var(--ink-2); font-size: 1rem; line-height: 1.8; }
.experience-detail-body { display: grid; gap: 12px; margin-top: 18px; }
.experience-detail-body p { margin: 0; color: var(--muted); line-height: 1.8; }
.experience-detail-points { margin-top: 24px; padding: 20px 22px; border-radius: 18px; background: var(--jade-3); }
.experience-detail-points h3 { margin: 0 0 10px; font-size: 1rem; }
.experience-detail-points ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 22px; margin: 0; padding-left: 20px; color: var(--ink-2); }
.experience-detail-safety { margin-top: 20px; }
.experience-detail-contact { margin-top: 22px; }
.wellness-bottom-cta { margin-top: 24px; padding: 28px 32px; }
.wellness-bottom-cta .btn.btn-small { width: auto; min-height: 40px; padding: 9px 16px; font-size: .8rem; }
@media (max-width: 760px) {
  .experience-detail-dialog { max-height: 92vh; overflow: auto; }
  .experience-detail-content { padding: 24px 20px 26px; }
  .experience-detail-points ul { grid-template-columns: 1fr; }
  .wellness-bottom-cta { align-items: flex-start; padding: 26px 24px; text-align: left; }
  .wellness-bottom-cta .btn.btn-small { width: auto; }
}

.timeline-item p.timeline-lodging { margin-top: 9px; color: #d9bd75; font-size: .8rem; font-weight: 700; }


/* Wellness pricing tiers */
.wellness-pricing-card { gap: 10px; text-align: left; }
.tour-price-tier { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 14px; border: 1px solid var(--line-gold); border-radius: 15px; background: var(--paper); }
.tour-price-tier > span { display: grid; gap: 2px; color: var(--ink); font-weight: 800; }
.tour-price-tier > span small { color: var(--muted); font-size: .66rem; font-weight: 600; }
.wellness-pricing-card .tour-price-tier strong { display: flex; align-items: baseline; margin: 0; color: var(--jade); font-size: 1.45rem; white-space: nowrap; }
.wellness-pricing-card .tour-price-tier strong small { margin-left: 2px; color: var(--muted); font-family: var(--sans); font-size: .62rem; font-weight: 700; }
.tour-price-note { margin: 4px 0 8px; color: var(--muted); font-size: .68rem; line-height: 1.55; }
@media (max-width: 760px) {
  .tour-price-tier { padding: 12px; }
  .wellness-pricing-card .tour-price-tier strong { font-size: 1.25rem; }
}


/* Wellness detailed pricing plans */
.wellness-plan-heading { margin-bottom: 24px; }
.wellness-plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.wellness-plan-card { display: flex; flex-direction: column; min-height: 100%; padding: 26px; border: 2px solid var(--line-gold); border-radius: var(--radius); background: var(--paper); box-shadow: 0 12px 30px rgba(23,53,45,.06); }
.wellness-plan-card.is-private { background: linear-gradient(145deg, #fffef9, #f8f0dc); }
.plan-badge { display: inline-flex; padding: 5px 10px; border-radius: 999px; color: var(--jade); background: var(--jade-3); font-size: .68rem; font-weight: 800; }
.wellness-plan-card.is-private .plan-badge { color: #7e5e2d; background: var(--gold-3); }
.wellness-plan-card h3 { margin: 20px 0 6px; font-size: 1.7rem; }
.wellness-plan-meta { margin: 0; color: var(--jade); font-size: .82rem; font-weight: 800; }
.wellness-plan-price { margin: 18px 0 14px; color: var(--jade); font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.85rem); line-height: 1; }
.wellness-plan-price small { color: var(--muted); font-family: var(--sans); font-size: .72rem; }
.wellness-plan-card > p:last-child { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.65; }
.wellness-cost-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 22px; }
.wellness-cost-box { padding: 24px 26px; border-radius: var(--radius); border: 1px solid var(--line-gold); background: var(--paper); box-shadow: 0 10px 24px rgba(23,53,45,.04); }
.wellness-cost-box h3 { margin: 0 0 14px; font-size: 1.18rem; }
.wellness-cost-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.wellness-cost-list li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: .84rem; line-height: 1.62; }
.wellness-cost-list li::before { position: absolute; left: 0; top: .58em; width: 8px; height: 8px; border-radius: 50%; background: var(--jade-2); content: ""; }
.exclusion-list li::before { background: #c58b68; }
.wellness-plan-note { margin: 20px 0 0; padding: 16px 18px; border-radius: 15px; color: var(--muted); background: var(--jade-3); font-size: .76rem; line-height: 1.65; }
@media (max-width: 760px) {
  .wellness-plan-grid, .wellness-cost-grid { grid-template-columns: 1fr; }
  .wellness-plan-card { padding: 22px; }
}


/* Wellness hero image and dark pricing/service block */
.wellness-hero-grid { grid-template-columns: minmax(0, 1fr); align-items: center; }
.wellness-hero-image { margin: 0; overflow: hidden; border-radius: 28px; box-shadow: var(--shadow); }
.wellness-hero-image img { display: block; width: 100%; height: 390px; object-fit: cover; }
.wellness-plan-block { margin-top: 24px; padding: 38px; border: 1px solid var(--line-gold); border-radius: 28px; color: var(--ink); background: radial-gradient(circle at 90% 8%, rgba(189,153,82,.12), transparent 28%), linear-gradient(145deg, #fffdf8 0%, #f1f6f1 100%); box-shadow: var(--shadow-soft); }

/* Wellness customer service */
.wellness-contact-section { padding-top: 42px; }
.wellness-contact-layout { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); gap: 34px; align-items: stretch; padding: 32px; border-radius: 28px; background: linear-gradient(135deg, #f7f3e8, #e8f1eb); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.wellness-contact-portrait { margin: 0; min-height: 100%; overflow: hidden; border-radius: 22px; background: #e4efe7; }
.wellness-contact-portrait img { display: block; width: 100%; height: 100%; min-height: 430px; object-fit: cover; object-position: center top; }
.wellness-contact-panel { align-self: center; }
.wellness-contact-panel h2 { margin: 2px 0 12px; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.wellness-contact-panel > .lede { margin-bottom: 22px; }
.wellness-contact-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.wellness-contact-method { display: grid; gap: 4px; min-height: 92px; padding: 18px; border: 1px solid var(--line-gold); border-radius: 17px; color: var(--ink); background: var(--paper); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
a.wellness-contact-method:hover { transform: translateY(-3px); border-color: var(--jade); box-shadow: 0 12px 26px rgba(23,53,45,.1); }
.wellness-contact-method span { color: var(--jade); font-size: .68rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.wellness-contact-method strong { color: var(--ink); font-size: .88rem; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .wellness-hero-grid, .wellness-contact-layout { grid-template-columns: 1fr; }
  .wellness-hero-image img { height: 260px; }
  .wellness-plan-block { padding: 26px 20px; }
  .wellness-contact-layout { padding: 20px; }
  .wellness-contact-portrait img { min-height: 300px; max-height: 420px; }
  .wellness-contact-methods { grid-template-columns: 1fr; }
}

.wellness-duration-band {
  position: relative;
  z-index: 1;
  padding: 28px 0 0;
  overflow: visible;
  background:
    radial-gradient(ellipse 45% 120% at 18% 10%, rgba(61,140,110,.06), transparent 72%),
    linear-gradient(180deg, #fbf9f2 0%, #f2f4ed 100%);
  border-top: 1px solid rgba(189,153,82,.24);
}
.wellness-duration-band + .section-dark {
  position: relative;
  z-index: 2;
  margin-top: -9px;
}
.wellness-duration-switch {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 22px;
  background: transparent;
}
.wellness-duration-switch::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 0;
  height: 1px;
  background: rgba(189,153,82,.3);
}
.wellness-duration-switch button {
  position: relative;
  z-index: 1;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  min-height: 67px;
  padding: 13px 18px 12px;
  overflow: hidden;
  border: 1px solid #173f35;
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(180deg, #265646 0%, #173f35 100%);
  color: #fffdf8;
  font-family: var(--title-font);
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .05em;
  text-align: center;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    0 4px 12px rgba(23,53,45,.13);
  transform: translateY(4px);
  transition: color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.wellness-duration-switch button > .lang-zh,
.wellness-duration-switch button > .lang-en {
  position: relative;
  z-index: 2;
}
.wellness-duration-numeral {
  position: absolute;
  z-index: 0;
  left: 16px;
  bottom: -27px;
  color: rgba(255,253,248,.15);
  font-family: var(--title-font);
  font-size: 5.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.09em;
  pointer-events: none;
  user-select: none;
}
.wellness-duration-switch button:hover {
  background: linear-gradient(180deg, #2d6754 0%, #1e4b3f 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.16),
    0 5px 14px rgba(23,53,45,.17);
  transform: translateY(1px);
}
.wellness-duration-switch button.is-active {
  min-height: 83px;
  background: linear-gradient(180deg, #d27644 0%, #b7542c 100%);
  border-color: #a84825;
  box-shadow:
    inset 0 3px 0 #edc983,
    inset 0 1px 0 rgba(255,255,255,.2),
    0 -2px 12px rgba(155,70,33,.2);
  transform: translateY(0);
}
.wellness-duration-switch button.is-active:hover {
  background: linear-gradient(180deg, #ca6939 0%, #aa4824 100%);
}
.wellness-duration-switch button.is-active .wellness-duration-numeral {
  color: rgba(255,248,231,.23);
}
.wellness-duration-switch button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.wellness-duration-panel[hidden] { display: none !important; }
@media (max-width: 560px) {
  .wellness-duration-band { padding: 20px 0 0; }
  .wellness-duration-switch { gap: 3px; padding: 0 14px; }
  .wellness-duration-switch::after { left: 14px; right: 14px; }
  .wellness-duration-switch button {
    min-height: 61px;
    padding: 9px 5px;
    border-radius: 11px 11px 0 0;
    font-size: clamp(.92rem, 4.1vw, 1rem);
    line-height: 1.3;
    letter-spacing: 0;
    transform: translateY(3px);
  }
  .wellness-duration-numeral {
    left: 7px;
    bottom: -16px;
    font-size: 3.55rem;
  }
  .wellness-duration-switch button.is-active { min-height: 72px; transform: translateY(0); }
}
.wellness-plan-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 4px 0 18px; }
.wellness-plan-actions .btn { width: 100%; white-space: nowrap; }
.wellness-plan-actions .btn-primary { color: #fff; background: var(--ink); box-shadow: 0 10px 22px rgba(23,53,45,.16); }
.wellness-plan-actions .btn-primary:hover { color: #fff; background: var(--jade); }
.wellness-plan-actions .btn-ghost { color: var(--jade); background: rgba(255,255,255,.82); border-color: rgba(34,100,79,.28); }
.wellness-plan-actions .btn-ghost:hover { color: var(--ink); background: #fff; }
@media (max-width: 420px) { .wellness-plan-actions { grid-template-columns: 1fr; } }


/* Clinical observation pricing tiers */
.clinical-pricing-card { gap: 12px; padding: 24px 22px; text-align: left; }
.clinical-price-option { display: grid; gap: 7px; padding: 15px 15px 14px; border: 1px solid var(--line-gold); border-radius: 16px; background: var(--paper); }
.clinical-price-option.is-private { border-color: var(--line-gold); background: linear-gradient(145deg, #fffef9, #f8f0dc); }
.clinical-price-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.clinical-price-heading > span { color: var(--ink); font-size: .82rem; font-weight: 850; }
.clinical-price-heading strong { margin: 0; color: var(--jade); font-size: 1.5rem; line-height: 1.1; white-space: nowrap; }
.clinical-price-option p { margin: 0; color: var(--muted); font-size: .7rem; line-height: 1.55; }
.clinical-pricing-card .btn { margin-top: 4px; }
@media (max-width: 420px) {
  .clinical-price-heading { align-items: flex-start; flex-direction: column; }
}


/* Clinical observation price section below itinerary */
.clinical-hero-grid { grid-template-columns: minmax(0, 1fr); }
.clinical-price-section { padding-top: 68px; padding-bottom: 68px; }
.clinical-price-panel { padding: 36px; border: 1px solid var(--line-gold); border-radius: 28px; background: radial-gradient(circle at 91% 8%, rgba(189,153,82,.12), transparent 28%), linear-gradient(145deg, #fffdf8, #f1f6f1); box-shadow: var(--shadow-soft); }
.clinical-price-panel-head { max-width: 820px; margin-bottom: 26px; }
.clinical-price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.clinical-price-grid .clinical-price-option { padding: 24px; }
.clinical-price-grid .clinical-price-heading strong { font-size: 2rem; }
.clinical-price-grid .clinical-price-option p { font-size: .84rem; }
.clinical-price-actions { display: flex; justify-content: center; margin-top: 24px; }
@media (max-width: 760px) {
  .clinical-price-section { padding-top: 48px; padding-bottom: 48px; }
  .clinical-price-panel { padding: 24px 20px; }
  .clinical-price-grid { grid-template-columns: 1fr; }
  .clinical-price-grid .clinical-price-heading strong { font-size: 1.65rem; }
}


/* Membership module link card */

.product-card .membership-benefit-list { margin-top: 16px; padding-top: 0; }
.product-card .membership-benefit-list li { font-size: .82rem; line-height: 1.55; }


/* Training provider cards: one wide systematic card, then a 2 x 2 specialization grid */
.training-provider-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.training-provider-grid .partner-card-wide { grid-column: 1 / -1; }
@media (max-width: 760px) {
  .training-provider-grid { grid-template-columns: 1fr; }
  .training-provider-grid .partner-card-wide { grid-column: auto; }
}

.training-facts { display: grid; gap: 7px; margin: 14px 0 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.training-facts p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.55; }
.training-facts strong { color: var(--ink); font-weight: 850; }

.heading-accent { display: inline-block; color: var(--vermilion); font-size: 1.18em; line-height: .9; }


/* Training course subtle background watermark */
.training-page #training-institutions { position: relative; overflow: hidden; isolation: isolate; }
.training-page #training-institutions::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("../img/tcm-acupuncture.jpg");
  background-position: right 5% top 48px;
  background-size: min(288px, 37vw) auto;
  background-repeat: no-repeat;
  opacity: .07;
  filter: saturate(.7);
}
.training-page #training-institutions > .container { position: relative; z-index: 1; }
.training-page #training-institutions { padding-top: 52px; }

.training-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 4px; }
.training-card-actions .text-link { margin-top: 0; font-size: 1rem; font-weight: 900; }

.training-primary-action { font-size: 1rem; font-weight: 900; }


/* ============================================================
   左侧栏导航（桌面端 ≥841px）
   当前项为圆角高亮块，切换时带回弹地滑动到新位置，宽高跟随目标项
   ============================================================ */
:root { --sidebar-w: 264px; }

/* 高亮块仅在桌面侧栏中显示；移动端沿用原有菜单内联底色 */
.nav-indicator { display: none; }

@media (min-width: 841px) {
  body { padding-left: var(--sidebar-w); }

  .skip-link:focus { left: calc(var(--sidebar-w) + 18px); }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-w);
    z-index: 60;
    /* 整侧栏不再滚 —— 改为 flex 三段布局，仅 nav-links 中间区域独立滚 */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-bottom: 0;
    border-right: 1px solid var(--line-gold);
    background:
      radial-gradient(ellipse 130% 55% at 50% -8%, rgba(189,153,82,.12), transparent 62%),
      linear-gradient(180deg, #fffdf8 0%, #faf6ec 52%, #f3eddf 100%);
    backdrop-filter: none;
    box-shadow: inset 1px 0 0 rgba(255,255,255,.65), 12px 0 36px rgba(23,53,45,.05);
  }

  .site-header .nav-wrap.container {
    width: 100%;
    max-width: none;
    /* 不再 min-height: 100vh —— 高度由父 flex 决定 */
    flex: 1 1 auto;
    min-height: 0; /* 允许内容区在 flex 中被压缩 */
    margin: 0;
    padding: 22px 18px 16px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
  }

  .brand {
    min-width: 0;
    /* 品牌区永远不被压缩，始终完整可见 */
    flex-shrink: 0;
    padding: 2px 6px 18px;
    border-bottom: 1px solid rgba(229,212,166,.85);
  }

  .brand .brand-copy { min-width: 0; }
  .brand-copy small { white-space: normal; }

  .nav-links {
    position: relative;
    flex: 1 1 auto;
    /* 关键：flex 子项允许被压缩 + overflow 才生效 —— 这俩缺一不可 */
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 18px 0 0;
    padding-right: 4px; /* 预留滚动条位置，避免滚动时菜单项抖动 */
    scrollbar-width: thin;
    scrollbar-color: rgba(189,153,82,.55) transparent;
  }
  .nav-links::-webkit-scrollbar { width: 6px; }
  .nav-links::-webkit-scrollbar-thumb {
    background: rgba(189,153,82,.55);
    border-radius: 999px;
  }
  .nav-links::-webkit-scrollbar-track { background: transparent; }

  .nav-links a {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 8px 16px;
    border-radius: 14px;
    font-size: .95rem;
    font-weight: 650;
    color: var(--ink-2);
    /* 东方美学：收而不僵、动而不躁 —— ease-out-quint 带细腻减速，无 overshoot 回弹。
       注意：hover 不做 transform/scale —— 缩放会污染高亮块测量、且文字相对
       高亮背景块蠕动造成"晃动"观感；悬浮反馈交给高亮块滑动 + 变色 + 周围暗化。 */
    transition:
      color .36s cubic-bezier(.25,.6,.45,1),
      background-color .36s cubic-bezier(.25,.6,.45,1),
      opacity .36s cubic-bezier(.25,.6,.45,1);
  }

  /* 悬浮目标：玉色浸润（高亮块负责位移反馈，链接本身不再缩放/浮起） */
  .nav-links a:hover {
    color: var(--jade);
  }

  /* 聚焦周围暗化：hover 某个菜单项时，其他同级项 opacity 微降（0.92），
     而非让兄弟项 scale，避免连锁抖动 —— 暗化周围 = 聚光当前 */
  .nav-links:has(.nav-group:hover) .nav-group:not(:hover) > .nav-item-row > a,
  .nav-links:has(.nav-links > a:hover) .nav-group > .nav-item-row > a {
    opacity: .92;
  }
  /* 兄弟二级/三级项：hover 某个子项时，同层其他子项 opacity 微降 */
  .nav-sub-inner:has(> .nav-sub-row:hover) > .nav-sub-row:not(:hover) > a,
  .nav-sub-inner:has(> a:hover) > a:not(:hover):not(.nav-sub-row > *) {
    opacity: .92;
  }

  .nav-links a[aria-current="page"] { color: var(--jade); font-weight: 800; opacity: 1; }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-links a[aria-current="page"]:hover {
    transform: translateY(-1px); /* 当前项只浮起不放大，保持基准稳定 */
  }

  /* 一级项行：链接 + 折叠箭头（中间容器保持静态，保证高亮块坐标一致） */
  .nav-item-row { display: flex; align-items: stretch; }
  .nav-item-row > a { flex: 1 1 auto; min-width: 0; }
  .nav-caret {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    margin: 0 4px 0 0;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    /* 与链接同节奏，呼应呼吸感 */
    transition:
      color .36s cubic-bezier(.25,.6,.45,1),
      background-color .36s cubic-bezier(.25,.6,.45,1);
  }
  .nav-caret:hover { color: var(--jade); background: rgba(34,100,79,.07); }
  .nav-caret svg { width: 15px; height: 15px; display: block; }

  /* 操作按钮区：固定在侧栏底部，不被滚动挤走 */
  .site-header .nav-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 4px 0;
    margin-top: 8px;
    border-top: 1px solid rgba(229,212,166,.65);
  }
  .site-header .nav-actions .btn-small {
    flex: 1 1 auto;
    min-width: 0;
    font-size: .82rem;
    min-height: 40px;
    padding: 8px 14px;
  }
  .site-header .nav-actions .lang-toggle {
    flex: 0 0 auto;
    min-width: 48px;
    height: 40px;
    padding: 0 12px;
  }
  .site-header .nav-actions .menu-toggle { display: none; }

  /* 二级子项：与一级同套美学，幅度再收一分（更沉得住气） */
  .nav-sub a {
    min-height: 34px;
    padding: 6px 12px 6px 14px;
    border-radius: 10px;
    font-size: .84rem;
    font-weight: 550;
    color: var(--ink-2);
    transition:
      color .36s cubic-bezier(.25,.6,.45,1),
      opacity .36s cubic-bezier(.25,.6,.45,1),
      transform .42s cubic-bezier(.22,.61,.36,1);
    transform-origin: left center;
  }
  .nav-sub a:hover {
    color: var(--jade);
    transform: translateY(-1px) scale(1.015);
  }
  .nav-sub a.is-current-sub { color: var(--jade); font-weight: 750; }
  .nav-sub a.is-current-sub:hover { transform: translateY(-1px); }

  /* 三级课程项：更轻更小，箭头收窄 */
  .nav-sub-row .nav-caret { width: 28px; }
  .nav-sub-level3 a {
    min-height: 30px;
    padding-top: 5px;
    padding-bottom: 5px;
    font-size: .8rem;
  }

  /* 滑动高亮块：翠玉金箔风——更饱和的翡翠渐变 + 金色高光条 + 柔和发光
     位置/尺寸由 main.js 以内联样式写入，跨页滑动用 WAAPI 驱动 */
  .nav-indicator {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
    border-radius: 14px;
    border: 1px solid rgba(200,162,85,.65);
    background:
      /* 左上金色高光条 */
      linear-gradient(135deg, rgba(255,225,150,.55) 0%, rgba(255,225,150,0) 30%),
      /* 左侧金色竖边 */
      linear-gradient(90deg, rgba(200,162,85,.45) 0%, rgba(200,162,85,0) 4px),
      /* 右上白色高光点 */
      radial-gradient(circle at 85% 15%, rgba(255,255,255,.8), transparent 45%),
      /* 主翡翠渐变 */
      linear-gradient(135deg, #d9ecdf 0%, #b8dcc5 50%, #9fcfb3 100%);
    box-shadow:
      0 2px 6px rgba(45,127,94,.18),
      0 6px 16px rgba(45,127,94,.12),
      inset 0 1px 0 rgba(255,255,255,.85),
      inset 0 -1px 0 rgba(45,127,94,.1);
    opacity: 0;
    /* hover 跟随：交给原生 transition。浏览器对"过渡途中再次改目标值"
       会自动从当前视觉位置平滑改道（retarget），反复快速悬停也不跳变、不晃动。
       跨页回弹改用 WAAPI 驱动，期间挂 .is-sliding 关闭这里的位移过渡，避免两套动画打架。 */
    transition:
      transform .3s cubic-bezier(.22,.61,.36,1),
      width .3s cubic-bezier(.22,.61,.36,1),
      height .3s cubic-bezier(.22,.61,.36,1),
      opacity .25s ease;
  }

  .nav-indicator.is-ready { opacity: 1; }
  /* WAAPI 跨页接力 / JS 瞬时校正期间：位移不走 CSS transition */
  .nav-indicator.is-sliding {
    transition: opacity .25s ease;
  }

  .nav-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(229,212,166,.75);
  }

  /* EN 与主题按钮同行并排各半宽，用户胶囊与申请·咨询通栏各自换行 */
  .nav-actions .lang-toggle { width: calc(50% - 5px); min-width: 0; min-height: 40px; }
  .nav-actions .nav-theme-toggle { width: calc(50% - 5px); min-height: 40px; padding: 0; }
  .nav-actions .auth-nav { width: 100%; }
  .nav-actions .btn-small { display: inline-flex; width: 100%; min-height: 44px; }
}

@media (min-width: 841px) and (prefers-reduced-motion: reduce) {
  .nav-indicator {
    transition: opacity .2s ease;
  }
}

/* ============================================================
   二级折叠菜单（桌面/移动共用）
   就地折叠展开；箭头旋转 90°；子项依次错开淡入；左侧细竖线连接；
   同一时间只展开一组（手风琴，JS 控制 .is-open）
   ============================================================ */
.nav-group,
.nav-item-row { position: static; }

/* 三级折叠行（培训专题：链接 + 自己的箭头） */
.nav-sub-row { display: flex; align-items: stretch; }
.nav-sub-row > a { flex: 1 1 auto; min-width: 0; }

.nav-caret svg {
  transition: transform .32s cubic-bezier(.4, 0, .2, 1);
}
.nav-group.is-open > .nav-item-row .nav-caret svg,
.nav-subgroup.is-open .nav-caret svg { transform: rotate(90deg); }

/* 导航锚点留白：移动端吸顶页眉沿用全局 section[id] 的 98px；
   桌面端固定页眉在左侧，锚点只需小间距（含非 section 的价格区块） */
#wellness-pricing { scroll-margin-top: 98px; }
@media (min-width: 841px) {
  section[id^="classics-"],
  section[id^="training-"],
  section[id^="clinical-"],
  section[id^="wellness-"],
  section[id^="membership-"],
  section[id^="partners-"],
  #books,
  #contact,
  #faq,
  #systematic-training,
  #wellness-pricing { scroll-margin-top: 16px; }
}

/* 页面初始化静默展开：禁止所有折叠/箭头/子项淡入动画，
   由 main.js 在所有自动展开完成后移除 .nav-no-anim */
.nav-links.nav-no-anim .nav-sub,
.nav-links.nav-no-anim .nav-sub a,
.nav-links.nav-no-anim .nav-caret svg {
  transition: none !important;
  animation: none !important;
}

/* 折叠容器：grid 0fr → 1fr 就地展开 */
.nav-sub {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  pointer-events: none;
  transition:
    grid-template-rows .38s cubic-bezier(.4, 0, .2, 1),
    opacity .26s ease;
}
.nav-group.is-open > .nav-sub,
.nav-subgroup.is-open > .nav-sub {
  grid-template-rows: 1fr;
  opacity: 1;
  pointer-events: auto;
}
.nav-sub-inner {
  display: block;
  min-height: 0;
  overflow: hidden;
  border-left: 1px solid rgba(189, 153, 82, .5);
  margin: 1px 0 3px 21px;
  padding: 2px 0 4px 9px;
}
/* 三级竖线再向内收一层，形成树形连接 */
.nav-sub-level3 .nav-sub-inner {
  margin: 1px 0 3px 18px;
  padding-top: 1px;
  padding-bottom: 2px;
}

/* 子项错开淡入（--i 由 main.js 按序号写入） */
.nav-sub a {
  opacity: 0;
  transform: translateY(-5px);
  transition:
    opacity .3s ease,
    transform .3s ease,
    color .2s ease,
    background-color .2s ease;
  transition-delay: 0ms;
}
/* 二级子项随所属组展开淡入 */
.nav-group.is-open > .nav-sub > .nav-sub-inner > a,
.nav-group.is-open .nav-sub-row > a {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i, 0) * 48ms + 70ms);
}
/* 三级课程随培训专题展开淡入 */
.nav-subgroup.is-open .nav-sub a {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i, 0) * 48ms + 60ms);
}

/* 老内核兜底：grid-template-rows:0fr 无法真正折叠时改用 max-height
   （JS 探测后在 <html> 上加 .nav-legacy，现代浏览器不受影响） */
html.nav-legacy .nav-sub {
  display: block;
  max-height: 0;
  overflow: hidden;
  transition:
    max-height .36s cubic-bezier(.4, 0, .2, 1),
    opacity .24s ease;
}
html.nav-legacy .nav-group.is-open > .nav-sub,
html.nav-legacy .nav-subgroup.is-open > .nav-sub {
  max-height: 560px;
}

@media (prefers-reduced-motion: reduce) {
  .nav-sub,
  .nav-caret svg,
  .nav-links a,
  .nav-sub a { transition: opacity .2s ease; transform: none; }
}

/* ============================================================
   深色主题（墨玉夜色）：html[data-theme="dark"]
   浅色为默认；深色通过覆写 :root 语义变量整体换肤，
   其余为硬编码浅色背景的针对性规则。
   ============================================================ */
html[data-theme="dark"] { color-scheme: dark; }

html[data-theme="dark"],
html[data-theme="dark"] #classics-reading {
  /* —— 基础色板反转：墨绿夜色 + 暖金 —— */
  --paper: #0e1a15;            /* 页面底 */
  --cream: #101e18;            /* section-soft 底 */
  --rice: #122219;             /* 次级底 */
  --soft: #152620;             /* 弱底色/ notice */
  --white: #16281f;            /* 卡片表面 */
  --ink: #e4eee6;              /* 正文文字（浅） */
  --ink-2: #c2d3c7;            /* 次级文字 */
  --jade: #63b491;             /* 链接/强调 */
  --jade-2: #74c4a0;
  --jade-3: #1c3a2d;           /* 徽章底 */
  --gold: #d2b271;             /* 点缀金提亮 */
  --gold-2: #e6d6a8;
  --gold-3: #3b3421;           /* 金徽章底 */
  --vermilion: #e08574;
  --line: #26382f;
  --line-gold: rgba(210, 178, 113, .32);
  --muted: #8fa096;
  --danger: #cf8578;
  --shadow: 0 24px 70px rgba(0, 0, 0, .45);
  --shadow-soft: 0 12px 32px rgba(0, 0, 0, .35);
  --input-bg: #12211a;
  --header-bg: rgba(12, 22, 17, .88);
  /* 按钮底色：深色下改为玉青按钮 */
  --btn-primary-bg: #2b6852;
  --btn-primary-bg-hover: #3d8c6e;
}

/* —— 页头 / 侧栏 —— */
html[data-theme="dark"] .site-header { border-bottom-color: rgba(38, 56, 47, .9); }
@media (min-width: 841px) {
  html[data-theme="dark"] .site-header {
    background:
      radial-gradient(ellipse 130% 55% at 50% -8%, rgba(189,153,82,.10), transparent 62%),
      linear-gradient(180deg, #121f19 0%, #0e1a15 52%, #101d17 100%);
    box-shadow: inset 1px 0 0 rgba(255,255,255,.06), 12px 0 36px rgba(0,0,0,.35);
  }
  html[data-theme="dark"] .brand { border-bottom-color: rgba(210,178,113,.25); }
  html[data-theme="dark"] .nav-actions { border-top-color: rgba(210,178,113,.25); }
  /* 桌面端 nav-indicator：浅翡翠渐变 → 深墨玉渐变，金色边框保留但调柔 */
  html[data-theme="dark"] .nav-indicator {
    border-color: rgba(210,178,113,.55);
    background:
      linear-gradient(135deg, rgba(210,178,113,.22) 0%, rgba(210,178,113,0) 28%),
      linear-gradient(90deg, rgba(210,178,113,.28) 0%, rgba(210,178,113,0) 4px),
      radial-gradient(circle at 85% 15%, rgba(198,140,50,.35), transparent 42%),
      linear-gradient(135deg, #27443a 0%, #1e3a30 50%, #16281f 100%);
    box-shadow:
      0 2px 8px rgba(0,0,0,.35),
      0 8px 20px rgba(0,0,0,.32),
      inset 0 1px 0 rgba(210,178,113,.25),
      inset 0 -1px 0 rgba(0,0,0,.3);
  }
  /* 桌面 aria-current="page" 当前项文字 */
  html[data-theme="dark"] .nav-links a[aria-current="page"] { color: #74c4a0; }
  html[data-theme="dark"] .nav-links a[aria-current="page"] .lang-en { color: #8fa096; }
  html[data-theme="dark"] .nav-sub a.is-current-sub { color: #74c4a0; }
}

/* —— 移动端汉堡菜单（@media ≤840px 内硬编码浅色背景，深色必须覆写） —— */
@media (max-width: 840px) {
  html[data-theme="dark"] .nav-links {
    background: rgba(14, 26, 21, .985);
    border-color: rgba(210,178,113,.22);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  }
  html[data-theme="dark"] .nav-links a {
    color: #e4eee6;
    border-bottom-color: rgba(255,255,255,.06);
  }
  html[data-theme="dark"] .nav-links a:hover,
  html[data-theme="dark"] .nav-links a:active {
    background: #1c3a2d;
    color: #63b491;
  }
  html[data-theme="dark"] .nav-links a[aria-current="page"] {
    background: #1c3a2d;
    color: #63b491;
  }
  html[data-theme="dark"] .nav-sub a {
    color: #c2d3c7;
  }
  html[data-theme="dark"] .nav-caret { color: #8fa096; }
}

/* —— Hero / Page Hero —— */
html[data-theme="dark"] .hero {
  background:
    radial-gradient(ellipse 80% 60% at 85% 20%, rgba(61,140,110,.16), transparent 60%),
    radial-gradient(ellipse 60% 50% at 15% 85%, rgba(189,153,82,.09), transparent 60%),
    linear-gradient(135deg, #101d17 0%, #0e1a15 40%, #131f17 100%);
}
html[data-theme="dark"] .hero::before {
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
}
html[data-theme="dark"] .page-hero {
  background:
    radial-gradient(ellipse 70% 60% at 80% 20%, rgba(61,140,110,.14), transparent 60%),
    linear-gradient(180deg, #101e18 0%, #0e1a15 100%);
}

/* —— 通用小组件 —— */
html[data-theme="dark"] .skip-link { color: #12201a; }
html[data-theme="dark"] .btn-card:hover { color: #12201a; }
html[data-theme="dark"] .btn-ghost { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.22); }
html[data-theme="dark"] .visual-label { background: rgba(22, 40, 31, .85); }
html[data-theme="dark"] .partner-strip { background: rgba(22, 40, 31, .6); border-color: rgba(255,255,255,.08); }
html[data-theme="dark"] .section-dark { background: #10241d; }
html[data-theme="dark"] .site-footer { background: #0a1d16; }
html[data-theme="dark"] .ai-chat-disclaimer { color: #c9ab6b; }

/* product-card 深色背景：原 background: var(--paper) 与 section-soft 的 --cream 色差极小，
   导致卡片"消失"在背景中。改用 --white（#16281f）与 #101e18 形成可辨识的层次 */
html[data-theme="dark"] .product-card {
  background: #16281f;
  border-color: rgba(210,178,113,.36);
}
html[data-theme="dark"] .product-card:hover {
  border-color: rgba(210,178,113,.58);
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
}
html[data-theme="dark"] .product-card .product-index { color: #8fa096; }
html[data-theme="dark"] .product-card p { color: #8fa096; }
html[data-theme="dark"] .membership-plan-price { color: #74c4a0; }
html[data-theme="dark"] .membership-plan-price small { color: #8fa096; }

/* —— 深色底带上的白底按钮/金章（文字改深色保证可读） —— */
html[data-theme="dark"] .membership-bar { background: linear-gradient(120deg, #1d5c46, #10231c); }
html[data-theme="dark"] .membership-bar .btn-primary,
html[data-theme="dark"] .membership-cta .btn-primary,
html[data-theme="dark"] .cta-band .btn-primary { color: #10231c; }
html[data-theme="dark"] .price-chip { color: #10231c; }

/* —— 硬编码浅色渐变卡片 → 深色对应 —— */
html[data-theme="dark"] .product-featured { background: linear-gradient(145deg, #1b2c22, #24301d); }
html[data-theme="dark"] .detail-price-card { background: linear-gradient(145deg, #182a20, #14221a); }
html[data-theme="dark"] .wellness-plan-block {
  background:
    radial-gradient(circle at 90% 8%, rgba(189,153,82,.10), transparent 28%),
    linear-gradient(145deg, #121f18 0%, #0f1b16 100%);
}
html[data-theme="dark"] .wellness-plan-card.is-private,
html[data-theme="dark"] .clinical-price-option.is-private { background: linear-gradient(145deg, #1c2d22, #2b3320); }
html[data-theme="dark"] .wellness-plan-card.is-private .plan-badge { color: #dfc48a; }
html[data-theme="dark"] .clinical-price-panel {
  background:
    radial-gradient(circle at 91% 8%, rgba(189,153,82,.10), transparent 28%),
    linear-gradient(145deg, #121f18, #0f1b16);
}
html[data-theme="dark"] .wellness-contact-layout { background: linear-gradient(135deg, #14241c, #101e18); }
html[data-theme="dark"] .wellness-contact-portrait { background: #16281f; }
html[data-theme="dark"] .wellness-plan-actions .btn-ghost:hover { background: var(--white); }
html[data-theme="dark"] .wellness-plan-actions .btn-primary { color: #10231c; }
html[data-theme="dark"] .ai-chat-portrait { background: linear-gradient(180deg, #16281f, #101e18); }

/* —— AI 问答：艾老花笺气泡 → 夜笺 —— */
html[data-theme="dark"] .chat-bubble {
  color: #e8dfc8;
  background:
    radial-gradient(130% 120% at 0% 0%, rgba(189,153,82,.14), transparent 55%),
    repeating-linear-gradient(0deg, rgba(210,178,113,.04) 0 1px, transparent 1px 5px),
    #17251c;
  border-color: #5a4d2a;
  box-shadow:
    inset 0 0 0 4px #1b2a20,
    inset 0 0 0 5px rgba(189,153,82,.4),
    0 10px 22px rgba(0, 0, 0, .35);
}

/* —— 分类药丸（浅色彩底 → 深色彩底） —— */
html[data-theme="dark"] .pill-green { color: #8fd4b4; background: rgba(95,191,144,.14); }
html[data-theme="dark"] .pill-gold { color: #d9bd7e; background: rgba(212,178,106,.14); }
html[data-theme="dark"] .pill-sand { color: #cfae72; background: rgba(212,178,106,.10); }
html[data-theme="dark"] .pill-blue { color: #9cc0d8; background: rgba(112,154,183,.14); }
html[data-theme="dark"] .partner-type { color: #8fd4b4; background: rgba(95,191,144,.14); }

/* —— 首页数据带 / 三步卡 / 会员推荐档（变量翻转已自适应，徽章金底补对比） —— */
html[data-theme="dark"] .step-card::after { background: rgba(99,180,145,.08); }
html[data-theme="dark"] .product-card.is-featured { border-color: rgba(210,178,113,.55); box-shadow: 0 16px 44px rgba(0,0,0,.45); }
html[data-theme="dark"] .plan-flag { color: var(--gold-2); background: rgba(210,178,113,.12); border-color: rgba(210,178,113,.45); }

/* —— 经典诵读作用域（#classics-reading 自有变量再覆写） —— */
html[data-theme="dark"] #classics-reading {
  --paper: #101d17;
  --paper-deep: #17271f;
  --line: #4a4128;
  --line-soft: #2b3c32;
  --muted: #8fa096;
  --gold: #d2b271;
  --jade: #63b491;
  /* 作用域 --ink 保持深绿：仍是按钮/激活态的底色 */
}
html[data-theme="dark"] #classics-reading .book-table thead th {
  color: #dce8df;
  background: linear-gradient(180deg, #1c2b22, #142019);
}
html[data-theme="dark"] #classics-reading .book-title-link { color: #dce8df; }
html[data-theme="dark"] #classics-reading .level-入门级 { color: #8fd4b4; background: rgba(95,191,144,.14); border-color: rgba(95,191,144,.3); }
html[data-theme="dark"] #classics-reading .level-临床深造 { color: #e6a294; background: rgba(224,133,116,.12); border-color: rgba(224,133,116,.3); }
html[data-theme="dark"] #classics-reading .level-学术考证 { color: #a9bcdf; background: rgba(129,154,196,.12); border-color: rgba(129,154,196,.3); }
html[data-theme="dark"] #classics-reading .pg-btn:hover:not(.is-disabled) { background: var(--white); }
/* 深色下“--ink 浅底 + 白字”的反白元素 → 深字保证可读（激活分类/购物车角标/结算按钮） */
html[data-theme="dark"] #classics-reading .book-category-btn.is-active { color: #10231c; }
html[data-theme="dark"] #classics-reading .book-category-btn.is-active span {
  background: rgba(16, 35, 28, .14); color: #10231c;
}
html[data-theme="dark"] #classics-reading .cart-badge { color: #10231c; }
html[data-theme="dark"] #classics-reading .cart-actions .btn-primary { color: #10231c; }
html[data-theme="dark"] #classics-reading .cart-entry:hover { color: #10231c; }
html[data-theme="dark"] #classics-reading .pg-btn.is-active { color: #10231c; }
html[data-theme="dark"] #classics-reading .btn-cart-add:hover { color: #10231c; }
html[data-theme="dark"] #books .book-buy-row .btn-cart-add:hover { color: #10231c; }

/* —— 深色补漏排查（2026-10-19）：翻转后变浅的变量作底色时，其上浅字必须同步翻深 —— */
/* 朱红印章类：--vermilion 深色下变浅（#e08574），白/米字改深字保持印章可读 */
html[data-theme="dark"] .ai-disclaimer-seal,
html[data-theme="dark"] #books .book-card::before,
html[data-theme="dark"] .seal-mark,
html[data-theme="dark"] #books .book-buy-row .btn-cart-add.is-added { color: #3a1610; }
/* 品牌印章（页头/页脚）：保留米色字，深色下把朱红渐变压回深色 */
html[data-theme="dark"] .brand-mark,
html[data-theme="dark"] .site-footer a.footer-brand .brand-mark {
  background: linear-gradient(145deg, #b4544a, #822c22);
}
/* 玉青/金/灰底按钮与徽章：--jade/--gold/--muted 深色下变浅，白字改深字 */
html[data-theme="dark"] .paypal-overlay-btn,
html[data-theme="dark"] .paypal-direct-btn,
html[data-theme="dark"] .detail-price-savings,
html[data-theme="dark"] .applied-level-badge,
html[data-theme="dark"] #classics-reading .btn-cart-add.is-added,
html[data-theme="dark"] .detail-price-actions .btn-primary.is-added { color: #10231c; }
/* 康养方案幽灵按钮：基态近白底 + 浅玉字在深色下不可读，翻为暗色透层（hover 已有覆盖） */
html[data-theme="dark"] .wellness-plan-actions .btn-ghost {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.22);
}

/* 适合谁：强调 01、02 的适合人群标签 */
.home-audience .audience-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--jade-3);
  color: var(--jade);
  line-height: 1.45;
  letter-spacing: .04em;
}

/* 培训流程：联系我们步骤 */
.workflow-item-link { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.workflow-item-link:hover { transform: translateY(-2px); border-color: var(--jade); box-shadow: var(--shadow-soft); }

/* 联系我们步骤：墨绿色底、白色文字 */
.workflow-item-link {
  background: #17352d;
  border-color: #17352d;
  color: #fff;
}
.workflow-item-link > span {
  background: rgba(255, 255, 255, .14);
  color: #fff;
}
.workflow-item-link h3,
.workflow-item-link p {
  color: #fff;
}
.workflow-item-link p { opacity: .82; }
.workflow-item-link:hover {
  background: #205e4c;
  border-color: #bd9952;
}

/* 培训课程标题重点词：仅改红色，不改变字号 */
.training-title-red { color: var(--vermilion); font-size: inherit; line-height: inherit; }

/* 境外机构/医馆邀请说明卡片 */
.training-partner-invite {
  margin: 18px 0 0;
  padding: 16px 18px;
  border: 1px solid rgba(34, 100, 79, .18);
  border-radius: 14px;
  background: var(--jade-3);
  color: var(--ink-2);
}

/* 养生研学首屏标题：手机端固定两行 */
@media (max-width: 560px) {
  .page-hero h1.wellness-hero-title { font-size: clamp(1.75rem, 8vw, 2rem); }
  .page-hero h1.wellness-hero-title .lang-zh {
    font-size: inherit;
    letter-spacing: .02em;
    white-space: nowrap;
  }
  .page-hero h1.wellness-hero-title .lang-en {
    font-size: .9em;
    line-height: 1.2;
  }
}


/* Dedicated expert team page */
.expert-page-hero {
  background:
    radial-gradient(circle at 82% 20%, rgba(189,153,82,.16), transparent 28%),
    radial-gradient(circle at 16% 80%, rgba(61,140,110,.12), transparent 34%),
    linear-gradient(135deg, #fffdf8 0%, #f3f5ed 100%);
}
.expert-team-section { padding-top: 76px; }
.expert-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.expert-card {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  min-height: 310px;
  overflow: hidden;
  border: 1px solid var(--line-gold);
  border-radius: 25px;
  background: var(--paper);
  box-shadow: 0 16px 38px rgba(23,53,45,.08);
}
.expert-portrait {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 100%;
  padding: 24px 14px;
  overflow: hidden;
  color: #fffdf8;
}
.expert-portrait::before,
.expert-portrait::after {
  position: absolute;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.expert-portrait::before { width: 210px; height: 210px; top: -56px; right: -76px; background: rgba(255,255,255,.14); }
.expert-portrait::after { width: 145px; height: 145px; left: -58px; bottom: -52px; border: 1px solid rgba(255,255,255,.22); }
.expert-portrait--du { background: linear-gradient(155deg, #2f715d 0%, #173f35 100%); }
.expert-portrait--zhao { background: linear-gradient(155deg, #9b783b 0%, #5c4724 100%); }
.expert-portrait--zhang { background: linear-gradient(155deg, #9b5d4f 0%, #5f3028 100%); }
.expert-portrait--ye { background: linear-gradient(155deg, #416788 0%, #1f3e5b 100%); }
.expert-portrait-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-bottom: 26px;
  color: rgba(255,253,248,.28);
  font-family: var(--title-font);
  font-size: 6.8rem;
  font-weight: 800;
  line-height: 1;
}
.expert-portrait-label {
  position: relative;
  z-index: 1;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  background: rgba(13,34,29,.22);
  color: rgba(255,255,255,.84);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .05em;
  backdrop-filter: blur(8px);
}
.expert-card-body { display: flex; flex-direction: column; padding: 30px 30px 27px; }
.expert-specialty { color: var(--vermilion); font-size: .7rem; font-weight: 850; letter-spacing: .09em; }
.expert-card-body h2 { margin: 9px 0 12px; font-size: clamp(1.45rem, 2.5vw, 1.9rem); }
.expert-card-body p { margin: 0 0 20px; color: var(--muted); font-size: .88rem; line-height: 1.8; }
.expert-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; }
.expert-tags span { padding: 5px 10px; border: 1px solid var(--line-gold); border-radius: 999px; background: var(--soft); color: var(--jade); font-size: .68rem; font-weight: 750; }
html[data-theme="dark"] .expert-card { background: #16281f; border-color: rgba(210,178,113,.36); box-shadow: 0 16px 38px rgba(0,0,0,.22); }
html[data-theme="dark"] .expert-tags span { background: rgba(255,255,255,.06); color: #dcece4; border-color: rgba(189,153,82,.3); }
@media (max-width: 1080px) {
  .expert-card { grid-template-columns: 145px minmax(0, 1fr); }
  .expert-portrait-mark { font-size: 5.7rem; }
}
@media (max-width: 760px) {
  .expert-team-section { padding-top: 58px; }
  .expert-grid { grid-template-columns: 1fr; }
  .expert-card { grid-template-columns: 1fr; }
  .expert-portrait { min-height: 220px; }
  .expert-portrait-mark { font-size: 7rem; }
  .expert-card-body { padding: 26px 24px 24px; }
}
