:root {
  /* ===== 深色交易终端主题（与桌面端一致；body.light = 白底模式） ===== */
  --bg: #0a0f16;
  --bg-deep: #060a10;
  --surface: #121922;
  --surface-2: #1a2430;
  --panel: #121922;
  --ink: #c9d4de;
  --ink-strong: #dde6ee;
  --ink-2: #b9c6d2;
  --muted: #7e8ea0;
  --faint: #5a6b7a;
  --line: #16222e;
  --line-strong: #28394b;
  --accent: #e8484a;      /* 品牌红（炒股红涨文化，弃绿） */
  --accent-d: #c0392b;
  --accent-soft: rgba(232,72,74,.12);
  --accent-border: #e74c3c;
  --danger: #ff4d4f;
  --rise: #ff6b6b;        /* 涨/红 */
  --fall: #4cd97b;        /* 跌/绿（股市语义保持） */
  --ch: #e8484a;
  --link: #7cc0ff;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow-md: 0 4px 14px rgba(0,0,0,.4);
  --bg-card: #242d38;
  --bg-hover: #1c2e3e;
  --font: "Microsoft YaHei", "PingFang SC", "SimSun", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ===== 白底模式（html.theme-light；默认跟随系统 prefers-color-scheme，可手动切换） ===== */
html.theme-light {
  --bg: #ffffff;
  --bg-deep: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f2f3f5;
  --panel: #ffffff;
  --ink: #3a4450;
  --ink-strong: #1f2937;
  --ink-2: #4b5563;
  --muted: #6b7280;
  --faint: #9aa3ae;
  --line: #e6e8eb;
  --line-strong: #d9dce1;
  --accent: #e8484a;
  --accent-d: #c0392b;
  --accent-soft: #fff1f0;
  --accent-border: #e8484a;
  --danger: #dc2626;
  --rise: #e0241b;
  --fall: #0f9d58;
  --link: #1d6fd1;
  --bg-card: #f2f3f5;
  --bg-hover: #e8eaee;
  --shadow-sm: 0 1px 2px rgba(16,24,40,.04),0 2px 8px rgba(16,24,40,.04);
  --shadow-md: 0 4px 14px rgba(16,24,40,.07),0 12px 30px rgba(16,24,40,.06);
}

* { box-sizing: border-box; }
html, body { margin:0; padding:0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ========== 顶栏（深色毛玻璃） ========== */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  padding: 11px 20px;
  /* App 沉浸式状态栏避让：--app-sat 由 app.js 在 App 环境写入真实状态栏高度（安卓 WebView env() 恒为 0） */
  padding-top: calc(11px + var(--app-sat, env(safe-area-inset-top, 0px)));
  background: rgba(18,25,34,.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 2px solid var(--accent);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: .4px; white-space: nowrap; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, #f05952, #c62828);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; box-shadow:0 3px 10px rgba(232,72,74,.35);
  flex-shrink: 0;
}
.status { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.status.ok::before { background: var(--accent); animation: pulse 2s infinite; }
.status.bad::before { background: var(--danger); }
@keyframes pulse {
  0% { box-shadow:0 0 0 0 rgba(232,72,74,.45); }
  70% { box-shadow:0 0 0 7px rgba(232,72,74,0); }
  100% { box-shadow:0 0 0 0 rgba(232,72,74,0); }
}
.actions { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.user { font-size: 12px; color: var(--muted); white-space: nowrap; }
.user a { text-decoration: none; }
/* 设置面板：当前登录用户块（App 窄屏顶栏隐藏 .user，用户名唯一可见位收进设置面板） */
.me-row { display: flex; align-items: center; gap: 10px; padding: 6px 6px 12px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.me-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; flex: none; }
.me-name { font-size: 14px; font-weight: 600; color: var(--ink-strong); max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-tag { font-size: 11px; font-weight: 500; color: var(--accent); margin-left: 6px; }

/* ========== 窗口 Tab 栏（频道胶囊）— 2026-10-08 由顶部下沉到底部，贴在主导航之上 ========== */
:root {
  --tabbar-h: 50px;        /* 底部主导航高度（对齐财联社 App） */
  --cn-top-h: 44px;        /* 顶部栏内容高度 */
  --cls-red: #F7574E;      /* 财联社 App 底栏选中色（截图取色） */
  --cls-line: #E5EAED;     /* 财联社 分隔线 */
  --cls-gray: #9A9A9A;     /* 财联社 底栏未选中色 */
}
/* 2026-10-08 第三轮：VIP 频道条改为「顶部 sticky + 首页来源栏同款」
   （用户口径：vip 里 AI实时资讯 / 财联社vip / 红宝书 都像首页的财联社 东方财富 同花顺那样做） */
.window-bar {
  position: sticky;
  top: var(--cn-head-h, calc(var(--cn-top-h) + var(--castbar-h, 0px) + var(--app-sat, env(safe-area-inset-top, 0px))));
  z-index: 30;
  display: flex; gap: 0; align-items: stretch;
  padding: 0 8px;
  background: var(--bg); border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
  overscroll-behavior-x: contain; /* 横滑到头不要触发页面/系统前进后退 */
}
html.theme-light .window-bar { background: #fff; border-bottom-color: var(--cls-line); }
/* 看板/题材库视图：整屏 iframe，频道条无意义 → 隐藏，只留主导航 */
body.tab-no-bar .window-bar { display: none; }
.window-bar::-webkit-scrollbar { display: none; }
.window-tabs { display: flex; gap: 0; }
.win-tab {
  position: relative; flex: none;
  display: inline-flex; align-items: center; gap: 5px;
  border: 0; background: transparent; color: var(--muted);
  font-size: 14.5px; font-weight: 600; padding: 10px 12px 9px;
  cursor: pointer; white-space: nowrap; transition: color .15s; font-family: inherit;
}
.win-tab:hover { color: var(--ink-strong); }
.win-tab.active { color: var(--accent); font-weight: 700; background: transparent; box-shadow: none; }
.win-tab.active::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 3px; width: 20px; height: 3px; border-radius: 2px; background: var(--accent);
}
.win-tab-badge {
  min-width: 17px; height: 17px; border-radius: 999px;
  background: var(--danger); color: #fff;
  font-size: 10.5px; font-weight: 700; line-height: 17px;
  text-align: center; padding: 0 4.5px; margin-left: -2px;
  flex-shrink: 0;
}
/* 未读角标：挂在标签右上角（微信式），描边融入背景 */
.win-tab-badge.win-tab-unread {
  position: absolute; top: -7px; right: -7px; margin: 0;
  box-sizing: border-box; min-width: 17px; height: 17px; line-height: 13px;
  padding: 0 4px; border: 2px solid var(--bg);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .18); z-index: 2;
}
.win-tab-fav::before { background: #ffb300 !important; }
.win-tab-fav.active { background: #ffb300; border-color: #ffb300; }
.win-tab-sep { width: 1px; height: 18px; background: var(--line-strong); margin: 0 2px; flex-shrink: 0; }
.win-tab-color-wrap { position: relative; flex-shrink: 0; }
.win-tab-color {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border: 1px solid var(--line-strong); background: var(--surface-2);
  border-radius: 999px; cursor: pointer; font-size: 14px; flex-shrink: 0; transition: .18s;
}
.win-tab-color:hover { background: var(--bg-hover); }
.win-tab-clear {
  border: 1px solid var(--line-strong); background: var(--surface-2); cursor: pointer;
  font-size: 12px; color: var(--ink-2); padding: 4px 10px; border-radius: 999px;
  flex-shrink: 0; transition: .18s; font-family: inherit; white-space: nowrap;
}
.win-tab-clear:hover { background: #ffeded; border-color: #ff8787; color: #e03131; }
.fav-color-pop {
  position: absolute; top: 50%; transform: translateY(-50%); right: 100%; margin-right: 6px; z-index: 60;
  display: flex; gap: 6px; padding: 5px 9px;
  background: var(--bg-card); border: 1px solid var(--line-strong);
  border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.5);
}
.fav-swatch {
  width: 22px; height: 22px; border-radius: 50%; cursor: pointer;
  border: 2px solid rgba(255,255,255,.6); box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.fav-swatch:hover { transform: scale(1.12); }
.fav-swatch.sel { border-color: #fff; box-shadow: 0 0 0 2px #ffb300, 0 1px 3px rgba(0,0,0,.25); }

/* ========== 按钮 ========== */
.btn {
  border: 1px solid var(--line-strong); cursor: pointer; border-radius: 10px;
  background: var(--surface-2); color: var(--ink-2);
  padding: 8px 14px; font-size: 13px; font-weight: 700;
  transition: .18s; font-family: inherit; white-space: nowrap;
}
.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn.primary:hover { background: var(--accent-d); box-shadow:0 5px 14px rgba(232,72,74,.28); }
.btn.ghost { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.btn.ghost:hover { background: rgba(232,72,74,.2); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ========== 主区域 + 横幅 ========== */
/* 底部固定了「频道条 + 主导航」两栏，滚动区必须留出它们的高度，否则最后一条消息被压住 */
main { max-width: 720px; margin:0 auto; padding: 18px 16px calc(118px + env(safe-area-inset-bottom, 0px)); }
/* 看板/题材库视图：隐藏频道条 → 少留一栏高度 */
body.tab-no-bar main { padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px)); }
.banner {
  background: var(--surface);
  border: 1px solid var(--line); color: var(--ink-2);
  padding: 13px 16px; border-radius: var(--radius); margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px;
  box-shadow: var(--shadow-sm);
}
.banner b { color: var(--accent); }
.banner input {
  padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 10px;
  font-size: 16px; min-width: 200px; font-family: inherit; /* 16px 防 iOS 聚焦缩放 */
  background: var(--bg-deep); color: var(--ink-strong);
}
.banner input:focus { outline: none; border-color: var(--accent); box-shadow:0 0 0 3px var(--accent-soft); }
.banner .msg { font-size: 12.5px; }
.banner .msg.ok { color: var(--accent); }
.banner .msg.err { color: var(--danger); }

/* ================================================================
 *  消息列表（桌面端风格 — 卡片流：频道行 + 卡片，无左侧时间轴）
 * ================================================================ */

.feed-timeline { position: relative; margin:0; padding:0; }
/* 收藏消息卡片：用户自定义色上色 */
.msg.faved { background: var(--fav-bg, rgba(224, 49, 49, 0.16)); border-left: 3px solid var(--fav-color, #e03131); }

/* 单条消息外层 */
.tl-item {
  margin-bottom: 14px;
  animation: tlIn .35s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes tlIn {
  from { opacity:0; transform: translateY(8px); }
  to { opacity:1; transform: none; }
}

/* 卡片外头部：头像 + 频道名 + 时间 */
.msg-header {
  display: flex; align-items: center; gap: 10px;
  margin: 0 2px 6px;
}
.msg-avatar {
  width: 36px; height: 36px; border-radius: 50%; overflow: hidden;
  flex-shrink: 0; background: linear-gradient(135deg,#f05952,#c62828);
  color: #fff; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.msg-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.msg-avatar.fallback { background: linear-gradient(135deg,#f05952,#c62828); }
.msg-header-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.msg-header-name { color: var(--ink-strong); font-weight: 700; font-size: 14px; line-height: 1.35; }
.msg-header-time { color: var(--muted); font-size: 11px; line-height: 1.35; margin-top: 2px; }

/* 消息卡片 */
.msg {
  position: relative;
  border: 1px solid var(--line);
  background: var(--bg-card);
  padding: 10px 14px 8px;
  border-radius: var(--radius);
  /* 左侧色条已移除 */
  transition: border-color .18s, box-shadow .18s;
  overflow: hidden;
}
.msg:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); }

/* 卡片右上角操作按钮 */
.msg-actions {
  position: absolute; top: 8px; right: 10px; z-index: 2;
  display: flex; align-items: center; gap: 4px;
}
.msg-actions .m-speak, .msg-actions .m-fav, .msg-actions .m-share {
  background: var(--bg-hover); border: 1px solid var(--line-strong);
  font-size: 12px; line-height: 1; cursor: pointer; color: var(--ink-strong);
  padding: 2px 6px; border-radius: 6px; flex-shrink: 0;
  min-width: 22px; min-height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
}
.msg-actions .m-share { color: var(--accent); border-color: var(--accent-border); font-weight: 600; }
.msg-actions .m-speak:hover { background: var(--accent-d); border-color: var(--accent-border); color: #fff; }
.msg-actions .m-speak.speaking { color: #fff; background: var(--accent); border-color: var(--accent-border); animation: dspk .6s infinite; }
.msg-actions .m-fav:hover { background: var(--accent-d); border-color: var(--accent-border); color: #fff; }
.msg-actions .m-fav.on { color: var(--fav-color, #e03131); border-color: var(--fav-color, #e03131); background: var(--fav-bg, rgba(224, 49, 49, 0.16)); }
@keyframes dspk { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.2); opacity: .4; } }

/* 消息正文 */
.m-text {
  color: var(--ink-strong); line-height: 1.61; word-break: break-word;
  white-space: pre-wrap; font-size: 14px;
  font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, "Microsoft YaHei", "Source Han Sans SC", sans-serif;
}
.tl-empty-hint { font-size: 13px; color: var(--muted); font-style: italic; }

/* 图片：单图按原比例满显（微信风，不裁切），多图走九宫格缩略 */
.tl-images { margin-top: 10px; }
.tl-images--single { display: block; }
.tl-single-wrap { position: relative; display: inline-block; max-width: 100%; line-height: 0; }
.tl-images--single img {
  display: block; max-width: 100%; max-height: 72vh;
  width: auto; height: auto; aspect-ratio: auto; object-fit: contain;
  border-radius: 10px; cursor: zoom-in; border: 1px solid var(--line-strong);
  transition: transform .18s;
}
.tl-images--single img:hover { transform: scale(1.02); }
.tl-img-slot {
  min-height: 120px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: linear-gradient(100deg, #1a2430 30%, #0e1620 50%, #1a2430 70%);
  background-size: 200% 100%;
  animation: imgShimmer 1.2s ease-in-out infinite;
}
@keyframes imgShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.tl-single-wrap.is-long {
  display: block; width: 100%; max-width: 280px;
  max-height: 300px; overflow: hidden; border-radius: 10px;
  border: 1px solid var(--line-strong); cursor: zoom-in;
}
.tl-single-wrap.is-long img {
  width: 100%; max-width: 100%; max-height: none; height: auto;
  object-fit: cover; object-position: top center;
  border: none; border-radius: 0; transition: none;
}
.tl-single-wrap.is-long img:hover { transform: none; }
.tl-single-wrap.is-long::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 64px;
  background: linear-gradient(to bottom, rgba(10,15,22,0), rgba(10,15,22,.92));
  pointer-events: none;
}
.long-badge {
  position: absolute; right: 8px; bottom: 8px; z-index: 2;
  background: rgba(0,0,0,.62); color: #fff; font-size: 11px; font-weight: 700;
  padding: 2px 9px; border-radius: 6px; letter-spacing: .5px; pointer-events: none;
  line-height: 1.5;
}
.tl-images--grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-width: 290px;
}
.tl-images--grid img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px;
  display: block; cursor: zoom-in; border: 1px solid var(--line-strong); transition: transform .18s;
}
.tl-images--grid img:hover { transform: scale(1.03); }

/* 视频 */
.tl-videos { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.tl-video-wrap { position: relative; max-width: min(420px, 100%); }
.tl-video-wrap video {
  display: block; width: 100%; max-height: 72vh; border-radius: 10px;
  background: #000; border: 1px solid var(--line-strong); cursor: pointer;
}
.tl-video--failed video { display: none; }
.tl-video-fail {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 20px 16px; background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 10px; text-align: center; min-height: 100px;
}
.tl-video-fail__icon { font-size: 28px; }
.tl-video-fail__text { font-size: 13px; color: var(--accent); font-weight: 600; }
.tl-video-fail__name { font-size: 12px; color: var(--muted); word-break: break-all; max-width: 100%; }
.tl-video-fail__meta { font-size: 11px; color: var(--muted); margin-top: 2px; opacity: 0.8; }
.tl-video-fail__link {
  display: inline-block; margin-top: 4px; padding: 5px 14px;
  background: var(--accent); color: #fff; border-radius: 6px;
  font-size: 12px; text-decoration: none; font-weight: 600;
}
.tl-video-fail__link:hover { background: var(--accent-d); }

/* 文件附件 */
.tl-files { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.file-link {
  display: flex; align-items: center; gap: 8px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 10px; color: var(--ink-strong); font-size: 13px; transition: .15s;
}
.file-link:hover { background: var(--bg-hover); border-color: var(--line-strong); }
.file-link .ic { font-size: 15px; flex-shrink: 0; }
.file-link .nm { font-weight: 600; }
.file-link .sz { margin-left: auto; color: var(--muted); font-size: 11.5px; flex-shrink: 0; }

/* 飞书图片占位 */
.tl-feishu-img-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 24px 16px; background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 10px; text-align: center; margin-top: 10px;
}
.tl-feishu-img-placeholder__icon { font-size: 32px; }
.tl-feishu-img-placeholder__text { font-size: 13px; color: var(--link); font-weight: 600; }
.tl-feishu-img-placeholder__count { font-size: 11.5px; color: var(--muted); }

.empty-hint {
  text-align: center; color: var(--muted);
  padding: 56px 16px; font-size: 14px; line-height: 1.7;
}

/* ========== 弹窗 ========== */
.modal {
  /* 不用 inset 简写：安卓 WebView 内核 Chrome/75 不支持（87 才支持），会失去全屏定位导致弹窗不居中 */
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0,0,0,.6);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; z-index: 50;
  padding: 20px;
  padding-top: calc(20px + var(--app-sat, env(safe-area-inset-top, 0px)));
}
.modal-card {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: 26px;
  width: 360px; max-width: 100%; box-shadow: var(--shadow-md);
  animation: cardIn .3s ease;
}
@keyframes cardIn {
  from { opacity:0; transform: translateY(10px) scale(.98); }
  to { opacity:1; transform: none; }
}
.modal-card h2 { margin: 0 0 14px; font-size: 19px; letter-spacing: .3px; color: var(--ink-strong); }
.tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.tab {
  flex: 1; padding: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px;
  cursor: pointer; font-weight: 700; color: var(--muted); font-family: inherit; font-size: 13px; transition: .15s;
}
.tab.active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.modal-card input {
  width: 100%; padding: 10px 12px; margin-bottom: 10px;
  border: 1px solid var(--line-strong); border-radius: 10px; font-size: 16px; font-family: inherit; /* 16px 防 iOS 聚焦缩放 */
  background: var(--bg-deep); color: var(--ink-strong);
}
.modal-card input:focus { outline: none; border-color: var(--accent); box-shadow:0 0 0 3px var(--accent-soft); }
.modal-card .btn { width: 100%; }
.modal-card .msg { font-size: 12.5px; min-height: 16px; margin-top: 7px; }
.modal-card .msg.err { color: var(--danger); }
.modal-card .msg.ok { color: var(--accent); }
.hint { font-size: 12px; color: var(--muted); margin-top: 12px; line-height: 1.65; }

/* ========== 公告 / 活动弹窗提醒 ========== */
.ann-modal {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0,0,0,.6);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; z-index: 60;
  padding: 20px;
  padding-top: calc(20px + var(--app-sat, env(safe-area-inset-top, 0px)));
}
.ann-card {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  padding: 28px 24px 24px; width: 360px; max-width: 100%; box-shadow: var(--shadow-md);
  text-align: center; animation: cardIn .3s ease; border-top: 3px solid var(--accent);
}
.ann-icon { font-size: 34px; margin-bottom: 8px; }
.ann-card h2 { margin: 0 0 12px; font-size: 18px; letter-spacing: .3px; color: var(--ink-strong); line-height: 1.4; }
.ann-content { font-size: 15px; line-height: 1.7; color: var(--ink-2); white-space: pre-wrap; word-break: break-word; text-align: left; max-height: 50vh; overflow-y: auto; margin-bottom: 18px; }
.ann-ok { width: 100%; }

.hidden { display: none !important; }

.lightbox {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0,0,0,.88);
  display: flex; align-items: center; justify-content: center; z-index: 80;
  overflow: hidden; opacity: 0; transition: opacity .2s ease;
}
.lightbox.in { opacity: 1; }
.lightbox.closing { opacity: 0; }
.lb-bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,.5), rgba(0,0,0,0));
}
.lb-hint { font-size: 12px; color: rgba(255,255,255,.82); }
.lb-close {
  pointer-events: auto; width: 34px; height: 34px; border: none; border-radius: 50%;
  background: rgba(255,255,255,.16); color: #fff; font-size: 22px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.lb-close:active { background: rgba(255,255,255,.32); }
.lb-tools { pointer-events: auto; display: flex; align-items: center; gap: 8px; }
.lb-btn {
  width: 34px; height: 34px; border: none; border-radius: 50%; padding: 0;
  background: rgba(255,255,255,.16); color: #fff; font-size: 18px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.lb-btn:active { background: rgba(255,255,255,.32); }
.lb-wrap {
  width: 100%; height: 100%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  -webkit-overflow-scrolling: touch; touch-action: none;
}
.lb-img {
  transform-origin: 0 0; user-select: none; -webkit-user-drag: none;
  border-radius: 12px; max-width: 92%; max-height: 92%;
  cursor: zoom-in; transition: none; image-rendering: auto;
}
.lightbox.is-long .lb-wrap { align-items: flex-start; padding: 52px 0 24px; touch-action: pan-y; }
.lightbox.is-long .lb-img {
  display: block; margin: 0 auto; width: min(94%, 600px);
  max-width: 600px; max-height: none; height: auto; border-radius: 8px;
  cursor: zoom-in;
}

/* ========== 底部 App 下载入口 ========== */
.install-bar {
  position: fixed; left: 50%; transform: translateX(-50%);
  /* 2026-10-08：底部新增「频道条 + 主导航」两栏，安装引导条必须抬高，否则会盖住 Tab 拦掉点击 */
  bottom: calc(var(--tabbar-h) + 52px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  width: min(1180px, calc(100% - 28px));
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px 10px 14px;
  background: rgba(18,25,34,.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow:0 8px 30px rgba(0,0,0,.5);
  animation: barIn .4s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes barIn { from { opacity:0; transform: translateX(-50%) translateY(16px); } to { opacity:1; transform: translateX(-50%) translateY(0); } }
.ib-icon { font-size: 24px; line-height: 1; flex-shrink: 0; }
.ib-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.ib-title { font-size: 14px; font-weight: 800; color: var(--ink-strong); }
.ib-sub { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.install-bar .btn.primary { margin-left: auto; white-space: nowrap; }
.ib-close {
  border: none; background: rgba(255,255,255,.05); color: var(--muted);
  width: 26px; height: 26px; border-radius: 8px; cursor: pointer; font-size: 12px;
  display: flex; align-items: center; justify-content: center; transition: .15s; flex: none;
}
.ib-close:hover { background: rgba(255,255,255,.1); color: var(--ink-strong); }

.getapp-card { width: 380px; position: relative; }
.sheet-close {
  position: absolute; top: 12px; right: 12px; border: none; background: rgba(255,255,255,.05);
  color: var(--muted); width: 28px; height: 28px; border-radius: 8px; cursor: pointer; font-size: 13px;
  display: flex; align-items: center; justify-content: center; transition: .15s;
}
.sheet-close:hover { background: rgba(255,255,255,.1); color: var(--ink-strong); }
.qr-wrap { display: flex; justify-content: center; margin: 6px 0 14px; }
.qr-wrap img {
  width: 200px; height: 200px; border-radius: 14px; background: #fff;
  border: 1px solid var(--line-strong); padding: 10px; box-shadow: var(--shadow-sm);
}
.getapp-actions { display: flex; gap: 10px; }
.getapp-actions .btn { flex: 1; }
.steps { margin-top: 14px; display: flex; flex-direction: column; gap: 7px; }
.steps .step {
  font-size: 12px; line-height: 1.55; color: var(--ink-2);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 11px;
}
.steps .step b { color: var(--accent); }
.ga-section { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.ga-section:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.ga-title { font-size: 14px; font-weight: 800; color: var(--ink-strong); margin-bottom: 6px; }
.ga-desc { font-size: 12px; color: var(--ink-2); line-height: 1.58; margin: 0 0 8px; }
.ga-desc code, .ga-note code { background: var(--surface-2); padding: 1px 6px; border-radius: 5px; font-size: 11px; }
.ga-dl { display: inline-block; text-decoration: none; margin-bottom: 6px; }
.ga-note { font-size: 11px; color: var(--muted); line-height: 1.6; margin-top: 2px; }

.btn .ic { display: inline-flex; align-items: center; margin-right: 4px; }
.brand-txt { display: inline; }

/* ========== 响应式 ========== */
@media (max-width: 820px) {
  main { padding: 14px 12px 88px; }
}

@media (max-width: 600px) {
  .topbar { padding: 9px 12px; padding-top: calc(9px + var(--app-sat, env(safe-area-inset-top, 0px))); gap: 8px; }
  .brand { font-size: 15px; gap: 8px; }
  .brand .logo-mark { width: 27px; height: 27px; font-size: 14px; }
  .status { font-size: 11.5px; }
  .actions { gap: 5px; }
  .actions .user { display: none; }
  .btn .lbl { display: none; }
  .btn .ic { margin-right: 0; }
  .btn { padding: 8px 10px; }
  /* 顶栏按钮：图标在上、文字在下，一眼可辨 */
  .topbar .actions .btn { flex-direction: column; gap: 3px; padding: 6px 10px 5px; border-radius: 12px; }
  .topbar .actions .btn .lbl { display: block; font-size: 10px; line-height: 1; font-weight: 600; letter-spacing: 0.02em; }
  .settings-pop .btn .lbl { display: block; }

  /* 频道条已下沉到底部：这里只调内边距，绝不再碰 top（否则会被拽回顶部） */
  .window-bar { padding: 6px 10px; }
  .window-label { display: none; }
  .win-tab { padding: 5px 12px; font-size: 12.5px; }

  /* 底部两栏（频道条 + 主导航）都要让开 */
  main { padding: 12px 10px calc(112px + env(safe-area-inset-bottom, 0px)); }
  body.tab-no-bar main { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
  .banner { padding: 11px 12px; border-radius: 10px; }
  .banner input { width: 100%; min-width: 0; flex: 1 1 100%; }
  .banner .btn { width: 100%; }
  .tl-images--single img { max-height: 60vh; }
  .tl-images--grid { gap: 4px; }
  .tl-video-wrap { max-width: 100%; }
  .tl-video-wrap video { max-height: 60vh; }
  .modal { padding: 12px; }
  .modal-card { padding: 22px 18px; border-radius: 16px; }
  .modal-card input { font-size: 16px; }
}

@media (max-width: 380px) {
  .brand-txt { display: none; }
  .status { display: none; }
  .topbar { gap: 6px; }
  .window-bar { padding: 7px 10px; }
  .win-tab { padding: 5px 10px; font-size: 12px; }
  .install-bar { gap: 8px; padding: 8px 10px 8px 10px; }
  .ib-icon { font-size: 20px; }
  .ib-sub { display: none; }
  .install-bar .btn.primary { padding: 8px 12px; font-size: 12.5px; }
}

@media (max-height: 480px) and (orientation: landscape) {
  .topbar { padding-top: 7px; padding-bottom: 7px; }
  .window-bar { padding-top: 6px; padding-bottom: 6px; }
}

html { -webkit-text-size-adjust: 100%; }

/* ========== 兼容旧 class ========== */
.card { }
.col { }
.feed { }

/* ========== 搜索栏 ========== */
.search-bar {
  position: sticky; top: 101px; z-index: 19;
  padding: 9px 20px;
  background: rgba(18,25,34,.85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.search-box {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-deep); border: 1px solid transparent; border-radius: 999px;
  padding: 7px 12px; transition: .18s;
}
.search-box:focus-within { background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-ic { font-size: 15px; opacity: .6; flex-shrink: 0; }
.search-input {
  flex: 1; border: 0; background: transparent; outline: none;
  /* 16px：iOS WKWebView 聚焦 <16px 输入框会自动放大页面（App 内点搜索框整个画面变大的根因） */
  font-size: 16px; font-family: inherit; color: var(--ink-strong); min-width: 0;
}
.search-input::-webkit-search-cancel-button { display: none; }
.search-ocr, .search-clear {
  flex-shrink: 0; border: 0; background: var(--accent); color: #fff;
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  font-size: 15px; display: flex; align-items: center; justify-content: center;
  transition: .15s; padding: 0;
}
.search-ocr { background: linear-gradient(135deg,#f05952,#c62828); }
.search-clear { background: #b9c0c9; }
.search-ocr:hover, .search-clear:hover { transform: translateY(-1px); filter: brightness(1.05); }
.search-ocr:active, .search-clear:active { transform: translateY(0); }
.ocr-status {
  font-size: 12px; color: var(--accent); margin-top: 6px; padding-left: 4px;
  display: flex; align-items: center; gap: 6px;
}
.ocr-status::before { content: ""; width: 10px; height: 10px; border: 2px solid var(--accent); border-top-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.search-count {
  font-size: 12px; color: var(--muted); margin-top: 6px; padding-left: 4px;
}
.search-count:empty { display: none; }
.search-history {
  margin-top: 8px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px 12px; box-shadow: var(--shadow-md);
}
.sh-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sh-head span { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.sh-clear { border: 0; background: transparent; color: var(--accent); font-size: 12px; cursor: pointer; font-family: inherit; }
.sh-clear:hover { text-decoration: underline; }
.sh-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.sh-chip {
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2);
  border-radius: 999px; padding: 5px 12px; font-size: 13px; cursor: pointer;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: inherit; transition: .15s;
}
.sh-chip:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

/* 图中文字识别 */
.tl-ocr { margin-top: 8px; }
.tl-ocr-btn {
  border: 1px dashed var(--accent); background: var(--accent-soft); color: var(--accent);
  border-radius: 8px; padding: 5px 10px; font-size: 12.5px; cursor: pointer; font-family: inherit; transition: .15s;
}
.tl-ocr-btn:hover:not(:disabled) { background: rgba(232,72,74,.2); }
.tl-ocr-btn:disabled { opacity: .7; cursor: default; }
.tl-ocr-cap {
  margin-top: 6px; font-size: 12.5px; line-height: 1.5; color: var(--ink-2);
  background: var(--surface-2); border-left: 3px solid var(--accent); border-radius: 6px; padding: 6px 9px;
  max-height: 120px; overflow: auto; word-break: break-word;
}
/* 搜索命中高亮（关键字标红） */
mark { color: #e8484a; background: rgba(232,72,74,.14); font-weight: 600; border-radius: 3px; padding: 0 1px; }

/* 全局搜索结果卡片（跨频道） */
.search-result { padding: 10px 14px; }
.search-result .sr-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 12px; }
.search-result .sr-ch { color: var(--accent); font-weight: 600; background: var(--accent-soft); border-radius: 6px; padding: 1px 8px; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-result .sr-time { color: var(--muted); }
.search-result .m-text { font-size: var(--fs, 15px); line-height: 1.6; }
.search-empty { padding: 40px 20px; text-align: center; color: var(--muted); font-size: 14px; }

/* 语音播报中指示 */
.btn.speaking { color: var(--accent) !important; background: var(--accent-soft) !important; }
.btn.speaking .ic { animation: spk 1s infinite; display: inline-block; }
@keyframes spk { 0%,100% { transform: scale(1); } 50% { transform: scale(1.25); } }

@media (max-width: 520px) {
  .search-bar { padding: 8px 12px; top: 95px; }
  /* .search-input 不再降字号：保持 16px 防 iOS 聚焦缩放 */
}

/* 加载更多 */
.load-more-btn {
  display: block; width: 100%; margin: 16px auto 28px; padding: 11px 16px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--accent);
  font-size: 14px; font-weight: 600; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: background .15s ease, transform .1s ease;
}
.load-more-btn:hover { background: var(--accent-soft); transform: translateY(-1px); }
.load-more-btn:active { transform: translateY(0); }

/* ========== 微信支付续费 ========== */
.pay-sep { display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; color: var(--muted); font-size: 12px; }
.pay-sep::before, .pay-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pay-windows { display: flex; flex-direction: column; gap: 6px; max-height: 150px; overflow-y: auto; margin-bottom: 10px; }
.pay-window { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; cursor: pointer; transition: all .15s; }
.pay-window:hover { border-color: var(--accent); }
.pay-window.sel { border-color: var(--accent); background: var(--accent-soft); }
.pay-window .wn { font-weight: 600; font-size: 13px; flex: 1; }
.pay-window .wexp { font-size: 12px; color: var(--muted); }
.pay-window .wexp.expired { color: var(--danger); font-weight: 600; }
.pay-plans { display: flex; gap: 8px; margin-bottom: 12px; }
.pay-plan { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 8px 6px; text-align: center; cursor: pointer; transition: all .15s; }
.pay-plan:hover { border-color: var(--accent); }
.pay-plan.sel { border-color: var(--accent); background: var(--accent-soft); }
.pay-plan .pn { font-weight: 700; font-size: 13.5px; }
.pay-plan .pp { font-size: 12.5px; color: var(--danger); margin-top: 2px; }
.pay-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 2px; }
.pay-amount { font-size: 13px; color: var(--ink-2); }
.pay-amount b { color: var(--danger); font-size: 15px; }
.pay-qr { display: flex; justify-content: center; margin: 6px 0 10px; }
.pay-qr img { width: 220px; height: 220px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px; background: #fff; }
.pay-card { max-width: 340px; }
.pay-tip { font-size: 12px; color: var(--muted); text-align: center; margin-top: 4px; }
/* 空白消息位不占位：付款/AI/组合套餐弹窗里的 .msg 在未产生消息时是一条空灰条，视觉上像多余元素
   （有内容时——如下单失败、支付成功——照常显示） */
.pay-card .msg:empty { display: none; }
/* ---------- 淘宝店铺入口（多渠道售卖） ----------
   App 壳内**也显示**：用户确认 iOS 端走 TestFlight（未上架 App Store），
   不受 App Store 审核条款 3.1.1「不得在 App 内引导站外购买数字内容」约束，
   故安卓 + iOS 客户端内一律展示该入口（2026-09-17 定）。
   如需恢复隐藏（例如日后正式上架 App Store），加回一条规则：
   在 `.in-app` 环境下把 `.js-tb` 设为 display:none!important 即可。
   注意 index.html 内联样式里另有一组 .pay-sep / #payWindows / #payPlansRow / .pay-bar
   的 App 内隐藏规则，那组针对的是「微信扫码续费」区（App 内确实无法扫码），与淘宝入口无关。 */
.tb-entry { display: flex; align-items: center; gap: 6px; margin-top: 12px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px; font-size: 13px; color: var(--ink-2);
  cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tb-entry:active { background: var(--surface-2, rgba(127,127,127,.06)); }
.tb-entry .tb-ico { font-size: 15px; line-height: 1; }
.tb-entry .tb-arrow { margin-left: auto; font-size: 18px; line-height: 1; color: var(--muted); }

/* ---------- 我的（账户页） ---------- */
.my-card { max-width: 420px; }
.my-channels { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; max-height: 60vh; overflow-y: auto; }
.my-ch { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.my-ch .my-name { font-weight: 700; font-size: 15px; flex: 1; }
.my-ch .my-status { font-size: 12.5px; color: var(--muted); }
.my-ch .my-status.ok { color: var(--fall); }
.my-ch .my-status.no { color: var(--danger); font-weight: 600; }
.my-ch .my-act { width: auto; min-width: 84px; padding: 8px 14px; margin: 0; }

/* ===== AI 分析相关个股（按需） ===== */
.tl-ai { margin: 8px 0 2px; padding-top: 8px; border-top: 1px dashed var(--line-strong); }
.tl-ai-btn { font-size: 12px; padding: 5px 12px; border: 1px solid var(--ai-border, #2b6cff); color: var(--ai-color, #6ea0ff); background: var(--ai-bg, #0d1a2b); border-radius: 14px; cursor: pointer; transition: background .15s; }
.tl-ai-btn:hover { background: var(--ai-bg-hover, #14233a); }
.tl-ai-btn:disabled { opacity: .6; cursor: default; }
.tl-ai-stocks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ai-stock { font-size: 12px; padding: 3px 10px; border-radius: 12px; cursor: copy; border: 1px solid transparent; }
.ai-stock.up { color: var(--rise); background: rgba(255,107,107,.12); border-color: rgba(255,107,107,.35); }
.ai-stock.down { color: var(--fall); background: rgba(76,217,123,.12); border-color: rgba(76,217,123,.35); }
.ai-stock.mid { color: var(--muted); background: rgba(143,163,184,.12); border-color: rgba(143,163,184,.3); }
.tl-ai-summary { margin-top: 6px; font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.tl-ai-tip { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ===== 滚动条（加大加明显，深色） ===== */
::-webkit-scrollbar { width: 14px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #3f6ea8; border-radius: 7px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #5b8cc9; }
::-webkit-scrollbar-corner { background: transparent; }

/* ===== 新消息提示 ===== */
.new-msg-tip {
  position: fixed; right: 18px; top: 96px; z-index: 500;
  background: var(--accent); color: #fff; border: 1px solid var(--accent-d);
  padding: 7px 14px; border-radius: 16px; font-size: 12px; cursor: pointer;
  box-shadow: 0 4px 14px rgba(232,72,74,.35); display: flex; align-items: center; gap: 6px;
  user-select: none;
}
.new-msg-tip.hidden { display: none; }
.new-msg-tip:hover { background: var(--accent-d); }
.new-msg-tip .cnt {
  background: #fff; color: var(--accent); border-radius: 9px; font-size: 11px;
  padding: 0 6px; line-height: 16px; font-weight: 700; min-width: 16px; text-align: center;
}
@media (max-width: 600px) {
  /* 手机：提示条固定在左下角"客服"悬浮按钮的正上方，与客服同列（避开右下角"回顶"按钮） */
  .new-msg-tip {
    top: auto; right: auto; left: 14px; transform: none;
    bottom: calc(62px + env(safe-area-inset-bottom, 0px));
    padding: 8px 16px; border-radius: 999px; font-size: 13px;
  }
  .new-msg-tip:active { background: var(--accent-d); }
  .new-msg-tip .cnt { font-size: 12px; }
}

/* ===== 右上角「N 条新消息」浮条（看历史时新消息到达 → 只提示条数，点击回顶看最新） =====
   --nmp-top 由 app.js 按置顶栏实测高度写入（顶栏高度含 App 状态栏避让，写死会错位） */
.new-msg-pill {
  position: fixed; right: 14px; top: var(--nmp-top, 64px); z-index: 501;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--accent); color: #fff; border: 1px solid var(--accent-d);
  font-size: 12.5px; font-weight: 600; user-select: none;
  pointer-events: none;   /* 纯提示条：不可点击，点击穿透到下方消息 */
  box-shadow: 0 6px 18px rgba(232,72,74,.36);
  -webkit-tap-highlight-color: transparent;
  animation: nmp-in .18s ease-out;
}
.new-msg-pill.hidden { display: none; }
/* 2026-10-08 晚：右上角「N 条新消息」浮条退役（用户口径：未读条数统一在底部导航栏「首页」角标显示）。
   双保险：app.js renderNewMsgPill 已恒隐藏，这里再兜底，防止任何旧代码路径把它点亮。 */
.new-msg-pill { display: none !important; }
.new-msg-pill .nmp-ic { display: inline-flex; align-items: center; }
.new-msg-pill .nmp-n {
  background: #fff; color: var(--accent); border-radius: 9px;
  font-size: 11.5px; font-weight: 700; min-width: 17px; text-align: center;
  padding: 1px 6px; line-height: 15px;
}
@keyframes nmp-in { from { opacity: 0; transform: translateY(-7px); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) {
  .new-msg-pill { right: 12px; padding: 8px 15px; font-size: 13px; }
  .new-msg-pill .nmp-n { font-size: 12px; }
}

/* ===== 消息中的网页链接 ===== */
a.msg-link { color: var(--link); text-decoration: underline; cursor: pointer; word-break: break-all; }
a.msg-link:hover { color: var(--accent); }

/* ===== 消息自动打标（AI 分析：体裁 + 主题 + 情绪 + 一句话理由） ===== */
.d-tag { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; min-height: 22px; }
.tg { display: inline-flex; align-items: center; font-size: 12px; line-height: 1; padding: 4px 9px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.tg-type { background: #eef2ff; color: #3b4cca; border: 1px solid #dbe2ff; }
.tg-topic { background: #fff7ed; color: #c2641a; border: 1px solid #ffe6cc; }
.tg-theme { background: #f5f0ff; color: #7c3aed; border: 1px solid #ece3ff; }
.tg-sector { background: #e6f7f9; color: #0b7a8a; border: 1px solid #c9eef2; }
.tg-ind { background: #fff1f5; color: #be185d; border: 1px solid #fbcfe0; }
.tg-sent { color: #fff; }
.tg-sent.up { background: #e0241b; }
.tg-sent.down { background: #13a063; }
.tg-sent.mid { background: #8a94a6; }
.tg-sent.strong { box-shadow: 0 0 0 2px rgba(224, 36, 27, .18); }
.tg-sent.down.strong { box-shadow: 0 0 0 2px rgba(19, 160, 99, .18); }
.tg-lock { background: #f3f4f6; color: #6b7280; border: 1px dashed #c4c9d2; cursor: pointer; }
.tg-lock:hover { background: #eceef1; color: #374151; }
/* 消息正文中的股票：可点击联动（复制代码），hover 变品牌红加深反馈 */
a.stk {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  border-bottom: 1px dashed currentColor;
  padding-bottom: 1px;
}
a.stk:hover { color: var(--accent); }
/* 一句话解读框：放在正文后面（苹果字体、暖杏底 + 品牌红左边条，加粗加大方便阅读） */
.d-reason {
  margin-top: 9px;
  padding: 10px 13px;
  font-size: 14px;
  line-height: 1.8;
  font-weight: 400;
  color: #7cb8ff;
  background: #252d36;
  border: 1px solid rgba(74,144,255,.28);
  border-left: 3px solid #2b6cff;
  border-radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
}
.d-reason a.stk { border-bottom-color: rgba(124,184,255,.55); }
.d-reason a.stk:hover { color: #7cc0ff; }

/* ================================================================
 *  白底模式下的组件覆盖（组件背景原本硬编码深色，这里按主题还原）
 *  仅当 html.theme-light 时生效；深色为默认，无需覆盖。
 * ================================================================ */
html.theme-light .topbar,
html.theme-light .window-bar,
html.theme-light .search-bar {
  background: rgba(255,255,255,.92);
  border-bottom-color: var(--line);
}
html.theme-light .install-bar {
  background: rgba(255,255,255,.96);
  border-color: var(--line-strong);
  box-shadow: 0 8px 30px rgba(16,24,40,.14);
}
html.theme-light .install-bar .ib-close,
html.theme-light .sheet-close,
html.theme-light .lb-close,
html.theme-light .lb-btn { background: rgba(16,24,40,.06); color: var(--ink-2); }
html.theme-light .install-bar .ib-close:hover,
html.theme-light .sheet-close:hover { background: rgba(16,24,40,.12); color: var(--ink-strong); }

/* 弹窗遮罩在白底下稍浅（卡片本身已是白底） */
html.theme-light .modal { background: rgba(16,24,40,.42); }

/* 一句话解读框：白底蓝字 */
html.theme-light .d-reason {
  color: #1f6feb;
  background: #f4f8ff;
  border-color: rgba(43,108,255,.28);
  border-left-color: #2b6cff;
}
html.theme-light .d-reason a.stk { border-bottom-color: rgba(43,108,255,.45); }
html.theme-light .d-reason a.stk:hover { color: #1d6fd1; }

/* AI 分析按钮（原带深色 fallback 色）白底还原 */
html.theme-light .tl-ai-btn { color: #2b6cff; background: #eef3ff; border-color: #cfe0ff; }
html.theme-light .tl-ai-btn:hover { background: #e2ecff; }

/* 长图底部渐隐：深色渐变 → 白色渐变 */
html.theme-light .tl-single-wrap.is-long::after {
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,.94));
}

/* 图片加载占位 shimmer → 浅灰 */
html.theme-light .tl-img-slot {
  background: linear-gradient(100deg, #eef1f5 30%, #e2e6ec 50%, #eef1f5 70%);
}

/* 滚动条：白底下用浅灰滑块 */
html.theme-light ::-webkit-scrollbar-thumb { background: #c2c8d0; border-color: #fff; }
html.theme-light ::-webkit-scrollbar-thumb:hover { background: #a9b0b9; }

/* 收藏色面板在白底下略微加深底色以保证可读 */
html.theme-light .msg.faved { background: var(--fav-bg, rgba(224,49,49,.10)); }

/* ===== 美股题材看板窗口（iframe 内嵌） ===== */
/* 美股题材窗口：消息流平时靠内容撑高，切到该窗口后内容清空会导致容器塌陷（iframe 不可见）。
   这里把 iframe 改为 fixed 铺满「main 顶边 → 视口底」，并让 #feed 自身高度归零，避免整页被撑出空白/滚动。 */
body.us-board-mode .install-bar { display: none !important; }
#feed.us-board-mode { padding: 0 !important; position: relative; background: #f2f4f6; height: 0; overflow: visible; }
#feed.us-board-mode .us-board-iframe {
  position: fixed;
  top: var(--us-board-top, 0px);
  left: 0;
  width: 100%;
  /* 底部要让开主导航（频道条在看板视图已隐藏）。
     1013：高度优先用 JS 实量像素 --us-board-h（tabbar 顶 - main 顶）——App 安卓 WebView 里
     100vh(≈806) ≠ window.innerHeight(844)，纯 calc 会少算 38px 导致看板底部贴不上主导航 */
  height: var(--us-board-h, calc(100vh - var(--us-board-top, 0px) - var(--tabbar-h) - env(safe-area-inset-bottom, 0px)));
  border: 0;
  background: #f2f4f6;
  z-index: 30;
}
.win-tab-us { --ch: #ffb020; }
.win-tab-outer { --ch: #ffb020; }

/* ========== 底部主导航（5 Tab）— 2026-10-08 新增 ========== */
/* 2026-10-08 第三轮：完全对齐财联社 App（白底 / 顶边线 #E5EAED / 高 50px / 图标 22px / 字号 11px / 选中 #F7574E，无顶部横条） */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: stretch;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: #fff;
  border-top: 1px solid var(--cls-line);
  user-select: none; -webkit-user-select: none;
}
html:not(.theme-light) .tabbar {
  background: rgba(18,25,34,.96); border-top-color: var(--line);
  backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
}
.tab-item {
  position: relative;
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 0 2px;
  background: none; border: 0; cursor: pointer;
  color: var(--cls-gray); font-family: inherit; font-size: 11px; font-weight: 400;
  letter-spacing: -.27px;
  transition: color .18s;
}
html:not(.theme-light) .tab-item { color: var(--muted); }
.tab-item .ti-ico { display: inline-flex; align-items: center; justify-content: center; height: 22px; }
.tab-item .ico { width: 22px; height: 22px; }
.tab-item .ti-lbl { line-height: 1.1; white-space: nowrap; }
.tab-item:active { opacity: .72; }
.tab-item.active { color: var(--cls-red); font-weight: 500; }
html:not(.theme-light) .tab-item.active { color: var(--accent); }
.tab-item.active .ti-ico { transform: none; }
/* 财联社底栏选中态 = 纯色高亮，无顶部横条 */
.tab-item.active::before { display: none; }
.ti-badge {
  position: absolute; top: 3px; left: 50%; margin-left: 6px;
  min-width: 15px; height: 15px; line-height: 15px; padding: 0 4px;
  border-radius: 999px; background: var(--danger); color: #fff;
  font-size: 10px; font-weight: 700; text-align: center;
  box-sizing: border-box;
}
.ti-badge.hidden { display: none; }
html.theme-light .tabbar { background: rgba(255,255,255,.96); border-top-color: var(--line); }
/* 桌面宽屏：限制宽度居中，避免 5 个 Tab 拉得过散 */
@media (min-width: 720px) {
  .tabbar { left: 50%; transform: translateX(-50%); width: 720px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
  .window-bar { left: 50%; transform: translateX(-50%); width: 720px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}
.win-tab-tiku { --ch: #c0392b; }   /* 题材库：与独立站品牌色（朱红）一致 */
/* 看板加载兜底提示（跨域 iframe 15s 内未触发 load 才出现）：fixed 悬浮在底部居中，不遮挡 iframe 主体 */
.board-fallback {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  z-index: 40; max-width: calc(100vw - 32px);
  background: rgba(31, 35, 41, 0.92); color: #fff; font-size: 12.5px; line-height: 1.6;
  padding: 9px 14px; border-radius: 999px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.board-fallback a { color: #ffd479; text-decoration: underline; margin-left: 2px; }
.board-fallback.hidden { display: none !important; }

/* ===== 外盘题材选择弹窗 ===== */
.board-select-mask {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15, 18, 23, 0.55);
  display: flex; align-items: center; justify-content: center;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.board-select-box {
  width: 360px; max-width: calc(100vw - 32px);
  background: #fff; border-radius: 16px; padding: 22px 20px 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,.28); font-family: inherit;
}
.board-select-title { font-size: 17px; font-weight: 700; color: #1f2329; text-align: center; }
.board-select-sub { font-size: 12px; color: #8b93a3; text-align: center; margin-top: 6px; line-height: 1.6; }
.board-select-opts { display: flex; gap: 14px; margin: 18px 0 6px; }
.board-opt {
  flex: 1; cursor: pointer; border: 1.5px solid #e6e9ef; border-radius: 12px;
  padding: 16px 10px; background: #fafbfc; text-align: center; transition: .15s;
}
.board-opt:hover { border-color: #ffb020; background: #fff8ec; transform: translateY(-2px); }
.board-opt-ico { font-size: 30px; line-height: 1; }
.board-opt-name { font-size: 15px; font-weight: 700; color: #1f2329; margin-top: 8px; }
.board-opt-desc { font-size: 11.5px; color: #8b93a3; margin-top: 5px; line-height: 1.5; }
.board-select-cancel {
  display: block; width: 100%; margin-top: 14px; cursor: pointer;
  border: none; background: #f2f4f6; color: #5a6373; border-radius: 10px; padding: 10px; font-size: 13px;
}
.board-select-cancel:hover { background: #e9edf2; }
.board-pick-tip {
  text-align: center; color: #5a6373; padding: 40px 20px; font-size: 14px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.board-pick-btn {
  cursor: pointer; border: none; background: #ffb020; color: #1f2329;
  border-radius: 10px; padding: 10px 18px; font-size: 13px; font-weight: 600;
}
.board-pick-btn:hover { background: #ffa000; }

/* ---- Solar SVG icons (sizing & alignment) ---- */
svg.ico{width:1em;height:1em;display:inline-block;vertical-align:-0.15em;pointer-events:none;flex:none}
.btn .ic svg.ico,.win-tab svg.ico,.win-tab-color svg.ico,.win-tab-clear svg.ico{vertical-align:-0.12em}
.tl-ai-btn svg.ico,.tg-lock svg.ico,.my-name svg.ico{vertical-align:-0.15em}
.new-msg-tip svg.ico{vertical-align:-0.18em}
.search-ic svg.ico,.search-ocr svg.ico{width:1.15em;height:1.15em}
.ga-title svg.ico,.ib-icon svg.ico{width:1.1em;height:1.1em;vertical-align:-0.18em}
.tl-feishu-img-placeholder__icon svg.ico,.tl-video-fail__icon svg.ico{width:1em;height:1em}
.lb-ctx svg.ico{vertical-align:-0.15em}

/* ---- 顶栏按钮 → 频道胶囊风格 ---- */
.topbar .btn.ghost{border:1px solid var(--line-strong);background:var(--surface-2);color:var(--ink-2);border-radius:999px;padding:6px 14px;font-weight:600}
.topbar .btn.ghost:hover{background:var(--bg-hover);transform:translateY(-1px)}
/* ---- AI 打标按钮入操作排 ---- */
.msg-actions{max-width:calc(100% - 16px);flex-wrap:wrap;justify-content:flex-end}

/* ===== 卡片顶部行：AI 标签(左) + 操作按钮(右) 同一排 ===== */
.msg-toprow { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 4px; }
.msg-toprow .d-tag { flex: 1 1 auto; margin: 0; }
.msg-toprow .msg-actions { position: static; margin-left: auto; flex-shrink: 0; }

/* ===== 频道栏/搜索栏随内容滚动（取消吸附）=====
   ⚠️ 2026-10-08：频道条已从顶部下沉到底部（fixed），此处**只**取消搜索栏吸附；
   频道条必须保持 fixed（写在文件前段），不能再被 position:static 覆盖。 */
.search-bar { position: static; }

/* ===== 一键回顶按钮（右下角） ===== */
.back-top {
  position: fixed; right: 16px; bottom: calc(var(--tabbar-h) + 10px + env(safe-area-inset-bottom, 0px)); z-index: 480;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--bg-card); color: var(--ink-strong);
  font-size: 12.5px; font-weight: 600; cursor: pointer;
  box-shadow: var(--shadow-md, 0 4px 14px rgba(0,0,0,.12));
  transition: border-color .15s, color .15s, transform .15s;
}
.back-top:hover { border-color: var(--accent-border, var(--accent)); color: var(--accent); transform: translateY(-2px); }
.back-top .ico { width: 14px; height: 14px; }
.back-top.hidden { display: none; }
body.us-board-mode .back-top { display: none !important; }
/* 看图（lightbox 打开）时：回顶 / 未读浮条 / 客服悬浮球一律隐藏，不得压在图片上（与 me-open 同口径） */
body.lb-open .back-top,
body.lb-open .new-msg-tip,
body.lb-open .cs-fab { display: none !important; }
/* 看板模式（外盘 / 题材库 iframe 铺满）下，左下角的客服悬浮球和右下角的「N 条新消息」浮条
   都会压住内嵌站自己的底部导航栏（题材库的「总览 / 每日复盘 / 题材图谱 …」被挡得点不到）。
   整条隐藏，切回消息频道时自动恢复 —— 同一个 body class 控制。 */
body.us-board-mode .cs-fab { display: none !important; }
body.us-board-mode .new-msg-tip { display: none !important; }
/* 看板模式（外盘 / 题材库）下隐藏「消息」自己的搜索栏：
   内嵌站自己有搜索（题材库能搜题材名 / 环节关键词），两条搜索栏上下叠着极易混淆；
   另外消息搜索是搜消息流的，在看板模式下也搜不到任何东西。
   隐藏后 main 顶边上移，iframe 的 top 是每次装载时实测的，会自动上提铺满这块空间。 */
body.us-board-mode .search-bar { display: none !important; }
@media (max-width: 720px) {
  /* 手机：2026-10-08 底部新增「频道条 + 主导航」两栏 → 所有贴底悬浮元素统一从 --tabbar-h 起算，
     有 App 下载条（body.has-ib）时再叠加它的高度，绝不能被压在下面（压住=点不到）。 */
  /* 手机：回顶与未读浮条同一贴底基准（导航栏上面一点点），左右分列不冲突；
     has-ib 时两者一起越过安装引导条（+118）。 */
  .back-top { right: 12px; bottom: calc(var(--tabbar-h) + 10px + env(safe-area-inset-bottom, 0px)); }
  body.has-ib .back-top { bottom: calc(var(--tabbar-h) + 118px + env(safe-area-inset-bottom, 0px)); }
  body.has-ib .cs-fab { bottom: calc(var(--tabbar-h) + 128px + env(safe-area-inset-bottom, 0px)); }
  /* 2026-10-08 晚：未读浮条贴近主导航上沿（原 +120/+176 太高，用户要求「导航栏上面一点点」）。
     has-ib 时仍须越过安装引导条（bottom=tabbar+52、高约 58px → 顶到 tabbar+110），故 +118。 */
  body.has-ib .new-msg-tip { bottom: calc(var(--tabbar-h) + 118px + env(safe-area-inset-bottom, 0px)); }
  body:not(.has-ib) .new-msg-tip { bottom: calc(var(--tabbar-h) + 10px + env(safe-area-inset-bottom, 0px)); }
}

/* ===== 设置弹层 ===== */
.settings-pop {
  position: fixed; top: calc(52px + var(--app-sat, env(safe-area-inset-top, 0px))); right: 12px; z-index: 600;
  display: flex; flex-direction: column; gap: 8px; padding: 12px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-md, 0 8px 24px rgba(0,0,0,.18));
  min-width: 190px;
}
.settings-pop.hidden { display: none; }
.settings-pop .btn { justify-content: flex-start; width: 100%; margin: 0; }
.settings-pop .btn .lbl { flex: 1; text-align: left; }

/* ===== 设置弹层内按钮：与顶栏胶囊按钮同风格（去红色强调） ===== */
.settings-pop .btn.ghost{border:1px solid var(--line-strong);background:var(--surface-2);color:var(--ink-2);border-radius:999px;padding:8px 14px;font-weight:600}
.settings-pop .btn.ghost:hover{background:var(--bg-hover);transform:none}

/* ===== 字体大小设置（设置弹层 · 小/标准/大/特大） ===== */
:root { --fs: 1; }
html[data-fs="s"] { --fs: .9; }
html[data-fs="m"] { --fs: 1; }
html[data-fs="l"] { --fs: 1.15; }
html[data-fs="xl"] { --fs: 1.32; }
.tl-text { font-size: calc(14px * var(--fs)); }
.msg-header-name { font-size: calc(14px * var(--fs)); }
.msg-header-time { font-size: calc(11px * var(--fs)); }
.tg { font-size: calc(12px * var(--fs)); }
.d-reason { font-size: calc(14px * var(--fs)); }
.file-link { font-size: calc(13px * var(--fs)); }
.file-link .sz { font-size: calc(11.5px * var(--fs)); }
.tl-empty-hint { font-size: calc(13px * var(--fs)); }
.tl-video-fail__text { font-size: calc(13px * var(--fs)); }
.tl-video-fail__name { font-size: calc(12px * var(--fs)); }
.tl-feishu-img-placeholder__text { font-size: calc(13px * var(--fs)); }

/* 字体大小控件 */
.fs-row { display: flex; align-items: center; gap: 10px; padding: 2px 2px 0; }
.fs-label { font-size: 12.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.fs-seg { display: flex; gap: 2px; margin-left: auto; background: var(--surface-2);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; }
.fs-btn { border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 600;
  padding: 4px 9px; border-radius: 999px; cursor: pointer; font-family: inherit; transition: .15s; white-space: nowrap; }
.fs-btn:hover { color: var(--ink-strong); }
.fs-btn.active { background: var(--bg-card); color: var(--ink-strong); box-shadow: var(--shadow-sm); }

/* ===== 字体缩放补全：消息正文 .m-text 等真实内容类 ===== */
.m-text { font-size: calc(17px * var(--fs)); line-height: calc(1.61 * 1); }
.m-text.tl-empty-hint { font-size: calc(13px * var(--fs)); }
.tl-ai-summary { font-size: calc(12.5px * var(--fs)); }
.tl-ai-tip { font-size: calc(12px * var(--fs)); }
.ai-stock { font-size: calc(12px * var(--fs)); }
.tl-video-fail__meta { font-size: calc(11px * var(--fs)); }
.tl-feishu-img-placeholder__count { font-size: calc(11.5px * var(--fs)); }

/* ===== 设置弹层：滑块开关（消息提醒 / 语音播报 / 深色模式） ===== */
.settings-pop .btn .sw {
  flex: 0 0 auto; margin-left: auto; align-self: center;
  width: 42px; height: 24px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line-strong);
  position: relative; transition: background .2s ease, border-color .2s ease;
}
.settings-pop .btn .sw .sw-k {
  position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.28);
  transition: transform .2s ease;
}
.settings-pop .btn .sw.on { background: var(--accent); border-color: var(--accent); }
.settings-pop .btn .sw.on .sw-k { transform: translateX(18px); }
.settings-pop .btn .sw-text { flex: 0 0 auto; margin-left: 6px; font-size: 12px; color: var(--ink-2); width: 2em; text-align: left; }

/* ===== 灯箱适配 App 壳：顶部避让灵动岛/刘海 + 禁用原生双击缩放（手势由 JS 自实现） ===== */
.lb-bar { padding-top: calc(10px + var(--app-sat, env(safe-area-inset-top, 0px))); }
.lightbox, .lb-wrap, .lb-img, .lb-bar { touch-action: manipulation; }
.lightbox.is-long .lb-wrap { padding-top: calc(52px + var(--app-sat, env(safe-area-inset-top, 0px))); }

/* ===== 收藏高亮色选择：中心弹窗（覆盖原小浮层样式） ===== */
.fav-color-pop {
  position: fixed; top: 0; right: auto; bottom: 0; left: 0; transform: none; margin: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.45); z-index: 95;
}
.fav-color-card {
  background: var(--bg-card); border: 1px solid var(--line-strong); border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.4); padding: 20px 24px 22px; min-width: 270px;
}
.fav-color-title { font-size: 14px; font-weight: 700; color: var(--ink-strong); text-align: center; margin-bottom: 16px; }
.fav-color-row { display: flex; gap: 16px; justify-content: center; }
.fav-swatch { width: 36px; height: 36px; }
.fav-swatch.sel { box-shadow: 0 0 0 3px #ffb300, 0 1px 3px rgba(0,0,0,.25); }

/* ===== App 端卡片页边距加宽（卡片与屏幕两侧距离） ===== */
@media (max-width: 820px) { main { padding-left: 16px; padding-right: 16px; } }
@media (max-width: 600px) { main { padding-left: 16px; padding-right: 16px; } }
@media (max-width: 380px) { main { padding-left: 14px; padding-right: 14px; } }

/* ===== 收藏高亮色：改为设置弹层(settings-pop)同款小卡片浮层，覆盖上一版全屏遮罩 ===== */
.fav-color-pop {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  right: auto; bottom: auto; margin: 0;
  display: flex; flex-direction: column; gap: 10px; padding: 12px;
  background: var(--bg-card); border: 1px solid var(--line-strong); border-radius: 14px;
  box-shadow: var(--shadow-md, 0 8px 24px rgba(0,0,0,.18)); z-index: 60;
}
.fav-color-title { font-size: 12px; font-weight: 600; color: var(--ink-2); text-align: center; margin-bottom: 0; }
.fav-color-row { display: flex; gap: 12px; justify-content: center; }
.fav-swatch { width: 30px; height: 30px; }

/* ===== AI 智能排版：正文自动分段 + 重点高亮（仅经过 AI 打标的消息，2026-09-08） ===== */
.rt-head {
  display: block; font-weight: 800; color: var(--ink-strong);
  font-size: 17px; line-height: 1.61; margin: 3px 0 7px;
}
.rt-p { margin: 0 0 8px; line-height: 1.61; }
.rt-p:last-child { margin-bottom: 0; }
.rt-item {
  margin: 0 0 7px; padding-left: 10px; line-height: 1.61;
  border-left: 2px solid var(--line-strong);
}
.rt-item:last-child { margin-bottom: 0; }
.hl-up, .hl-kup, .hl-down, .hl-kdown, .hl-num, .hl-mark { font-weight: 700; } /* 重点只加粗不变色（2026-09-08 用户定稿） */

/* ===== 收藏色弹层：fixed 定位在 body 上（JS 计算坐标），彻底摆脱 window-bar overflow-x:auto 的裁剪 ===== */
.fav-color-pop {
  position: fixed !important; top: auto; left: auto; right: auto; bottom: auto;
  transform: none; margin: 0;
  display: none; flex-direction: column; gap: 10px; padding: 12px;
  background: var(--bg-card) !important;
  border: 1px solid var(--line-strong); border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.28); z-index: 999;
}

/* ===== 在线客服（悬浮按钮 + 聊天窗） ===== */
.cs-fab {
  /* 让开「主导航 + 频道条」两栏（截图复核后从 +52 调到 +66：原值仍会压住频道条左侧胶囊） */
  position: fixed; left: 14px; bottom: calc(var(--tabbar-h) + 66px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  display: flex; align-items: center; gap: 6px; padding: 9px 14px;
  border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer;
  background: var(--surface); color: var(--ink-2); font-family: inherit; font-size: 13px; font-weight: 700;
  box-shadow: var(--shadow-md); transition: .18s;
}
.cs-fab:hover { color: var(--accent); border-color: var(--accent); }
.cs-fab .ico { width: 17px; height: 17px; }
.cs-dot {
  position: absolute; top: -4px; right: -2px; min-width: 17px; height: 17px; padding: 0 5px;
  background: var(--accent); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 800;
  line-height: 17px; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.cs-panel {
  position: fixed; z-index: 70; right: 0; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  width: min(420px, 100vw); height: min(72vh, 640px);
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line-strong);
  border-radius: 16px 16px 0 0; box-shadow: var(--shadow-md);
  animation: csIn .22s ease-out;
}
@keyframes csIn { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.cs-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  font-weight: 800; font-size: 15px; color: var(--ink-strong);
}
.cs-close { background: none; border: none; color: var(--muted); font-size: 18px; cursor: pointer; padding: 2px 6px; font-family: inherit; }
.cs-close:hover { color: var(--ink-strong); }
.cs-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; }
.cs-hint { text-align: center; color: var(--faint); font-size: 12px; padding: 14px 20px; line-height: 1.6; }
.cs-b { max-width: 80%; padding: 8px 12px; border-radius: 14px; font-size: 14px; line-height: 1.55; word-break: break-word; white-space: pre-wrap; }
.cs-b.me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.cs-b.admin { align-self: flex-start; background: var(--surface-2); color: var(--ink-strong); border: 1px solid var(--line-strong); border-bottom-left-radius: 4px; }
.cs-b .cs-t { display: block; font-size: 10.5px; opacity: .55; margin-top: 3px; text-align: right; }
.cs-input { display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.cs-input input {
  flex: 1; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px;
  font-size: 14px; font-family: inherit; background: var(--bg-deep); color: var(--ink-strong); min-width: 0;
}
.cs-input input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
@media (max-width: 640px) {
  /* 悬浮小窗（与桌面端一致），不再全屏；高度压到 ~46vh，给手机输入法留足空间 */
  .cs-panel {
    width: calc(100vw - 24px); max-width: 420px; height: 46vh; max-height: 440px;
    right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); border-radius: 16px;
  }
}
/* 图片消息 */
.cs-b img.cs-img {
  display: block; max-width: 220px; max-height: 160px; width: auto; height: auto;
  border-radius: 8px; margin: 2px 0 4px; cursor: pointer; background: rgba(0,0,0,.15);
}
.cs-b.me img.cs-img { margin-left: auto; }
.cs-attach {
  flex-shrink: 0; width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--surface); cursor: pointer; font-size: 17px; line-height: 1; padding: 0;
  display: flex; align-items: center; justify-content: center; transition: .15s;
}
.cs-attach:hover { border-color: var(--accent); }
.cs-attach:disabled { opacity: .45; cursor: default; }
#csFile { display: none; }

/* ===== 推送设置弹窗（免打扰/自选频道/盘中模式） ===== */
.pp-modal { position: fixed; inset: 0; z-index: 700; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.pp-modal.hidden { display: none; }
.pp-card { background: var(--bg-card, var(--surface)); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-md, 0 12px 32px rgba(0,0,0,.25)); width: 100%; max-width: 400px; max-height: 86vh; overflow: auto; padding: 18px; color: var(--ink, inherit); }
.pp-head { display: flex; align-items: center; justify-content: space-between; font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.pp-x { border: none; background: var(--surface-2); color: var(--ink-2, inherit); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 14px; }
.pp-sec { font-size: 13px; font-weight: 700; color: var(--ink-2, inherit); margin: 12px 0 6px; }
.pp-seg { display: flex; gap: 6px; }
.pp-seg button { flex: 1; padding: 9px 0; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink-2, inherit); border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; }
.pp-seg button.on { background: var(--accent, #e5484d); border-color: var(--accent, #e5484d); color: #fff; }
.pp-tip { font-size: 12px; color: var(--ink-2, #888); line-height: 1.6; margin-top: 8px; }
.pp-chans { margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; max-height: 220px; overflow: auto; padding: 6px; }
.pp-ch { display: flex; align-items: center; gap: 8px; padding: 7px 8px; font-size: 14px; border-radius: 8px; cursor: pointer; }
.pp-ch:hover { background: var(--surface-2); }
.pp-ch input { accent-color: var(--accent, #e5484d); width: 16px; height: 16px; }
.pp-save { width: 100%; margin-top: 16px; padding: 11px 0; border: none; border-radius: 12px; background: var(--accent, #e5484d); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; }
.pp-save:disabled { opacity: .6; }

/* 订阅页：会员套餐价格 */
.my-price { font-size: 18px; font-weight: 800; color: var(--danger, #e5484d); margin-right: 4px; white-space: nowrap; }
.my-sub { background: var(--surface-2, rgba(127,127,127,.06)); }

/* 订阅状态卡：可点箭头 + 订阅详情弹窗 */
.my-sub .my-arrow { margin-left: auto; font-size: 20px; color: var(--ink-2, #999); line-height: 1; }
/* 订阅页活动位：月/年会员套餐下方的促销卡 */
.my-promo { position: relative; border: 1px solid var(--accent-border, #e8484a); background: var(--accent-soft, #fff1f0); border-radius: 12px; padding: 16px 14px 14px; margin-top: 4px; }
.my-promo-badge { position: absolute; top: -10px; left: 12px; background: var(--accent, #e8484a); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; box-shadow: 0 2px 6px rgba(232,72,74,.25); }
.my-promo-title { font-size: 15px; font-weight: 800; color: var(--ink-strong); padding-right: 4px; }
.my-promo-price { font-size: 28px; font-weight: 800; color: var(--accent); line-height: 1.15; margin: 4px 0 2px; }
.my-promo-price .my-promo-unit { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.my-promo-emph { font-size: 16px; font-weight: 800; color: var(--accent); margin-top: 6px; }
.my-promo-desc { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); margin-top: 8px; }
.my-promo-btn { width: 100%; margin-top: 10px; }
.my-promo .hl { color: var(--accent); font-weight: 800; }
.dt-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.dt-row:last-of-type { border-bottom: none; }
.dt-k { color: var(--ink-2, #888); flex: none; }
.dt-v { font-weight: 600; text-align: right; }
.dt-v.ok { color: var(--ok, #13A86A); }
.dt-v.no { color: var(--ink-2, #888); }
/* 订阅详情：频道 chips 与逐频道行 */
.dt-chans { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.dt-chip { font-size: 12px; line-height: 1; padding: 5px 10px; border-radius: 999px; background: rgba(19,168,106,.09); color: var(--ok, #13A86A); font-weight: 500; }
.dt-k.dt-sub { color: var(--ink, #333); font-weight: 500; }
.dt-row.dt-sep { border-bottom: none; padding-bottom: 2px; }

/* 后台管理：列表分页条 */
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 14px 0 4px; }
.pager .pager-info { font-size: 13px; color: var(--ink-2, #888); }
.pager button:disabled { opacity: .4; cursor: default; }

/* ===== 未读分界线（飞书式：线以上是新消息，线以下是上次看到的位置） ===== */
.unread-divider { position: relative; height: 1px; margin: 16px 0 12px; background: var(--danger); opacity: .8; }
.unread-divider span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--danger); color: #fff; font-size: 11px; font-weight: 600; line-height: 1; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.unread-divider.flash { animation: ud-flash 1.6s ease; }
@keyframes ud-flash { 0%, 100% { opacity: .8; } 35% { opacity: 1; } }
/* 点未读浮条跳转：分界线缺失时锚点落在具体消息卡片上 → 给卡片描一圈高亮环提示"就是这里" */
.tl-item.flash .msg { position: relative; }
.tl-item.flash .msg::after { content: ''; position: absolute; inset: -2px; border: 2px solid var(--accent); border-radius: inherit; pointer-events: none; animation: card-flash 1.6s ease; }
@keyframes card-flash { 0%, 100% { opacity: 0; } 25% { opacity: .9; } }
.new-msg-tip.is-unread .ub-text { font-weight: 600; }

/* 快捷日期 chips（今天/昨天/前天） */
.sh-chip.sh-date { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }

/* ===== 手机端下拉刷新指示器 ===== */
html, body { overscroll-behavior-y: contain; }

/* 🚨 关掉浏览器【原生滚动锚定】(scroll anchoring)，让"看历史时新消息到达不跳"只由我们自己的一套逻辑负责。
   为什么必须关：浏览器（Chromium / Android WebView / Electron）在视口上方内容变高时会自动补偿滚动，
   而 app.js 的 prependTimelineItem / pinViewport 也在做同一件事 —— 【双倍补偿】：
   实测「看历史时来一条新消息」y 从 6256 走到 6634，而内容只增高 189px（正好补了两次 189），
   多出来的那一次把用户正在读的内容整整推走一张卡的高度。
   这正是「这个问题改了几次都没改好」的根因 —— 每加一次 JS 补偿都是在跟浏览器对撞。
   iOS WKWebView 本来就没有原生锚定，关掉它反而让三端行为一致。
   ⚠ 不要删这一行：删了就会恢复双倍补偿（回归）。
   ⚠ 补偿责任全部交给 app.js 的 pinViewport（自带"锚点上方还有未就位内容就持续保护"）。 */
html, body { overflow-anchor: none; }
#feed { overflow-anchor: none; } /* 桌面端是 #feed 容器内滚动；桌面端另有 native 锚定兜底，这里不影响它 */

.ptr-tip {
  position: fixed; left: 50%; top: 0; z-index: 520;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 15px; border-radius: 999px;
  background: var(--surface); color: var(--ink-2);
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
  transform: translate(-50%, -52px); pointer-events: none;
}
.ptr-tip.hidden { display: none; }
.ptr-tip.over { color: var(--accent); border-color: var(--accent); }
.ptr-spin {
  width: 13px; height: 13px; border-radius: 50%; flex: 0 0 auto;
  border: 2px solid var(--line); border-top-color: var(--accent);
}
.ptr-tip.over .ptr-spin { border-top-color: var(--accent); }
.ptr-tip.busy .ptr-spin { animation: ptr-spin .7s linear infinite; }
@keyframes ptr-spin { to { transform: rotate(360deg); } }
body.us-board-mode .ptr-tip { display: none; }

/* ==== 0923：弹窗超高可滚出修复 ====
   原状态：.modal/.ann-modal flex 居中且无 overflow → 弹窗内容高于视口时（如手机端「下载 App」），
   上下同时溢出、遮罩不能滚、关闭键被顶出屏幕 → 卡死。改为 flex-start + margin:auto 居中：
   内容不超高时视觉完全不变；超高时卡片贴顶、遮罩可滚，关闭键始终可达。 */
.modal, .ann-modal {
  align-items: flex-start; justify-content: flex-start;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.modal .modal-card, .ann-modal .ann-card { margin: auto; }

/* ==== fix 20260929: 设置弹层开关布局 (按钮无 flex → .sw 内联导致轨道塌陷、旋钮盖住状态文字) ==== */
.settings-pop .btn { display: flex; align-items: center; }
.settings-pop .btn .sw { display: block; flex: 0 0 auto; }


/* ==========================================================================
   2026-10-08 财联社风 UI 改版（新增块，全部覆盖式写在文件末尾）
   ① 顶栏：头像 / 搜索 / 热榜   ② 首页：来源分栏 + 资讯卡片
   ③ 热榜页   ④ 「我的」页   ⑤ 研报页
   ========================================================================== */
:root { --cn-top-h: 52px; }

/* ---------- ① 顶栏（财联社风） ---------- */
/* 2026-10-08 第三轮：对齐财联社 App 顶栏（白底 44px / 头像 30px / 灰胶囊搜索 / 右侧红色热榜 / 无红色粗线） */
.cn-top {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  box-sizing: border-box;
  min-height: calc(var(--cn-top-h) + var(--app-sat, env(safe-area-inset-top, 0px)));
  padding: 0 12px;
  padding-top: var(--app-sat, env(safe-area-inset-top, 0px));
  background: #fff;
  border-bottom: 1px solid var(--cls-line);
}
html:not(.theme-light) .cn-top {
  background: rgba(18,25,34,.94);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
}
.cn-av {
  width: 30px; height: 30px; border-radius: 50%; flex: none; padding: 0; border: 0;
  background: linear-gradient(135deg,#f05952,#c62828); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; font-weight: 700; font-size: 13px; line-height: 1;
}
.cn-av-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cn-av-txt { font-weight: 700; }
.cn-mid { flex: 1; min-width: 0; }
.cn-top .search-bar {
  position: static; z-index: auto; padding: 0; margin: 0;
  background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.cn-top .search-box { background: #f2f3f5; border-radius: 999px; height: 30px; padding: 0 10px 0 12px; }
html:not(.theme-light) .cn-top .search-box { background: rgba(255,255,255,.10); }
.cn-top .search-ic { font-size: 14px; }
.cn-top .search-ocr, .cn-top .search-clear { width: 24px; height: 24px; }
.cn-top .search-history { position: absolute; left: 12px; right: 12px; top: calc(100% + 6px); margin-top: 0; z-index: 48; }
.cn-top .ocr-status, .cn-top .search-count { position: absolute; left: 12px; top: calc(100% + 4px); background: var(--surface); border-radius: 8px; padding: 4px 10px; margin-top: 0; z-index: 47; box-shadow: var(--shadow-sm); }
.cn-hot {
  flex: none; display: flex; align-items: center; gap: 3px;
  border: 0; background: transparent; color: var(--accent);
  font-size: 12.5px; font-weight: 700; cursor: pointer; font-family: inherit; padding: 6px 2px;
}
.cn-hot-ic, .cn-hot-ic .ico { width: 17px; height: 17px; display: block; }

/* ---------- ② 首页：来源分栏 + 资讯卡片 ---------- */
.home-view { margin: -18px -16px 0; }
.src-bar {
  position: sticky;
  top: var(--cn-head-h, calc(var(--cn-top-h) + var(--castbar-h, 0px) + var(--app-sat, env(safe-area-inset-top, 0px))));
  z-index: 30;
  display: flex; gap: 2px; align-items: stretch;
  padding: 0 8px; overflow-x: auto; scrollbar-width: none;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.src-bar::-webkit-scrollbar { display: none; }
.src-tab {
  flex: none; border: 0; background: transparent; cursor: pointer; font-family: inherit;
  color: var(--muted); font-size: 14.5px; font-weight: 600; padding: 10px 12px 9px;
  white-space: nowrap; position: relative; transition: color .15s;
}
.src-tab.active { color: var(--accent); font-weight: 700; }
.src-tab.active::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 3px; width: 20px; height: 3px; border-radius: 2px; background: var(--accent);
}
/* 首页来源 Tab 未读角标（2026-10-08 晚）：红底白字，99+ 封顶，置于文字右上角。
   .src-bar 纵向会被 overflow-x 裁剪，角标收在 Tab 框内（top:0），不外凸。 */
.src-badge {
  position: absolute; top: 0; right: -4px;
  min-width: 14px; height: 14px; line-height: 14px; padding: 0 4px;
  border-radius: 999px; background: var(--danger, #e23b3b); color: #fff;
  font-size: 10px; font-weight: 700; font-style: normal; text-align: center;
  box-sizing: border-box; pointer-events: none;
}
.cn-list { padding: 0 0 6px; }
.cn-card { padding: 13px 16px 8px; border-bottom: 1px solid var(--line); }
.cn-card:active { background: var(--bg-hover); }
.cn-time { font-size: 13px; color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .2px; }
.cn-ttl { margin: 5px 0 0; font-size: 15.5px; font-weight: 700; line-height: 1.45; color: var(--ink-strong); }
.cn-card.hot .cn-ttl { color: var(--accent); }
.cn-txt { margin: 5px 0 0; font-size: 14.5px; line-height: 1.62; color: var(--ink); word-break: break-word; }
.cn-txt.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.cn-pics { display: flex; gap: 6px; margin-top: 8px; }
.cn-pics img { width: 84px; height: 84px; object-fit: cover; border-radius: 6px; background: var(--surface-2); cursor: zoom-in; }
.cn-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.cn-tags span { font-size: 12px; color: var(--muted); background: var(--surface-2); border-radius: 4px; padding: 3px 8px; }
.cn-foot { display: flex; align-items: center; gap: 15px; margin-top: 9px; }
.cn-stat { font-size: 12.5px; color: var(--faint); margin-right: auto; font-variant-numeric: tabular-nums; }
.cn-act { border: 0; background: transparent; color: var(--faint); font-size: 12.5px; cursor: pointer; font-family: inherit; padding: 3px 0; display: flex; align-items: center; gap: 3px; }
.cn-act:active { color: var(--accent); }
.cn-act.on { color: var(--accent); }
.cn-day { display: flex; align-items: center; gap: 8px; padding: 11px 16px 7px; font-size: 12.5px; color: var(--muted); font-weight: 600; background: var(--bg-deep); }
.cn-day::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.home-msg { padding: 40px 16px; text-align: center; color: var(--muted); font-size: 13.5px; }

/* ---------- ③ 热榜页 ---------- */
.hot-sheet {
  position: fixed; inset: 0; z-index: 200; background: var(--bg);
  overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
}
.hot-head {
  background: linear-gradient(140deg,#ef5350 0%,#d32f2f 55%,#b71c1c 100%);
  color: #fff;
  padding: calc(8px + var(--app-sat, env(safe-area-inset-top, 0px))) 10px 42px;
  display: flex; align-items: center; gap: 8px;
}
.hot-head .me-back { color: #fff; }
.hot-head-txt { text-align: center; flex: 1; }
.hot-head-title { font-size: 19px; font-weight: 800; letter-spacing: 1px; }
.hot-head-sub { font-size: 12px; opacity: .92; margin-top: 3px; letter-spacing: .5px; }
.hot-tabs {
  display: flex; margin: -30px 12px 0; position: relative; z-index: 2;
  background: var(--surface); border-radius: 12px 12px 0 0; overflow: hidden;
  border: 1px solid var(--line); border-bottom: 0;
}
.hot-tab {
  flex: 1; border: 0; background: transparent; color: var(--muted);
  font-size: 14px; font-weight: 600; padding: 12px 0; cursor: pointer; font-family: inherit;
  border-bottom: 2px solid transparent;
}
.hot-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.hot-src { font-size: 11.5px; color: var(--faint); padding: 9px 16px 3px; }
.hot-body { padding: 0 0 calc(30px + env(safe-area-inset-bottom, 0px)); }
.hr-item { display: flex; gap: 11px; padding: 13px 16px 11px; border-bottom: 1px solid var(--line); }
.hr-rank { width: 22px; flex: none; text-align: center; font-size: 15px; font-weight: 800; color: var(--faint); font-variant-numeric: tabular-nums; }
.hr-item:nth-child(1) .hr-rank { color: #e8453c; }
.hr-item:nth-child(2) .hr-rank { color: #f37b23; }
.hr-item:nth-child(3) .hr-rank { color: #e8a02e; }
.hr-main { flex: 1; min-width: 0; }
.hr-r1 { display: flex; align-items: baseline; gap: 8px; }
.hr-name { font-size: 15.5px; font-weight: 700; color: var(--ink-strong); }
.hr-price { margin-left: auto; font-size: 15px; font-weight: 700; color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.hr-chg { width: 68px; text-align: right; font-size: 14.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hr-chg.up { color: var(--rise); }
.hr-chg.dn { color: var(--fall); }
.hr-chg.flat { color: var(--muted); }
.hr-r2 { display: flex; align-items: center; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.hr-code { font-size: 11px; padding: 1px 5px; border-radius: 3px; background: var(--surface-2); color: var(--muted); font-variant-numeric: tabular-nums; }
.hr-tag { font-size: 11.5px; padding: 2px 7px; border-radius: 3px; background: var(--surface-2); color: var(--ink-2); }
.hr-pop { font-size: 11.5px; padding: 2px 7px; border-radius: 3px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.hr-r3 { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.hr-badge { flex: none; font-size: 11.5px; font-weight: 700; color: #fff; background: linear-gradient(135deg,#f05952,#c62828); border-radius: 3px; padding: 2px 6px; }
.hr-reason { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hn-item { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; gap: 10px; }
.hn-rank { width: 20px; flex: none; font-size: 14px; font-weight: 800; color: var(--faint); }
.hn-main { flex: 1; min-width: 0; }
.hn-ttl { font-size: 14.5px; line-height: 1.5; color: var(--ink-strong); }
.hn-meta { display: flex; gap: 10px; font-size: 11.5px; color: var(--faint); margin-top: 5px; }

/* ---------- ④ 「我的」页 ---------- */
.me-sheet {
  position: fixed; inset: 0; z-index: 210; background: var(--bg-deep);
  overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
}
.me-top {
  display: flex; align-items: center; gap: 8px;
  padding: calc(6px + var(--app-sat, env(safe-area-inset-top, 0px))) 10px 6px;
  background: var(--surface); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 3;
}
.me-back {
  width: 32px; height: 32px; flex: none; border: 0; background: transparent;
  color: var(--ink-strong); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0;
}
.me-back .ico { width: 22px; height: 22px; }
.me-top-title { font-size: 16px; font-weight: 700; color: var(--ink-strong); flex: 1; }
.me-gear { font-size: 12.5px; padding: 5px 12px !important; }
.me-hero { display: flex; align-items: center; gap: 13px; padding: 16px 16px 18px; background: var(--surface); }
.me-hero .me-avatar { width: 56px; height: 56px; font-size: 20px; border-radius: 50%; background: linear-gradient(135deg,#f05952,#c62828); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; overflow: hidden; }
.me-hero-txt { flex: 1; min-width: 0; }
.me-hero .me-name { font-size: 17px; font-weight: 700; color: var(--ink-strong); }
.me-hero-sub { display: flex; align-items: center; gap: 10px; margin-top: 5px; }
.me-hero-sub .status { font-size: 12px; }
.me-hero-sub .user { font-size: 12px; }
.me-brand { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); flex: none; }
.me-brand .logo-mark { width: 24px; height: 24px; border-radius: 6px; font-size: 12px; }
.me-group { background: var(--surface); border-radius: 14px; margin: 12px; overflow: hidden; }
.me-group > .btn, .me-group > button, .me-group > .fs-row { border-radius: 0 !important; border: 0 !important; }
.me-item {
  display: flex !important; align-items: center !important; justify-content: flex-start !important;
  width: 100%; gap: 10px; padding: 14px 14px !important;
  background: transparent !important; color: var(--ink-strong) !important;
  font-size: 14.5px !important; font-weight: 500 !important; text-align: left;
  border-bottom: 1px solid var(--line) !important; cursor: pointer; font-family: inherit;
}
.me-group > *:last-child { border-bottom: 0 !important; }
.me-item .ic { display: flex; align-items: center; width: 20px; height: 20px; flex: none; color: var(--muted); }
.me-item .ic .ico { width: 19px; height: 19px; }
.me-item .lbl { flex: 1; }
.me-item .sw { margin-left: auto; flex: none; }
.me-item .sw-text { font-size: 12.5px; color: var(--muted); margin-left: 8px; min-width: 28px; text-align: right; }
.me-sheet .fs-row { display: flex; align-items: center; gap: 10px; padding: 13px 14px; background: transparent !important; border-bottom: 1px solid var(--line); }
.me-sheet .fs-label { font-size: 14.5px; color: var(--ink-strong); flex: 1; }
.me-sheet .st-legal { text-align: center; font-size: 12px; line-height: 1.9; color: var(--faint); padding: 18px 12px calc(26px + env(safe-area-inset-bottom, 0px)); }
.me-sheet .st-legal a { color: inherit; text-decoration: none; }
/* 2026-10-08 修复：移动端 @media(max-width:600px) 里的 .btn .lbl{display:none} 会把「我的」页
   所有条目的文字吃掉（旧版靠 .settings-pop 类放行，本轮改类名后失效）→ 这里显式放行 */
.me-sheet .btn .lbl { display: block !important; flex: 1; text-align: left; }
.me-sheet .me-gear .lbl { display: none !important; }
.me-sheet .me-gear { background: transparent !important; border: 0 !important; color: var(--ink-2) !important; padding: 6px 8px !important; }
/* 头部信息行：长账号不再把「已连接」挤成竖排 */
.me-hero-sub { flex-wrap: nowrap; }
.me-hero-sub .status { flex: none; white-space: nowrap; }
.me-hero-sub .user { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--faint); }
.me-hero .me-brand { margin-left: auto; }
.me-group > .btn.hidden { display: none !important; }

/* ---------- ⑤ 研报页 ---------- */
.report-view { margin: -18px -16px 0; }
.rp-bar { padding: 12px 14px 10px; border-bottom: 1px solid var(--line); }
.rp-search { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border-radius: 999px; padding: 7px 12px; }
.rp-ic { font-size: 14px; opacity: .6; }
.rp-search input { flex: 1; border: 0; background: transparent; outline: none; font-size: 16px; font-family: inherit; color: var(--ink-strong); min-width: 0; }
.rp-search button { flex: none; border: 0; background: var(--accent); color: #fff; border-radius: 999px; padding: 5px 14px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; }
.rp-chips { display: flex; gap: 7px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.rp-chips::-webkit-scrollbar { display: none; }
.rp-chip { flex: none; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); border-radius: 999px; padding: 5px 13px; font-size: 13px; cursor: pointer; font-family: inherit; }
.rp-chip.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.rp-list { padding: 0 0 20px; }
.rp-item { display: flex; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--line); cursor: pointer; }
.rp-doc { width: 36px; height: 44px; flex: none; border-radius: 5px; background: linear-gradient(150deg,#f05952,#c62828); color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.rp-main { flex: 1; min-width: 0; }
.rp-ttl { font-size: 14.5px; font-weight: 600; line-height: 1.45; color: var(--ink-strong); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rp-meta { display: flex; gap: 8px; margin-top: 6px; font-size: 11.5px; color: var(--faint); flex-wrap: wrap; }
.rp-meta .rp-org { color: var(--accent); font-weight: 600; }

/* ---------- ⑥ 复盘页（每日涨停复盘） ---------- */
.review-view { margin: -18px -16px 0; }
.rv-head { background: linear-gradient(160deg, #f05952, #c62828); color: #fff; padding: 16px 16px 18px; }
.rv-date { font-size: 15px; font-weight: 700; letter-spacing: 0.01em; }
.rv-date span { font-size: 12px; font-weight: 500; opacity: .85; margin-left: 6px; }
.rv-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 13px; }
.rv-stat { background: rgba(255, 255, 255, .18); border-radius: 10px; padding: 10px 4px 9px; text-align: center; }
.rv-stat b { display: block; font-size: 20px; font-weight: 800; line-height: 1.1; }
.rv-stat span { font-size: 11.5px; opacity: .92; }
.rv-sec { background: var(--surface); border-radius: 14px; margin: 12px; padding: 2px 0 4px; }
.rv-sec-t { font-size: 13.5px; font-weight: 700; color: var(--ink-strong); padding: 12px 14px 9px; border-bottom: 1px solid var(--line); }
.rv-lad { display: flex; align-items: flex-start; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--line); }
.rv-lad:last-child { border-bottom: 0; }
.rv-lad-k { flex: none; width: 46px; font-size: 12.5px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 6px; text-align: center; padding: 4px 0; }
.rv-lad-v { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rv-stock { font-size: 13px; color: var(--ink-2); background: var(--surface-2); border-radius: 6px; padding: 3px 8px; cursor: pointer; }
.rv-stock:active { background: var(--accent-soft); color: var(--accent); }
.rv-bk { padding: 2px 0 6px; }
.rv-bk-item { padding: 9px 14px; border-bottom: 1px dashed var(--line); }
.rv-bk-item:last-child { border-bottom: 0; }
.rv-bk-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 7px; }
.rv-bk-h b { font-size: 13.5px; color: var(--ink-strong); }
.rv-bk-h span { font-size: 11.5px; color: var(--faint); }
.rv-bk-v { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- 手机断点 ---------- */
@media (max-width: 720px) {
  :root { --cn-top-h: 50px; }
  .cn-top { padding: 7px 10px; padding-top: calc(7px + var(--app-sat, env(safe-area-inset-top, 0px))); gap: 8px; }
  .cn-av { width: 32px; height: 32px; font-size: 14px; }
  .home-view, .report-view, .review-view { margin: -12px -10px 0; }
  .cn-card { padding: 12px 12px 7px; }
  .cn-ttl { font-size: 15px; }
  .cn-txt { font-size: 14px; }
  .me-group { margin: 10px; }
}


/* ==================================================================
   「我的」页（2026-10-08 第三轮）：头像自定义 / 昵称修改 / 收藏高亮色 / 客服入口
   ================================================================== */
/* 我的页打开时，浮层按钮一律让位（用户：我的里面就不要再出现回顶了） */
body.me-open #backTopBtn,
body.me-open #newMsgPill,
body.me-open #newMsgTip,
body.me-open #ptrTip,
body.me-open .cs-fab { display: none !important; }

.me-av-btn { position: relative; width: 56px; height: 56px; flex: none; padding: 0; border: 0; background: none; cursor: pointer; }
.me-av-btn .me-avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg,#f05952,#c62828); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; overflow: hidden; }
.me-avatar-img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; display: block; }
.me-av-cam {
  position: absolute; right: -1px; bottom: -1px; width: 21px; height: 21px; border-radius: 50%;
  background: var(--surface-2); color: var(--ink-2); display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--surface); box-sizing: border-box;
}
.me-av-cam .ico { width: 12px; height: 12px; }
.me-hero-txt { flex: 1; min-width: 0; }
.me-name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.me-name-row .me-name { flex: none; }
.me-nick-btn {
  flex: none; border: 1px solid var(--line-strong); background: transparent; color: var(--muted);
  font-size: 11.5px; padding: 3px 9px; border-radius: 999px; cursor: pointer; font-family: inherit; line-height: 1.5;
}
.me-nick-btn:hover { color: var(--accent); border-color: var(--accent); }
.me-nick-input {
  flex: 1 1 110px; min-width: 0; height: 30px; border-radius: 8px;
  border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink-strong);
  font-size: 14px; padding: 0 10px; font-family: inherit; outline: none;
}
.me-nick-input:focus { border-color: var(--accent); }
.me-swatches { display: flex; align-items: center; gap: 8px; flex: none; }
.me-sw {
  width: 24px; height: 24px; border-radius: 50%; border: 2px solid transparent;
  cursor: pointer; padding: 0; box-sizing: border-box; transition: transform .15s;
}
.me-sw:active { transform: scale(.92); }
.me-sw.sel { border-color: var(--ink-strong); box-shadow: 0 0 0 2px var(--surface); }
.me-sw-none {
  background: var(--surface-2); color: var(--muted); font-size: 11px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.me-item.me-static { cursor: default; }
.me-item .cs-dot { position: static; top: auto; right: auto; margin-left: 6px; }

/* ---- 第三轮收尾：VIP 频道条改为 main 内 sticky，需抵消 main 内边距；并解除旧 fixed 布局残留 ---- */
.window-bar { margin: -18px -16px 0; }
@media (max-width: 720px) { .window-bar { margin: -14px -12px 0; } }
@media (max-width: 600px) { .window-bar { margin: -12px -10px 0; } }
@media (min-width: 720px) {
  .window-bar { left: auto; right: auto; transform: none; width: auto; border-left: 0; border-right: 0; }
}

/* ---- 第三轮收尾 2：顶栏 44px / 头像 30px 覆盖旧断点；浅色底栏与频道条用纯白 + 财联社分隔线 ---- */
:root { --cn-top-h: 30px; }   /* 1013：30px = .cn-top 第一行实测高（.cn-av / .search-box 均 30px）。原写 44px 是"顶栏设计高"，但 castBar 换行成第二行后 min-height 再也撑不到第一行 ⇒ sticky top 比 header 实底低 14px，滚动时内容从缝里漏出 */
.cn-top { padding: 0 12px; padding-top: var(--app-sat, env(safe-area-inset-top, 0px)); gap: 0 10px; }
.cn-av { width: 30px; height: 30px; font-size: 13px; }
html.theme-light .tabbar { background: #fff; border-top-color: var(--cls-line); }
html.theme-light .window-bar { background: #fff; border-bottom-color: var(--cls-line); }
html.theme-light .cn-top { border-bottom-color: var(--cls-line); }
@media (max-width: 600px) {
  .cn-top { padding: 0 12px; padding-top: var(--app-sat, env(safe-area-inset-top, 0px)); gap: 0 10px; }
  .cn-av { width: 30px; height: 30px; font-size: 13px; }
}

/* ==========================================================================
   2026-10-13 个股联动面板：点消息里的 .stk → 底部面板（同花顺/通达信/东财 intent 唤起 + 复制代码）
   ========================================================================== */
.stk-sheet { position: fixed; inset: 0; z-index: 600; }
.stk-sheet.hidden { display: none; }
.stk-sheet-mask { position: absolute; inset: 0; background: rgba(15, 18, 24, .45); animation: stkFade .18s ease; }
.stk-sheet-card {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--surface, #fff); color: var(--ink-strong, #1f2329);
  border-radius: 16px 16px 0 0; padding: 8px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -6px 28px rgba(0, 0, 0, .18);
  animation: stkUp .22s cubic-bezier(.2, .8, .3, 1);
}
@keyframes stkFade { from { opacity: 0; } }
@keyframes stkUp { from { transform: translateY(40px); opacity: .4; } }
.stk-sheet-grip { width: 36px; height: 4px; border-radius: 2px; background: var(--line-strong, #d8dbe1); margin: 4px auto 10px; }
.stk-sheet-head { display: flex; align-items: baseline; gap: 8px; padding: 2px 2px 12px; border-bottom: 1px solid var(--line, #eceef2); }
.stk-sheet-name { font-size: 16px; font-weight: 700; }
.stk-sheet-code { font-size: 12.5px; color: var(--faint, #9aa0ab); font-variant-numeric: tabular-nums; }
.stk-sheet-list { padding: 6px 0 2px; }
.stk-sheet-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 13px 4px; border: 0; background: transparent; cursor: pointer;
  font-size: 15px; color: inherit; text-align: left;
  border-bottom: 1px solid var(--line, #eceef2);
}
.stk-sheet-item:last-child { border-bottom: 0; }
.stk-sheet-item:active { background: var(--bg-hover, #f2f4f6); }
.stk-si-dot { width: 26px; height: 26px; border-radius: 8px; flex: none; }
.stk-si-name { flex: 1; font-weight: 600; }
.stk-si-go { font-size: 12.5px; color: var(--faint, #9aa0ab); }
.stk-si-copy .stk-si-go { font-variant-numeric: tabular-nums; letter-spacing: .4px; }
.stk-sheet-cancel {
  width: 100%; margin-top: 8px; padding: 12px; border: 0; border-radius: 10px;
  background: var(--bg-hover, #f2f4f6); color: var(--ink-2, #525252);
  font-size: 15px; font-weight: 600; cursor: pointer;
}
html:not(.theme-light) .stk-sheet-card { background: var(--surface, #1c222b); }
html:not(.theme-light) .stk-sheet-mask { background: rgba(0, 0, 0, .55); }

/* ==========================================================================
   2026-10-08 第四轮：顶栏「财联社品牌渐变」+ 底栏选中态「红色实心填充」
   —— 依据用户真机截图（IMG_3745.PNG，1179x2556 @3x）逐像素取色
   顶栏四角实测：左上 #B0220D / 右上 #C80000 / 左下 #D0522D / 右下 #C90000
        （红色主面 + 左下橙色光晕 + 左上略压暗；热榜白字直接压在渐变上，无胶囊底板）
   底栏实测：选中 = 红块 #DE0421 + 白色图形（18x19pt）/ 未选图标 #585D6C / 图标基准 19pt
   ========================================================================== */
:root { --cls-red: #E00426; --cls-top-red: #C80000; --cls-top-orange: #D9582D; }

/* ---------- ① 顶栏品牌渐变（浅色 / 深色一致，财联社的招牌头部） ---------- */
.cn-top,
html.theme-light .cn-top,
html:not(.theme-light) .cn-top {
  background-color: var(--cls-top-red);
  background-image:
    radial-gradient(118% 220% at 20% 118%, rgba(219,92,50,.98) 0%, rgba(219,92,50,.66) 30%, rgba(219,92,50,0) 68%),
    radial-gradient(150% 120% at -10% -16%, rgba(126,26,10,.55) 0%, rgba(126,26,10,0) 64%);
  background-repeat: no-repeat;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  border-bottom: 0;
}
/* 红底上：搜索仍是白胶囊（深色主题用深胶囊，与截图一致） */
.cn-top .search-box { background: #fff; }
.cn-top .search-input { color: #1f2937; }
.cn-top .search-input::placeholder { color: #9aa3ae; }
.cn-top .search-ic, .cn-top .search-ocr, .cn-top .search-clear { color: #7a838f; }
html:not(.theme-light) .cn-top .search-box { background: #0f1318; }
html:not(.theme-light) .cn-top .search-input { color: #e6edf3; }
html:not(.theme-light) .cn-top .search-input::placeholder { color: #8d97a5; }
html:not(.theme-light) .cn-top .search-ic,
html:not(.theme-light) .cn-top .search-ocr,
html:not(.theme-light) .cn-top .search-clear { color: #cfd8e2; }
/* 头像改白底红字（红底上更清晰）；热榜改白字 + 橙火苗 */
.cn-top .cn-av,
html.theme-light .cn-top .cn-av,
html:not(.theme-light) .cn-top .cn-av {
  background: #fff; color: var(--cls-top-red);
  box-shadow: 0 0 0 2px rgba(255,255,255,.35);
}
.cn-top .cn-hot, html:not(.theme-light) .cn-top .cn-hot { color: #fff; }
.cn-top .cn-hot-ic .ico { color: #FFA470; }

/* ---------- ② 底栏选中态 = 红色实心填充图标 ---------- */
.tab-item .ti-ico { width: 19px; height: 19px; border-radius: 5px; }
.tab-item .ico { width: 19px; height: 19px; }
.tab-item.active,
html:not(.theme-light) .tab-item.active { color: var(--cls-red); font-weight: 500; }
.tab-item.active .ti-ico { background: var(--cls-red); box-shadow: 0 1px 2px rgba(200,0,4,.28); }
.tab-item.active .ti-ico .ico { width: 12.5px; height: 12.5px; color: #fff; }
html:not(.theme-light) .tab-item { color: #585D6C; }
/* 频道条 / 来源栏选中态沿用同一支品牌红 */
.src-tab.active, .src-tab.active::after { color: var(--cls-red); }
.src-tab.active::after { background: var(--cls-red); }

/* ==========================================================================
   2026-10-08 第五轮
   ① VIP 频道条 = 首页来源栏同款 + 右端「还有更多」渐隐 + 左箭头
      —— 旧规则在 @media(max-width:600px)/(380px) 里把 .win-tab 缩成 12.5/12px，
         而 .src-tab 没有断点覆盖 → 两边字号不一致。媒体查询不提升优先级，
         但「写在文件更后面照样赢」，所以这里在末尾统一抹平。
   ② body.me-open 时把 .modal / .cs-panel 抬到 me-sheet(200) 之上
      —— 原来 .modal=50、.cs-panel=70 < me-sheet=200，从「我的」点出来的菜单
         实际盖在下面的页面（VIP 页）上，看起来像"在 VIP 页面跳出菜单"。
   ③ body.vip-cards：VIP 消息用 .cn-card 首页卡片格式，容器出血与首页一致
   ========================================================================== */

/* ---------- ① 频道条 ---------- */
.win-bar-wrap {
  position: sticky;
  top: var(--cn-head-h, calc(var(--cn-top-h) + var(--castbar-h, 0px) + var(--app-sat, env(safe-area-inset-top, 0px))));
  z-index: 30;
  margin: -18px -16px 0;
}
.window-bar {
  position: relative; top: auto; display: block;
  margin: 0;                     /* 第三轮遗留的 -12px -10px 会撑出 20px 横向溢出，必须抹平 */
  /* 旧规则残留 z-index:30（原来是 sticky 频道条）→ 会把右侧箭头压在下面，必须归零 */
  z-index: auto;
  /* 2026-10-08 晚：顶部留 8px 给「挂在 tab 上沿的未读角标」（top:-7px）——
     频道条是 overflow-x:auto 的滚动容器，裁剪边界=padding 盒；没有这 8px，角标上半截会被拦腰裁掉 */
  padding: 8px 0 0; background: var(--bg);
  border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.window-bar::-webkit-scrollbar { display: none; }
.window-tabs { display: flex; align-items: stretch; gap: 2px; padding: 0 8px; min-width: max-content; position: relative; z-index: 1; }
/* 与 .src-tab 完全同款：14.5px / 600 / 10px 12px 9px；选中 700 */
.win-tab { flex: none; padding: 10px 12px 9px; font-size: 14.5px; font-weight: 600; }
.win-tab.active { font-weight: 700; }
.win-tab.active::after { height: 3px; bottom: 0; }
/* 右端「还有更多」：渐隐遮罩 + 左箭头，滚到底自动隐藏 */
.win-fade {
  position: absolute; top: 0; right: 0; bottom: 1px; width: 30px; z-index: 3;
  pointer-events: none; opacity: 0; transition: opacity .18s;
  background: linear-gradient(to right, rgba(255,255,255,0), var(--bg) 76%);
}
.win-more {
  position: absolute; top: 0; right: 0; bottom: 1px; width: 30px; z-index: 4;
  display: none; align-items: center; justify-content: center;
  border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 0;
}
.win-more .ico { width: 17px; height: 17px; }
.win-bar-wrap.has-more .win-fade { opacity: 1; }
/* 频道数 >3 就常驻箭头（滑到尽头再点 = 回到开头，循环） */
.win-bar-wrap.many .win-more { display: flex; }
.win-bar-wrap.many.at-end .win-more { transform: rotate(180deg); }
.win-more:active { color: var(--ink-strong); }
html:not(.theme-light) .win-fade { background: linear-gradient(to right, rgba(0,0,0,0), var(--bg) 76%); }
@media (max-width: 600px) { .win-bar-wrap { margin: -14px -16px 0; } }
@media (max-width: 380px) { .win-bar-wrap { margin: -14px -14px 0; } }

/* ---------- ② 「我的」打开的浮层必须盖在「我的」之上 ---------- */
body.me-open .modal,
body.me-open .pp-modal,
body.me-open .cs-panel { z-index: 400; }

/* ---------- ③ VIP 消息 = 首页卡片格式 ---------- */
body.vip-cards main { padding-left: 0; padding-right: 0; }
body.vip-cards .win-bar-wrap { margin-left: 0; margin-right: 0; }
body.vip-cards .tl-item.vip-card { margin-bottom: 0; animation: none; }
body.vip-cards .vip-card .cn-time { margin-bottom: 2px; }

/* ==========================================================================
   2026-10-08 第六轮
   ① 长信息全文显示（原来 .clamp 限死 4 行）
   ② 财联社「加红」：【…】标题红色 + A/B 级重要电报整条标红
   ③ 首页资讯标签 5 色循环底色
   ④ VIP 卡片里 AI 解读 / AI 分析 / 打标行 / 图片的间距与配色
   ========================================================================== */

/* ---------- ① 长文全文显示 ---------- */
.cn-txt.clamp {
  display: block; -webkit-line-clamp: unset; -webkit-box-orient: horizontal;
  max-height: none; overflow: visible;
}

/* ---------- ② 财联社加红 ---------- */
.cn-ttl.red { color: var(--cls-red, #E00426); }
.cn-time.red { color: var(--cls-red, #E00426); font-weight: 700; }
.cn-card.hot {
  box-shadow: inset 3px 0 0 var(--cls-red, #E00426);
  background: linear-gradient(90deg, rgba(224,4,38,.045), transparent 42%);
}
.cn-card.hot .cn-ttl { color: var(--cls-red, #E00426); }

/* ---------- ③ 首页标签 5 色循环 ---------- */
.cn-tags span.tgc { border: 0; font-weight: 600; }
.cn-tags span.t1 { background: #eaf1fd; color: #2456ad; }
.cn-tags span.t2 { background: #fdefe6; color: #b25a1e; }
.cn-tags span.t3 { background: #e8f6ee; color: #1c7a45; }
.cn-tags span.t4 { background: #f2ecfd; color: #6a41c0; }
.cn-tags span.t5 { background: #fdeaf1; color: #b62b63; }
html:not(.theme-light) .cn-tags span.t1 { background: #16243c; color: #8fb6f0; }
html:not(.theme-light) .cn-tags span.t2 { background: #3a2416; color: #e8a877; }
html:not(.theme-light) .cn-tags span.t3 { background: #14301f; color: #7fd3a2; }
html:not(.theme-light) .cn-tags span.t4 { background: #261a3d; color: #bda4f0; }
html:not(.theme-light) .cn-tags span.t5 { background: #3a1728; color: #f0a0be; }

/* ---------- ④ VIP 卡片内的富文本 / AI 区块 ---------- */
.vip-card .cn-txt .rt-head { font-weight: 700; color: var(--ink-strong, var(--ink)); margin-top: 4px; }
.vip-card .cn-txt .rt-item,
.vip-card .cn-txt .rt-p { margin: 2px 0; }
.vip-card .d-reason { margin-top: 8px; }
.vip-card .tl-ai { margin-top: 8px; }
.vip-card .tl-ai-btn { width: 100%; justify-content: center; }
.vip-card .d-tag { margin-top: 8px; }
.vip-card .tl-images,
.vip-card .tl-img-slot { margin-top: 8px; }
.vip-card .tl-feishu-img-placeholder { margin-top: 8px; }
.vip-card .tl-ai-summary { font-size: 13.5px; line-height: 1.6; }

/* ==========================================================================
   2026-10-08 第七轮：财联社扁平化
   ① AI 分析区 / 一句话解读锁定提示 = 财联社订阅横幅同款（米底 #FDF6EE + 棕字 #8C705A + 右箭头）
      —— 配色取自用户提供的财联社 App 截图逐像素采样
   ② AI 打标标签改成首页标签那种方角（不再是胶囊）
   ③ 全站装饰性胶囊/椭圆统一收敛成 4px；保留财联社原生控件（搜索胶囊、头像、状态点、
      开关滑块、底部导航图标块）
   ========================================================================== */
:root {
  --cls-upsell-bg: #FDF6EE;
  --cls-upsell-fg: #8C705A;
  --cls-upsell-bg-dark: #2A211B;
  --cls-upsell-fg-dark: #C9A88D;
}

/* ---------- ① AI 分析 / 订阅解锁横幅 ---------- */
html.theme-light .upsell, html.theme-light .tl-ai-btn,
html:not(.theme-light) .upsell, html:not(.theme-light) .tl-ai-btn,
.upsell,
.tl-ai-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; box-sizing: border-box;
  padding: 11px 14px;
  border: 0; border-radius: 4px;
  background: var(--cls-upsell-bg); color: var(--cls-upsell-fg);
  font-size: 14.5px; font-weight: 600; font-family: inherit;
  cursor: pointer; box-shadow: none;
  transition: background .15s, color .15s;
}
html.theme-light .upsell:hover, html.theme-light .tl-ai-btn:hover,
html:not(.theme-light) .upsell:hover, html:not(.theme-light) .tl-ai-btn:hover { background: #F8EADC; color: #7A5F49; }
.upsell:hover, .tl-ai-btn:hover { background: #F8EADC; color: #7A5F49; }
html.theme-light .upsell .ico, html.theme-light .tl-ai-btn .ico,
html:not(.theme-light) .upsell .ico, html:not(.theme-light) .tl-ai-btn .ico,
.upsell .ico, .tl-ai-btn .ico { width: 16px; height: 16px; flex: none; opacity: .85; }
.upsell-tx { white-space: nowrap; }
html:not(.theme-light) .upsell,
html:not(.theme-light) .tl-ai-btn { background: var(--cls-upsell-bg-dark); color: var(--cls-upsell-fg-dark); }
html:not(.theme-light) .upsell:hover,
html:not(.theme-light) .tl-ai-btn:hover { background: #362A22; color: #DCC0A6; }

/* 一句话解读框：同款米底棕字，去掉原来的深蓝底 / 蓝色边框 / 左侧蓝条 */
.d-reason,
html.theme-light .d-reason,
html:not(.theme-light) .d-reason {
  margin-top: 9px; padding: 10px 13px;
  font-size: 14px; line-height: 1.75; font-weight: 400;
  color: var(--cls-upsell-fg); background: var(--cls-upsell-bg);
  border: 0; border-left: 0; border-radius: 4px; box-shadow: none;
}
html:not(.theme-light) .d-reason { color: var(--cls-upsell-fg-dark); background: var(--cls-upsell-bg-dark); }
.d-reason a.stk, .d-reason a.stk:hover { color: inherit; border-bottom-color: currentColor; opacity: .85; }
.tl-ai { margin: 8px 0 2px; padding-top: 0; border-top: 0; }
.tl-ai:empty { display: none; }
.tl-ai-tip { font-size: 13px; color: var(--cls-upsell-fg); background: var(--cls-upsell-bg);
  padding: 9px 12px; border-radius: 4px; }
html:not(.theme-light) .tl-ai-tip { color: var(--cls-upsell-fg-dark); background: var(--cls-upsell-bg-dark); }

/* ---------- ② AI 打标标签：方角（对齐首页 .cn-tags span） ---------- */
.tg, .tg-type, .tg-topic, .tg-theme, .tg-sector, .tg-sent,
.ai-stock, .tg-lock { border-radius: 4px; }

/* ---------- ③ 全站装饰性胶囊/椭圆 → 4px ---------- */
.cn-tags span, .win-tab, .src-tab, .hot-tab, .rv-lad, .rv-bk-item,
.rp-chip, .rp-search, .rp-search button, .dt-chip,
.unread-divider span, .load-more-btn, .fs-btn, .fs-seg,
.me-nick-btn, .win-tab-badge, .me-swatches, .tab-no-bar .btn,
.tl-ai-stocks .ai-stock, .tl-img-slot, .tl-single-wrap,
.tl-feishu-img-placeholder, .tl-video-fail, .hot-tabs,
.btn.ghost, .btn.primary, .modal-card, .pp-card, .lb-bar .btn {
  border-radius: 4px;
}
.modal-card, .pp-card { border-radius: 8px; }
.hot-tabs { border-radius: 0; }
.tl-images img, .cn-pics img { border-radius: 4px; }
.rv-stats .rv-stat, .rv-lad-k, .me-group { border-radius: 4px; }
.back-top, .new-msg-tip, .install-bar .ib-btn { border-radius: 4px; }

/* ==========================================================================
   2026-10-08 第八轮：所有消息文字的字体 / 字体粗细 / 行距
   —— 全部对齐财联社 App 电报列表（真机截图逐像素 + 浏览器实渲染双向校准）
   字号 17px · 字重 500 · 行距 1.5 · 字距 0 · 正文 #525252 · 时间 #CE2B1D
   字体族：iOS 上 -apple-system(SF) 配 PingFang SC 回退，与财联社同一套
   ⚠️ 一律乘 var(--fs)，「我的 → 字体大小」的小/标准/大/特大仍然有效
   ⚠️ 必须写在文件末尾：600px 断点里有 .cn-txt{font-size:14px} 会覆盖新值
   ========================================================================== */
:root { --cls-msg-font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif; }

/* ---------- 正文（首页卡片 / VIP 卡片 / 消息流 / 富文本） ---------- */
.cn-txt,
.m-text,
.tl-text,
.rt-p,
.rt-head,
.rt-item,
.search-result .m-text {
  font-family: var(--cls-msg-font);
  font-size: calc(17px * var(--fs, 1));
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
  color: #525252;
  word-break: break-word;
}
html:not(.theme-light) .cn-txt,
html:not(.theme-light) .m-text,
html:not(.theme-light) .tl-text,
html:not(.theme-light) .rt-p,
html:not(.theme-light) .rt-head,
html:not(.theme-light) .rt-item { color: #B9C2CC; }

/* ---------- 红色时间 ---------- */
.cn-time {
  font-family: var(--cls-msg-font);
  font-size: calc(17px * var(--fs, 1));
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  color: #CE2B1D;
  font-variant-numeric: tabular-nums;
}

/* ---------- 标题（【…】/ 源站标题） ---------- */
.cn-ttl {
  font-family: var(--cls-msg-font);
  font-size: calc(17.5px * var(--fs, 1));
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0;
  margin: 4px 0 0;
}

/* ---------- 一句话解读 / AI 分析摘要 / 打标标签 / 底部操作 ---------- */
.d-reason,
.tl-ai-summary {
  font-family: var(--cls-msg-font);
  font-size: calc(15px * var(--fs, 1));
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: 0;
}
.tg {
  font-family: var(--cls-msg-font);
  font-size: calc(13px * var(--fs, 1));
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
}
.cn-stat,
.cn-act {
  font-family: var(--cls-msg-font);
  font-size: calc(13px * var(--fs, 1));
  letter-spacing: 0;
}
.stk, .long-badge, .tl-ai-stocks .ai-stock { font-family: var(--cls-msg-font); letter-spacing: 0; }

/* 移动端断点里的旧字号（.cn-txt 14px 等）由上面的末尾规则统一覆盖 */

/* ==========================================================================
   2026-10-08 第九轮
   ① 登录/注册弹窗扁平化
   ② VIP 卡片按财联社「盘中宝」列表排版：红色时间 + 频道角标 + 标题 2 行 +
      免费预览 3 行 + 标签 + 米底「订阅用户专享，解锁后可查阅 ›」
   ③ AI 打标体裁标签改红底白字
   ========================================================================== */

/* ---------- ① 登录 / 注册扁平化 ---------- */
#loginModal .modal-card {
  border-radius: 0;
  border: 0;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
  padding: 22px 20px 18px;
}
#loginModal .modal-card h2 {
  font-size: 19px; font-weight: 800; color: var(--ink-strong);
  letter-spacing: 0; margin: 0 0 16px;
}
#loginModal .tabs { display: flex; gap: 10px; margin-bottom: 16px; }
#loginModal .tab {
  flex: 1; padding: 9px 0; border-radius: 0;
  font-size: 14px; font-weight: 600; background: var(--surface);
  border: 1px solid var(--line-strong); color: var(--ink-2);
}
#loginModal .tab.active {
  background: var(--surface); color: var(--accent);
  border-color: var(--accent); box-shadow: none;
}
#loginModal input {
  width: 100%; box-sizing: border-box;
  padding: 13px 14px; margin-bottom: 12px;
  border-radius: 0; border: 0; background: var(--surface-2);
  color: var(--ink); font-size: 16px; font-family: inherit;
  border-bottom: 1px solid var(--line);
}
#loginModal input:focus { outline: none; background: var(--surface-2); }
#loginModal input::placeholder { color: var(--faint); }
#loginModal .btn.primary {
  width: 100%; padding: 13px 0; border-radius: 0; border: 0;
  background: var(--accent); color: #fff;
  font-size: 15px; font-weight: 700; margin-top: 4px;
}
#loginModal .msg { font-size: 13px; margin: 8px 0 0; }
#loginModal .hint {
  font-size: 12px; line-height: 1.7; color: var(--faint);
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line);
}

/* ---------- ② VIP 卡片：财联社「盘中宝」列表版式 ---------- */
.vip-card .vip-head {
  display: flex; align-items: center; gap: 8px; margin: 0 0 2px;
}
.vip-card .vip-head .cn-time { margin: 0; }
.vip-card .vip-src {
  font-size: 12px; font-weight: 600; line-height: 1;
  padding: 3px 6px; border-radius: 3px;
  background: var(--surface-2); color: var(--muted);
}
.vip-card .vip-lock {
  font-size: 11px; font-weight: 700; line-height: 1;
  padding: 3px 5px; border-radius: 3px;
  background: rgba(224, 4, 38, .10); color: var(--cls-red, #E00426);
}
/* 2026-10-09 定版：AI 打标标签紧跟头部行「时间 + 频道名」之后（行内，放不下整体换行） */
.vip-card .vip-head { flex-wrap: wrap; row-gap: 6px; }
.vip-card .vip-head .cn-time,
.vip-card .vip-head .vip-src,
.vip-card .vip-head .vip-lock { flex-shrink: 0; white-space: nowrap; }
.vip-card .vip-head .d-tag {
  flex: 1 1 auto; min-width: 0; margin: 0; justify-content: flex-start;
}
.msg-header-info .d-tag { margin-top: 3px; }
/* 标题：2 行截断（财联社列表版式） */
.vip-card .cn-ttl {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin: 2px 0 0;
}
/* 免费预览：未订阅只给 3 行 */
.vip-card .cn-txt.preview {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
/* OCR 识别出的文字 */
.cn-ocr { margin-top: 9px; padding: 9px 11px; background: var(--surface-2); border-radius: 4px; }
.cn-ocr-hd {
  font-size: 11.5px; font-weight: 700; color: var(--faint);
  letter-spacing: .3px; margin-bottom: 4px;
}
.cn-ocr-bd { font-size: calc(15px * var(--fs, 1)); line-height: 1.66; color: #525252; white-space: pre-wrap; word-break: break-word; }
html:not(.theme-light) .cn-ocr-bd { color: #B9C2CC; }
.cn-ocr.preview .cn-ocr-bd {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
/* 付费解锁横幅（财联社同款米底 + 右箭头） */
.vip-card .vip-paywall { margin-top: 10px; cursor: pointer; }
.vip-card .vip-paywall .ico { opacity: .9; }

/* ---------- ③ 体裁标签红底白字（对应财联社「主板」） ---------- */
.tg.tg-type { background: var(--cls-red, #E00426) !important; color: #fff !important; }

/* 首屏若未解锁，卡片底部留出横幅位置时不要有多余空白 */
.vip-card .vip-paywall + .cn-foot { margin-top: 0; }

/* 第九轮 b：OCR 进度提示条 + 登录弹窗提示行方角 */
#loginModal .msg { border-radius: 0; }
.ocr-tip {
  display: flex; align-items: center; gap: 7px;
  margin: 0 0 10px; padding: 9px 12px;
  background: var(--surface-2); color: var(--muted);
  font-size: 12.5px; line-height: 1.4; border-radius: 4px;
}
.ocr-tip::before {
  content: ''; width: 11px; height: 11px; flex: none;
  border: 2px solid var(--faint); border-top-color: transparent;
  border-radius: 50%; animation: ocrSpin .8s linear infinite;
}
@keyframes ocrSpin { to { transform: rotate(360deg); } }

/* ---- 第十一轮：未开通用户的「免费预览」观感（对齐财联社 App）----
   正文限 3 行 + 底部渐隐遮罩，让「下面还有内容」一眼可感；
   再接米底「订阅用户专享，解锁后可查阅 ›」横幅点订阅。 */
.cn-preview-fade {
  height: 34px; margin-top: -34px; position: relative;
  pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(255,255,255,0) 0%, rgba(255,255,255,.55) 38%,
    rgba(255,255,255,.92) 72%, var(--card, #fff) 100%);
}
html:not(.theme-light) .cn-preview-fade {
  background: linear-gradient(to bottom,
    rgba(0,0,0,0) 0%, rgba(0,0,0,.5) 38%,
    rgba(0,0,0,.9) 72%, var(--card, #111) 100%);
}
/* 逻辑精选 PDF 正文的小标题（热点 / 驱动 / 核心公司），扫读时抓重点 */
.vip-card .cn-txt .rt-h { font-weight: 600; color: var(--ink); margin-top: 12px; }
.vip-card .cn-txt .rt-h:first-child { margin-top: 0; }

/* 单频道视图的免费预览（第十一轮）：与 VIP 卡片同一观感，限 3 行 */
.m-text.preview {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.tl-item .m-text .rt-h { font-weight: 600; color: var(--ink); margin-top: 12px; }
.tl-item .m-text .rt-h:first-child { margin-top: 0; }

/* ---- 第十二轮：逻辑精选「盘中宝」版式 ----
   参考财联社 App 盘中宝详情页：大标题粗体多行 → 灰色小时间 → 灰底导语块 →
   正文段落 → 章节标题（一、二、…）→ 栏目标签（品牌色）→ 公司名（左侧色条）→ 相关公司 chips
   全部字号/行距跟随第八轮定的「财联社电报」规范：正文 17px/500/1.5、颜色 #525252。 */

.hbs {
  --hbs-red: #e00426;
  --hbs-label: #f5f6f7;
  margin: 2px 0 0;
}
.hbs * { box-sizing: border-box; }

/* ⓿ 红底白字标题栏（2026-10-08：用户要求开头第一排加红色标题「年月日 市场逻辑精选」）
   财联社盘中宝详情页就是这个观感：整条红底、白字、居中略偏左、字号比正文大一号。 */
.hbs-bar-top {
  background: linear-gradient(135deg, #e00426 0%, #c80000 100%);
  color: #fff;
  font-size: calc(17px * var(--fs, 1));
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.01em;
  padding: 11px 14px;
  margin: 0 0 12px;
  border-radius: 4px 4px 0 0;
  text-align: left;
}

/* 标题栏下方的大标题与它之间留一点呼吸感 */
.hbs .hbs-ttl { margin-top: 10px; }

/* ① 大标题 */
.hbs-ttl {
  margin: 2px 0 8px;
  font-size: calc(18px * var(--fs, 1));
  font-weight: 600;
  line-height: 1.42;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* ② 时间 */
.hbs-time {
  font-size: calc(13px * var(--fs, 1));
  color: var(--ink3);
  margin-bottom: 12px;
}

/* ③ 灰底导语块（财联社就是这样单独一块摘要） */
.hbs-lead {
  background: var(--hbs-label);
  padding: 11px 13px;
  margin: 0 0 14px;
  border-radius: 4px;
  font-size: calc(15px * var(--fs, 1));
  line-height: 1.62;
  color: var(--ink2);
}

/* 正文容器 */
.hbs-body { margin: 0; }
.hbs-body.preview {
  display: -webkit-box; -webkit-line-clamp: 12; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 正文段落 */
.hbs-p {
  margin: 0 0 12px;
  font-size: calc(17px * var(--fs, 1));
  font-weight: 500;
  line-height: 1.5;
  color: #525252;
  word-break: break-word;
}
.hbs-p:last-child { margin-bottom: 0; }

/* ⑤ 章节标题：一、xxx */
.hbs-h2 {
  margin: 22px 0 10px;
  font-size: calc(17px * var(--fs, 1));
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}
.hbs-h2:first-child { margin-top: 4px; }

/* 小标题：驱动 / 事件 / 产业逻辑 / 热点 */
.hbs-h3 {
  margin: 16px 0 8px;
  font-size: calc(16px * var(--fs, 1));
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}

/* ⑥ 栏目标签：核心公司 / 相关公司（品牌色小标签） */
.hbs-label {
  display: inline-block;
  margin: 16px 0 8px;
  padding: 2px 8px;
  background: rgba(224, 4, 38, 0.08);
  color: var(--hbs-red);
  font-size: calc(12.5px * var(--fs, 1));
  font-weight: 600;
  line-height: 1.7;
  border-radius: 3px;
}
.hbs-label::before { content: ''; }

/* ⑦ 公司名（左侧竖色条 + 粗体） */
.hbs-co {
  margin: 14px 0 4px;
  padding-left: 9px;
  border-left: 3px solid var(--hbs-red);
  font-size: calc(16px * var(--fs, 1));
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}

/* ⑧ 相关公司 chips：名称（备注） */
.hbs-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 4px 0 12px;
}
.hbs-chip {
  display: inline-flex; align-items: baseline; gap: 3px;
  padding: 4px 9px;
  background: var(--surface-2);
  border-radius: 4px;
  font-size: calc(13.5px * var(--fs, 1));
  line-height: 1.5;
  color: var(--ink);
}
.hbs-chip.has-stk { cursor: pointer; }
.hbs-chip i {
  font-style: normal;
  font-size: calc(12px * var(--fs, 1));
  color: var(--ink3);
}

/* 米底订阅横幅 */
.hbs-pay { width: 100%; margin-top: 12px; }

/* ---------------- 财联社vip 图文混排（2026-10-08） ----------------
   长图被服务端切成「图表小图 + 纯文本」，这里渲染成一条文本+图片的消息。
   复用 .hbs 的全部排版（红底标题栏/大标题/灰底导语/正文段落），只多一个图表块。 */
.clv-fig {
  margin: 12px 0 14px;
  padding: 0;
}
.clv-fig img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 4px;
  background: #fff;
}
/* 未解锁时图表只露出上半截（与财联社 App 的付费墙一致） */
.clv .hbs-locked .clv-fig {
  max-height: 168px;
  overflow: hidden;
  position: relative;
}
.clv .hbs-locked .clv-fig::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 56px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 100%);
}
/* 图表里的文字比正文略小一号，视觉上让位给正文 */
.clv-fig figcaption {
  margin-top: 5px;
  font-size: calc(12px * var(--fs, 1));
  color: var(--ink3);
}

/* ⑨ 底部固定条：黑底栏目名 + 红色订阅按钮 */
.hbs-bar {
  display: flex; align-items: stretch; gap: 0;
  margin: 16px -12px -10px;
  border-radius: 4px 4px 0 0;
  overflow: hidden;
}
.hbs-bar-l {
  flex: 1; min-width: 0;
  background: #1b1d21;
  color: #fff;
  padding: 9px 14px;
  display: flex; flex-direction: column; justify-content: center;
}
.hbs-bar-l b { font-size: calc(15px * var(--fs, 1)); font-weight: 600; line-height: 1.25; }
.hbs-bar-l span { font-size: calc(12px * var(--fs, 1)); color: rgba(255, 255, 255, 0.6); line-height: 1.3; }
.hbs-bar-btn {
  flex: none;
  padding: 0 22px;
  background: var(--hbs-red);
  color: #fff;
  border: 0;
  font-size: calc(15px * var(--fs, 1));
  font-weight: 500;
  cursor: pointer;
}
.hbs-bar-btn:active { filter: brightness(0.92); }

/* 暗色主题 */
html:not(.theme-light) .hbs-lead { background: #1e2226; color: #b9c2cc; }
html:not(.theme-light) .hbs-p { color: #b9c2cc; }
html:not(.theme-light) .hbs-label { background: rgba(224, 4, 38, 0.16); color: #ff7a7a; }
html:not(.theme-light) .hbs-bar-l { background: #0e1013; }
html:not(.theme-light) .hbs-chip { background: #1e2226; }
/* ===== 2026-10-08 晚：未订阅财联社vip「小半图」锁样式 ===== */
.clv-lockimg { position: relative; max-height: 280px; overflow: hidden; border-radius: 12px; margin-top: 8px; }
.clv-lockimg img { width: 100%; display: block; border-radius: 12px; }
.clv-lockimg::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
  background: linear-gradient(180deg, rgba(255,247,237,0) 0%, rgba(255,247,237,.85) 70%, #fff7ed 100%); pointer-events: none; }
html:not(.theme-light) .clv-lockimg::after {
  background: linear-gradient(180deg, rgba(20,22,26,0) 0%, rgba(20,22,26,.85) 70%, #14161a 100%); }

/* ===== 2026-10-08 晚：红宝书逻辑精选紧凑卡 ===== */
.msg .hbs-bar-top, .vip-card .hbs-bar-top { margin: 4px 0 10px; border-radius: 10px; }
.logic-jx-img { width: 100%; border-radius: 10px; margin-top: 4px; cursor: zoom-in; display: block; }

/* ===== 2026-10-10 研报板块（国内研报/国外研报/电话会议） ===== */
.rp-bar { padding: 10px 14px 10px; border-bottom: 1px solid var(--line); }
.rp-cats { display: flex; gap: 8px; margin-bottom: 10px; }
.rp-cat { flex: 1; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); border-radius: 10px; padding: 9px 0; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; text-align: center; transition: background .15s, color .15s, border-color .15s; }
.rp-cat:active { transform: scale(.98); }
.rp-cat.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.rp-cat.active .rp-cat-n { color: rgba(255,255,255,.85); }
.rp-cat-n { font-style: normal; font-size: 11.5px; font-weight: 500; color: var(--faint); margin-left: 2px; }
.rp-empty { padding: 46px 16px; text-align: center; font-size: 13.5px; color: var(--faint); }
.rp-date-h { position: sticky; top: 0; z-index: 1; padding: 9px 16px 6px; font-size: 12px; font-weight: 700; color: var(--faint); background: var(--bg); letter-spacing: .4px; }
.rp-doc.aud { background: linear-gradient(150deg, #3d7bd6, #22508f); font-size: 13px; }
.rp-meta .rp-org.aud { color: #3d7bd6; }
/* 阅读层（研报正文 / 电话会议播放） */
.rp-reader { position: fixed; inset: 0; z-index: 150; background: rgba(0,0,0,.45); display: flex; justify-content: center; }
.rp-reader.hidden { display: none; }
.rp-reader-card { width: 100%; max-width: 760px; background: var(--bg); display: flex; flex-direction: column; box-shadow: var(--shadow-md); }
@media (min-width: 800px) {
  .rp-reader-card { margin: 26px 0; border-radius: 14px; overflow: hidden; }
}
.rp-reader-head { display: flex; gap: 10px; align-items: flex-start; padding: max(env(safe-area-inset-top, 0px), 12px) 14px 12px; border-bottom: 1px solid var(--line); background: var(--bg); flex: none; }
/* App 沉浸式 WebView（?from=app）：env 不可信，固定值兜底系统状态栏 */
body[data-app="1"] .rp-reader-head { padding-top: 42px; }
body[data-app="1"] .rp-reader-card.aud .rp-reader-head { padding-top: 42px; }
.rp-reader-back { flex: none; width: 32px; height: 32px; border: 0; border-radius: 9px; background: var(--surface-2); color: var(--ink); font-size: 22px; line-height: 30px; cursor: pointer; padding: 0 0 3px; font-family: inherit; }
.rp-reader-back:active { background: var(--line-strong); }
.rp-reader-hmain { flex: 1; min-width: 0; }
.rp-reader-title { font-size: 15.5px; font-weight: 700; line-height: 1.45; color: var(--ink-strong); }
.rp-reader-meta { margin-top: 4px; font-size: 12px; color: var(--faint); }
.rp-reader-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.rp-article { padding: 16px 18px 48px; font-size: 14.5px; line-height: 1.9; color: var(--ink); white-space: pre-wrap; word-break: break-word; }
/* 电话会议播放层（深色沉浸式自定义播放器，2026-10-13 重设计） */
.rp-reader-card.aud { background: linear-gradient(165deg, #26333f 0%, #17202a 58%, #0f151b 100%); }
.rp-reader-card.aud .rp-reader-head { background: transparent; border-bottom-color: rgba(255, 255, 255, .08); }
.rp-reader-card.aud .rp-reader-title { color: #fff; }
.rp-reader-card.aud .rp-reader-meta { color: rgba(255, 255, 255, .55); }
.rp-reader-card.aud .rp-reader-back { background: rgba(255, 255, 255, .14); color: #fff; }
.rp-reader-card.aud .rp-reader-back:active { background: rgba(255, 255, 255, .24); }
.rp-reader-body.aud { background: transparent; display: flex; align-items: center; justify-content: center; }
.rp-audio-box { width: 100%; max-width: 430px; padding: 6px 26px 46px; display: flex; flex-direction: column; align-items: center; }
.rp-audio-cover { width: 146px; height: 146px; border-radius: 50%; margin: 16px auto 26px; background: linear-gradient(150deg, #3d7bd6, #22508f); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 14px 42px rgba(61, 123, 214, .42), inset 0 0 0 1px rgba(255, 255, 255, .14); position: relative; }
.rp-audio-cover::after { content: ''; position: absolute; inset: 11px; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .25); animation: rpSpin 24s linear infinite; animation-play-state: paused; }
.rp-audio-cover.playing::after { animation-play-state: running; }
@keyframes rpSpin { to { transform: rotate(360deg); } }
.rp-audio-name { color: #fff; font-size: 17px; font-weight: 700; text-align: center; line-height: 1.5; word-break: break-all; }
.rp-audio-sub { margin-top: 6px; color: rgba(255, 255, 255, .55); font-size: 12.5px; text-align: center; }
.rp-audio-bar { width: 100%; display: flex; align-items: center; gap: 10px; margin-top: 30px; }
.rp-audio-cur, .rp-audio-dur { color: rgba(255, 255, 255, .65); font-size: 11.5px; font-variant-numeric: tabular-nums; flex: 0 0 auto; min-width: 36px; }
.rp-audio-dur { text-align: right; }
.rp-audio-track { position: relative; flex: 1; height: 26px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.rp-audio-track::before { content: ''; position: absolute; left: 0; right: 0; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .18); }
.rp-audio-fill { position: relative; height: 4px; border-radius: 2px; background: #4d92e8; width: 0; }
.rp-audio-knob { position: absolute; top: 50%; left: 0; width: 13px; height: 13px; margin-left: -6.5px; border-radius: 50%; background: #fff; transform: translateY(-50%); box-shadow: 0 1px 4px rgba(0, 0, 0, .45); }
.rp-audio-ctrl { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 26px; }
/* 倍速胶囊：1 → 1.25 → 1.5 → 2 循环；非 1x 时高亮 */
.rp-audio-rate { border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .08); color: #fff; border-radius: 999px; min-width: 48px; height: 30px; padding: 0 11px; font-size: 12px; font-weight: 600; cursor: pointer; font-variant-numeric: tabular-nums; font-family: inherit; }
.rp-audio-rate:active { background: rgba(255, 255, 255, .18); }
.rp-audio-rate.on { background: #4d92e8; border-color: transparent; }
.rp-audio-seek { border: 0; background: rgba(255, 255, 255, .1); color: #fff; border-radius: 50%; width: 46px; height: 46px; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.rp-audio-seek:active { background: rgba(255, 255, 255, .2); }
.rp-audio-pp { border: 0; width: 68px; height: 68px; border-radius: 50%; background: linear-gradient(150deg, #4d92e8, #2a5fb0); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 10px 28px rgba(45, 110, 200, .45); padding: 0; }
.rp-audio-pp:active { transform: scale(.96); }
.rp-audio-loading { display: none; margin-top: 16px; color: #8db9ec; font-size: 12px; }
.rp-audio-loading.on { display: block; }
.rp-audio-tip { margin-top: 24px; color: rgba(255, 255, 255, .4); font-size: 11.5px; text-align: center; line-height: 1.7; }
html.theme-light .rp-reader { background: rgba(16,24,40,.4); }
html.theme-light .rp-date-h { background: var(--bg); }
.rp-pdf-btn { flex: none; border: 1px solid var(--accent); background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 6px 13px; font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: inherit; white-space: nowrap; }
.rp-pdf-btn:active { transform: scale(.97); }

/* ============================================================================
 * 播报栏 + 播报浮标 + 电话会议悬浮播放条（2026-10-11 从桌面端 beta 移植）
 * 用网页版 CSS 变量：--panel/--surface-2/--line-strong/--muted/--ink-2/--accent-d/--bg-hover
 * ========================================================================== */
/* 顶栏第二行：播报栏（首页/VIP 共用，位于频道条上方） */
.cast-bar {
  /* 1013：flex-basis 100% + 负 margin 在 App 里实测宽 400~411px（超出 390 视口），
     「停止播报」态直接被挤出屏幕。改用 width:calc(100%+24px) 精确通栏 + wrap 兜底换行 */
  flex: 0 0 auto; box-sizing: border-box;
  width: calc(100% + 24px);
  display: flex; align-items: center; flex-wrap: wrap; row-gap: 4px; gap: 8px;
  margin: 0 -12px; padding: 5px 12px;
  /* 1013：顶栏第二行（播报栏）原本有一条 border-top:1px var(--line)，
     在品牌红渐变顶栏上渲染成一条通栏黑线，把顶栏割成两截 —— 按用户要求去掉。
     保留 1px 透明占位，保证 .cast-bar 高度与 sticky 定位零变化。 */
  border-top: 1px solid transparent;
  font-size: 12px;
}
.cast-bar.hidden { display: none; }
#castDateBtn {
  position: relative;
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--surface-2); color: var(--ink-2);
  border: 1px solid var(--line-strong); border-radius: 4px;
  padding: 4px 10px; font-size: 12px; cursor: pointer; white-space: nowrap;
}
#castDateBtn:hover { background: var(--bg-hover); color: var(--ink-strong); }
#castDateBtn .ico { width: 13px; height: 13px; }
/* 透明日期输入层：铺满按钮（initCastBar 会把它移入按钮内）→ 点按钮=直接点中 date input，
   WebView/iOS 无 showPicker 也能弹原生日历 */
#castDateInput { position: absolute; width: 1px; height: 1px; opacity: 0; border: 0; padding: 0; pointer-events: none; }
#castDateBtn #castDateInput {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  opacity: 0; border: 0; padding: 0; margin: 0; pointer-events: auto; cursor: pointer; z-index: 2;
}
.cast-bar .cast-sp { flex: 1 1 auto; }
.cast-mode { display: flex; border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; flex: 0 0 auto; background: var(--bg); }
.cast-mode-b {
  border: 0; background: transparent; color: var(--faint);
  font-size: 11px; font-weight: 500; padding: 5px 11px; cursor: pointer; white-space: nowrap;
}
.cast-mode-b + .cast-mode-b { border-left: 1px solid var(--line-strong); }
.cast-mode-b:hover { background: var(--bg-hover); color: var(--ink-strong); }
/* 选中档（未播报）：实心红底白字——与未选中（透明灰字）一眼可分，不再用浅底描边 */
.cast-mode-b.active { background: var(--cls-red, #E00426); color: #fff; font-weight: 700; }
/* 正在播报的那一档：红底白字 + 文案带「中」+ 呼吸动画——开/关一眼可辨 */
.cast-mode-b.live { background: var(--cls-red, #E00426); color: #fff; font-weight: 700; animation: castLivePulse 1.2s ease-in-out infinite; }
@keyframes castLivePulse { 0%,100% { box-shadow: 0 1px 6px rgba(224,4,38,.45); } 50% { box-shadow: 0 0 0 4px rgba(224,4,38,.22); } }
#castBtn {
  background: var(--surface-2); color: var(--ink-2);
  border: 1px solid var(--line-strong); border-radius: 4px;
  padding: 4px 12px; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; flex: 0 0 auto;
}
#castBtn:hover { background: var(--bg-hover); color: var(--ink-strong); }
/* 播报中：深色实底 + 红色呼吸环（与模式选中红区分，深浅主题都高对比） */
#castBtn.on { background: #23262b; color: #fff; border-color: transparent; animation: castOnPulse 1.6s ease-in-out infinite; }
html:not(.theme-light) #castBtn.on { background: #fff; color: #16181c; }
@keyframes castOnPulse { 0%,100% { box-shadow: 0 0 0 2px rgba(224,4,38,.5); } 50% { box-shadow: 0 0 0 4px rgba(224,4,38,.2); } }
/* 窄屏（≤400px，含主流安卓 360/375）：压缩内边距让「日期+逐条中+新消息+停止播报」一行放下，
   实在放不下时 .cast-bar 的 flex-wrap 会兜底换行，不会再挤出屏幕 */
@media (max-width: 400px) {
  .cast-bar { gap: 6px; }
  #castDateBtn { padding: 4px 8px; }
  .cast-mode-b { padding: 5px 8px; }
  #castBtn { padding: 4px 9px; }
  #castBtn.on { padding: 4px 8px; }
}

/* 语音播报开关退役（1112）：播报栏「逐条/新消息播报」已全接管自动朗读，
   旧 voiceOn 入口隐藏（后台逻辑/speak()/单条🔊朗读保留不动） */
#voiceBtn { display: none !important; }

/* 播报中浮标（左下角）：⏸ 暂停/继续 · ✕ 停止 */
.cast-pill {
  position: fixed; left: 14px; bottom: 80px; z-index: 470;
  display: flex; align-items: center; gap: 8px;
  background: rgba(22, 22, 24, .94); color: #fff;
  padding: 8px 12px; border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .35);
  user-select: none;
}
.cast-pill.hidden { display: none; }
.cast-bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.cast-bars i { width: 3px; background: #e0241b; border-radius: 1px; transform-origin: bottom; animation: castBarBounce 1s ease-in-out infinite; }
.cast-bars i:nth-child(1) { height: 6px; animation-delay: 0s; }
.cast-bars i:nth-child(2) { height: 12px; animation-delay: .15s; }
.cast-bars i:nth-child(3) { height: 14px; animation-delay: .3s; }
.cast-bars i:nth-child(4) { height: 8px; animation-delay: .45s; }
@keyframes castBarBounce { 0%, 100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }
.cast-pill .cast-t { font-size: 12.5px; font-weight: 600; letter-spacing: 1px; }
.cast-pill .cast-sep { width: 1px; height: 14px; background: rgba(255, 255, 255, .25); }
.cast-pill button {
  width: 22px; height: 22px; line-height: 20px; text-align: center;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16);
  color: #fff; font-size: 11px; cursor: pointer; padding: 0;
}
.cast-pill button:hover { background: rgba(255, 255, 255, .3); }
#castStopBtn:hover { background: #e0241b !important; }

/* 电话会议悬浮播放条（左下角，播报浮标上方）：⏸ 暂停/继续 · 标题 · ✕ 关闭 */
.audio-pill {
  position: fixed; left: 14px; bottom: 120px; z-index: 460;
  display: flex; align-items: center; gap: 8px; max-width: 300px;
  background: rgba(22, 22, 24, .94); color: #fff;
  padding: 8px 12px; border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .35);
  user-select: none;
}
.audio-pill.hidden { display: none; }
.audio-pill .ap-toggle {
  width: 22px; height: 22px; line-height: 20px; text-align: center; flex: none;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16);
  color: #fff; font-size: 11px; cursor: pointer; padding: 0;
}
.audio-pill .ap-toggle:hover { background: rgba(255, 255, 255, .3); }
.audio-pill .ap-toggle.playing { background: rgba(224, 36, 27, .8); }
.audio-pill .ap-title {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.audio-pill .ap-title:hover { text-decoration: underline; }
.audio-pill .ap-close {
  width: 22px; height: 22px; line-height: 20px; text-align: center; flex: none;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16);
  color: #fff; font-size: 11px; cursor: pointer; padding: 0;
}
.audio-pill .ap-close:hover { background: #e0241b; }

/* 首页单条播报按钮（对齐 VIP 频道的 cn-act 按钮风格） */
.cn-act.speak { }
.cn-act.speak.on { color: var(--accent); }
.cn-empty { text-align: center; color: var(--muted); font-size: 13px; padding: 30px 0; }

/* 搜索遮挡卡（2026-10-11 从桌面端移植）：未付费用户搜到 VIP 消息 → blur + 🔒胶囊 */
.sr-locked { cursor: pointer; }
.sr-lockwrap { position: relative; }
.sr-locked .m-text { filter: blur(7px); user-select: none; pointer-events: none; }
.sr-lockpill {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: rgba(20, 22, 28, .88); color: #fff;
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  white-space: nowrap; box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}

/* 研报/电话会议收藏按钮 + 收藏栏伪卡（2026-10-11 从桌面端移植） */
.rp-item { position: relative; }
.rp-fav {
  flex: none; align-self: center; cursor: pointer;
  background: var(--surface-2); color: var(--ink-2);
  border: 1px solid var(--line-strong); border-radius: 4px;
  font-size: 14px; padding: 4px 8px; line-height: 1;
}
.rp-fav:hover { color: var(--accent); border-color: var(--accent-border); }
.rp-fav-card { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.rp-fav-card .msg-header-name { font-size: 13px; font-weight: 600; }
.rp-fav-card .m-text { margin: 6px 0; }
.rp-fav-meta { color: var(--muted); font-size: 12px; }
.rp-fav-foot { display: flex; gap: 8px; margin-top: 8px; }
.rp-fav-open {
  border: 1px solid var(--accent); background: var(--accent-soft); color: var(--accent);
  border-radius: 999px; padding: 5px 13px; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.rp-fav-del {
  border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--muted);
  border-radius: 999px; padding: 5px 13px; font-size: 12.5px; cursor: pointer;
}

/* ===== 单品付费弹窗（遮挡卡专属 · 扁平化）：每个商品独立窗口 + 底部授权码开通 ===== */
.lp-card { max-width: 360px; padding: 22px; }
.lp-head { margin-bottom: 14px; }
.lp-title { font-size: 17px; font-weight: 700; color: var(--ink-strong); letter-spacing: .3px; }
.lp-sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.lp-plans { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.lp-plan {
  display: flex; justify-content: space-between; align-items: center;
  border: 1.5px solid var(--line-strong); border-radius: 10px;
  padding: 11px 14px; cursor: pointer; background: var(--surface); transition: border-color .15s, background .15s;
}
.lp-plan:hover { border-color: var(--accent-border); }
.lp-plan.sel { border-color: var(--accent); background: var(--accent-soft); }
.lp-plan .lp-pn { font-size: 14px; font-weight: 600; color: var(--ink-strong); }
.lp-plan .lp-pn i { font-style: normal; font-weight: 400; font-size: 12px; color: var(--muted); margin-left: 8px; }
.lp-plan .lp-pp { font-size: 15px; font-weight: 700; color: var(--accent); }
.lp-empty { text-align: center; color: var(--muted); font-size: 12.5px; padding: 14px 0; }
.lp-paybtn {
  width: 100%; padding: 11px 0; border: none; border-radius: 10px; cursor: pointer;
  background: var(--accent); color: #fff; font-size: 15px; font-weight: 700; font-family: inherit;
  transition: background .15s;
}
.lp-paybtn:hover { background: var(--accent-d); }
.lp-paybtn:disabled { opacity: .55; cursor: default; }
.lp-payarea { margin-top: 12px; }
.lp-payarea .pay-qr { text-align: center; margin-bottom: 6px; }
.lp-payarea .pay-qr img { width: 190px; height: 190px; border-radius: 8px; }
.lp-payhint { text-align: center; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.lp-sep { display: flex; align-items: center; gap: 10px; margin: 16px 0 10px; color: var(--faint); font-size: 11.5px; }
.lp-sep::before, .lp-sep::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.lp-redeem-row { display: flex; gap: 8px; }
.lp-code {
  flex: 1; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 10px;
  font-size: 14px; font-family: inherit; background: var(--bg-deep); color: var(--ink-strong); min-width: 0;
}
.lp-code:focus { outline: none; border-color: var(--accent); }
.lp-redeembtn {
  padding: 9px 18px; border: 1px solid var(--line-strong); border-radius: 10px; cursor: pointer;
  background: var(--surface-2); color: var(--ink-strong); font-size: 14px; font-weight: 600; font-family: inherit;
  transition: border-color .15s, background .15s;
}
.lp-redeembtn:hover { border-color: var(--accent-border); background: var(--accent-soft); }
.lp-msg { font-size: 12.5px; min-height: 16px; margin-top: 8px; text-align: center; color: var(--muted); }
.lp-msg.err { color: var(--danger); }

/* 「我的」权限清单（1012）：账号信息卡下方，展示各权限与到期时间 */
.me-perm { padding: 12px 16px 6px; }
.me-perm-title { font-size: 12px; color: var(--muted); margin: 0 2px 4px; letter-spacing: .5px; }
.me-perm-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 2px; font-size: 13px; border-bottom: 1px solid var(--line); }
.me-perm-row:last-child { border-bottom: 0; }
.mp-name { color: var(--ink-2); white-space: nowrap; }
.mp-val { color: var(--muted); font-size: 12px; text-align: right; }
.me-perm-row.ok .mp-val { color: var(--fall); }
.me-perm-row.bad .mp-val { color: var(--danger); }

/* ---- 研报阅读层（1012 定稿）：电话会议播放界面垂直居中；PDF 不做内嵌渲染 ---- */
/* （aud 播放层样式已移至 rp-audio-* 段，2026-10-13 重设计为深色沉浸式播放器） */

/* ---- 管理员「撤回」按钮（2026-10-12 晚）：仅管理员账号可见，红色以示破坏性操作 ---- */
.msg-actions .m-recall {
  background: var(--bg-hover); border: 1px solid rgba(217,48,37,.42);
  font-size: 12px; line-height: 1; cursor: pointer; color: #d93025;
  padding: 2px 6px; border-radius: 6px; flex-shrink: 0; font-weight: 600;
  min-width: 22px; min-height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
}
.msg-actions .m-recall:hover, .msg-actions .m-recall.armed { background: #d93025; border-color: #d93025; color: #fff; }
.cn-act.recall { color: #d93025; font-weight: 600; }
.cn-act.recall:active, .cn-act.recall.armed { color: #fff; background: #d93025; border-radius: 4px; padding: 3px 8px; }
.cn-act.recall:disabled { opacity: .55; }

/* ===== 2026-10-13 搜索结果点击跳转：指针 + 首页资讯定位高亮 ===== */
.search-result { cursor: pointer; }
@keyframes locate-flash-a { 0% { box-shadow: 0 0 0 3px rgba(232,72,74,.9); } 100% { box-shadow: 0 0 0 3px rgba(232,72,74,0); } }
.cn-card.locate-flash { animation: locate-flash-a 1.6s ease; }
