/* ============================================================
   GEO Monitor · 设计系统 v3（对齐 AnswerBit 原版观感）
   白色侧栏 + 企点顶条 + 浅色内容区，主色 #4f6ef7
   ============================================================ */
:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --card: #ffffff;
  --ink: #1f2329;
  --ink-2: #33383f;
  --muted: #8c8c8c;
  --faint: #b0b0b0;
  --line: #f0f0f0;
  --line-2: #e5e7eb;
  --line-soft: #f5f6f8;
  --accent: #4f6ef7;
  --accent-dark: #3f5de0;
  --accent-soft: #eef2ff;
  --accent-line: #d9e0ff;
  --green: #16a34a;
  --green-soft: #ecf9f0;
  --amber: #d48806;
  --amber-soft: #fff8e8;
  --red: #ff4d4f;
  --red-soft: #fff1f0;
  --cyan: #14b8a6;
  --radius: 12px;
  --radius-s: 8px;
  --shadow: none;
  --shadow-pop: 0 12px 32px rgba(31, 35, 41, 0.12);
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", Inter, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
::selection { background: var(--accent-soft); }

/* ---------------- 企点顶条 ---------------- */
.qd-bar {
  height: 48px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px; padding: 0 18px;
  position: sticky; top: 0; z-index: 40; font-size: 13px; color: #333;
}
.qd-sep { width: 1px; height: 18px; background: var(--line-2); }
.qd-app { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.qd-menu { color: #666; font-size: 14px; }
.qd-search {
  display: flex; align-items: center; gap: 8px; width: 300px; height: 32px;
  padding: 0 10px; background: #f7f8fa; border: 1px solid var(--line-2);
  border-radius: 8px; color: var(--faint); font-size: 12px;
}
.qd-search input { border: none; outline: none; background: transparent; width: 100%; font-size: 12px; color: var(--ink); }
.qd-search kbd {
  font-family: inherit; font-size: 10px; color: var(--faint);
  border: 1px solid var(--line-2); border-radius: 4px; padding: 0 4px; background: #fff;
}

/* ---------------- 主区顶条（页标题 + 搜索） ---------------- */
.topbar {
  display: flex; align-items: center; gap: 18px;
  padding: 14px 26px 0; max-width: 1480px;
}
.tb-title { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.tb-title h1 { font-size: 17px; font-weight: 650; margin: 0; white-space: nowrap; color: var(--ink); }
.tb-title .sub { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.search {
  display: flex; align-items: center; gap: 8px; width: 320px; height: 34px;
  border: 1px solid var(--line-2); border-radius: 999px; padding: 0 12px;
  color: var(--faint); font-size: 12px; background: #fff;
}
.search input { border: none; outline: none; background: transparent; flex: 1; font-size: 12px; color: var(--ink); }
.search kbd {
  font-family: inherit; font-size: 10px; color: var(--faint);
  border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 5px; background: #fafafa;
}
.icon-btn {
  position: relative; width: 30px; height: 30px; border-radius: 8px;
  border: none; background: transparent; color: #6b7280; font-size: 14px; cursor: pointer;
}
.icon-btn:hover { background: #f5f6f8; }
.icon-btn .dot {
  position: absolute; top: 3px; right: 3px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--red); border: 1.5px solid #fff;
}
.page-actions { display: flex; justify-content: flex-end; gap: 9px; margin-bottom: 12px; }

/* ---------------- KPI 激活态 ---------------- */
.kpi-cell.active { background: #f7f8ff; }
.kpi-cell.active .kpi-underline { height: 4px; }
.kpi-cell.active .kpi-underline i { background: var(--accent); }
.kpi-underline { height: 3px; }
.kpi-label .q { color: #c0c0c0; font-size: 11px; font-style: normal; }
.kpi-delta .arrow { font-style: normal; }
.kpi-delta b.down, .delta.down { color: var(--red); }
.kpi-delta b.up, .delta.up { color: var(--green); }

/* ---------------- 排名面板 ---------------- */
.rank-mine {
  display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: #666;
  background: #fafbfc; border-bottom: 1px solid var(--line-soft); padding: 9px 12px; flex-wrap: wrap;
}
.rank-mine b { color: var(--accent); }
.rank-mine .chip {
  background: #ffece8; color: #d4380d; border-radius: 4px; padding: 0 5px; font-size: 10.5px;
}
.share-rank { font-size: 11px; color: var(--faint); width: 14px; }

.logo-mark.mark-blue { background: var(--accent); }

.shell { display: flex; min-height: calc(100vh - 48px); }

/* ---------------- 侧栏（白底） ---------------- */
.sidebar {
  width: 228px; flex: 0 0 228px; background: #fff;
  border-right: 1px solid var(--line);
  color: #4b5563; position: sticky; top: 48px; height: calc(100vh - 48px);
  display: flex; flex-direction: column; overflow-y: auto;
}
.sidebar::-webkit-scrollbar { width: 0; }
.brand-block { padding: 14px 14px 6px; }
.logo { display: flex; align-items: center; gap: 10px; padding: 2px 4px 14px; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: #1f2329; color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 15px;
}
.logo-name { color: var(--ink); font-weight: 750; font-size: 16px; letter-spacing: -0.01em; }
.logo-sub { color: var(--faint); font-size: 10.5px; margin-top: 1px; }
.workspace-switch {
  display: flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--line-2);
  border-radius: 10px; padding: 8px 10px; cursor: pointer;
  transition: background 0.15s;
}
.workspace-switch:hover { background: #fafbfc; }
.workspace-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: #2e9e5b; color: #fff; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; flex: 0 0 28px;
}
.workspace-copy { min-width: 0; flex: 1; }
.workspace-copy b { display: block; color: var(--ink); font-size: 13px; font-weight: 600; }
.workspace-copy span {
  display: block; color: #999; font-size: 10px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px;
}
.workspace-copy .plan {
  font-style: normal; color: #999; font-size: 9px;
  border: 1px solid #e5e5e5; border-radius: 4px; padding: 0 4px; margin-left: 4px;
}
.chev { color: #b0b0b0; font-size: 13px; }

.nav { padding: 4px 12px 14px; flex: 1; }
.nav-group { padding-top: 10px; }
.nav-title { color: #b0b0b0; font-size: 10.5px; letter-spacing: 0.04em; padding: 0 10px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px; color: #4b5563;
  font-size: 13px; margin-bottom: 1px; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.nav-item:hover { background: #f5f6f8; color: var(--ink); }
.nav-item.active { background: #f0f2f7; color: var(--ink); font-weight: 600; }
.nav-item .ico { width: 17px; text-align: center; opacity: 0.75; font-size: 13px; color: #6b7280; }
.nav-item.active .ico { color: var(--accent); }
.nav-item .badge {
  margin-left: auto; font-size: 10px; line-height: 16px;
  background: #eef0f4; border-radius: 999px; padding: 0 7px; color: #8c8c8c;
}
.nav-item.active .badge { background: #e3e8ff; color: var(--accent); }
.nav-item .beta {
  margin-left: auto; font-size: 9px; letter-spacing: 0.06em;
  background: var(--accent-soft); color: var(--accent);
  padding: 1px 6px; border-radius: 999px; font-weight: 650;
}
.user-block {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-top: 1px solid var(--line);
}
.user-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 12px;
}
.user-copy { flex: 1; min-width: 0; }
.user-copy b { display: block; color: var(--ink); font-size: 12.5px; font-weight: 600; }
.user-copy span { color: #999; font-size: 10.5px; }
.more { color: #999; font-size: 15px; cursor: pointer; }

/* ---------------- 主区 ---------------- */
.main { flex: 1; min-width: 0; background: #fff; }
.page { padding: 18px 26px 60px; max-width: 1480px; }

/* ---------------- 页头与通用 ---------------- */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.page-head h1 { font-size: 20px; letter-spacing: -0.01em; margin: 0 0 6px; font-weight: 650; }
.page-head .sub { color: var(--muted); font-size: 12px; }
.head-actions { display: flex; gap: 9px; align-items: center; }
.btn {
  border: 1px solid var(--line-2); background: #fff; color: #333;
  padding: 7px 13px; border-radius: 8px; cursor: pointer; font-size: 12.5px;
  display: inline-flex; align-items: center; gap: 6px; font-weight: 500;
  transition: border-color 0.15s, background 0.15s;
}
.btn:hover { border-color: #d9d9d9; background: #fafafa; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card.tight { padding: 14px 16px; }
.grid { display: grid; gap: 16px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g21 { grid-template-columns: 1.6fr 0.9fr; }
.g12 { grid-template-columns: 0.9fr 1.6fr; }
.mt { margin-top: 16px; }
.mt-s { margin-top: 10px; }
.kpi-label { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 5px; }
.kpi-value { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; margin-top: 8px; line-height: 1.1; color: var(--ink); }
.kpi-value.small { font-size: 21px; }
.kpi-foot { color: var(--faint); font-size: 11px; margin-top: 8px; }
.kpi-foot .up { color: var(--red); font-weight: 600; }
.kpi-foot .down { color: var(--green); font-weight: 600; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.section-head h3 { font-size: 14px; margin: 0; font-weight: 650; }
.section-head .hint { color: var(--faint); font-size: 11.5px; }
.section-head a { color: var(--accent); font-size: 12px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.tiny { font-size: 11px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11.5px; }

.tag {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10.5px; padding: 2.5px 8px; border-radius: 999px;
  background: #f5f5f5; color: #666; white-space: nowrap;
}
.tag.blue { background: var(--accent-soft); color: var(--accent); }
.tag.green { background: var(--green-soft); color: var(--green); }
.tag.amber { background: var(--amber-soft); color: var(--amber); }
.tag.red { background: var(--red-soft); color: #d4380d; }
.tag.dark { background: #eceef1; color: #4b5563; }
.pill {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11px;
  padding: 4px 10px; border-radius: 999px; background: var(--accent-soft);
  color: var(--accent); font-weight: 650;
}
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; display: inline-block; }

/* ---------------- 表格 ---------------- */
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left; color: var(--muted); font-weight: 500; font-size: 12px;
  padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap;
  background: #fafafa;
}
td { padding: 10px; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; vertical-align: middle; color: #333; }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fafbff; }
.table-wrap { overflow-x: auto; }
.empty { padding: 30px 10px; text-align: center; color: var(--faint); font-size: 12.5px; }

/* ---------------- 概览：KPI 长条 ---------------- */
.kpi-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.kpi-cell { padding: 16px 20px 16px; position: relative; }
.kpi-cell + .kpi-cell { border-left: 1px solid var(--line); }
.kpi-cell .kpi-value { font-size: 26px; margin-top: 6px; }
.kpi-delta { font-size: 11px; color: var(--muted); margin-top: 7px; display: flex; align-items: center; gap: 4px; }
.kpi-delta b { color: var(--red); font-weight: 600; }
.kpi-delta b.down { color: var(--green); }
.kpi-underline { position: absolute; left: 20px; right: 20px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: #e8ecf5; }
.kpi-underline i { display: block; height: 100%; border-radius: 3px 3px 0 0; background: var(--accent); }

/* ---------------- 概览：排名面板 ---------------- */
.rank-summary { border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; }
.rank-summary .rs-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; font-size: 12px; color: #666; border-bottom: 1px solid var(--line-soft); }
.rank-summary .rs-row:last-child { border-bottom: none; }
.rank-summary .rs-row b { color: var(--ink); font-weight: 650; }
.rank-summary .rs-row .up { color: var(--red); font-weight: 600; }
.rank-panel-title { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: #666; padding: 10px 12px 8px; border-bottom: 1px solid var(--line-soft); }
.rank-panel-title .sort { color: var(--accent); font-size: 13px; }
.share-row { display: grid; grid-template-columns: 18px 76px 1fr 64px; gap: 10px; align-items: center; padding: 9px 14px; font-size: 12px; }
.share-row .nm { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.share-row.own .nm { font-weight: 650; color: var(--ink); }
.share-row .val { text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.share-row.own .val { color: var(--accent); font-weight: 650; }
.share-track { height: 6px; background: #eef0f4; border-radius: 999px; overflow: hidden; }
.share-track i { display: block; height: 100%; border-radius: 999px; background: #c9cdd6; transition: width .4s ease; }
.share-row.own .share-track i { background: var(--accent); }

/* ---------------- 条形图 ---------------- */
.bar-list { display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 112px 1fr 64px; gap: 10px; align-items: center; font-size: 12px; color: #333; }
.bar-track { height: 8px; background: #f0f2f5; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: var(--accent); }
.bar-fill.green { background: #52c41a; }
.bar-fill.amber { background: #faad14; }
.bar-value { text-align: right; color: #333; font-weight: 600; }

/* ---------------- 折线图 ---------------- */
.chart { width: 100%; display: block; overflow: visible; }
.chart text { font-family: inherit; fill: #b0b0b0; font-size: 9.5px; }
.chart .grid-line { stroke: #f2f3f7; stroke-width: 1; }
.chart .grid-tick { font-size: 10px; fill: #b0b4bf; }

/* 趋势图悬停浮层（与原版交互一致） */
.trend-wrap { position: relative; }
.trend-tip {
  position: absolute; display: none; z-index: 6; pointer-events: none;
  background: #fff; border: 1px solid var(--line-2); border-radius: 8px;
  box-shadow: 0 6px 20px rgba(31, 35, 41, 0.1); padding: 8px 12px; min-width: 128px;
}
.trend-tip .tt-date { font-size: 11px; color: var(--muted); margin-bottom: 5px; }
.trend-tip .tt-row { display: flex; align-items: center; gap: 7px; font-size: 11.5px; padding: 2px 0; color: var(--ink-2); }
.trend-tip .tt-dot { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.trend-tip .tt-name { color: var(--ink-2); }
.trend-tip .tt-row b { margin-left: auto; padding-left: 12px; color: var(--ink); font-weight: 650; }
.chart .axis { stroke: var(--line); stroke-width: 1; }
.legend { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 11px; color: var(--muted); }
.legend i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; margin-right: 5px; vertical-align: middle; }

/* ---------------- 筛选 ---------------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filter-chip {
  border: 1px solid var(--line-2); background: #fff; color: #666;
  padding: 5.5px 11px; border-radius: 7px; font-size: 11.5px; cursor: pointer;
  transition: all 0.15s;
}
.filter-chip:hover { border-color: #d9d9d9; color: #333; }
.filter-chip.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.filter-chip .caret { font-style: normal; color: #b0b0b0; margin-left: 4px; }
.select { border: 1px solid var(--line-2); background: #fff; border-radius: 8px; padding: 6px 10px; font-size: 12px; color: #333; outline: none; cursor: pointer; }
.select:focus { border-color: var(--accent); }

/* ---------------- 时间区间选择面板 ---------------- */
.dp-panel {
  position: fixed; z-index: 90; display: flex; background: #fff;
  border: 1px solid var(--line-2); border-radius: 12px;
  box-shadow: 0 18px 48px rgba(31, 35, 41, 0.16);
  font-size: 12px; overflow: hidden;
}
.dp-presets {
  width: 96px; padding: 12px 8px; display: flex; flex-direction: column; gap: 2px;
  border-right: 1px solid var(--line); background: #fcfcfd;
}
.dp-preset {
  border: none; background: transparent; text-align: left; cursor: pointer;
  padding: 7px 10px; border-radius: 7px; font-size: 12px; color: #4b5563; font-family: inherit;
}
.dp-preset:hover { background: #f2f4f8; color: var(--ink); }
.dp-preset.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.dp-main { padding: 12px 14px 10px; }
.dp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.dp-title { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.dp-nav {
  width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line-2);
  background: #fff; color: #8c8c8c; cursor: pointer; line-height: 1; font-size: 13px;
}
.dp-nav:hover { border-color: var(--accent-line); color: var(--accent); }
.dp-week, .dp-grid { display: grid; grid-template-columns: repeat(7, 28px); gap: 2px; }
.dp-week span { text-align: center; color: var(--faint); font-size: 10.5px; padding: 3px 0; }
.dp-day {
  height: 26px; border: none; background: transparent; border-radius: 6px; cursor: pointer;
  font-size: 11.5px; color: #33383f; font-family: inherit;
}
.dp-day:hover { background: #f1f4fb; }
.dp-day.out { color: #c8ccd4; }
.dp-day.in { background: var(--accent-soft); color: var(--accent); }
.dp-day.edge { background: var(--accent); color: #fff; font-weight: 600; }
.dp-day.today { box-shadow: inset 0 0 0 1px var(--accent-line); }
.dp-day.edge.today { box-shadow: none; }
.dp-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line);
}
.dp-hint { color: var(--faint); font-size: 10.5px; }
.dp-actions { display: flex; gap: 8px; }
.dp-actions .btn { padding: 5px 14px; border-radius: 999px; font-size: 12px; }

/* ---------------- 维度筛选面板（大模型 / 分组 / 竞品） ---------------- */
.ovf-panel {
  position: fixed; z-index: 92; width: 228px; background: #fff;
  border: 1px solid var(--line-2); border-radius: 12px;
  box-shadow: 0 18px 48px rgba(31, 35, 41, 0.16);
  font-size: 12px; display: flex; flex-direction: column; overflow: hidden;
}
.ovf-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 11px 13px 8px; border-bottom: 1px solid var(--line);
}
.ovf-head b { font-size: 12.5px; color: var(--ink); }
.ovf-sub { color: var(--faint); font-size: 11px; }
.ovf-list { max-height: 340px; overflow-y: auto; padding: 6px; }
.ovf-item {
  display: flex; align-items: center; gap: 8px; padding: 7px 8px;
  border-radius: 7px; cursor: pointer; color: #4b5563;
}
.ovf-item:hover { background: #f4f6fa; }
.ovf-item input { accent-color: var(--accent); width: 13px; height: 13px; cursor: pointer; }
.ovf-item .ovf-nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ovf-item .ovf-cnt { color: var(--faint); font-size: 10.5px; }
.ovf-item.ovf-all { border-bottom: 1px dashed var(--line); border-radius: 0; margin-bottom: 4px; padding-bottom: 9px; }
.ovf-empty { padding: 18px 10px; text-align: center; color: var(--faint); }
.ovf-foot {
  display: flex; align-items: center; gap: 10px; padding: 8px 13px;
  border-top: 1px solid var(--line); background: #fcfcfd;
}
.ovf-foot a { color: var(--muted); font-size: 11.5px; }
.ovf-foot a:hover { color: var(--accent); }
.ovf-foot .btn { margin-left: auto; padding: 5px 14px; border-radius: 999px; font-size: 12px; }
.trend-empty {
  height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; color: #9aa3b2; font-size: 12.5px; text-align: center; line-height: 1.7;
  background: #fafbfc; border-radius: 10px;
}
.trend-empty span { color: var(--faint); font-size: 11.5px; }
.rank-empty { padding: 28px 14px; text-align: center; color: var(--faint); font-size: 11.5px; }

/* ---------------- 项目状态条 ---------------- */
.status-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.status-box { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; flex: 1; min-width: 280px; }
.status-avatar { width: 32px; height: 32px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.status-copy b { display: block; font-size: 13px; }
.status-copy span { display: block; color: var(--faint); font-size: 10.5px; margin-top: 2px; }
.status-meta { margin-left: auto; color: var(--faint); font-size: 10.5px; text-align: right; line-height: 1.8; }

/* ---------------- 提问分组卡 ---------------- */
.group-card { display: flex; flex-direction: column; gap: 9px; }
.group-card .group-name { font-weight: 650; font-size: 13.5px; }
.group-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.group-stat { background: #fafbfc; border: 1px solid var(--line-soft); border-radius: 10px; padding: 9px 10px; }
.group-stat b { display: block; font-size: 16px; }
.group-stat span { color: var(--faint); font-size: 10px; }
.prompt-main { font-weight: 600; color: var(--ink); }
.prompt-sub { color: var(--faint); font-size: 10.5px; margin-top: 3px; }
.trend-cell { display: flex; align-items: center; gap: 6px; }
.mini-line { width: 62px; height: 20px; }

/* ---------------- 回答记录 ---------------- */
.record-list { display: flex; flex-direction: column; gap: 11px; }
.record-card { border: 1px solid var(--line); border-radius: 12px; padding: 15px 17px; background: #fff; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; }
.record-card:hover { border-color: var(--accent-line); box-shadow: var(--shadow-pop); }
.record-top { display: flex; align-items: flex-start; gap: 10px; }
.record-query { font-weight: 650; font-size: 13px; flex: 1; }
.record-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 9px 0; }
.record-answer { color: #52607a; font-size: 12px; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.record-bottom { display: flex; align-items: center; gap: 14px; margin-top: 10px; color: var(--faint); font-size: 10.5px; }

/* ---------------- 抽屉 ---------------- */
.drawer-mask { position: fixed; inset: 0; background: rgba(31, 35, 41, 0.4); display: none; z-index: 50; }
.drawer-mask.show { display: block; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(580px, 94vw); background: #fff; z-index: 51; box-shadow: -16px 0 44px rgba(31, 35, 41, 0.16); transform: translateX(100%); transition: transform 0.24s ease; overflow-y: auto; }
.drawer.show { transform: translateX(0); }
.drawer-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; gap: 12px; position: sticky; top: 0; background: #fff; z-index: 2; }
.drawer-head h3 { margin: 0; font-size: 16px; line-height: 1.5; }
.drawer-close { margin-left: auto; border: none; background: #f5f5f5; border-radius: 8px; width: 30px; height: 30px; cursor: pointer; color: #666; font-size: 15px; flex: 0 0 30px; }
.drawer-close:hover { background: #ececec; }
.drawer-body { padding: 20px 22px 44px; }
.answer-box { background: #fafafa; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; font-size: 12.5px; line-height: 1.9; color: #333; white-space: pre-wrap; }
.mini-table td, .mini-table th { padding: 8px 7px; font-size: 11.5px; }

/* ---------------- 分析页 ---------------- */
.donut-wrap { display: flex; align-items: center; gap: 20px; }
.donut { width: 128px; height: 128px; flex: 0 0 128px; }
.donut-legend { display: flex; flex-direction: column; gap: 9px; font-size: 11.5px; color: var(--muted); }
.donut-legend b { color: var(--ink); margin-left: 6px; }
.metric-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 12.5px; color: #333; }
.metric-row:last-child { border-bottom: none; }
.metric-row b { font-weight: 650; color: var(--ink); }

/* ---------------- 商品流向 ---------------- */
.flow-board { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 18px; position: relative; align-items: start; }
.flow-col { position: relative; z-index: 2; }
.flow-col-title { font-size: 11px; color: var(--muted); margin-bottom: 10px; display: flex; justify-content: space-between; }
.flow-node { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px; margin-bottom: 9px; position: relative; }
.flow-node b { display: block; font-size: 12px; font-weight: 600; }
.flow-node span { display: block; color: var(--faint); font-size: 10px; margin-top: 2px; }
.flow-node .flow-bar { height: 4px; border-radius: 999px; background: #f0f2f5; margin-top: 8px; overflow: hidden; }
.flow-node .flow-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #60a5fa, #6366f1); }
.flow-node.own { border-color: #d6e4ff; background: #f7faff; }
.flow-node.competitor { border-color: #ffe7ba; background: #fffbf2; }
.flow-node.none { border-color: var(--line); background: #fafafa; }
.flow-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.flow-legend { display: flex; gap: 16px; font-size: 11px; color: var(--muted); margin-top: 12px; flex-wrap: wrap; }

/* ---------------- Agent ---------------- */
.agent-layout { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 16px; }
.chat-card { min-height: 540px; display: flex; flex-direction: column; }
.chat-log { flex: 1; overflow-y: auto; padding: 4px 2px 12px; display: flex; flex-direction: column; gap: 12px; max-height: 440px; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 13px; font-size: 12.5px; line-height: 1.75; white-space: pre-wrap; }
.msg.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.msg.agent { align-self: flex-start; background: #f7f8fa; color: #333; border-bottom-left-radius: 4px; }
.chat-input { display: flex; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; }
.chat-input input { flex: 1; border: 1px solid var(--line-2); border-radius: 9px; padding: 10px 12px; outline: none; font-size: 12.5px; }
.chat-input input:focus { border-color: var(--accent); }
.suggest { display: flex; flex-direction: column; gap: 8px; }
.suggest button { text-align: left; border: 1px solid var(--line-2); background: #fff; border-radius: 9px; padding: 10px 12px; font-size: 11.5px; color: #333; cursor: pointer; }
.suggest button:hover { border-color: var(--accent-line); background: #f8faff; color: var(--accent); }

/* ---------------- 提问数据表格 ---------------- */
.grid-table { width: 100%; overflow-x: auto; background: #fff; }
.grid-head, .grid-row {
  display: grid;
  grid-template-columns: minmax(280px, 1.7fr) minmax(120px, 1fr) 0.65fr 0.9fr 0.9fr 0.9fr minmax(120px, 1fr);
  align-items: center; gap: 8px; padding: 0 14px; min-width: 980px;
}
.grid-head { min-height: 44px; background: #fafafa; border-bottom: 1px solid var(--line); color: #8c8c8c; font-size: 12px; }
/* 表头悬浮提示气泡（如「启用状态」说明） */
.th-tip { position: relative; cursor: help; }
.th-tip-wide::after { max-width: 300px; }
.th-tip::after {
  content: attr(data-tip);
  position: absolute; left: 50%; top: calc(100% + 8px);
  transform: translateX(-50%) translateY(-4px);
  background: rgba(38, 38, 38, 0.92); color: #fff;
  font-size: 12px; font-weight: 400; line-height: 1.55; text-align: left;
  padding: 8px 12px; border-radius: 6px;
  width: max-content; max-width: 240px; white-space: normal;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease; z-index: 30;
}
.th-tip::before {
  content: ""; position: absolute; left: 50%; top: calc(100% + 2px);
  transform: translateX(-50%);
  border: 6px solid transparent; border-bottom-color: rgba(38, 38, 38, 0.92);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.15s ease; z-index: 31;
}
.th-tip:hover::after { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.th-tip:hover::before { opacity: 1; visibility: visible; }
.grid-row { min-height: 52px; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; color: #333; }
.grid-row:hover { background: #fafbff; }
.grid-group { min-height: 58px; background: #fcfcfd; }
.grid-child { min-height: 58px; }
.grid-child .query-cell { padding-left: 22px; }
.query-cell { display: flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 500; }
.query-cell-link { cursor: pointer; }
.query-cell-link:hover { color: #2f6fed; }
.chevron { color: var(--faint); font-size: 10px; }
.expander { display: inline-grid; place-items: center; width: 19px; height: 19px; margin-right: 4px; color: #8c8c8c; cursor: pointer; font-size: 13px; border-radius: 5px; }
.expander:hover { background: #f0f2f5; }
.check { width: 14px; height: 14px; border: 1px solid #d9d9d9; border-radius: 3px; display: inline-block; vertical-align: middle; background: #fff; cursor: pointer; }
.check:hover { border-color: var(--accent); }
.neg { color: #ff4d4f; font-weight: 500; }
.toggle-count { color: #fa8c16; font-size: 12px; font-weight: 600; }
.avatar-mini { width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: inline-grid; place-items: center; font-size: 9px; margin-right: 4px; vertical-align: middle; }
.switch { width: 28px; height: 16px; border-radius: 999px; background: #d9d9d9; display: inline-block; position: relative; vertical-align: middle; cursor: pointer; transition: background 0.15s; }
.switch.on { background: var(--accent); }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: left 0.15s; }
.switch.on::after { left: 14px; }
.model-icon { width: 20px; height: 20px; border-radius: 5px; background: var(--accent-soft); color: var(--accent); display: inline-grid; place-items: center; font-size: 11px; margin-right: 3px; }
.grid-actions { display: flex; align-items: center; gap: 5px; justify-content: flex-end; }
.mini-btn { border: 1px solid var(--line-2); background: #fff; color: var(--accent); border-radius: 6px; padding: 3px 7px; font-size: 11px; cursor: pointer; white-space: nowrap; }
.mini-btn:hover { background: var(--accent-soft); border-color: var(--accent-line); }
.grid-footer { display: flex; align-items: center; justify-content: flex-end; gap: 18px; padding: 12px 16px; color: #8c8c8c; font-size: 12px; border-top: 1px solid var(--line); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1180px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3, .g2, .g21, .g12, .agent-layout { grid-template-columns: 1fr; }
  .flow-board { grid-template-columns: 1fr 1fr; }
  .qd-search { width: 180px; }
}
@media (max-width: 820px) {
  .kpi-strip { grid-template-columns: 1fr; }
  .kpi-cell + .kpi-cell { border-left: none; border-top: 1px solid var(--line); }
  .sidebar { display: none; }
  .page { padding: 14px 14px 40px; }
  .qd-bar { padding: 0 12px; }
  .qd-search { display: none; }
  .g4 { grid-template-columns: 1fr; }
  .flow-board { grid-template-columns: 1fr; }
}

/* ---------------- 域名详情抽屉 ---------------- */
.dw-mask { position: fixed; inset: 0; background: rgba(15, 18, 25, .42); z-index: 90; animation: dwFade .18s ease; }
.dw {
  position: fixed; top: 0; right: 0; bottom: 0; width: 720px; max-width: 94vw;
  background: #fff; z-index: 91; display: flex; flex-direction: column;
  box-shadow: -12px 0 44px rgba(31, 35, 41, .16); animation: dwSlide .22s ease;
}
@keyframes dwFade { from { opacity: 0; } }
@keyframes dwSlide { from { transform: translateX(48px); opacity: .4; } }
.dw-head { padding: 16px 22px 12px; border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.dw-top { display: flex; align-items: center; gap: 10px; }
.dw-fav {
  width: 34px; height: 34px; border-radius: 9px; flex: 0 0 34px;
  display: grid; place-items: center; color: #fff; font-weight: 650; font-size: 15px;
}
.dw-titles { min-width: 0; }
.dw-title { font-size: 15px; font-weight: 650; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.dw-title .dw-domain { font-size: 11.5px; font-weight: 400; color: var(--muted); }
.dw-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex: 0 0 auto; }
.dw-x { border: none; background: none; font-size: 18px; color: #999; cursor: pointer; padding: 4px 6px; line-height: 1; }
.dw-x:hover { color: var(--ink); }
.dw-range { font-size: 11.5px; color: var(--muted); margin-top: 8px; }
.dw-body { overflow-y: auto; padding: 14px 22px 28px; flex: 1; }
.dw-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.dw-tab {
  border: 1px solid var(--line-2); background: #fff; border-radius: 999px;
  padding: 5px 12px; font-size: 12px; color: #444; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.dw-tab:hover { border-color: var(--accent-line); }
.dw-tab.active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.dw-tab .cnt { background: #f1f2f6; border-radius: 999px; font-size: 10.5px; padding: 1px 7px; color: #666; }
.dw-tab.active .cnt { background: #dbe3ff; color: var(--accent); }
.dw-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.dw-card h4 { margin: 0 0 10px; font-size: 13px; color: var(--ink); font-weight: 650; }
.dw-empty { text-align: center; padding: 22px 10px 16px; }
.dw-empty .ico { font-size: 26px; }
.dw-empty p { margin: 8px 0 4px; font-size: 13px; color: var(--ink); font-weight: 600; }
.dw-empty .sub { color: var(--muted); font-size: 11.5px; line-height: 1.7; }
.dw-grid2 { display: grid; grid-template-columns: 1fr 240px; gap: 14px; margin-bottom: 14px; }
.dw-plat { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 12px; }
.dw-plat:last-child { border-bottom: none; }
.dw-plat .bar { flex: 1; height: 6px; border-radius: 4px; background: var(--line-soft); overflow: hidden; }
.dw-plat .bar i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.dw-plat .num { color: var(--muted); font-size: 11px; white-space: nowrap; }
.dw-art-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.dw-art-head h4 { margin: 0; font-size: 13px; color: var(--ink); font-weight: 650; }
.dw-art-head input {
  margin-left: auto; border: 1px solid var(--line-2); border-radius: 8px;
  padding: 6px 10px; font-size: 12px; width: 180px; outline: none;
}
.dw-art-head input:focus { border-color: var(--accent); }
.dw-switch { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); cursor: pointer; user-select: none; }
.dw-switch i { width: 30px; height: 16px; border-radius: 999px; background: #dcdfe6; position: relative; transition: background .15s; flex: 0 0 30px; }
.dw-switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: left .15s; }
.dw-switch.on i { background: var(--accent); }
.dw-switch.on i::after { left: 16px; }
.dw-art { display: flex; align-items: flex-start; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.dw-art:last-child { border-bottom: none; }
.dw-art .no { color: var(--faint); font-weight: 650; font-size: 12px; width: 20px; flex: 0 0 20px; padding-top: 1px; }
.dw-art .tt { font-size: 12.5px; color: var(--ink); line-height: 1.5; }
.dw-art .tt a { color: inherit; text-decoration: none; }
.dw-art .tt a:hover { color: var(--accent); }
.dw-art .meta { margin-top: 4px; }
.dw-art .cnt-col { margin-left: auto; text-align: right; flex: 0 0 auto; }
.dw-art .cnt-col .n { font-size: 15px; font-weight: 650; color: var(--ink); }
.dw-art .cnt-col .l { font-size: 10.5px; color: var(--faint); }
.dw-foot-hint { font-size: 10.5px; color: var(--faint); margin-top: 10px; line-height: 1.7; }

/* ---------------- 引用域名排行榜 · 查看全部抽屉 ---------------- */
.dw.dr { width: 470px; }
.dr-search {
  width: 100%; box-sizing: border-box; padding: 8px 12px;
  border: 1px solid var(--line-2); border-radius: 8px; font-size: 12.5px;
  margin-bottom: 8px; outline: none; color: var(--ink);
}
.dr-search:focus { border-color: var(--accent); }
.dr-row { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--line); cursor: pointer; }
.dr-row:last-child { border-bottom: none; }
.dr-row:hover { background: #f7f9fd; }
.dr-rank { width: 20px; text-align: center; font-weight: 700; font-size: 13px; color: var(--muted); flex: 0 0 20px; }
.dr-rank.r1 { color: #f59e0b; }
.dr-rank.r2 { color: #8ea0b5; }
.dr-rank.r3 { color: #c2703d; }
.dr-fav { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 8px; font-size: 13px; }
.dr-info { min-width: 0; flex: 1; }
.dr-nm { font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr-dm { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.dr-cross { flex: 0 0 auto; }
.dr-total { text-align: center; font-size: 11.5px; color: var(--faint); padding: 14px 0 2px; }

/* 引用文章排行榜 · 查看全部抽屉 */
.ar-head { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--muted); padding: 2px 2px 8px; border-bottom: 1px solid var(--line); }
.ar-title { font-size: 12.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-title .ar-tt { color: inherit; text-decoration: none; }
.ar-title .ar-tt:hover { color: var(--accent); }
.ar-ext { flex: 0 0 auto; display: grid; place-items: center; padding: 2px; }
.ar-ext:hover svg path { stroke: var(--accent); }

/* ---------------- 曝光效果分数趋势 · 热力图（洞察分析，9.36） ---------------- */
.hm-tools { display: flex; align-items: center; gap: 6px; }
.hm-tool { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: #8c8c8c; display: inline-grid; place-items: center; cursor: pointer; padding: 0; }
.hm-tool:hover { border-color: var(--accent-line); color: var(--accent); }
.hm-tool.active { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.hm-chip { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 12px; margin-left: 6px; border: 1px solid #c7cdf5; border-radius: 999px; background: #f2f4fe; color: #4f5bd5; font-size: 12px; font-weight: 600; white-space: nowrap; }
.hm-scroll { overflow-x: auto; padding-top: 6px; }
.hm-grid { display: grid; gap: 4px; margin-bottom: 4px; min-width: 900px; }
.hm-headrow { color: #8c8c8c; font-size: 11px; margin-bottom: 2px; }
.hm-corner { display: flex; align-items: center; padding-left: 4px; }
.hm-date { text-align: center; padding: 2px 0; }
.hm-rowhead { display: flex; align-items: center; gap: 8px; padding: 0 4px; min-width: 0; }
.hm-avatar { width: 26px; height: 26px; border-radius: 50%; color: #fff; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; flex: 0 0 auto; }
.hm-name { font-size: 12.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-score { font-size: 12px; margin-left: auto; flex: 0 0 auto; white-space: nowrap; }
.hm-cell { height: 40px; border-radius: 7px; display: grid; place-items: center; font-size: 12px; font-weight: 650; cursor: pointer; transition: transform 0.1s ease, box-shadow 0.1s ease; }
.hm-cell:hover { transform: scale(1.06); box-shadow: 0 3px 10px rgba(79, 91, 213, 0.25); z-index: 2; position: relative; }
.hm-empty { background: #f5f6fa; cursor: default; }
.hm-avgrow { border-top: 1px dashed var(--line); padding-top: 6px; }
.hm-avgrow .hm-cell { height: 34px; }
.hm-legend { display: flex; align-items: center; gap: 5px; justify-content: flex-end; margin-top: 10px; font-size: 11px; color: #8c8c8c; }
.hm-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.hm-line { padding-top: 6px; }
/* 悬浮详情 */
.hm-tip { position: fixed; display: none; z-index: 1000; width: 232px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14); padding: 12px 14px; font-size: 12px; color: #333; pointer-events: none; }
.hm-tip-date { color: #8c8c8c; font-size: 11px; margin-bottom: 6px; }
.hm-tip-val { font-size: 12px; margin-bottom: 6px; }
.hm-tip-val b { font-size: 16px; color: var(--ink); margin-left: 2px; }
.hm-tip-row { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.hm-tip-spark { padding: 2px 0 4px; border-top: 1px dashed var(--line-soft); }
.hm-tip-spark .mini-line { width: 100%; height: 26px; }
.hm-tip-foot { color: #8c8c8c; font-size: 11px; border-top: 1px dashed var(--line-soft); padding-top: 6px; }
.hm-spark { width: 100%; height: 54px; display: block; }
.hm-spark-empty { height: 54px; display: grid; place-items: center; color: #b3b9c9; font-size: 11px; }
.hm-tip-name { font-size: 12px; color: var(--ink); margin-bottom: 4px; display: flex; align-items: baseline; gap: 6px; }
.hm-tip-name b { font-size: 16px; }

/* ---------------- 折线视图（设计图同款，9.38） ---------------- */
.hm-lgd-wrap { display: flex; align-items: center; margin: 2px 0 8px; }
.hm-lgd { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hm-lgd-item { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #4b5568; font-weight: 500; }
.hm-lgd-item i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.hm-lgd-item i.dash { width: 16px; height: 0; border-radius: 0; border-top: 2px dashed #94a3b8; }
.hm-line-flex { display: flex; align-items: stretch; gap: 18px; }
.hm-line-chart { flex: 1; min-width: 0; }
.hm-rank { flex: 0 0 250px; border-left: 1px solid var(--line); padding-left: 18px; display: flex; flex-direction: column; gap: 10px; }
.hm-rank-head { display: flex; align-items: baseline; justify-content: space-between; }
.hm-rank-head b { font-size: 13px; color: var(--ink); }
.hm-rank-head span { font-size: 11px; color: #98a2b3; }
.hm-rank-row { display: flex; align-items: center; gap: 9px; }
.hm-rank-no { width: 18px; text-align: center; font-size: 12px; font-weight: 700; color: #98a2b3; flex: 0 0 auto; }
.hm-rank-no.top1 { color: #f59e0b; }
.hm-rank-no.top2 { color: #64748b; }
.hm-rank-no.top3 { color: #d97706; }
.hm-rank-name { font-size: 12.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-rank-score { margin-left: auto; font-size: 13px; font-weight: 650; color: #4f5bd5; }

/* ---------------- 折线视图悬浮提示（9.39） ---------------- */
.hm-ln-title { font-size: 12.5px; font-weight: 650; color: var(--ink); margin-bottom: 8px; }
.hm-ln-row { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.hm-ln-dot { width: 12px; height: 3px; border-radius: 2px; flex: 0 0 auto; }
.hm-ln-dot.dash { background: repeating-linear-gradient(90deg, #94a3b8 0 4px, transparent 4px 7px); height: 2px; }
.hm-ln-name { font-size: 12px; color: #4b5568; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-ln-val { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--ink); padding-left: 14px; }
.hm-ln-foot { border-top: 1px dashed var(--line-soft, #e5e7eb); margin-top: 8px; padding-top: 7px; font-size: 11px; color: #98a2b3; }

/* ---------------- 三指标切换按钮（9.40） ---------------- */
.hm-chip-btn { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 12px; margin-left: 6px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: #4b5568; font-size: 12px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: all 0.12s ease; }
.hm-chip-btn:hover { border-color: #c7cdf5; color: #4f5bd5; }
.hm-chip-btn.active { background: #eef0fd; border-color: #c7cdf5; color: #4f5bd5; }
.hm-chip-btn svg { flex: 0 0 auto; }

/* ---------------- 内容管理 v2（设计稿改版） ---------------- */
.ar2-toolbar { display:flex; align-items:center; gap:10px; padding:12px 16px; flex-wrap:wrap; }
.ar2-chip { display:inline-flex; align-items:center; gap:6px; padding:7px 12px; border:1px solid var(--line); border-radius:8px; background:#fff; font-size:12.5px; color:#333; cursor:pointer; white-space:nowrap; }
.ar2-chip:hover { border-color:#c7cbd4; }
.ar2-chip i { font-style:normal; color:#98a2b3; font-size:10px; }
.ar2-search { flex:1 1 220px; min-width:200px; max-width:340px; display:flex; align-items:center; gap:8px; border:1px solid var(--line); border-radius:8px; padding:7px 12px; }
.ar2-search input { border:none; outline:none; flex:1; font-size:12.5px; background:transparent; color:var(--ink); }
.ar2-mine { display:inline-flex; align-items:center; gap:6px; font-size:12.5px; color:#333; cursor:pointer; white-space:nowrap; }
.ar2-mine input { accent-color:#7c5cf0; }
.ar2-menu { position:fixed; z-index:80; background:#fff; border:1px solid var(--line); border-radius:8px; box-shadow:0 8px 24px rgba(16,24,40,.12); padding:4px; min-width:150px; max-height:70vh; overflow-y:auto; }
.ar2-menu-item { padding:8px 12px; font-size:12.5px; border-radius:6px; cursor:pointer; color:#333; }
.ar2-menu-item:hover { background:#f4f5f7; }
.ar2-menu-item.on { color:#7c5cf0; font-weight:600; background:#f5f2ff; }
.ar2-menu-multi .ar2-menu-item { display:flex; align-items:center; }
.ar2-menu-item .pl-ck { display:inline-block; width:14px; height:14px; border:1.5px solid #d0d5dd; border-radius:4px; margin-right:2px; flex:0 0 auto; position:relative; box-sizing:border-box; }
.ar2-menu-item.on .pl-ck { background:#7c5cf0; border-color:#7c5cf0; }
.ar2-menu-item.on .pl-ck::after { content:""; position:absolute; left:3.5px; top:0.5px; width:4px; height:8px; border:solid #fff; border-width:0 2px 2px 0; transform:rotate(45deg); }
.ar2-menu-foot { display:flex; gap:8px; justify-content:flex-end; padding:8px 10px 6px; border-top:1px solid var(--line); margin-top:4px; }
.ar2-foot-btn { padding:5px 14px; border-radius:6px; border:1px solid var(--line); background:#fff; font-size:12px; cursor:pointer; color:#475467; }
.ar2-foot-btn:hover { background:#f4f5f7; }
.ar2-foot-btn.primary { background:#7c5cf0; border-color:#7c5cf0; color:#fff; font-weight:600; }
.ar2-foot-btn.primary:hover { opacity:.9; }

/* ---------------- 文章追踪详情页（内容管理 → 点文章标题） ---------------- */
.atp { position:fixed; inset:0; z-index:49; background:#f7f8fa; overflow-y:auto; }
.atp-loading { padding:80px; text-align:center; color:#98a2b3; font-size:14px; }
.atp-inner { max-width:1080px; margin:0 auto; padding:16px 20px 60px; }
.atp-head { background:#fff; border:1px solid var(--line); border-radius:12px; padding:14px 18px 0; }
.atp-topbar { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.atp-title { font-size:18px; font-weight:700; color:var(--ink); margin:2px 0; }
.atp-edit { cursor:pointer; color:#98a2b3; font-size:14px; margin-left:4px; }
.atp-edit:hover { color:#7c5cf0; }
.atp-tabs { display:flex; gap:24px; margin-top:12px; border-bottom:1px solid var(--line); }
.atp-tab { padding:10px 2px; font-size:13.5px; color:#667085; cursor:pointer; border-bottom:2px solid transparent; }
.atp-tab:hover { color:#333; }
.atp-tab.active { color:#7c5cf0; font-weight:650; border-bottom-color:#7c5cf0; }
.atp-filter { display:flex; align-items:center; gap:8px; background:#fff; border:1px solid var(--line); border-radius:10px; padding:8px 12px; }
.atp-day { padding:5px 12px; border-radius:14px; border:1px solid var(--line); background:#fff; font-size:12px; cursor:pointer; color:#475467; }
.atp-day.on { background:#7c5cf0; border-color:#7c5cf0; color:#fff; font-weight:600; }
.atp-kpi { display:flex; align-items:center; }
.atp-big { font-size:30px; font-weight:750; color:var(--ink); line-height:1.2; }
.atp-big span { font-size:13px; font-weight:500; color:#98a2b3; margin-left:4px; }
.atp-rank-row { display:flex; align-items:center; gap:8px; padding:6px 0; border-bottom:1px dashed #f0f1f4; }
.atp-rank-row:last-child { border-bottom:none; }
.atp-article { font-size:13.5px; line-height:1.9; color:#344054; }
.atp-article h1 { font-size:19px; margin:14px 0 8px; color:var(--ink); }
.atp-article h2 { font-size:16.5px; margin:14px 0 6px; color:var(--ink); }
.atp-article h3 { font-size:14.5px; margin:12px 0 4px; color:var(--ink); }
.atp-article p { margin:6px 0; }
.atp-article li { margin:4px 0 4px 18px; list-style:disc; }
.atp-plaintext { white-space:pre-wrap; font-size:13px; line-height:1.9; color:#344054; font-family:inherit; }
.ar2-menu-item .pl-ic {
  display:inline-flex; align-items:center; justify-content:center;
  width:20px; height:20px; border-radius:6px; margin-right:8px;
  color:#fff; font-size:11px; font-weight:700; vertical-align:-5px;
}
.ar2-tabs { display:flex; gap:22px; padding:0 16px; margin-top:14px; border-bottom:1px solid var(--line); overflow-x:auto; }
.ar2-tab { padding:10px 2px; font-size:13px; color:#667085; cursor:pointer; border-bottom:2px solid transparent; white-space:nowrap; }
.ar2-tab:hover { color:#333; }
.ar2-tab.on { color:#7c5cf0; font-weight:650; border-bottom-color:#7c5cf0; }
.ar2-count { font-size:11.5px; color:var(--faint); margin:10px 0 0 2px; }
.ar2-wrap { display:flex; gap:16px; margin-top:10px; align-items:flex-start; }
.ar2-list { flex:1; min-width:0; display:flex; flex-direction:column; gap:10px; }
.ar2-side { width:300px; flex:0 0 300px; display:flex; flex-direction:column; gap:12px; }
.al-card { display:flex; align-items:center; gap:14px; background:#fff; border:1px solid var(--line); border-radius:10px; padding:14px 16px; cursor:pointer; }
.al-card:hover { border-color:#c7cbd4; box-shadow:0 2px 10px rgba(16,24,40,.05); }
.al-main { flex:1; min-width:0; }
.al-tags { display:flex; gap:6px; margin-bottom:6px; flex-wrap:wrap; }
.al-title { font-size:13.5px; font-weight:650; color:var(--ink); overflow:hidden; text-overflow:ellipsis; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; line-height:1.5; }
.al-meta { display:flex; align-items:center; gap:6px; margin-top:8px; font-size:11.5px; color:var(--faint); }
.al-user { display:inline-flex; align-items:center; gap:4px; }
.al-meta a { color:#7c5cf0; text-decoration:none; margin-left:6px; }
.al-mid { display:flex; flex-direction:column; align-items:flex-end; gap:10px; flex:0 0 auto; }
.al-trend { display:flex; align-items:center; gap:6px; }
.al-pubs { text-align:right; }
.al-pub-icons { display:flex; align-items:center; gap:4px; margin-top:4px; justify-content:flex-end; }
.al-pub-ic { width:20px; height:20px; border-radius:5px; color:#fff; font-size:10px; font-weight:700; display:inline-flex; align-items:center; justify-content:center; }
.al-pub-add { width:20px; height:20px; border-radius:5px; border:1px dashed #c7cbd4; background:#fff; color:#98a2b3; cursor:pointer; font-size:12px; line-height:1; padding:0; }
.al-cited { text-align:center; flex:0 0 52px; }
.al-cited b { display:block; font-size:18px; font-weight:700; color:var(--ink); }
.al-cited span { font-size:10.5px; color:var(--faint); }
.al-side-card { background:#fff; border:1px solid var(--line); border-radius:10px; padding:14px 16px; }
.dm-row { display:flex; align-items:center; gap:8px; padding:9px 0; border-bottom:1px solid var(--line-soft); }
.dm-row:last-of-type { border-bottom:none; }
.ar2-side-foot { display:flex; justify-content:flex-end; align-items:center; gap:10px; padding-top:10px; font-size:11.5px; color:var(--faint); }
.ar2-side-foot a { color:#7c5cf0; text-decoration:none; cursor:pointer; }

/* ---------------- 大模型回答记录 v2（左列表+右详情，9.41） ---------------- */
.rec-topsearch { margin-left: auto; width: 220px; height: 30px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; font-size: 12px; background: #fff; }
.rec-topsearch:focus { outline: none; border-color: var(--accent-line); }
.rec-wrap { display: flex; gap: 14px; align-items: stretch; }
.rec-side { flex: 0 0 320px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 190px); }
.rec-side-head { font-size: 13px; font-weight: 650; color: var(--ink); }
.rec-search { width: 100%; height: 32px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; font-size: 12px; background: #f8f9fb; }
.rec-search:focus { outline: none; border-color: var(--accent-line); background: #fff; }
.rec-tabs { display: flex; gap: 4px; background: #f2f3f7; border-radius: 8px; padding: 3px; }
.rec-tab { flex: 1; height: 26px; border: 0; border-radius: 6px; background: transparent; color: #6b7280; font-size: 12px; cursor: pointer; }
.rec-tab.active { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08); }
.rec-list { overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding-right: 2px; }
.rec-item { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; transition: border-color 0.12s ease, background 0.12s ease; }
.rec-item:hover { border-color: var(--accent-line); }
.rec-item.active { border-color: var(--accent-line); background: #f5f6fe; }
.rec-item-title { font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rec-item-meta { display: flex; align-items: center; gap: 6px; margin-top: 7px; }
.rec-score { margin-left: auto; min-width: 26px; height: 18px; padding: 0 6px; border-radius: 9px; display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; }
.rec-score.green { background: #16a34a; }
.rec-score.orange { background: #f59e0b; }
.rec-score.red { background: #ef4444; }
.rec-main { flex: 1; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; overflow-y: auto; max-height: calc(100vh - 190px); }
.recd-head { display: flex; align-items: flex-start; gap: 10px; }
.recd-title { font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.45; }
.recd-actions { margin-left: auto; flex: 0 0 auto; }
.recd-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.recd-scorewrap { margin-left: auto; font-size: 11.5px; color: #98a2b3; }
.recd-scorewrap b { font-size: 14px; color: var(--ink); }
.recd-brands { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.recd-brand { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px 4px 5px; font-size: 12px; font-weight: 600; color: var(--ink); }
.recd-chat { margin-top: 14px; display: flex; flex-direction: column; gap: 14px; }
.rec-qrow { display: flex; justify-content: flex-end; }
.rec-qbubble { max-width: 75%; background: var(--accent, #4f5bd5); color: #fff; border-radius: 14px 14px 3px 14px; padding: 10px 14px; font-size: 13px; line-height: 1.6; }
.rec-arow { display: flex; gap: 10px; align-items: flex-start; }
.rec-abody { flex: 1; min-width: 0; background: #f8f9fb; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.rec-aname { font-size: 12px; font-weight: 650; color: #4b5568; margin-bottom: 8px; }
.rec-answer { font-size: 13px; color: #333; line-height: 1.75; }
.rec-answer p { margin: 0 0 6px; }
.rec-answer .rec-h { font-weight: 700; color: var(--ink); margin: 10px 0 4px; font-size: 13.5px; }
.rec-answer .rec-ul { margin: 4px 0 8px; padding-left: 20px; }
.rec-answer .rec-ul li { margin-bottom: 6px; }
.rec-answer .rec-ul li b { color: var(--ink); }
.rec-answer .rec-sp { height: 6px; }
.rec-code { background: #eef0f5; border-radius: 4px; padding: 1px 5px; font-size: 12px; }
.rec-citechip { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; padding: 4px 12px; font-size: 11.5px; color: #6b7280; }
.rec-cites { margin-top: 8px; }
.rec-cites summary { font-size: 12px; color: var(--accent, #4f5bd5); cursor: pointer; }
.rec-cite { display: flex; gap: 8px; font-size: 12px; padding: 5px 0; border-bottom: 1px dashed var(--line-soft, #eceef2); }
.rec-cite .mono { color: #6b7280; flex: 0 0 auto; }

/* ---------------- 品牌趋势 + 竞品对比（9.42） ---------------- */
.bt-legend { display:flex; align-items:center; gap:16px; padding:8px 4px 0; font-size:11.5px; color:var(--ink-2); flex-wrap:wrap; }
.bt-lgd { display:inline-flex; align-items:center; gap:5px; }
.bt-lgd i { width:8px; height:8px; border-radius:50%; display:inline-block; }
.cp-stats { display:flex; gap:28px; padding:4px 4px 12px; border-bottom:1px solid var(--line-soft); margin-bottom:10px; flex-wrap:wrap; }
.cp-stat { display:flex; flex-direction:column; gap:3px; font-size:11px; color:var(--faint); }
.cp-stat b { font-size:15px; font-weight:700; color:var(--ink); display:inline-flex; align-items:center; gap:4px; }
.cp-bars { display:flex; flex-direction:column; gap:10px; padding:2px 4px 6px; }
.cp-row { display:grid; grid-template-columns:56px 1fr 52px; gap:10px; align-items:center; font-size:12px; }
.cp-row .cp-nm { color:var(--ink-2); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cp-row.own .cp-nm { font-weight:650; color:var(--ink); }
.cp-track { height:14px; background:#f0f1f5; border-radius:4px; overflow:hidden; }
.cp-track i { display:block; height:100%; border-radius:4px; background:#c9cdd6; }
.cp-row.own .cp-track i { background:#7c5cf0; }
.cp-val { text-align:right; color:var(--ink-2); font-variant-numeric:tabular-nums; }
.cp-row.own .cp-val { color:#7c5cf0; font-weight:650; }

/* ➕ 关联文章链接弹窗（内容管理卡片） */
.alm-mask { position: fixed; inset: 0; background: rgba(15,18,25,.42); z-index: 95; display: grid; place-items: center; animation: dwFade .18s ease; }
.alm { width: 470px; max-width: calc(100vw - 40px); background: #fff; border-radius: 14px; box-shadow: 0 18px 48px rgba(15,23,42,.18); padding: 20px 22px 18px; }
.alm-head { display: flex; align-items: center; gap: 9px; font-size: 15px; }
.alm-ico { width: 25px; height: 25px; border-radius: 7px; background: #eef2ff; color: #4f6ef7; display: grid; place-items: center; font-size: 13px; flex: none; }
.alm-sub { font-size: 12px; color: #667085; line-height: 1.7; margin: 10px 0 14px; word-break: break-all; }
.alm-input { width: 100%; box-sizing: border-box; border: 1px solid #e5e9f2; border-radius: 9px; padding: 10px 12px; font-size: 13px; margin-bottom: 8px; outline: none; background: #fbfcfe; }
.alm-input:focus { border-color: #4f6ef7; background: #fff; }
.alm-add { background: none; border: none; color: #4f6ef7; font-size: 13px; cursor: pointer; padding: 2px 0 0; }
.alm-hint { font-size: 11px; color: #98a2b3; margin: 10px 0 16px; }
.alm-foot { display: flex; justify-content: flex-end; gap: 10px; }

/* 弹窗内已关联链接列表 */
.alm-exist { margin-bottom: 12px; }
.alm-ex-loading, .alm-ex-empty { font-size: 12px; color: #98a2b3; padding: 6px 0; }
.alm-ex-title { font-size: 12px; font-weight: 650; color: #344054; margin: 2px 0 6px; }
.alm-ex-item { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border: 1px solid #eef0f4; border-radius: 9px; margin-bottom: 6px; background: #fbfcfe; }
.alm-ex-item .al-pub-ic { width: 22px; height: 22px; font-size: 11px; flex: none; }
.alm-ex-main { flex: 1; min-width: 0; }
.alm-ex-url { font-size: 12px; color: #344054; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.alm-ex-url:hover { color: #4f6ef7; }
.alm-ex-meta { font-size: 11px; color: #98a2b3; margin-top: 1px; }
.alm-ex-del { flex: none; width: 22px; height: 22px; border: none; border-radius: 6px; background: transparent; color: #98a2b3; font-size: 12px; cursor: pointer; }
.alm-ex-del:hover { background: #fef2f2; color: #dc2626; }

/* ---- 文章追踪详情（内容管理整栏版式，对齐设计稿） ---- */
.atp-full { width: 100%; }
.atp-crumb { display: flex; align-items: center; gap: 10px; padding: 2px 0 10px; }
.atp-back { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: #475467; font-size: 14px; flex: none; }
.atp-back:hover { background: #f6f7fb; }
.atp-crumb-path { display: flex; align-items: center; gap: 8px; font-size: 13.5px; min-width: 0; }
.atp-crumb-path i { color: #c3c8d2; font-style: normal; }
.atp-crumb-path b { color: #1f2937; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 520px; }
.atp-crumb-actions { margin-left: auto; display: flex; gap: 8px; flex: none; }
.btn.sm { padding: 5px 10px; font-size: 12px; }

.atp-life-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; }
.atp-life-card { background: linear-gradient(180deg, #f5f7ff, #eef1fd); border: 1px solid #e4e8fa; border-radius: 12px; padding: 14px 18px; }
.atp-life-label { font-size: 12.5px; color: #4f6ef7; font-weight: 600; }
.atp-life-val { font-size: 26px; font-weight: 700; color: #1f2937; margin: 6px 0 4px; letter-spacing: -.5px; }
.atp-life-val span { font-size: 13px; font-weight: 600; color: #475467; margin-left: 2px; }
.atp-life-sub { font-size: 11.5px; color: #8b93a7; }

.atp-main-grid { display: grid; grid-template-columns: minmax(300px, .85fr) 1.35fr; gap: 14px; margin-top: 14px; }
.atp-sec-title { font-size: 13.5px; font-weight: 650; color: #1f2937; display: flex; align-items: center; gap: 5px; }
.atp-info { font-style: normal; color: #c3c8d2; font-size: 11px; cursor: help; }
.atp-big-num { font-size: 30px; font-weight: 700; color: #4f6ef7; margin: 8px 0 16px; letter-spacing: -1px; }
.atp-big-num em { font-size: 13px; font-style: normal; font-weight: 600; }
.atp-big-num em.up { color: #4f6ef7; }
.atp-big-num em.down { color: #16a34a; }
.atp-sub-title { font-size: 13px; font-weight: 650; color: #344054; padding: 12px 0 4px; border-top: 1px solid #f1f3f8; }
.atp-rank-row { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px dashed #f2f4f8; }
.atp-rank-row:last-child { border-bottom: none; }
.atp-rank-no { font-size: 12px; color: #98a2b3; width: 16px; flex: none; }
.atp-rank-nm { flex: 1; min-width: 0; font-size: 12.5px; color: #344054; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.atp-rank-cnt { font-size: 13px; color: #1f2937; }
.atp-rank-dash { width: 26px; height: 2px; background: #e4e7ee; border-radius: 2px; flex: none; }
.atp-trend-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.atp-days { display: flex; gap: 6px; }
.atp-days .atp-day { padding: 4px 10px; font-size: 11.5px; }
.atp-legend { display: flex; gap: 16px; margin: 10px 0 2px; font-size: 11.5px; color: #667085; flex-wrap: wrap; }
.atp-legend span { display: flex; align-items: center; gap: 5px; }
.atp-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

.atp-q-card { margin-top: 14px; }
.atp-q-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.atp-q-count { font-size: 11.5px; color: #98a2b3; }
.atp-q-table { border: 1px solid #eef0f4; border-radius: 10px; overflow: hidden; }
.atp-q-thead { display: grid; grid-template-columns: 1.1fr 1fr; background: #f8f9fc; font-size: 11.5px; color: #667085; font-weight: 600; padding: 8px 14px; }
.atp-qg { border-top: 1px solid #f2f4f8; }
.atp-q-thead + .atp-qg { border-top: none; }
.atp-qg-row { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; padding: 11px 14px; cursor: pointer; }
.atp-qg-row:hover { background: #fafbff; }
.atp-qg-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.atp-qg-name b { font-size: 13px; color: #1f2937; font-weight: 600; }
.atp-qg-meta { font-size: 11.5px; color: #98a2b3; }
.atp-caret { color: #98a2b3; font-size: 11px; transition: transform .15s; display: inline-block; }
.atp-caret.open { transform: rotate(90deg); }
.atp-qg-plats { display: flex; gap: 8px; flex-wrap: wrap; }
.atp-qg-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 3px; border-radius: 14px; background: #f4f6fb; font-size: 11.5px; color: #475467; }
.atp-qg-body { padding: 2px 14px 10px 34px; background: #fcfdff; }
.atp-q-item { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; border-top: 1px dashed #f0f2f7; }
.atp-q-item:first-child { border-top: none; }
.atp-q-main { flex: 1; min-width: 0; }
.atp-q-text { font-size: 12.5px; color: #1f2937; }
.atp-q-ex { font-size: 11.5px; color: #98a2b3; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.atp-q-side { display: flex; align-items: center; gap: 10px; flex: none; }
.atp-q-date { font-size: 11.5px; color: #98a2b3; }

/* 引用提问行「回答 →」链接 */
.atp-q-go { font-size: 12px; color: #4f6ef7; cursor: pointer; white-space: nowrap; text-decoration: none; }
.atp-q-go i { font-style: normal; }
.atp-q-go:hover { text-decoration: underline; }

/* 回答详情 · 代表性证据（原始页面截图） */
.rec-evid { margin-top: 14px; background: #f7f8fb; border: 1px solid #eef0f4; border-radius: 12px; padding: 14px 16px; }
.rec-evid-head { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 650; color: #344054; margin-bottom: 10px; }
.rec-evid-ico { font-size: 14px; }
.rec-evid-n { color: #98a2b3; font-weight: 500; }
.rec-evid-card { background: #fff; border: 1px solid #e9ecf2; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 4px rgba(16,24,40,.05); width: 300px; padding: 8px; box-sizing: border-box; }
.rec-evid-card img { display: block; width: 100%; border-radius: 6px; cursor: zoom-in; }

/* 记录页时间筛选 chip（日历面板触发） */
.rec-dp-chip .dp-caret { font-size: 9px; color: #98a2b3; margin-left: 2px; }

/* 文章追踪详情：追踪效果 tab 下的时间 + 数据来源筛选行 */
.atp-filters { display: flex; align-items: center; gap: 10px; margin: 2px 0 12px; flex-wrap: wrap; }
.atp-f-label { font-size: 12px; color: #98a2b3; }
.atp-filters .filter-chip { cursor: pointer; }
.atp-filters .dp-caret { font-size: 9px; color: #98a2b3; margin-left: 2px; }

/* 用户提问页「洞悉」列：跳洞察分析并预选该 query */
.insight-link { color: #2f6fed; font-size: 12px; font-weight: 600; cursor: pointer; text-decoration: none; }
.insight-link:hover { text-decoration: underline; }

/* 分组筛选面板：面板加宽 + 分组展开提问子列表 */
.ovf-panel { width: 780px; max-width: calc(100vw - 24px); }
.ovf-grow { display: flex; align-items: center; }
.ovf-grow .ovf-item { flex: 1; min-width: 0; }
.ovf-caret { flex: none; width: 20px; height: 20px; display: grid; place-items: center; color: #98a2b3; cursor: pointer; font-size: 11px; border-radius: 5px; transition: transform .15s; }
.ovf-caret:hover { background: #eef1f6; color: #4f6ef7; }
.ovf-caret.open { transform: rotate(90deg); color: #4f6ef7; }
.ovf-kids { padding: 2px 6px 6px 26px; }
.ovf-item.ovf-sub { padding: 6px 8px; font-size: 11.5px; }
.ovf-item.ovf-sub .ovf-nm { color: #475467; }
.ovf-item.ovf-sub.on { background: #eef2ff; }
.ovf-item.ovf-sub.on .ovf-nm { color: #4f6ef7; font-weight: 600; }
.ovf-dot { flex: none; width: 4px; height: 4px; border-radius: 50%; background: #c3c8d2; }
.ovf-item.ovf-sub.on .ovf-dot { background: #4f6ef7; }
.ovf-loading { padding: 8px 10px; color: #98a2b3; font-size: 11.5px; }
