/* ============================================================================
   舆情雷达 · A股主题舆情监控 — 夜间交易终端美学
   ========================================================================== */
:root {
  --bg: #060911;
  --bg2: #0a1020;
  --panel: rgba(255, 255, 255, 0.028);
  --panel-hi: rgba(255, 255, 255, 0.05);
  --panel-border: rgba(255, 255, 255, 0.08);
  --panel-border-hi: rgba(120, 220, 255, 0.22);
  --text: #e9edf6;
  --text-dim: #97a2b8;
  --text-faint: #59637a;
  --mono: "JetBrains Mono", "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --cjk: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
  --live: #37e6d6;          /* 实时强调：青绿 */
  --live-glow: rgba(55, 230, 214, 0.35);
  --bull: #ff4d67;          /* 利好（A股红） */
  --bear: #34d47c;          /* 利空（A股绿） */
  --neu: #8a93a7;
  --gold: #f5c35a;
  --radius: 16px;
  --maxw: 1500px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--cjk);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---- 背景：网格 + 光晕 ---- */
.bg-grid {
  position: fixed; inset: 0; z-index: -3;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 10%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 10%, #000 0%, transparent 75%);
}
.bg-glow { position: fixed; z-index: -2; filter: blur(90px); opacity: .45; border-radius: 50%; }
.bg-glow-a { width: 620px; height: 620px; top: -220px; left: -140px; background: radial-gradient(circle, #14555f, transparent 70%); }
.bg-glow-b { width: 560px; height: 560px; top: 20%; right: -180px; background: radial-gradient(circle, #4a2050, transparent 70%); opacity: .35; }

.shell { max-width: var(--maxw); margin: 0 auto; padding: 20px 22px 40px; }

/* =========== 底部备案信息（工信部要求：标明备案号并链接 beian.miit.gov.cn） =========== */
.site-footer {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 18px;
  margin-top: 8px; padding-top: 10px;
  border-top: 1px dashed rgba(255,255,255,.07);
  font-size: 12px; color: var(--text-faint); text-align: center; letter-spacing: .4px;
}
.footer-icp { color: var(--text-dim); text-decoration: none; transition: color .15s; }
.footer-icp:hover { color: var(--live); text-decoration: underline; }
.footer-contact { color: var(--text-dim); }
/* 页脚按钮（意见反馈）：长得像链接，但是个按钮 */
.footer-btn {
  font: inherit; font-size: 12px; letter-spacing: .4px; cursor: pointer;
  background: none; border: none; padding: 0;
  color: var(--text-dim); text-decoration: none; transition: color .15s;
}
.footer-btn:hover { color: var(--live); text-decoration: underline; }

/* ===== 意见反馈弹窗 ===== */
.modal-feedback { max-width: 520px; }
.fb-text {
  width: 100%; min-height: 132px; resize: vertical; line-height: 1.7;
  font-family: var(--cjk); box-sizing: border-box;
}
.fb-count { text-align: right; font-size: 11px; color: var(--text-faint); margin: 7px 2px 14px; }

/* 管理端：反馈列表 */
.fb-item {
  border: 1px solid var(--panel-border); border-left: 3px solid var(--panel-border);
  border-radius: 10px; padding: 9px 12px; margin-bottom: 8px;
  background: rgba(255,255,255,.02);
}
.fb-item.is-new { border-left-color: var(--gold); }
.fb-item-head { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; color: var(--text-faint); }
.fb-who { color: var(--text-dim); }
.fb-text-body { font-size: 13px; color: var(--text); line-height: 1.6; margin: 6px 0; white-space: pre-wrap; }
.fb-item-ops { display: flex; gap: 8px; }
.fb-item-ops .btn-ghost { padding: 3px 10px; font-size: 12px; }
.btn-admin.has-unread { color: var(--gold); border-color: rgba(245,195,90,.45); }

/* =========== 条目区版权与引用说明（合规） =========== */
.items-note {
  margin-top: 14px; padding: 10px 14px;
  border: 1px dashed rgba(255,255,255,.09);
  border-radius: 10px;
  background: rgba(255,255,255,.015);
  font-size: 11px; line-height: 1.7; color: var(--text-faint);
}
.items-note b { color: var(--text-dim); font-weight: 600; }

/* =========== 登录卡片：密码规则与访客说明 =========== */
.login-rule { margin-top: 10px; font-size: 11px; color: var(--text-faint); text-align: center; line-height: 1.6; }
.login-guest {
  margin-top: 12px; padding-top: 10px; font-size: 11px; color: var(--text-faint);
  text-align: center; line-height: 1.6; border-top: 1px dashed rgba(255,255,255,.08);
}

/* =========== 升级弹窗：个人主体不支持在线支付时的提示 =========== */
.up-pay-tip {
  margin-top: 14px; padding: 10px 14px;
  border: 1px dashed rgba(245,195,90,.3); border-radius: 10px;
  background: rgba(245,195,90,.05);
  font-size: 12px; line-height: 1.7; color: var(--text-dim);
}
.up-pay-tip a { color: var(--gold); text-decoration: none; }
.up-pay-tip a:hover { text-decoration: underline; }


/* =========== 顶栏 =========== */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; margin-bottom: 18px;
  background: rgba(10, 16, 32, 0.6); backdrop-filter: blur(14px);
  border: 1px solid var(--panel-border); border-radius: var(--radius);
  position: sticky; top: 12px; z-index: 20;
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  font-size: 22px; color: var(--live);
  text-shadow: 0 0 14px var(--live-glow);
  border: 1px solid rgba(55,230,214,.4); border-radius: 12px;
  background: rgba(55,230,214,.07);
}
.brand-title { font-size: 21px; font-weight: 800; letter-spacing: .5px; margin: 0; line-height: 1; }
.brand-title span { color: var(--live); }
.brand-sub { margin: 4px 0 0; font-size: 12px; color: var(--text-dim); letter-spacing: .6px; }

.topbar-right { display: flex; align-items: center; gap: 16px; }

/* ===== 推送通知（右上角铃铛 + 流内通知条） =====
   刻意不用浮层："盖住内容"是必须避免的，所以展开时把下方内容整体下推。 */
.notify-wrap { position: relative; display: flex; align-items: center; }
.btn-notify {
  font-family: var(--cjk); font-size: 14px; cursor: pointer; position: relative;
  padding: 7px 12px; border-radius: 10px;
  border: 1px solid var(--panel-border); background: transparent; color: var(--text-dim);
  transition: all .15s;
}
.btn-notify:hover { color: var(--text); border-color: var(--panel-border-hi); }
.btn-notify.has-unread { color: var(--gold); border-color: rgba(245,195,90,.45); }
.notify-count {
  position: absolute; top: -7px; right: -7px;
  min-width: 18px; height: 18px; line-height: 18px; padding: 0 5px;
  border-radius: 999px; font-size: 11px; font-weight: 700; font-family: var(--mono);
  color: #2a1f05; background: linear-gradient(180deg, #ffd76e, #f0b73c);
  box-shadow: 0 2px 8px rgba(240,183,60,.4);
}
.notify-bar {
  margin: 0 0 16px;
  border: 1px solid var(--panel-border-hi);
  border-radius: 14px;
  background: rgba(10,16,32,.72);
  overflow: hidden;
  animation: notifyIn .22s ease;
}
@keyframes notifyIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.notify-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 14px; border-bottom: 1px solid var(--panel-border);
  font-size: 13px; font-weight: 700; color: var(--text);
}
.notify-head-ops { display: flex; align-items: center; gap: 8px; }
.notify-clear { padding: 4px 10px !important; font-size: 12px !important; }
.notify-x {
  background: none; border: 1px solid var(--panel-border); border-radius: 8px;
  cursor: pointer; color: var(--text-dim); font-size: 12px; padding: 4px 10px;
  font-family: var(--cjk);
}
.notify-x:hover { color: var(--text); border-color: var(--panel-border-hi); }
/* 多列平铺：同样条数占用更少高度；桌面只占两行（≈110px），避免把主内容推得太远 */
.notify-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 6px; padding: 8px; max-height: 112px; overflow-y: auto;
  overscroll-behavior: contain;
}
.notify-item {
  padding: 7px 10px; border-radius: 10px; cursor: pointer;
  border-left: 2px solid transparent; background: rgba(255,255,255,.03);
  transition: background .15s;
}
.notify-item:hover { background: rgba(255,255,255,.07); }
.notify-item.lv-pos { border-left-color: var(--bull); }
.notify-item.lv-neg { border-left-color: var(--bear); }
.notify-item.lv-heat { border-left-color: var(--live); }
.notify-item .nt-head {
  font-size: 12.5px; color: var(--text); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.notify-item .nt-meta { font-size: 11px; color: var(--text-faint); margin-top: 2px; }
.notify-item .nt-theme { color: var(--live); }
@media (max-width: 900px) {
  .notify-list { grid-template-columns: 1fr; max-height: 168px; }
}
.conn { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-dim); }
.conn-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--neu); }
.conn.live .conn-dot { background: var(--live); box-shadow: 0 0 0 0 var(--live-glow); animation: pulse 2s infinite; }
.conn.off .conn-dot { background: var(--bull); }
@keyframes pulse { 0%{box-shadow:0 0 0 0 var(--live-glow)} 70%{box-shadow:0 0 0 9px transparent} 100%{box-shadow:0 0 0 0 transparent} }
.clock { font-family: var(--mono); font-size: 17px; color: var(--text); letter-spacing: 1px; }
.data-ts { font-family: var(--mono); font-size: 11px; color: var(--text-faint); letter-spacing: .5px; }
.btn-run {
  font-family: var(--cjk); font-size: 13px; cursor: pointer;
  padding: 8px 16px; border-radius: 10px; border: 1px solid rgba(55,230,214,.4);
  background: rgba(55,230,214,.1); color: var(--live);
  transition: background .18s, transform .1s;
}
.btn-run:hover { background: rgba(55,230,214,.2); }
.btn-run:active { transform: scale(.96); }
.btn-search {
  font-family: var(--cjk); font-size: 13px; font-weight: 700; cursor: pointer;
  padding: 8px 15px; border-radius: 10px;
  border: 1px solid rgba(125,138,165,.5); background: rgba(125,138,165,.12); color: #aeb9d2;
  transition: all .18s;
}
.btn-search:hover { background: rgba(125,138,165,.24); color: var(--text); border-color: #aeb9d2; }

/* =========== 商业化：套餐 / 广告 / 渠道 / 导出 =========== */
.plan-badge {
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  padding: 5px 11px; border-radius: 999px;
  color: var(--gold); background: rgba(245,195,90,.12); border: 1px solid rgba(245,195,90,.4);
}
.btn-upgrade {
  font-family: var(--cjk); font-size: 13px; font-weight: 700; cursor: pointer;
  padding: 8px 15px; border-radius: 10px;
  border: 1px solid rgba(245,195,90,.5); background: rgba(245,195,90,.14); color: var(--gold);
  transition: all .18s;
}
.btn-upgrade:hover { background: rgba(245,195,90,.26); }
.btn-admin {
  font-family: var(--cjk); font-size: 12px; cursor: pointer;
  padding: 7px 12px; border-radius: 9px;
  border: 1px solid var(--panel-border); background: transparent; color: var(--text-dim);
  transition: all .15s;
}
.btn-admin:hover { color: var(--text); border-color: var(--panel-border-hi); }

/* =========== 管理端 =========== */
.ad-sec { margin: 14px 0; }
.ad-sec-title { font-size: 12px; color: var(--text-dim); letter-spacing: .5px; margin-bottom: 8px; font-weight: 600; }
.ad-dim { font-size: 13px; color: var(--text-dim); line-height: 1.7; }
.ad-planbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.ad-planbtn {
  font-family: var(--cjk); font-size: 13px; cursor: pointer;
  padding: 8px 16px; border-radius: 9px;
  border: 1px solid var(--panel-border); background: rgba(255,255,255,.03); color: var(--text);
  transition: all .15s;
}
.ad-planbtn:hover { border-color: var(--panel-border-hi); }
.ad-planbtn.is-cur { border-color: rgba(245,195,90,.5); color: var(--gold); background: rgba(245,195,90,.08); }
.ad-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.ad-table th, .ad-table td { padding: 6px 8px; text-align: left; border-bottom: 1px solid var(--panel-border); }
.ad-table th { color: var(--text-dim); font-weight: 600; }
.ad-table td { color: var(--text); font-family: var(--mono); font-size: 11px; }
.ad-table .st-paid { color: var(--bear); }
.ad-table .st-pending { color: var(--gold); }

.ad-slot {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 18px; padding: 10px 16px;
  border: 1px dashed rgba(255,255,255,.16); border-radius: 12px;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.015), rgba(255,255,255,.015) 10px, rgba(255,255,255,.03) 10px, rgba(255,255,255,.03) 20px);
  color: var(--text-faint); font-size: 12px;
}
.ad-slot:not(:has(.ad-qr:not([hidden]))) { justify-content: center; }
.ad-tag { font-size: 10px; color: var(--text-faint); border: 1px solid var(--panel-border); border-radius: 5px; padding: 1px 6px; flex-shrink: 0; align-self: center; }
.ad-body {
  color: var(--text-dim); text-decoration: none; transition: color .15s; flex: 1;
  text-align: center;
}
.ad-body.has-link { color: var(--text); cursor: pointer; }
.ad-body.has-link:hover { color: var(--live); text-decoration: underline; }
.ad-body.has-link:hover::after { content: " ↗"; color: var(--live); }
.ad-qr {
  width: 84px; height: 84px; object-fit: contain; border-radius: 8px;
  background: #fff; padding: 3px; flex-shrink: 0; align-self: center;
}
.ad-qr-tip {
  font-size: 10px; color: var(--text-faint); writing-mode: vertical-rl;
  letter-spacing: 2px; flex-shrink: 0; align-self: center;
}
/* 关注领取按钮：广告位上的引流 CTA */
.ad-claim {
  flex-shrink: 0; align-self: center; cursor: pointer;
  font-size: 12px; font-weight: 600; letter-spacing: .3px;
  color: #1b1405; background: linear-gradient(180deg, #ffd76e, #f0b73c);
  border: 0; border-radius: 999px; padding: 6px 16px;
  box-shadow: 0 2px 10px rgba(240,183,60,.28);
  transition: transform .12s, box-shadow .15s, filter .15s;
}
.ad-claim:hover { filter: brightness(1.06); box-shadow: 0 3px 14px rgba(240,183,60,.42); }
.ad-claim:active { transform: translateY(1px); }
.ad-claim:disabled { cursor: default; }
.ad-claim.ad-claim-done {
  color: var(--text-faint); background: transparent;
  border: 1px solid var(--panel-border); box-shadow: none; font-weight: 500;
}
@media (max-width: 720px) {
  .ad-slot { flex-wrap: wrap; }
  .ad-body { flex-basis: calc(100% - 60px); }
  .ad-qr { width: 72px; height: 72px; }
  .ad-claim { order: 3; flex-basis: 100%; }
}

.btn-export { color: var(--gold); border-color: rgba(245,195,90,.35); }.btn-export:hover { color: var(--gold); background: rgba(245,195,90,.1); border-color: rgba(245,195,90,.5); }
.btn-company { color: var(--live); border-color: rgba(55,230,214,.35); }
.btn-company:hover { color: var(--live); background: rgba(55,230,214,.1); border-color: rgba(55,230,214,.5); }

/* =========== 公司全景 =========== */
.modal-wide { width: min(860px, 100%); }
.co-body { display: grid; gap: 14px; }
.co-sec {
  background: var(--panel-hi); border: 1px solid rgba(255,255,255,.05);
  border-radius: 12px; padding: 14px;
}
.co-sec-title { font-size: 13px; font-weight: 700; color: var(--text-dim); margin-bottom: 10px; letter-spacing: .5px; }
.co-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.co-cell { background: rgba(255,255,255,.03); border-radius: 9px; padding: 8px 10px; }
.co-cell .k { font-size: 11px; color: var(--text-faint); }
.co-cell .v { font-size: 16px; font-family: var(--mono); margin-top: 3px; }
.co-cell .v.up { color: var(--bull); } .co-cell .v.down { color: var(--bear); }
.co-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.co-chip { font-size: 12px; padding: 5px 11px; border-radius: 8px; border: 1px solid rgba(55,230,214,.3); color: var(--live); background: rgba(55,230,214,.06); }
.co-list { display: grid; gap: 8px; max-height: 220px; overflow-y: auto; }
.co-item { font-size: 13px; line-height: 1.5; color: var(--text); }
.co-item a { color: inherit; text-decoration: none; }
.co-item a:hover { color: var(--live); }
.co-item .meta { font-size: 11px; color: var(--text-faint); margin-top: 2px; }

.ch-panel .src-row .src-on { background: var(--gold); box-shadow: 0 0 8px rgba(245,195,90,.35); }
.ch-panel .src-row .src-off { background: var(--text-faint); }
.ch-locked { color: var(--text-faint); }

.plan-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.pcard {
  border: 1px solid var(--panel-border); border-radius: 12px; padding: 14px; cursor: pointer;
  transition: all .16s; background: rgba(255,255,255,.02);
}
.pcard:hover { border-color: var(--panel-border-hi); }
.pcard.is-active { border-color: rgba(245,195,90,.55); background: rgba(245,195,90,.07); box-shadow: 0 0 16px rgba(245,195,90,.08) inset; }
.pcard-name { font-size: 14px; font-weight: 800; }
.pcard-price { font-family: var(--mono); font-size: 20px; font-weight: 700; margin: 6px 0 2px; color: var(--gold); }
.pcard-price small { font-size: 11px; color: var(--text-faint); font-weight: 400; }
.pcard-desc { font-size: 11px; color: var(--text-dim); line-height: 1.5; }

/* =========== 主题标签栏 =========== */
.theme-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 6px; margin-bottom: 16px;
  background: rgba(10,16,32,.5); backdrop-filter: blur(12px);
  border: 1px solid var(--panel-border); border-radius: 14px;
}
.ttab {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--cjk); font-size: 14px; font-weight: 600;
  color: var(--text-dim); cursor: pointer;
  padding: 9px 16px; border-radius: 10px;
  border: 1px solid transparent; background: transparent;
  transition: all .16s;
}
.ttab:hover { color: var(--text); background: rgba(255,255,255,.04); }
.ttab .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-faint); }
.ttab.is-active { color: var(--text); background: rgba(55,230,214,.12); border-color: rgba(55,230,214,.4); box-shadow: 0 0 18px rgba(55,230,214,.08) inset; }
.ttab.is-active .dot { background: var(--live); box-shadow: 0 0 8px var(--live-glow); }
.ttab .new {
  font-family: var(--mono); font-size: 10px; color: #06231f;
  background: var(--gold); padding: 1px 6px; border-radius: 6px; font-weight: 700;
}
.ttab .new[data-c="0"] { display: none; }
.ttab-close {
  font-size: 16px; line-height: 1; color: var(--text-faint); cursor: pointer;
  margin-left: 2px; padding: 0 3px; border-radius: 5px; transition: all .14s;
  opacity: 0;
}
.ttab:hover .ttab-close { opacity: 1; }
.ttab.is-active .ttab-close { opacity: .75; }
.ttab-close:hover { color: var(--bull); background: rgba(255,77,103,.12); }
.ttab-edit {
  font-size: 13px; line-height: 1; color: var(--text-faint); cursor: pointer;
  margin-left: 1px; padding: 0 4px; border-radius: 5px; transition: all .14s;
  opacity: 0;
}
.ttab:hover .ttab-edit { opacity: 1; }
.ttab.is-active .ttab-edit { opacity: .75; }
.ttab-edit:hover { color: var(--live); background: rgba(55,230,214,.12); }
/* 公共主题标记（只读、全员共享）：无编辑/关闭按钮，也不参与拖拽排序 */
.ttab-pub {
  font-size: 10px; line-height: 1; letter-spacing: .5px;
  color: var(--text-faint); border: 1px solid var(--panel-border);
  border-radius: 4px; padding: 1px 4px; cursor: default;
}
.ttab.is-pub { cursor: pointer; }
.ttab.is-pub .dot { background: var(--text-faint); }
.ttab-name-wrap { display: flex; align-items: center; gap: 6px; }
.ttab-kw {
  display: block; font-size: 10px; color: var(--text-faint); letter-spacing: .2px;
  max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px;
}
.ttab.is-active .ttab-kw { color: rgba(55,230,214,.75); }
.ttab { flex-direction: column; align-items: flex-start; }
.ttab { cursor: grab; }
.ttab:active { cursor: grabbing; }
.ttab.dragging { opacity: .45; border: 1px dashed rgba(55,230,214,.6); }
.tadd {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--cjk); font-size: 13px; font-weight: 600;
  color: var(--live); cursor: pointer;
  padding: 9px 14px; border-radius: 10px;
  border: 1px dashed rgba(55,230,214,.4); background: transparent;
  transition: all .16s;
}
.tadd:hover { background: rgba(55,230,214,.1); }
.tclosed {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--cjk); font-size: 13px; font-weight: 600;
  color: var(--text-faint); cursor: pointer;
  padding: 9px 14px; border-radius: 10px;
  border: 1px solid var(--panel-border); background: transparent;
  transition: all .16s;
}
.tclosed:hover { color: var(--text); border-color: var(--panel-border-hi); }

/* =========== 新建主题弹窗 =========== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(3,6,12,.72); backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 20px;
  animation: fadeIn .2s;
}
.modal-overlay[hidden] { display: none !important; }

/* =========== 登录遮罩 =========== */
.login-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(3,6,12,.86); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 20px;
}
.login-overlay[hidden] { display: none !important; }
.login-card {
  width: min(360px, 100%);
  background: rgba(15,22,40,.96); border: 1px solid var(--panel-border-hi);
  border-radius: 18px; padding: 26px; box-shadow: 0 30px 80px rgba(0,0,0,.6);
  animation: modalUp .28s cubic-bezier(.2,.8,.2,1);
}
.login-brand { margin-bottom: 18px; }
.login-actions { display: flex; gap: 10px; margin-top: 14px; }
.modal {
  width: min(620px, 100%); max-height: 84vh; overflow: auto;
  background: rgba(15,22,40,.96); border: 1px solid var(--panel-border-hi);
  border-radius: 16px; padding: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.6);
  animation: modalUp .28s cubic-bezier(.2,.8,.2,1);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.modal-head h3 { margin: 0; font-size: 18px; font-weight: 800; }
.modal-x { font-size: 22px; cursor: pointer; background: none; border: none; color: var(--text-dim); }
.modal-x:hover { color: var(--bull); }

/* 关注领取引导（广告位 CTA 的必经弹层） */
.modal-claim { max-width: 420px; text-align: center; }
.claim-steps { display: flex; gap: 10px; justify-content: center; margin: 6px 0 14px; flex-wrap: wrap; }
.claim-step {
  font-size: 12px; color: var(--text-dim);
  border: 1px solid var(--panel-border); border-radius: 999px; padding: 4px 12px;
}
.claim-qr {
  width: 200px; height: 200px; object-fit: contain; display: block; margin: 0 auto 12px;
  background: #fff; padding: 8px; border-radius: 12px; cursor: pointer;
}
.claim-qr.pulse { animation: claimPulse 1.1s ease-out 2; }
@keyframes claimPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,195,90,0); }
  50% { box-shadow: 0 0 0 10px rgba(245,195,90,.22); }
}
.claim-link { display: inline-block; font-size: 13px; color: var(--live); margin-bottom: 14px; }
.claim-actions { display: flex; gap: 10px; justify-content: center; margin-bottom: 8px; }
.claim-actions .btn-primary { flex: 1; }
/* 未接触公众号路径前：按钮明确置灰（不能"点一下就升级"） */
.claim-actions .btn-primary:disabled {
  background: rgba(255, 255, 255, .06);
  border-color: var(--panel-border);
  color: var(--text-faint);
  font-weight: 500;
}
#claim-msg:empty { display: none; }
/* 口令输入（invite 模式）：与引导层同列 */
.claim-code { margin-bottom: 12px; }

/* 升级弹窗里的"真实可用路径"区块 */
.up-path { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--panel-border); }
.up-path-title { font-size: 12px; color: var(--text-dim); margin-bottom: 8px; }
.up-code-row { display: flex; gap: 8px; }
.up-code-row .modal-input { flex: 1; }
.up-code-row .btn-primary { flex: none; }
/* 管理端：口令白名单表单（一行多控件） */
.ad-invite-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ad-invite-form .modal-input { padding: 7px 10px; font-size: 13px; }
.ad-invite-form .btn-primary { padding: 7px 16px; font-size: 13px; }
.ad-lbl { font-size: 12px; color: var(--text-faint); }
.ad-table .iv-del { padding: 3px 10px; font-size: 12px; }
.ad-table .iv-copy { padding: 3px 10px; font-size: 12px; color: var(--live); border-color: rgba(55,230,214,.35); }
.ad-table .iv-ops { white-space: nowrap; }
/* 管理端：推送渠道配置表单 */
.ch-cfg-row {
  border: 1px solid var(--panel-border); border-radius: 12px;
  padding: 10px 12px; margin-bottom: 10px; background: rgba(255,255,255,.02);
}
.ch-cfg-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ch-cfg-toggle { display: flex; align-items: center; gap: 7px; cursor: pointer; }
.ch-cfg-toggle input { accent-color: #37e6d6; }
.ch-cfg-name { font-size: 13px; font-weight: 700; color: var(--text); }
.ch-cfg-state { font-size: 11px; color: var(--text-faint); }
.ch-cfg-state.is-on { color: var(--live); }
.ch-cfg-fields { display: flex; flex-wrap: wrap; gap: 8px; margin: 9px 0; }
.ch-cfg-field { display: flex; flex-direction: column; gap: 3px; flex: 1 1 170px; }
.ch-cfg-field .modal-input { padding: 6px 9px; font-size: 12px; }
.ch-cfg-ops { display: flex; align-items: center; gap: 8px; }
.ch-cfg-ops .btn-primary, .ch-cfg-ops .btn-ghost { padding: 5px 14px; font-size: 12px; }
.ch-cfg-msg { font-size: 11px; }
.modal-desc { color: var(--text-dim); font-size: 13px; margin: 0 0 16px; }
.modal-label { display: block; font-size: 12px; color: var(--text-dim); margin: 12px 0 7px; letter-spacing: .5px; }
.modal-input {
  width: 100%; font-family: var(--cjk); font-size: 14px; color: var(--text);
  background: rgba(255,255,255,.05); border: 1px solid var(--panel-border);
  border-radius: 10px; padding: 10px 12px; outline: none; transition: border-color .15s;
}
.modal-input:focus { border-color: rgba(55,230,214,.5); }
.pool { display: flex; flex-wrap: wrap; gap: 8px; max-height: 180px; overflow-y: auto; padding: 4px 0; }

/* =========== A股分类库选择 =========== */
.lib { margin-bottom: 4px; }
.lib-tabs { display: flex; gap: 6px; margin-bottom: 8px; }
.lib-tab { font-family: var(--cjk); font-size: 12px; cursor: pointer; padding: 5px 14px; border-radius: 8px; border: 1px solid var(--panel-border); background: transparent; color: var(--text-dim); transition: all .15s; }
.lib-tab:hover { color: var(--text); border-color: var(--panel-border-hi); }
.lib-tab.is-active { background: rgba(55,230,214,.12); color: var(--live); border-color: rgba(55,230,214,.4); }
.lib-list { max-height: 170px; overflow-y: auto; margin-top: 8px; display: flex; flex-wrap: wrap; gap: 7px; align-content: flex-start; }
.lib-item { font-family: var(--cjk); font-size: 12px; padding: 6px 11px; border-radius: 8px; cursor: pointer; border: 1px solid rgba(255,255,255,.08); color: var(--text-dim); transition: all .14s; background: rgba(255,255,255,.02); }
.lib-item:hover { color: var(--gold); border-color: rgba(245,195,90,.4); background: rgba(245,195,90,.07); transform: translateY(-1px); }
.lib-item .code { font-family: var(--mono); font-size: 10px; opacity: .6; margin-left: 5px; }
.lib-list::-webkit-scrollbar { width: 6px; }
.lib-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 4px; }
.pool-chip {
  font-family: var(--cjk); font-size: 13px; padding: 7px 13px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--panel-border); color: var(--text-dim); transition: all .14s; user-select: none;
}
.pool-chip:hover { color: var(--text); border-color: var(--panel-border-hi); }
.pool-chip.on { color: var(--live); border-color: rgba(55,230,214,.45); background: rgba(55,230,214,.1); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.btn-ghost { font-family: var(--cjk); font-size: 14px; cursor: pointer; padding: 9px 18px; border-radius: 10px; border: 1px solid var(--panel-border); background: transparent; color: var(--text-dim); transition: all .15s; }
.btn-ghost:hover { color: var(--text); border-color: var(--panel-border-hi); }
.btn-primary { font-family: var(--cjk); font-size: 14px; font-weight: 700; cursor: pointer; padding: 9px 22px; border-radius: 10px; border: 1px solid rgba(55,230,214,.5); background: rgba(55,230,214,.16); color: var(--live); transition: all .15s; }
.btn-primary:hover { background: rgba(55,230,214,.28); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
@keyframes modalUp { from{opacity:0; transform: translateY(14px) scale(.98)} to{opacity:1; transform:none} }

/* =========== Hero 指标区 =========== */
.hero { display: grid; grid-template-columns: 380px 1fr; gap: 18px; margin-bottom: 18px; }
.gauge-card {
  padding: 20px 22px; background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: var(--radius); position: relative; overflow: hidden;
}
.gauge-card::after { content:""; position:absolute; inset:0; background: radial-gradient(circle at 20% 0%, rgba(55,230,214,.08), transparent 55%); pointer-events:none; }
.gauge-head { display: flex; justify-content: space-between; align-items: baseline; }
.gauge-label { font-size: 13px; color: var(--text-dim); letter-spacing: 1px; }
.gauge-range { font-family: var(--mono); font-size: 11px; color: var(--text-faint); }
.gauge-body { display: flex; align-items: baseline; gap: 14px; margin: 6px 0 16px; }
.gauge-num .big { font-family: var(--mono); font-size: 62px; font-weight: 700; line-height: 1; color: var(--text); }
.gauge-meta { transform: translateY(-8px); }
.gauge-track { position: relative; height: 10px; border-radius: 6px; background: linear-gradient(90deg, rgba(52,212,124,.18), rgba(138,147,167,.18), rgba(255,77,103,.18)); }
.gauge-zero { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: rgba(255,255,255,.28); }
.gauge-needle { position: absolute; top: -7px; width: 3px; height: 24px; background: var(--text); left: 50%; transition: left .6s cubic-bezier(.2,.8,.2,1); border-radius: 3px; }
.gauge-needle::after { content:""; position:absolute; top:0; left:50%; transform:translateX(-50%); border:5px solid transparent; border-top:7px solid var(--text); }
.gauge-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-faint); margin-top: 10px; }
.gauge-scale span:first-child { color: var(--bear); }
.gauge-scale span:last-child { color: var(--bull); }

.badge { font-size: 13px; padding: 5px 13px; border-radius: 999px; letter-spacing: 2px; font-weight: 600; }
.badge-positive { color: var(--bull); background: rgba(255,77,103,.14); border: 1px solid rgba(255,77,103,.4); }
.badge-negative { color: var(--bear); background: rgba(52,212,124,.14); border: 1px solid rgba(52,212,124,.4); }
.badge-neutral { color: var(--neu); background: rgba(138,147,167,.14); border: 1px solid rgba(138,147,167,.35); }

.stat-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.stat {
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius);
  padding: 18px 18px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
  position: relative; overflow: hidden;
  cursor: pointer; transition: border-color .15s, background .15s, transform .15s;
}
.stat:hover { border-color: rgba(55,230,214,.4); background: rgba(255,255,255,.04); }
.stat:active { transform: scale(.98); }
.stat::before { content:""; position:absolute; top:0; left:0; width:100%; height:2px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent); }
.stat-label { font-size: 12px; color: var(--text-dim); letter-spacing: .5px; }
.stat-val { font-family: var(--mono); font-size: 34px; font-weight: 700; line-height: 1; }
.stat-val.up { color: var(--bull); }
.stat-val.down { color: var(--bear); }
.stat-val.neu { color: var(--neu); }

/* =========== 主网格 =========== */
.main-grid { display: grid; grid-template-columns: 340px 1fr 320px; gap: 18px; align-items: start; }
.panel {
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius);
  padding: 16px 16px 18px; position: relative; overflow: hidden;
}
.panel:hover { border-color: var(--panel-border-hi); }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.panel-title { font-size: 15px; font-weight: 700; letter-spacing: .5px; margin: 0; }
.panel-dots { letter-spacing: 4px; color: var(--live); text-shadow: 0 0 10px var(--live-glow); font-size: 9px; }
.run-last { font-family: var(--mono); font-size: 10px; color: #7d8aa5; margin-right: 6px; }
.live-tag { font-family: var(--mono); font-size: 10px; color: #06231f; background: var(--live); padding: 2px 7px; border-radius: 6px; margin-left: 6px; font-weight: 700; letter-spacing: 1px; animation: blink 1.6s infinite; }
@keyframes blink { 50%{opacity:.55} }

/* ---- 因子筛选按钮 ---- */
.filters { display: flex; gap: 6px; }
.fbtn { font-family: var(--cjk); font-size: 12px; cursor: pointer; padding: 5px 11px; border-radius: 8px; border: 1px solid var(--panel-border); background: transparent; color: var(--text-dim); transition: all .15s; }
.fbtn:hover { color: var(--text); border-color: var(--panel-border-hi); }
.fbtn.is-active { background: rgba(55,230,214,.12); color: var(--live); border-color: rgba(55,230,214,.4); }

/* =========== 实时推送流 =========== */
.feed, .items { max-height: 520px; overflow-y: auto; scroll-behavior: smooth; }
.feed::-webkit-scrollbar, .items::-webkit-scrollbar, .cloud::-webkit-scrollbar { width: 6px; }
.feed::-webkit-scrollbar-thumb, .items::-webkit-scrollbar-thumb, .cloud::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 4px; }
.feed-empty { color: var(--text-faint); font-size: 13px; text-align: center; padding: 30px 0; }

.push-item {
  display: flex; gap: 11px; padding: 11px 12px; border-radius: 11px; margin-bottom: 9px;
  background: var(--panel-hi); border-left: 3px solid var(--neu);
  animation: slideIn .35s ease both;
}
.push-item.level-positive { border-left-color: var(--bull); }
.push-item.level-negative { border-left-color: var(--bear); }
.push-item.level-heat { border-left-color: var(--gold); }
.push-ico { font-size: 16px; line-height: 1.3; }
.push-body { flex: 1; min-width: 0; }
.push-head { font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--text); }
.push-meta { font-size: 11px; color: var(--text-faint); margin-top: 3px; }
.push-kind { font-family: var(--mono); font-size: 10px; color: var(--text-faint); }
.new-flash { animation: flash .9s ease; }
@keyframes flash { 0%{ background: rgba(55,230,214,.16); } 100%{ background: var(--panel-hi); } }
@keyframes slideIn { from{ opacity:0; transform: translateY(8px);} to{ opacity:1; transform:none;} }

/* =========== 舆情条目 =========== */
.item {
  padding: 12px 14px; border-radius: 11px; margin-bottom: 10px;
  background: var(--panel-hi); border: 1px solid rgba(255,255,255,.04);
  transition: border-color .15s, background .15s;
}
.items-group {
  font-size: 12px; font-weight: 700; color: var(--live);
  letter-spacing: .5px; margin: 6px 2px 10px; padding-bottom: 6px;
  border-bottom: 1px solid rgba(55,230,214,.18);
}
.items-group + .items-group { margin-top: 14px; }
.items-more {
  margin: 14px 2px 4px; padding: 8px 12px; font-size: 12px; color: #7d8aa5;
  background: rgba(255,255,255,.03); border: 1px dashed rgba(255,255,255,.12);
  border-radius: 8px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.btn-more {
  background: rgba(55,230,214,.12); color: var(--live); border: 1px solid rgba(55,230,214,.35);
  border-radius: 8px; padding: 6px 18px; font-size: 12px; font-weight: 700; cursor: pointer;
  transition: background .15s;
}
.btn-more:hover { background: rgba(55,230,214,.22); }
.btn-more:disabled { opacity: .5; cursor: default; }
.item:hover { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.05); }
.item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.item-title { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--text); flex: 1; }
.item-title a { color: inherit; text-decoration: none; }
.item-title a:hover { color: var(--live); }
.senti { font-size: 11px; padding: 2px 9px; border-radius: 999px; white-space: nowrap; font-weight: 600; }
.senti.pos { color: var(--bull); background: rgba(255,77,103,.13); border: 1px solid rgba(255,77,103,.35); }
.senti.neg { color: var(--bear); background: rgba(52,212,124,.13); border: 1px solid rgba(52,212,124,.35); }
.senti.neu { color: var(--neu); background: rgba(138,147,167,.12); border: 1px solid rgba(138,147,167,.3); }
.item-meta { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.kw-chip { font-size: 11px; color: var(--live); background: rgba(55,230,214,.08); border: 1px solid rgba(55,230,214,.22); padding: 2px 8px; border-radius: 6px; }
.kw-chip.heat { color: var(--gold); border-color: rgba(245,195,90,.3); background: rgba(245,195,90,.08); }
.meta-dim { font-size: 11px; color: var(--text-faint); }
.score { font-family: var(--mono); font-size: 11px; }

/* =========== 趋势图 =========== */
.trend-canvas { width: 100%; height: 150px; display: block; }
.trend-legend { display: flex; gap: 16px; margin-top: 8px; }
.trend-legend .lg { font-size: 11px; color: var(--text-dim); display: flex; align-items: center; gap: 6px; }
.sw { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.sw-cnt { background: var(--live); }
.sw-sent { background: var(--gold); }
.sw-off { background: #b39ddb; }
.sw-mkt { background: #7aa2f7; }

/* =========== 双维共振（消息面 × 资金面） =========== */
.reso-canvas { height: 100px; }
.reso-badge {
  font-family: var(--mono); font-size: 11px; padding: 2px 9px; border-radius: 999px;
  border: 1px solid var(--panel-border-hi); color: var(--text-dim); white-space: nowrap;
}
.reso-badge.up { color: var(--live); border-color: rgba(55,230,214,.45); background: rgba(55,230,214,.08); }
.reso-badge.risk { color: #ff6b6b; border-color: rgba(255,107,107,.45); background: rgba(255,107,107,.08); }
.reso-badge.warn { color: var(--gold); border-color: rgba(245,195,90,.45); background: rgba(245,195,90,.08); }
.reso-text { font-size: 12.5px; color: var(--text); margin: 7px 0 9px; line-height: 1.6; }
.reso-nums { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px 12px; margin-top: 9px; font-size: 11.5px; color: var(--text-dim); }
.reso-nums b { color: var(--text); font-family: var(--mono); font-weight: 600; }
.reso-nums em { color: var(--gold); font-style: normal; font-size: 11px; letter-spacing: .04em; }
.reso-nums .reso-top { grid-column: 1 / -1; color: var(--text-dim); }

/* 来源等级徽章（数据溯源分级） */
.tier-chip {
  font-size: 10.5px; padding: 1px 7px; border-radius: 6px; white-space: nowrap;
  border: 1px solid var(--panel-border-hi); color: var(--text-dim);
}
.tier-chip.off { color: #b39ddb; border-color: rgba(179,157,219,.4); background: rgba(179,157,219,.08); }
.tier-chip.med { color: #7aa2f7; border-color: rgba(122,162,247,.35); background: rgba(122,162,247,.07); }
.tier-chip.soc { color: var(--text-dim); border-color: rgba(255,255,255,.1); }

/* =========== 关键词云 =========== */
.cloud { display: flex; flex-wrap: wrap; gap: 8px; max-height: 220px; overflow-y: auto; align-content: flex-start; }
.cloud-item { font-size: 12px; padding: 6px 11px; border-radius: 8px; cursor: default; border: 1px solid rgba(255,255,255,.08); color: var(--text-dim); transition: color .15s, border-color .15s, transform .15s; }
.cloud-item:hover { color: var(--text); border-color: var(--panel-border-hi); transform: translateY(-2px); }
.cloud-item.hot { color: var(--live); border-color: rgba(55,230,214,.35); background: rgba(55,230,214,.06); }

/* =========== 数据源 =========== */
.src-list { display: flex; flex-direction: column; gap: 8px; }
.src-row { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 9px; background: var(--panel-hi); }
.src-dot { width: 8px; height: 8px; border-radius: 50%; }
.src-on { background: var(--live); box-shadow: 0 0 8px var(--live-glow); }
.src-off { background: var(--text-faint); }
.src-name { font-size: 13px; color: var(--text); }
.src-desc { font-size: 11px; } .src-ok { color: var(--bear); } .src-offtxt { color: var(--text-faint); }

/* =========== 底部 =========== */
.footer { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; font-size: 12px; color: var(--text-faint); letter-spacing: .4px; }

/* =========== Toast =========== */
.toast { position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 40px); opacity: 0; transition: all .3s; background: rgba(10,16,32,.95); border: 1px solid var(--panel-border-hi); color: var(--text); padding: 12px 22px; border-radius: 12px; font-size: 14px; z-index: 50; box-shadow: 0 10px 40px rgba(0,0,0,.5); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =========== 进场动画 =========== */
.reveal { opacity: 0; transform: translateY(14px); animation: revealUp .55s cubic-bezier(.2,.8,.2,1) forwards; }
.reveal:nth-child(1){animation-delay:.05s}.reveal:nth-child(2){animation-delay:.12s}
.reveal:nth-child(3){animation-delay:.19s}.reveal:nth-child(4){animation-delay:.26s}
.reveal:nth-child(5){animation-delay:.33s}.reveal:nth-child(6){animation-delay:.4s}
@keyframes revealUp { to{ opacity:1; transform:none; } }

/* =========== 各主题汇总统计 =========== */
.overview-panel { grid-column: 1 / -1; }
.main-grid.overview-mode .live-panel,
.main-grid.overview-mode .items-panel,
.main-grid.overview-mode .side { display: none; }
.ov-charts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ov-block {
  background: var(--panel-hi); border: 1px solid rgba(255,255,255,.05);
  border-radius: 12px; padding: 14px;
}
.ov-title { font-size: 13px; font-weight: 700; color: var(--text-dim); margin-bottom: 12px; letter-spacing: .5px; }
.ov-row { display: flex; align-items: center; gap: 10px; margin: 7px 0; font-size: 12px; }
.ov-name { width: 130px; flex: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); text-align: right; }
.ov-track { flex: 1; height: 18px; background: rgba(255,255,255,.04); border-radius: 5px; overflow: hidden; display: flex; position: relative; }
.ov-seg { height: 100%; }
.ov-seg-pos { background: linear-gradient(90deg, rgba(255,77,103,.85), rgba(255,77,103,.55)); }
.ov-seg-neg { background: linear-gradient(90deg, rgba(52,212,124,.85), rgba(52,212,124,.55)); }
.ov-seg-neu { background: rgba(138,147,167,.6); }
.ov-num { width: 66px; flex: none; text-align: right; font-family: var(--mono); font-size: 11px; color: var(--text-dim); }
/* 情感指数对比（0 居中，左利空右利好） */
.ov-idx-track { flex: 1; height: 18px; position: relative; background:
  linear-gradient(90deg, rgba(52,212,124,.16), rgba(52,212,124,.05) 50%, rgba(255,77,103,.05) 50%, rgba(255,77,103,.16)); border-radius: 5px; }
.ov-idx-center { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,.3); }
.ov-idx-fill { position: absolute; top: 2px; bottom: 2px; border-radius: 4px; }
.ov-idx-fill.pos { background: var(--bull); right: 50%; }
.ov-idx-fill.neg { background: var(--bear); left: 50%; }
/* 关键词 TOP 横向条 */
.ov-kw-row { display: flex; align-items: center; gap: 10px; margin: 6px 0; font-size: 12px; }
.ov-kw-name { width: 110px; flex: none; text-align: right; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-kw-track { flex: 1; height: 14px; background: rgba(255,255,255,.04); border-radius: 4px; overflow: hidden; }
.ov-kw-fill { height: 100%; background: linear-gradient(90deg, rgba(245,195,90,.9), rgba(245,195,90,.4)); border-radius: 4px; }
.ov-kw-num { width: 40px; text-align: right; font-family: var(--mono); font-size: 11px; color: var(--text-dim); }
@media (max-width: 1100px) { .ov-charts { grid-template-columns: 1fr; } }

/* =========== 响应式 =========== */
@media (max-width: 1240px) {
  .main-grid { grid-template-columns: 1fr; }
  .side { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .hero { grid-template-columns: 1fr; }
}
/* 移动端 / 微信内浏览器 */
@media (max-width: 720px) {
  .shell { padding: 10px 10px 30px; }
  .topbar { padding: 10px 12px; flex-direction: row; flex-wrap: wrap; gap: 8px; position: sticky; top: 6px; }
  .brand-mark { width: 34px; height: 34px; font-size: 18px; border-radius: 10px; }
  .brand-title { font-size: 17px; }
  .brand-sub { font-size: 11px; }
  .topbar-right { gap: 10px; width: 100%; justify-content: space-between; }
  .clock { font-size: 15px; }
  .btn-run { padding: 7px 12px; font-size: 12px; }
  .theme-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 6px; scrollbar-width: none; }
  .theme-tabs::-webkit-scrollbar { display: none; }
  .ttab { padding: 7px 11px; font-size: 13px; white-space: nowrap; }
  .ttab-kw { display: none; }           /* 窄屏省空间，主词在名称里 */
  .tadd { padding: 7px 12px; font-size: 12px; white-space: nowrap; }
  .hero { grid-template-columns: 1fr; margin-bottom: 12px; }
  .gauge-card { padding: 16px; }
  .gauge-num .big { font-size: 46px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stat { padding: 12px; }
  .stat-val { font-size: 26px; }
  .main-grid { grid-template-columns: 1fr; gap: 12px; }
  .side { grid-template-columns: 1fr; gap: 12px; }
  .panel { padding: 12px; }
  .feed, .items { max-height: 60vh; }
  .footer { flex-direction: column; gap: 4px; align-items: flex-start; }
  /* 弹窗全屏适配 + 防 iOS 输入缩放 */
  .modal-overlay { padding: 10px; }
  .modal { max-height: 94vh; padding: 16px; width: 100%; }
  .modal-input { font-size: 16px; }
  .lib-list { max-height: 140px; }
  .pool { max-height: 150px; }
}
@media (max-width: 400px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .gauge-num .big { font-size: 40px; }
}
