: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;
  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; }

/* ========== 窗口 Tab 栏（频道胶囊） ========== */
.window-bar {
  position: sticky; top: 54px; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 20px;
  background: rgba(18,25,34,.8);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.window-bar::-webkit-scrollbar { display: none; }
.window-label { font-size: 12px; color: var(--muted); white-space: nowrap; font-weight: 600; }
.window-tabs { display: flex; gap: 7px; }
.win-tab {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink-2);
  border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: .18s; font-family: inherit;
}
.win-tab::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ch); flex-shrink: 0; }
.win-tab:hover { background: var(--bg-hover); transform: translateY(-1px); }
.win-tab.active {
  background: var(--accent); border-color: var(--accent); color: #fff;
  box-shadow:0 3px 10px rgba(232,72,74,.28);
}
.win-tab.active::before { background: #fff; }
.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-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 96px; }
.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: 14px; min-width: 200px; font-family: inherit;
  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.8; word-break: break-word;
  white-space: pre-wrap; font-size: 14px;
}
.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 {
  position: fixed; inset: 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;
}
.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: 14.5px; font-family: inherit;
  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; }

.hidden { display: none !important; }

.lightbox {
  position: fixed; inset: 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%);
  bottom: calc(14px + env(safe-area-inset-bottom)); 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 + env(safe-area-inset-top)); 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; }

  .window-bar { top: calc(47px + env(safe-area-inset-top)); padding: 8px 12px; }
  .window-label { display: none; }
  .win-tab { padding: 5px 12px; font-size: 12.5px; }

  main { padding: 12px 10px calc(86px + env(safe-area-inset-bottom)); }
  .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;
  font-size: 14.5px; 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 { background: #fff3a3; color: inherit; border-radius: 3px; padding: 0 1px; }

/* 语音播报中指示 */
.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 { font-size: 14px; }
}

/* 加载更多 */
.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; }

/* ---------- 我的（账户页） ---------- */
.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;
}

/* ===== 消息中的网页链接 ===== */
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%;
  height: calc(100vh - var(--us-board-top, 0px));
  border: 0;
  background: #f2f4f6;
  z-index: 30;
}
.win-tab-us { --ch: #ffb020; }

/* ---- 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; }

/* ===== 频道栏/搜索栏随内容滚动（取消吸附） ===== */
.window-bar { position: static; }
.search-bar { position: static; }

/* ===== 一键回顶按钮（右下角） ===== */
.back-top {
  position: fixed; right: 16px; bottom: 24px; 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; }
@media (max-width: 720px) {
  .back-top { right: 12px; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
}

/* ===== 设置弹层 ===== */
.settings-pop {
  position: fixed; top: calc(52px + 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(14px * var(--fs)); line-height: calc(1.8 * 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)); }

/* ===== 公告 / 活动（全端弹窗 + 订阅页活动位） ===== */
.ann-card { text-align: center; border-top: 3px solid var(--accent); }
.ann-icon { font-size: 32px; margin-bottom: 6px; }
.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: 6px 0 16px; }
.ann-ok { width: 100%; }
.my-promo { position: relative; border: 1px solid var(--accent-border); background: var(--accent-soft); border-radius: 12px; padding: 16px 14px 14px; margin-top: 4px; }
.my-promo-badge { position: absolute; top: -9px; left: 12px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.my-promo-title { font-size: 15px; font-weight: 800; color: var(--ink-strong); }
.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: 15px; 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; white-space: pre-wrap; }
.my-promo-btn { width: 100%; margin-top: 10px; }
.my-promo .hl { color: var(--accent); font-weight: 800; }
