:root {
  --bg: #f5f6fa;
  --bg-soft: #ffffff;
  --line: #e6e8ef;
  --line-strong: #d6dae5;
  --text: #1b1f2a;
  --text-2: #5a6173;
  --text-3: #8b93a6;
  --brand: #4f46e5;
  --brand-soft: #eef0ff;
  --rise: #e8453c;
  --rise-soft: #fdeceb;
  --ok: #12a15c;
  --ok-soft: #e8f8ef;
  --warn: #d98218;
  --warn-soft: #fdf3e3;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 25, 45, .04), 0 6px 20px rgba(20, 25, 45, .06);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 顶栏 ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px 14px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; }
.logo {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #eef0ff, #e2f2ff);
  border-radius: 12px;
  font-size: 21px;
}
.topbar h1 { font-size: 17px; margin: 0; font-weight: 650; letter-spacing: .2px; }
.sub { margin: 2px 0 0; font-size: 12px; color: var(--text-3); }
.topbar-right { display: flex; align-items: center; gap: 10px; }

.pill {
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.pill-idle { background: #f0f1f6; color: var(--text-3); border-color: var(--line); }
.pill-ok { background: var(--ok-soft); color: var(--ok); border-color: #bfe9d2; }
.pill-bad { background: var(--rise-soft); color: var(--rise); border-color: #f6cbc8; }
.pill-warn { background: var(--warn-soft); color: var(--warn); border-color: #f2ddb7; }

/* ---------- 按钮 / 输入 ---------- */
.btn {
  font: inherit;
  font-size: 13px;
  padding: 8px 15px;
  border-radius: 9px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 2px 8px rgba(79, 70, 229, .22); }
.btn-primary:hover { background: #4338ca; }
.btn-ghost { background: #fff; color: var(--text-2); border-color: var(--line-strong); }
.btn-ghost:hover { background: #f7f8fc; color: var(--text); }
.btn:disabled { opacity: .55; cursor: default; }

.input {
  font: inherit;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--text);
  outline: none;
  min-width: 0;
}
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79, 70, 229, .1); }
.input-sm { max-width: 170px; }
.input-grow { flex: 1 1 260px; }

/* ---------- Tabs ---------- */
.tabs {
  display: flex;
  gap: 4px;
  padding: 0 28px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.tab {
  font: inherit;
  font-size: 13.5px;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--text-2);
  padding: 11px 14px;
  cursor: pointer;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }

main { padding: 20px 28px 40px; max-width: 1400px; margin: 0 auto; }
.panel { display: none; }
.panel.active { display: block; animation: fade .18s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- 卡片 ---------- */
.card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  margin-bottom: 16px;
}
.card-title { font-size: 14.5px; margin: 0 0 6px; font-weight: 650; }
.row { display: flex; align-items: center; gap: 10px; }
.row-wrap { flex-wrap: wrap; }
.row-label { font-size: 12.5px; color: var(--text-3); width: 62px; flex: none; }
.toolbar { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.toolbar .input[type="search"] { flex: 1 1 240px; }

.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
  font: inherit;
  font-size: 12.5px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--text-2);
  cursor: pointer;
  transition: .12s;
}
.chip:hover { border-color: #b9bdd0; color: var(--text); }
.chip.on {
  background: var(--brand-soft);
  border-color: #c3c6f7;
  color: var(--brand);
  font-weight: 600;
}
.chip-mini { font-size: 12px; padding: 3px 9px; border-radius: 8px; }

.meta-line { font-size: 12.5px; color: var(--text-3); margin: 2px 2px 12px; display: flex; gap: 14px; flex-wrap: wrap; }
.meta-line b { color: var(--text-2); font-weight: 600; }

/* ---------- 结果栅格 ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 14px;
}
.tcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 15px 12px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 9px;
  transition: .16s;
}
.tcard:hover { border-color: #c8ccdb; transform: translateY(-1px); }
.tcard-top { display: flex; align-items: flex-start; gap: 9px; }
.rank {
  flex: none;
  min-width: 22px; height: 22px;
  border-radius: 7px;
  background: #f1f2f7;
  color: var(--text-3);
  font-size: 11.5px;
  font-weight: 700;
  display: grid; place-items: center;
  margin-top: 2px;
}
.tcard-title {
  font-size: 14.5px;
  font-weight: 650;
  line-height: 1.45;
  word-break: break-word;
  flex: 1;
}
.tcard-title a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.tcard-title a:hover { color: var(--brand); border-bottom-color: #cfd2f8; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #f2f3f8;
  color: var(--text-2);
  white-space: nowrap;
}
.badge-traffic { background: var(--rise-soft); color: var(--rise); font-weight: 650; }
.badge-geo { background: var(--brand-soft); color: var(--brand); }
.badge-demo { background: var(--warn-soft); color: var(--warn); }
.badge-cat { background: #eef7f1; color: #2f7a52; }
.badge-persist { background: #f0ecff; color: #5b46c9; font-weight: 600; }

.src-banner {
  border-radius: 12px;
  padding: 12px 15px;
  font-size: 12.8px;
  line-height: 1.7;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  background: #f7f8fc;
  color: var(--text-2);
}
.src-banner.warn { background: var(--warn-soft); border-color: #f2ddb7; color: #8a5a12; }
.src-banner.info { background: #eef2fb; border-color: #d8e0f2; color: #3b4d74; }
.src-banner b { display: inline-block; margin-bottom: 2px; }
.rel { display: flex; gap: 6px; flex-wrap: wrap; }
.rel-tag {
  font-size: 11.5px;
  color: var(--text-2);
  background: #f7f8fc;
  border: 1px solid var(--line);
  padding: 1px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}
.rel-tag .en-small { font-size: 10.5px; color: var(--text-3); }
.rel-tag .zh-slot:empty { display: none; }
.rel-tag .zh-slot { color: var(--text); font-weight: 500; }

/* ---------- 翻译 ---------- */
.toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-2);
  border: 1px solid var(--line-strong);
  background: #fff;
  padding: 7px 12px;
  border-radius: 9px;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.toggle:hover { border-color: #b9bdd0; }
.toggle input { accent-color: var(--brand); cursor: pointer; }
.toggle.on { background: var(--brand-soft); border-color: #c3c6f7; color: var(--brand); font-weight: 600; }

.zh-line {
  font-size: 12.5px;
  line-height: 1.6;
  color: #3f4a63;
  margin-top: 3px;
}
.tcard-title .zh-line { font-size: 13px; color: var(--brand); font-weight: 500; }
.zh-line:empty { display: none; }
.zh-line .zh-slot:empty::after {
  content: "译文中…";
  color: var(--text-3);
  font-size: 11.5px;
  font-weight: 400;
}
.zh-none .zh-slot:empty::after { content: none; }
.en-line { font-size: 12.5px; color: var(--text-2); }
.zh-on .en-line { font-size: 11.5px; color: var(--text-3); }
.news { font-size: 12.5px; color: var(--text-2); border-left: 2px solid var(--line); padding-left: 9px; }
.news a { color: var(--text-2); text-decoration: none; }
.news a:hover { color: var(--brand); }
.news .src { color: var(--text-3); font-size: 11.5px; }

.empty { text-align: center; color: var(--text-3); padding: 48px 12px; font-size: 13px; }
.err-box {
  background: var(--rise-soft);
  border: 1px solid #f6cbc8;
  color: #a3302a;
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 13px;
  margin-bottom: 14px;
  white-space: pre-wrap;
  line-height: 1.7;
}
.hint { font-size: 12.5px; color: var(--text-3); margin: 8px 0 0; }
.hint-list { font-size: 12.5px; color: var(--text-2); margin: 8px 0 14px; padding-left: 20px; }
.hint-list li { margin: 5px 0; }
code {
  background: #f3f4f9;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #444b60;
}

/* ---------- 关键词分析 ---------- */
.kw-result { display: flex; flex-direction: column; gap: 16px; }
.kw-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.kw-head h2 { font-size: 16px; margin: 0; font-weight: 650; }
.kw-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .kw-cols { grid-template-columns: 1fr; } }

table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-3);
  padding: 7px 8px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.tbl td { padding: 8px; border-bottom: 1px solid #f1f2f7; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gain { color: var(--rise); font-weight: 650; }
.q-link { color: var(--text); text-decoration: none; }
.q-link:hover { color: var(--brand); text-decoration: underline; }
.bar { height: 4px; border-radius: 3px; background: #f1f2f7; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--brand); border-radius: 3px; }
.bar.rise > i { background: var(--rise); }

.chart-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 8px 4px; }
svg.chart { width: 100%; height: 170px; display: block; }
.chart-cap { font-size: 11.5px; color: var(--text-3); padding: 2px 10px 8px; }

.test-out, .detect-out { font-size: 12.5px; margin-top: 10px; color: var(--text-2); }
.test-out .ok { color: var(--ok); font-weight: 600; }
.test-out .bad { color: var(--rise); font-weight: 600; }
.detect-out .det {
  display: inline-block;
  margin: 4px 6px 0 0;
  padding: 3px 9px;
  border-radius: 7px;
  background: #f5f6fa;
  border: 1px solid var(--line);
  font-size: 12px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.detect-out .det.ok { background: var(--ok-soft); border-color: #bfe9d2; color: var(--ok); }

/* ---------- 其它 ---------- */
.footer {
  padding: 14px 28px 26px;
  text-align: center;
  font-size: 11.5px;
  color: var(--text-3);
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 20px);
  background: #1f2330;
  color: #fff;
  font-size: 13px;
  padding: 9px 18px;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  transition: .22s ease;
  z-index: 99;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.loading {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-3); font-size: 13px; padding: 26px 4px;
}
.spinner {
  width: 15px; height: 15px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton { color: var(--text-3); font-size: 12.5px; }

/* ================= 机会雷达 ================= */

.hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 4px 2px 16px;
}
.hero-main { max-width: 660px; }
.hero-main h2 {
  margin: 0 0 6px;
  font-size: 19px;
  letter-spacing: -.2px;
}
.hero-main p { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.7; }
.hero-main b { color: var(--text); font-weight: 600; }

.hero-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.hstat {
  min-width: 92px;
  padding: 10px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hstat b { font-size: 19px; font-weight: 680; letter-spacing: -.4px; }
.hstat span { font-size: 11.5px; color: var(--text-3); }
.a-good { color: var(--ok); }

.card-tight { padding: 12px 14px; }

.notice {
  margin-bottom: 14px;
  padding: 11px 15px;
  background: var(--warn-soft);
  border: 1px solid #f2ddb7;
  border-radius: 12px;
  font-size: 12.8px;
  color: #8a5a12;
}
.notice b { color: #7a4d08; }

.hint-inline { font-size: 12px; color: var(--text-3); }

.opp-list { display: flex; flex-direction: column; gap: 10px; }

.opp {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto 132px;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.opp:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }

.opp-rank {
  font-size: 12px;
  font-weight: 650;
  color: var(--text-3);
  padding-top: 2px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.opp-body { min-width: 0; }
.opp-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.opp-kw {
  font-size: 15px;
  font-weight: 640;
  letter-spacing: -.1px;
  word-break: break-word;
}
.opp-type {
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 6px;
  white-space: nowrap;
  background: #f1f2f7;
  color: var(--text-2);
}
.t-rising { background: var(--ok-soft); color: var(--ok); }
.t-seed { background: #eaf3ff; color: #2563c9; }
.t-scale { background: var(--brand-soft); color: var(--brand); }
.t-red { background: var(--rise-soft); color: var(--rise); }
.t-fading { background: #f3f4f8; color: var(--text-3); }
.t-tiny { background: #f7f7fa; color: var(--text-3); }
.t-brand { background: #f0eefb; color: #7a5fd0; }

.opp-exploding {
  font-size: 10.5px;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--rise-soft);
  color: var(--rise);
  white-space: nowrap;
}
.opp-src {
  font-size: 11px;
  color: var(--text-3);
  text-decoration: none;
  border-bottom: 1px dashed var(--line-strong);
}
.opp-src:hover { color: var(--brand); border-color: var(--brand); }

.opp-zh {
  font-size: 12.5px;
  color: var(--brand);
  margin-top: 2px;
  font-weight: 500;
}
.opp-zh.zh-none { display: none; }

.opp-desc {
  margin: 5px 0 0;
  font-size: 12.2px;
  color: var(--text-2);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.opp-desc-zh {
  font-size: 12.2px;
  color: #3f4a5f;
  line-height: 1.55;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.opp-desc-zh.zh-none { display: none; }

.opp-cats { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 7px; }
.cat-tag {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 5px;
  background: #f5f6fa;
  border: 1px solid var(--line);
  color: var(--text-2);
}

.opp-advice {
  margin-top: 7px;
  font-size: 12px;
  color: #2f6b4f;
  background: #f0f9f4;
  border-left: 2px solid #8fd3b0;
  padding: 3px 9px;
  border-radius: 0 6px 6px 0;
}

.opp-nums {
  display: flex;
  gap: 18px;
  padding-top: 3px;
  text-align: right;
}
.opp-nums .num { display: flex; flex-direction: column; align-items: flex-end; gap: 0; }
.opp-nums b {
  font-size: 14px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.2px;
}
.opp-nums span { font-size: 10.5px; color: var(--text-3); white-space: nowrap; }

.up { color: var(--rise); }
.up-strong { color: #c62828; }
.down { color: var(--ok); }
.flat { color: var(--text-2); }

.opp-right { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.opp-score {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-bottom: 2px;
}
.opp-score b {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.8px;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.opp-score span { font-size: 10px; color: var(--text-3); }

.spark { width: 120px; height: 34px; display: block; }
.spark-area { fill: #f0f1f6; }
.spark-area.up { fill: #fdeceb; }
.spark-line {
  fill: none;
  stroke: #b9becd;
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
}
.spark-line.up { stroke: var(--rise); }
.spark-none { color: var(--text-3); font-size: 12px; }
.opp-spark-cap { font-size: 10px; color: var(--text-3); }

/* ---- 数字机会 ---- */
.form-badge,
.kind-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid transparent;
}
.form-badge.f-saas { background: #eef2fe; color: #3a56c4; border-color: #dbe3fb; }
.form-badge.f-app { background: #fdeff6; color: #b03a78; border-color: #f8dcea; }
.form-badge.f-tool { background: #eef7f3; color: #2f7a58; border-color: #d9ece3; }
.form-badge.f-content { background: #fff5e8; color: #a1660f; border-color: #f8e5c9; }

.kind-badge.k-need { background: #eaf6ee; color: #1f7a45; border-color: #d3ecdb; }
.kind-badge.k-comp { background: #f2f3f7; color: #666e80; border-color: #e4e6ee; }

.dig-score b { color: #3a56c4; }

.dig-note {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-2);
  background: #f7f8fc;
  border: 1px solid var(--line);
  border-left: 3px solid #c3c9dd;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 8px 0 14px;
}
.dig-note b { color: var(--text); }

.dig-hint { margin-bottom: 2px; }

.more-wrap { display: flex; justify-content: center; padding: 18px 0 6px; }
.more-end { font-size: 12px; color: var(--text-3); text-align: center; padding: 16px 0; }

.meta-line .sep { color: var(--line-strong); font-style: normal; }
.meta-line .dim { color: var(--text-3); }
.meta-line .live { color: var(--ok); }

.err-slot:empty { display: none; }

/* ---- 赛道地图 ---- */
.track-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.track {
  padding: 13px 15px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 13px;
}
.track-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.track-head b { font-size: 14px; font-weight: 640; }
.track-count { font-size: 11.5px; color: var(--text-3); }
.track-bar { height: 6px; background: #f0f1f6; border-radius: 3px; overflow: hidden; }
.track-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #a5b4fc, #6366f1);
  border-radius: 3px;
}
.track-nums {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--text-3);
}
.track-nums b { color: var(--text); font-weight: 620; }

/* ---- 方法说明 ---- */
.method {
  margin-top: 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 2px 16px;
}
.method summary {
  cursor: pointer;
  padding: 12px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}
.method-body { padding: 0 0 14px; font-size: 12.5px; color: var(--text-2); line-height: 1.75; }
.method-body code {
  background: #f3f4f9;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 12px;
  color: var(--brand);
}
.method-body ul { margin: 8px 0; padding-left: 20px; }
.method-body li { margin: 4px 0; }
.method-warn {
  margin: 10px 0 0;
  padding: 9px 12px;
  background: var(--warn-soft);
  border-radius: 8px;
  color: #8a5a12;
  font-size: 12.2px;
}

@media (max-width: 900px) {
  .opp { grid-template-columns: 28px minmax(0, 1fr); }
  .opp-nums { grid-column: 2; justify-content: flex-start; text-align: left; padding-top: 8px; }
  .opp-nums .num { align-items: flex-start; }
  .opp-right { grid-column: 2; flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; }
}

@media (max-width: 640px) {
  .topbar, .tabs, main, .footer { padding-left: 14px; padding-right: 14px; }
  .grid { grid-template-columns: 1fr; }
  .row-label { width: 100%; }
  .hero-stats { width: 100%; }
  .hstat { flex: 1; min-width: 0; }
  .opp-nums { gap: 14px; flex-wrap: wrap; }
}

/* ---------- 身份视角 ---------- */
.roles {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0 0;
}
.role {
  border: 1px solid var(--line-strong);
  background: var(--bg-soft);
  color: var(--text-2);
  font-size: 13px;
  font-family: inherit;
  padding: 8px 15px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s;
}
.role:hover { border-color: var(--brand); color: var(--brand); }
.role.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}
.role-tip {
  margin: 10px 0 0;
  padding: 10px 14px;
  background: var(--brand-soft);
  border-left: 3px solid var(--brand);
  border-radius: 8px;
  font-size: 12.5px;
  color: #3b3f63;
  line-height: 1.65;
}

/* ---------- 快速筛选 ---------- */
.quickfilters { margin-top: 8px; gap: 6px; align-items: center; }
.qf-label { font-size: 12px; color: var(--text-3); margin-right: 2px; }
.qchip {
  border: 1px dashed var(--line-strong);
  background: transparent;
  color: var(--text-2);
  font-size: 12px;
  font-family: inherit;
  padding: 4px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s;
}
.qchip:hover { border-color: var(--brand); color: var(--brand); }
.qchip.on {
  background: var(--brand);
  border-color: var(--brand);
  border-style: solid;
  color: #fff;
}

/* ---------- 卡片元信息标签 ---------- */
.mchip {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 5px;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: help;
}
.mchip.stag { background: #eef2ff; color: #4338ca; border-color: #dfe4ff; }
.mchip.stag.s-declining, .mchip.stag.s-cooling { background: #f0f1f5; color: #6b7280; border-color: #e3e5ec; }
.mchip.stag.s-emerging { background: #fff4e8; color: #b45309; border-color: #ffe6c7; }
.mchip.stag.s-growing { background: #e8f8ef; color: #0d7a48; border-color: #cdeedc; }

.mchip.bst { background: #f4f0ff; color: #6d28d9; border-color: #e8e0ff; }
.mchip.bst.b-flash { background: #fdf0ef; color: #b42318; border-color: #fadcda; }
.mchip.bst.b-young { background: #fff7e6; color: #b45309; border-color: #ffe8c2; }
.mchip.bst.b-solid { background: #eef7ee; color: #2f6b21; border-color: #d8ecd6; }
.mchip.bst.b-structural { background: #e7f6f0; color: #0b6b4b; border-color: #c8e9dc; }

.mchip.win { background: #f6f7fa; color: var(--text-2); border-color: var(--line); }
.mchip.win.w-fresh { background: #e8f8ef; color: #0d7a48; border-color: #cdeedc; }
.mchip.win.w-open { background: #eef7ff; color: #0b63a8; border-color: #d5e9fb; }
.mchip.win.w-crowded { background: #f4f4f6; color: #8b93a6; border-color: #e6e8ef; }

.mchip.plat { background: #fff0f6; color: #a3216b; border-color: #fbd9e8; }
.mchip.evg { background: #f0f7e8; color: #4a6b12; border-color: #dcecc4; }

/* ---------- 季节条 ---------- */
.season {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
}
.season-lbl { font-size: 11px; color: var(--text-3); flex: none; }
.season-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 20px;
  flex: none;
}
.season-bars .sb {
  width: 6px;
  background: #dfe3ee;
  border-radius: 1px 1px 0 0;
  display: block;
}
.season.strong .season-bars .sb { background: #c7d2fe; }
.season-bars .sb.pk { background: var(--brand); }
.season.strong .season-bars .sb.pk { background: #d94f45; }
.season-note { font-size: 11px; color: var(--text-3); white-space: nowrap; }
.season.strong .season-note { color: #b42318; }

.opp-plat-advice {
  margin-top: 7px;
  font-size: 12px;
  color: #7a4a6b;
  background: #fdf6fa;
  border-radius: 7px;
  padding: 6px 10px;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .role { padding: 7px 12px; font-size: 12.5px; }
  .season-bars .sb { width: 5px; }
  .season-note { white-space: normal; }
}

/* ================= 信息架构：载体选择 ================= */

.step-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 22px 0 10px;
  font-size: 13.5px;
  color: var(--text-2);
}
.step-label b {
  width: 20px; height: 20px;
  display: grid; place-items: center;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  font-size: 11.5px;
  font-weight: 700;
  flex: none;
}

.carrier-pick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.carrier {
  display: grid;
  grid-template-areas:
    "ico name"
    "ico num"
    "desc desc";
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0 12px;
  text-align: left;
  padding: 15px 17px;
  background: var(--bg-soft);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: all .16s;
}
.carrier:hover { border-color: var(--brand); transform: translateY(-1px); box-shadow: var(--shadow); }
.carrier.active {
  border-color: var(--brand);
  background: linear-gradient(180deg, #f7f8ff, #fff);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.c-ico {
  grid-area: ico;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--bg);
  border-radius: 11px;
  font-size: 19px;
}
.carrier.active .c-ico { background: var(--brand-soft); }
.c-name { grid-area: name; font-size: 13.5px; font-weight: 640; color: var(--text); line-height: 1.3; }
.c-num {
  grid-area: num;
  font-size: 21px;
  font-weight: 700;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.5px;
  line-height: 1.25;
}
.c-desc { grid-area: desc; margin-top: 8px; font-size: 11.5px; color: var(--text-3); }

.carrier-hint { margin-top: 10px; }
.chint {
  padding: 11px 15px;
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-2);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
}
.chint code {
  background: var(--bg);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 11.5px;
}
.ch-web { border-left-color: var(--brand); }
.ch-goods { border-left-color: #c2410c; background: #fffaf7; }

/* 列表 / 赛道切换 */
.lib-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 0 8px;
  flex-wrap: wrap;
}
.lib-bar .meta-line { margin: 0; }
.view-switch {
  display: flex;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 2px;
  gap: 2px;
  flex: none;
}
.vs {
  border: 0;
  background: transparent;
  color: var(--text-2);
  font-size: 12px;
  font-family: inherit;
  padding: 5px 13px;
  border-radius: 7px;
  cursor: pointer;
  transition: all .15s;
}
.vs:hover { color: var(--brand); }
.vs.active { background: var(--brand); color: #fff; font-weight: 600; }

.track-bar { margin-bottom: 10px; }

/* 顶部 tab 上的数量徽章 */
.tab { position: relative; }
.tab-badge {
  display: inline-grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  margin-left: 5px;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  vertical-align: 1px;
}
.tab.active .tab-badge { background: rgba(255, 255, 255, .28); }
.tab-badge[hidden] { display: none; }

/* hidden 属性被组件的 display 覆盖是反复出现的坑（tab 徽章、列表/赛道切换都中过招），全局兜底 */
[hidden] { display: none !important; }

/* 收藏按钮 */
.fav {
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text-3);
  width: 26px; height: 26px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  display: grid;
  place-items: center;
  transition: all .14s;
  margin-left: auto;
  flex: none;
}
.fav:hover { border-color: #e0a800; color: #e0a800; }
.fav.on { background: #fff8e1; border-color: #f0c33c; color: #d99b00; }

/* 卡片上的载体标签 */
.carrier-tag {
  font-size: 10.5px;
  padding: 1px 7px;
  border-radius: 5px;
  font-weight: 600;
  white-space: nowrap;
}
.ct-web { background: #eef2fe; color: #3a56c4; }
.ct-goods { background: #fdf0e8; color: #b45309; }

.opp.is-web .opp-score { background: linear-gradient(160deg, #eef2fe, #f7f9ff); }
.opp.is-web .opp-score b { color: #3a56c4; }

@media (max-width: 760px) {
  .carrier-pick { grid-template-columns: 1fr; gap: 9px; }
  .carrier {
    grid-template-areas: "ico name num" "desc desc desc";
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 12px 14px;
  }
  .c-num { font-size: 18px; }
  .c-desc { margin-top: 4px; }
  .lib-bar { gap: 8px; }
  .view-switch { width: 100%; }
  .vs { flex: 1; }
  .fav { margin-left: 0; }
}
