/* =====================================================
   应手心理 · 四端真实前端 共享样式（app-core）
   设计令牌与 design-system.css 保持同源：青绿 #2AB7A9 / 紫 #7C6CF6
   三条温柔底线：不拿"惨"传播、不拿"焦虑"转化、不拿"隐私"做杠杆
   ===================================================== */
:root {
  --brand: #2AB7A9;
  --brand-deep: #1E8F85;
  --brand-soft: #E6F6F4;
  --purple: #7C6CF6;
  --purple-soft: #EEEBFE;
  --ink: #22303A;
  --ink-2: #5A6B76;
  --ink-3: #8C9AA5;
  --line: #EAF0F2;
  --bg: #F6F9F9;
  --card: #FFFFFF;
  --warn: #E8853B;
  --danger: #E05B5B;
  --ok: #3CB878;
  --r: 14px;
  --shadow: 0 6px 18px rgba(34, 48, 58, .06);
}

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

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px; line-height: 1.55;
}

#app { min-height: 100vh; }
[v-cloak] { display: none; }

/* =====================================================
   H5 稳定自适应（第 100 轮）
   -----------------------------------------------------
   用户原文：「H5 模式时，禁用页面缩放功能，做到稳定的自适应，别让页面来回晃动」。
   「来回晃动」在真机上是**四个独立成因**叠加，只改 viewport 治不了，故逐条封口：

   ① 双指/双击缩放 —— 由 index.html 的 viewport 负责（四端已统一）。
   ② **iOS 输入框聚焦强制放大** —— 成因是表单控件 `font-size:15px < 16px`。
      这是最容易漏的一条：viewport 写了 user-scalable=no 也照样放大
      （iOS 10+ 直接忽略该指令）。唯一可靠解是把控件字号提到 16px，见下方表单段。
   ③ **横向溢出** —— 任何元素超宽都能让页面左右滑动。这里用 `overflow-x: clip`
      而不是 `hidden`：`clip` **不创建滚动容器**，`position:sticky` 的顶栏不受影响；
      `hidden` 会创建滚动容器，在部分浏览器上会让 sticky 失效（老 Safari 无 clip，
      故保留 hidden 作兜底 —— 用 @supports 反向覆盖，而不是顺序覆盖）。
   ④ **回弹/橡皮筋** —— 上下拖到边界时整页弹动，视觉上就是「晃」。用
      `overscroll-behavior` 收敛到内容滚动区，并禁掉横向链式滚动。
   ===================================================== */
html {
  /* 横竖屏切换时 iOS 会按比例放大字号 —— 字一变大就换行、高度跳变，也是「晃动」 */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html, body {
  max-width: 100%;
  overflow-x: hidden;                 /* 老浏览器兜底 */
  overscroll-behavior-x: none;        /* 禁止横向链式滚动（左右滑不出页面） */
  overscroll-behavior-y: contain;     /* 纵向回弹止于内容区，不把整页拽动 */
}
@supports (overflow-x: clip) {
  /* 现代浏览器走这条：clip 不建滚动容器 ⇒ 顶栏 sticky 照常工作 */
  html, body { overflow-x: clip; }
}
body {
  /* dvh 感知地址栏伸缩；没有 dvh 的老浏览器用上面的 100vh 兜底 */
  min-height: 100vh;
  min-height: 100dvh;
}
#app {
  min-height: 100vh;
  min-height: 100dvh;
}
/* 媒体一律不超过容器宽（UGC 图片/视频是横向溢出的常见来源） */
img, video, canvas, svg { max-width: 100%; }
/* 长串（URL / 邀请码 / UUID / 订单号）不允许撑破布局 */
.wrap { overflow-wrap: break-word; }
/* 交互元素统一 touch-action：去掉 300ms 点击延迟，同时禁掉双击缩放 */
button, a, .tap, .cell, .tb, .lk, .seg > button, .picks .pick { touch-action: manipulation; }
/* ② 的**唯一可靠解**：文本控件字号 ≥16px。
   为什么写成这么绕的选择器：`.field input`（0,1,1）与 `.chatbar input` 同权重且更靠前，
   若无条件写 `input{...}`（0,0,1）会被它们盖掉、静默失效（看着「加了」其实没生效）。
   用 :not() 把权重提到 0,2,1 才真正压得住；同时排除 check/radio（.picks 组用的是真复选框，
   绝不能被改字号 —— 见下方「多选框组」段的坑①）。 */
input:not([type=checkbox]):not([type=radio]), textarea, select { font-size: 16px; }

/* ---------- 顶栏 ---------- */
.top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--brand) 0%, #3FC3B5 55%, var(--purple) 130%);
  color: #fff;
}
.top .logo { width: 26px; height: 26px; border-radius: 8px; object-fit: cover; }
.top .tt { font-size: 17px; font-weight: 700; letter-spacing: .5px; }
.top .sp { flex: 1; }
.top .lk { color: rgba(255,255,255,.92); font-size: 13px; text-decoration: none;
  padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.14); }
.top .lk:active { background: rgba(255,255,255,.26); }
/* 返回按钮（第 85 轮）：二级/三级页才出现，窄屏下把空间让给标题 */
.top .ysbk { flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 999px; background: rgba(255,255,255,.18);
  color: #fff; cursor: pointer; user-select: none; }
.top .ysbk:active { background: rgba(255,255,255,.32); }
.top .ysbk i { font-style: normal; font-size: 20px; line-height: 1; margin-top: -2px; }

/* ---------- 筛选 chips（第 85 轮：测评频道分类） ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 6px 13px; border-radius: 999px; background: #fff; color: var(--ink-2);
  font-size: 13px; cursor: pointer; border: 1px solid var(--line); white-space: nowrap; }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.chip:active { transform: scale(.97); }

/* ---------- 默认头像（第 85 轮） ---------- */
.ys-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  flex: none; background: var(--brand-soft); display: block; }
.ys-avatar.sm { width: 32px; height: 32px; }
.ys-avatar.lg { width: 56px; height: 56px; border-radius: 18px; }
/* 编辑资料页的头像预览（第 92 轮）：与「更换头像」按钮同行，所以要比 lg 更大更圆润 */
.ys-avatar.xl { width: 76px; height: 76px; border-radius: 24px; }
.pc-uav { width: 34px; height: 34px; border-radius: 10px; }

/* ---------- 身份信息提示行（第 92 轮） ----------
   编辑资料里「身份证号」下方的辅助行：左侧说明已保存的脱敏串，右侧是「清除」动作。
   刻意做成弱化样式 —— 它是补充说明，不该比主表单更抢眼。 */
.idtip { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 12.5px; color: var(--ink-3); padding: 6px 0 2px; }

/* 行内文字链接（第 92 轮）：表单里的「清除 / 全部提出」这类弱动作。
   刻意命名 .lnk 而**不是** .lk —— 顶栏那个 `.top .lk` 是白色胶囊按钮，
   语义与作用域都不同，name 撞在一起早晚会有人误用。 */
.lnk { color: var(--brand-deep); cursor: pointer; white-space: nowrap; }
.lnk:active { opacity: .65; }

/* ---------- 分享弹层（第 85 轮） ---------- */
.ys-share-mask { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-end;
  justify-content: center; background: rgba(20,32,38,.42); }
.ys-share-box { width: 100%; max-width: 520px; background: #fff; border-radius: 18px 18px 0 0;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  animation: ys-share-up .2s ease; box-shadow: 0 -6px 24px rgba(34,48,58,.12); }
@keyframes ys-share-up { from { transform: translateY(26px); opacity: .5 } to { transform: none; opacity: 1 } }
.ys-share-box h4 { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.ys-share-box .d { color: var(--ink-3); font-size: 12px; line-height: 1.6; margin-bottom: 14px; }
.ys-share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.ys-share-item { border: 0; background: #F6F9F9; border-radius: 14px; padding: 12px 4px;
  font-size: 12px; color: var(--ink-2); cursor: pointer; font-family: inherit; }
.ys-share-item:active { background: var(--brand-soft); color: var(--brand-deep); }
.ys-share-item .i { display: block; font-size: 20px; margin-bottom: 6px; }
.ys-share-cancel { width: 100%; border: 0; background: #F1F5F6; border-radius: 12px; padding: 11px;
  font-size: 14px; color: var(--ink-2); cursor: pointer; font-family: inherit; }
/* 微信内引导条（第 124 轮）：提示点右上角 ··· 分享 */
.ys-share-guide { background: var(--brand-soft, #E7F6F3); color: var(--brand-deep, #1E8C7E);
  border-radius: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.6; margin-bottom: 12px; text-align: center; }
/* 二维码（第 124 轮）：桌面/微信内长按识别 */
.ys-share-qr { display: flex; flex-direction: column; align-items: center; margin: 4px 0 14px; }
.ys-share-qr img { width: 160px; height: 160px; border-radius: 12px; background: #fff; padding: 6px;
  box-shadow: 0 2px 10px rgba(34,48,58,.08); }
.ys-share-qr .cap { font-size: 11px; color: var(--ink-3); margin-top: 6px; }

/* ---------- 消息未读（第 85 轮） ---------- */
.card.msg { transition: background .15s; }
.card.msg:active { background: #FBFDFD; }
.card.msg .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--danger); margin-right: 6px; vertical-align: 2px; }
.card.msg.read { opacity: .66; }

/* ---------- 布局容器 ---------- */
.wrap { max-width: 560px; margin: 0 auto; padding: 14px 14px 84px; }
.wrap.pc { max-width: 1080px; padding-bottom: 40px; }

/* ---------- 卡片 ---------- */
.card { background: var(--card); border-radius: var(--r); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow); }
.card .h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.card .h .t { font-weight: 700; font-size: 15px; }
.card .h .more { margin-left: auto; color: var(--ink-3); font-size: 13px; cursor: pointer; }

/* 课程列表：系列课 / 单节课 两个区块（同屏展示） */
.sec-head { display: flex; align-items: center; gap: 8px; margin: 18px 2px 10px; }
.sec-head .t { font-weight: 700; font-size: 16px; color: var(--ink); }
.sec-head .muted { font-size: 13px; }
/* PC 课程中心：左侧列表按类型拆成两个子区块 */
.pcg .sec { margin-top: 8px; }
.pcg .sec-t { font-weight: 700; font-size: 14px; color: var(--ink-2); margin-bottom: 6px; }

/* ---------- 可折叠的分组头（第 300 轮：课程中心 系列课 / 单节课） ----------
   H5 用 .sec-head、PC 用 .pcg .sec-t，两端共用下面三个类，视觉才一致。
   ⚠️ 折叠头本身要能点，所以要显式 cursor:pointer + user-select:none ——
      手机端长按选中文字会连点两次（第一次选词、第二次才触发），观感像「点不动」。 */
.fold { cursor: pointer; user-select: none; }
.sec-head.fold { display: flex; align-items: center; gap: 8px; }
.pcg .sec-t.fold { display: flex; align-items: center; gap: 6px; }
.fold .fold-i { display: inline-block; font-size: 11px; color: var(--ink-3); transition: transform .18s ease; }
.fold .fold-i.closed { transform: rotate(-90deg); }   /* 收起 ⇒ 箭头朝右 */
.fold .fold-h { font-size: 12.5px; font-weight: 400; color: var(--brand-deep); }

/* ---------- 标签 ---------- */
.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; background: var(--brand-soft); color: var(--brand-deep); }
.tag.p { background: var(--purple-soft); color: #5b4bd6; }
.tag.g { background: #EAF7F0; color: var(--ok); }
.tag.w { background: #FCF1E6; color: var(--warn); }
.tag.d { background: #FBEAEA; color: var(--danger); }
.tag.gray { background: #F0F3F5; color: var(--ink-3); }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 12px; padding: 11px 18px; font-size: 15px; font-weight: 600;
  background: var(--brand); color: #fff; cursor: pointer; transition: .15s; }
.btn:active { transform: scale(.97); }
.btn.full { width: 100%; }
.btn.p { background: var(--purple); }
.btn.ghost { background: #fff; color: var(--brand-deep); border: 1px solid var(--brand); }
.btn.plain { background: #F1F5F6; color: var(--ink-2); }
.btn.danger { background: #FBEAEA; color: var(--danger); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.sm { padding: 6px 12px; font-size: 13px; border-radius: 9px; }
/* 第 86 轮：点赞已赞态（一人一赞，可再次点击取消） */
.btn.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-deep); font-weight: 600; }
.lk { color: var(--ink-2); transition: .15s; }
.lk.on { color: var(--brand); font-weight: 600; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
/* font-size 必须 ≥16px：iOS 聚焦时会自动放大整页（改不得，见文件顶部「H5 稳定自适应」②） */
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 12px; font-size: 16px; font-family: inherit; background: #FBFDFD; color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #fff; }
.field textarea { min-height: 96px; resize: vertical; }
.row2 { display: flex; gap: 10px; }
.row2 > * { flex: 1; }

/* ---------- 「这里有人」引导卡（第 231 轮 · 商业化 ①） ----------
   免费内容的终点 → 真人服务的起点。做成共享组件 HUMAN_INVITE 的配套样式，
   六端共一份，避免各自写 inline style 导致色值与圆角漂移。
   视觉上比普通 .card 多一点温度（左侧品牌色竖条 + 柔和底色），
   ⚠️ 但不做红色 / 惊叹号 / 倒计时这类"紧迫感"元素 —— 那是 00 号 §4.2 明令禁止的。 */
.hi-card { border-left: 4px solid var(--brand); background: linear-gradient(180deg, var(--brand-soft) 0%, var(--card) 46%); }
.hi-card .h2 { color: var(--brand-deep); }

/* ---------- 多选框组（第 94 轮：咨询师端「可接形态」，四端通用） ----------
   与另两个「看起来像选项」的组件分清楚，别混用：
     .seg   单选切换（互斥，如登录方式）      .chips 筛选条（单选，横向滚动）
     .picks 多选组（互不排斥，可同时选多个）—— 每一项都是真实的 <input type="checkbox">
   ⚠️ 两条「静默继承」坑，注释在此留痕：
   ① `.field input` 会把输入框拉成整行（width:100% + padding + 边框）——复选框必须用
      下方**更高优先级**的 `.picks input[type=checkbox]` 覆盖回来，否则被撑成大方块；
   ② 组内用的是 `<label class="pick">`，会被 `.field label`（font-size:13px、
      margin-bottom:6px、color:ink-2）**顺带命中** —— 所以 .pick 必须把这几项显式写死，
      不能依赖继承（多选组换行时 margin-bottom 还会把行距撑开）。 */
.picks { display: flex; gap: 8px; flex-wrap: wrap; }
.picks .pick {
  flex: 1 1 88px; display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: 0; padding: 10px 8px; border: 1px solid var(--line); border-radius: 10px;
  background: #FBFDFD; color: var(--ink-2); font-size: 14px; line-height: 1.4; font-weight: 400;
  cursor: pointer; user-select: none; -webkit-user-select: none; transition: .15s;
}
.picks .pick.on {
  border-color: var(--brand); background: var(--brand-soft); color: var(--brand-deep); font-weight: 600;
}
.picks .pick:active { transform: scale(.98); }
.picks input[type=checkbox] {
  width: 16px; height: 16px; padding: 0; margin: 0; border: 0; background: none;
  border-radius: 4px; accent-color: var(--brand); flex: none;
}
/* 一个都没勾时的提示（红字，位置紧贴多选组下方） */
.picks-hint { color: var(--danger); font-size: 12px; margin-top: 6px; }

/* ---------- 登录方式切换（验证码 / 用户名密码，四端共用） ---------- */
.seg { display: flex; gap: 4px; padding: 4px; background: #F1F5F6; border-radius: 12px; margin-bottom: 16px; }
.seg > button {
  flex: 1; border: 0; background: transparent; cursor: pointer;
  padding: 9px 6px; border-radius: 9px; font-size: 14px; font-weight: 600;
  color: var(--ink-3); font-family: inherit; transition: all .18s;
}
.seg > button.on { background: #fff; color: var(--brand-deep); box-shadow: 0 2px 8px rgba(34, 48, 58, .08); }
.seg > button:active { transform: scale(.98); }
.pwd-hint { color: var(--ink-3); font-size: 12px; margin-top: 6px; line-height: 1.6; }

/* ---------- 列表 cell ---------- */
.cell { display: flex; align-items: center; gap: 12px; padding: 13px 2px; border-bottom: 1px solid var(--line); cursor: pointer; }
.cell:last-child { border-bottom: 0; }
.cell .ic { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 19px; background: var(--brand-soft); flex: none; }
.cell .bd { flex: 1; min-width: 0; }
.cell .bd .t { font-weight: 600; font-size: 15px; }
.cell .bd .s { color: var(--ink-3); font-size: 12.5px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell .arrow { color: var(--ink-3); }

/* ---------- 指标卡 ---------- */
.stats { display: flex; gap: 10px; margin-bottom: 12px; }
.stats .s { flex: 1; background: var(--card); border-radius: var(--r); padding: 13px 12px; box-shadow: var(--shadow); }
.stats .s .n { font-size: 21px; font-weight: 800; color: var(--brand-deep); }
.stats .s .n.pu { color: var(--purple); }
.stats .s .l { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
/* 可点指标卡（第 90 轮）：仪表盘卡片 → 对应列表 / 详情页。
   触屏没有 hover，所以「可点」必须靠**按下反馈**（:active）+ 指针形状来表达；
   缺了这段，可点卡片看起来和纯展示卡片一模一样，用户会以为点了没反应。 */
.stats .s.tap { cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, box-shadow .12s ease; }
.stats .s.tap:hover { box-shadow: 0 10px 24px rgba(34, 48, 58, .14); }
.stats .s.tap:active { transform: scale(.97); }

/* ---------- 底部导航（移动端） ---------- */
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  display: flex; background: #fff; border-top: 1px solid var(--line);
  padding: 6px 0 max(6px, env(safe-area-inset-bottom)); }
.tabbar .tb { flex: 1; text-align: center; font-size: 11px; color: var(--ink-3); cursor: pointer; padding: 4px 0; }
.tabbar .tb .i { font-size: 20px; display: block; line-height: 1.25; }
.tabbar .tb.on { color: var(--brand-deep); font-weight: 700; }

/* ---------- 会话气泡 ---------- */
.chat { display: flex; flex-direction: column; gap: 10px; padding: 6px 0 16px; }
.chat .msg { max-width: 78%; padding: 10px 13px; border-radius: 14px; font-size: 14.5px; }
.chat .msg.me { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.chat .msg.ta { align-self: flex-start; background: #fff; box-shadow: var(--shadow); border-bottom-left-radius: 4px; }
.chat .msg.sys { align-self: center; background: transparent; color: var(--ink-3); font-size: 12px; padding: 2px; }
.chat .who { font-size: 11px; color: var(--ink-3); margin-bottom: 3px; }
/* ⚠️ 第 211 轮：z-index 必须高于 .tabbar 的 40 —— 聊天页（先说说话/说说近况/im 会话）
   同时挂 .chatbar 与常驻底部导航，两者都是 fixed bottom:0；没有层级差时 tabbar
   （DOM 序更靠后 + z-index:40）会把输入条整个盖住，表现为「进去没有输入框」。
   z-index:50 是兜底：即便某页漏配 hideTab，输入条也盖在导航上可见可点。 */
.chatbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; display: flex; gap: 8px;
  padding: 10px 12px max(10px, env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
.chatbar input { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 10px 15px; font-size: 16px; }
.chatbar .btn { padding: 10px 16px; }
.chatbar .btn.sm { padding: 10px 12px; font-size: 13px; }

/* ================= 聊天全屏布局（第 222 轮修复） =================
   移动端聊天页（先说说话 / 说说近况 / 咨询会话）原本用 `.chatbar{position:fixed;bottom:0}`：
   固定底栏锚定在【布局视口】（延伸到地址栏之后）——手机地址栏露出时输入条被压到可见区
   下方 ⇒ 必须下滑（顺带收起地址栏）才够得着；且短会话时 #app{min-height:100dvh} 撑出
   空白带、输入条飘在底部 ⇒ 用户感知「页面变高」。
   修法：聊天页改 `.chat-screen` 全屏 flex 列——消息区 `.chat-scroll` 内部滚动、输入区
   `.chat-foot` 钉在屏幕底部（**非 fixed**，故不被地址栏遮）。高度用 100dvh 对齐【可见视口】、
   减去顶栏高度，确保底栏正好落在可见区底部；老浏览器回退 100vh。 */
.chat-screen { display: flex; flex-direction: column;
  height: calc(100vh - 52px); height: calc(100dvh - 52px); }
.chat-screen > .chat-scroll { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.chat-screen > .chat-foot { flex-shrink: 0; background: #fff; border-top: 1px solid var(--line); }
/* 聊天页内底栏改为普通流（落在 .chat-foot 底部），不再 fixed，彻底避开地址栏遮挡 */
.chat-screen .chatbar { position: static; left: auto; right: auto; bottom: auto; width: auto; }

/* ---------- 会话富媒体气泡（第 151 轮：图片 / 语音 / 业务卡片） ---------- */
.bubble-img { max-width: 200px; max-height: 200px; border-radius: 10px; display: block; cursor: zoom-in; }
.bubble-audio { width: 200px; height: 40px; display: block; }
/* 第 248 轮：视频气泡此前**没有任何样式**，只有全局 img,video,canvas,svg{max-width:100%}
   兜底 ⇒ 视频按原始像素渲染，竖屏视频会撑爆气泡宽度、圆角也没有。
   与 .bubble-img 同口径：最大 200×200、圆角、块级显示（inline 会留基线空隙）。 */
.bubble-video { max-width: 200px; max-height: 200px; border-radius: 10px; display: block; background: #000; }
.bubble-card { min-width: 180px; max-width: 220px; cursor: pointer; }
.bubble-card .bc-type { font-size: 11px; opacity: .85; margin-bottom: 2px; }
.bubble-card .bc-title { font-weight: 700; font-size: 14px; line-height: 1.35; }
.bubble-card .bc-price { font-weight: 800; margin-top: 4px; }
.bubble-card .bc-tip { font-size: 11px; opacity: .75; margin-top: 4px; }

/* ---------- 通用 ---------- */
.muted { color: var(--ink-3); font-size: 13px; }
.h1 { font-size: 20px; font-weight: 800; margin: 6px 0 12px; }
.h2 { font-size: 16px; font-weight: 700; margin: 0 0 8px; }
.flex { display: flex; align-items: center; gap: 8px; }
.flex .grow { flex: 1; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mb12 { margin-bottom: 12px; }
.center { text-align: center; }
.big-price { font-size: 26px; font-weight: 800; color: var(--warn); }
.big-price::before { content: "¥"; font-size: 15px; margin-right: 2px; }
/* 大号数字（**非金额**）：与 .big-price 同为 26px，但不带 ¥ 前缀、不用警示色。
   ⚠️ 拿 .big-price 渲染「评分 / 邀请码」会显示成 `¥4.9`、`¥2K7M9PQ4TA`
   —— 这不是样式偏好问题，是把非金额当金额渲染（第 97 轮实测抓到两处）。 */
.big-num { font-size: 26px; font-weight: 800; color: var(--ink); }
/* 邀请码（第 97 轮统一为 10 位数字+字母）：
   等宽 + 字距便于照着念/抄；break-all 防窄屏溢出；user-select:all 便于整段复制。
   全站 4 处「大号展示」共用本类 —— 禁各端自造 inline 字号（改一处漏一处的土壤）。
   ⚠️ 颜色用 --brand-deep 而不是 --brand：卡片背景是 --brand-soft 时，
      --brand 的对比度只有约 2.3:1（22px/800 属 WCAG 大字号，门槛 3:1 ⇒ 不达标）；
      --brand-deep 为 3.5:1，且是本仓库既有的「可读品牌色」（见 dist/app.js 的主标语）。 */
.code-box {
  font-family: ui-monospace, Menlo, Consolas, "Courier New", monospace;
  font-size: 22px; font-weight: 800; letter-spacing: 2px;
  color: var(--brand-deep); word-break: break-all; user-select: all;
}
.empty { text-align: center; color: var(--ink-3); padding: 40px 0 60px; }
.empty .e { font-size: 40px; margin-bottom: 8px; }
.banner-img { width: 100%; border-radius: var(--r); display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-soft), var(--purple-soft)); padding: 22px 16px; font-weight: 700; color: var(--brand-deep); }
/* ---------- 首页轮播（第 252 轮修）----------
   线上 `ys_banner.image` **全为 NULL** ⇒ 原实现里 `<img v-if="bn.image">` 不成立，
   只渲染一个 `<span>{{ bn.title }}</span>`，而外层用的是 `.banner-img`
   （那是给「今天心情天气」单条引导条设计的：居中 + 大字 + 渐变底）
   ⇒ 首页退化成**一列巨大居中文字卡**（用户报障「首页怎么是这个」）。
   现改为横向可滑动的紧凑卡：有图按比例展示，无图走渐变底 + 标题 + 引导。 */
.bnr-row { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 2px; position: relative; }
.bnr-row::-webkit-scrollbar { display: none; }
.bnr-card { flex: 0 0 82%; scroll-snap-align: start; border-radius: var(--r); overflow: hidden;
  position: relative; cursor: pointer; background: linear-gradient(135deg, var(--brand-soft), var(--purple-soft)); }
.bnr-card:nth-child(even) { background: linear-gradient(135deg, var(--purple-soft), var(--brand-soft)); }
.bnr-img { display: block; width: 100%; height: 112px; object-fit: cover; }
/* 第 263 轮：图文叠字 —— 有图也在底部叠标题，让用户知道这张 banner 是什么 */
.bnr-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 12px 10px;
  background: linear-gradient(to top, rgba(12,48,45,.82), rgba(12,48,45,0)); color: #fff;
  font-weight: 700; font-size: 15px; line-height: 1.35; pointer-events: none; }
.bnr-cap-t { text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.bnr-ph { display: flex; align-items: center; justify-content: center; box-sizing: border-box;
  background: linear-gradient(135deg, var(--brand-soft), var(--purple-soft)); color: var(--brand-deep);
  font-weight: 700; font-size: 15px; text-align: center; padding: 0 14px; }
/* 圆点指示器（与小程序 swiper 一致） */
.bnr-dots { display: flex; gap: 6px; justify-content: center; margin-top: 8px; }
.bnr-dots .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); opacity: .35; cursor: pointer; transition: all .2s; }
.bnr-dots .dot.on { opacity: 1; background: var(--brand); width: 16px; border-radius: 3px; }
.bnr-txt { padding: 15px 14px 17px; color: var(--brand-deep); }
.bnr-txt .t { font-weight: 700; font-size: 15px; line-height: 1.5; }
.bnr-txt .s { margin-top: 6px; font-size: 12.5px; opacity: .75; }
/* 桌面端（容器 .pcg）给更大的卡片与更高的图片 */
.pcg .bnr-row { gap: 14px; }
.pcg .bnr-card { flex: 0 0 62%; }
.pcg .bnr-img { height: 168px; }
.pcg .bnr-cap-t { font-size: 16px; }
.pcg .bnr-dots { margin-top: 10px; }
.pcg .bnr-txt { padding: 18px 18px 20px; }
.pcg .bnr-txt .t { font-size: 16px; }
.bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--purple)); border-radius: 999px; }
.toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%);
  background: rgba(34,48,58,.9); color: #fff; padding: 9px 18px; border-radius: 10px; font-size: 14px; z-index: 99; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.notice { background: #FFF8EC; border: 1px solid #F7E3C0; color: #8A6A32; border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-bottom: 12px; }

/* ---------- 底部选择面板（第 151 轮：聊天发卡片选课程/套餐/量表） ---------- */
.sheet { position: fixed; inset: 0; z-index: 90; background: rgba(17,24,28,.45); display: flex; align-items: flex-end; }
.sheet-box { width: 100%; max-height: 72vh; display: flex; flex-direction: column; background: #fff; border-radius: 16px 16px 0 0; overflow: hidden; }
.sheet-tab { display: flex; border-bottom: 1px solid var(--line); }
.sheet-tab span { flex: 1; text-align: center; padding: 13px 0; font-size: 14px; color: var(--ink-3); cursor: pointer; }
.sheet-tab span.on { color: var(--brand-deep); font-weight: 700; box-shadow: inset 0 -2px 0 var(--brand); }
.sheet-list { overflow-y: auto; padding: 8px 12px max(12px, env(safe-area-inset-bottom)); }
.sheet-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 14px; cursor: pointer; }
.sheet-item:last-child { border-bottom: none; }
.loading { text-align: center; color: var(--ink-3); padding: 30px 0; }
a { color: var(--brand-deep); }

/* ---------- 富文本（后台「说明」类字段以 HTML 存储，YS.rich() 安全渲染） ----------
   .rich 容器内的排版；四端共用。内容已白名单清洗，样式只做展示兜底。 */
.rich { line-height: 1.8; word-break: break-word; }
.rich > :first-child { margin-top: 0; }
.rich > :last-child { margin-bottom: 0; }
.rich p { margin: 0 0 8px; }
.rich h1, .rich h2, .rich h3, .rich h4 { margin: 12px 0 6px; color: var(--ink-1); line-height: 1.4; }
.rich h1 { font-size: 18px; } .rich h2 { font-size: 16px; } .rich h3 { font-size: 15px; } .rich h4 { font-size: 14px; }
.rich ul, .rich ol { padding-left: 20px; margin: 6px 0 10px; }
.rich li { margin: 3px 0; }
.rich blockquote { margin: 8px 0; padding: 8px 12px; border-left: 3px solid var(--brand-soft);
  background: var(--brand-softer, #F4FBFA); color: var(--ink-2); border-radius: 0 8px 8px 0; }
.rich img { max-width: 100%; border-radius: 10px; margin: 6px 0; display: block; }
.rich a { color: var(--brand-deep); text-decoration: underline; }
.rich hr { border: none; border-top: 1px dashed var(--line); margin: 12px 0; }
.rich code { background: #F1F5F4; border-radius: 4px; padding: 1px 5px; font-size: 12.5px; }
.rich table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 13px; }
.rich th, .rich td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; }
/* 协议阅读页（用户协议 / 隐私政策）：纯文本 + \n 换行，pre-wrap 保留段落，word-break 防长串溢出 */
.agree-doc { white-space: pre-wrap; word-break: break-word; line-height: 1.9; color: var(--ink-2); font-size: 14px; }

/* ============================================================
   心情广场 · 图文结合（第 99 轮）
   ------------------------------------------------------------
   为什么放在共享样式而不是各端各写一份：
   广场在手机端（m）/ 电脑端（pc）/ 咨询师端（coach）三处都有，
   图片九宫格、视频播放器、#标签 这些形态必须长得一样 ——
   各写一份的结果一定是三份不一样的间距和圆角。
   ============================================================ */

/* ---------- 话题卡片：左图右文 ---------- */
.tcard { display: flex; gap: 12px; align-items: stretch; }
.tcard .tbody { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tcard .ttitle { font-weight: 600; font-size: 15.5px; line-height: 1.45; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tcover { flex: none; width: 88px; height: 88px; border-radius: 12px; object-fit: cover;
  background: var(--brand-soft); display: block; }
.tcover.ph { display: flex; align-items: center; justify-content: center; font-size: 30px;
  background: linear-gradient(135deg, var(--brand-soft) 0%, #EFEAFD 100%); }
.tcover.pending { filter: grayscale(1) opacity(.55); }

/* ---------- #标签 ---------- */
.tagrow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.hashtag { font-size: 12px; color: var(--brand-deep); background: var(--brand-soft);
  border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.hashtag.on { background: var(--brand); color: #fff; font-weight: 600; }

/* ---------- 搜索行 ---------- */
.searchbar { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.searchbar input { flex: 1; border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 15px; font-size: 16px; font-family: inherit; background: #fff; color: var(--ink); }
.searchbar input:focus { outline: none; border-color: var(--brand); }
.searchbar .go { flex: none; padding: 10px 16px; border-radius: 999px; background: var(--brand);
  color: #fff; border: none; font-size: 14px; font-family: inherit; cursor: pointer; }

/* ---------- 发帖 / 发话题 的媒体区 ---------- */
.mgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.mgrid .cell { position: relative; padding-top: 100%; border-radius: 10px; overflow: hidden;
  background: #F1F5F4; }
.mgrid .cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.mgrid .cell .del { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; border: none; font-size: 12px;
  line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.mgrid .add { position: relative; padding-top: 100%; border: 1px dashed var(--line); border-radius: 10px;
  background: #FBFDFD; cursor: pointer; }
.mgrid .add span { position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; flex-direction: column; color: var(--ink-3); font-size: 12px; gap: 2px; }
.mgrid .add .plus { font-size: 22px; line-height: 1; }
.mvideo { width: 100%; max-height: 260px; border-radius: 10px; margin-top: 10px; background: #000; display: block; }

/* ---------- 帖子里的媒体展示 ---------- */
.pmedia { margin-top: 10px; }
.pmedia .pimg { width: 100%; border-radius: 10px; display: block; }
.pmedia .pgrid { display: grid; gap: 6px; }
.pmedia .pgrid.n2 { grid-template-columns: repeat(2, 1fr); }
.pmedia .pgrid.n3 { grid-template-columns: repeat(3, 1fr); }
.pmedia .pgrid .pi { position: relative; padding-top: 100%; border-radius: 10px; overflow: hidden; background: #F1F5F4; }
.pmedia .pgrid .pi img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- 顶部发起入口（压过下面所有卡片） ---------- */
.hero { background: linear-gradient(135deg, var(--brand) 0%, #3FC3B5 55%, var(--purple) 130%);
  border-radius: var(--r); padding: 16px; color: #fff; margin-bottom: 12px;
  box-shadow: 0 8px 20px rgba(42,183,169,.22); }
.hero .hi { font-size: 17px; font-weight: 700; letter-spacing: .3px; }
.hero .hs { font-size: 12.5px; opacity: .92; margin-top: 5px; line-height: 1.55; }
.hero .hact { display: flex; gap: 8px; margin-top: 13px; }
.hero .hact button { flex: 1; border: none; border-radius: 999px; padding: 10px 8px; font-size: 14px;
  font-family: inherit; cursor: pointer; }
.hero .hact .primary { background: #fff; color: var(--brand-deep); font-weight: 700; }
.hero .hact .lite { background: rgba(255,255,255,.18); color: #fff; }

/* ---------- 通用「可点」反馈（第 99 轮） ----------
   此前只有 `.stats .s.tap` 有按下反馈，别处想"点了有反应"就得各写一份 inline style，
   于是同一份代码里出现了三种写法、首页的探索格子干脆没有反馈。
   这里给 .tap 一个通用定义；`.stats .s.tap` 的具体阴影仍由它自己的规则提供
   （选择器特异性更高，不会被这条覆盖）。 */
.tap { cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .12s ease; }
.tap:active { transform: scale(.97); }

/* ---------- 首页「探索一下」四宫格（第 99 轮） ---------- */
.qgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.qgrid > .tap { background: var(--brand-soft); border-radius: 14px; padding: 10px 4px; text-align: center; }
.qgrid .qi { font-size: 21px; line-height: 1.25; }
.qgrid .qt { font-size: 12.5px; font-weight: 600; color: var(--ink); margin-top: 3px; }
/* min-height 是刻意的：四个格子的副标题字数不同，不给高度会让格子高低不齐、整排参差 */
.qgrid .qs { font-size: 10.5px; color: var(--ink-3); margin-top: 2px; line-height: 1.3; min-height: 27px; }

/* ============================================================================
   打印 / 导出 PDF（第 132 轮新增）

   背景：报告页加了「导出 PDF」按钮，走 YS.print() → window.print()，
   由浏览器 / 系统的打印面板产出 PDF（选「另存为 PDF」）。

   为什么放在**共享 CSS**（而不是学员端 / 桌面版各写一份）：
   五端共用同一套外壳与内容类名（.top / .tabbar / .wrap / .card / .bar），
   打印样式各端各写一份迟早不一致 —— 与第 123 轮 SEO 五端一致的道理相同。

   ⚠️ 两条容易踩的坑，写在前面：
   ① 打印默认**不输出背景色/背景图**（Chrome 的 "Background graphics" 默认关），
      进度条 .bar > i 是纯背景渐变 ⇒ 不打 print-color-adjust 就是一片空白。
   ② 打印时**导航与按钮必须隐藏**，否则每页都挂着顶栏和底部 tab。
   ========================================================================== */
@media print {
  @page { size: A4; margin: 15mm 13mm 18mm; }

  html, body { background: #fff !important; }

  /* ① 导航 / 操作类元素：打印出来的是报告，不是界面 */
  .top, .tabbar, .ysbk, .row2, .soft-btn, .mask, .modal, .share-mask, .popup { display: none !important; }
  .btn, button, .fab { display: none !important; }

  /* ② 内容区：解除移动端宽度限制，去掉阴影与圆角背景，避免灰底和横向截断 */
  .wrap { max-width: none !important; margin: 0 !important; padding: 0 !important; background: #fff !important; }
  .card { box-shadow: none !important; border: 1px solid #E3E8E7 !important; background: #fff !important; }
  /* 卡片整体不跨页断开：一份「因子解读」被切成两页最难读 */
  .card { break-inside: avoid; page-break-inside: avoid; }
  .card, .notice, .h1, .h2 { orphans: 3; widows: 3; }

  /* ③ 品牌色在黑白打印下会糊成灰 ⇒ 标题统一深色，保证可读 */
  .h1, .h2, .card .h .t { color: #13403C !important; }

  /* ④ 进度条是渐变背景，必须显式要求打印背景（否则打印出来是空的） */
  .bar, .bar > i { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .tag { -webkit-print-color-adjust: exact; print-color-adjust: exact; border: 1px solid #C9D3D1 !important; }

  /* ⑤ 每页固定页脚（Chrome / Edge 每页重复；Safari 只在末页显示） */
  .print-foot { display: block !important; position: fixed; left: 0; right: 0; bottom: 0;
    padding-top: 4px; border-top: 1px solid #DDD; font-size: 10px; color: #888; text-align: center; }
}
/* 屏幕下不显示打印页脚（避免和页面内容抢位） */
.print-foot { display: none; }

/* 第 269 轮：动态计时数字（正念呼吸「已陪伴你 N 个循环 · M 秒」等）。
   居中的一整行里，数字位数一变就会把整行撑得左右晃，比呼吸圆本身还抢注意力。
   ⇒ 固定宽度的 inline-block + 等宽数字字形，容器宽度恒定，数位变化不再产生位移。
   小程序端同名规则在 miniprogram/pages/mind/plaza.wxss（两端同口径）。 */
.bnum {
  display: inline-block; min-width: 3em; text-align: right;
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum";
}

/* 第 295 轮：自绘播放条。
   原生 <audio>/<video controls> 在 Safari / Firefox 会把媒体文件名（有时是
   index.m3u8 / xxx.m4a）直接画在控件条上，既难看又像没做完；原生控件没有
   「只隐藏文件名」的开关 ⇒ 干脆不用原生控件，改用下面这条最小控件条。
   四端（H5/PC/教练端）共用，无需各端另写。 */
.ys-pbar {
  display: flex; align-items: center; gap: 8px;
  margin-top: 10px; padding: 8px 10px; border-radius: 12px;
  background: #f5f9f8; border: 1px solid #e4eeeb;
}
.ys-pbar .ys-pbtn {
  flex: 0 0 auto; width: 34px; height: 34px; padding: 0;
  border: 0; border-radius: 50%; background: #2AB7A9; color: #fff;
  font: inherit; font-size: 13px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.ys-pbar .ys-pbtn:active { transform: scale(.96); }
.ys-pbar .ys-pbtn.ghost {
  width: 30px; height: 30px; background: transparent; color: #5b6d69; font-size: 15px;
}
.ys-pbar .ys-ptime {
  flex: 0 0 auto; min-width: 36px; text-align: center;
  font-size: 12px; color: #6b7c79; font-variant-numeric: tabular-nums;
}
.ys-pbar .ys-pseek {
  flex: 1 1 auto; min-width: 0; height: 20px; margin: 0;
  background: transparent; accent-color: #2AB7A9; cursor: pointer;
}


/* =====================================================
   第 313 轮：登录后「关注服务号」引导
   -----------------------------------------------------
   为什么要有：服务号客服消息有 48h 窗口、订阅通知要「授权一次发一条」，
   而用户/咨询师/机构登录后普遍不知道还有个服务号可关注 —— 于是站内信之外
   几乎没有任何触达。登录成功时弹一次、只弹一次，把「关注」这件事说清楚。

   三条温柔底线照旧：文案不写「错过就没了」这类紧迫话术，不把服务号包装成
   「必须关注才能用」，也不暗示关注能换取额外权益 —— 只是把「消息往哪送」
   讲明白，用户可以选「以后再说」。
   ===================================================== */
.ys-follow-mask {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(20, 32, 38, .45);
  display: flex; align-items: flex-end; justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.ys-follow-card {
  position: relative; width: 100%; max-width: 430px;
  background: var(--card); border-radius: 18px 18px 0 0;
  padding: 24px 22px calc(20px + env(safe-area-inset-bottom));
  text-align: center; box-shadow: 0 -8px 28px rgba(34,48,58,.14);
  animation: ysFollowUp .22s ease-out;
}
@keyframes ysFollowUp { from { transform: translateY(18px); opacity: .6; } to { transform: none; opacity: 1; } }
.ys-follow-x {
  position: absolute; top: 8px; right: 8px; width: 32px; height: 32px;
  border: 0; background: transparent; color: var(--ink-3); font-size: 20px; line-height: 1;
  cursor: pointer;
}
.ys-follow-t { font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: .2px; }
.ys-follow-d {
  margin-top: 8px; font-size: 13px; color: var(--ink-2); line-height: 1.6;
}
.ys-follow-qr {
  display: block; width: 168px; height: 168px; margin: 14px auto 0;
  border-radius: 10px; border: 1px solid var(--line); background: #fff;
}
.ys-follow-hint {
  margin-top: 10px; font-size: 12px; color: var(--ink-3); line-height: 1.6;
}
.ys-follow-btn, .ys-follow-later {
  display: block; width: 100%; margin-top: 14px; padding: 12px 0;
  border-radius: 12px; font: inherit; font-size: 15px; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ys-follow-btn {
  border: 0; background: var(--brand); color: #fff; font-weight: 600;
}
.ys-follow-btn:active { background: var(--brand-deep); }
.ys-follow-later {
  margin-top: 8px; padding: 8px 0; border: 0; background: transparent;
  color: var(--ink-3); font-size: 13px;
}
@media (min-width: 720px) {
  .ys-follow-mask { align-items: center; }
  .ys-follow-card { border-radius: 18px; padding-bottom: 24px; }
}
