/* ============================================================================
 * GEO 页样式 —— 2026-10-19 重写
 * 品牌蓝 #0090D8 取自 logo 实测主色（2292×625 PNG 采样，占绝对多数）。
 * 结构：① 三步向导（.gw-*）② 上次汇总表格（.gr-*）③ 管理端权限列表（.access-*）
 * ==========================================================================*/
.geo-page, #adminTabStats { font-family: "Microsoft YaHei", "Noto Sans SC", sans-serif; }
/* 菜单选中态跟随品牌蓝（原来是青绿，与页面内配色不一致） */
.menu-l2[data-page="geo"].active, .nav-item[data-page="geo"].active { background: #EAF6FD; color: #0077B6; box-shadow: none; }

.geo-page {
  --brand: #0090D8;
  --brand-dark: #0077B6;
  --brand-soft: #EAF6FD;
  --brand-line: #CFE7F6;
  --ink: #12354D;
  --muted: #5D7183;
  --line: #DDE7EF;
}

.btn.geo-primary {
  background: var(--brand, #0090D8);
  border: 1px solid var(--brand-dark, #0077B6);
  color: #fff;
}
.btn.geo-primary:hover { background: var(--brand-dark, #0077B6); }
.btn.geo-primary:disabled { opacity: .55; cursor: not-allowed; }
.geo-muted { color: var(--muted, #5D7183); }

/* ---------------- 外壳 ---------------- */
.gw { max-width: 1080px; }
.gw-head { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; }
.gw-head h1 { font-size: 26px; line-height: 1.3; margin: 0 0 6px; color: var(--ink); }
.gw-head p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* ---------------- 步骤条 ---------------- */
.gw-steps { display: flex; gap: 10px; list-style: none; padding: 0; margin: 16px 0; }
.gw-step { display: flex; align-items: center; gap: 8px; flex: 1; padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: 14px; }
.gw-step b { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 50%; background: #E7EEF4; color: var(--muted); font-size: 12.5px; }
.gw-step.active { border-color: var(--brand); color: var(--ink); font-weight: 600; box-shadow: inset 3px 0 var(--brand); }
.gw-step.active b { background: var(--brand); color: #fff; }
.gw-step.done b { background: var(--brand-soft); color: var(--brand-dark); }

/* ---------------- 面板与表单 ---------------- */
.gw-panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; }
.gw-label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin: 4px 0 6px; }
.gw-label em { font-style: normal; font-weight: 400; font-size: 12.5px; color: var(--muted); margin-left: 8px; }
.gw-input {
  width: 100%; padding: 10px 12px; font-size: 14px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 9px; background: #fff; margin-bottom: 14px;
}
.gw-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.gw-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.gw-row .gw-input { margin-bottom: 0; flex: 1; min-width: 220px; }
.gw-hint { font-size: 12.5px; color: var(--muted); }
.gw-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

/* ---------------- 问题清单 ---------------- */
.gw-qs { list-style: none; padding: 0; margin: 0 0 12px; }
.gw-q {
  display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px;
  border: 1px solid var(--line); border-radius: 9px; margin-bottom: 8px; background: #fff;
  transition: border-color .15s, background .15s;
}
.gw-q.on { border-color: var(--brand); background: var(--brand-soft); }
.gw-q label { display: flex; gap: 9px; align-items: flex-start; flex: 1; cursor: pointer; font-size: 14px; line-height: 1.6; color: var(--ink); }
.gw-q input[type=checkbox] { margin-top: 3px; accent-color: var(--brand); width: 15px; height: 15px; flex: 0 0 auto; }
.gw-del {
  border: 0; background: none; color: #9FB2C2; font-size: 18px; line-height: 1;
  cursor: pointer; padding: 0 4px; flex: 0 0 auto;
}
.gw-del:hover { color: #D94848; }
.gw-empty { color: var(--muted); font-size: 13.5px; padding: 14px 4px; }

/* ---------------- 进度 ---------------- */
.gw-progress { margin-bottom: 14px; }
.gw-bar { height: 8px; border-radius: 5px; background: #E7EEF4; overflow: hidden; }
.gw-bar i { display: block; height: 100%; background: var(--brand); border-radius: 5px; transition: width .3s; }
.gw-progress-text { margin: 8px 0 0; font-size: 13px; color: var(--muted); }

/* ---------------- 结果 ---------------- */
.gw-result-head {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: 10px; padding: 16px 18px; font-size: 16px; line-height: 1.7; color: var(--ink); margin-bottom: 6px;
}
.gw-h3 { font-size: 17px; margin: 22px 0 10px; color: var(--ink); }

/* 结果页顶部四个数字卡（参考爱搜的诊断卡） */
.gw-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 12px 0 4px; }
.gw-kpi { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.gw-kpi strong { display: block; font-size: 24px; color: var(--brand); line-height: 1.2; }
.gw-kpi span { color: var(--ink); font-size: 13px; font-weight: 600; }
.gw-kpi em { display: block; font-style: normal; color: var(--muted); font-size: 12px; margin-top: 2px; }
/* 单条回答的「提到/没提到」小标 */
.gw-ans-flag { display: inline-block; margin-left: 8px; font-size: 12px; color: var(--muted); background: #EEF3F7; border-radius: 4px; padding: 1px 7px; }
.gw-ans-flag.on { color: var(--brand-dark); background: var(--brand-soft); font-weight: 600; }
/* 建议清单 */
.gw-tips { margin: 6px 0 12px; padding-left: 20px; font-size: 14px; line-height: 1.85; color: #33475B; }
.gw-tips li { margin-bottom: 6px; }
.gw-tablewrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.gw-table, .gr-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 460px; }
.gw-table th, .gw-table td, .gr-table th, .gr-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.gw-table thead th, .gr-table thead th { background: #F3F8FB; font-weight: 600; font-size: 13px; white-space: nowrap; }
.gw-table tbody tr:last-child td, .gr-table tbody tr:last-child td { border-bottom: 0; }
.gw-strong { font-weight: 600; white-space: nowrap; }
.gw-num, .gr-num { text-align: center; font-variant-numeric: tabular-nums; }
.gw-bar2 { display: inline-block; width: 64px; height: 7px; border-radius: 4px; background: #E7EEF4; vertical-align: middle; overflow: hidden; }
.gw-bar2 i { display: block; height: 100%; background: var(--brand); border-radius: 4px; }
.gw-table em { font-style: normal; font-size: 12px; color: var(--muted); margin-left: 6px; }

.gw-detail { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; margin-bottom: 8px; }
.gw-detail > summary { cursor: pointer; padding: 12px 0; font-size: 14px; color: var(--ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gw-detail[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.gw-qno { display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); font-size: 12px; flex: 0 0 auto; }
.gw-badges { margin-left: auto; display: flex; gap: 5px; flex-wrap: wrap; }
.gw-tag { display: inline-block; background: #EEF3F7; color: var(--muted); border-radius: 4px; padding: 1px 7px; font-size: 12px; white-space: nowrap; }
.gw-tag.hit { background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.gw-ans { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.gw-ans:last-child { border-bottom: 0; }
.gw-ans b { font-size: 13px; color: var(--brand-dark); }
.gw-ans p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.75; color: #33475B; white-space: pre-wrap; }
.gw-refs { margin-top: 6px; font-size: 12.5px; color: var(--muted); line-height: 1.8; }
.gw-refs a { color: var(--brand-dark); text-decoration: none; }
.gw-refs a:hover { text-decoration: underline; }
.gw-note { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 8px 2px 0; }

/* ---------------- 上次汇总 ---------------- */
.gw-past { margin-top: 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
.gw-past > summary { cursor: pointer; padding: 15px 0; font-size: 14px; font-weight: 600; color: var(--brand-dark); }
.gw-past[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.gw-past .gr-cards { margin-top: 0; }
.gr-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 14px 0; }
.gr-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.gr-card strong { display: block; font-size: 26px; color: var(--brand); line-height: 1.2; }
.gr-card span { color: var(--muted); font-size: 13px; }
.gr-tablewrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.gr-table { min-width: 760px; }
.gr-total td { background: #F7FBFD; font-weight: 600; }
.gr-note { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 10px 2px 16px; }

/* ---------------- 未开通提示 ---------------- */
.gw-lock { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 12px; padding: 22px 24px; }
.gw-lock h2 { margin: 0 0 6px; font-size: 18px; color: var(--ink); }
.gw-lock p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------------- 管理端权限列表 ---------------- */
/* 管理端渲染在 #adminTabGeo（不在 .geo-page 内），变量要在这里再声明一次 */
#adminTabGeo { --brand: #0090D8; --brand-dark: #0077B6; --brand-soft: #EAF6FD; --muted: #5D7183; --line: #DDE7EF; }
.geo-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 12px; }
#adminTabGeo .geo-heading h2 { font-size: 18px; margin: 0 0 4px; }
.summary-prose { color: var(--muted); font-size: 13.5px; }
.access-list { display: flex; flex-direction: column; gap: 10px; }
.access-user { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; flex-wrap: wrap; }
.access-user h3 { margin: 0 0 6px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.access-user p { margin: 2px 0; font-size: 13px; color: var(--muted); }
.name-initial { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 50%; background: var(--brand-soft, #EAF6FD); color: var(--brand-dark, #0077B6); font-size: 12.5px; font-weight: 600; }

@media (max-width: 760px) {
  .gw-head h1 { font-size: 22px; }
  .gw-steps { flex-direction: column; }
  .gr-cards { grid-template-columns: repeat(2, 1fr); }
  .access-user { flex-direction: column; }
}

/* ============================================================================
 * 报告区（2026-10-20 新建）：概览 → 分析 → 平台命中率 → 信源分布 → 信源排名 → 问题明细
 * ==========================================================================*/
.gr-report { max-width: none; }   /* 1320 容器 + 右侧空白修好后，报告铺满可用宽度 */
.gr-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; }
.gr-head h2 { margin: 0 0 6px; font-size: 24px; color: var(--ink); }
.gr-sub { margin: 0; color: var(--muted); font-size: 13.5px; }
.gr-hero { text-align: right; min-width: 150px; }
.gr-hero strong { display: block; font-size: 34px; line-height: 1.1; color: var(--brand); }
.gr-hero span { font-size: 13px; color: var(--ink); }
.gr-hero em { display: block; font-style: normal; font-size: 12px; color: var(--muted); margin-top: 4px; }

.gr-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 14px 0 6px; }
.gr-kpi { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 14px 16px; }
.gr-kpi strong { display: block; font-size: 23px; color: var(--brand); line-height: 1.2; }
.gr-kpi span { font-size: 13px; font-weight: 600; color: var(--ink); }
.gr-kpi em { display: block; font-style: normal; font-size: 12px; color: var(--muted); margin-top: 2px; }

.gr-h3 { font-size: 17px; margin: 30px 0 12px; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.gr-summary { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 10px; padding: 14px 18px; }
.gr-summary p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.8; color: #2c455c; }
.gr-summary p:last-child { margin-bottom: 0; }
.gr-note { color: var(--muted); font-size: 12.5px; line-height: 1.7; margin: 8px 2px 0; }

.gr-tablewrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 11px; }
.gr-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
.gr-table th, .gr-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.gr-table thead th { background: #F3F8FB; font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.gr-table tbody tr:last-child td { border-bottom: 0; }
.gr-table tbody tr:hover { background: #FAFDFF; }
.gr-num { text-align: center; font-variant-numeric: tabular-nums; }
.gr-strong { font-weight: 600; }
.gr-bar { display: inline-block; width: 72px; height: 8px; border-radius: 5px; background: #E7EEF4; overflow: hidden; vertical-align: middle; }
.gr-bar i { display: block; height: 100%; background: var(--brand); border-radius: 5px; }
.gr-table em { font-style: normal; font-size: 12px; color: var(--muted); margin-left: 6px; }
.gr-tail td { background: #F7FBFD; color: var(--muted); }

.gr-plat { display: flex; align-items: center; gap: 9px; font-weight: 600; white-space: nowrap; }
.gr-logo { width: 22px; height: 22px; border-radius: 6px; object-fit: contain; background: #fff; border: 1px solid #EDF3F8; }
.gr-logo.ph { display: inline-flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand-dark); font-size: 12px; }

.gr-tag { display: inline-block; background: #EEF3F7; color: #4b6274; border-radius: 5px; padding: 1px 7px; font-size: 11.5px; margin: 1px 4px 1px 0; white-space: nowrap; }
.gr-tag.on { background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.gr-tag.off { background: #F3F4F6; color: #97A4B1; }
.gr-tags { margin-top: 6px; }
.gr-qcell { min-width: 280px; line-height: 1.6; }
.gr-link { border: 0; background: none; color: var(--brand-dark); font-size: 12.5px; cursor: pointer; text-decoration: underline; padding: 0; }

/* 筛选与分页 */
.gr-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.gr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gr-chip { border: 1px solid var(--line); background: #fff; color: #4b6274; border-radius: 999px; padding: 5px 12px; font-size: 12.5px; cursor: pointer; }
.gr-chip:hover { border-color: var(--brand-line); color: var(--brand-dark); }
.gr-chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.gr-pager { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.gr-page-info { font-size: 12.5px; color: var(--muted); margin-right: 6px; }
.gr-page { border: 1px solid var(--line); background: #fff; color: #4b6274; border-radius: 7px; min-width: 32px; height: 30px; padding: 0 9px; font-size: 12.5px; cursor: pointer; }
.gr-page:disabled { opacity: .45; cursor: not-allowed; }
.gr-page.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.gr-dots { color: var(--muted); padding: 0 2px; }
.gr-btn { border: 1px solid var(--brand); background: #fff; color: var(--brand-dark); border-radius: 8px; padding: 5px 12px; font-size: 12.5px; cursor: pointer; }
.gr-btn:hover { background: var(--brand-soft); }

/* 向导折叠 */
.gw-fold { margin-top: 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
.gw-fold > summary { cursor: pointer; padding: 15px 0; font-size: 14px; font-weight: 600; color: var(--brand-dark); }
.gw-fold[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.gw-fold .gw { max-width: none; }
/* 折叠区里保留页面标题，否则整页没有大标题 */

/* 回答弹窗 */
.gr-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 24px; }
.gr-modal-mask { position: absolute; inset: 0; background: rgba(18, 53, 77, .45); }
.gr-modal-box { position: relative; width: min(920px, 100%); max-height: 86vh; background: #fff; border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 24px 60px rgba(18,53,77,.28); }
.gr-modal-box header { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.gr-modal-box header h3 { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink); }
.gr-modal-x { border: 0; background: none; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; }
.gr-modal-body { padding: 16px 20px 22px; overflow-y: auto; }
.gr-answer { border-bottom: 1px dashed var(--line); padding-bottom: 14px; margin-bottom: 14px; }
.gr-answer:last-child { border-bottom: 0; }
.gr-answer h4 { margin: 0 0 8px; font-size: 14px; color: var(--brand-dark); }
.gr-answer pre { margin: 0; padding: 12px 14px; background: #F7FAFC; border: 1px solid var(--line); border-radius: 9px; font-size: 13px; line-height: 1.8; white-space: pre-wrap; word-break: break-word; color: #2c455c; max-height: 320px; overflow-y: auto; }
.gr-src-list { list-style: none; margin: 6px 0 0; padding: 0; }
.gr-src-list li { padding: 6px 0; border-bottom: 1px solid #F1F5F8; font-size: 12.5px; line-height: 1.6; }
.gr-src-list a { color: var(--brand-dark); text-decoration: none; }
.gr-src-list a:hover { text-decoration: underline; }
.gr-site { display: inline-block; min-width: 92px; color: var(--muted); margin-right: 8px; }

@media (max-width: 760px) {
  .gr-head { flex-direction: column; }
  .gr-hero { text-align: left; }
  .gr-table { min-width: 560px; }
}

/* ===== v2：全局筛选条 + 历史报告（2026-10-20） ===== */
.gr-filters-global { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 14px 0 4px; display: flex; flex-direction: column; gap: 10px; }
.gr-filter-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gr-filter-label { font-size: 12.5px; color: var(--muted); min-width: 64px; }
.gr-search { flex: 1; min-width: 220px; padding: 8px 12px; font-size: 13px; color: var(--ink); border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.gr-search:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.gr-dim { opacity: .45; }
.gr-history { margin: 18px 0 8px; }
.gr-history-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.gr-pager-wrap { margin-top: 10px; }

/* 轮次标签与「当前查看」提示条（2026-10-20 自检补充） */
.gr-tag.now { background: #E8F3FB; color: #0B6FA8; }
.gr-tag.past { background: #F1F2F4; color: #7A8794; }
.gr-viewbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #FFF8E8; border: 1px solid #F0DFB8; color: #7A5A1E; border-radius: 10px; padding: 10px 14px; margin: 0 0 12px; font-size: 13px; }

/* 筛选状态说明与「清空筛选」禁用态（2026-10-20 真机测试后补） */
.gr-filter-state { font-size: 12.5px; color: var(--muted); }
.gr-btn.gr-btn-off, .gr-btn:disabled { opacity: .45; cursor: not-allowed; border-color: var(--line); color: var(--muted); }
.gr-link.gr-del { color: #B4453B; margin-left: 8px; }

/* ===== 排版优化（2026-10-20）：宽屏后把向导收紧，别让表单拉成一条线 ===== */
/* 第 1 步：产品名 / 别名两列并排，按钮单独一行 */
#gwPanel1 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 22px; align-items: end; }
#gwPanel1 .gw-field { min-width: 0; }
#gwPanel1 .gw-field .gw-input { margin-bottom: 0; }
#gwPanel1 .gw-actions { grid-column: 1 / -1; margin-top: 2px; }
@media (max-width: 860px) { #gwPanel1 { grid-template-columns: minmax(0, 1fr); } }
/* 步骤条别拉满整行 */
.gw-steps { max-width: 800px; }
/* 表单控件也别无限拉长 */
.gw-panel .gw-input { max-width: 100%; }
.gw-row .gw-input { max-width: none; }
/* 报告表格在宽屏下更好读：间隔与行高 */
.gr-table th, .gr-table td { line-height: 1.55; }
.gr-summary p { max-width: 88ch; }

/* ===== 外部功能权限（2026-10-20）：菜单标记 / 未开通弹层 / 管理端列表 / 登录提示 ===== */
.nav-hint-ext { font-size: 10px; color: #0B6FA8; background: #EAF6FD; border-color: #CFE7F6; }
.login-notice { margin: 14px 0 4px; padding: 12px 14px; border-radius: 10px; background: #FFF8E8; border: 1px solid #F0DFB8; color: #7A5A1E; font-size: 12.5px; line-height: 1.7; }
.login-notice b { display: block; font-size: 13px; margin-bottom: 3px; color: #8A5B10; }
.login-notice span { display: block; }

.feat-gate { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.feat-gate-mask { position: absolute; inset: 0; background: rgba(18, 53, 77, .45); }
.feat-gate-box { position: relative; width: min(520px, 100%); background: #fff; border-radius: 14px; padding: 22px 24px; box-shadow: 0 24px 60px rgba(18,53,77,.28); }
.feat-gate-box h3 { margin: 0 0 8px; font-size: 18px; color: #12354D; }
.feat-gate-box p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.7; color: #4b6274; }
.feat-gate-note { color: #5D7183; }
.feat-gate-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.feat-gate-err { margin-top: 10px; color: #B4453B; font-size: 12.5px; }

.feat-block { border: 1px solid #DDE7EF; border-radius: 12px; padding: 16px 18px; margin-top: 16px; }
.feat-block h4 { margin: 0 0 6px; font-size: 15px; color: #12354D; display: flex; align-items: center; gap: 8px; }
.feat-sub { font-size: 11px; font-weight: 400; color: #5D7183; background: #F1F5F8; border-radius: 999px; padding: 1px 8px; }
.feat-note { margin: 0 0 10px; font-size: 12.5px; color: #5D7183; }
.feat-list { display: flex; flex-direction: column; gap: 8px; }
.feat-row { border: 1px solid #E6EEF4; border-radius: 9px; padding: 10px 12px; display: grid; grid-template-columns: minmax(160px, 1fr) minmax(180px, 1.4fr) auto; gap: 12px; align-items: center; }
.feat-user { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.feat-state { font-size: 11px; border-radius: 999px; padding: 1px 8px; background: #F1F5F8; color: #5D7183; }
.feat-state.s-approved { background: #E8F3FB; color: #0B6FA8; }
.feat-state.s-pending { background: #FFF4E0; color: #8A5B10; }
.feat-state.s-rejected, .feat-state.s-disabled { background: #F6E9E8; color: #A3403A; }
.feat-why { font-size: 12px; color: #5D7183; }
.feat-acts { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 860px) { .feat-row { grid-template-columns: 1fr; } }

/* ===== GEO看板 · 豆包（2026-10-20） ===== */
.db-upload { background:#fff; border:1px solid var(--line); border-radius:12px; padding:16px 18px; margin:14px 0 18px; }
.db-upload-row { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:10px; }
.db-upload-row:last-child { margin-bottom:0; }
.db-label { font-size:12.5px; color:var(--muted); min-width:56px; }
.db-store-pick { display:flex; gap:8px; }
.db-store { border:1px solid var(--line); background:#fff; color:#4b6274; border-radius:999px; padding:7px 18px; font-size:13px; cursor:pointer; font-weight:600; }
.db-store:hover { border-color:var(--brand); color:var(--brand-dark); }
.db-store.on { background:var(--brand); border-color:var(--brand); color:#fff; }
.db-hint { font-size:12.5px; color:var(--muted); }
.db-hint.warn { color:#B4453B; }
.db-hint.ok { color:#147a62; }
.db-hint.busy { color:var(--brand-dark); }

.db-preview { margin-top:12px; }
.db-confirm { border:1px dashed var(--brand-line, #CFE7F6); border-radius:10px; padding:14px; background:#F8FCFF; }
.db-confirm-head { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; font-size:13px; color:#2c455c; margin-bottom:10px; }
.db-confirm-head span { color:var(--muted); font-size:12px; }
.db-confirm-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:10px; }
.db-confirm-grid label { font-size:12px; color:#5D7183; display:flex; flex-direction:column; gap:4px; }
.db-in { padding:7px 9px; border:1px solid var(--line); border-radius:7px; font-size:13px; }
.db-confirm-actions { display:flex; gap:8px; margin-top:12px; }

/* 品字形：全部在上（跨两列），广州/海南在下面左右 */
.db-boards { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.db-all { grid-column:1 / -1; }
.db-board { background:#fff; border:1px solid var(--line); border-radius:14px; padding:18px 20px; }
.db-board > header { display:flex; justify-content:space-between; align-items:baseline; gap:12px; margin-bottom:6px; }
.db-board > header h3 { margin:0; font-size:15px; color:var(--ink); }
.db-period { font-size:12px; color:var(--muted); }
.db-board-note { margin:0 0 10px; font-size:12px; color:var(--muted); }
.db-kpis { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px 18px; margin-top:8px; }
.db-all .db-kpis { grid-template-columns:repeat(5,minmax(0,1fr)); }
.db-kpi { min-width:0; }
.db-k { display:block; font-size:12px; color:var(--muted); margin-bottom:4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.db-v { display:block; font-size:21px; color:#0F2B44; letter-spacing:-.01em; line-height:1.25; }
.db-all .db-v { font-size:23px; }
.db-d { display:inline-block; font-style:normal; font-size:12px; margin-top:2px; }
.db-d.up { color:#C0392B; }     /* 涨用红（国内习惯） */
.db-d.down { color:#0E8A63; }   /* 跌用绿 */
.db-bars { display:flex; flex-direction:column; gap:2px; margin-top:6px; }
.db-bars i { display:block; height:4px; border-radius:3px; }
.db-bars .cur { background:var(--brand); }
.db-bars .prev { background:#E3EBF1; }
.db-empty { padding:26px 6px; text-align:center; color:var(--muted); }
.db-empty p { margin:0 0 4px; color:#425d73; font-size:14px; }
.db-empty span { font-size:12px; }

.db-summary { background:#fff; border:1px solid var(--line); border-left:4px solid var(--brand); border-radius:10px; padding:14px 18px; }
.db-summary p { margin:0 0 9px; font-size:14px; line-height:1.8; color:#2c455c; }
.db-summary p:last-child { margin-bottom:0; }
.db-summary b.up { color:#C0392B; } .db-summary b.down { color:#0E8A63; }
.db-charts { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:16px; }
.db-chart { background:#fff; border:1px solid var(--line); border-radius:12px; padding:14px 16px; }
.db-chart h4 { margin:0 0 10px; font-size:13.5px; color:var(--ink); }
.db-cmp-row, .db-funnel-row, .db-delta-row { display:grid; grid-template-columns:64px minmax(0,1fr) 96px; gap:10px; align-items:center; margin-bottom:8px; font-size:12.5px; }
.db-cmp-row span, .db-funnel-row span, .db-delta-row span { color:#5D7183; }
.db-cmp-track, .db-funnel-track { height:10px; background:#EEF3F7; border-radius:6px; overflow:hidden; }
.db-cmp-track i, .db-funnel-track i { display:block; height:100%; background:var(--brand); border-radius:6px; }
.db-cmp-track.alt i { background:#4FB3E8; }
.db-funnel-track.t2 i { background:#5AB0E0; }
.db-funnel-track.t3 i { background:#8DC9EA; }
.db-cmp-row em, .db-funnel-row em { font-style:normal; text-align:right; color:#0F2B44; font-variant-numeric:tabular-nums; }
.db-chart-note { margin:6px 0 0; font-size:11.5px; color:var(--muted); }

.db-sub { margin:22px 0 10px; font-size:13.5px; color:var(--ink); }
.db-deltas { background:#fff; border:1px solid var(--line); border-radius:12px; padding:14px 16px; }
.db-delta-track { position:relative; height:10px; background:#F2F5F8; border-radius:6px; }
.db-delta-track:after { content:""; position:absolute; left:50%; top:-2px; bottom:-2px; width:1px; background:#D8E2EA; }
.db-delta-track i { position:absolute; top:0; bottom:0; border-radius:6px; }
.db-delta-track i.up { background:#E2685C; left:50%; }
.db-delta-track i.down { background:#3AAE86; right:50%; }
.db-delta-row em { font-style:normal; text-align:right; font-variant-numeric:tabular-nums; }
.db-delta-row em.up { color:#C0392B; } .db-delta-row em.down { color:#0E8A63; }
.db-history-wrap { margin-top:8px; }
@media (max-width:1080px) {
  .db-boards { grid-template-columns:1fr; }
  .db-all { grid-column:auto; }
  .db-all .db-kpis, .db-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .db-charts { grid-template-columns:1fr; }
}

/* ============================================================================
 * 2026-10-20 v2：豆包看板重做 + 侧栏美化（覆盖前面同名规则）
 * ==========================================================================*/
/* —— 侧栏：收紧分组、加分隔、底部用户区固定 —— */
.side-menu { padding: 8px 10px 12px; gap: 2px; scrollbar-width: thin; }
.side-menu::-webkit-scrollbar { width: 6px; }
.side-menu::-webkit-scrollbar-thumb { background: #DCE6EE; border-radius: 3px; }
.nav-group + .nav-group { margin-top: 10px; padding-top: 8px; border-top: 1px solid #F0F4F8; }
.nav-group:first-child { padding-top: 0; border-top: 0; }
.nav-group-title { font-size: 10.5px; letter-spacing: .1em; color: #8CA0B3; padding: 2px 10px 6px; font-weight: 700; }
.nav-item { padding: 9px 10px; border-radius: 9px; gap: 9px; color: #48627A; }
.nav-item .nav-ico { width: 18px; font-size: 14px; color: #6B8399; }
.nav-item:hover { background: #F4F9FC; }
.nav-item:hover .nav-ico { color: var(--brand); }
.nav-main { padding: 11px 10px; font-size: 14px; }
.nav-main.active { background: #E9F5FD; color: #0077B6; box-shadow: inset 3px 0 #0090D8; }
.nav-item.active:not(.nav-main) { background: #EAF6FD; color: #0077B6; box-shadow: inset 3px 0 #0090D8; font-weight: 600; }
.nav-hint { font-size: 9.5px; padding: 1px 6px; color: #8CA0B3; }
.nav-hint-ext { color: #0B6FA8; background: #EAF6FD; border-color: #D3E8F6; }
.side-user { border-top: 1px solid #EDF2F7; background: #fff; padding: 12px 14px; }

/* —— 上传区 —— */
.db-pick { display: flex; gap: 6px; background: #F3F7FA; padding: 3px; border-radius: 999px; }
.db-chip { border: 0; background: transparent; color: #5D7183; border-radius: 999px; padding: 6px 14px; font-size: 12.5px; cursor: pointer; font-weight: 600; transition: background .15s, color .15s; }
.db-chip:hover { color: var(--brand-dark); }
.db-chip.on { background: #fff; color: #0077B6; box-shadow: 0 1px 3px rgba(18,53,77,.12); }
.db-file { display: inline-flex; align-items: center; gap: 6px; border: 1px dashed #C7D8E5; border-radius: 9px; padding: 7px 14px; font-size: 12.5px; color: #4b6274; cursor: pointer; background: #FAFDFF; max-width: 320px; }
.db-file:hover { border-color: var(--brand); color: var(--brand-dark); }
.db-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-progress { height: 6px; background: #EAF0F5; border-radius: 4px; overflow: hidden; margin-top: 10px; }
.db-progress i { display: block; width: 30%; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #7FC7EE, #0090D8); animation: dbSlide 1.2s ease-in-out infinite; }
@keyframes dbSlide { 0% { transform: translateX(-100%); } 100% { transform: translateX(340%); } }

/* —— 看板 —— */
.db-board { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; box-shadow: 0 1px 2px rgba(18,53,77,.04); }
.db-board > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.db-board > header h3 { margin: 0 0 2px; font-size: 15px; color: #0F2B44; }
.db-tabs { display: flex; gap: 4px; background: #F3F7FA; padding: 3px; border-radius: 9px; flex-shrink: 0; }
.db-tab { border: 0; background: transparent; color: #5D7183; font-size: 12px; padding: 5px 10px; border-radius: 7px; cursor: pointer; white-space: nowrap; }
.db-tab:hover { color: var(--brand-dark); }
.db-tab.on { background: #fff; color: #0077B6; font-weight: 600; box-shadow: 0 1px 3px rgba(18,53,77,.12); }
.db-kpis { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px 20px; }
.db-all .db-kpis { grid-template-columns: repeat(5, minmax(0,1fr)); }
.db-vrow { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.db-v { font-size: 22px; color: #0F2B44; letter-spacing: -.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.db-all .db-v { font-size: 24px; }
.db-d { font-style: normal; font-size: 11.5px; font-weight: 600; }
.db-d.up { color: #C0392B; } .db-d.down { color: #0E8A63; }
.db-spark { margin-top: 8px; display: flex; flex-direction: column; gap: 3px; }
.db-spark i { display: block; height: 6px; border-radius: 4px; }
.db-spark .cur { background: var(--brand); }
.db-spark .prev { background: #DCE7F0; }
.db-spark-k { display: flex; justify-content: space-between; font-size: 10px; color: #9AAAB8; margin-top: 3px; }

/* —— 分析图表 —— */
.db-cmp-track, .db-funnel-track { height: 12px; background: #EEF3F7; border-radius: 7px; overflow: hidden; }
.db-cmp-track i, .db-funnel-track i { height: 100%; border-radius: 7px; }
.db-cmp-row, .db-funnel-row { grid-template-columns: 70px minmax(0,1fr) 100px; margin-bottom: 12px; }
.db-delta-row { grid-template-columns: 132px minmax(0,1fr) 82px; margin-bottom: 10px; }
.db-delta-track { height: 12px; }
.db-summary { border-radius: 12px; box-shadow: 0 1px 2px rgba(18,53,77,.04); }
.db-chart { border-radius: 14px; box-shadow: 0 1px 2px rgba(18,53,77,.04); }

@media (max-width: 1080px) {
  .db-all .db-kpis, .db-kpis { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .db-board > header { flex-direction: column; }
}

/* ===== 受限功能：信息卡 + 功能权限管理表格（2026-10-20 v2） ===== */
/* 双链接模式下入口卡片最多展示 6 条链接，限制弹窗高度并允许内部滚动，防止矮屏遮挡底部按钮 */
.feat-gate-box.feat-info { width: min(560px, 100%); max-height: 85vh; overflow-y: auto; }
.feat-info-desc { margin: 0 0 12px; color: #4b6274; font-size: 13.5px; line-height: 1.7; }
.feat-creds { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.feat-cred { display: flex; align-items: center; gap: 8px; background: #F5F9FC; border: 1px solid #E3EDF5; border-radius: 9px; padding: 8px 12px; font-size: 12.5px; }
.feat-cred span { color: #6B8399; }
.feat-cred b { color: #0F2B44; font-weight: 600; cursor: pointer; border-bottom: 1px dashed #C7D8E5; }
.feat-cred b.copied { color: #0E8A63; border-bottom-color: #0E8A63; }
.feat-links { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 4px; }
.feat-link { display: flex; flex-direction: column; gap: 2px; border: 1px solid #E3EDF5; border-radius: 10px; padding: 10px 12px; text-decoration: none; color: #0F2B44; font-size: 13.5px; background: #FBFDFF; }
.feat-link:hover { border-color: var(--brand); background: #F5FBFE; }
.feat-link em { font-style: normal; font-size: 11.5px; color: #8CA0B3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mx-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 12px; }
.mx-search { max-width: 220px; }
.mx-check { font-size: 12.5px; color: #5D7183; display: flex; align-items: center; gap: 6px; }
.mx-sum { font-size: 12.5px; color: var(--muted); margin-left: auto; }
.mx-table th, .mx-table td { white-space: nowrap; }
.mx-table tbody tr:hover { background: #FBFDFF; }
.mx-user { font-weight: 600; color: #0F2B44; }
.mx-td { padding: 8px 10px !important; }
.mx-cell { border: 1px solid transparent; border-radius: 7px; padding: 4px 10px; font-size: 12px; cursor: pointer; background: #F3F6F9; color: #6B8399; min-width: 76px; }
.mx-cell:hover { border-color: var(--brand); color: var(--brand-dark); }
.mx-cell.s-approved { background: #E8F3FB; color: #0B6FA8; font-weight: 600; }
.mx-cell.s-pending { background: #FFF4E0; color: #8A5B10; }
.mx-cell.s-rejected, .mx-cell.s-disabled { background: #F6E9E8; color: #A3403A; }
b.s-approved { color: #0B6FA8; } b.s-pending { color: #8A5B10; } b.s-rejected, b.s-disabled { color: #A3403A; }

/* ===== 登录方式二选一（2026-10-20） ===== */
.pwd-choice { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 8px; }
.pwd-choice-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; padding: 12px 14px; border: 1px solid #DDE7EF; background: #FBFDFF; border-radius: 11px; cursor: pointer; font: inherit; color: #2c455c; }
.pwd-choice-btn:hover { border-color: var(--brand); background: #F5FBFE; }
.pwd-choice-btn b { font-size: 14px; color: #0F2B44; }
.pwd-choice-btn span { font-size: 12px; color: #6B8399; }
.pwd-choice-btn.primary { border-color: #CFE7F6; background: #F2FAFF; }
.side-user .logout { margin-left: 6px; }

/* 更新日志：只列板块（2026-10-22） */
.changelog-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 2px; }
.changelog-tags span { font-size: 12.5px; color: #3E5A70; background: #F2F7FA; border: 1px solid #E1EBF2; border-radius: 7px; padding: 4px 10px; }

/* 豆包看板：施工中提示（2026-10-22） */
.db-wip { display: flex; flex-direction: column; gap: 2px; margin: 12px 0 4px; padding: 12px 16px; border-radius: 10px; background: #FFF8E8; border: 1px solid #F0DFB8; border-left: 4px solid #E8A33D; }
.db-wip b { font-size: 13.5px; color: #8A5B10; }
.db-wip span { font-size: 12.5px; color: #7A5A1E; line-height: 1.6; }

/* ===== 每日推算（2026-10-23） ===== */
.db-daily { display: flex; flex-direction: column; gap: 16px; }
.db-daily-block { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.db-daily-block > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.db-daily-block h4 { margin: 0 0 2px; font-size: 15px; color: #0F2B44; }
.db-daily-range { font-size: 12px; color: var(--muted); }
.db-conf { font-size: 11.5px; border-radius: 999px; padding: 3px 10px; }
.db-conf.c-high { background: #E8F6EF; color: #0E8A63; }
.db-conf.c-mid { background: #FFF6E5; color: #8A5B10; }
.db-conf.c-low { background: #F8E9E8; color: #A3403A; }
.db-daily-inputs { font-size: 12px; color: var(--muted); margin: 6px 0 10px; }
.db-bars-chart { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding: 6px 2px 0; background: linear-gradient(#F7FAFC, #fff); border-radius: 8px; }
.db-bars-chart i { flex: 1; min-width: 3px; border-radius: 3px 3px 0 0; display: block; }
.db-bars-chart i.exact { background: #0E8A63; }
.db-bars-chart i.infer { background: #7FB6DA; }
.db-bars-chart i:hover { outline: 2px solid #0090D8; outline-offset: 1px; }
.db-daily-legend { display: flex; gap: 14px; align-items: center; font-size: 11.5px; color: #5D7183; margin: 6px 0 12px; }
.db-daily-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.db-daily-legend i.exact { background: #0E8A63; }
.db-daily-legend i.infer { background: #7FB6DA; }
.db-daily-legend .dim { color: #9AAAB8; }
.db-daily-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.db-daily-grid h5 { margin: 0 0 8px; font-size: 13px; color: #2c455c; }
.db-mini-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.db-mini-table th { text-align: left; font-weight: 500; color: #8CA0B3; font-size: 11.5px; padding: 4px 6px; border-bottom: 1px solid #EDF2F7; }
.db-mini-table td { padding: 5px 6px; border-bottom: 1px solid #F4F8FB; color: #3E5A70; }
.db-mini-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.db-mini-table .ok { color: #0E8A63; }
.db-mini-table .bad { color: #C0392B; font-weight: 600; }
.db-mini-table .dim { color: #9AAAB8; }
@media (max-width: 1080px) { .db-daily-grid { grid-template-columns: 1fr; } }

/* 2026-10-23 修复：豆包页不在 .geo-page 作用域内，--brand/--line 等变量解析失败，
   柱状图填充变透明（广州那条、漏斗曝光那条消失）。这里给豆包页补一份变量。 */
#page-doubao {
  --brand: #0090D8;
  --brand-dark: #0077B6;
  --brand-soft: #EAF6FD;
  --brand-line: #CFE7F6;
  --ink: #0F2B44;
  --muted: #5D7183;
  --line: #DDE7EF;
}
/* 再兜一层：即使变量仍缺失，柱条也用实色渲染 */
.db-cmp-track i { background: #0090D8; }
.db-funnel-track i { background: #0090D8; }
.db-spark .cur { background: #0090D8; }

/* ============================================================================
 * 2026-10-23 豆包看板视觉优化 v2
 * 原则：卡片统一圆角/阴影；主看板有品牌色标识；成交金额单独高亮；
 *      涨跌做胶囊；结论带序号；图表加轴与基线。
 * ==========================================================================*/
#page-doubao .page-title { letter-spacing: -.01em; }
#page-doubao .page-intro { color: #5D7183; }

/* —— 卡片体系 —— */
#page-doubao .db-upload { border-radius: 16px; box-shadow: 0 2px 8px rgba(18,53,77,.05); border-color: #E6EEF5; }
#page-doubao .db-board { border-radius: 16px; border-color: #E6EEF5; box-shadow: 0 2px 10px rgba(18,53,77,.05); transition: box-shadow .18s, transform .18s; }
#page-doubao .db-board:hover { box-shadow: 0 6px 18px rgba(18,53,77,.09); }
#page-doubao .db-all .db-board { border-top: 3px solid #0090D8; }
#page-doubao .db-all .db-board > header { background: linear-gradient(180deg, #F5FBFF, transparent); margin: -18px -20px 10px; padding: 14px 20px 10px; border-radius: 13px 13px 0 0; }
#page-doubao .db-half .db-board > header { padding-bottom: 8px; border-bottom: 1px dashed #EDF3F8; margin-bottom: 12px; }
#page-doubao .db-board > header h3 { font-size: 15.5px; font-weight: 600; }

/* —— KPI 小卡片 —— */
#page-doubao .db-kpis { gap: 12px; }
#page-doubao .db-kpi {
  background: #FAFCFE; border: 1px solid #EDF3F8; border-radius: 11px;
  padding: 11px 12px 10px; transition: border-color .15s, background .15s, box-shadow .15s;
}
#page-doubao .db-kpi:hover { border-color: #CFE7F6; background: #F7FCFF; box-shadow: 0 2px 6px rgba(18,53,77,.05); }
#page-doubao .db-k { font-size: 11.5px; color: #7D93A6; letter-spacing: .01em; }
#page-doubao .db-v { font-size: 21px; font-weight: 600; }
#page-doubao .db-d { border-radius: 999px; padding: 1px 7px; font-size: 11px; }
#page-doubao .db-d.up { background: rgba(192,57,43,.09); }
#page-doubao .db-d.down { background: rgba(14,138,99,.10); }

/* 成交金额：单独高亮 */
#page-doubao .db-kpi.k-gmv {
  background: linear-gradient(180deg, #F3FAFF, #EAF5FD);
  border-color: #CBE4F6;
  box-shadow: inset 3px 0 0 #0090D8, 0 2px 6px rgba(0,144,216,.10);
}
#page-doubao .db-kpi.k-gmv .db-k { color: #0B6FA8; font-weight: 600; }
#page-doubao .db-kpi.k-gmv .db-v { color: #0077B6; font-size: 25px; letter-spacing: -.02em; }
#page-doubao .db-all .db-kpi.k-gmv .db-v { font-size: 28px; }
#page-doubao .db-kpi.k-gmv .db-spark .cur { background: #0090D8; }
#page-doubao .db-kpi.k-gmv .db-spark-k { color: #7FA8C4; }

/* —— 分析结论：编号 —— */
#page-doubao .db-summary { counter-reset: dbp; border-radius: 14px; box-shadow: 0 2px 8px rgba(18,53,77,.04); }
#page-doubao .db-summary p { position: relative; padding-left: 26px; }
#page-doubao .db-summary p::before {
  counter-increment: dbp; content: counter(dbp);
  position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%;
  background: #EAF5FD; color: #0077B6; font-size: 11px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}

/* —— 图表卡片 —— */
#page-doubao .db-chart { border-radius: 14px; border-color: #E6EEF5; box-shadow: 0 2px 8px rgba(18,53,77,.04); }
#page-doubao .db-chart h4 { display: flex; align-items: center; gap: 6px; font-weight: 600; }
#page-doubao .db-chart h4::before { content: ""; width: 3px; height: 13px; border-radius: 2px; background: #0090D8; }
#page-doubao .db-cmp-track, #page-doubao .db-funnel-track { height: 13px; border-radius: 7px; background: #F0F5F9; }
#page-doubao .db-deltas { border-radius: 14px; border-color: #E6EEF5; box-shadow: 0 2px 8px rgba(18,53,77,.04); }

/* —— 每日推算 —— */
#page-doubao .db-daily-block { border-radius: 16px; border-color: #E6EEF5; box-shadow: 0 2px 10px rgba(18,53,77,.05); }
#page-doubao .db-bars-chart { height: 132px; border-bottom: 1px solid #E6EEF5; border-radius: 10px 10px 0 0; gap: 4px; }
#page-doubao .db-bars-chart i { border-radius: 3px 3px 0 0; transition: filter .15s; }
#page-doubao .db-bars-chart i:hover { filter: brightness(1.12); }
.db-bars-axis { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #8CA0B3; padding: 6px 2px 0; }
.db-bars-axis .dim { color: #A7B6C4; }
#page-doubao .db-mini-table tbody tr:nth-child(even) { background: #FBFDFF; }
#page-doubao .db-mini-table td { border-bottom-color: #F1F6FA; }

/* —— 历史表 —— */
#page-doubao .db-history-wrap .gr-table th { background: #F7FAFC; }

@media (max-width: 1180px) {
  #page-doubao .db-all .db-kpis { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
