/* ==========================================================================
   倍宁店效倍增管理助手 · 样式
   移动端优先，适配企业微信内置浏览器
   ========================================================================== */

:root {
  --c-bg: #f4f6f9;
  --c-card: #ffffff;
  --c-line: #e7ebf0;
  --c-line-2: #f0f3f7;
  --text: #1b2430;
  --text-2: #5c6b7f;
  --text-3: #97a4b4;
  --brand: #0e7a5f;
  --brand-l: #e6f4f0;
  --brand-d: #0a5f49;
  --ok: #14875a;
  --ok-bg: #e8f6ef;
  --bad: #d3453c;
  --bad-bg: #fdeceb;
  --warn: #c47a12;
  --warn-bg: #fdf4e3;
  --na: #6b7a8d;
  --na-bg: #eef1f5;
  --radius: 12px;
  --radius-s: 8px;
  --shadow: 0 1px 3px rgba(24, 40, 60, 0.06), 0 1px 2px rgba(24, 40, 60, 0.04);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei',
    'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: var(--c-bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

#app {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--c-bg);
  position: relative;
  padding-bottom: 74px;
}

/* ---------- 顶部条 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--brand);
  color: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(14, 122, 95, 0.22);
}

.topbar h1 {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
  flex: 1;
  letter-spacing: 0.3px;
}

.topbar .sub {
  font-size: 12px;
  opacity: 0.82;
  font-weight: 400;
  margin-top: 1px;
}

.topbar .icon-btn {
  background: rgba(255, 255, 255, 0.16);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
}

.topbar .icon-btn:active {
  background: rgba(255, 255, 255, 0.3);
}

/* ---------- 内容区 ---------- */
.page {
  padding: 14px;
}

.card {
  background: var(--c-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  margin-bottom: 12px;
}

.card.tight {
  padding: 0;
  overflow: hidden;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-title .bar {
  width: 3px;
  height: 14px;
  background: var(--brand);
  border-radius: 2px;
}

.card-title .more {
  margin-left: auto;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-3);
  cursor: pointer;
}

.muted {
  color: var(--text-2);
  font-size: 13px;
}

.tiny {
  font-size: 12px;
  color: var(--text-3);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: var(--radius-s);
  padding: 11px 16px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  background: var(--brand);
  color: #fff;
  transition: opacity 0.15s;
  text-decoration: none;
}

.btn:active {
  opacity: 0.82;
}

.btn.block {
  width: 100%;
}

.btn.ghost {
  background: #fff;
  color: var(--brand);
  border: 1px solid var(--brand);
}

.btn.gray {
  background: #eef1f5;
  color: var(--text-2);
}

.btn.danger {
  background: var(--bad);
}

.btn.sm {
  padding: 7px 12px;
  font-size: 13px;
  border-radius: 7px;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ---------- 表单 ---------- */
.field {
  margin-bottom: 12px;
}

.field label {
  display: block;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 5px;
}

input[type='text'],
input[type='number'],
input[type='tel'],
input[type='password'],
select,
textarea {
  width: 100%;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-s);
  padding: 10px 12px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
}

input[readonly],
textarea[readonly] {
  background: #f7f9fb;
  color: var(--text-2);
}

textarea {
  resize: vertical;
  min-height: 74px;
  line-height: 1.6;
}

/* ---------- 列表 ---------- */
.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--c-line-2);
  cursor: pointer;
}

.list-row:last-child {
  border-bottom: none;
}

.list-row:active {
  background: #f8fafc;
}

.list-row .grow {
  flex: 1;
  min-width: 0;
}

.list-row .t1 {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.list-row .t2 {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}

/* 复盘记录行里的「今日总结」摘要（2026-10-13 新增）
   列表里只露一行，超出省略 —— 完整内容点进详情看 */
.list-row .t2.rc-sum {
  color: #8a97a8;
  font-style: italic;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-row .mi {
  font-size: 17px;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.chev {
  color: #c3ccd8;
  font-size: 15px;
  flex-shrink: 0;
}

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 500;
  line-height: 18px;
  white-space: nowrap;
}

.tag.ok {
  background: var(--ok-bg);
  color: var(--ok);
}

.tag.bad {
  background: var(--bad-bg);
  color: var(--bad);
}

.tag.warn {
  background: var(--warn-bg);
  color: var(--warn);
}

.tag.na {
  background: var(--na-bg);
  color: var(--na);
}

.tag.brand {
  background: var(--brand-l);
  color: var(--brand-d);
}

.tag.gray {
  background: #f0f3f7;
  color: var(--text-2);
}

/* ---------- 空态 ---------- */
.empty {
  text-align: center;
  padding: 46px 20px;
  color: var(--text-3);
  font-size: 13px;
}

.empty .em {
  font-size: 34px;
  display: block;
  margin-bottom: 10px;
  opacity: 0.5;
}

/* ---------- C5：有区分的空态 ---------- */
.empty-state .et {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 6px;
}
.empty-state .eh {
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-3);
  max-width: 280px;
  margin: 0 auto;
}
/* 筛空：图标亮一点，暗示「不是没数据，是条件收窄了」 */
.empty-filter .em {
  opacity: 0.85;
}
.empty-filter .et {
  color: var(--warn, #c47a12);
}
/* 时间未到：更淡，表示等等就有了 */
.empty-future .em {
  opacity: 0.45;
}
.empty-future .et {
  font-weight: 500;
}

/* ---------- 底部导航 ---------- */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border-top: 1px solid var(--c-line);
  display: flex;
  z-index: 60;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.tabbar a {
  flex: 1;
  text-align: center;
  padding: 8px 2px 7px;
  text-decoration: none;
  color: var(--text-3);
  font-size: 11px;
  transition: color 0.15s;
  cursor: pointer;
}

.tabbar a .ic {
  display: block;
  font-size: 19px;
  line-height: 1.2;
}

.tabbar a.on {
  color: var(--brand);
  font-weight: 500;
}

/* ---------- 进度条 ---------- */
.progress {
  height: 5px;
  background: var(--c-line-2);
  border-radius: 3px;
  overflow: hidden;
}

.progress > i {
  display: block;
  height: 100%;
  background: var(--brand);
  border-radius: 3px;
  transition: width 0.3s;
}

/* ---------- 弹层 ---------- */
.mask {
  position: fixed;
  inset: 0;
  background: rgba(18, 28, 40, 0.45);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sheet {
  background: #fff;
  width: 100%;
  max-width: 560px;
  border-radius: 16px 16px 0 0;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0));
  max-height: 86vh;
  overflow-y: auto;
  animation: slideUp 0.22s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(60px);
    opacity: 0.5;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.sheet h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.sheet .actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.sheet .actions .btn {
  flex: 1;
}

/* ---------- 提示 ---------- */
.toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(20, 30, 42, 0.9);
  color: #fff;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 14px;
  z-index: 400;
  max-width: 76%;
  text-align: center;
  animation: fadeIn 0.16s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.banner {
  padding: 10px 14px;
  border-radius: var(--radius-s);
  font-size: 13px;
  margin-bottom: 12px;
  line-height: 1.5;
}

.banner.err {
  background: var(--bad-bg);
  color: var(--bad);
}

.banner.warn {
  background: var(--warn-bg);
  color: var(--warn);
}

.banner.info {
  background: var(--brand-l);
  color: var(--brand-d);
}

/* ---------- 通用工具 ---------- */
.row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.grow {
  flex: 1;
  min-width: 0;
}

.mt8 {
  margin-top: 8px;
}
.mt12 {
  margin-top: 12px;
}
.mb8 {
  margin-bottom: 8px;
}
.center {
  text-align: center;
}
.hidden {
  display: none !important;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--c-line-2);
  border-radius: var(--radius-s);
  overflow: hidden;
}

.stats .st {
  background: #fff;
  padding: 12px 6px;
  text-align: center;
}

.stats .st .n {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

.stats .st .l {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 2px;
}

.stats .st .n.bad {
  color: var(--bad);
}
.stats .st .n.ok {
  color: var(--ok);
}
.stats .st .n.warn {
  color: var(--warn);
}

.rank {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  background: #f0f3f7;
  color: var(--text-2);
  flex-shrink: 0;
}

.rank.top1 {
  background: #fff2d6;
  color: #b7791f;
}
.rank.top2 {
  background: #eef1f5;
  color: #6b7a8d;
}
.rank.top3 {
  background: #fbeee4;
  color: #a5622b;
}

/* ==========================================================
   首页：总部 hero
   ========================================================== */
.hero {
  background: linear-gradient(135deg, #0e7a5f, #12977a);
  color: #fff;
  padding: 18px 16px 14px;
}

.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.hero-lb {
  font-size: 12px;
  opacity: 0.85;
}

.hero-big {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.hero-u {
  font-size: 14px;
  font-weight: 400;
  margin-left: 3px;
  opacity: 0.9;
}

.hero-sub {
  font-size: 12.5px;
  opacity: 0.88;
  margin-top: 3px;
}

.hero-ring {
  flex-shrink: 0;
}

.hero-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 12px;
  opacity: 0.92;
}

/* ★ C2：hero 里的「去看板」跳转 */
.hero-actions {
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.22);
  text-align: right;
}
.hero-actions .btn.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
}
.hero-actions .btn.ghost:hover {
  background: rgba(255, 255, 255, 0.22);
}

.ring text {
  font-family: inherit;
}

/* ==========================================================
   五阶段漏斗
   ========================================================== */
.funnel {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.fn-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.fn-lb {
  width: 34px;
  font-size: 12.5px;
  font-weight: 600;
  flex-shrink: 0;
}

.fn-track {
  flex: 1;
  height: 22px;
  background: var(--c-line-2);
  border-radius: 5px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.fn-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.4s;
  opacity: 0.85;
}

.fn-val {
  position: absolute;
  right: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

/* ==========================================================
   复盘填报
   ========================================================== */
.sec-card {
  padding: 14px;
}

.sec-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.sec-ic {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.sec-title {
  font-size: 15.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sec-desc {
  font-size: 11.5px;
  color: var(--text-3);
  line-height: 1.5;
  margin-top: 2px;
}

.metric-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.metric-label::before {
  content: '';
  width: 2px;
  height: 11px;
  background: var(--c-line);
  border-radius: 1px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.metric-n {
  font-size: 12.5px;
  color: var(--text-2);
  margin-bottom: 5px;
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-wrap: wrap;
}

.metric-t {
  font-style: normal;
  font-size: 10.5px;
  color: var(--text-3);
  background: #f4f6f9;
  padding: 0 5px;
  border-radius: 4px;
  line-height: 16px;
}

.metric-t.hit {
  background: var(--ok-bg);
  color: var(--ok);
}

.metric-in {
  position: relative;
  display: flex;
  align-items: center;
}

.metric-in input {
  padding: 8px 34px 8px 11px;
  font-size: 16px;
  font-weight: 600;
}

.metric-u {
  position: absolute;
  right: 11px;
  font-size: 11.5px;
  color: var(--text-3);
  pointer-events: none;
}

textarea.sec-note {
  min-height: 80px;
  font-size: 14px;
}

/* 环节跳转条：一行 6 键均分，窄屏也不换行 */
.jump-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  margin-top: 10px;
}

.jump-btn {
  display: inline-flex;
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
  align-items: center;
  gap: 3px;
  border: 1px solid var(--c-line);
  background: var(--c-bg);
  color: var(--text-2);
  border-radius: 999px;
  padding: 5px 1px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  overflow: hidden;
}

.jump-btn i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jc, #0e7a5f);
  display: block;
  flex: none;
}

.jump-btn.on,
.jump-btn.done {
  border-color: var(--jc, #0e7a5f);
  color: var(--jc, #0e7a5f);
  font-weight: 600;
  background: #fff;
}

.jump-btn:active {
  transform: scale(0.97);
}

/* 日期选择 */
.date-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.date-cell {
  border: 1px solid var(--c-line);
  background: #fff;
  border-radius: var(--radius-s);
  padding: 9px 4px;
  font-family: inherit;
  cursor: pointer;
  position: relative;
  text-align: center;
}

.date-cell b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.date-cell span {
  display: block;
  font-size: 11px;
  color: var(--text-3);
  margin-top: 1px;
}

.date-cell.on {
  border-color: var(--brand);
  background: var(--brand-l);
}

.date-grid + .tiny {
  color: var(--text-3);
}

.dot-ok,
.dot-gray,
.dot-na {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: block;
}

.dot-ok {
  background: var(--ok);
}
.dot-gray {
  background: var(--text-3);
}
.dot-na {
  background: transparent;
  border: 1px solid var(--c-line);
}

/* 键值网格（详情页） */
.kv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--c-line-2);
  border-radius: var(--radius-s);
  overflow: hidden;
  margin-bottom: 12px;
}

.kv {
  background: #fff;
  padding: 9px 11px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}

.kv-l {
  font-size: 12px;
  color: var(--text-2);
}

.kv-v {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.kv-v i {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 400;
  color: var(--text-3);
  margin-left: 2px;
}

.kv-v.ok {
  color: var(--ok);
}
.kv-v.bad {
  color: var(--bad);
}

.note-box {
  background: #f8fafc;
  border-radius: var(--radius-s);
  padding: 11px 12px;
}

.note-lb {
  font-size: 11.5px;
  color: var(--text-3);
  margin-bottom: 5px;
}

.note-tx {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

/* 点评 */
.cmt {
  padding: 10px 0;
  border-bottom: 1px solid var(--c-line-2);
}

.cmt:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cmt-h {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.cmt-b {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
}

.mini-note {
  font-size: 12.5px;
  color: var(--text-2);
  background: #f8fafc;
  border-radius: 6px;
  padding: 7px 10px;
  margin-top: 9px;
  line-height: 1.55;
}

/* ==========================================================
   头像
   ========================================================== */
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  flex-shrink: 0;
}

.avatar.av-lg {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  font-size: 22px;
}

.member-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--c-line-2);
  cursor: pointer;
}

.member-row:last-child {
  border-bottom: none;
}

.member-row .t1 {
  font-size: 14px;
  font-weight: 500;
}

.member-row .t2 {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 1px;
}

/* ==========================================================
   店长首页：我的复盘待办大卡
   ========================================================== */
.big-todo {
  border-left: 4px solid var(--warn);
}

.big-todo.done {
  border-left-color: var(--ok);
}

.todo-lb {
  font-size: 12px;
  color: var(--text-3);
}

.todo-ti {
  font-size: 19px;
  font-weight: 700;
  margin-top: 2px;
  line-height: 1.3;
}

.big-todo.done .todo-ti {
  color: var(--ok);
}

.todo-sub {
  font-size: 12.5px;
  color: var(--text-2);
  margin-top: 3px;
}

/* ==========================================================
   员工首页：任务卡
   ========================================================== */
.hero-task {
  background: linear-gradient(135deg, #2f7fd4, #4a97e6);
  color: #fff;
  padding: 18px 16px 16px;
}

.task-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  cursor: pointer;
  margin-bottom: 10px;
}

.task-card.done {
  opacity: 0.66;
}

.task-ic {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
  font-weight: 700;
}

.task-ti {
  font-size: 15.5px;
  font-weight: 600;
}

.task-card.done .task-ti {
  text-decoration: line-through;
  color: var(--text-2);
}

.task-ds {
  font-size: 12.5px;
  color: var(--text-3);
  margin-top: 2px;
}

.target-row {
  margin-bottom: 12px;
}

.target-row:last-child {
  margin-bottom: 0;
}

/* ==========================================================
   话术学习
   ========================================================== */
.learn-hero {
  background: linear-gradient(135deg, #0e7a5f, #14a37f);
  color: #fff;
  padding: 16px;
}

.learn-hero-n {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 4px;
}

.learn-hero-n span {
  font-size: 14px;
  font-weight: 400;
  opacity: 0.85;
}

.learn-hero-f {
  font-size: 12px;
  opacity: 0.85;
  margin-top: 2px;
}

.prod-card {
  cursor: pointer;
  padding: 14px;
}

.prod-ic {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #f2f6f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.prod-n {
  font-size: 15.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.prod-d {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}

.prod-prog {
  margin-top: 11px;
}

/* 环节筛选 chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.chip {
  border: 1px solid var(--c-line);
  background: #fff;
  color: var(--text-2);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}

.chip.on {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}

/* 环节分组 */
.grp {
  margin-bottom: 14px;
}

/* 五阶段话术导航（产品详情页） */
.sec-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}

.sec-nav-b {
  flex: 1 1 calc(33.333% - 5px);
  min-width: 96px;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--c-line);
  background: #fff;
  border-radius: 10px;
  padding: 8px 9px;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
}

.sec-nav-b .sn-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sec-nav-b .sn-n {
  font-weight: 600;
  color: var(--text-1);
  flex: 1;
  white-space: nowrap;
}

.sec-nav-b .sn-c {
  font-size: 11.5px;
  color: #97a4b4;
  flex-shrink: 0;
}

.sec-nav-b.on {
  border-color: var(--sc);
  background: color-mix(in srgb, var(--sc) 8%, #fff);
  box-shadow: 0 0 0 1px var(--sc) inset;
}

.sec-nav-b.all {
  border-color: #b6e0cb;
  background: #f2fbf7;
}

.sec-nav-b.all .sn-c {
  color: #14875a;
  font-weight: 600;
}

.sec-nav-b.off {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 商品选择下拉框（话术页第三段） */
.prod-select {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.prod-select-ic {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #f2f6f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}

.prod-select-body {
  flex: 1;
  min-width: 0;
}

.prod-select-lb {
  font-size: 11.5px;
  color: #97a4b4;
  margin-bottom: 3px;
}

.prod-select select {
  width: 100%;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1);
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230e7a5f' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  padding-right: 20px;
  cursor: pointer;
}

.prod-select select:focus {
  outline: none;
}

.prod-select .ps-pct {
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}

.grp-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 700;
  padding: 4px 4px 9px;
}

.grp-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: block;
}

.script-card {
  padding: 14px;
}

.sc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.sc-scene {
  font-size: 12.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
  line-height: 19px;
}

.fav-btn {
  border: none;
  background: transparent;
  font-size: 20px;
  color: #c3ccd8;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  flex-shrink: 0;
}

.fav-btn.on {
  color: #e8a33d;
}

.sc-body {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text);
}

.sc-tips {
  margin-top: 11px;
  background: #f8fafc;
  border-radius: var(--radius-s);
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--text-2);
}

.sc-tips-h {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.sc-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--c-line-2);
}

/* 员工话术学习行 */
.learn-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--c-line-2);
}

.learn-row:last-child {
  border-bottom: none;
}

/* ==========================================================
   看板
   ========================================================== */
.spark {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4px;
  height: 130px;
  padding: 6px 0 0;
}

.spark-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}

.spark-v {
  font-size: 9.5px;
  color: var(--text-3);
  margin-bottom: 3px;
  white-space: nowrap;
}

.spark-bar {
  width: 100%;
  max-width: 30px;
  background: #bfe0d5;
  border-radius: 4px 4px 2px 2px;
  transition: height 0.3s;
}

.spark-bar.now {
  background: var(--brand);
}

.spark-lb {
  font-size: 10px;
  color: var(--text-3);
  margin-top: 5px;
}

.region-row {
  margin-bottom: 12px;
}

.region-row:last-child {
  margin-bottom: 0;
}

.alert-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--c-line-2);
  cursor: pointer;
}

.alert-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.alert-row .t1 {
  font-size: 14px;
  font-weight: 500;
}

.alert-row .t2 {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 1px;
}

/* 后台目标值编辑行 */
.target-edit-row {
  padding: 9px 0;
  border-bottom: 1px solid var(--c-line-2);
}

.target-edit-row:last-child {
  border-bottom: none;
}

.target-edit-row input {
  padding: 7px 10px;
  font-size: 14px;
  font-weight: 600;
}

/* ==================== 后台管理 ==================== */

/* 搜索框 */
.adm-search {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 12px;
  font-size: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #f8fafc;
  outline: none;
  font-family: inherit;
}

.adm-search:focus {
  border-color: #0e7a5f;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(14, 122, 95, 0.09);
}

/* 筛选条容器（与按钮类名分离，避免误选） */
.stFilter-bar,
.usFilter-bar,
.pdFilter-bar,
.scFilterP-bar,
.scFilterS-bar,
.rvFilter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* 列表行右侧的删除按钮（点击不触发整行跳转） */
.row-del {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  line-height: 26px;
  text-align: center;
  border-radius: 50%;
  font-size: 12px;
  color: #a8b3c2;
  background: #f2f5f9;
  margin-right: 2px;
  transition: all 0.15s;
}

.row-del:active {
  background: #fdeceb;
  color: #d3453c;
}

/* 弹层里的危险按钮（描边样式，与 .btn.danger 实心红区分） */
.btn.danger-outline {
  background: #fff;
  color: #d3453c;
  border: 1px solid #f3c9c6;
}

.btn.danger-outline:active {
  background: #fdeceb;
}

.btn.danger-outline.block {
  width: 100%;
  display: block;
  margin-top: 14px;
}

/* 后台卡片标题右侧说明 */
.card-title .more {
  margin-left: auto;
  font-size: 12px;
  font-weight: 400;
  color: #97a4b4;
}

/* 门店/员工详情里的员工清单 */
.sheet .kv-grid {
  margin-bottom: 12px;
}

@media (max-width: 360px) {
  .metrics {
    grid-template-columns: 1fr;
  }

  .kv-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   话术掌握闭环（语音复述 + 场景抽考）
   ========================================================== */

/* 掌握进度条（学习卡里的第二段） */
.master-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px dashed var(--c-line-2);
}

.master-strip .ms-lb {
  flex: 1;
  min-width: 0;
}

.master-strip .ms-t {
  font-size: 13.5px;
  color: var(--text);
  font-weight: 600;
}

.master-strip .ms-t b {
  color: var(--brand);
  font-size: 16px;
}

.master-strip .ms-h {
  display: block;
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: 3px;
  line-height: 1.5;
}

.master-strip .ms-pct {
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

/* 卡片上的「听录音」按钮 */
.sc-audio {
  border: 0;
  background: #eef6f3;
  color: var(--brand);
  font-size: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  font-family: inherit;
  padding: 0;
  line-height: 1;
}

.sc-audio:active {
  background: #dfeee9;
}

/* 复述徽标（我的录音列表） */
.rc-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.rc-badge.ok {
  background: #e6f4ee;
  color: #14875a;
}

.rc-badge.warn {
  background: #fdf3e2;
  color: #c47a12;
}

/* ---- 录音弹层 ---- */
.rc-guide {
  background: #f8fafc;
  border-radius: var(--radius-s);
  padding: 12px 13px;
  margin-bottom: 14px;
  max-height: 34vh;
  overflow-y: auto;
}

.rc-guide-h {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 7px;
}

.rc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: block;
}

.rc-guide-b {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
}

.rc-guide-t {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid var(--c-line-2);
  font-size: 12px;
  line-height: 1.75;
  color: var(--text-2);
}

.rc-guide-t b {
  display: block;
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 3px;
  letter-spacing: 0.5px;
}

.rc-panel {
  text-align: center;
  padding: 6px 0 2px;
}

.rc-mic {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin: 0 auto;
  transition: background 0.18s, transform 0.18s;
}

.rc-mic.on {
  background: #fde8e6;
  color: #d3453c;
  transform: scale(1.06);
  animation: rcPulse 1.1s ease-in-out infinite;
}

@keyframes rcPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(211, 69, 60, 0.28); }
  50% { box-shadow: 0 0 0 14px rgba(211, 69, 60, 0); }
}

.rc-time {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-top: 10px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.rc-hint {
  font-size: 12.5px;
  color: var(--text-3);
  margin-top: 6px;
  line-height: 1.6;
  min-height: 34px;
}

.rc-audio {
  width: 100%;
  margin-top: 10px;
}

/* ---- 抽考 ---- */
.quiz-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quiz-qt {
  display: flex;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.65;
  margin-bottom: 9px;
  color: var(--text);
}

.quiz-no {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.quiz-opts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quiz-opt {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  text-align: left;
  border: 1px solid var(--c-line);
  background: #fff;
  border-radius: var(--radius-s);
  padding: 10px 12px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.14s, background 0.14s;
}

.quiz-opt:active {
  background: #f8fafc;
}

.quiz-opt.on {
  border-color: var(--brand);
  background: #eff7f4;
}

.qo-k {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 1px solid var(--c-line);
  font-size: 11.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--text-3);
}

.quiz-opt.on .qo-k {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* ---- 判分结果 ---- */
.qr-head {
  text-align: center;
  padding: 6px 0 14px;
}

.qr-head .qr-em {
  font-size: 38px;
  line-height: 1;
}

.qr-head .qr-t {
  font-size: 16px;
  font-weight: 700;
  margin-top: 9px;
}

.qr-head.ok .qr-t {
  color: #14875a;
}

.qr-head.warn .qr-t {
  color: #c47a12;
}

.qr-head .qr-s {
  font-size: 12.5px;
  color: var(--text-3);
  margin-top: 5px;
}

.qr-q {
  border-left: 3px solid var(--c-line);
  padding: 8px 0 8px 11px;
  margin-bottom: 10px;
}

.qr-q.ok {
  border-left-color: #14875a;
}

.qr-q.bad {
  border-left-color: #d3453c;
}

.qr-qt {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--text);
}

.qr-exp {
  font-size: 12.5px;
  color: var(--text-2);
  margin-top: 5px;
  line-height: 1.65;
}

.qr-exp b {
  color: #14875a;
}

.qr-why {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 4px;
  line-height: 1.65;
}

/* ==================== ASR 要点识别结果（C 方案试点） ==================== */
.kr-box {
  margin: 12px 0 4px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f4f7f6;
  border: 1px solid #e3ebe8;
}
.kr-head {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}
.kr-head.passed { color: #0e7a5f; }
.kr-head.retry { color: #b7791f; }
.kr-head.fail,
.kr-head.warn { color: #c0392b; }
.kr-sub {
  font-size: 12px;
  color: #5b6b79;
  line-height: 1.6;
}
.kr-kws {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.kr-kw {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.kr-kw.ok {
  background: #e2f3ec;
  color: #0e7a5f;
}
.kr-kw.bad {
  background: #fdecea;
  color: #c0392b;
}
.kr-text {
  margin-top: 8px;
  font-size: 11px;
  color: #7c8a97;
  line-height: 1.7;
  max-height: 72px;
  overflow-y: auto;
}

/* ==========================================================================
   学习页 · 科普知识（2026-10-04）
   顶部页签切换（话术学习 / 科普知识）+ 病种筛选 + 条目折叠卡 + 全屏宣讲卡
   ========================================================================== */

/* 学习页顶部两个页签 */
.seg {
  display: flex;
  gap: 6px;
  background: #e9eef4;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 12px;
}

.seg button {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-2);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 6px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.seg button.on {
  background: #fff;
  color: var(--brand);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(24, 40, 60, 0.1);
}

.seg .seg-n {
  font-size: 11px;
  background: var(--brand-l);
  color: var(--brand);
  border-radius: 999px;
  padding: 1px 6px;
}

/* 病种 chip 上的条数 */
.chip-n {
  font-size: 11px;
  margin-left: 5px;
  opacity: 0.75;
}

/* 宣讲模式入口（小按钮，放在统计行右侧） */
.kb-present-btn {
  border: 1px solid var(--brand);
  background: #fff;
  color: var(--brand);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  white-space: nowrap;
}

.kb-present-btn:active {
  background: var(--brand-l);
}

/* 条目卡（可折叠） */
.kb-card {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-s);
  margin-bottom: 8px;
  overflow: hidden;
}

.kb-card.open {
  border-color: #cfe4dc;
  box-shadow: 0 1px 4px rgba(14, 122, 95, 0.08);
}

.kb-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  cursor: pointer;
}

.kb-head:active {
  background: #f8fafc;
}

.kb-t {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.kb-s {
  font-size: 12.5px;
  color: var(--text-2);
  margin-top: 3px;
  line-height: 1.6;
}

.kb-chev {
  font-size: 13px;
  color: var(--text-3);
  flex-shrink: 0;
}

.kb-body {
  padding: 0 13px 13px;
  border-top: 1px dashed var(--c-line);
  padding-top: 11px;
}

/* 讲给顾客听：本模块的主内容，做成一整块口播卡 */
.kb-talk {
  background: var(--brand-l);
  border-left: 3px solid var(--brand);
  border-radius: 6px;
  padding: 11px 12px;
  font-size: 14.5px;
  line-height: 1.85;
  color: #14503f;
}

.kb-sec {
  margin-top: 11px;
}

.kb-lb {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-3);
  background: var(--na-bg);
  border-radius: 4px;
  padding: 2px 7px;
  margin-bottom: 5px;
}

.kb-lb.tip {
  color: var(--warn);
  background: var(--warn-bg);
}

.kb-txt {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--text-2);
}

.kb-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}

.kb-tag {
  font-size: 11.5px;
  color: var(--text-3);
  background: #f2f5f8;
  border-radius: 999px;
  padding: 3px 9px;
}

.kb-present-inline {
  margin-top: 12px;
}

/* ---------------- 全屏宣讲卡（对着顾客讲） ---------------- */
.kb-present {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.kbp-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--c-line);
  padding-top: calc(14px + env(safe-area-inset-top));
}

.kbp-tag {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  flex: 1;
  min-width: 0;
}

.kbp-n {
  font-size: 12.5px;
  color: var(--text-3);
}

.kbp-x {
  border: none;
  background: #f2f5f8;
  color: var(--text-2);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
}

.kbp-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 18px 10px;
}

.kbp-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
}

.kbp-sum {
  margin-top: 10px;
  font-size: 15px;
  color: var(--brand);
  font-weight: 600;
  line-height: 1.7;
}

.kbp-talk {
  margin-top: 16px;
  font-size: 20px;
  line-height: 1.95;
  color: var(--text);
  letter-spacing: 0.2px;
}

.kbp-tip {
  margin-top: 18px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--warn);
  background: var(--warn-bg);
  border-radius: 8px;
  padding: 10px 12px;
}

.kbp-nav {
  display: flex;
  gap: 8px;
  padding: 12px 14px 0;
  border-top: 1px solid var(--c-line);
}

.kbp-nav .btn {
  padding: 12px 8px;
  font-size: 14px;
}

.kbp-nav .kbp-side {
  flex: 1;
  min-width: 0;
}

.kbp-nav .kbp-play {
  flex: 1.5;
}

.kbp-nav .btn.off {
  opacity: 0.42;
  pointer-events: none;
}

/* 播放条下方的两个开关 + 发声来源 */
.kbp-opts {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px calc(12px + env(safe-area-inset-bottom));
  flex-wrap: wrap;
}

.kbv-opt {
  border: 1px solid var(--c-line);
  background: #fff;
  color: var(--text-2);
  font-family: inherit;
  font-size: 12.5px;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.kbv-opt.on {
  border-color: var(--brand);
  background: var(--brand-l);
  color: var(--brand);
  font-weight: 500;
}

.kbv-state {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--text-3);
}

/* ==========================================================================
   科普知识 · 病种下拉 + 整篇正文（20261004c）
   一个病种就是一篇内容：下拉选定 → 正文连排不分组；语音宣讲念到
   哪段，正文和宣讲卡都高亮哪段。
   ========================================================================== */

/* 病种下拉 */
.kb-pick {
  width: 100%;
  border: 1px solid var(--c-line);
  background: #fff;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  padding: 10px 12px;
  cursor: pointer;
}

.kb-pick:focus {
  outline: none;
  border-color: var(--brand);
}

/* 整篇正文 */
.kb-article {
  padding: 16px 16px 14px;
}

.kb-para + .kb-para {
  margin-top: 14px;
}

.kb-para-t {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}

.kb-para-t.solo {
  font-size: 17px;
}

.kb-para-b {
  margin-top: 5px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--text);
}

.kb-para .kb-sec {
  margin-top: 8px;
}

/* ---------------- 宣讲卡：整篇分段，当前段高亮 ---------------- */
.kbp-seg {
  padding: 10px 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background 0.15s;
}

.kbp-seg + .kbp-seg {
  margin-top: 4px;
}

.kbp-seg-t {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  line-height: 1.5;
}

.kbp-seg-b {
  margin-top: 3px;
  font-size: 18px;
  line-height: 1.9;
  color: var(--text-2);
  letter-spacing: 0.2px;
}

.kbp-seg.on {
  background: var(--brand-l);
  border-color: #cfe4dc;
}

.kbp-seg.on .kbp-seg-t {
  color: var(--brand);
}

.kbp-seg.on .kbp-seg-b {
  color: #14503f;
}

/* 后台科普管理：条目行内上移/下移（顺序=文章段落顺序，20261004d） */
.kb-move {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-shrink: 0;
}

.kb-mv {
  width: 24px;
  height: 22px;
  border: 1px solid var(--c-line);
  background: #fff;
  color: var(--text-2);
  border-radius: 6px;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}

.kb-mv:active {
  background: var(--brand-l);
  color: var(--brand);
}

.kb-mv.off {
  opacity: 0.3;
  pointer-events: none;
}

/* ==========================================================================
   桌面 / 平板宽屏适配（2026-10-13）
   --------------------------------------------------------------------------
   手机端（< 1024px）完全不受影响 —— 上面所有规则仍然按手机宽度生效。
   问题背景：电脑上原来内容区只有 560px（占 1440 屏宽的 39%）、正文 15px，
   整站像"把手机界面摆在电脑中间"，字号小、留白大、看不全数据。
   这里只放宽容器与字号、把统计条与指标网格铺开、把底部弹层改成居中对话框，
   不动任何信息结构与交互逻辑。
   ========================================================================== */
@media (min-width: 1024px) {
  body {
    font-size: 16px;
  }

  /* 主容器 560 → 1000px */
  #app {
    max-width: 1000px;
  }

  /* 顶栏：加高、加大标题 */
  .topbar {
    padding: 16px 26px;
  }
  .topbar h1 {
    font-size: 20px;
  }
  .topbar .sub {
    font-size: 13px;
  }
  .topbar .icon-btn {
    width: 36px;
    height: 36px;
    font-size: 18px;
    border-radius: 10px;
  }

  /* 内容区：更大留白，卡片更舒展 */
  .page {
    padding: 20px 26px 26px;
  }
  .card {
    padding: 18px 20px;
    margin-bottom: 16px;
  }
  .card-title {
    font-size: 15px;
    margin-bottom: 12px;
  }

  /* 统计条：按屏宽自动多列，不再被挤成三小格 */
  .stats {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  .stats .st {
    padding: 16px 10px;
  }
  .stats .st .n {
    font-size: 24px;
  }
  .stats .st .l {
    font-size: 13px;
  }

  /* 指标网格：一屏 4 列，复盘详情不用来回滚 */
  .kv-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* 列表行：行高与字号加大，鼠标更好点 */
  .list-row {
    padding: 15px 18px;
  }
  .list-row .t1 {
    font-size: 16px;
  }
  .list-row .t2 {
    font-size: 13px;
  }

  /* 底部导航跟随容器宽度，图标文字加大 */
  .tabbar {
    max-width: 1000px;
    box-shadow: 0 -2px 12px rgba(20, 40, 60, 0.06);
  }
  .tabbar a {
    padding: 10px 2px 9px;
    font-size: 12.5px;
  }
  .tabbar a .ic {
    font-size: 21px;
  }

  /* 弹层：电脑上居中成对话框，而不是从屏幕底部升起 */
  .mask {
    align-items: center;
  }
  .sheet {
    max-width: 640px;
    border-radius: 16px;
    padding: 22px 22px 20px;
    max-height: 84vh;
    box-shadow: 0 18px 48px rgba(10, 25, 40, 0.28);
    animation: popIn 0.18s ease;
  }

  /* 表单与按钮：字号 15 → 16，长时间录入更舒服 */
  input,
  textarea,
  select {
    font-size: 16px;
  }
  .btn {
    font-size: 16px;
  }
  textarea.sec-note {
    min-height: 92px;
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
