/* =========================================================
   个人投资工作台 样式
   浅色专业金融风 · 红涨绿跌
   ========================================================= */
:root {
  --bg: #eef2f7;
  --card-bg: #ffffff;
  --card-border: #e3e8ef;
  --card-shadow: 0 1px 3px rgba(16, 34, 64, 0.06), 0 6px 18px rgba(16, 34, 64, 0.05);
  --text: #1f2a3d;
  --text-sub: #66738a;
  --text-faint: #9aa6ba;
  --line: #eef1f6;
  --up: #e0453a;      /* 涨-红 */
  --down: #12a05c;    /* 跌-绿 */
  --flat: #8a94a6;
  --brand: #2f5fd0;
  --brand-soft: #eaf0fc;
  --accent: #f0a500;
  --radius: 12px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: linear-gradient(90deg, #2a3f6d, #3a57a6);
  color: #fff;
  padding: 12px 22px;
  display: flex; align-items: center; gap: 18px;
  box-shadow: 0 2px 10px rgba(20, 40, 80, 0.18);
}
.topbar .logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: .3px; }
.topbar .logo .dot { width: 10px; height: 10px; border-radius: 50%; background: #ffd54f; box-shadow: 0 0 8px #ffd54f; }
.topbar .tagline { font-size: 12px; opacity: .85; }
.topbar .spacer { flex: 1; }
.topbar .clock { font-size: 13px; font-variant-numeric: tabular-nums; opacity: .95; }
.topbar .status-pill {
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25);
  padding: 4px 12px; border-radius: 20px; font-size: 12px; display: inline-flex; align-items: center; gap: 6px;
}
.topbar .status-pill .led { width: 7px; height: 7px; border-radius: 50%; background: #7CF29C; }
.topbar .status-pill.off .led { background: #ff6b6b; }
.topbar .topbar-link {
  color: #fff; font-size: 13px; text-decoration: none; opacity: .92; cursor: pointer;
  padding: 4px 10px; border-radius: 6px; border: 1px solid rgba(255,255,255,.25); white-space: nowrap;
}
.topbar .topbar-link:hover { background: rgba(255,255,255,.14); }

/* ---------- 布局容器 ---------- */
.wrap { max-width: 1440px; margin: 0 auto; padding: 16px 20px 60px; display: flex; flex-direction: column; gap: 16px; }

/* ---------- 左侧工作台导航栏 ---------- */
.side-nav {
  position: fixed; top: 64px; left: 0; bottom: 0; width: 172px; z-index: 20;
  background: #fff; border-right: 1px solid var(--card-border);
  padding: 16px 10px; overflow-y: auto;
  box-shadow: 2px 0 10px rgba(16, 34, 64, 0.04);
}
.side-nav-title { font-size: 12px; color: var(--text-faint); font-weight: 700; letter-spacing: .5px; padding: 0 8px 10px; }
.side-nav-list { display: flex; flex-direction: column; gap: 2px; }
.side-nav-group { font-size: 11px; color: var(--text-faint); font-weight: 600; padding: 10px 8px 4px; }
.side-nav-item {
  display: flex; align-items: center; gap: 7px; padding: 7px 9px; border-radius: 7px;
  font-size: 13px; color: var(--text-sub); cursor: pointer; text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background .12s, color .12s;
}
.side-nav-item:hover { background: var(--brand-soft); color: var(--brand); }
.side-nav-item.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.side-nav-item .nav-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.side-nav-item .nav-ico { font-size: 13px; flex-shrink: 0; }

/* 主内容区为左侧导航让位 */
body.has-side-nav .wrap { margin-left: 172px; margin-right: auto; }
@media (max-width: 1100px) {
  .side-nav { display: none; }
  body.has-side-nav .wrap { margin-left: auto; }
}

/* ---------- 通用卡片 ---------- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  scroll-margin-top: 72px; /* 顶栏吸附高度，保证导航滚动到位不被遮挡 */
}

/* 导航跳转目标高亮闪烁 */
.nav-flash { animation: navFlash 1.5s ease; }
@keyframes navFlash {
  0%, 60% { box-shadow: 0 0 0 3px rgba(47, 95, 208, 0.45); }
  100% { box-shadow: var(--card-shadow); }
}
.g-sum-row.nav-flash, .g-detail-row.nav-flash { outline: 2px solid rgba(47, 95, 208, 0.5); outline-offset: -2px; }
.card-head {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
}
.card-title { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.card-title .bar { width: 4px; height: 16px; border-radius: 2px; display: inline-block; }
.card-sub { font-size: 12px; color: var(--text-sub); }
.card-body { padding: 14px 16px; }
/* 含宽表格的卡片 body 允许横向滚动，避免列溢出被 overflow:hidden 裁掉 */
.card-body:has(.g-holding-table),
.card-body:has(.cand-table),
.card-body:has(.sim-table) { overflow-x: auto; }

/* 总持仓金额/盈亏金额 隐私开关按钮 */
.privacy-toggle { font-size: 12px; padding: 4px 10px; border-radius: 6px; border: 1px solid var(--card-border); background: #fff; color: var(--text-sub); cursor: pointer; white-space: nowrap; }
.privacy-toggle:hover { border-color: var(--brand); color: var(--brand); }
.privacy-toggle.is-hidden { border-color: #f0c5c2; color: var(--up); background: #fdf3f2; }

/* ---------- 顶部指数带 ---------- */
.index-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.index-card { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.index-card .nm { display: flex; align-items: center; justify-content: space-between; }
.index-card .nm b { font-size: 14px; }
.index-card .chg-tag { font-size: 11px; padding: 1px 8px; border-radius: 10px; }
.index-card .px { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .3px; }
.index-card .meta { display: flex; gap: 16px; font-size: 12px; color: var(--text-sub); }
.index-card .meta span b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- 主题窗口 ---------- */
/* 策略窗口容器：各策略板块之间的间隔拉大 */
#strategyWindows { display: flex; flex-direction: column; gap: 32px; }
.theme-window { }
.window-body { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.theme-head-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.strategy-badge {
  font-size: 11px; color: #fff; padding: 2px 10px; border-radius: 4px; font-weight: 600; letter-spacing: .5px;
}
.pool-meta { font-size: 12px; color: var(--text-sub); margin-left: auto; }

/* 左栏：个股列表 */
.stock-table { width: 100%; border-collapse: collapse; }
.stock-table th {
  text-align: right; font-size: 11px; color: var(--text-faint); font-weight: 600;
  padding: 6px 12px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.stock-table th:first-child { text-align: left; }
.stock-table td {
  padding: 9px 12px; border-bottom: 1px solid #f4f6fa; text-align: right;
  font-variant-numeric: tabular-nums; font-size: 13px; white-space: nowrap;
}
.stock-table tr:last-child td { border-bottom: none; }
.stock-table tbody tr { transition: background .12s; }
.stock-table tbody tr:hover { background: #f5f8fd; }
.stock-name { display: flex; align-items: center; gap: 8px; }
.stock-name .code-tag { font-size: 11px; color: var(--text-faint); }
.jump-hint { font-size: 10px; color: var(--brand); opacity: 0; transition: opacity .15s; cursor: pointer; }
.jump-hint:hover { opacity: 1; text-decoration: underline; }
.stock-table tr:hover .jump-hint { opacity: 1; }
.th-sort { cursor: pointer; user-select: none; }
.th-sort:hover { color: var(--brand); }
.pct-cell { font-weight: 700; }
.link-badge { margin-left: 6px; font-size: 10px; color: var(--brand); border: 1px solid var(--brand-soft); background: var(--brand-soft); padding: 0 5px; border-radius: 4px; cursor: pointer; }

/* 涨跌颜色 */
.up { color: var(--up); }
.down { color: var(--down); }
.flat { color: var(--flat); }
.chg-tag.up { background: rgba(224,69,58,.12); color: var(--up); }
.chg-tag.down { background: rgba(18,160,92,.12); color: var(--down); }
.chg-tag.flat { background: #eef1f6; color: var(--flat); }

/* ---------- 右栏功能区 ---------- */
.side { border-left: 1px solid var(--line); display: flex; flex-direction: column; background: #fbfcfe; }
.side-section { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.side-section:last-child { border-bottom: none; }
.side-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.side-title .ico { font-size: 14px; }
.side-title .hint { font-size: 10px; color: var(--text-faint); font-weight: 400; margin-left: auto; }

/* 盯盘条目 */
.watch-row {
  display: flex; flex-direction: column; gap: 5px;
  padding: 8px 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  margin-bottom: 8px;
}
.watch-row:last-child { margin-bottom: 0; }
.watch-top { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.watch-price { display: flex; align-items: baseline; gap: 10px; font-size: 12px; color: var(--text-sub); }
.watch-price b { font-size: 15px; color: var(--text); font-variant-numeric: tabular-nums; }
.watch-price .pct { font-weight: 600; }
.guide-line { font-size: 12px; color: var(--text-sub); }
.guide { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.guide b { font-variant-numeric: tabular-nums; }
.guide.armed { color: var(--accent); }
.guide.hit { color: var(--up); font-weight: 700; }
.guide.near { color: var(--text-sub); }

/* 预警/候选 */
.alert-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  margin-bottom: 8px; font-size: 13px;
}
.alert-row:last-child { margin-bottom: 0; }
.alert-row .tag { font-size: 10px; padding: 1px 7px; border-radius: 4px; font-weight: 600; }
.alert-row .tag.above { background: rgba(224,69,58,.12); color: var(--up); }
.alert-row .tag.below { background: rgba(18,160,92,.12); color: var(--down); }
.alert-row .tgt { font-variant-numeric: tabular-nums; font-weight: 700; }

.cand-row {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  margin-bottom: 7px; font-size: 13px; cursor: pointer; transition: background .12s;
}
.cand-row:hover { background: #f5f8fd; }
.cand-row .reason { font-size: 11px; color: var(--text-sub); margin-left: auto; }
.cand-row .add { font-size: 11px; color: var(--brand); cursor: pointer; }

/* 空状态 */
.empty { color: var(--text-faint); font-size: 12px; text-align: center; padding: 14px 0; }

/* ===== 智能盯盘 + 预警 可交互配置 ===== */
.wform-row {
  background:#fff; border:1px solid var(--line); border-radius:var(--radius-sm);
  padding:8px 9px; margin-bottom:8px;
}
.wform-row:last-child { margin-bottom:0; }
.wform-head { display:flex; align-items:center; gap:6px; margin-bottom:6px; }
.wform-head select {
  flex:1; min-width:0; font-size:12px; padding:4px 6px; border:1px solid var(--card-border);
  border-radius:6px; background:#fff; color:var(--text); font-weight:600;
}
.wform-quote { display:flex; align-items:center; gap:8px; font-size:11px; color:var(--text-sub); white-space:nowrap; }
.wform-quote b { font-size:14px; color:var(--text); font-variant-numeric:tabular-nums; }
.wform-quote .relpct { font-weight:700; font-variant-numeric:tabular-nums; }
.wform-fields { display:grid; grid-template-columns:1fr 1fr; gap:5px 7px; margin-top:6px; }
.wfield { display:flex; flex-direction:column; gap:2px; }
.wfield label { font-size:10px; color:var(--text-faint); }
.wfield input {
  width:100%; font-size:12px; padding:3px 6px; border:1px solid var(--card-border);
  border-radius:6px; font-variant-numeric:tabular-nums;
}
.wfield input:focus { outline:none; border-color:var(--brand); }
.wfield input.hit { border-color:var(--up); background:#fdeceb; color:var(--up); font-weight:700; }
.wfield input.near { border-color:var(--accent); }
.wform-actions { display:flex; gap:6px; margin-top:6px; align-items:center; }
.btn {
  font-size:11px; padding:3px 10px; border-radius:6px; border:1px solid var(--card-border);
  background:#fff; cursor:pointer; transition:background .12s; color:var(--text-sub);
}
.btn:hover { background:#f0f4fa; }
.btn.primary { background:var(--brand); border-color:var(--brand); color:#fff; }
.btn.primary:hover { background:#274db0; }
.btn.danger { color:var(--up); border-color:#f0c9c6; }
.btn.danger:hover { background:#fdeceb; }
.btn.cancel-new { color:var(--text-sub); }
/* 待保存的新增盯盘行：虚线边框 + 浅蓝提示底色，与已保存规则区分 */
.wform-row.is-new { border:1px dashed var(--brand); background:#f6f9ff; }
.newrow-tag { font-size:10px; color:var(--brand); font-weight:700; margin-bottom:5px; }
.hit-flag {
  font-size:11px; font-weight:700; color:var(--up); background:#fdeceb;
  border:1px solid #f3b6b1; border-radius:5px; padding:1px 7px; margin-left:auto;
}
.state-chip { font-size:10px; padding:1px 6px; border-radius:4px; font-weight:600; }
.state-chip.done { background:rgba(224,69,58,.13); color:var(--up); }
.state-chip.armed { background:rgba(240,165,0,.14); color:#b97a00; }
.add-watch-btn { width:100%; margin-top:4px; }

/* ---------- 页脚 ---------- */
.foot { text-align: center; font-size: 11px; color: var(--text-faint); padding: 8px 0 4px; line-height: 1.7; }
.foot a { color: var(--brand); text-decoration: none; }

/* ---------- 股票池可交互（手动加股/移除） ---------- */
.pool-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.pool-label { font-size: 13px; font-weight: 700; color: var(--text); }
.mini-btn {
  font-size: 11px; padding: 2px 9px; border-radius: 6px; border: 1px solid var(--card-border);
  background: #fff; cursor: pointer; color: var(--brand); transition: background .12s; white-space: nowrap;
}
.mini-btn:hover { background: #f0f4fa; }
.btn-sm { font-size: 11px; padding: 3px 10px; }
.pool-add-form {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  background: #f6f9ff; border: 1px dashed var(--brand); border-radius: 8px;
  padding: 8px 10px; margin-bottom: 8px;
}
.add-code-input {
  flex: 1; min-width: 150px; font-size: 12px; padding: 4px 8px;
  border: 1px solid var(--line); border-radius: 6px; outline: none;
}
.add-code-input:focus { border-color: var(--brand); }
.add-hint { width: 100%; font-size: 11px; color: var(--text-sub); }
.stock-table th:last-child, .stock-table td.row-act { width: 24px; text-align: center; }
.del-stock {
  font-size: 11px; line-height: 1; width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid transparent; background: transparent; color: #c9ccd1; cursor: pointer; padding: 0;
}
.del-stock:hover { color: var(--up); background: #fdeceb; border-color: #f3b6b1; }

/* ---------- 全局预警横幅 ---------- */
.alert-banner {
  background: linear-gradient(90deg, #fdeceb, #fff6f5);
  border: 1px solid #f3b6b1; border-left: 5px solid var(--up);
  border-radius: 10px; padding: 10px 16px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.alert-banner .ab-head { font-weight: 800; color: var(--up); font-size: 14px; white-space: nowrap; }
.alert-banner .ab-list { display: flex; flex-wrap: wrap; gap: 10px; flex: 1; }
.alert-banner .ab-stock {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: #fff; border: 1px solid #f0d3d0; border-radius: 8px; padding: 6px 10px; font-size: 12px;
}
.alert-banner .ab-name { font-weight: 700; }
.alert-banner .ab-meta { color: var(--text-faint); font-size: 11px; }
.alert-banner .ab-cells b { color: var(--up); }
.alert-banner .ab-close {
  border: 1px solid var(--up); color: var(--up); background: #fff; border-radius: 6px;
  font-size: 11px; padding: 2px 10px; cursor: pointer;
}
.alert-banner .ab-close:hover { background: var(--up); color: #fff; }

/* ---------- 预警区顶部状态栏 ---------- */
.al-summary-wrap { margin-bottom: 8px; }
.al-summary { display: flex; flex-direction: column; gap: 6px; }
.al-summary.empty-summary {
  font-size: 11px; color: var(--text-faint); background: #f8fafc;
  border: 1px dashed var(--card-border); border-radius: 8px; padding: 7px 10px;
}
.al-sum-chip {
  border: 1px solid var(--card-border); border-radius: 8px; padding: 6px 9px;
  background: #fafbfd; font-size: 11px;
}
.al-sum-chip.al-hit { border-color: #f3b6b1; background: #fff4f3; }
.al-sum-chip .sum-head { font-weight: 700; font-size: 12px; margin-bottom: 3px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.al-sum-chip .sum-flag { color: var(--up); font-size: 10px; font-weight: 700; background: #fdeceb; border: 1px solid #f3b6b1; border-radius: 5px; padding: 0 6px; }
.al-sum-chip .sum-cells { display: flex; flex-wrap: wrap; gap: 8px 12px; color: var(--text-sub); }
.al-sum-chip .sum-cells b { color: var(--text); font-variant-numeric: tabular-nums; }
.al-sum-chip .sum-state { font-weight: 700; }
.al-sum-chip .sum-state.al-hit { color: var(--up); }
.al-sum-chip .al-sum-del {
  margin-left: auto; border: none; background: transparent; color: var(--text-faint);
  font-size: 12px; cursor: pointer; line-height: 1; padding: 2px 4px; border-radius: 4px;
}
.al-sum-chip .al-sum-del:hover { color: var(--up); background: #fdeceb; }
/* 已到预警的规则行整行描红 */
.wform-row.alert-hit { border-color: #f3b6b1; background: #fff9f8; }

/* ---------- 持仓股票池 ---------- */
.holdings-list { display: flex; flex-direction: column; gap: 8px; }
.hd-row { border: 1px solid var(--card-border); border-radius: 8px; padding: 10px 12px; background: #fafbfd; }
.hd-row .hd-head { display: flex; align-items: center; gap: 6px; justify-content: space-between; }
.hd-row .hd-name { font-weight: 700; font-size: 15px; }
.hd-row .hd-ops { display: flex; gap: 4px; }
.hd-row .hd-cells { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--text-sub); margin-top: 5px; }
.hd-row .hd-cells b { color: var(--text); font-variant-numeric: tabular-nums; }
.hd-row .hd-cells .cell { display: inline-flex; align-items: center; gap: 3px; }
.hd-row .hd-buy { width: 70px; font-size: 13px; padding: 2px 6px; border: 1px solid var(--card-border); border-radius: 5px; font-variant-numeric: tabular-nums; }
.hd-row .hd-buy:focus { outline: none; border-color: var(--brand); }
.hd-row .hd-shares { width: 90px; font-size: 13px; padding: 2px 6px; border: 1px solid var(--card-border); border-radius: 5px; font-variant-numeric: tabular-nums; }
.hd-row .hd-shares:focus { outline: none; border-color: var(--brand); }
.hd-row .hd-mkt, .hd-row .hd-pnl { color: var(--text); font-weight: 600; }
.hd-row .hd-mkt.up, .hd-row .hd-pnl.up { color: var(--up); }
.hd-row .hd-mkt.down, .hd-row .hd-pnl.down { color: var(--down); }
.hd-row .hd-toolbar { margin-top: 5px; }
.hd-ann { margin-top: 6px; font-size: 13px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #f6f9ff; border: 1px solid #dde6fb; border-radius: 6px; padding: 6px 9px; color: var(--text-sub); }
.hd-ann .ann-tag { background: var(--brand-soft); color: var(--brand); border-radius: 4px; padding: 0 5px; font-weight: 700; font-size: 12px; }
.hd-ann .ann-title { color: var(--text); flex: 1; min-width: 140px; font-size: 14px; }
.hd-ann .ann-time { color: var(--up); white-space: nowrap; font-size: 13px; font-weight: 600; }
.hd-ann .ann-link { color: var(--brand); text-decoration: none; font-weight: 700; font-size: 13px; }
.hd-ann.none { border-color: var(--card-border); background: #f8fafc; }
.hd-ann.none .ann-note { color: var(--text-faint); font-size: 12px; }
.holding-add-form {
  border: 1px dashed var(--brand); background: #f6f9ff; border-radius: 8px;
  padding: 8px 10px; margin-bottom: 8px;
}
.holding-add-form .haf-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.holding-add-form input { font-size: 12px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; outline: none; }
.holding-add-form .haf-code { flex: 1; min-width: 140px; }
.holding-add-form .haf-buy { width: 96px; }
.holding-add-form input:focus { border-color: var(--brand); }
.holding-add-form .haf-hint { width: 100%; font-size: 11px; color: var(--text-sub); margin-top: 3px; }
.add-holding-btn { margin-top: 8px; width: 100%; }

/* ---------- 核心指数总持仓汇总栏 ---------- */
.total-holding-bar {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  margin-top: 14px; padding: 12px 16px;
  background: linear-gradient(90deg, #f6f9ff, #eef3fd);
  border: 1px solid #dde6fb; border-radius: 10px;
}
.total-holding-bar .th-item { display: flex; align-items: baseline; gap: 10px; }
.total-holding-bar .th-label { font-size: 12px; color: var(--text-sub); font-weight: 600; }
.total-holding-bar .th-val { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .3px; }
.total-holding-bar .th-val.up { color: var(--up); }
.total-holding-bar .th-val.down { color: var(--down); }
.total-holding-bar .th-val.flat { color: var(--text); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .window-body { grid-template-columns: 1fr; }
  .side { border-left: none; border-top: 1px solid var(--line); }
  .index-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 自动补全下拉 ---------- */
.ac-dropdown {
  background: #fff; border: 1px solid var(--card-border); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(16, 34, 64, 0.14); max-height: 240px; overflow-y: auto;
  min-width: 200px; padding: 4px 0;
}
.ac-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 12px; cursor: pointer; font-size: 13px; }
.ac-item:hover { background: #f0f4fa; }
.ac-item .ac-name { color: var(--text); font-weight: 600; }
.ac-item .ac-code { color: var(--text-faint); font-size: 11px; font-variant-numeric: tabular-nums; }

/* ---------- 公告区（独立板块） ---------- */
.ann-row {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px;
  border: 1px solid var(--card-border); border-radius: 8px; margin-bottom: 10px; background: #fff;
}
.ann-row:last-child { margin-bottom: 0; }
.ann-row.is-new { border-color: #f0a500; background: #fffaf0; border-left: 4px solid #f0a500; }
.ann-row.is-recent { background: #f6faff; }
.ann-row .ann-flag { font-size: 12px; font-weight: 700; color: #b97a00; white-space: nowrap; min-width: 56px; }
.ann-row .ann-flag-wrap { display: flex; flex-direction: column; gap: 4px; min-width: 56px; }
.ann-row .ann-flag-whole { color: #0c447c; background: #e6f1fb; border-radius: 4px; padding: 1px 6px; display: inline-block; }
.ann-row.is-whole { border-left: 4px solid #378add; }
.ann-row .ann-source { color: var(--text-faint); font-size: 12px; }
.ann-row .ann-main { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.ann-row .ann-name { font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.ann-row .ann-title { font-size: 15px; color: var(--text); }
.ann-row .ann-meta { font-size: 13px; color: var(--text-sub); display: inline-flex; align-items: center; gap: 6px; }
.ann-row .ann-meta .ann-tag { color: var(--brand); }
.ann-row .ann-meta .ann-time { color: var(--up); font-weight: 600; white-space: nowrap; }
.ann-row .ann-link { font-size: 13px; color: var(--brand); text-decoration: none; white-space: nowrap; align-self: center; }
/* 公告核验标记：自选股公告接口未收录时显示「未核验」（此时保留原数据源的标题与时间） */
.ann-verify-pending {
  font-size: 11px; color: var(--text-faint); background: #f1f3f7;
  border: 1px solid var(--card-border); border-radius: 4px; padding: 0 5px;
  white-space: nowrap; margin-left: 4px;
}

/* 公告集合页：按个股分组 */
.ann-group { margin-bottom: 18px; }
.ann-group-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; background: #f0f4fb; border-radius: 8px 8px 0 0;
  border: 1px solid var(--card-border); border-bottom: none;
}
.ann-group-head .ann-name { font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; gap: 6px; }
.ann-group-head .ann-group-count { font-size: 12px; color: var(--text-faint); white-space: nowrap; }
.ann-group .ann-row { border-radius: 0; margin-bottom: 0; border-top: none; }
.ann-group .ann-row:last-child { border-radius: 0 0 8px 8px; border-bottom: 1px solid var(--card-border); }

/* 智能盯盘区单窗口切换下拉 */
.iw-switch-bar { margin-bottom: 8px; }
.iw-select-switch {
  width: 100%; padding: 8px 10px; font-size: 13px; border: 1px solid var(--card-border);
  border-radius: 8px; background: #fff; color: var(--text); outline: none;
}
.iw-select-switch:focus { border-color: var(--brand); }


/* ---------- 持仓汇总（独立板块） ---------- */
.g-holding-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.g-holding-toolbar .g-count { font-size: 12px; color: var(--text-sub); }
.sim-export-group { display: inline-flex; align-items: center; gap: 6px; }
.sim-export-group .btn { font-size: 12px; padding: 4px 10px; }
.g-broker-total { font-size: 13px; color: var(--text-sub); font-variant-numeric: tabular-nums; }
.g-broker-total b { font-weight: 700; color: var(--text); }
.g-broker-total b.up { color: var(--up); }
.g-broker-total b.down { color: var(--down); }
.g-broker-total b.flat { color: var(--text); }
.g-holding-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.g-holding-table th {
  text-align: left; font-size: 12px; color: var(--text-faint); font-weight: 600;
  padding: 7px 10px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.g-holding-table td {
  padding: 10px 10px; border-bottom: 1px solid #f4f6fa; text-align: left;
  font-variant-numeric: tabular-nums; vertical-align: middle;
}
.g-holding-table tr:last-child td { border-bottom: none; }
.g-holding-table tbody tr:hover { background: #f5f8fd; }
.g-name { font-weight: 700; }
.g-buy { width: 72px; font-size: 13px; padding: 3px 6px; border: 1px solid var(--card-border); border-radius: 6px; font-variant-numeric: tabular-nums; }
.g-buy:focus { outline: none; border-color: var(--brand); }
.g-shares { width: 90px; font-size: 13px; padding: 3px 6px; border: 1px solid var(--card-border); border-radius: 6px; font-variant-numeric: tabular-nums; }
.g-shares:focus { outline: none; border-color: var(--brand); }
.g-broker, .sim-broker { width: 96px; font-size: 13px; padding: 3px 6px; border: 1px solid var(--card-border); border-radius: 6px; }
.g-broker:focus, .sim-broker:focus { outline: none; border-color: var(--brand); }
.g-broker-filter { font-size: 13px; padding: 4px 8px; border: 1px solid var(--card-border); border-radius: 6px; background: #fff; color: var(--text); cursor: pointer; }
.g-broker-filter:focus { outline: none; border-color: var(--brand); }
.g-ann-refresh { font-size: 11px; padding: 0 5px; height: 18px; line-height: 18px; border-radius: 4px; border: 1px solid var(--card-border); background: #f5f6f8; color: var(--brand); cursor: pointer; }
.g-ann-refresh:hover { background: #eef1f5; }
.g-ann-refresh:disabled { opacity: .5; cursor: default; }
.g-cost, .g-mkt, .g-pnl, .g-daypnl { font-weight: 600; font-variant-numeric: tabular-nums; }
.g-mkt.up, .g-pnl.up, .g-daypnl.up { color: var(--up); }
.g-mkt.down, .g-pnl.down, .g-daypnl.down { color: var(--down); }

/* 实时涨跌幅（行情区） / 盈亏幅度（持仓区）之间的区块分隔：
   仅明细行「盈亏幅度/目标涨跌幅/达成」三列加暖米黄底纹，形成区块（无竖线，汇总行不变） */
.g-holding-table .g-detail-row td.g-rel,
.g-holding-table .g-detail-row td.g-target,
.g-holding-table .g-detail-row td.g-hit { background: #faf5ec; }
.g-ann { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--text-sub); max-width: 260px; }
.g-ann .ann-tag { font-size: 11px; white-space: nowrap; }
.g-ann .ann-title { color: var(--text); font-size: 12px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.g-ann .ann-time { color: var(--up); font-weight: 600; font-size: 11px; white-space: nowrap; }
.g-ann a { color: var(--brand); text-decoration: none; white-space: nowrap; }
.g-del { font-size: 11px; width: 20px; height: 20px; border-radius: 50%; border: 1px solid transparent; background: transparent; color: #c9ccd1; cursor: pointer; }
.g-del:hover { color: var(--up); background: #fdeceb; border-color: #f3b6b1; }

/* 一股多行：汇总行（底色区分）+ 明细行 + 加号按钮 + 顶部汇总条 */
.g-sum-row td { background: #f0f4fb; border-bottom: 1px solid #dbe5f3; font-weight: 600; }
.g-sum-row .g-name { font-weight: 700; }
.g-sum-row .g-agg-buy, .g-sum-row .g-agg-shares { color: var(--text); }
/* 表格末行合计（tfoot）：对持仓本金/市值/盈亏/当日盈亏求和 */
.g-total-row td { background: #e8eefb; border-top: 2px solid #c4d3ef; border-bottom: none; font-weight: 700; color: var(--text); }
.g-total-row td:first-child { font-weight: 700; }
.g-total-row .g-cost, .g-total-row .g-mkt, .g-total-row .g-pnl, .g-total-row .g-daypnl { font-weight: 700; }
.g-detail-row td { background: #fff; }
.g-detail-row .g-name-sub { font-weight: 400; color: var(--text-sub); font-size: 13px; padding-left: 6px; }
/* 持仓/资管持仓明细行的"加一行"按钮：统一采用胶囊样式（与候选观察窗口一致） */
.g-add, .sim-add-row { font-size: 11px; padding: 2px 9px; border-radius: 6px; border: 1px solid var(--card-border); background: #fff; color: var(--brand); cursor: pointer; white-space: nowrap; line-height: 1.4; }
.g-add:hover, .sim-add-row:hover { background: #f0f4fa; }
.g-summary-bar { font-size: 13px; color: var(--text-sub); padding: 8px 10px; margin-bottom: 8px; background: #f7f9fc; border: 1px solid var(--card-border); border-radius: 8px; }
.g-summary-bar b { color: var(--text); font-size: 15px; font-weight: 700; margin: 0 2px; }
.g-summary-bar b.up { color: var(--up); }
.g-summary-bar b.down { color: var(--down); }
/* 持仓明细行：目标涨跌幅 + 达成状态 */
.g-target { text-align: center; }
.g-target-pct { width: 72px; font-size: 13px; padding: 3px 6px; border: 1px solid var(--card-border); border-radius: 6px; font-variant-numeric: tabular-nums; text-align: center; }
.g-target-pct:focus { outline: none; border-color: var(--brand); }
.g-target-agg { font-weight: 600; color: var(--text); }
.g-hit { text-align: center; font-size: 12px; color: var(--text-faint); white-space: nowrap; }
.g-hit .g-hit-yes, td.g-hit.g-hit-yes { color: var(--up); font-weight: 600; }
.g-sum-row .g-target, .g-sum-row .g-hit { font-weight: 600; }

/* 候选观察窗口：达成状态（加粗加红）+ 达成行浅红底色 */
.cand-table .cand-tgt { text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text); }
.cand-table .cand-hit { text-align: center; font-size: 12px; color: var(--text-faint); white-space: nowrap; }
.cand-hit .cand-hit-yes, td.cand-hit .cand-hit-yes {
  color: var(--up); font-weight: 800; /* 达成字样加粗加红 */
}
.cand-row.cand-row-hit td { background: #fdecea; } /* 该行任一目标达成 → 浅红底 */
.cand-row.cand-row-hit td.g-cur,
.cand-row.cand-row-hit td.g-pct { background: #fdecea; }
.cand-row.cand-row-hit:hover td { background: #fbdcd9; }
.cand-row.cand-row-hit .cand-hit .cand-hit-yes { color: #d91f1f; }
.cand-hit .cand-hit-byprice { color: var(--text-faint); font-weight: 500; } /* 同时填了目标价时，涨跌幅列让位提示 */
/* 候选观察窗口：最新公告单元格 */
.cand-table .cand-ann { font-size: 12px; color: var(--text-sub); max-width: 240px; }
.cand-table .cand-ann .ann-tag { background: var(--brand-soft); color: var(--brand); border-radius: 4px; padding: 0 4px; font-weight: 700; font-size: 11px; white-space: nowrap; }
.cand-table .cand-ann .cand-ann-title { color: var(--text); display: inline-block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.cand-table .cand-ann .ann-time { color: var(--up); font-weight: 600; white-space: nowrap; margin-left: 4px; }
.cand-table .cand-ann .ann-note { color: var(--text-faint); }
/* 同步到资管：勾选框列 */
.g-sync-th { text-align: center; }
.g-sync { text-align: center; }
.g-sync-check { width: 16px; height: 16px; cursor: pointer; accent-color: var(--brand); }
.g-sync-check:disabled { cursor: not-allowed; opacity: 0.5; }

/* 历史交易：按股票代码分区（每股一个区块，视觉区分） */
.hist-group { margin-bottom: 14px; border: 1px solid var(--card-border); border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.hist-group:last-child { margin-bottom: 0; }
.hist-group-head {
  display: flex; align-items: center; gap: 10px; padding: 9px 14px;
  background: linear-gradient(90deg, #f0f4fb 0%, #f7f9fc 100%);
  border-bottom: 1px solid #dbe5f3; position: relative;
}
.hist-group-head::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--brand); }
.hist-group-name { font-size: 14px; font-weight: 700; color: var(--text); }
.hist-group-count { font-size: 11px; color: var(--brand); background: #fff; border: 1px solid var(--brand); border-radius: 10px; padding: 1px 8px; font-weight: 600; }
.hist-group-meta { margin-left: auto; font-size: 12px; color: var(--text-sub); }
.hist-group-meta b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.hist-group-meta b.up { color: var(--up); }
.hist-group-meta b.down { color: var(--down); }
.hist-group-meta b.flat { color: var(--text); }
.hist-group-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.hist-group-table th { text-align: left; font-size: 12px; color: var(--text-faint); font-weight: 600; padding: 6px 10px; border-bottom: 1px solid #f0f3f8; white-space: nowrap; background: #fbfcfe; }
.hist-group-table td { padding: 9px 10px; border-bottom: 1px solid #f4f6fa; text-align: left; font-variant-numeric: tabular-nums; vertical-align: middle; }
.hist-group-table tbody tr:last-child td { border-bottom: none; }
.hist-group-table tbody tr:hover { background: #f5f8fd; }


/* ---------- 股票异动（独立板块） ---------- */
.move-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.move-item {
  border: 1px solid var(--card-border); border-radius: 8px; padding: 10px 12px;
  background: #fff; display: flex; flex-direction: column; gap: 4px; cursor: pointer;
}
.move-item.up { border-left: 4px solid var(--up); background: #fff5f4; }
.move-item.down { border-left: 4px solid var(--down); background: #f4faf5; }
.move-head { display: flex; align-items: center; gap: 8px; }
.move-name { font-weight: 700; font-size: 14px; color: var(--text); }
.move-pct { font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.move-item.up .move-pct { color: var(--up); }
.move-item.down .move-pct { color: var(--down); }
.move-price { font-size: 12px; color: var(--text-sub); }
.move-price b { color: var(--text); font-variant-numeric: tabular-nums; }

/* ---------- 模拟炒股（独立板块） ---------- */
.sim-total-banner {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-variant-numeric: tabular-nums;
}
.sim-total-label { font-size: 13px; color: var(--text-sub); font-weight: 600; }
.sim-total-val { font-size: 22px; font-weight: 800; letter-spacing: .3px; color: var(--text); }
.sim-total-val.up { color: var(--up); }
.sim-total-val.down { color: var(--down); }
.sim-total-val.flat { color: var(--text); }
.free-holding-bar {
  display: inline-flex; align-items: baseline; gap: 7px;
  font-variant-numeric: tabular-nums; margin-right: 12px;
}
.free-holding-bar .free-label { font-size: 12px; color: var(--text-sub); font-weight: 600; }
.free-holding-bar .free-val { font-size: 17px; font-weight: 800; letter-spacing: .2px; color: var(--text); }
.free-holding-bar .free-val.up { color: var(--up); }
.free-holding-bar .free-val.down { color: var(--down); }
.free-holding-bar .free-val.flat { color: var(--text); }
.sim-code, .sim-buy, .sim-shares, .sim-time {
  font-size: 12px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; outline: none;
}
.sim-code { flex: 1; min-width: 140px; }
.sim-buy { width: 80px; }
.sim-shares { width: 70px; }
.sim-time { width: 130px; }
.sim-hint { width: 100%; font-size: 11px; color: var(--text-sub); margin-top: 3px; }
.sim-del { font-size: 11px; width: 20px; height: 20px; border-radius: 50%; border: 1px solid transparent; background: transparent; color: #c9ccd1; cursor: pointer; }
.sim-del:hover { color: var(--up); background: #fdeceb; border-color: #f3b6b1; }

/* ---------- 历史交易记录（独立板块） ---------- */
.hist-row { flex-wrap: wrap; }
.hist-code { flex: 1; min-width: 140px; }
.hist-buy-wrap { display: inline-flex; align-items: center; gap: 4px; }
.hist-buy { width: 152px; }
.hist-buy-manual { width: 80px; }
.hist-shares { width: 70px; }
.hist-buytime, .hist-selltime { width: 140px; }
.hist-sellprice { width: 80px; }
.hist-broker { width: 110px; }
.hist-code, .hist-buy, .hist-buy-manual, .hist-shares, .hist-buytime, .hist-selltime, .hist-sellprice, .hist-broker {
  font-size: 12px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; outline: none;
}
.hist-buy { background: #fff; color: var(--text); }
.hist-code:focus, .hist-buy:focus, .hist-buy-manual:focus, .hist-shares:focus, .hist-buytime:focus,
.hist-selltime:focus, .hist-sellprice:focus, .hist-broker:focus { border-color: var(--brand); }
.hist-hint { width: 100%; font-size: 11px; color: var(--text-sub); margin-top: 3px; }
.hist-del { font-size: 11px; width: 20px; height: 20px; border-radius: 50%; border: 1px solid transparent; background: transparent; color: #c9ccd1; cursor: pointer; }
.hist-del:hover { color: var(--up); background: #fdeceb; border-color: #f3b6b1; }
/* 明细行「操作」列：放「扣减 / 已扣减 + 撤销」和删除。
   ⚠️ 必须 nowrap —— 这列最窄，一旦被压就会把「已扣减」「撤销」两个按钮折行/挤掉，
   而表格本身不会报错（容器虽有 overflow-x:auto，但折行不触发滚动，纯靠肉眼才能发现）。 */
.hist-actions { white-space: nowrap; text-align: right; }
.hist-consume-wrap { display: inline-flex; align-items: center; gap: 4px; margin-right: 4px; vertical-align: middle; }
/* 未扣减：主色实心边框，提示「这里可以点」 */
.hist-consume { font-size: 11px; padding: 2px 8px; border-radius: 10px; border: 1px solid var(--brand); background: #fff; color: var(--brand); cursor: pointer; white-space: nowrap; }
.hist-consume:hover { background: var(--brand); color: #fff; }
/* 已扣减：置灰 + disabled（点击不再触发扣减；重扣必须先「撤销」） */
.hist-consume.done,
.hist-consume.done:hover { border-color: var(--card-border); background: #f4f6f9; color: var(--text-sub); cursor: default; }
.hist-unconsume { font-size: 11px; padding: 2px 7px; border-radius: 10px; border: 1px dashed var(--card-border); background: #fff; color: var(--text-sub); cursor: pointer; white-space: nowrap; }
.hist-unconsume:hover { border-style: solid; border-color: var(--up); color: var(--up); }
/* 股票汇总行右侧「＋ 明细」：在该股票下新增一条明细行 */
.hist-group-add { font-size: 11px; padding: 2px 10px; border-radius: 12px; border: 1px dashed var(--card-border); background: #fff; color: var(--text-sub); cursor: pointer; white-space: nowrap; }
.hist-group-add:hover { border-style: solid; border-color: var(--brand); color: var(--brand); }
/* 明细行内联表单（表格内一行，跨列） */
.hist-detail-form > td { background: #f7f9fc; padding: 9px 10px; }
.hist-detail-form .haf-row { gap: 6px; }

/* 历史交易分类（资管持仓交易 / 自有持仓交易） */
.hist-cat { margin-bottom: 16px; }
.hist-cat:last-child { margin-bottom: 0; }
.hist-cat-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.hist-cat-bar { width: 4px; height: 16px; border-radius: 2px; display: inline-block; }
.hist-cat-name { font-size: 14px; font-weight: 700; color: var(--text); }
.hist-cat-toggle { margin-left: auto; font-size: 11px; padding: 3px 12px; border-radius: 12px; border: 1px solid var(--card-border); background: #fff; color: var(--text-sub); cursor: pointer; }
.hist-cat-toggle:hover { border-color: var(--brand); color: var(--brand); }
.hist-cat-sum { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-sub); padding: 8px 12px; background: #f7f9fc; border-radius: 8px; margin-bottom: 10px; }
.hist-cat-sum b { font-size: 15px; color: var(--text); font-variant-numeric: tabular-nums; }
.hist-cat-count { margin-left: auto; font-size: 11px; }
.hist-cat-body { transition: none; }
.hist-category { font-size: 12px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; outline: none; background: #fff; color: var(--text); width: 70px; }

/* ---------- 删除撤回轻提示（底部居中） ---------- */
.undo-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  z-index: 1000; display: flex; align-items: center; gap: 12px;
  background: #1f2a3d; color: #fff; padding: 11px 16px; border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.28); font-size: 13px;
  opacity: 0; pointer-events: none; transition: opacity .22s ease, transform .22s ease;
  max-width: 90vw;
}
.undo-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.undo-toast .undo-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.undo-toast .undo-restore {
  background: #f0a500; color: #1f2a3d; border: none; font-weight: 700; white-space: nowrap;
  padding: 4px 12px; border-radius: 6px; cursor: pointer;
}
.undo-toast .undo-restore:hover { background: #ffb92b; }
.undo-toast .undo-restore:disabled { opacity: .6; cursor: default; }
.undo-toast .undo-link { color: #9db4e8; text-decoration: none; white-space: nowrap; }
.undo-toast .undo-link:hover { color: #fff; }

/* ---------- 持仓↔资管一致性校验提示（复用 undo-toast 骨架） ---------- */
.sync-check-toast { border-left: 4px solid #3b82f6; }
.sync-check-toast.warn { border-left: 4px solid #f0a500; background: #3a2a14; }
.sync-check-toast .undo-text { max-width: 70vw; line-height: 1.5; }

/* ---------- 跨页定位（研究页点股票名称 → 本页定位到该股票）----------
   ① 结果轻提示（复用 undo-toast 骨架，独立元素）
   ② 行级定位：补偿顶栏吸附高度，保证目标行不被顶栏遮挡（scrollIntoView block:start） */
.focus-jump-toast { border-left: 4px solid #16a085; }
.focus-jump-toast .undo-text { max-width: 70vw; line-height: 1.5; }
#holdingSummary tr.g-sum-row, #holdingSummary tr.g-detail-row,
#strategyWindows .stock-table tbody tr, #strategyWindows .holding-table tbody tr,
#simTrading tbody tr, #candidateWatch tbody tr { scroll-margin-top: 84px; }

/* ---------- 备用站（只读镜像）横幅 ----------
   由后端 WB_READONLY=1 下发（/api/config 的 readonly 字段），前端 renderSiteBanner()
   把它插到 body 最前面。position: sticky 让它滚动时始终吸附在顶部，避免用户以为
   只是网络卡了而反复重试写操作。 */
.site-mode-banner {
  position: sticky; top: 0; z-index: 9000;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 16px;
  background: #fff7e6;
  border-bottom: 1px solid #f2cf90;
  color: #8a5a00;
  font-size: 12.5px; line-height: 1.5;
}
.site-mode-banner b { font-weight: 600; white-space: nowrap; }
.site-mode-banner span { opacity: .88; }
