/* ============================================================================
 * 会议会务直播系统 · 观众侧 H5 样式（移动优先）
 * 主题色 / 文字色 / 背景色由 PageSchema.theme 注入到 :root 上的 CSS 变量，
 * 因此换肤不需要改动本文件。
 * ========================================================================== */

:root {
  --brand: #1f6feb;
  --brand-weak: rgba(31, 111, 235, 0.1);
  --text: #1b1f24;
  --text-2: #59636e;
  --text-3: #8b949e;
  --bg: #f2f4f7;
  --surface: #ffffff;
  --line: rgba(27, 31, 36, 0.09);
  --live: #e5484d;
  --ok: #1a7f37;
  --warn: #bf8700;
  --radius: 12px;
  --gap: 16px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);

  /* ---------------------------- 设计令牌 ---------------------------- */

  /* 圆角阶梯：控件 / 卡片（--radius，同时是模块默认值） / 大面板。
     分两级就够：小控件用 10px，浮层用 18px，中间那档沿用 --radius 不引入新名字。 */
  --r-ctl: 10px;
  --r-lg: 18px;

  /* 阴影阶梯：原实现全站只有 `0 1px 2px rgba(27,31,36,.05)` 一档，
     在 #f2f4f7 底上几乎看不见 → 满屏白块"糊"在一起，层次完全丢失。
     三档各司其职：① 静态卡片（几乎只是描边感）② 可点卡片/悬浮 ③ 浮层。 */
  --sh-1: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.06);
  --sh-2: 0 2px 4px rgba(16, 24, 40, 0.04), 0 6px 16px rgba(16, 24, 40, 0.07);
  --sh-3: 0 12px 32px rgba(16, 24, 40, 0.14), 0 2px 8px rgba(16, 24, 40, 0.08);

  /* 焦点环：原来各控件自己写 `outline: 2px solid var(--brand-weak)`，
     弱色在深色主题下几乎看不见。统一成 ring 令牌，键盘可达性可预期。 */
  --ring: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* 品牌深色兜底值：不支持 color-mix 的浏览器用这一档静态深蓝 */
  --brand-deep: #12467f;
  --brand-soft: rgba(31, 111, 235, 0.1);

  /* ------------------- 响应式令牌（2026-11-02 Phase 3 补丁） -------------------
   * ★只追加、不改上面任何既有变量的名与值★（档位取值见 docs/响应式视觉规范.md §3）
   * 门户比后台多一档 --fs-t：24px 主标题与 12px 角标必须共存，跨度天然更大，
   * 且这个跨度**随视口变化**（1440 24px / 390 17px）—— 它不参与信息密度预算，
   * 所以只有这一档允许 clamp()（规范 §3.1 末尾）。 */
  --fs-cap: 12px;   /* 时间戳 / 单位 / 角标 */
  --fs-aux: 13px;   /* 副文本 / 说明 / 徽标 / 页签文案 */
  --fs-body: 15px;  /* 正文 */
  --fs-sub: 16px;   /* 卡片标题 */
  --fs-h: 18px;     /* 区块标题 */
  --fs-t: clamp(17px, 0.65vw + 14.3px, 24px); /* 页面主标题 */

  --hit-min: 44px;  /* 门户全部可点元素的命中区 */
  --hit-gap: 8px;   /* 相邻可点元素的最小间距 */
}

/* ★品牌深色必须派生自 --brand，不能写死★
   原 `.hero` 的渐变终点硬编码 #12467f：运营把主题色改成红色后，
   背景仍从红渐变到深蓝 —— 主题功能等于半失效，而且没有任何报错。
   这里用 color-mix 让深色端始终是"当前品牌色的暗部"，改 --brand 即全站跟随。
   ★顺序要紧★：@supports 必须在兜底声明**之后**，否则同优先级的后写者会赢，
   派生值会被静态色盖掉（这个坑很隐蔽——样式表能解析、页面也不报错，只是不生效）。 */
@supports (color: color-mix(in srgb, red, blue)) {
  :root {
    --brand-deep: color-mix(in srgb, var(--brand) 72%, #05121f);
    --brand-soft: color-mix(in srgb, var(--brand) 12%, var(--surface));
  }
}

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

/* ★[hidden] 必须真的隐藏★
   作者样式里的 `display: flex`（下面的 .overlay / .lightbox 都是）会压过 UA 样式表的
   `[hidden] { display: none }`，于是"带 hidden 属性却依然显示"。这不是观感问题：
   .overlay 是 position:fixed;inset:0;z-index:90 的全屏遮罩，一旦常驻，
   整页元素的命中测试都被它吃掉 —— 观众点什么都没反应，且页面不发任何报错。
   一条 !important 兜底堵死整类问题，比在每个组件的 display 上打补丁可靠。 */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
button { font: inherit; color: inherit; }

.app { min-height: 100vh; padding-bottom: calc(24px + var(--safe-b)); }

/* ---------------------------------- 基础 --------------------------------- */

.boot {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 60vh; gap: 14px; color: var(--text-3);
}
.boot__text { margin: 0; font-size: 14px; }

.spinner {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2.5px solid var(--brand-weak); border-top-color: var(--brand);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.noscript { padding: 24px; text-align: center; color: var(--text-2); }

.page { max-width: 720px; margin: 0 auto; }

.section-title {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 20px var(--gap) 10px; font-size: 16.5px; font-weight: 650; letter-spacing: .2px;
}
/* 标题前一根品牌色短竖条：整页都是白卡片时，扫读需要"段落从哪里开始"的锚点。
   首个子元素恒为承载标题的 span（34 类模块统一如此），所以这个选择器是稳的。 */
.section-title > span:first-child { position: relative; padding-left: 11px; }
.section-title > span:first-child::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 15px; border-radius: 2px; background: var(--brand);
}
.section-title small { font-weight: 400; color: var(--text-3); font-size: 12px; }

.muted { color: var(--text-3); }

/* 空态：不引入结构改动（有 12 处 `h('div', {class:'empty', text})`，其中数处是错误提示，
   硬塞图标反而别扭），只把版式收紧：行长受控、行高放开、垂直留白更整。
   `.empty__icon/__title/__desc` 供需要"更完整空态"的新模块按需组合。 */
.empty { padding: 44px 24px; text-align: center; color: var(--text-3); font-size: 14px; line-height: 1.7; }
.empty > * { max-width: 22em; margin-left: auto; margin-right: auto; }
.empty__icon {
  width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-weak); color: var(--brand);
}
.empty__title { font-size: 14.5px; font-weight: 600; color: var(--text-2); }
.empty__desc { margin-top: 5px; font-size: 12.5px; line-height: 1.65; }
/* 整页空态：编排为空时的兜底提示（2026-10-28）。只在门户/播放页主区出现，
   比模块内空态多一层卡片感 —— 它替代的是"整页内容"，不是"某个模块缺数据"。 */
.empty--page {
  margin: 16px 12px 24px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 40px 20px;
}

/* 模块容器：style.marginTop / marginBottom / fullBleed 由渲染引擎写入内联样式 */
.module { position: relative; }
.module--bleed { margin-left: 0; margin-right: 0; }

/* ---------------------------------- 顶部栏 -------------------------------- */

.hero {
  position: relative; overflow: hidden;
  padding: calc(30px + var(--safe-t)) var(--gap) 26px;
  /* 两层背景：
     ① 右上角柔光 —— 大面积平涂渐变容易显得廉价，一层角落高光就有"打光"感。
     ② 品牌色 → 派生深色渐变。
        ★方向用 180deg（纯纵向）★：158deg 是"左下亮、右上暗"的斜向，
        与右上角高光**方向相抵**，叠在一起会互相抵消成一片浑浊的中间色；
        纵向渐变方向无歧义，高光叠上去才有层次。
        ★终点必须是 --brand-deep（派生值）★写死颜色会让「主题色」功能半失效。 */
  background:
    radial-gradient(130% 130% at 94% -18%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 56%),
    linear-gradient(180deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
}
.hero__logo {
  width: 46px; height: 46px; border-radius: 12px; object-fit: cover;
  background: rgba(255,255,255,.22); margin-bottom: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.hero__title { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.32; letter-spacing: .2px; text-wrap: balance; }
.hero__sub { margin: 7px 0 0; font-size: 13.5px; opacity: .88; line-height: 1.6; }
.hero__meta { margin-top: 15px; display: flex; flex-wrap: wrap; gap: 7px; font-size: 12px; }
.hero__chip {
  padding: 4px 11px; border-radius: 999px; line-height: 1.6; font-weight: 500;
  /* 原来只有 16% 白底 + backdrop-filter: blur(4px)。
     底下是纯渐变、没有可模糊的细节，blur 只白白开一层合成层（移动端还要多占显存）；
     改为「底色 + 1px 描边」，在小尺寸 chip 上边缘更清晰、对比更稳。 */
  background: rgba(255,255,255,.17); border: 1px solid rgba(255,255,255,.22);
}

/* 顶栏（播放页吸顶） */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  padding: calc(8px + var(--safe-t)) 12px 8px;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.topbar__back {
  width: 32px; height: 32px; flex: none; border: 0; background: transparent;
  font-size: 19px; line-height: 1; cursor: pointer; border-radius: 8px;
}
.topbar__title { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__action { border: 0; background: transparent; color: var(--brand); font-size: 14px; cursor: pointer; padding: 6px 4px; }

/* ---------------------------------- 卡片 --------------------------------- */

.card {
  background: var(--surface); border-radius: var(--radius); margin: 0 var(--gap) var(--gap);
  overflow: hidden; box-shadow: var(--sh-1);
}

/* --------------------------------- 直播间列表 ------------------------------ */

.livelist { display: flex; flex-direction: column; gap: 12px; padding: 0 var(--gap) var(--gap); }
.livelist__group-title {
  padding: 14px 0 6px; font-size: 13px; font-weight: 600; color: var(--text-2);
  display: flex; align-items: center; gap: 8px;
}
.livelist__group-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.livecard {
  display: flex; gap: 12px; padding: 12px; background: var(--surface);
  border-radius: var(--radius); cursor: pointer; text-align: left; width: 100%;
  border: 1px solid transparent; box-shadow: var(--sh-1);
  transition: transform .12s ease, box-shadow .12s ease;
}
.livecard:active { transform: scale(0.985); }
.livecard--live { border-color: rgba(229,72,77,.34); box-shadow: 0 0 0 1px rgba(229,72,77,.08); }
.livecard__cover {
  width: 108px; height: 68px; flex: none; border-radius: 8px; object-fit: cover;
  background: linear-gradient(135deg, #dfe6ee, #c8d3e0); position: relative; overflow: hidden;
}
.livecard__cover--placeholder { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; }
.livecard__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.livecard__title {
  font-size: 15px; font-weight: 600; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.livecard__sub { font-size: 12.5px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.livecard__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.livecard__time { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 4px; }
.livecard__btn {
  flex: none; padding: 5px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: var(--brand); color: #fff; border: 0; white-space: nowrap;
}
.livecard__btn--disabled { background: var(--bg); color: var(--text-3); }
.livecard__btn--live { background: var(--live); }

.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px;
  border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.7;
}
.badge--live { background: rgba(229,72,77,.12); color: var(--live); }
.badge--scheduled { background: var(--brand-weak); color: var(--brand); }
.badge--ended { background: rgba(89,99,110,.1); color: var(--text-3); }
.badge--interrupted { background: rgba(191,135,0,.14); color: var(--warn); }
.badge__dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge--live .badge__dot { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

/* --------------------------------- 播放器 -------------------------------- */

.player { position: relative; background: #000; width: 100%; }
.player--sticky { position: sticky; top: 0; z-index: 20; }
.player__stage { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.player__stage video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
/* 占位层：未开始 / 已结束时盖住 video，避免黑屏。图片可配置，未配置时只留文案。 */
.player__placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: #101318 center / cover no-repeat;
}
.player__placeholder[hidden] { display: none; }
.player__poster { width: 100%; height: 100%; object-fit: cover; display: block; }
.player__overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 12px; color: #fff; text-align: center; padding: 20px;
  background: radial-gradient(circle at 50% 40%, rgba(0,0,0,.35), rgba(0,0,0,.72));
}
.player__overlay p { margin: 0; font-size: 14px; opacity: .9; }
.player__play {
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.94); color: #111; font-size: 22px;
  display: flex; align-items: center; justify-content: center; padding-left: 5px;
}
/**
 * ★底部操作栏（2026-10-28 重排）★
 *
 *   一条栏里装两类东西，视觉上必须能分清：
 *     · 左区「信息」：直播标签 / 观看人数 / 点赞数 —— 只读，弱化；
 *     · 右区「操作」：声音 / 分享 / 画中画 / 全屏 / 清晰度 —— 可点，等权重。
 *
 *   ★为什么把分享与人数从画面浮层挪进来★
 *     浮在画面上的角标与圆钮会**压住画面主体**（主体居中，浮层再淡也挡视线），
 *     而且和右下的操作按钮不在一条基线上，读起来像两处不相干的控件。
 *     收进底部渐变带后：一整条控件共基线、尺寸一致，且不遮主体。
 *
 *   ★尺寸基准★：所有圆形操作按钮统一 28px（移动端 30px），图标字号统一 13px，
 *     按钮间距统一 8px —— 三者只要有一个不一致，一排控件就会"歪"。
 */
.player__bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 8px 12px;
  background: linear-gradient(to top, rgba(0,0,0,.72), transparent); color: #fff; font-size: 12px;
}
/** 左区：只读信息。`margin-right:auto` 把右区推走，两区之间自然分开 */
.player__bar-info {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  margin-right: auto; opacity: .92;
}
/** 右区：可点操作。`gap` 统一按钮间距，新增按钮不会挤乱已有排布 */
.player__bar-actions {
  display: flex; align-items: center; gap: 8px; flex: none;
}
.player__quality { display: flex; gap: 6px; }
.player__quality button {
  border: 1px solid rgba(255,255,255,.42); background: rgba(0,0,0,.28); color: #fff;
  border-radius: 6px; padding: 3px 9px; font-size: 12px; cursor: pointer;
}
.player__quality button[aria-pressed='true'] { background: #fff; color: #111; border-color: #fff; font-weight: 600; }
.player__stat { display: flex; align-items: center; gap: 8px; opacity: .92; }

/**
 * ★观看人数 / 点赞数（2026-10-28 从画面浮层移入操作栏）★
 *   这两个是**信息**不是按钮：`pointer-events: none`，
 *   既不会挡住点画面播放/暂停，也不会让观众以为点它能做什么。
 *   与「直播」标签同在左区，字号与图标统一（13px），读起来是一组状态读数。
 */
.player__viewers,
.player__likes {
  display: inline-flex; align-items: center; gap: 4px;
  flex: none; font-size: 12px; line-height: 1.5; white-space: nowrap;
  pointer-events: none;
}
.player__likes { color: #ff7a7a; }
.player__likes span[aria-hidden='true'] { font-size: 13px; line-height: 1; }


/**
 * ★声音开关 / 全屏 / 画中画 / 分享：同一款圆形按钮★
 *   播放器不用原生 controls（移动端样式不可控、会盖住底部信息条），
 *   因此必须自带音量入口 —— 否则配置 `muted: true` 就是"永久无声"，观众无处可点。
 *
 *   ★四个按钮的尺寸/边框/背景/字号必须完全一致★（2026-10-28）：
 *   底部操作栏是一排控件，只要有一个大一圈或深一度，整排就"歪"。
 *   所以这里用**一条选择器列表**统一声明，不再各写各的。
 */
.player__sound,
.player__fullscreen,
.player__pip,
.player__share {
  flex: none; width: 28px; height: 28px; padding: 0; line-height: 1;
  border: 1px solid rgba(255,255,255,.42); border-radius: 50%;
  background: rgba(0,0,0,.32); color: #fff; font-size: 13px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.player__sound[aria-pressed='true'],
.player__fullscreen[aria-pressed='true'],
.player__pip[aria-pressed='true'] { background: rgba(255,255,255,.92); border-color: #fff; color: #111; }
.player__share:hover,
.player__sound:hover,
.player__fullscreen:hover,
.player__pip:hover { background: rgba(0,0,0,.52); border-color: rgba(255,255,255,.72); }
.player__share:active,
.player__sound:active,
.player__fullscreen:active,
.player__pip:active { transform: scale(.94); }
/**
 * ★画中画在移动端隐藏★：由 CSS 断点负责（跨断点缩放窗口后按钮仍在，
 *   否则"缩小再放大"就会永久失去这个控件 —— 创建是一次性的）。
 * ★必须写在统一规则之后★：上面的选择器列表给了 `display: inline-flex`，
 *   这里要重新盖回 `none`。
 */
.player__pip { display: none; }

/* 全屏元素是 .player__stage（不是外层 .player）：必须显式给满屏高度，
   否则 aspect-ratio:16/9 会把画面压成中间一条，两侧全黑 = "全屏了但画面更小"。
   ★两条规则必须分开写，不能合并成逗号列表★（2026-10-23 真实浏览器实测）：
   选择器列表里只要有一个当前浏览器不认识的伪类，整条规则会被**整体丢弃** ——
   写成 `.player__stage:fullscreen, .player__stage:-ms-fullscreen {…}` 时，
   Chromium 因不认 `:-ms-fullscreen` 而把全屏样式全扔掉，表现就是"进了全屏还是 16:9 小黑条"。 */
.player__stage:fullscreen {
  width: 100vw; height: 100vh; aspect-ratio: auto; background: #000;
}
.player__stage:-webkit-full-screen {
  width: 100vw; height: 100vh; aspect-ratio: auto; background: #000;
}
/* 伪全屏兜底：WebView 禁用 Fullscreen API 时铺满视口 */
.player--pseudo-fs {
  position: fixed; inset: 0; z-index: 9999; width: 100vw; height: 100vh;
  background: #000;
}
.player--pseudo-fs .player__stage { width: 100%; height: 100%; aspect-ratio: auto; }
body.player-fs-open { overflow: hidden; }
.player__soundhint {
  position: absolute; left: 12px; bottom: 46px; z-index: 3;
  border: 0; border-radius: 999px; padding: 8px 14px; font-size: 13px;
  background: rgba(0,0,0,.74); color: #fff; cursor: pointer;
  animation: player-sound-nudge 1.8s ease-in-out infinite;
}
@keyframes player-sound-nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) {
  .player__soundhint { animation: none; }
}

/**
 * ★移动端操作栏（2026-10-28）★
 *   ① 命中区放大到 30px：手指点按比鼠标粗，28px 在手机上偏小；
 *      但**不能回到上一版浮层按钮的 40px** —— 那会让一排按钮在 16:9 的窄画面里
 *      挤成一团，横向空间不够（4 个按钮 × 40px 已经占掉画面宽度的三成）。
 *   ② `padding-bottom: calc(8px + var(--safe-b))`：iPhone 底部横条会压住
 *      操作栏最后一排按钮；`--safe-b` 是全站统一的安全区变量。
 */
/**
 * ★移动端操作栏的规则块在下方「移动端播放器吸顶」块之后★（2026-10-28）
 *   断点块顺序有讲究：吸顶探针按 `@media (max-width: 767px)` 的首次出现提取整块，
 *   所以同断点下"主块（吸顶）"必须排在前面，"补充块（操作栏）"排在后面。
 */

/* ==========================================================================
 * ★移动端播放器吸顶（< 768px）★（2026-10-26）
 *
 *   需求：窄屏向下翻简介 / 互动 / 评论时，播放器一直挂在页面顶部、播放不中断。
 *
 *   ★为什么 sticky 挂在 section 上，而不是挂在 .player 自己身上★
 *     `position: sticky` 可移动的范围 = **父元素的盒子**。播放器外面那层
 *     `<section class="module">` 高度刚好等于播放器，等于"没有可吸附的空间"，
 *     所以老的 `.player--sticky` 其实一直是个空转声明 —— 谁也没发现，
 *     因为它不报错、只是"看起来没生效"。把 sticky 挂到 section 上，
 *     吸附范围就变成整个 `.modules`，播放器自然跟着整页滚。
 *
 *   ★为什么不把播放器挪到 <body> 下用 position: fixed★
 *     挪 DOM 会让 <video> 换父节点，部分 WebView（尤其 iOS）会因此重新加载或
 *     暂停 —— 那正是需求明令禁止的"播放中断"。sticky 一个节点都不动。
 *
 *   ★顶部偏移为什么是变量★：顶栏 `.topbar` 自己也是 sticky，且带着
 *     `env(safe-area-inset-top)`，高度随机型（刘海 / 灵动岛 / 无刘海）变化。
 *     写死一个数必然在某台机上错位，所以由 `player-dock.js` 实测后写进
 *     `--ml-dock-top`（播放器吸在顶栏**下面**，返回按钮始终可点）。
 *
 *   ★类名由 JS 打，CSS 不直接用 `[data-module-type]`★：
 *     准入闸未通过时同一个模块渲染的是 `.player-gate` 占位卡（里面没有 video），
 *     给一张"先去报名"的卡片吸顶是错的；只有真的播放器才由 JS 加上
 *     `.module--player-dock`。
 * ======================================================================== */
@media (max-width: 767px) {
  .page--room .module--player-dock {
    position: sticky;
    /* 兜底 0px：JS 还没量到顶栏高度时的第一帧，宁可贴顶也不跳变 */
    top: var(--ml-dock-top, 0px);
    /**
     * 25 = 高于普通模块与页面内容（0），低于顶栏(30) / 底部行动条(40) /
     *      报名弹层(60) / 遮罩(90) / 灯箱(100) / toast(120)。
     *      ★吸顶时绝不遮挡弹窗与提示★就靠这个数。
     *      ★给 z-index 会生成层叠上下文，这是故意的★：它同时把内部的
     *      `.player--pseudo-fs`(9999) 约束在本层，全屏时才不会连 toast 一起盖掉。
     */
    z-index: 25;
    /* 吸顶后下方有内容滚过，需要一条边界线，否则黑色画面与白卡片会糊在一起。
       常态（未吸顶）也保留：播放器本来就是页面第一块，下沿有阴影更自然。 */
    box-shadow: 0 6px 16px rgba(16, 24, 40, 0.18);
  }

  /**
   * 全屏期间：不再吸顶（画面由 :fullscreen / .player--pseudo-fs 接管），
   * 但层级要抬到弹层之上 —— 否则顶栏(30)会横在"全屏"画面上方留一条白边。
   * ★仍然低于灯箱(100)与 toast(120)★：全屏时"网络异常"这类提示还得看得见。
   * ★高度由 JS 锁住★（播放器变 fixed 后会脱离文档流，不锁就塌成 0，
   *   退出全屏时下方内容整体往上跳一下 —— 也就是"退出后没恢复原状"）。
   */
  .page--room .module--player-dock.module--player-fs {
    position: relative;
    top: auto;
    z-index: 95;
  }
}

/**
 * ★移动端操作栏（2026-10-28）★
 *   ① 命中区放大到 30px：手指点按比鼠标粗，28px 在手机上偏小；
 *      但**不能回到上一版浮层按钮的 40px** —— 那会让一排按钮在 16:9 的窄画面里
 *      挤成一团，横向空间不够（4 个按钮 × 40px 已经占掉画面宽度的三成）。
 *   ② `padding-bottom: calc(8px + var(--safe-b))`：iPhone 底部横条会压住
 *      操作栏最后一排按钮；`--safe-b` 是全站统一的安全区变量。
 *
 *   ★这个 @media 块必须排在「移动端播放器吸顶」块之后★（2026-10-28）：
 *   吸顶探针（smoke-player-dock.mjs）按 `@media (max-width: 767px)` 的**首次出现**
 *   提取整块内容做断言 —— 本块排在前面会让探针提取到它（里面没有吸顶规则），
 *   断言就会误报"缺少吸顶规则"。同类坑：同一断点的多个块要按"主块在前"排。
 */
@media (max-width: 767px) {
  .player__bar { padding-bottom: calc(8px + var(--safe-b)); }
  .player__sound,
  .player__fullscreen,
  .player__pip,
  .player__share { width: 30px; height: 30px; font-size: 14px; }
}

/* -------------------------------- 直播状态 ------------------------------- */

/**
 * ★直播状态栏（2026-10-28 收紧垂直间距）★
 *
 *   原来 `padding: 14px var(--gap)` → 状态栏自身高 74px（实测），
 *   再加上它与上下模块各自的缝隙，播放页头部一屏里能塞下的内容很少。
 *   运营反馈"大片留白、信息密度太松"——问题不在留白本身，
 *   而在**状态栏自己占的那一截**。
 *
 *   收紧口径：
 *     · 上下 padding 14px → **10px**（省 8px）；
 *     · `status__meta` 的 `margin-top: 2px` → **1px**（标题与副标题贴紧）；
 *     · 标题 15px → **14px**、副标题 12px → **11.5px**（信息层级不变，字号略降）。
 *
 *   ★横向 padding 不动★（`var(--gap)` = 16px）：
 *   横向留白是"内容不贴边"的安全区，收紧会让文字顶到屏幕边缘。
 *
 *   ★`border-bottom` 保留★：它是状态栏与下方内容的分界；
 *   去掉的话白底白底连成一片，状态栏就"消失"了（那不是紧凑，是没有层次）。
 */
.status {
  display: flex; align-items: center; gap: 12px; padding: 10px var(--gap);
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.status__live { flex: none; display: flex; align-items: center; gap: 5px; color: var(--live); font-weight: 650; font-size: 13px; }
.status__main { flex: 1; min-width: 0; }
.status__title { font-size: 14px; font-weight: 600; line-height: 1.35; }
.status__meta { margin-top: 1px; font-size: 12px; line-height: 1.35; color: var(--text-3); }
.status__count { font-variant-numeric: tabular-nums; }

/**
 * ★播放器区内部不留缝★
 *   由页面宿主（room.js 的 `tightenPlayerArea`）在渲染后直接改内联 margin ——
 *   这些 margin 来自**装修数据**（内联样式），普通 CSS 选择器盖不住，
 *   而 `!important` 会连运营自己调的 margin 一起压掉。
 *   详见 room.js 的 `tightenPlayerArea` 注释。
 */

/* ---------------------------------- 聊天 --------------------------------
 * 参照微信聊天界面：
 *   · 别人的消息靠左（头像 + 昵称 + 浅灰气泡），自己的消息靠右（绿色气泡、不显示昵称）
 *   · 时间只在"需要"时出现：首条、间隔 ≥5 分钟、或跨天；当天只写时间，跨天写日期+时间
 *   · 表情面板贴在输入框上方，不遮挡最后几条消息（面板是浮层，列表高度不变）
 * 气泡颜色：自己的用品牌色（白字），别人的用浅灰底（深字）—— 对比度都在 4.5:1 以上。
 * ---------------------------------------------------------------------- */

.chat { position: relative; display: flex; flex-direction: column; height: 420px; background: var(--surface); }
.chat--full { height: 60vh; }
.chat__head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 12px var(--gap); border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600;
}
.chat__head-count { font-weight: 400; font-size: 12px; color: var(--text-3); }
/* 标题可压缩：窄屏下让"互动聊天"自己省略，而不是把下面那组挤到第二行 */
.chat__head-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ★发言设置组：身份选择器 + 匿名发言★
   两者是同一件事的两个面（"我用什么名字说话"），所以并排成一组、共用头部的 8px 间距档，
   不额外发明新间距；整组靠 margin-right:auto 顶到左侧，在线人数留在最右。 */
.chat__head-ids {
  display: inline-flex; align-items: center; gap: 8px; min-width: 0;
  margin-right: auto; flex-wrap: wrap; row-gap: 6px;
}
.chat__head-anon { display: inline-flex; min-width: 0; }
.chat__head-anon[hidden] { display: none; }

/* 发言身份切换入口：紧跟在标题右侧，弱化处理（不是主操作） */
.chat__identity-btn {
  display: inline-flex; align-items: center; gap: 4px; max-width: 46%;
  padding: 3px 8px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--text-2);
  font-size: 12px; font-weight: 400; cursor: pointer;
}
.chat__identity-btn[hidden] { display: none; }
.chat__identity-label { color: var(--text-3); }
.chat__identity-name {
  max-width: 8em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--text); font-weight: 600;
}
.chat__identity-caret { color: var(--text-3); font-size: 12px; }

/* 身份浮层：贴在标题栏下方，选项两行（口径 + 值） */
.chat__identity-panel {
  position: absolute; z-index: 20; top: 44px; left: var(--gap);
  min-width: 200px; padding: 6px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  display: flex; flex-direction: column; gap: 2px;
}
.chat__identity-panel[hidden] { display: none; }
.chat__identity-title { padding: 4px 8px 6px; font-size: 12px; color: var(--text-3); }
.chat__identity-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 7px 9px; border: 0; border-radius: 7px; background: transparent;
  color: var(--text); font-size: 13px; text-align: left; cursor: pointer;
}
.chat__identity-opt.is-on { background: var(--brand-weak); color: var(--brand); font-weight: 600; }
.chat__identity-opt-value { color: var(--text-3); font-size: 12px; }
.chat__identity-opt.is-on .chat__identity-opt-value { color: var(--brand); }

.chat__notice {
  margin: 10px var(--gap) 0; padding: 9px 12px; border-radius: 8px;
  background: rgba(191,135,0,.1); border: 1px solid rgba(191,135,0,.22);
  font-size: 13px; color: #7a5600; display: flex; gap: 8px; align-items: flex-start;
}
.chat__notice-label { flex: none; font-weight: 700; }
.chat__list {
  flex: 1; overflow-y: auto; padding: 12px var(--gap) 8px;
  display: flex; flex-direction: column; gap: 8px; -webkit-overflow-scrolling: touch;
}

/* 时间分隔条：居中、低对比、不占行 */
.chat__time {
  align-self: center; margin: 4px 0 2px; padding: 2px 8px; border-radius: 999px;
  font-size: 12px; color: var(--text-3); background: transparent; white-space: nowrap;
}

.chat__msg { display: flex; gap: 8px; align-items: flex-start; }
/* 自己的消息整体反向排列：头像在右、气泡在左 */
.chat__msg--mine { flex-direction: row-reverse; }
.chat__avatar {
  width: 32px; height: 32px; border-radius: 8px; flex: none; background: var(--brand-weak);
  color: var(--brand); display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
}
.chat__msg--mine .chat__avatar { background: var(--brand); color: #fff; }
.chat__bubble { display: flex; flex-direction: column; gap: 4px; min-width: 0; max-width: 78%; }
.chat__msg--mine .chat__bubble { align-items: flex-end; }
.chat__who { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 6px; padding: 0 2px; }
.chat__tag { padding: 0 6px; border-radius: 4px; background: var(--brand-weak); color: var(--brand); font-size: 12px; font-weight: 600; }

/* 气泡本体：别人浅灰、自己品牌色；尖角在靠近头像的那一侧 */
.chat__text {
  position: relative; padding: 8px 11px; border-radius: 10px; border-top-left-radius: 3px;
  background: var(--bg); color: var(--text);
  font-size: 14px; line-height: 1.55; word-break: break-word; white-space: pre-wrap;
}
.chat__msg--mine .chat__text { background: var(--brand); color: #fff; border-top-left-radius: 10px; border-top-right-radius: 3px; }
.chat__msg--mine .chat__del { color: rgba(255, 255, 255, .85); }

/* ★内容审核未通过★：只有发送者看得到（服务端不下发不扇出），
   用弱化样式 + 明确文案，避免发送者误以为"已发送成功"。 */
.chat__msg--moderated { opacity: .75; }
.chat__msg--moderated .chat__text,
.chat__text--muted {
  background: var(--bg); color: var(--text-3); font-style: italic;
  border-top-left-radius: 10px; border-top-right-radius: 3px;
}
.chat__msg--mine .chat__text--muted { background: rgba(128, 128, 128, .18); color: var(--text-3); }

/* 图片消息（contentType=image）：
   服务端已把地址规范化成安全 URL（协议白名单 + 字符集约束），
   前端用属性赋值渲染，不拼 HTML —— 这里只负责尺寸与圆角。 */
.chat__image-wrap {
  position: relative; padding: 6px; border-radius: 10px; border-top-left-radius: 3px;
  background: var(--bg); display: inline-block; max-width: 100%;
}
.chat__image {
  display: block; max-width: 100%; max-height: 240px; border-radius: 6px; object-fit: contain;
}

/* 系统提示：居中一句话，不做成"某个人的气泡" */
.chat__msg--system { justify-content: center; }
.chat__msg--system .chat__text {
  padding: 3px 10px; border-radius: 999px; background: rgba(27, 31, 36, .05);
  color: var(--text-3); font-size: 12px; text-align: center;
}
.chat__msg--deleted .chat__text { color: var(--text-3); font-style: italic; }

/* 管理员加粗 / 标红 / 下划线：★只认白名单标记，不注入 HTML★（防 XSS） */
.chat__text--bold { font-weight: 700; }
.chat__text--red { color: var(--live); }
.chat__text--underline { text-decoration: underline; text-underline-offset: 2px; }
/* 自己发的气泡是品牌色底，红字会看不清 → 换成浅色系仍能读出"标红" */
.chat__msg--mine .chat__text--red { color: #ffe1e1; }
.chat__msg--mine .chat__text--underline { text-decoration-color: rgba(255,255,255,.75); }

/* 引用块：管理员引用某条发言，嵌在被引用的那条下方 */
.chat__quote {
  margin-top: 4px; padding: 5px 8px; border-left: 3px solid var(--brand);
  border-radius: 6px; background: var(--brand-weak);
  font-size: 12.5px; color: var(--text-2); max-width: 100%;
}
.chat__quote-who { font-weight: 600; color: var(--brand); margin-right: 6px; }
.chat__quote-text { color: var(--text-2); word-break: break-word; }

/* 置顶/ 已回答标记 */
.chat__mark {
  flex: none; padding: 0 5px; border-radius: 4px; font-size: 12px;
  font-weight: 600; line-height: 16px;
}
.chat__mark--pin { background: var(--brand-weak); color: var(--brand); }
.chat__mark--answered { background: rgba(31, 138, 90, .12); color: #1f8a5a; }
.chat__msg--mine .chat__mark { background: rgba(255,255,255,.22); color: #fff; }

.chat__del {
  margin-left: 8px; border: 0; background: transparent; color: var(--live);
  font-size: 12px; cursor: pointer; padding: 0 2px; vertical-align: baseline;
}

/* 输入区：表情按钮 + 输入框 + 发送 */
.chat__composer-wrap { position: relative; }
.chat__composer {
  display: flex; align-items: flex-end; gap: 8px;
  padding: 10px var(--gap); border-top: 1px solid var(--line); background: var(--surface);
}
.chat__emoji-btn {
  flex: none; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); font-size: 18px; line-height: 1; cursor: pointer; padding: 0;
}
.chat__emoji-btn.is-open { background: var(--brand-weak); border-color: transparent; }
.chat__emoji-btn:disabled { opacity: .5; cursor: not-allowed; }
.chat__emoji {
  position: absolute; left: var(--gap); right: var(--gap); bottom: calc(100% + 6px); z-index: 5;
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh-2);
  max-height: 176px; overflow-y: auto;
}
.chat__emoji[hidden] { display: none; }
.chat__emoji-item {
  border: 0; background: transparent; cursor: pointer; padding: 4px 0; border-radius: 8px;
  font-size: 19px; line-height: 1.2;
}
.chat__emoji-item:active { background: var(--brand-weak); }
.chat__input {
  flex: 1; min-width: 0; max-height: 96px; resize: none; overflow-y: auto;
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px;
  font: inherit; font-size: 14px; line-height: 1.5; background: var(--surface); color: var(--text);
}
.chat__input::placeholder { color: var(--text-3); }
.chat__input:focus { outline: none; box-shadow: var(--ring); outline-offset: 0; border-color: var(--brand); }
.chat__input:disabled { background: var(--bg); color: var(--text-3); cursor: not-allowed; }
.chat__send {
  flex: none; height: 36px; padding: 0 16px; border: 0; border-radius: 8px;
  background: var(--brand); color: #fff; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.chat__send:disabled { background: var(--bg); color: var(--text-3); cursor: not-allowed; }
.chat__locked {
  display: flex; align-items: center; gap: 10px; padding: 10px var(--gap);
  border-top: 1px solid var(--line); font-size: 13px; color: var(--text-2);
}
.chat__locked button { flex: none; border: 0; background: var(--brand); color: #fff; padding: 7px 14px; border-radius: 8px; font-size: 13px; cursor: pointer; }
@media (hover: hover) and (pointer: fine) {
  .chat__emoji-item:hover { background: var(--brand-weak); }
}

/* ------------------------------- 富文本 / 正文 ---------------------------- */

.richtext { padding: 14px var(--gap); font-size: 15px; line-height: 1.75; color: var(--text); overflow-wrap: anywhere; }
.richtext img { border-radius: 8px; margin: 10px 0; }
.richtext p { margin: 0 0 10px; }
.richtext h1, .richtext h2, .richtext h3 { font-size: 16px; margin: 16px 0 8px; }
.richtext ul, .richtext ol { padding-left: 22px; margin: 8px 0; }
.richtext blockquote { margin: 10px 0; padding: 8px 12px; border-left: 3px solid var(--brand); background: var(--brand-weak); color: var(--text-2); }

.clamp { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-toggle {
  display: block; width: 100%; border: 0; background: transparent; color: var(--brand);
  font-size: 13px; padding: 6px 0 2px; cursor: pointer; text-align: center;
}

/* --------------------------------- 图片 / 视频 ---------------------------- */

.figure { margin: 0; padding: 0 var(--gap) ; }
.figure__img { width: 100%; border-radius: var(--radius); cursor: zoom-in; background: var(--bg); }
.figure__video { width: 100%; border-radius: var(--radius); background: #000; display: block; }
.figure__caption { padding: 8px 2px 0; font-size: 12.5px; color: var(--text-3); }

.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.94);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 4px; }

/* --------------------------------- 通用组件 ------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: var(--r-ctl); padding: 11px 18px; font-size: 14.5px; font-weight: 600;
  background: var(--brand); color: #fff; cursor: pointer; width: 100%;
  /* 主按钮给一点实体感：浅灰底上一块纯色会显得"贴"在页面上。
     两行同名声明是刻意的——第二行用品牌色做投影更好看，但 color-mix 不支持时
     整条声明会失效，因此前面留一条中性色兜底。 */
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.16);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--brand) 42%, transparent);
  transition: transform .12s var(--ease), opacity .12s var(--ease);
}
.btn:active:not(:disabled) { transform: scale(.985); }
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn--ghost { background: transparent; color: var(--brand); border: 1px solid var(--brand); box-shadow: none; }
.btn--sm { padding: 8px 14px; font-size: 13px; width: auto; }
/* 直播中的「进入直播」按钮：与 .badge--live 同一套红色语义 */
.btn--live { background: var(--live); color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.field { padding: 0 var(--gap) 14px; }
.field__label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.field__label i { color: var(--live); font-style: normal; margin-left: 2px; }
.field__input {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); font: inherit; font-size: 15px;
}
.field__input:focus { outline: none; box-shadow: var(--ring); border-color: var(--brand); }
.field__hint { margin-top: 5px; font-size: 12px; color: var(--text-3); }
.field__error { margin-top: 5px; font-size: 12.5px; color: var(--live); }
/* 互斥勾选项（客户类型/单位类型）：外观是勾选，语义是单选 */
.choice-group { display: flex; flex-wrap: wrap; gap: 10px; }
.choice {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); font-size: 14px; color: var(--text);
  transition: border-color .16s var(--ease, ease), background .16s var(--ease, ease);
  min-height: 40px;
}
.choice__input { width: 16px; height: 16px; accent-color: var(--brand); margin: 0; }
.choice:has(.choice__input:checked) {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 10%, var(--surface));
  color: var(--brand-deep, var(--brand));
  font-weight: 600;
}
@media (hover: hover) and (pointer: fine) {
  .choice:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
}
.choice__input:focus-visible { outline: none; box-shadow: var(--ring); }
/* 必填未填：把输入框本身也标红，光有右下角红字在长表单里容易被忽略 */
.field--invalid .field__input { border-color: var(--live); background: color-mix(in srgb, var(--live) 4%, var(--surface)); }
.field--invalid .field__input:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--live) 22%, transparent); }

.form-actions { padding: 4px var(--gap) 20px; display: flex; flex-direction: column; gap: 10px; }

/* 准入拦截 */
.gate { padding: 40px 24px; text-align: center; }
.gate__icon { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: var(--brand-weak); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 24px; }
.gate__title { font-size: 17px; font-weight: 650; margin: 0 0 8px; }
.gate__desc { font-size: 13.5px; color: var(--text-2); margin: 0 0 22px; line-height: 1.7; }

/* --- PC 微信扫码登录（微信外的桌面浏览器） ---
 * 左右分栏：左侧回答"为什么要登录"（品牌 + 价值点），右侧只负责"怎么登录"。
 * 二维码是右卡的唯一视觉焦点：尺寸固定 196px（微信扫得动的最小舒服值），
 * 状态遮罩直接盖在码上而不是另起一块 —— 视线一直停在码上，提示就得在那儿。
 * 窄屏（≤1023）收起品牌区、卡片居中：手机上走到这一步本来就是兜底路径。 */
.qrlogin__page { max-width: none; padding: 0; }
.qrlogin { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); min-height: 100vh; background: var(--bg); }
.qrlogin__brand-panel { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 56px 48px; color: #fff; background: linear-gradient(160deg, #0b1b33 0%, #123a63 55%, #0d2745 100%); }
.qrlogin__logo { font-size: 18px; font-weight: 700; letter-spacing: 0.04em; opacity: 0.95; }
.qrlogin__slogan { margin: 0; max-width: 420px; font-size: 30px; font-weight: 650; line-height: 1.35; }
.qrlogin__points { display: flex; flex-direction: column; gap: 10px; max-width: 420px; margin: 4px 0 0; padding: 0; list-style: none; }
.qrlogin__point { position: relative; padding-left: 22px; font-size: 14px; line-height: 1.7; color: rgba(255, 255, 255, 0.82); }
.qrlogin__point::before { content: '✓'; position: absolute; left: 0; top: 0; color: #5ad08a; font-weight: 700; }
.qrlogin__copyright { margin-top: 12px; font-size: 12.5px; color: rgba(255, 255, 255, 0.5); }
.qrlogin__panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.qrlogin__card { width: 100%; max-width: 400px; padding: 26px 22px; text-align: center; background: var(--surface); border-radius: 16px; box-shadow: var(--sh-2); }
.qrlogin__title { margin: 0 0 6px; font-size: 20px; font-weight: 650; color: var(--text); }
.qrlogin__sub { margin: 0 0 10px; font-size: 13px; color: var(--text-2); line-height: 1.6; }
.qrlogin__source { display: inline-block; margin: 0 0 16px; padding: 4px 11px; border-radius: 999px; background: var(--bg); font-size: 12px; color: var(--text-3); }
.qrlogin__frame { position: relative; width: 196px; height: 196px; margin: 0 auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.qrlogin__img { display: block; width: 100%; height: 100%; }
.qrlogin__mask { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px; background: rgba(255, 255, 255, 0.95); }
.qrlogin__mask[hidden] { display: none; }
.qrlogin__mask-icon { font-size: 26px; line-height: 1; }
.qrlogin__mask-text { font-size: 12.5px; color: var(--text-2); line-height: 1.5; }
.qrlogin__mask.is-busy .qrlogin__mask-icon { animation: qrlogin-pulse 1.2s ease-in-out infinite; }
.qrlogin__refresh { margin-top: 6px; }
.qrlogin__status { margin-top: 12px; min-height: 20px; font-size: 13px; color: var(--text-2); }
.qrlogin__alt { margin-top: 14px; font-size: 12px; color: var(--text-3); line-height: 1.6; }
@keyframes qrlogin-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
/**
 * ★原 `860px` 已归并到 `1023`（2026-11-02 · 主理人裁决）★
 *   860 既不在规范 §2.4 的归并表里，也不在断点白名单里 —— 它只是当年按"双栏开始
 *   挤不下"随手定的一个值。代价与收益算下来：**少一个断点**比给二维码登录页
 *   保留一个 1px 精调的桌面专属断点更值。
 *   ★取舍后果要写清楚★：1023 < 宽 ≤ 1024 的窗口（iPad 横屏、把浏览器窗口拖到一半）
 *   现在也会收成单列，"分栏"只在 ≥1024 才出现。这是**刻意的**，不是回归。
 */
@media (max-width: 1023px) {
  .qrlogin { grid-template-columns: 1fr; }
  .qrlogin__brand-panel { display: none; }
  .qrlogin__panel { min-height: 100vh; padding: 24px 16px; }
}
@media (prefers-reduced-motion: reduce) { .qrlogin__mask.is-busy .qrlogin__mask-icon { animation: none; } }

/* 空模块占位 —— 只在装修画布/编辑态出现（观众端空模块会被自动隐藏） */
.module-empty {
  margin: 0 var(--gap) var(--gap);
  padding: 20px 16px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}
.module-empty__title { font-size: 13px; font-weight: 600; color: var(--text-2); }
.module-empty__hint { margin-top: 5px; font-size: 12px; line-height: 1.6; color: var(--text-3); }
.module-empty--slot { margin: 8px; padding: 14px 12px; background: transparent; }

/* 骨架屏 */
.skeleton { background: var(--surface); border-radius: var(--radius); margin: 0 var(--gap) var(--gap); padding: 14px; }.sk-line { height: 12px; border-radius: 6px; background: linear-gradient(90deg, #e8ecf1 25%, #f3f5f8 37%, #e8ecf1 63%); background-size: 400% 100%; animation: sk 1.3s ease-in-out infinite; }
.sk-line + .sk-line { margin-top: 9px; }
.sk-line--w40 { width: 40%; } .sk-line--w70 { width: 70%; } .sk-line--w90 { width: 90%; }
.sk-block { height: 150px; border-radius: 10px; margin-bottom: 12px; background: linear-gradient(90deg, #e8ecf1 25%, #f3f5f8 37%, #e8ecf1 63%); background-size: 400% 100%; animation: sk 1.3s ease-in-out infinite; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* 浮层 / 提示 */
.overlay {
  position: fixed; inset: 0; z-index: 90; background: rgba(20,24,28,.42);
  display: flex; align-items: flex-end; justify-content: center;
}
.sheet {
  width: 100%; max-width: 720px; background: var(--surface);
  border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: var(--sh-3);
  padding: 20px var(--gap) calc(20px + var(--safe-b));
  animation: rise .18s var(--ease);
}
@keyframes rise { from { transform: translateY(14px); opacity: .6; } to { transform: none; opacity: 1; } }
.sheet__title { font-size: 16px; font-weight: 650; margin: 0 0 10px; }
.sheet__text { font-size: 14px; color: var(--text-2); margin: 0 0 20px; line-height: 1.7; }
.sheet__actions { display: flex; gap: 10px; }
.sheet__actions .btn { flex: 1; }

.toast {
  position: fixed; left: 50%; bottom: calc(64px + var(--safe-b)); transform: translateX(-50%);
  z-index: 120; max-width: 82vw; padding: 10px 18px; border-radius: 999px;
  background: rgba(27,31,36,.9); color: #fff; font-size: 13.5px; text-align: center;
  animation: fade .16s ease-out;
}
@keyframes fade { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* 底部操作条 */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; gap: 12px; padding: 10px var(--gap) calc(10px + var(--safe-b));
  background: var(--surface); border-top: 1px solid var(--line);
}
.actionbar__info { flex: 1; min-width: 0; }
.actionbar__name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.actionbar__price { font-size: 12px; color: var(--text-3); }

/* 调试占位：★仅用于「模块渲染失败」的排障兜底（renderer.js）★
   原先还兼作播放页底部的「页面已锁定」运营提示，该提示已按产品要求移除，
   不要把这个类名挪作他用 —— 它是黄色虚线告警语义。 */
.module-debug {
  margin: 0 var(--gap) var(--gap); padding: 12px; border: 1px dashed var(--warn);
  border-radius: 10px; background: rgba(191,135,0,.07); font-size: 12.5px; color: #7a5600;
}
.module-debug code { background: rgba(0,0,0,.06); padding: 1px 5px; border-radius: 4px; }

/* ---------------------------------------------------------------------------
 * 「匿名发言」开关（播放页底部）
 * 原位替换掉已移除的「页面已锁定」提示，所以沿用同一条底部分隔线的位置关系，
 * 但**降一档视觉权重**：那是给观众的日常开关，不该像告警。
 * ------------------------------------------------------------------------ */
.anon {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 0 var(--gap) var(--gap); padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  font-size: 13px; color: var(--text-2);
}
.anon[hidden] { display: none; }
.anon__main { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.anon__pick { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; flex: none; }
.anon__input { width: 16px; height: 16px; margin: 0; accent-color: var(--brand); cursor: pointer; flex: none; }
.anon__label { color: var(--text); font-weight: 600; }
.anon__hint { color: var(--text-3); font-size: 12px; }
.anon__now {
  flex: none; max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--text-3); font-size: 12px;
}
/* 开启态：明确告诉观众"现在生效的是匿名" */
.anon--on { border-color: var(--brand); background: var(--brand-weak); }
.anon--on .anon__now { color: var(--brand); font-weight: 600; }
.anon--disabled { opacity: .55; }
.anon--disabled .anon__input, .anon--disabled .anon__pick { cursor: not-allowed; }
/* 焦点环统一走 --ring，别用浏览器默认框（与门户其它控件不一致） */
.anon__input:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 4px; }

/* 开关现在挂在聊天模块标题栏里的「发言设置」组（2026-10-26）。
   ★压成与身份按钮同一档的胶囊★：只留复选框 + 标签，提示与"当前显示为"交给
   身份按钮那一行表达（它本来就在显示「以 X」），同一信息不摆两遍。
   间距沿用头部的 gap，不新增间距档位；解释性文案收进 title（hover 可见）。 */
.chat__head .anon {
  margin: 0; padding: 3px 8px; gap: 6px; border-radius: 999px;
  font-size: 12px; font-weight: 400; color: var(--text-2);
}
.chat__head .anon__main { gap: 6px; flex-wrap: nowrap; min-width: 0; }
.chat__head .anon__label { font-weight: 400; }
.chat__head .anon__hint, .chat__head .anon__now { display: none; }
.chat__head .anon--on { border-color: var(--brand); background: var(--brand-weak); }
.chat__head .anon--on .anon__label { color: var(--brand); font-weight: 600; }

/* 身份按钮的匿名态：用品牌色一眼能看出"当前显示的不是真名" */
.chat__identity-btn.is-anon { border-color: var(--brand); background: var(--brand-weak); color: var(--brand); }
.chat__identity-btn.is-anon .chat__identity-name { color: var(--brand); }
/* 匿名时的身份浮层说明（不列候选，只解释为什么不能选） */
.chat__identity-anon { max-width: 240px; padding: 6px 8px 8px; font-size: 12px; line-height: 1.6; color: var(--text-3); }

/* ============================================================================
 * P2 模块样式（24 类）
 * 说明：P1 的 10 类样式在上方；以下按模块类型库的六个分组排列。
 * 所有间距统一引用 --gap（渲染引擎通过 style.paddingX / fullBleed 覆盖该变量）。
 * ========================================================================== */

/* ------------------------------ 共性小件 ------------------------------ */

/* 演示态徽标：交互类模块在 P2 尚无服务端端点，必须显式标注，绝不假装已连后端 */
.demo-tag {
  padding: 1px 7px; border-radius: 4px; font-size: 12px; font-weight: 600;
  background: rgba(191,135,0,.12); color: #7a5600; margin-left: 8px;
}

.btn--block { width: 100%; }
.btn--disabled { background: var(--bg); color: var(--text-3); cursor: not-allowed; }

/* 通用文本输入：form_collect 与 question_wall 共用的基类，模块专属类只做覆盖 */
.input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); font: inherit; font-size: 15px; color: var(--text);
}
.input:focus { outline: none; box-shadow: var(--ring); border-color: var(--brand); }
.input::placeholder { color: var(--text-3); }

/* ============================ 一、展示类 display ============================ */

/* --- banner 轮播 --- */
.banner {
  position: relative; margin: 0 var(--gap) var(--gap); border-radius: var(--radius);
  overflow: hidden; background: var(--bg);
}
.banner__track { display: flex; height: 100%; transition: transform .32s ease; }
.banner__slide { flex: 0 0 100%; position: relative; }
.banner__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner__caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 12px;
  background: linear-gradient(to top, rgba(0,0,0,.66), transparent);
  color: #fff; font-size: 14px; font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.banner__dots {
  position: absolute; left: 0; right: 0; bottom: 8px; display: flex;
  justify-content: center; gap: 5px;
}
.banner__dot {
  width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5);
  border: 0; padding: 0; cursor: pointer; transition: width .2s ease, background .2s ease;
}
.banner__dot.is-active { width: 16px; border-radius: 999px; background: #fff; }

/* --- grid_card 九宫格 --- */
.gridcard {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px; padding: 4px var(--gap) var(--gap);
}
.gridcard__cell {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 4px; border-radius: 10px; border: 0; background: transparent;
  cursor: pointer; text-align: center; min-width: 0; width: 100%;
}
.gridcard__cell--card { background: var(--surface); box-shadow: var(--sh-1); }
.gridcard__cell--border { background: var(--surface); border: 1px solid var(--line); }
.gridcard__cell--flat { background: transparent; }
.gridcard__icon {
  width: 42px; height: 42px; border-radius: 12px; object-fit: cover; flex: none;
  background: var(--brand-weak); color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-size: 19px;
}
img.gridcard__icon { background: #eef1f5; }
.gridcard__icon--text { font-weight: 600; }
.gridcard__title {
  font-size: 12.5px; font-weight: 500; line-height: 1.35; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; overflow-wrap: anywhere;
}
.gridcard__sub {
  font-size: 12px; color: var(--text-3);
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}

/* --- 九宫格：内容类型与背景图 ------------------------------------------------
 * 三种类型共用同一个格子骨架，差异只在"多出什么"：
 *   text  → 正文（最多 3 行）
 *   video → 右上角播放角标
 *   link  → 无额外装饰
 * 有背景图时铺满整格 + 底部渐变遮罩：遮罩不是装饰，是为了让任何亮度的图上文字都可读。
 * 不可点击的格子（配置为空/非法）绝不显示 pointer，否则观众会一直点。
 * -------------------------------------------------------------------------- */
.gridcard__cell { position: relative; }
.gridcard__cell--off { cursor: default; }
.gridcard__cell--bg {
  overflow: hidden; min-height: 88px; padding: 10px;
  justify-content: flex-end; align-items: stretch; text-align: left;
}
.gridcard__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.gridcard__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, 0.66) 100%); }
.gridcard__cell--bg .gridcard__title,
.gridcard__cell--bg .gridcard__text,
.gridcard__cell--bg .gridcard__sub,
.gridcard__cell--bg .gridcard__fallback,
.gridcard__cell--bg .gridcard__play { position: relative; z-index: 1; }
.gridcard__cell--bg .gridcard__title { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45); }
.gridcard__cell--bg .gridcard__text,
.gridcard__cell--bg .gridcard__sub { color: rgba(255, 255, 255, 0.86); }
.gridcard__cell--bg .gridcard__fallback { color: rgba(255, 255, 255, 0.9); }
.gridcard__text {
  font-size: 12px; line-height: 1.45; color: var(--text-2);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; overflow-wrap: anywhere;
}
.gridcard__fallback { font-size: 12px; color: var(--text-3); }
.gridcard__play {
  position: absolute; top: 8px; right: 8px; z-index: 1;
  width: 22px; height: 22px; border-radius: 50%; background: rgba(0, 0, 0, 0.45);
  color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center;
}
.gridcard__icon--video { font-size: 14px; }

/* --- gallery 图集 --- */
.gallery {
  display: grid; gap: 4px; padding: 0 var(--gap) var(--gap);
}
.gallery__cell { position: relative; overflow: hidden; border-radius: 8px; background: #eef1f5; }
.gallery__cell--clickable { cursor: zoom-in; }
.gallery__img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }

/* --- long_image 长图（2026-10-28）---
 * ★核心就是两句★：`width:100%` + `height:auto`。
 *   高度不写死、也不写 aspect-ratio（那会由 JS 按需写到 style 上做加载前占位），
 *   浏览器加载完成后按**原图比例**定高 —— 不裁剪、不拉伸、不留白。
 * ★`background` 占位色★：图片加载出来之前那里是浅灰而不是空白，
 *   观众看得出"这里有一张图正在加载"，不会以为页面缺了一块。 */
.longimg { display: flex; flex-direction: column; padding: 0 var(--gap) var(--gap); }
.longimg__img {
  width: 100%; height: auto; display: block; cursor: zoom-in;
  border-radius: var(--radius); background: #eef1f5;
}
.longimg__caption { padding: 6px 2px 0; font-size: 12px; color: var(--text-3); }

/* --- multi_image 多图（2026-10-28）---
 * `auto` 模式（默认）：网格 + 每张图 `width:100%; height:auto`，
 *   同一行高度由该行比例最高的图决定 —— 没有一张图被裁。
 * `--fixed` 模式：单元格按固定比例 + object-fit:cover 裁切填满，同一行严格等高。 */
.multiimg { display: grid; padding: 0 var(--gap) var(--gap); }
.multiimg__cell { min-width: 0; }
.multiimg__img { width: 100%; height: auto; display: block; cursor: zoom-in; border-radius: 8px; background: #eef1f5; }
.multiimg--fixed .multiimg__cell { overflow: hidden; border-radius: 8px; background: #eef1f5; }
.multiimg--fixed .multiimg__img { aspect-ratio: 1 / 1; object-fit: cover; }
.multiimg__caption {
  margin-top: 4px; font-size: 12px; color: var(--text-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* --- ppt PPT 幻灯片（2026-10-28）---
 * 抽屉式播放器：舞台固定 16:9，图片按 fit 填充；箭头 / 圆点 / 页码为叠加层，
 * 颜色走 CSS 变量，自动适配深浅主题。交互状态（is-active / 禁用）均由 JS 切换 class。 */
.pptdeck { display: flex; flex-direction: column; gap: 8px; padding: 0 var(--gap) var(--gap); }
.pptdeck__stage {
  position: relative; width: 100%; background: #0b0e14; border-radius: 10px; overflow: hidden;
  outline: none;
}
.pptdeck__stage:focus-visible { box-shadow: 0 0 0 2px var(--brand); }
.pptdeck__slide {
  width: 100%; height: 100%; display: block; object-position: center;
  cursor: zoom-in; background: #0b0e14;
}
.pptdeck__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .82); color: #1a1d24; font-size: 20px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25); transition: background .12s ease;
}
.pptdeck__nav:hover { background: #fff; }
.pptdeck__prev { left: 10px; }
.pptdeck__next { right: 10px; }
.pptdeck__counter {
  position: absolute; right: 10px; bottom: 10px;
  padding: 2px 8px; border-radius: 999px; font-size: 12px;
  background: rgba(0, 0, 0, .55); color: #fff; pointer-events: none;
}
.pptdeck__dots { display: flex; gap: 6px; justify-content: center; padding: 2px 0; }
.pptdeck__dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%;
  background: var(--line); cursor: pointer; transition: background .12s ease, transform .12s ease;
}
.pptdeck__dot.is-active { background: var(--brand); transform: scale(1.25); }

/* ============================= 二、直播类 live ============================= */

/* --- session_entry 场次入口 --- */
.sentries { display: flex; flex-direction: column; gap: 12px; padding: 0 var(--gap) var(--gap); }
.sentry {
  display: block; width: 100%; text-align: left; border: 1px solid transparent;
  background: var(--surface); border-radius: var(--radius); overflow: hidden; cursor: pointer;
  box-shadow: var(--sh-1); padding: 0;
}
.sentry--live { border-color: rgba(229,72,77,.34); }
.sentry__top { display: flex; gap: 12px; padding: 12px; align-items: flex-start; }
.sentry__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.sentry__title {
  font-size: 15px; font-weight: 600; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sentry__meta { font-size: 12.5px; color: var(--text-2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sentry__venue { font-size: 12px; color: var(--text-3); }
.sentry__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 12px; border-top: 1px solid var(--line); background: var(--bg);
}
.sentry__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); flex: none; }
.sentry--live .sentry__dot { background: var(--live); animation: pulse 1.4s ease-in-out infinite; }

/* --- agenda_list 议程 --- */
.agenda { padding: 0 var(--gap) var(--gap); }
.agenda__date {
  padding: 14px 0 8px; font-size: 13px; font-weight: 650; color: var(--text-2);
  display: flex; align-items: center; gap: 8px;
}
.agenda__date::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.agenda__item { display: flex; gap: 12px; position: relative; padding-bottom: 14px; }
.agenda__item--clickable { cursor: pointer; }
.agenda__item--clickable .agenda__body:active { background: var(--bg); }
.agenda__item--highlight .agenda__title { color: var(--brand); }
.agenda__time {
  flex: none; width: 52px; padding-top: 2px; text-align: right;
  font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums;
}
.agenda__start { font-size: 13px; font-weight: 600; color: var(--text-2); }
.agenda__end { font-size: 12px; }
.agenda__line {
  flex: none; width: 14px; display: flex; flex-direction: column; align-items: center; position: relative;
}
.agenda__line::after {
  content: ''; position: absolute; top: 16px; bottom: -14px; width: 1.5px; background: var(--line);
}
.agenda__item:last-child .agenda__line::after { display: none; }
.agenda__dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--line);
  border: 2px solid var(--surface); box-shadow: 0 0 0 1.5px var(--line); margin-top: 5px;
}
.agenda__dot--live { background: var(--live); box-shadow: 0 0 0 1.5px var(--live); }
.agenda__body {
  flex: 1; min-width: 0; background: var(--surface); border-radius: 10px;
  padding: 11px 12px; box-shadow: var(--sh-1);
}
.agenda__title { font-size: 14px; font-weight: 600; line-height: 1.45; }
.agenda__sub { margin-top: 3px; font-size: 12.5px; color: var(--text-2); }
.agenda__meta { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--text-3); }
.agenda__status {
  display: inline-block; margin-top: 7px; font-size: 12px; font-weight: 600;
  padding: 1px 8px; border-radius: 999px; background: var(--brand-weak); color: var(--brand);
}

/* --- speaker_list 嘉宾 --- */
.speaker__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px; padding: 0 var(--gap) var(--gap);
}
.speaker {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  background: var(--surface); border-radius: var(--radius); padding: 14px 8px;
  box-shadow: var(--sh-1); text-align: center; min-width: 0;
}
.speaker__avatar {
  width: 54px; height: 54px; border-radius: 50%; object-fit: cover; flex: none; background: var(--bg);
}
.speaker__avatar--text {
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-weak); color: var(--brand); font-size: 20px; font-weight: 600;
}
.speaker__name { font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.speaker__title { font-size: 12px; color: var(--text-3); line-height: 1.4; }
.speaker__intro {
  font-size: 12px; color: var(--text-2); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* --- replay_list 回放 --- */
.replays { display: flex; flex-direction: column; gap: 12px; padding: 0 var(--gap) var(--gap); }
.replay {
  display: flex; gap: 12px; background: var(--surface); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; border: 0; padding: 0; text-align: left; width: 100%;
  box-shadow: var(--sh-1);
}
.replay__cover {
  position: relative; width: 132px; aspect-ratio: 16 / 9; flex: none;
  background: #dfe6ee; object-fit: cover;
}
.replay__cover--ph {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #dfe6ee, #c8d3e0); color: #fff; font-size: 20px;
}
.replay__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.5); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 12px; padding-left: 2px;
}
.replay__dur {
  position: absolute; right: 5px; bottom: 5px; padding: 1px 5px; border-radius: 4px;
  background: rgba(0,0,0,.62); color: #fff; font-size: 12px; font-variant-numeric: tabular-nums;
}
.replay__body { flex: 1; min-width: 0; padding: 10px 12px 10px 0; display: flex; flex-direction: column; gap: 5px; }
.replay__title {
  font-size: 14px; font-weight: 600; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.replay__meta { margin-top: auto; font-size: 12px; color: var(--text-3); display: flex; gap: 8px; flex-wrap: wrap; }

/* --- live_topic 直播专题 --- */
.topics { padding: 0 var(--gap) var(--gap); }
.topics--card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.topics__item { background: var(--surface); border-radius: var(--radius); padding: 13px 14px; box-shadow: var(--sh-1); }
.topics--list .topics__item + .topics__item { margin-top: 10px; }
.topics__no {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--brand);
  background: var(--brand-weak); border-radius: 4px; padding: 0 6px; margin-bottom: 6px;
}
.topics__title { font-size: 14px; font-weight: 600; line-height: 1.45; }
.topics__sub { margin-top: 5px; font-size: 12.5px; color: var(--text-2); line-height: 1.6; }
.topics__body { margin-top: 8px; font-size: 13.5px; color: var(--text-2); line-height: 1.7; }

/* =========================== 三、互动类 interact =========================== */

/* 互动类模块统一的面板外观 */
.qwall, .vote, .lottery, .rank, .signin {
  background: var(--surface); border-radius: var(--radius);
  margin: 0 var(--gap) var(--gap); padding: 14px 14px 16px;
  box-shadow: var(--sh-1);
}

/* --- question_wall 问答墙 --- */
.qwall__list { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.qwall__item { display: flex; gap: 10px; align-items: flex-start; }
.qwall__avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: none; background: var(--brand-weak);
  color: var(--brand); display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
}
.qwall__body { flex: 1; min-width: 0; }
.qwall__who { font-size: 12px; color: var(--text-3); }
.qwall__answered {
  margin-left: 8px; padding: 1px 7px; border-radius: 999px; font-size: 12px;
  background: rgba(31,136,74,.12); color: var(--ok);
}
.qwall__text { font-size: 14px; line-height: 1.6; word-break: break-word; white-space: pre-wrap; }
.qwall__up {
  flex: none; border: 1px solid var(--line); background: transparent; color: var(--text-2);
  border-radius: 8px; padding: 3px 9px; font-size: 12px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; line-height: 1.15;
}
.qwall__up.is-liked { border-color: var(--brand); color: var(--brand); background: var(--brand-weak); }
.qwall__form { display: flex; gap: 8px; margin-top: 14px; }
.qwall__input {
  flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); font: inherit; font-size: 14px;
}
.qwall__input:focus { outline: none; box-shadow: var(--ring); border-color: var(--brand); }
.qwall__empty { padding: 24px 0; text-align: center; color: var(--text-3); font-size: 13px; }

/* --- vote 投票 --- */
.vote__options { display: flex; flex-direction: column; gap: 8px; }
.vote__option {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px;
  border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--bg);
}
.vote__option.is-picked { border-color: var(--brand); background: var(--brand-weak); }
.vote__mark {
  width: 17px; height: 17px; flex: none; border-radius: 50%;
  border: 1.5px solid var(--text-3); position: relative;
}
.vote__option.is-picked .vote__mark { border-color: var(--brand); background: var(--brand); }
.vote__option.is-picked .vote__mark::after {
  content: ''; position: absolute; left: 4.5px; top: 1.5px; width: 4px; height: 8px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.vote__mark--multi { border-radius: 4px; }
.vote__label { font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.vote .btn { margin-top: 14px; }
.vote__results { margin-top: 14px; display: flex; flex-direction: column; gap: 9px; }
.vote__bar-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.vote__bar-label {
  flex: none; width: 88px; color: var(--text-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vote__bar { flex: 1; height: 8px; border-radius: 999px; background: var(--bg); overflow: hidden; }
.vote__bar i { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.vote__bar-num { flex: none; width: 34px; text-align: right; color: var(--text-3); font-variant-numeric: tabular-nums; }
.vote__hint { margin-top: 10px; font-size: 12.5px; color: var(--text-3); }
.vote__total { font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }

/* --- lottery 抽奖 --- */
.lottery__stage {
  padding: 26px 0; text-align: center; font-size: 19px; font-weight: 700;
  border-radius: 10px; background: var(--brand-weak); color: var(--brand);
  letter-spacing: 2px; overflow-wrap: anywhere;
}
.lottery__stage.is-rolling { animation: pulse .5s ease-in-out infinite; }
.lottery__meta { margin-top: 10px; text-align: center; font-size: 12.5px; color: var(--text-3); }
.lottery__meta span { display: block; }
.lottery__meta span:first-child:last-child { display: inline; }
.lottery__prizes { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.lottery__prize {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg);
}
.lottery__prize-name { font-size: 13.5px; overflow-wrap: anywhere; }
.lottery__prize-stock { flex: none; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.lottery__winners { margin-top: 16px; display: flex; flex-direction: column; gap: 7px; }
.lottery__winners-title { font-size: 13px; font-weight: 600; }
.lottery__winner {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 12.5px; color: var(--text-2);
}

/* --- like_rank 点赞榜 --- */
.rank__list { display: flex; flex-direction: column; gap: 10px; }
.rank__item { display: flex; align-items: center; gap: 10px; }
.rank__no {
  flex: none; width: 20px; text-align: center; font-size: 12.5px; font-weight: 700;
  color: var(--text-3); font-variant-numeric: tabular-nums;
}
.rank__no--top { color: var(--live); }
.rank__avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none; object-fit: cover;
  background: var(--brand-weak); color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600;
}
.rank__body { flex: 1; min-width: 0; }
.rank__name { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.rank__sub { font-size: 12px; color: var(--text-3); }
.rank__like {
  flex: none; border: 1px solid var(--line); background: transparent; color: var(--text-2);
  border-radius: 999px; padding: 4px 12px; font-size: 12.5px; cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.rank__like.is-liked { border-color: var(--live); color: var(--live); background: rgba(229,72,77,.08); }
.rank__empty { padding: 24px 0; text-align: center; color: var(--text-3); font-size: 13px; }

/* --- sign_in 签到 --- */
.signin { text-align: center; }
.signin__count { margin-top: 12px; font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.signin__time { margin-top: 10px; font-size: 12px; color: var(--text-3); }
.signin .btn--block.is-signed { background: var(--ok); }

/* =========================== 四、内容类 content =========================== */

/* --- article 图文列表 --- */
.articles { padding: 0 var(--gap) var(--gap); }
.articles--list { display: flex; flex-direction: column; gap: 12px; }
.articles--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.article__item {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--sh-1);
}
.article__item--list { display: flex; gap: 12px; }
.article__cover { width: 108px; aspect-ratio: 16/9; flex: none; object-fit: cover; background: #eef1f5; }
.article__item--grid .article__cover { width: 100%; aspect-ratio: 16/9; }
.article__body { flex: 1; min-width: 0; padding: 10px 12px; display: flex; flex-direction: column; gap: 5px; }
.article__title {
  font-size: 14.5px; font-weight: 600; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article__sub { font-size: 12px; color: var(--text-3); display: flex; gap: 8px; flex-wrap: wrap; }
.article__text { font-size: 13.5px; color: var(--text-2); }
.article__text .richtext { padding: 0; font-size: 13.5px; }

/* --- download 资料下载 --- */
.dl { display: flex; flex-direction: column; gap: 10px; padding: 0 var(--gap) var(--gap); }
.dl__item {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--sh-1);
}
.dl__item--locked { opacity: .72; }
.dl__icon { font-size: 22px; flex: none; width: 30px; text-align: center; }
.dl__body { flex: 1; min-width: 0; }
.dl__title { font-size: 14px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.dl__meta { margin-top: 3px; font-size: 12px; color: var(--text-3); }

/* =========================== 五、转化类 convert =========================== */

/* --- cta_button 行动按钮 --- */
.cta { padding: 0 var(--gap) var(--gap); }
.cta__hint { margin: 0 0 8px; font-size: 12.5px; color: var(--text-3); text-align: center; }
.cta--sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; margin: 0;
  padding: 10px var(--gap) calc(10px + var(--safe-b));
  background: var(--surface); border-top: 1px solid var(--line);
}

/* --- contact_card 联系方式 --- */
.contact { background: var(--surface); border-radius: var(--radius); margin: 0 var(--gap) var(--gap); padding: 14px; box-shadow: var(--sh-1); }
.contact__name { font-size: 15px; font-weight: 650; margin-bottom: 8px; }
.contact__rows { display: flex; flex-direction: column; }
.contact__row { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.contact__row:last-child { border-bottom: 0; }
.contact__k { flex: none; width: 62px; color: var(--text-3); font-size: 12.5px; }
.contact__v { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.contact__v--copy { cursor: pointer; color: var(--brand); }
.contact__actions { margin-top: 12px; display: flex; gap: 10px; }
.contact__actions .btn { flex: 1; width: auto; }

/* --- form_collect 表单收集 --- */
.formcard { background: var(--surface); border-radius: var(--radius); margin: 0 var(--gap) var(--gap); overflow: hidden; box-shadow: var(--sh-1); }
.formcard__body { padding: 14px 14px 18px; }
/*
 * inline=true（默认，契约默认值）时字段横向排列；--stack 强制单列。
 * 之前这里只写了 flex-column 一种形态，--stack 因此是死类名 ——
 * 「改了属性却毫无变化」比「不支持这个属性」更糟，因为没人会发现它没生效。
 */
.formcard__form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 12px; }
.formcard__form--stack { display: flex; flex-direction: column; }
.form__field { margin-bottom: 14px; }
.form__label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.form__req { color: var(--live); font-style: normal; margin-left: 2px; }
.form__choices { display: flex; flex-wrap: wrap; gap: 8px; }
.form__choice {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg);
  font-size: 13px; cursor: pointer;
}
.form__choice input { margin: 0; }
.form__choice.is-picked { border-color: var(--brand); background: var(--brand-weak); color: var(--brand); }
.formcard__form .field__error { margin-top: 8px; }

/* --- external_link 外链卡 --- */
.extlink {
  display: flex; align-items: center; gap: 10px; margin: 0 var(--gap) var(--gap);
  padding: 13px 14px; background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--sh-1); cursor: pointer; border: 0; width: calc(100% - var(--gap) * 2);
  text-align: left; font: inherit; color: inherit;
}
.extlink__title { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.4; }
.extlink__arrow { flex: none; color: var(--text-3); font-size: 15px; }

/* --- qrcode 二维码 --- */
.qr { text-align: center; padding: 4px var(--gap) var(--gap); }
.qr__img {
  width: 168px; height: 168px; margin: 0 auto; border-radius: 10px;
  background: #fff; padding: 6px; box-shadow: var(--sh-1);
}
.qr__caption { margin-top: 8px; font-size: 12.5px; color: var(--text-3); }
.qr__loading {
  width: 168px; height: 168px; margin: 0 auto; border-radius: 10px;
  background: var(--body, #eef1f5); animation: sk 1.3s ease-in-out infinite;
}
.qr__placeholder { width: 168px; height: 168px; margin: 0 auto; border-radius: 10px; background: var(--bg); display: flex; align-items: center; justify-content: center; color: var(--text-3); font-size: 13px; }

/* ============================ 六、布局类 layout ============================ */

/* 容器子节点挂载点（由渲染引擎写入） */
.container__children { display: flex; flex-direction: column; }

/* --- container 容器 --- */
.box {
  margin: 0 var(--gap) var(--gap); border-radius: var(--radius); overflow: hidden;
  padding: var(--box-pad, 0px);
}
.box__head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 12px 2px; font-size: 15px; font-weight: 650;
}
.box__head--toggle { cursor: pointer; user-select: none; }
.box__head--static { cursor: default; }
.box__chev { flex: none; color: var(--text-3); font-size: 13px; transition: transform .18s ease; }
.box.is-collapsed .box__chev { transform: rotate(-90deg); }
/* ★折叠必须由 CSS 完成★：子节点由渲染引擎挂载，render 阶段拿不到，用 class 才无竞态 */
.box.is-collapsed > .container__children { display: none; }

/* --- two_column 两列布局 --- */
.twocol {
  display: grid; gap: 12px; margin: 0 var(--gap) var(--gap);
  align-items: start;
}
.twocol__col { display: flex; flex-direction: column; min-width: 0; }
/* @bp-phone */
@media (max-width: 639px) {
  .twocol:not(.twocol--no-stack) { grid-template-columns: 1fr !important; }
}

/* --- tabs 选项卡 --- */
.tabs { margin: 0 var(--gap) var(--gap); }
.tabs__bar {
  display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.tabs__bar::-webkit-scrollbar { display: none; }
.tabs__tab {
  flex: none; border: 0; border-radius: 999px; padding: 6px 16px;
  background: var(--surface); color: var(--text-2); font-size: 13.5px; cursor: pointer;
  /* ★文案不换行、不溢出★：`nowrap` 保证一行显示，`ellipsis` 保证标题再长也只截断自己 */
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px;
  box-shadow: var(--sh-1);
}
.tabs__tab.is-active { background: var(--brand); color: #fff; font-weight: 600; }
.tabs__panel { display: none; }
.tabs__panel.is-active { display: block; }
.tabs__panels { min-width: 0; }
.tabs--flat .tabs__panels--flat { display: flex; flex-direction: column; }

/**
 * ★移动端 Tab 栏吸顶（< 768px，与播放器吸顶 `.module--player-dock` 同断点）★
 *
 *   `top = --ml-dock-top（顶栏实测高） + --ml-player-h（播放器实测高）` —— 两个值都由
 *   `player-dock.js` 实测写入。写死常数必然错位：顶栏带 `env(safe-area-inset-top)`
 *   随机型变化，播放器按 16:9 随屏宽变化，全屏期间还会被锁成固定值。
 *
 *   ★为什么 `z-index: 20`★：低于播放器吸顶层（25），高于普通内容 ——
 *   万一两者算错重叠，压住的是 Tab 栏而不是播放器；又远高于 toast（120）之下，
 *   系统提示仍然盖得住提示层。
 *
 *   ★为什么只在 `.page--room` 里生效★：承接首页也可能被运营拖进一个 tabs 容器，
 *   那里没有"播放器吸顶"这个前提，吸顶只会把一排页签钉在内容上方挡字。
 */
@media (max-width: 767px) {
  /* 页内选项卡（.tabs__bar）与移动端模板的下划线栏（.tabbar）共用同一条吸顶规则：
     两者都吸在"顶栏 + 播放器"之下，层级同为 20（低于播放器 25）。 */
  .page--room .tabs__bar,
  .page--room .tabs--tabbed .tabbar {
    position: sticky;
    top: calc(var(--ml-dock-top, 0px) + var(--ml-player-h, 0px));
    z-index: 20;
    background: var(--bg);
    padding-top: 8px;
    box-shadow: 0 6px 14px rgba(16, 24, 40, 0.12);
  }
  /* 少标签等分、多标签横向滚动：`1 1 0` 让它们平分一行，`min-width` 保证
     挤到放不下时不再压缩 —— 溢出后由 `overflow-x: auto` 接管横滑。 */
  .page--room .tabs__tab { flex: 1 1 0; min-width: 76px; text-align: center; }
}

/* ============================================================================
 * 移动端 Tab 播放页（模板 mobile_tabbed · 对齐参考页结构）
 *
 *   分区顺序 / 吸顶策略 / 空组隐藏 / 状态默认值全部在
 *   `shared-schema/schema/tab-groups.json` 里，前端组件读生成镜像 —— 这里只负责
 *   把它们画出来，**不复制任何规则**。
 *
 *   ★为什么不给 html/body 加 `overflow-x: hidden`★：那会让 `overflow-y` 计算成
 *   auto，从而**破坏播放器与 Tab 栏的 sticky**（sticky 依赖滚动祖先不被新建）。
 *   横向滚动要在源头消灭：所有横排容器自己 `overflow-x: auto` 且 `max-width: 100%`。
 * ========================================================================== */

.tabs--tabbed { margin: 0; }

/**
 * ① 场次胶囊：紧跟直播状态栏（也就是紧贴播放器区），单场次时组件返回 null、宿主不占位
 *   （契约 layout_zones.scroll_away + session_chips.show_when = session_count > 1）。
 *
 *   ★宿主从 `.tabs__chips` 改成 `.room-chips`（2026-10-28）★
 *   胶囊行已从 tabs 容器内部提升为**页面级分区**（见 room-session-chips.js）：
 *   它是播放器区的下一段，不是 Tab 区的附属品。
 *   ★不能有 `overflow: hidden`★ —— 胶囊多到换行时会被裁掉一整行，
 *   表现为"第二个场次不见了"。
 *
 *   ★不横滑（2026-10-27）★：原来是 `overflow-x: auto`，场次一多后面的就被藏到屏幕外，
 *   观众以为只有两个场次、更不会去"横滑试试"。现在 `flex-wrap: wrap` —— 放不下就换行，
 *   一屏内把所有场次摊开。代价是场次特别多时占两行，换来的是"不漏场次"。
 */
.room-chips { margin: 0; overflow: visible; }
.room-chips:empty { display: none; }
/**
 * ★胶囊行紧跟状态栏★
 *   状态栏自身带 `border-bottom`（1px 分隔线），胶囊行贴着它排下去，
 *   视觉上是"状态栏的下半部分"，而不是一个独立区块。
 *   胶囊内部的 `.chips` 有 10px 上下 padding（保证 36px 胶囊的命中区），
 *   所以胶囊行整体高 56px —— 其中 20px 是命中区留白，不是视觉留白。
 */
.chips {
  display: flex; flex-wrap: wrap; gap: 8px 10px; padding: 10px 14px; max-width: 100%;
  overflow: visible;
}
/**
 * ★胶囊配色必须跟随主题（2026-11-02）★
 *   原来是硬编码的灰 `#9e9e9e` + 橙 `#ff9f43`：运营把 `theme.primaryColor` 改成红色，
 *   `renderer.js` 只写 `--brand`（和派生的 `--brand-weak`），于是**全页是红的、
 *   唯独一排场次胶囊是灰的**，而且不报任何错（规范反例 12）。
 *   现在未选中走 `--brand-weak` 底 + 品牌色字，选中走 `--brand` 实底 —— 换主题即跟随。
 *   ★不用 `--brand-weak` 配白字★：那是 10% 透明度的浅底，白字等于看不见。
 */
.chips__item {
  flex: 0 1 auto; min-width: 0; min-height: 36px; padding: 0 18px; border: 0; border-radius: 6px;
  background: var(--brand-weak); color: var(--brand); font-size: 15px; cursor: pointer; white-space: nowrap;
  /* 单个胶囊比一行还宽时截断自己，绝不撑破页面 */
  overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.chips__item.is-active { background: var(--brand); color: #fff; }

/**
 * ★观看人数 / 点赞数的旧「画面浮层角标」样式已删除（2026-10-28）★
 *   它们现在在底部操作栏左区（见 `.player__viewers, .player__likes`）。
 *   浮在画面右上角的角标会压住画面主体，且与右下操作钮不在一条基线上。
 */

/* ② 下划线 Tab 栏：≤4 项等分，更多则横滑 */
.tabbar {
  display: flex; max-width: 100%; background: var(--surface);
  border-bottom: 1px solid var(--line);
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.tabbar::-webkit-scrollbar { display: none; }
.tabbar--equal .tabbar__item { flex: 1 1 0; }
.tabbar__item {
  position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center;
  gap: 4px; min-width: 76px; min-height: 44px; padding: 0 16px; border: 0;
  background: transparent; color: var(--text-2); font-size: 15px; cursor: pointer;
  /* ★文案绝不换行溢出★ */
  white-space: nowrap;
}
.tabbar__item.is-active { color: var(--brand); font-weight: 600; }
.tabbar__label { overflow: hidden; text-overflow: ellipsis; }
.tabbar__underline {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 24px; height: 3px; border-radius: 2px; background: transparent;
}
.tabbar__item.is-active .tabbar__underline { background: var(--brand); }
.tabbar__badge {
  position: absolute; top: 6px; right: 10px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: var(--live); color: #fff; font-size: 12px; line-height: 16px;
  text-align: center;
}

/* ④ 面板与状态提示条 */
.tabs--tabbed .tabs__panels { background: var(--bg); padding-bottom: calc(24px + var(--safe-b)); }
.tabs--tabbed .tabs__panel { display: none; }
.tabs--tabbed .tabs__panel.is-active { display: block; }
.tabs__hint { padding: 10px 14px; background: rgba(0, 0, 0, .04); color: var(--text-3); font-size: 13px; }
/* 空模块占位：mode=module 下运营显式摆了一个页签但模块没内容（如资料下载没绑资料），
   页签要保留、面板给一句话 —— 而不是让页签静默消失（那会让运营以为"配置丢了"）。 */
.tabs__empty { padding: 28px 16px; text-align: center; color: var(--text-3); font-size: 13px; }

/* ★吸顶：与 `.tabs__bar` 共用"顶栏高 + 播放器高"的偏移（两个值都由 player-dock.js
   实测写入），层级 20 < 播放器 25 —— 万一算错重叠，压住的是 Tab 栏不是画面。
   这里把底色改回白：下划线式 Tab 栏贴在白色内容区上才不像一条悬浮条。 */
@media (max-width: 767px) {
  .page--room .tabs--tabbed .tabbar {
    background: var(--surface);
    padding-top: 0;
    box-shadow: 0 6px 14px rgba(16, 24, 40, 0.1);
  }

  /**
   * ★★面板补足最小高度：否则 Tab 栏会"飘在页面中间"★★（2026-10-27 真实浏览器实测）
   *
   *   现象：播放器已吸顶，Tab 栏却停在文档流原位（离播放器下沿还有 110px），
   *         看起来像"跑到了屏幕中间"。
   *
   *   根因：Tab 栏靠 `position: sticky` 吸附，而 **sticky 只在页面真的滚动时才会移动**。
   *         面板只有两三条评论时，`scrollHeight === innerHeight`（可滚距离 0），
   *         于是吸附这一步永远不会发生 —— 它不是定位写错，是**页面没有可滚动的余量**。
   *         实测：2 段内容 → maxScroll=0、Tab 栏停在 381px；
   *               60 段内容 → maxScroll=2017、滚到底 Tab 栏精确停在 270px（播放器下沿）。
   *
   *   修法：给激活面板一个"至少填满剩余视口"的高度 ——
   *         `100dvh - 顶栏 - 播放器 - Tab 栏`，页面因此总有一点可滚距离，
   *         Tab 栏就能滚到吸附点。内容够长时 min-height 不生效，零副作用。
   *
   *   ★为什么加在 `.tabs__panel` 上、而不是 `.tabs__panels` 的 padding★：
   *     两者都能撑出滚动余量，但 padding 会在**所有**面板下方留一屏空白（长内容也逃不掉）；
   *     min-height 是下限，长内容自动失效。且它不改变面板内部元素的流位置
   *     （评论输入框仍在内容末尾，不会被推走）。
   *
   *   ★只在有播放器吸顶时生效★（`.module--player-dock ~ .module`）：
   *     没播放器的页面没有"顶栏 + 播放器"这个前提，撑高只会凭空多出一屏空白。
   *
   *   45px = Tab 栏自身高度（`.tabbar__item` 的 min-height:44 + 1px 下边框）。
   *   先写 `vh` 再写 `dvh`：老 WebView 不认 dvh 时用前者兜底（移动端地址栏收起会差一截，
   *   但只影响空白多寡，不影响 Tab 栏能否吸住）。
   */
  .page--room .module--player-dock ~ .module .tabs--tabbed .tabs__panel.is-active {
    min-height: calc(100vh - var(--ml-dock-top, 0px) - var(--ml-player-h, 0px) - 45px);
    min-height: calc(100dvh - var(--ml-dock-top, 0px) - var(--ml-player-h, 0px) - 45px);
  }
}

/* ⑤ 悬浮球：fixed 定位，避开底部安全区与输入栏 */
.floats {
  position: fixed; right: 12px; bottom: calc(104px + var(--safe-b)); z-index: 97;
  display: flex; flex-direction: column; gap: 14px;
}
.floats__item { position: relative; }
.floats__ball {
  position: relative; width: 64px; height: 64px; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: #fff; background: linear-gradient(180deg, #ffa94d, #ff922b); box-shadow: var(--sh-3);
}
/* 球内是模块自己的渲染结果（cta_button / external_link），只做"贴合圆形"的改写，
   行为仍是模块自己的 —— 悬浮球点下去和 Tab 里点下去必须是同一套。 */
.floats__ball .cta, .floats__ball .extlink { width: 100%; height: 100%; margin: 0; display: flex; align-items: center; justify-content: center; }
.floats__ball .btn {
  width: 100%; height: 100%; min-height: 0; padding: 0 4px; border: 0; border-radius: 0;
  background: transparent; color: #fff; font-size: 12px; line-height: 1.2; white-space: normal;
}
.floats__ball .extlink { color: #fff; font-size: 12px; justify-content: center; }
.floats__ball .extlink__arrow { display: none; }
.floats__close {
  position: absolute; top: -5px; right: -5px; width: 20px; height: 20px; border: 0; border-radius: 50%;
  background: var(--text-3); color: #fff; font-size: 10px; line-height: 1;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
/* ★20px 是视觉尺寸，命中区靠伪元素撑到 32px★ */
.floats__close::after { content: ''; position: absolute; inset: -6px; }

/* ============================================================================
 * 交互反馈与层次
 *
 * 这一节只给"能被点"的元素加反馈：静态卡片保持安静，可交互的才抬起。
 * 之前全站除了 .livecard:active 之外没有任何按压反馈，手指点下去毫无响应，
 * 用户无法判断"这一下到底生效没有"，在触屏上尤其明显。
 * ========================================================================== */

.livecard, .sentry, .replay, .article__item--list, .dl__item, .extlink,
.gridcard__cell, .tabs__tab, .topics__item {
  transition: transform .12s var(--ease), box-shadow .12s var(--ease), background .12s var(--ease);
}
.livecard:active, .sentry:active, .replay:active, .article__item--list:active,
.dl__item:active, .extlink:active, .gridcard__cell:active, .tabs__tab:active, .topics__item:active {
  transform: scale(.99);
}

/* ★hover 只在真正的指针设备上生效★：
   触屏浏览器在点完后会把 :hover "粘"在元素上，滚走再回来仍带着高亮，
   看起来像选中了却没选中。用媒体查询把它限定在鼠标/触控板环境。 */
@media (hover: hover) and (pointer: fine) {
  .livecard:hover, .sentry:hover, .replay:hover, .article__item--list:hover,
  .topics__item:hover, .dl__item:hover, .extlink:hover {
    box-shadow: var(--sh-2);
  }
  .extlink:hover { border-color: var(--brand); }
  .tabs__tab:hover { color: var(--brand); }
  .gridcard__cell:hover { background: var(--bg); }
}

/* 键盘可达性：全站统一焦点环。
   触屏/鼠标点击不会触发 :focus-visible，因此不会留下"残影"式描边。 */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ============================================================================
 * PC 兼容（移动优先的**向上**适配）
 *
 * 本项目用户端是移动优先：默认样式即手机版，宽屏只做"别拉伸变形"的兜底，
 * 不引入第二套桌面布局（否则两套布局必然漂移）。
 * `.page` 已有 max-width:720px 并居中，但固定定位的底栏是 left:0;right:0 的，
 * 在宽屏上会横跨整个视口 —— 观感上变成"内容在中间、按钮却铺满屏幕"。
 * 这里把它们收进同一条列宽，与内容列左右对齐。
 * ========================================================================== */
/* @bp-mobile（min-width 侧取名义值 768） */
@media (min-width: 768px) {
  .actionbar,
  .cta--sticky {
    left: 50%;
    right: auto;
    width: 100%;
    max-width: 720px;
    transform: translateX(-50%);
  }
  /* 宽屏下给内容列一点边框感，避免 720px 之外的空白显得像渲染失败 */
  .page { background: var(--bg); }
}

/* 播放器准入闸占位（live_player：未报名 / 审核中时不渲染播放器，改占位提示） */
.player-gate {
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #10151d center / cover no-repeat;
  color: #fff;
  overflow: hidden;
}
.player-gate__mask { position: absolute; inset: 0; background: rgba(10, 14, 20, 0.62); }
.player-gate__body { position: relative; text-align: center; padding: 0 20px; max-width: 90%; }
.player-gate__title { font-size: 16px; font-weight: 650; margin-bottom: 6px; }
.player-gate__desc { font-size: 12.5px; opacity: 0.78; line-height: 1.6; margin-bottom: 14px; }
.player-gate__btn { min-width: 132px; }
@supports not (aspect-ratio: 16 / 9) {
  .player-gate { height: 200px; }
}

/* ---------------- 报名弹层（只装报名字段，不掺直播状态/推荐位） ---------------- */
.rmodal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; background: rgba(10, 14, 20, 0.52); padding: 0; }
.rmodal__panel { width: 100%; max-width: 520px; max-height: 88vh; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: var(--sh-3); overflow: hidden; }
.rmodal__head { display: flex; align-items: center; justify-content: space-between; padding: 14px var(--gap); border-bottom: 1px solid var(--line); }
.rmodal__title { font-size: 16px; font-weight: 650; }
.rmodal__close { border: 0; background: transparent; color: var(--text-3); font-size: 16px; line-height: 1; padding: 6px; cursor: pointer; border-radius: var(--r-ctl); }
.rmodal__close:focus-visible { outline: none; box-shadow: var(--ring); }
.rmodal__body { padding: 14px var(--gap) 18px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.rmodal__loading { padding: 18px 0; text-align: center; font-size: 13px; color: var(--text-3); }
.rmodal__done { padding: 6px 0 4px; }
.rmodal__done-title { font-size: 17px; font-weight: 650; margin-bottom: 6px; }
.rmodal__done-desc { font-size: 13px; line-height: 1.7; color: var(--text-3); margin-bottom: 12px; }
.rmodal__actions { display: flex; gap: 10px; padding-top: 14px; }
.rmodal__actions .btn { flex: 1; }
@media (min-width: 640px) {
  /* 宽屏改成居中卡片：底部抽屉在桌面端显得像临时弹窗 */
  .rmodal { align-items: center; padding: 24px; }
  .rmodal__panel { border-radius: var(--r-lg); max-height: 82vh; }
}

/* ============================================================================
 * 侧栏是 **PC 专有构造**：≤1023px 整块不出现（含它的折叠按钮）
 *
 * ★为什么窄屏必须连按钮一起隐藏★（2026-10-26 修）
 *   窄屏下 `createRoomLayout` 不搬任何模块（模块按 PageSchema 原序留在主区），
 *   侧栏 body 恒为空；而下面媒体查询里的折叠样式在窄屏一条都不生效。
 *   只藏内容、留下外壳的后果就是：页面上挂着一条"互动与信息 / 收起"，
 *   点了只换文案、正文一个字都不动 —— 控件在，它控制的东西不在。
 *
 *   规矩：**控件必须和它控制的东西同生共死**。窄屏没有侧栏，就不该有侧栏控件。
 * ========================================================================== */
.room-layout__rail { display: none; }
.room-rail__reopen { display: none; }

/* ============================================================================
 * PC 宽屏增强（≥1024px）
 *
 * ★仍然是"移动优先 + 桌面增强"★：默认样式即手机版，宽屏只改**宿主容器**，
 *   模块自身与 PageSchema 编排一律不动 —— 搬的是 section 节点（room-layout.js），
 *   不是第二次渲染，因此不存在"移动端一套、PC 另一套"的第二份渲染逻辑。
 *
 * ★≤1023px 完全不生效★：下面的规则全在这个媒体查询里，窄屏 DOM 与今天逐字节一致。
 * ========================================================================== */
@media (min-width: 1024px) {
  /* ① 播放页：主区（观看） + 360px 侧栏（互动与信息），可折叠 */
  .page--room { max-width: none; padding: 0 24px 32px; }

  .room-layout {
    display: grid;
    /* minmax(0,1fr) 而不是 1fr：否则主区内容（长 URL、宽表格）会把网格顶宽、右栏被挤出视口 */
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 20px;
    align-items: start;
  }
  .room-layout__main { min-width: 0; }

  .room-layout__rail {
    /* ★必须显式写 display★：上面那条窄屏规则是 `display: none`，
       媒体查询不会自动"覆盖回默认"，漏了这行宽屏侧栏也永远不出现。 */
    display: block;
    position: sticky;
    top: 12px;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--sh-1);
  }
  .room-rail__head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
  }
  .room-rail__title { font-size: 13px; font-weight: 650; color: var(--text-2); }
  .room-rail__toggle {
    flex: 0 0 auto;
    min-height: 28px;
    padding: 4px 10px;
    border: 1px solid var(--line);
    border-radius: var(--r-ctl);
    background: var(--surface);
    color: var(--text-2);
    font: inherit;
    font-size: 12.5px;
    cursor: pointer;
  }
  .room-rail__toggle:hover { color: var(--brand); border-color: var(--brand); }
  .room-rail__body { display: flex; flex-direction: column; gap: 12px; padding: 12px; }

  /* ★收起态的常驻「展开」入口★
     收起时整条侧栏（连同里面的折叠按钮）都是 display: none，
     所以这个入口必须挂在侧栏外面，否则收起 = 再也点不开。
     ★`:not(.room-layout--rail-empty)`★：一条侧栏模块都没有时不留这个标签 ——
     点开也是空栏，那个入口只会让人以为"还有内容没显示"。 */
  .room-layout--rail-collapsed:not(.room-layout--rail-empty) .room-rail__reopen {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* 固定定位的子元素不参与网格布局：不会多出一行，也不会撑宽主区 */
    position: fixed;
    top: 50%;
    right: 0;
    z-index: 30;
    transform: translateY(-50%);
    padding: 12px 7px;
    writing-mode: vertical-rl;
    letter-spacing: 2px;
    font: inherit;
    font-size: 12.5px;
    color: var(--text-2);
    background: var(--surface);
    border: 1px solid var(--line);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    box-shadow: var(--sh-1);
    cursor: pointer;
  }
  .room-rail__reopen:hover,
  .room-rail__reopen:focus-visible { color: var(--brand); border-color: var(--brand); }

  /* ★侧栏里的模块不该再有左右外边距★：它们由 body 的 padding 统一提供，
     否则窄栏里左右各 16px 的外边距会把内容压成一条。 */
  .room-rail__body > .module { margin-left: 0 !important; margin-right: 0 !important; }

  /* 折叠态 / 空侧栏：右栏宽度归零，主区独占一行 */
  .room-layout--rail-collapsed,
  .room-layout--rail-empty { grid-template-columns: minmax(0, 1fr) 0; }
  .room-layout--rail-collapsed .room-layout__rail,
  .room-layout--rail-empty .room-layout__rail { display: none; }

  /* 画中画只在宽屏出现：移动端由系统手势 / 浏览器菜单承担，占一个 28px 圆钮不划算 */
  .player__pip { display: inline-flex; }

  /* ② 门户 / 回放页的最小兜底：只放宽限宽 + 卡片列表两列，不动任何模块渲染器 */
  .page--wide { max-width: 1080px; }
  .page--wide .livelist,
  .page--wide .replays {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
  }
}

/**
 * ★分享按钮的「画面左上角浮层」样式已删除（2026-10-28）★
 *   它现在与声音 / 画中画 / 全屏并排在底部操作栏右区
 *   （统一圆形按钮样式见 `.player__sound, .player__fullscreen, .player__pip, .player__share`）。
 *   浮层会压住画面主体，且与右下操作钮不在一条基线上。
 */

/* ============================================================================
 * 响应式修复收口（2026-11-02 · Phase 3）
 *
 * 对应 docs/响应式视觉规范.md §3.5/§4.5 与 docs/响应式体验规范.md 裁决 3/4/5/7。
 * 放在文件末尾：这里全是"覆盖型"规则，靠后写才不必逐条抬优先级。
 *
 * ★三条不可违反的前提★
 *   ① 绝不给 html/body 加 `overflow-x: hidden`：它会把 `overflow-y` 一并算成 auto，
 *      **同时废掉播放器吸顶与 Tab 栏吸顶**，而且完全不报错（本项目已有血泪注释）；
 *   ② 给 sticky 而动的 `overflow` 只能写 `clip`，不能写 `hidden`；
 *   ③ 播放器 / 长连接 / DOM 结构一根手指都不动 —— 只调尺寸与排版。
 * ========================================================================== */

/* ----------------------------------------------------------------------------
 * ① 场次胶囊：≤767 两行上限 + 「全部 N 场」（裁决 3）
 *
 * 折叠本身由 JS 做（`limited` 参数只渲染前 3 条 + 按钮），CSS 只负责：
 *   · 行高预算：36×2 + row-gap 8 + padding 16 = **96px**（390×780 下的首屏线）；
 *   · 短标字号走 --fs-aux 档（15px 全名换短标后仍要一眼读得清，但不必再大）；
 *   · 命中区 44：视觉 36 + `::after` 上下各外扩 4 —— 相邻胶囊的 gap 是 8，
 *     外扩 4+4 正好接上，不会"点 A 触发 B"。
 * -------------------------------------------------------------------------- */
/* @bp-mobile */
@media (max-width: 767px) {
  .chips { padding: 8px 14px; row-gap: 8px; column-gap: 10px; }
  .chips__item { padding: 0 12px; font-size: var(--fs-aux); position: relative; }
  .chips__item::after { content: ''; position: absolute; inset: -4px 0; }

  /* 「全部 N 场」：视觉上与胶囊同高，但用描边区分"这不是一个场次" */
  .chips__more {
    flex: none; min-height: 36px; padding: 0 12px; position: relative;
    border: 1px dashed var(--brand); border-radius: 6px; background: var(--surface);
    color: var(--brand); font-size: var(--fs-aux); font-weight: 600; cursor: pointer;
    white-space: nowrap;
  }
  .chips__more::after { content: ''; position: absolute; inset: -4px 0; }
  .chips__more:active { transform: scale(.98); }
}

/* ----------------------------------------------------------------------------
 * ② 页签：≤4 等分且放得下 5 个汉字；>4 横滑 + 右缘渐隐（裁决 4）
 *
 * ★现状缺陷的机制★（`portal-room@390`，4 个页签里 2 个被截成「直…」「会…」）
 *   `.tabs__tab` 原来 `padding: 6px 16px` + `font-size: 13.5px` + `text-overflow: ellipsis`：
 *   等分后每项 89.5px，减去左右各 16 = 57.5px 可放文字 → 4 个汉字（54px）刚好、
 *   5 个汉字（67.5px）就截断；而 `.tabs__bar` 的 `overflow-x:auto` 因为总宽没超
 *   **永远不触发** —— 于是"能滑"变成了"看不见的截断"。
 *   修法两头一起收：padding 16 → 10、字号走 `--fs-aux`（13px）→ 5 个汉字 = 65px，
 *   可用 69.5px，稳过；同时把省略号本身拿掉（截断在此档已不该发生）。
 * -------------------------------------------------------------------------- */
/* @bp-mobile */
@media (max-width: 767px) {
  .page--room .tabs__tab { flex: 1 1 0; min-width: 76px; text-align: center; padding: 6px 10px; font-size: var(--fs-aux); }
  .tabs__tab { max-width: none; overflow: visible; text-overflow: clip; }

  /* N ≥ 5：项自己长到文案宽，横向滚动才有意义（压到 76px 再省略 = 滑也滑不出完整文案） */
  .tabs__bar--many { mask-image: linear-gradient(to right, #000 92%, transparent); -webkit-mask-image: linear-gradient(to right, #000 92%, transparent); }
  .tabs__bar--many .tabs__tab { flex: none; min-width: max-content; }

  /* 下划线式 Tab 栏（tabbar）：非激活项收起图标，把宽度让给文案 */
  .tabbar__item { padding: 0 10px; font-size: var(--fs-aux); }
  .tabbar__item > .tabbar__icon { display: none; }
  .tabbar__item.is-active > .tabbar__icon { display: inline; }
  .tabbar__label { overflow: visible; text-overflow: clip; }
  .tabbar--equal .tabbar__item { min-width: 0; }
  .tabbar--many .tabbar__item { flex: none; min-width: max-content; }
  .tabbar--many { mask-image: linear-gradient(to right, #000 92%, transparent); -webkit-mask-image: linear-gradient(to right, #000 92%, transparent); }
}

/* ----------------------------------------------------------------------------
 * ③ 播放器操作栏：盒 44 × 视觉 30（裁决 5 的 C 档）
 *
 * ★为什么不能只用 `::after` 外扩★
 *   `::after` 会被祖先的 `overflow` 裁掉，而 `.player__stage` / 吸顶 section 都是裁切容器
 *   （装修模块渲染器还会按 `borderRadius` 设 overflow）。外扩 7px 在这里**一点不剩**。
 *   所以反过来做：盒子撑到 44×44 保证命中，视觉的 30×30 圆由 `::before` 内缩 7px 画出来。
 *   一排 3 个按钮 = 3×44 + 2×4(gap) = 140px，占 390 宽的 36%，画面主体不受影响。
 *
 * ★底部操作栏因此高 46 → 60★：吸顶偏移 `--ml-player-h` 由 JS 实测写入，会自动跟随。
 * -------------------------------------------------------------------------- */
/* @bp-mobile */
@media (max-width: 767px) {
  .player__bar-actions { gap: 4px; }
  .player__sound,
  .player__fullscreen,
  .player__pip,
  .player__share {
    position: relative; width: var(--hit-min); height: var(--hit-min);
    display: inline-flex; align-items: center; justify-content: center;
    /* 视觉全部交给 ::before，盒子只做命中区 */
    border: 0; background: transparent;
  }
  .player__sound::before,
  .player__fullscreen::before,
  .player__pip::before,
  .player__share::before {
    content: ''; position: absolute; inset: 7px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.42); background: rgba(0, 0, 0, 0.32);
  }
  /* 按下/开启态改画在 ::before 上（按钮本身已无底色） */
  .player__sound[aria-pressed='true']::before,
  .player__fullscreen[aria-pressed='true']::before,
  .player__pip[aria-pressed='true']::before { background: rgba(255, 255, 255, 0.92); border-color: #fff; }
  .player__sound:active::before,
  .player__fullscreen:active::before,
  .player__pip:active::before,
  .player__share:active::before { transform: scale(0.94); }
}

/* 声音字形在 44px 盒里偏小：字形本身是信息（🔇/🔊），不是装饰，跟着放大一档 */
/* @bp-mobile */
@media (max-width: 767px) {
  .player__sound, .player__fullscreen, .player__pip, .player__share { font-size: 15px; }
}

/* ----------------------------------------------------------------------------
 * ④ 其余触控目标：视觉不变，命中区外扩（裁决 5 的 B / D 档）
 *
 * 这几个的祖先链都是 `overflow: visible`，`::after` 外扩是真实生效的
 * （审计用 8 点 `elementFromPoint` 采样验证，而不是看 `getBoundingClientRect`）。
 * 联合约束 `gap ≥ 44 - 视觉高` 必须同时成立，否则"点 A 触发 B"：
 *   · `.livecard__btn` 视觉 36 → 外扩 4，`.livecard__foot` 的 gap 正好 8 ✓
 *   · `.topbar__back` 视觉 32 → 外扩 6，右侧是标题（不可点），不会抢点击 ✓
 * -------------------------------------------------------------------------- */
/**
 * ★`.livecard__btn` 直接撑到 44，不用 `::after` 外扩★
 *   卡片外壳 `.livecard` 为裁圆角设了 `overflow: hidden`，伪元素外扩会被它整个裁掉
 *   （实测：外扩 4px 后 `elementFromPoint` 在 cy±21 处命中的是卡片本体，不是按钮）。
 *   这里是文字胶囊不是图标，撑高不会"撑肿界面"，脚部多 8px 换来一次点中。
 */
.livecard__btn { min-height: var(--hit-min); padding: 7px 14px; }
.topbar__back { position: relative; }
.topbar__back::after { content: ''; position: absolute; inset: -6px; }

/* 双击缩放抑制：删掉 `maximum-scale=1` 之后（可访问性必修），双击会放大整页。
   用 `touch-action: manipulation` 换掉它 —— 只禁双击缩放，双指缩放仍然可用，
   WCAG 1.4.4 的 200% 缩放不受影响。 */
.btn,
.livecard,
.livecard__btn,
.tabbar__item,
.chips__item,
.tabs__tab { touch-action: manipulation; }

/* ----------------------------------------------------------------------------
 * ⑤ 输入框 16px：iOS 聚焦不放大整页（裁决 7）
 *
 * 16px 不是"够大"，它是 iOS Safari **不触发整页缩放**的临界值（<16px 会缩放，
 * 表现为"点一下页面跳一下"）。后台早已在 `.modal .input` 这么做，观众侧一直漏着。
 * -------------------------------------------------------------------------- */
/* @bp-mobile */
@media (max-width: 767px) {
  .field__input,
  .input,
  .textarea,
  .select,
  .chat__input,
  .lf__input,
  .lf__type,
  .chat__composer input,
  .chat__composer textarea { font-size: 16px; }
}
