:root {
  --bg: #f5f6f8; --panel: #ffffff; --panel-2: #f0f2f5; --line: #e3e6eb; --text: #1b1f24; --muted: #66707c;
  --accent: #2f6fde; --accent-soft: #e6eefc; --accent-text: #ffffff; --good: #1f8a5b; --good-soft: #e3f4ec;
  --warn: #b26a00; --warn-soft: #fbf0dc; --bad: #c4372f; --bad-soft: #fbe7e5;
  --chart-1: #2f6fde; --chart-2: #18a39a; --chart-3: #e08a2b; --chart-4: #8a5cd6; --chart-5: #d24f74; --chart-6: #6b7785;
  --radius: 10px; --shadow: 0 1px 2px rgba(20, 30, 50, .06), 0 4px 16px rgba(20, 30, 50, .05);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111418; --panel: #1a1e24; --panel-2: #22272e; --line: #2d333b; --text: #e6e9ee; --muted: #9aa4b0;
    --accent: #5b8ff0; --accent-soft: #1f2e4a; --good: #3fbf86; --good-soft: #17322a; --warn: #e3a64a; --warn-soft: #3a2c15;
    --bad: #ef6b62; --bad-soft: #3d1f1d; --chart-1: #5b8ff0; --chart-2: #2fc0b5; --chart-3: #f0a04b; --chart-4: #a882ec; --chart-5: #ec6f93; --chart-6: #8995a3;
    --shadow: none; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 14px/1.6 "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 600; }
h1 { font-size: 22px; } h2 { font-size: 17px; } h3 { font-size: 14px; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: Consolas, "Cascadia Mono", monospace; }
.hidden { display: none !important; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.stack { display: grid; gap: 16px; }
.stack-sm { display: grid; gap: 8px; }

/* 控件 */
button, .button { appearance: none; border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 8px; padding: 7px 14px; font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
button:hover, .button:hover { border-color: var(--accent); text-decoration: none; }
button.primary, .button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
button.danger { color: var(--bad); }
button.danger.solid { background: var(--bad); border-color: var(--bad); color: #fff; }
button.ghost { border-color: transparent; background: transparent; }
button:disabled { opacity: .55; cursor: default; }
input, select, textarea { font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; width: 100%; }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
textarea { min-height: 96px; resize: vertical; }
label.field { display: grid; gap: 5px; font-size: 13px; color: var(--muted); }
label.field > span { color: var(--text); }
label.check { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
label.check input { width: auto; margin-top: 4px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.error-text { color: var(--bad); min-height: 20px; font-size: 13px; }

/* 卡片与徽标 */
.card { min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card > h2, .card > .card-head { margin-bottom: 12px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; background: var(--panel-2); color: var(--muted); white-space: nowrap; }
.badge.good { background: var(--good-soft); color: var(--good); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.accent { background: var(--accent-soft); color: var(--accent); }
.notice { padding: 10px 14px; border-radius: 8px; background: var(--warn-soft); color: var(--warn); }
.notice.info { background: var(--accent-soft); color: var(--accent); }
.empty { padding: 28px; text-align: center; color: var(--muted); }

/* 表格 */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th, td { white-space: nowrap; }
.cell-text { white-space: normal; min-width: 160px; max-width: 520px; }
.page-head form { flex-wrap: nowrap; }
.page-head form input { width: 220px; }
th { font-weight: 500; color: var(--muted); font-size: 12px; white-space: nowrap; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: var(--panel-2); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* 顶栏 */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 24px; background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; color: var(--text); }
.brand img { width: 28px; height: 28px; }
.brand:hover { text-decoration: none; }

/* 登录页 */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(280px, 420px) minmax(320px, 480px); justify-content: center; align-content: center; gap: 0; padding: 32px 16px; }
.auth-side { background: linear-gradient(160deg, #2f6fde, #18a39a); color: #fff; border-radius: 14px 0 0 14px; padding: 36px 32px; display: grid; align-content: space-between; gap: 32px; }
.auth-side .brand { color: #fff; font-size: 20px; }
.auth-side ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.auth-side li strong { display: block; font-size: 15px; }
.auth-side li span { opacity: .85; font-size: 13px; }
.auth-main { background: var(--panel); border: 1px solid var(--line); border-left: 0; border-radius: 0 14px 14px 0; padding: 32px; display: grid; gap: 18px; align-content: start; }
.tabs { display: flex; gap: 4px; background: var(--panel-2); padding: 4px; border-radius: 9px; }
.tabs button { flex: 1; border: 0; background: transparent; justify-content: center; }
.tabs button.active { background: var(--panel); box-shadow: var(--shadow); font-weight: 600; }
.consent-box { border: 1px solid var(--line); border-radius: 8px; padding: 12px; display: grid; gap: 8px; background: var(--panel-2); }
.consent-box .muted { font-size: 12px; margin-left: 24px; margin-top: -6px; }
details summary { cursor: pointer; color: var(--muted); }

/* 用户中心与后台布局 */
.shell { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 57px); }
.nav { border-right: 1px solid var(--line); background: var(--panel); padding: 16px 10px; display: grid; align-content: start; gap: 2px; }
.nav button { border: 0; background: transparent; justify-content: flex-start; width: 100%; padding: 9px 12px; color: var(--muted); }
.nav button.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav button .count { margin-left: auto; }
.nav .group { font-size: 11px; color: var(--muted); padding: 14px 12px 4px; letter-spacing: .05em; }
.shell > * { min-width: 0; }
.content { padding: 24px; display: grid; gap: 16px; align-content: start; max-width: 1240px; width: 100%; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.segmented button { border: 0; border-radius: 0; padding: 5px 12px; }
.segmented button.active { background: var(--accent); color: var(--accent-text); }

/* 指标 */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.kpi .label { color: var(--muted); font-size: 12px; }
.kpi .value { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 2px; }
.kpi .hint { color: var(--muted); font-size: 12px; }
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 16px; }
.chart svg { width: 100%; height: auto; max-height: 260px; display: block; }
.chart .axis { fill: var(--muted); font-size: 11px; }
.retention td:first-child { white-space: nowrap; }
.chart .gridline { stroke: var(--line); }
.hbars { display: grid; gap: 8px; }
.hbar { display: grid; grid-template-columns: 110px 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.hbar .track { background: var(--panel-2); border-radius: 4px; height: 10px; overflow: hidden; }
.hbar .fill { height: 100%; background: var(--chart-1); border-radius: 4px; }
.hbar .num { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 70px; text-align: right; }
.funnel { display: grid; gap: 8px; }
.funnel-step { display: grid; grid-template-columns: 150px 1fr 120px; gap: 10px; align-items: center; }
.funnel-step .bar { height: 26px; background: var(--chart-2); border-radius: 5px; min-width: 2px; }
.retention td.cell { text-align: center; font-variant-numeric: tabular-nums; min-width: 52px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.list-item { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.list-item:last-child { border-bottom: 0; }
.big-code { font-family: Consolas, monospace; font-size: 13px; background: var(--panel-2); border-radius: 8px; padding: 10px; white-space: pre-wrap; word-break: break-all; }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 20; display: flex; justify-content: flex-end; }
.drawer { width: min(640px, 100%); height: 100%; background: var(--bg); overflow-y: auto; padding: 20px; display: grid; gap: 14px; align-content: start; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 9px 18px; border-radius: 8px; z-index: 30; box-shadow: var(--shadow); }
.toast.bad { background: var(--bad); color: #fff; }
.member-card { background: linear-gradient(135deg, var(--accent), var(--chart-2)); color: #fff; border: 0; }
.member-card .muted { color: rgba(255, 255, 255, .8); }
.member-card .value { font-size: 22px; font-weight: 600; }
.card .why { margin: -6px 0 12px; }
.privacy-list { display: grid; gap: 4px; margin: 0; padding-left: 18px; }

@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { border-radius: 14px 14px 0 0; padding: 24px; }
  .auth-main { border-left: 1px solid var(--line); border-top: 0; border-radius: 0 0 14px 14px; padding: 22px; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .topbar { flex-wrap: wrap; position: static; }
  .topbar .row { flex-wrap: wrap; gap: 6px; }
  .brand { white-space: nowrap; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi .value { font-size: 20px; }
  .page-head form input { width: 100%; }
  .cell-text { min-width: 120px; }
  .nav { border-right: 0; border-bottom: 1px solid var(--line); display: flex; overflow-x: auto; padding: 6px; }
  .nav button { width: auto; white-space: nowrap; }
  .nav .group { display: none; }
  .content { padding: 16px; }
  .topbar { padding: 10px 16px; }
  .grid-2 { grid-template-columns: 1fr; }
  .charts { grid-template-columns: minmax(0, 1fr); }
  .hbar { grid-template-columns: 80px 1fr auto; }
  .funnel-step { grid-template-columns: 90px 1fr 90px; }
}
.site-footer { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; padding: 18px 16px 24px; color: var(--muted); font-size: 12px; }
.site-footer a { color: var(--muted); }
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 6px; cursor: pointer; background: var(--panel); text-align: left; }
.plan.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.plan .price { font-size: 24px; font-weight: 600; }
.price-line { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.price-line .pay { font-size: 26px; font-weight: 600; color: var(--accent); }
.price-line del { color: var(--muted); }
.back-link { display: inline-flex; gap: 4px; align-items: center; }
.inline-input { width: auto; min-width: 70px; max-width: 110px; padding: 5px 6px; }
.row.nowrap { flex-wrap: nowrap; gap: 6px; }
.heatmap td { width: 22px; height: 18px; border: 1px solid var(--bg); padding: 0; }
.heatmap th { font-size: 11px; padding: 2px 4px; text-align: center; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.calc td, .calc th { text-align: right; }
.calc td:first-child, .calc th:first-child { text-align: left; }

/* 增长工具、插件市场与社区 */
.bad-text { color: var(--bad); }
.batch-bar { padding: 10px 14px; }
.nav a { padding: 9px 12px; color: var(--muted); border-radius: 8px; }
.segmented a.button { border: 0; border-radius: 0; padding: 5px 12px; }
.segmented .active { background: var(--accent); color: var(--accent-text); }
button.active { border-color: var(--accent); color: var(--accent); }
.item-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; flex: none; font-weight: 600; vertical-align: middle;
  background: hsl(var(--hue, 210) 70% 92%); color: hsl(var(--hue, 210) 60% 32%); }
@media (prefers-color-scheme: dark) { .item-icon { background: hsl(var(--hue, 210) 35% 24%); color: hsl(var(--hue, 210) 70% 82%); } }
.code-view { font-family: Consolas, "Cascadia Mono", monospace; font-size: 12px; background: var(--panel-2); border-radius: 8px; padding: 12px; overflow: auto; max-height: 420px; white-space: pre; margin: 0; }
details summary { cursor: pointer; color: var(--accent); padding: 4px 0; }
details[open] summary { margin-bottom: 8px; }
.page { max-width: 1080px; margin: 0 auto; padding: 24px 16px; }
.tabs a { padding: 6px 12px; border-radius: 8px; color: var(--muted); }
.tabs a.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.board-grid, .item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
a.card { color: inherit; display: grid; gap: 6px; align-content: start; }
a.card:hover { text-decoration: none; border-color: var(--accent); }
.post-link { color: inherit; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.post-link:hover { text-decoration: none; color: var(--accent); }
.post-body { line-height: 1.8; overflow-wrap: anywhere; }
.quote { border-left: 3px solid var(--line); padding-left: 8px; color: var(--muted); font-size: 13px; }
.item-ref { color: inherit; background: var(--panel-2); border-radius: 8px; padding: 6px 10px; width: fit-content; }
.stars { color: var(--warn); letter-spacing: 1px; }
.comment p { overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .topbar .tabs { order: 3; width: 100%; }
  .charts { grid-template-columns: minmax(0, 1fr); }
}
.stack > *, .stack-sm > * { min-width: 0; }
#market-search { flex-wrap: nowrap; } #market-search input { width: min(220px, 50vw); }
.pay-qr { background: #fff; padding: 8px; border-radius: 8px; width: fit-content; }
.good-text { color: var(--good); }

/* 要事：少字多图 */
.headline { font-size: 1rem; line-height: 1.6; margin: 0; }
/* “?” 说明：点一下或鼠标停留才显示 */
.help { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; vertical-align: middle; margin-left: 4px; flex: none; }
.help .tip { display: none; position: absolute; z-index: 20; left: 50%; top: 24px; transform: translateX(-50%); width: min(340px, 80vw); background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 24px rgba(0, 0, 0, .15); padding: 10px 12px; font-size: 13px; font-weight: 400; line-height: 1.6; text-align: left; white-space: normal; }
.help:hover .tip, .help:focus .tip, .help:focus-within .tip { display: block; }
.help .tip ul { margin: 4px 0; padding-left: 18px; }
/* 变化徽章与趋势小图 */
.delta { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); }
.delta.up-good { color: var(--good); } .delta.down-bad { color: var(--bad); }
.trend { width: 100%; height: 40px; display: block; }
.trend .line { fill: none; stroke: var(--chart-1); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.trend .normal { stroke: var(--muted); stroke-dasharray: 3 3; stroke-width: 1; vector-effect: non-scaling-stroke; }
.trend .recent { fill: var(--accent-soft); }
.trend .dot-bad { fill: var(--bad); } .trend .dot-good { fill: var(--good); }
/* 指标小卡 */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.tiles.core { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 12px; }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); cursor: pointer; text-align: left; color: var(--text); }
.tile .label { font-size: 12px; color: var(--muted); }
.tile .value { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tile.big .value { font-size: 24px; }
.tile.big .trend { height: 48px; }
.tile.bad { border-color: var(--bad); box-shadow: inset 3px 0 0 var(--bad); }
.tile.good { border-color: var(--good); box-shadow: inset 3px 0 0 var(--good); }
/* 问题卡 */
.issue { border-left: 4px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.issue.bad { border-left-color: var(--bad); } .issue.warn { border-left-color: var(--warn); }
.issue-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.issue-head strong { font-size: 15px; }
.issue-body { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.issue-body .trend { height: 56px; }
.change { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.change .from { font-size: 18px; color: var(--muted); font-variant-numeric: tabular-nums; }
.change .arrow { color: var(--muted); }
.change .to { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.change .to.bad { color: var(--bad); } .change .to.warn { color: var(--warn); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); flex: none; display: inline-block; }
.dot.bad { background: var(--bad); } .dot.warn { background: var(--warn); } .dot.good { background: var(--good); }
.pill { font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--panel-2); color: var(--muted); }
.pill.bad { background: var(--bad-soft); color: var(--bad); } .pill.warn { background: var(--warn-soft); color: var(--warn); } .pill.good { background: var(--good-soft); color: var(--good); }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--text); white-space: nowrap; cursor: default; }
button.chip, a.chip { cursor: pointer; text-decoration: none; }
.chip.good { border-color: var(--good); color: var(--good); } .chip.bad { border-color: var(--bad); color: var(--bad); } .chip.wait { border-color: var(--accent); color: var(--accent); }
.chips-row, .related { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 12px; }
.share { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); }
.share .track { height: 8px; background: var(--panel-2); border-radius: 4px; overflow: hidden; }
.share .fill { height: 100%; background: var(--bad); border-radius: 4px; }
.argue-toggle summary { cursor: pointer; display: flex; gap: 14px; font-size: 13px; font-weight: 600; list-style: none; }
.argue-toggle summary::-webkit-details-marker { display: none; }
.argue { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.argue > div { background: var(--panel-2); border-radius: 8px; padding: 6px 10px; }
.argue ul { margin: 0; padding-left: 16px; font-size: 13px; }
.action { margin: 0; font-size: 14px; }
.decide button, .decide .button { padding: 4px 12px; }
.all-clear { color: var(--good); font-weight: 600; text-align: center; padding: 18px; }
.check-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 14px; }
.check-row:first-of-type { border-top: 0; }
/* 问数据 */
.chat { max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.chat:empty { display: none; }
.chat .msg { padding: 8px 12px; border-radius: 10px; max-width: 85%; line-height: 1.6; }
.chat .msg.user { align-self: flex-end; background: var(--accent-soft); }
.chat .msg.assistant { align-self: flex-start; background: var(--panel-2); }
.ask { display: flex; flex-direction: column; gap: 8px; }
/* 机制说明：流程图 */
.flow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.flow-step { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); min-width: 96px; }
.flow-icon { font-size: 24px; }
.flow-arrow { color: var(--muted); font-size: 18px; }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vs ul { margin: 0; padding-left: 18px; line-height: 1.9; }
.good-border { border-color: var(--good); }
.briefing { white-space: pre-wrap; max-height: 560px; overflow: auto; background: var(--panel-2); border-radius: 8px; padding: 12px; font-size: .85rem; line-height: 1.6; }
@media (max-width: 720px) { .argue, .vs, .issue-body { grid-template-columns: 1fr; } .flow-arrow { display: none; } }
.help .tip p { margin: 0 0 6px; }
.help .tip p:last-child { margin-bottom: 0; }
details.fold > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; list-style: none; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary h2 { margin: 0; }
details.fold[open] > summary .muted { display: none; }
details.fold[open] > summary { margin-bottom: 10px; }

/* 推广中心 */
.tier-card .big-pct { font-size: 26px; color: var(--accent); margin-left: 6px; }
.tier-card h2 { margin: 0; display: flex; align-items: center; gap: 4px; }
.tier-track { position: relative; display: flex; gap: 3px; margin: 14px 0 6px; }
.tier-seg { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 4px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); min-width: 0; }
.tier-seg span { font-weight: 700; font-size: 14px; }
.tier-seg small { font-size: 11px; color: var(--muted); white-space: nowrap; }
.tier-seg.done { opacity: .45; }
.tier-seg.here { background: var(--accent); color: #fff; }
.tier-seg.here small { color: inherit; opacity: .85; }
.tier-seg.after { background: var(--panel-2); color: var(--muted); }
.tier-marker { position: absolute; top: -8px; width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 8px solid var(--bad); transform: translateX(-7px); }
.vbars { display: flex; align-items: flex-end; gap: 8px; height: 150px; padding-top: 18px; }
.vbars.thin { gap: 2px; height: 90px; }
.vbar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; min-width: 0; }
.vbar i { display: block; width: 100%; max-width: 38px; background: var(--chart-1); border-radius: 4px 4px 0 0; opacity: .55; }
.vbar.now i { opacity: 1; }
.vbars.thin .vbar i { max-width: none; opacity: .85; }
.vbar b { font-size: 12px; font-variant-numeric: tabular-nums; }
.vbar span { font-size: 12px; color: var(--muted); }
.code-card { display: flex; flex-direction: column; gap: 10px; }
.code-card.off { opacity: .6; }
.code-big { font-size: 22px; font-weight: 700; letter-spacing: 1px; }
.funnel { display: grid; gap: 6px; }
.funnel .step { display: grid; grid-template-columns: 64px 1fr 40px 40px; gap: 8px; align-items: center; }
.funnel .track { height: 12px; background: var(--panel-2); border-radius: 6px; overflow: hidden; }
.funnel .fill { height: 100%; background: var(--chart-2); border-radius: 6px; }
.funnel b { text-align: right; font-variant-numeric: tabular-nums; }
.code-stats { gap: 16px; flex-wrap: wrap; color: var(--muted); }
.code-stats b { color: var(--text); }

/* 手机版：底部常用入口 + “更多”弹出完整菜单；数字卡两列；说明“?”在屏幕下方弹出 */
.mobile-tabs { display: none; }
@media (max-width: 860px) {
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .mobile-tabs { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--panel); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .mobile-tabs button { flex: 1; flex-direction: column; gap: 2px; border: 0; border-radius: 0; background: transparent; color: var(--muted); font-size: 11px; padding: 7px 0 8px; position: relative; justify-content: center; min-width: 0; }
  .mobile-tabs button span:last-of-type { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-tabs .ico { font-size: 19px; line-height: 1.1; }
  .mobile-tabs button.active { color: var(--accent); font-weight: 600; }
  .mobile-tabs .dot-badge { position: absolute; top: 6px; left: calc(50% + 9px); width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
  .nav { display: none !important; }
  body.nav-open .nav { display: grid !important; position: fixed; left: 0; right: 0; bottom: calc(58px + env(safe-area-inset-bottom)); max-height: 72vh; overflow-y: auto; z-index: 44; background: var(--panel);
    border-top: 1px solid var(--line); border-radius: 16px 16px 0 0; box-shadow: 0 -8px 30px rgba(0, 0, 0, .18); padding: 12px; grid-template-columns: 1fr 1fr; gap: 2px; align-content: start; }
  body.nav-open .nav .group { display: block; grid-column: 1 / -1; padding: 10px 8px 2px; }
  body.nav-open .nav button { padding: 10px; }
  body.nav-open::after { content: ''; position: fixed; inset: 0; background: rgba(0, 0, 0, .3); z-index: 43; }
  .topbar { position: sticky; top: 0; padding: 8px 14px; }
  .brand { font-size: 15px; }
  .brand img { width: 24px; height: 24px; }
  .content { padding: 12px; gap: 12px; }
  h1 { font-size: 19px; }
  .card { padding: 14px; }
  .tiles, .tiles.core { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tile { padding: 10px; }
  .tile .value { font-size: 16px; }
  .tile.big .value { font-size: 20px; }
  .tile.big .trend { height: 36px; }
  .issue-body { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .change .from { font-size: 15px; }
  .change .to { font-size: 24px; }
  .decide { gap: 6px; }
  .decide button, .decide .button { padding: 7px 10px; }
  .help .tip { position: fixed; left: 12px; right: 12px; top: auto; bottom: calc(76px + env(safe-area-inset-bottom)); transform: none; width: auto; max-height: 50vh; overflow-y: auto; z-index: 50; }
  .page-head .row { gap: 6px; }
  .vbars { height: 120px; gap: 4px; }
  .tier-seg { padding: 6px 2px; }
  .tier-seg span { font-size: 13px; }
  .tier-seg small { font-size: 10px; }
  .tier-card .big-pct { font-size: 22px; }
  .funnel .step { grid-template-columns: 56px minmax(0, 1fr) 30px 36px; gap: 6px; }
  .code-big { font-size: 19px; }
  .flow { flex-direction: column; align-items: stretch; }
  .flow-step { flex-direction: row; justify-content: flex-start; }
  .vs { grid-template-columns: 1fr; }
  th, td { padding: 8px; }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .kpis { gap: 8px; }
  .kpi { padding: 10px 12px; }
}

@media (max-width: 860px) {
  .topbar { flex-wrap: nowrap; }
  .topbar:has(#range:not(.hidden)) { flex-wrap: wrap; }
  .topbar #who { display: none; }
  .topbar .row { flex-wrap: nowrap; gap: 4px; }
  .topbar .button, .topbar button { padding: 5px 8px; font-size: 13px; }
  .topbar .segmented button { padding: 4px 8px; }
}
@media (max-width: 860px) { .segmented { max-width: 100%; overflow-x: auto; scrollbar-width: none; } .segmented button { flex: none; white-space: nowrap; } }
