/* ==========================================================================
   古中医笔记 · Mock 唯一视觉真源 (tokens.css)
   ★ 品牌色跟随精简控轴（jjkongzhou）· 移动端优先 375 基准 · PC 限宽 480 居中
   ★ class 词汇表 = 后续子代理的公共语言，不得新增颜色/字体/CDN/图片
   ========================================================================== */

:root {
  /* ---- 控轴品牌色（定案，勿改） ---- */
  --brand:        #C0392B;   /* 主色红 */
  --brand-deep:   #8E1A12;   /* 深红 */
  --apricot:      #E8A87C;   /* 杏 */
  --apricot-deep: #DB9668;   /* 深杏 */
  --cream:        #FFE9C2;   /* 米黄 */
  --bg:           #FFF7EE;   /* 暖底 */
  --bg-2:         #FDF0E2;   /* 暖底 2 */
  --bg-3:         #F5DCC4;   /* 暖底 3 */
  --text:         #3E2E26;   /* 深棕（正文） */
  --text-2:       #5D4037;   /* 深棕（标题） */
  --text-3:       #A0847A;   /* 灰棕（次要文字） */
  --line:         #EEDCC8;   /* 分隔线 */
  --white:        #FFFFFF;
  --lock-bg:      #EFE3D6;   /* 锁定占位灰 */
  --lock-bar:     #E2D2C0;   /* 锁定占位条 */

  /* ---- 尺寸 / 圆角 / 字号 ---- */
  --app-w: 480px;
  --r-sm: 8px;  --r: 12px;  --r-lg: 16px;  --r-pill: 999px;
  --fs-tiny: 12px; --fs-small: 13px; --fs-body: 14px; --fs-h3: 16px;
  --fs-h2: 18px;   --fs-h1: 22px;   --fs-lg: 24px;
  --touch: 44px;             /* 触控热区下限 */
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --shadow: 0 2px 10px rgba(120, 70, 40, .08);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg-3);
  color: var(--text);
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: var(--fs-body);
  line-height: 1.6;
}

/* ---------- 应用容器：移动端优先 + PC 限宽 480 居中（★不分叉） ---------- */
/* ★ 应用外壳：整屏高、内容区滚动、底栏永远钉在屏幕底部（修「底栏浮在内容中间」） */
.phone, .app {
  max-width: var(--app-w);
  margin: 0 auto;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 0 0 1px rgba(120,70,40,.06);
}
/* 媒体查询只做视觉增强，不改宽度/布局（硬约束） */
@media (min-width: 481px) {
  .phone, .app { box-shadow: 0 8px 30px rgba(120,70,40,.14); }
}

/* ---------- 顶栏 ---------- */
.appbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 8px;
  min-height: 52px; padding: 8px 14px;
  padding-top: calc(8px + var(--safe-t));
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.appbar .back {
  width: var(--touch); height: var(--touch); margin-left: -10px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: 0; font-size: 20px; color: var(--text-2);
  cursor: pointer; flex: 0 0 auto;
}
.appbar .title { font-size: var(--fs-h2); font-weight: 700; color: var(--text-2); flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appbar .right { font-size: var(--fs-small); color: var(--brand); flex: 0 0 auto; min-height: var(--touch);
  display: flex; align-items: center; gap: 4px; }
.appbar.brand { background: var(--brand); border-bottom-color: var(--brand-deep); }
.appbar.brand .title, .appbar.brand .back, .appbar.brand .right { color: #fff; }

/* ---------- 内容区（唯一滚动容器） ---------- */
.screen { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 12px 14px 20px; }
.screen.nopad { padding: 0 0 20px; }
.sec { margin: 0 0 18px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 2px 8px; }
.sec-title { font-size: var(--fs-h3); font-weight: 700; color: var(--text-2); }
.sec-more { font-size: var(--fs-small); color: var(--brand); min-height: 32px; display: inline-flex; align-items: center; }
.group-head { font-size: var(--fs-small); font-weight: 700; color: var(--text-3);
  margin: 16px 2px 6px; letter-spacing: .04em; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 12px 14px; margin: 0 0 10px;
}
.card.flat { border: 0; box-shadow: var(--shadow); }
.card.brand { background: var(--brand); border-color: var(--brand-deep); color: #fff; }
.card.brand .sec-title, .card.brand .t { color: #fff; }
.card.brand .tiny, .card.brand .muted { color: #FBE3D8; }
.card.cream { background: var(--cream); border-color: var(--apricot); }
.card.cream .tiny, .card.cream .muted { color: #7A4B22; }
.card.entry { display: flex; align-items: center; gap: 12px; }
.card.entry .ic { font-size: 26px; flex: 0 0 auto; }
.card.entry .body { flex: 1; min-width: 0; }
.card.entry .go { color: var(--text-3); font-size: 20px; }

/* ---------- 列表（行 ≤64px） ---------- */
.list { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.list-row {
  display: flex; align-items: center; gap: 10px;
  min-height: 60px; max-height: 64px; padding: 0 14px;
  border-bottom: 1px solid var(--line); background: var(--white);
  color: inherit; text-decoration: none; cursor: pointer;
}
.list-row:last-child { border-bottom: 0; }
.list-row .lead { flex: 1; min-width: 0; }
.list-row .lead .t { display: block; font-size: var(--fs-body); color: var(--text-2); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row .lead .s { display: block; font-size: var(--fs-tiny); color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row .tail { flex: 0 0 auto; color: var(--text-3); font-size: 18px; }

/* ---------- 病种卡 ---------- */
.tp { background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 12px 14px; margin: 0 0 10px; cursor: pointer; display: block; color: inherit; text-decoration: none; }
.tp .head { display: flex; align-items: center; gap: 8px; }
.tp .name { font-size: var(--fs-h3); font-weight: 700; color: var(--text-2); flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp .desc { font-size: var(--fs-small); color: var(--text-3); margin: 4px 0 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tp .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* ---------- 徽章 / 标签 ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--fs-tiny); line-height: 1; padding: 5px 9px;
  border-radius: var(--r-pill); background: var(--bg-2); color: var(--text-2);
  border: 1px solid var(--line);
}
.chip.brand { background: var(--brand); color: #fff; border-color: var(--brand-deep); }
.chip.cream { background: var(--cream); color: #7A4B22; border-color: var(--apricot); }
.chip.lock  { background: var(--lock-bg); color: #8A6A55; border-color: var(--lock-bar); font-weight: 700; }
.chip.audio { background: #EAF4EE; color: #1B6B3D; border-color: #BFE0CB; }
.chip.free  { background: #EAF4EE; color: #1B6B3D; border-color: #BFE0CB; }
.chip-sel { background: var(--brand); color: #fff; border-color: var(--brand-deep); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.chips.scroll .chip { flex: 0 0 auto; min-height: 36px; padding: 8px 14px; font-size: var(--fs-small); }
.chip.tab { min-height: 36px; padding: 8px 16px; font-size: var(--fs-small); cursor: pointer; }

/* ---------- 数字条（≤3） ---------- */
.nums { display: flex; gap: 10px; }
.nums .num { flex: 1; text-align: center; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); padding: 10px 6px; }
.nums .num .v { font-size: var(--fs-h1); font-weight: 700; color: var(--brand); line-height: 1.2; }
.nums .num .k { font-size: var(--fs-tiny); color: var(--text-3); }

/* ---------- 搜索框 ---------- */
.search { display: flex; align-items: center; gap: 8px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r-pill); padding: 0 14px; height: var(--touch); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none;
  font-size: var(--fs-body); color: var(--text); }
.search .ic { color: var(--text-3); }

/* ---------- 按钮 ---------- */
.btn { display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; min-height: var(--touch); padding: 12px; border: 0; border-radius: var(--r-pill);
  font-size: var(--fs-h3); font-weight: 700; cursor: pointer; background: var(--brand); color: #fff; text-decoration: none; }
.btn.deep { background: var(--brand-deep); }
.btn.ghost { background: var(--white); color: var(--brand); border: 1.5px solid var(--brand); }
.btn.soft { background: var(--cream); color: #7A4B22; border: 1px solid var(--apricot); }
.btn.small { width: auto; min-height: 40px; padding: 8px 16px; font-size: var(--fs-body); }
.btn[disabled] { opacity: .5; }
.btn-row { display: flex; gap: 10px; }

/* ---------- 锁定区（★看得见有、看不见是什么） ---------- */
.lockbox { background: var(--lock-bg); border: 1px dashed var(--lock-bar); border-radius: var(--r);
  padding: 12px 14px; margin: 0 0 10px; }
.lockbox .lock-head { display: flex; align-items: center; gap: 8px; }
.lockbox .lock-head .lk { font-size: var(--fs-h3); }
.lockbox .lock-head .nm { font-size: var(--fs-body); font-weight: 700; color: #7A5540; flex: 1; }
.lockbox .lock-head .cnt { font-size: var(--fs-tiny); color: #8A6A55; font-weight: 700; }
.lockbars { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.lockbar { height: 12px; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--lock-bar) 0%, #EFE0D0 100%); }
.lockbar.w70 { width: 70%; } .lockbar.w85 { width: 85%; } .lockbar.w55 { width: 55%; } .lockbar.w40 { width: 40%; }
.locknote { font-size: var(--fs-tiny); color: #8A6A55; margin-top: 8px; }

/* ---------- 音频（★全部免费，不锁） ---------- */
.audio-bar { display: flex; align-items: center; gap: 12px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin: 0 0 10px; }
.audio-bar .play { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 50%;
  background: var(--brand); color: #fff; border: 0; font-size: 18px; display: flex;
  align-items: center; justify-content: center; cursor: pointer; }
.audio-bar .meta { flex: 1; min-width: 0; }
.audio-bar .meta .t { font-size: var(--fs-body); font-weight: 600; color: var(--text-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.audio-bar .meta .s { font-size: var(--fs-tiny); color: var(--text-3); }
.audio-bar .dur { flex: 0 0 auto; font-size: var(--fs-tiny); color: var(--text-3); }
.audio-item { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 10px 14px;
  border-bottom: 1px solid var(--line); background: var(--white); cursor: pointer; }
.audio-item:last-child { border-bottom: 0; }
.audio-item .ic { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 50%;
  background: var(--cream); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.audio-item .meta { flex: 1; min-width: 0; }
.audio-item .meta .t { font-size: var(--fs-body); font-weight: 600; color: var(--text-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.audio-item .meta .s { font-size: var(--fs-tiny); color: var(--text-3); }
.audio-item .dur { font-size: var(--fs-tiny); color: var(--text-3); flex: 0 0 auto; }
.audio-entry { display: flex; align-items: center; gap: 12px; background: var(--cream);
  border: 1px solid var(--apricot); border-radius: var(--r); padding: 14px; margin: 0 0 14px; cursor: pointer; }
.audio-entry .ic { font-size: 24px; }
.audio-entry .body { flex: 1; min-width: 0; }
.audio-entry .body .t { font-size: var(--fs-h3); font-weight: 700; color: #7A4B22; }
.audio-entry .body .s { font-size: var(--fs-tiny); color: #8A5A30; }
.audio-entry .go { color: #8A5A30; font-size: 20px; }

/* 播放器（M6） */
.player-hero { background: linear-gradient(160deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff; padding: 26px 20px 20px; text-align: center; }
.player-hero .cover { width: 132px; height: 132px; margin: 6px auto 16px; border-radius: 24px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center; font-size: 52px; }
.player-hero .pt { font-size: var(--fs-lg); font-weight: 700; }
.player-hero .ps { font-size: var(--fs-small); color: #F7D9CC; margin-top: 4px; }
.progress { height: 6px; border-radius: 3px; background: rgba(255,255,255,.28); margin: 18px 0 6px; position: relative; }
.progress .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: #fff; }
.p-time { display: flex; justify-content: space-between; font-size: var(--fs-tiny); color: #F7D9CC; }
.p-ctrl { display: flex; align-items: center; justify-content: center; gap: 26px; margin-top: 18px; }
.p-ctrl .c { width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18);
  color: #fff; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.p-ctrl .c.main { width: 68px; height: 68px; background: #fff; color: var(--brand); font-size: 26px; }

/* ---------- 找金叔 / 二维码占位 ---------- */
.advisor { display: flex; align-items: center; gap: 12px; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin: 0 0 10px; cursor: pointer; }
.advisor .qr { width: 46px; height: 46px; flex: 0 0 auto; border-radius: var(--r-sm);
  background: repeating-linear-gradient(45deg, var(--apricot) 0 6px, var(--cream) 6px 12px);
  border: 1px solid var(--apricot); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.advisor .body { flex: 1; min-width: 0; }
.advisor .body .t { font-weight: 700; color: var(--text-2); }
.advisor .body .s { font-size: var(--fs-tiny); color: var(--text-3); }
.advisor .go { color: var(--text-3); font-size: 20px; }
.qr-big { width: 160px; height: 160px; margin: 14px auto; border-radius: var(--r-lg);
  background: repeating-linear-gradient(45deg, var(--apricot) 0 10px, var(--cream) 10px 20px);
  border: 1px solid var(--apricot-deep); display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-small); color: #7A4B22; font-weight: 700; }

/* ---------- 权益列表 ---------- */
.perk { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.perk:last-child { border-bottom: 0; }
.perk .ok { color: var(--brand); font-size: 16px; flex: 0 0 auto; }
.perk .body .t { font-weight: 700; color: var(--text-2); font-size: var(--fs-body); }
.perk .body .s { font-size: var(--fs-small); color: var(--text-3); }

/* ---------- 详情行（键值 对齐） ---------- */
.kv { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.kv:last-child { border-bottom: 0; }
.kv .k { flex: 0 0 auto; white-space: nowrap; color: var(--text-3); font-size: var(--fs-small); margin-right: auto; }
.kv .v { flex: 1 1 auto; min-width: 0; text-align: right; color: var(--text-2); font-size: var(--fs-body); }

/* ---------- 案例卡 ---------- */
.case { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--apricot);
  border-radius: var(--r); padding: 12px 14px; margin: 0 0 10px; cursor: pointer; display: block; color: inherit; text-decoration: none; }
.case .rt { display: flex; align-items: center; gap: 8px; }
.case .rt .who { font-size: var(--fs-tiny); color: #7A4B22; background: var(--cream);
  border: 1px solid var(--apricot); border-radius: var(--r-pill); padding: 3px 8px; font-weight: 700; flex: 0 0 auto; }
.case .rt .name { font-size: var(--fs-body); font-weight: 700; color: var(--text-2); flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.case .q { font-size: var(--fs-small); color: var(--text-2); margin-top: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.case .pr { margin-top: 8px; font-size: var(--fs-tiny); color: #8A5A30; background: var(--bg-2);
  border-radius: var(--r-sm); padding: 6px 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.case .pr b { color: var(--brand); }

/* ---------- 免责 / 注解 ---------- */
.disclaimer { text-align: center; font-size: var(--fs-tiny); color: var(--text-3);
  padding: 16px 14px calc(16px + var(--safe-b)); border-top: 1px solid var(--line); margin-top: 8px; }
.mocknote { font-size: var(--fs-tiny); color: #9C8C80; background: #FBF3E8;
  border: 1px dashed var(--line); border-radius: var(--r-sm); padding: 8px 10px; margin: 10px 2px 0; }

/* ---------- 底部 Tab（≤5） ---------- */
.tabbar {
  position: sticky; bottom: 0; z-index: 20; background: var(--white);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding-bottom: var(--safe-b);
}
.tabbar a { min-height: var(--touch); padding: 8px 2px 6px; display: flex; flex-direction: column;
  align-items: center; gap: 2px; text-decoration: none; color: var(--text-3); font-size: 11px; }
.tabbar a .ic { font-size: 20px; line-height: 1; }
.tabbar a.on { color: var(--brand); font-weight: 700; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(84px + var(--safe-b)); transform: translateX(-50%);
  background: rgba(62,46,38,.92); color: #fff; font-size: var(--fs-small); padding: 10px 16px;
  border-radius: var(--r-pill); z-index: 60; max-width: 80%; text-align: center; }

/* ---------- 工具类 ---------- */
.tiny { font-size: var(--fs-tiny); color: var(--text-3); }
.muted { color: var(--text-3); }
.brand-t { color: var(--brand); }
.b { font-weight: 700; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.row { display: flex; align-items: center; gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.spread { justify-content: space-between; }
.center { text-align: center; }
.hint-empty { text-align: center; color: var(--text-3); font-size: var(--fs-small); padding: 28px 14px; }
.hint-empty .go { display: inline-block; margin-top: 12px; }
.hr { height: 1px; background: var(--line); margin: 14px 0; border: 0; }
.strike-mute { color: var(--text-3); }

/* ==========================================================================
   ★ PLAN-016 新增组件（两级标签 / 音频精简版卡 / 现身说法 / 首页成果）
   ========================================================================== */

/* ---------- 两级标签导航（★不横向滑动，可换行一眼看全） ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.tabs .chip.tab { min-height: 34px; padding: 7px 14px; }
.tabs .chip.tab.on { background: var(--brand); color: #fff; border-color: var(--brand-deep); font-weight: 700; }
.tabs-sub { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding-left: 2px; }
.sub-item { font-size: var(--fs-small); padding: 6px 12px; border-radius: var(--r-pill);
  background: var(--bg-2); border: 1px solid var(--line); color: var(--text-2); text-decoration: none; }
.sub-item.on { background: var(--cream); border-color: var(--apricot); color: #7A4B22; font-weight: 700; }

/* ---------- 音频卡（带「文字精简版」） ---------- */
.audio-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 12px 14px; margin: 0 0 12px; }
.audio-card .ac-head { display: flex; align-items: center; gap: 12px; }
.audio-card .ac-head .ic { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 50%;
  background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.audio-card .ac-head .meta { flex: 1; min-width: 0; }
.audio-card .ac-head .meta .t { font-size: var(--fs-body); font-weight: 700; color: var(--text-2); }
.audio-card .ac-head .meta .s { font-size: var(--fs-tiny); color: var(--text-3); }
.audio-card .ac-sum { background: var(--bg-2); border-radius: var(--r-sm); padding: 10px 12px; margin: 10px 0; }
.audio-card .ac-sum .lbl { display: inline-block; font-size: var(--fs-tiny); font-weight: 700;
  color: #7A4B22; background: var(--cream); border: 1px solid var(--apricot);
  border-radius: var(--r-pill); padding: 3px 9px; margin-bottom: 6px; }
.audio-card .ac-sum p { margin: 0; font-size: var(--fs-small); color: var(--text); }
.audio-card .ac-points { margin: 8px 0 0; padding-left: 18px; }
.audio-card .ac-points li { font-size: var(--fs-small); color: var(--text-2); margin: 4px 0; }
.audio-card .ac-points li::marker { color: var(--brand); }
.audio-card .ac-know { margin-top: 8px; font-size: var(--fs-tiny); color: #8A5A30;
  border-top: 1px dashed var(--line); padding-top: 8px; }

/* ---------- 现身说法（学员音频/图文） ---------- */
.voice-item { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 10px 14px;
  border-bottom: 1px solid var(--line); background: var(--white); text-decoration: none; color: inherit; }
.voice-item:last-child { border-bottom: 0; }
.voice-item .ic { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 50%;
  background: #EAF4EE; color: #1B6B3D; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.voice-item .meta { flex: 1; min-width: 0; }
.voice-item .meta .t { font-size: var(--fs-body); font-weight: 600; color: var(--text-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.voice-item .meta .s { font-size: var(--fs-tiny); color: var(--text-3); }
.voice-item .dur { flex: 0 0 auto; color: var(--text-3); font-size: 18px; }

/* ---------- 首页成果 / 钩子 ---------- */
.hook { display: flex; align-items: center; gap: 12px; background: var(--white);
  border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--r);
  padding: 12px 14px; margin: 0 0 10px; text-decoration: none; color: inherit; }
.hook .hk-ic { font-size: 22px; flex: 0 0 auto; }
.hook .body { flex: 1; min-width: 0; }
.hook .body .t { font-size: var(--fs-body); font-weight: 700; color: var(--text-2); }
.hook .body .s { font-size: var(--fs-tiny); color: var(--text-3); margin-top: 2px; }

/* ---------- 随堂音频（原始录音 + 说明 · 分半）----------- */
.note-audio { background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 12px 14px; margin: 0 0 12px; }
.note-audio.locked { background: var(--lock-bg); border: 1px dashed var(--lock-bar); }
.note-audio .na-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.note-audio .na-title { font-size: var(--fs-body); font-weight: 700; color: var(--text-2); flex: 1; min-width: 0; }
.na-audio { width: 100%; margin: 10px 0 4px; }
.note-audio .na-sub { font-size: var(--fs-tiny); color: var(--text-3); }
.note-audio .na-body { margin-top: 8px; }
.note-audio .na-onel { margin: 6px 0; font-size: var(--fs-small); color: var(--text); font-weight: 600; }
.note-audio .na-sec { margin: 10px 0 0; }
.note-audio .na-sec .na-lbl { font-size: var(--fs-small); font-weight: 700; color: #7A4B22; }
.note-audio .na-sec ul { margin: 6px 0 0; padding-left: 18px; }
.note-audio .na-sec li { font-size: var(--fs-small); color: var(--text-2); margin: 4px 0; }
.note-audio .na-sec li::marker { color: var(--brand); }
.note-audio .na-know { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line);
  font-size: var(--fs-tiny); color: #8A5A30; }
.note-audio .na-quote { margin: 8px 0 0; padding: 8px 12px; background: var(--cream);
  border-left: 3px solid var(--apricot); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: var(--fs-small); color: #5D4037; }
/* ★★ P0-1：会员段未解锁时，说明文字（含治法）**不渲染进 DOM**（不是 CSS 隐藏/虚化）。
   这里不再用 blur 兜底 —— 见 assets/app.js noteAudioHalf() 的 locked 分支。 */

/* 审核后台 · 点听原声 */
.adm-audio { margin: 8px 0 2px; }
.adm-plays { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 2px; }
.adm-playbtn { min-height: 40px; font-size: var(--fs-tiny); padding: 8px 12px; border-radius: var(--r-pill);
  border: 1px solid var(--apricot); background: var(--cream); color: #7A4B22; cursor: pointer; font-weight: 700; }
.adm-playbtn.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.adm-nolisten { margin: 8px 0 2px; font-size: var(--fs-tiny); color: var(--text-3);
  background: var(--bg-2); border: 1px dashed var(--line); border-radius: var(--r-sm); padding: 8px 10px; }

/* ---------- 通用小按钮 ---------- */
.btn.sm { min-height: 40px; font-size: var(--fs-body); padding: 9px 14px; }
.btn + .btn { margin-top: 10px; }
.btn-row .btn + .btn { margin-top: 0; }

/* ==========================================================================
   ★ 老师原话筛选后台（admin-quotes.html）· 管理类页面组件
   ========================================================================== */
.bar { height: 10px; border-radius: var(--r-pill); background: var(--bg-2);
  border: 1px solid var(--line); overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; background: var(--brand); }
.rv-item { border-left: 4px solid var(--apricot); }
.rv-item.done { border-left-color: #BFE0CB; }
.rv-item.gone { border-left-color: var(--lock-bar); opacity: .6; }
.rv-src { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 2px 0 6px; }
.rv-badge { font-size: var(--fs-tiny); padding: 3px 8px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--bg-2); color: var(--text-2); font-weight: 700; }
.rv-badge.pass { background: #EAF4EE; color: #1B6B3D; border-color: #BFE0CB; }
.rv-badge.bad { background: #FDECEA; color: #A12B1E; border-color: #F3C4BC; }
.rv-badge.dup { background: #FFF3E0; color: #8A5A30; border-color: var(--apricot); }
.rv-badge.treat { background: #EFE3F0; color: #6B3D6E; border-color: #DDC7DE; }
.rv-raw { background: var(--bg-2); border-left: 3px solid var(--apricot); border-radius: var(--r-sm);
  padding: 8px 10px; margin: 6px 0; color: var(--text); font-size: var(--fs-small); word-break: break-word; }
.rv-ctx { font-size: var(--fs-tiny); color: var(--text-3); margin-bottom: 6px; word-break: break-word; }
.rv-acts { display: flex; gap: 8px; }
.rv-acts .btn { min-height: 38px; padding: 7px 10px; font-size: var(--fs-small); width: auto; flex: 1; }
.rv-edit { width: 100%; min-height: 76px; border: 1px solid var(--apricot); border-radius: var(--r-sm);
  padding: 8px 10px; font: inherit; font-size: var(--fs-small); color: var(--text);
  background: var(--white); margin: 6px 0; resize: vertical; }
.rv-log-line { font-size: var(--fs-tiny); color: var(--text-2); padding: 6px 0;
  border-bottom: 1px dashed var(--line); word-break: break-word; }
.rv-log-line:last-child { border-bottom: 0; }
.rv-state { font-size: var(--fs-tiny); color: var(--brand); font-weight: 700; }
.rv-empty { padding: 22px 10px; text-align: center; color: var(--text-3); font-size: var(--fs-small); }
.rv-note { font-size: var(--fs-tiny); color: #8A5A30; background: var(--cream);
  border: 1px solid var(--apricot); border-radius: var(--r-sm); padding: 8px 10px; margin: 8px 0; }

/* ==========================================================================
   ★ PLAN-017 信息架构重构组件（理论体系前置 / 结构化三段 / 标签化·少长文）
   ★ 公共语言（后续子代理请复用，勿另造）
     · 三段骨架    : .part / .part-head / .part-no / .part-title / .part-tag / .part-desc
     · 页内目录    : .pagenav
     · 分组卡      : .grp / .grp-head / .grp-ic / .grp-name / .grp-cnt
     · 标签组      : .tagrow / .tk / .tv（键 → 标签）
     · 定性标签    : .chip.warm(热·实) / .chip.cool(寒·虚) / .chip.vio(邪·概念) / .chip.soft
     · 分点短句    : .pts（替代整段文字）
     · 短引用      : .quote
     · 症状导航    : .sym-grid / .sym-cat / .sc-head / .sc-name / .sc-cnt / .sc-tags / .stag
     · 病种头图    : .thero / .th-name / .th-alias / .al
   ========================================================================== */

/* ---------- 三段式骨架（① 理论体系 → ② 症状 → ③ 细节） ---------- */
.part { margin: 0 0 22px; }
.part-head { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.part-no { width: 26px; height: 26px; flex: 0 0 auto; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: var(--fs-small); font-weight: 700;
  display: flex; align-items: center; justify-content: center; }
.part-title { font-size: var(--fs-h3); font-weight: 700; color: var(--text-2); }
.part-tag { margin-left: auto; font-size: var(--fs-tiny); color: var(--text-3); flex: 0 0 auto; }
.part-desc { font-size: var(--fs-tiny); color: var(--text-3); margin: -2px 0 10px 34px; }

/* ---------- 页内目录（锚点标签 · 一眼看结构，可扫读） ---------- */
.pagenav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.pagenav a { font-size: var(--fs-tiny); padding: 5px 11px; border-radius: var(--r-pill);
  background: var(--white); border: 1px solid var(--line); color: var(--text-3); text-decoration: none; }
.pagenav a:active { background: var(--cream); border-color: var(--apricot); color: #7A4B22; }

/* ---------- 分组卡（体系层 / 症状块 / 详情块） ---------- */
.grp { background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 12px 14px; margin: 0 0 12px; }
.grp.tint { background: var(--bg-2); }
.grp-head { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.grp-ic { font-size: 16px; flex: 0 0 auto; }
.grp-name { font-size: var(--fs-body); font-weight: 700; color: var(--text-2); }
.grp-cnt { margin-left: auto; font-size: var(--fs-tiny); color: var(--text-3); flex: 0 0 auto; }

/* ---------- 标签组（键 → 标签；替代「一条一条的长文」） ---------- */
.tagrow { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.tagrow:first-child { padding-top: 0; }
.tagrow:last-child { border-bottom: 0; padding-bottom: 0; }
.tagrow .tk { flex: 0 0 56px; font-size: var(--fs-tiny); color: var(--text-3); padding-top: 3px; }
.tagrow .tv { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tagrow .tv .plain { font-size: var(--fs-small); color: var(--text-2); line-height: 1.55; }

/* ---------- 音频条（嵌在对应内容旁：真播放器 + 一句话说明） ---------- */
/* ★老师原声就在这里：一进页看得见、点了播得出；说明只一行，不重复上面的内容块。 */
.audio-strip { margin: 10px 0 2px; padding: 10px 12px; background: var(--white);
  border: 1px solid var(--line); border-left: 3px solid var(--apricot);
  border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.audio-strip .as-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.audio-strip .as-ic { font-size: var(--fs-body); flex: 0 0 auto; }
.audio-strip .as-t { flex: 1; min-width: 0; font-size: var(--fs-small);
  font-weight: 700; color: var(--text-2); }
.audio-strip .na-audio { display: block; width: 100%; margin: 8px 0 4px; }
.audio-strip .as-cap { font-size: var(--fs-tiny); color: var(--text-3); }

/* 「🔊 听老师讲这段」内联按钮：点了就播（同一段原声，不再配长解说） */
.chip.audio.listenbtn { cursor: pointer; font: inherit; min-height: 34px; padding: 7px 14px; }
.chip.audio.listenbtn:active { transform: scale(.98); }

/* ---------- 定性 / 性质标签（热｜实｜寒｜虚｜邪） ---------- */
.chip.warm { background: #FDECEA; color: #A12B1E; border-color: #F3C4BC; font-weight: 700; }
.chip.cool { background: #EAF4EE; color: #1B6B3D; border-color: #BFE0CB; font-weight: 700; }
.chip.vio  { background: #EFE3F0; color: #6B3D6E; border-color: #DDC7DE; }
.chip.soft { background: var(--bg-2); color: var(--text-2); }
.chip.o    { background: transparent; color: var(--text-3); border-style: dashed; }

/* ---------- 分点短句列表（把「一大段」拆成可扫的点） ---------- */
.pts { margin: 6px 0 0; padding: 0; list-style: none; }
.pts li { position: relative; padding-left: 15px; font-size: var(--fs-small);
  color: var(--text-2); line-height: 1.55; margin: 5px 0; }
.pts li:first-child { margin-top: 0; }
.pts li::before { content: ''; position: absolute; left: 1px; top: 8px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--apricot); }
.pts li b { color: var(--text-2); }

/* ---------- 短引用（老师原话 · 保留但短） ---------- */
.quote { margin: 8px 0 0; padding: 8px 12px; background: var(--cream);
  border-left: 3px solid var(--apricot); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: var(--fs-small); color: #5D4037; line-height: 1.6; }
.quote:first-child { margin-top: 0; }

/* ---------- 一句话摘要（大字短句，替代整段） ---------- */
.bigline { font-size: var(--fs-h3); font-weight: 700; color: var(--text-2); line-height: 1.5; margin: 0; }

/* ---------- 症状导航（按部位/类别分组 → 标签，★不是长列表） ---------- */
.sym-grid { display: flex; flex-direction: column; gap: 10px; }
.sym-cat { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 11px 13px; }
.sym-cat .sc-head { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; }
.sym-cat .sc-ic { font-size: 15px; flex: 0 0 auto; }
.sym-cat .sc-name { font-size: var(--fs-small); font-weight: 700; color: var(--text-2); }
.sym-cat .sc-cnt { margin-left: auto; font-size: var(--fs-tiny); color: var(--text-3); }
.sym-cat .sc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.stag { display: inline-flex; align-items: center; gap: 3px; font-size: var(--fs-small);
  padding: 5px 11px; border-radius: var(--r-pill); background: var(--bg-2);
  border: 1px solid var(--line); color: var(--text-2); text-decoration: none; }
.stag:active { background: var(--cream); border-color: var(--apricot); color: #7A4B22; }
.stag.hot { background: #FDECEA; border-color: #F3C4BC; color: #A12B1E; }

/* ---------- 病种页头图（病名 + 类别/别名标签） ---------- */
.thero { background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px; margin: 0 0 12px; }
.thero .th-top { display: flex; align-items: center; gap: 8px; }
.thero .th-name { font-size: var(--fs-h1); font-weight: 700; color: var(--text-2); flex: 1; min-width: 0; }
.thero .th-alias { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.thero .th-alias .al { font-size: var(--fs-tiny); color: var(--text-3); }

/* ---------- 紧凑条目（病种/概念：1 行摘要 + 标签，替代多行长文） ---------- */
.tp .one { font-size: var(--fs-small); color: var(--text-3); margin: 4px 0 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp.tint { background: var(--bg-2); }
.tp.sys { border-left: 4px solid var(--brand); }

/* ---------- 三焦（古）就地说明（小字「了解详情」，点开就地展开 · 不另占一行） ---------- */
.jiao-inline > summary { cursor: pointer; list-style: none; display: inline-block;
  font-size: var(--fs-tiny); color: var(--brand); font-weight: 600; line-height: 1.4;
  border-bottom: 1px dotted var(--brand); padding: 0 1px; }
.jiao-inline > summary::-webkit-details-marker { display: none; }
.jiao-inline > summary::after { content: ' ▾'; font-weight: 400; color: var(--text-3); }
.jiao-inline[open] > summary::after { content: ' ▴'; }
.jiao-inline[open] { flex-basis: 100%; }
.jiao-inline > p { margin: 5px 0 1px; font-size: var(--fs-small);
  line-height: 1.7; color: var(--text-2); }

/* ---------- ★「能读」正文块（公益课读层 · 2026-10-03 融合 learn） ---------- */
.card.rd { padding: 14px 14px 12px; }
.rd-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rd-title { font-size: var(--fs-mid, 16px); font-weight: 700; color: var(--text-1, #2B2118); line-height: 1.45; }
.rd-label { margin-top: 3px; font-size: var(--fs-tiny); color: var(--text-3); }
.rd-body { margin-top: 8px; }
.md-h { margin: 13px 0 5px; font-weight: 700; color: var(--text-1, #2B2118); line-height: 1.5; }
.md-h2 { font-size: var(--fs-mid, 16px); }
.md-h3 { font-size: var(--fs-small); }
.md-h4 { font-size: var(--fs-small); color: var(--text-2); }
.md-p { margin: 6px 0; font-size: var(--fs-small); line-height: 1.85; color: var(--text-2); }
.md-list { margin: 6px 0 8px; padding-left: 20px; }
.md-list li { font-size: var(--fs-small); line-height: 1.8; color: var(--text-2); margin: 3px 0; }
.md-tblwrap { overflow-x: auto; margin: 8px 0; -webkit-overflow-scrolling: touch; }
.md-tbl { border-collapse: collapse; width: 100%; font-size: var(--fs-small); }
.md-tbl th, .md-tbl td { border: 1px solid var(--line, #E7DDCF); padding: 6px 8px;
  text-align: left; line-height: 1.6; color: var(--text-2); vertical-align: top; }
.md-tbl th { background: var(--cream, #FBF6EC); color: var(--text-1, #2B2118); font-weight: 600; white-space: nowrap; }

/* ---------- ★首页案例卡 · 卡内横滑（2026-10-03 动态轮换） ---------- */
/* 单一外层卡片容器 */
.case-deck {
  position: relative;
  background: var(--cream, #FBF6EC);
  border: 1px solid var(--line, #E7DDCF);
  border-radius: 14px;
  padding: 12px 0 10px;
  margin-top: 4px;
  overflow: hidden;
}
/* 横滑轨道：display:flex + gap，scroll-snap 让每张卡"咔哒"对齐 */
.case-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 4px 14px 14px;
  scrollbar-width: none;          /* 隐藏 Firefox 滚动条 */
}
.case-track::-webkit-scrollbar { display: none; }   /* 隐藏 Chrome/Safari 滚动条 */
/* 单张卡：占视宽 ~76%（首条让用户一眼看完，第二三张露半张暗示能滑） */
.case-deck-card {
  flex: 0 0 76%;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 14px 12px;
  background: #FFFCF6;
  border: 1px solid #EFE4D0;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  min-height: 152px;
}
.case-deck-card:active { background: #FFF7E8; }
/* 病种标签（具体到痛点，不写"疼痛类"） */
.dck-tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  color: #7A4B22;
  background: #FFF1D8;
  padding: 3px 10px;
  border-radius: 999px;
  line-height: 1.4;
}
/* 一句话钩子（克制版 · 18 字内） */
.dck-hook {
  font-size: 17px;
  font-weight: 700;
  color: #2B2118;
  line-height: 1.45;
  letter-spacing: 0.01em;
}
/* 人物（轻量） */
.dck-person {
  font-size: 12px;
  color: #888;
  margin-top: -2px;
}
/* 底部行：音频入口深底高亮 */
.dck-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 28px;
}
/* 深色高亮的「▶ 听老师讲」 */
.deck-listen {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #FFFCF6;
  background: #7A4B22;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  letter-spacing: 0.02em;
}
.deck-listen:active { opacity: 0.85; }
/* 没音频时显示"看详情 ›" */
.deck-readmore {
  font-size: 13px;
  color: #7A4B22;
  font-weight: 600;
}
/* 底部分页指示器 */
.case-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
  padding: 4px 0 2px;
}
.case-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #D8C9B0;
  transition: all 0.25s ease;
  cursor: pointer;
}
.case-dots .dot.on {
  width: 18px;
  background: #7A4B22;
}
