/* 扫描机会面板 */
/* 平台切换：iOS / Google Play */
.sc-store { grid-auto-columns: 1fr; }
.sc-store .seg-btn { min-width: 84px; padding: 7px 16px; font-size: 13px; }
.sc-store .seg-btn small { margin-left: 6px; font-size: 11px; font-weight: 700; opacity: .7; }
.sc-store .seg-btn:disabled { opacity: .4; cursor: not-allowed; }

/* 今日跟进 Top 3 */
.sc-top { margin-bottom: 18px; }
.sc-top-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 10px; }
.sc-top-h b { font-size: 15px; font-weight: 800; }
.sc-top-h span { margin-left: 8px; font-size: 12px; color: var(--muted-2); }
.sc-top-h em { font-style: normal; font-size: 11.5px; color: var(--muted-2); cursor: help; }
.sc-top-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sc-top-card {
  display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; cursor: pointer; min-width: 0;
  border: 1px solid rgba(var(--c),.28); background: radial-gradient(120% 90% at 0% 0%, rgba(var(--c),.12), transparent 55%), var(--card-2);
  transition: border-color .15s ease, transform .15s ease;
}
.sc-top-card:hover { border-color: rgba(var(--c),.6); transform: translateY(-1px); }
.sc-top-app { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sc-top-app > i {
  flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  font-style: normal; font-size: 12px; font-weight: 800; color: #0b1020; background: rgb(var(--c));
}
.sc-top-app img { width: 42px; height: 42px; border-radius: 10px; flex: none; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.sc-top-app > div { min-width: 0; }
.sc-top-app b { display: block; font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-top-app > div > span { display: flex; gap: 6px; margin-top: 4px; }
.sc-top-intro { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sc-top-card .sc-why { gap: 6px; flex: 1; align-content: start; }
.sc-top-card .sc-why li { font-size: 12px; }
.sc-top-do { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 10px; border-top: 1px dashed var(--border-soft); }
.sc-top-do > span { font-size: 11.5px; color: var(--muted-2); margin-right: 2px; }
.sc-top-do a {
  padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: rgb(var(--c)); text-decoration: none;
  border: 1px solid rgba(var(--c),.3); background: rgba(var(--c),.06);
}
.sc-top-do a:hover { background: rgba(var(--c),.16); }

/* 功能聚合 */
.sc-themes { margin-bottom: var(--sp-5); }
.sc-theme-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-3); }
.sc-theme {
  display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-3) var(--sp-3) var(--sp-3); border-radius: var(--r-3); cursor: pointer; min-width: 0;
  border: 1px solid var(--line-soft); background: var(--surface-1); transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.sc-theme:hover { border-color: rgba(var(--brand-rgb),.4); background: color-mix(in srgb, var(--surface-1), rgb(var(--brand-rgb)) 3%); transform: translateY(-1px); }
.sc-theme.active { border-color: rgba(var(--brand-rgb),.75); background: rgba(var(--brand-rgb),.07); }
.sc-theme-h { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.sc-theme-h b { font-size: var(--fs-4); font-weight: 700; color: rgb(var(--brand-rgb)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-theme-stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: var(--sp-2); margin: 0; padding: var(--sp-2) 0; border-block: 1px solid var(--line-faint); }
.sc-theme-stats div { min-width: 0; }
.sc-theme-stats dt { font-size: var(--fs-1); color: var(--text-3); white-space: nowrap; }
.sc-theme-stats dd { margin: 1px 0 0; font-size: var(--fs-4); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sc-theme-stats dd.money { color: var(--money); }
.sc-theme p { margin: 0; font-size: var(--fs-2); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-theme p .up { color: var(--up); font-weight: 600; }
.sc-theme-icons { display: flex; align-items: center; }
.sc-theme-icons img { width: 22px; height: 22px; border-radius: 6px; margin-right: -4px; box-shadow: 0 0 0 2px var(--surface-1); background: var(--surface-2); }
.sc-theme-icons i { margin-left: 10px; font-style: normal; font-size: var(--fs-1); color: var(--text-3); }
.sc-theme-more { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin-top: var(--sp-3); }
.sc-theme-more .sc-lb { margin-left: var(--sp-1); }
.sc-theme-more .sc-chip { padding: 4px 10px; font-size: var(--fs-2); }
.sc-theme-of { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.sc-top-app .sc-theme-tag { border-style: solid; cursor: pointer; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-top-app .sc-theme-tag:hover { color: var(--text); border-color: rgba(var(--c),.5); }

/* 概览 */
/* 指标：一条细带，数字是主角 */
.sc-kpis {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); margin-bottom: var(--sp-5);
  border: 1px solid var(--line-soft); border-radius: var(--r-3); background: var(--surface-1); overflow: hidden;
}
.sc-kpi { padding: var(--sp-3) var(--sp-4); min-width: 0; cursor: help; }
.sc-kpi + .sc-kpi { border-left: 1px solid var(--line-faint); }
.sc-kpi span { display: block; font-size: var(--fs-2); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-kpi b { display: block; margin-top: 2px; font-size: var(--fs-6); font-weight: 700; letter-spacing: -.01em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sc-kpi b small { font-size: var(--fs-2); font-weight: 500; color: var(--text-3); margin-left: 3px; letter-spacing: 0; }
.sc-kpi.key b { color: rgb(var(--brand-rgb)); }

/* 筛选栏 */
#scan { --btn-rgb: var(--brand-rgb); }
.sc-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.sc-tools { display: flex; align-items: center; gap: var(--sp-2); margin-left: auto; }
.sc-sel {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 0 0 12px; border-radius: var(--r-2);
  border: 1px solid var(--line); background: var(--surface-1); color: var(--text-3); font: inherit; font-size: var(--fs-2);
  transition: color var(--dur-1), border-color var(--dur-1), background-color var(--dur-1);
}
.sc-sel:hover { border-color: var(--line-strong); }
.sc-sel.on { border-color: rgba(var(--brand-rgb),.5); }
.sc-dd-slot[hidden] { display: none; }

/* 自绘下拉 */
.sc-dd { position: relative; display: inline-flex; }
.sc-dd-btn { cursor: pointer; padding-right: 10px; max-width: 100%; }
.sc-dd-btn.sc-view { padding-left: 12px; }
.sc-dd-lb { color: var(--text-3); font-size: var(--fs-2); font-weight: 500; }
.sc-dd-val { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; color: var(--text); font-size: var(--fs-3); font-weight: 600; white-space: nowrap; }
.sc-dd-btn.sc-view .sc-dd-val { color: inherit; }
.sc-dd-btn small { color: var(--text-3); font-size: var(--fs-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.sc-dd-btn.sc-view.active small { color: inherit; opacity: .8; }
.sc-dd-btn svg { flex: none; width: 12px; height: 12px; margin-left: auto; fill: none; stroke: var(--text-3); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s ease; }
.sc-dd.open .sc-dd-btn { border-color: var(--line-strong); background: var(--surface-2); }
.sc-dd.open .sc-dd-btn svg { transform: rotate(180deg); }
.sc-dd-menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; display: grid; gap: 2px; align-content: start;
  min-width: 100%; width: max-content; max-width: min(400px, calc(100vw - 24px)); max-height: min(452px, 64vh); overflow-y: auto; overscroll-behavior: contain;
  padding: var(--sp-1); border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface-2); box-shadow: var(--sh-3);
  scrollbar-width: thin; scrollbar-color: var(--line) transparent; animation: sc-dd-in .12s ease-out;
}
.sc-dd-menu[hidden] { display: none; }
.sc-dd-menu.right { left: auto; right: 0; }
.sc-dd-menu.cols { grid-template-columns: repeat(2, minmax(148px, 1fr)); }
@keyframes sc-dd-in { from { opacity: 0; transform: translateY(-4px); } }
.sc-dd-menu [role=option] {
  all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  height: 34px; padding: 0 10px; border-radius: var(--r-2); color: var(--text-2); font-size: var(--fs-3); white-space: nowrap; cursor: pointer;
}
.sc-dd-menu [role=option] span { display: inline-flex; align-items: center; gap: var(--sp-2); }
.sc-dd-menu [role=option] small { color: var(--text-3); font-size: var(--fs-2); font-variant-numeric: tabular-nums; }
.sc-dd-menu [role=option]:hover, .sc-dd-menu [role=option]:focus-visible { background: rgba(255,255,255,.06); color: var(--text); box-shadow: none; }
.sc-dd-menu [role=option]:focus-visible { box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb),.55); }
.sc-dd-menu [role=option][aria-selected="true"] { background: rgba(var(--brand-rgb),.12); color: rgb(var(--brand-rgb)); font-weight: 600; }
.sc-dd-menu [role=option][aria-selected="true"] small { color: rgba(var(--brand-rgb),.75); }
.sc-dd-flag { font-size: 15px; font-weight: 400; line-height: 1; }
.sc-dd-code { display: inline-grid; place-items: center; width: 20px; height: 14px; border-radius: 2px; background: rgba(255,255,255,.12); color: var(--text-2); font-size: 9px; font-weight: 700; letter-spacing: .02em; }
.sc-dd-val i, .sc-dd-menu i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--g)); }
.sc-filter-toggle { padding: 0 12px; color: var(--text-2); font-size: var(--fs-3); font-weight: 600; cursor: pointer; }
.sc-filter-toggle span { display: inline-flex; align-items: center; gap: 6px; }
.sc-filter-toggle b {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-pill); background: rgb(var(--brand-rgb)); color: #04211c;
  font-size: var(--fs-1); line-height: 18px; text-align: center; font-variant-numeric: tabular-nums;
}
.sc-filter-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
#scan.sc-filters-open .sc-filter-toggle { color: rgb(var(--brand-rgb)); border-color: rgba(var(--brand-rgb),.5); background: rgba(var(--brand-rgb),.08); }
.sc-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-3) var(--sp-6); margin-bottom: var(--sp-3);
  padding: var(--sp-3) var(--sp-4); border: 1px solid var(--line-soft); border-radius: var(--r-3); background: var(--surface-1);
}
#scan:not(.sc-filters-open) .sc-bar { display: none; }
.sc-lb { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-2); color: var(--text-3); }
.sc-act {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  color: rgb(var(--btn-rgb)); background: rgba(var(--btn-rgb),.1); border-color: rgba(var(--btn-rgb),.45); font-weight: 600;
}
.sc-act:hover { background: rgba(var(--btn-rgb),.2); border-color: rgb(var(--btn-rgb)); }
.sc-act svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.sc-views { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-2); }
.sc-view {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--r-2); cursor: pointer;
  border: 1px solid var(--line); background: var(--surface-1); color: var(--text-2); font: inherit; font-size: var(--fs-3); font-weight: 700;
  transition: color var(--dur-1), border-color var(--dur-1), background-color var(--dur-1);
}
.sc-view small { font-size: var(--fs-2); font-weight: 600; opacity: .8; font-variant-numeric: tabular-nums; }
.sc-view:hover { color: var(--text); border-color: var(--line-strong); }
.sc-view.active { color: rgb(var(--brand-rgb)); background: rgba(var(--brand-rgb),.1); border-color: rgba(var(--brand-rgb),.5); }
/* 各国表现：数字列右对齐等宽，有量的国家亮，零星的弱 */
.sc-geo { width: 100%; border-collapse: collapse; font-size: var(--fs-2); font-variant-numeric: tabular-nums; }
.sc-geo th { text-align: left; font-weight: 500; font-size: var(--fs-1); color: var(--text-3); padding: 0 var(--sp-2) 6px; border-bottom: 1px solid var(--line-faint); white-space: nowrap; }
.sc-geo td { height: 30px; padding: 0 var(--sp-2); color: var(--text-3); white-space: nowrap; }
.sc-geo tbody tr:nth-child(even) td { background: var(--zebra); }
.sc-geo th:first-child, .sc-geo td:first-child { padding-left: 6px; }
.sc-geo th:nth-child(n+2), .sc-geo td:nth-child(n+2) { text-align: right; }
.sc-geo th:last-child, .sc-geo td:last-child { padding-right: 6px; }
.sc-geo td:nth-child(n+3) { width: 56px; }
.sc-geo tr.vol td { color: var(--text-2); }
.sc-geo tr.vol td:first-child { color: var(--text); }
.sc-geo tr.vol td:nth-child(2) { color: var(--text); font-weight: 650; }
.sc-geo tbody tr:hover td { background: rgba(var(--brand-rgb),.06); }
.sc-geo tr td.g { color: var(--text); font-weight: 650; }
.sc-geo tr td.g10 { color: var(--geo); font-weight: 700; }
.sc-geo .sc-dd-flag { font-size: var(--fs-3); margin-right: 2px; }
.sc-geo .sc-dd-code { margin-right: 2px; vertical-align: 1px; }
.sc-us-lo { color: var(--geo); font-weight: 600; }
.sc-geo tr.more { display: none; }
.sc-geo.open tr.more { display: table-row; }
.sc-geo-bar { display: inline-block; width: 52px; height: 4px; margin-right: var(--sp-2); border-radius: 2px; background: var(--line-faint); vertical-align: 2px; overflow: hidden; }
.sc-geo-bar i { display: block; height: 100%; border-radius: 2px; background: rgba(var(--brand-rgb),.45); }
.sc-geo tr.vol .sc-geo-bar i { background: rgb(var(--brand-rgb)); }
.sc-geo-off { margin: var(--sp-2) 0 0; font-size: var(--fs-1); line-height: 1.55; color: var(--text-3); text-wrap: pretty; }
.sc-blk-geo .sc-iap-more { display: block; margin-top: var(--sp-2); }
.sc-dh-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: var(--sp-2) 0 0; }
.sc-dh .sc-dh-tags span { display: inline-block; margin: 0; }
.sc-dh .sc-dh-tags .sc-dh-theme { max-width: 220px; font-size: var(--fs-2); color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 统一标签：同一尺寸，四种含义各一种样子
   判断：可复制用橙色，和青色品类名分开；有苗头保持中性。海外（N 国畅销、美国也在榜）蓝色实底 · 属性（周期、分类体量）中性实底 · 可信度（外推、推算、放宽、自动摘录）虚线 */
.sc-copy, .sc-gross, .sc-in-us, .sc-per, .sc-size, .sc-loose, .sc-guess, .sc-auto {
  display: inline-flex; align-items: center; flex: none; padding: 0 6px; border-radius: var(--r-1); border: 1px solid transparent;
  font-size: var(--fs-1); line-height: 18px; font-weight: 600; white-space: nowrap; vertical-align: 1px; cursor: help;
}
.sc-copy { color: var(--text-2); background: rgba(255,255,255,.06); }
.sc-copy.hi { color: #fdba74; background: rgba(251,146,60,.16); }
.sc-gross, .sc-in-us { color: var(--geo); background: rgba(var(--geo-rgb),.13); }
.sc-gross { margin-left: 6px; }
.sc-gross.hi { color: #c9dbff; background: rgba(var(--geo-rgb),.24); }
.sc-in-us { margin-left: 6px; cursor: default; }
.sc-per, .sc-size { color: var(--text-2); background: rgba(255,255,255,.07); }
.sc-loose, .sc-guess, .sc-auto { color: var(--text-3); border-color: var(--line); border-style: dashed; font-weight: 500; }
.sc-guess, .sc-auto { margin-left: 6px; }
.sc-sm .sc-per { margin-right: 5px; padding: 0 4px; line-height: 16px; }
.sc-iap .sc-per { margin-left: 6px; }
.sc-top-app .sc-loose { border-style: solid; }
.sc-chip {
  display: inline-flex; align-items: baseline; gap: 5px; padding: 5px 12px; border-radius: var(--r-pill);
  border: 1px solid var(--line-soft); background: var(--surface-1); color: var(--text-2);
  font: inherit; font-size: var(--fs-3); font-weight: 500; cursor: pointer; transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.sc-chip small { color: var(--text-3); font-size: var(--fs-1); font-variant-numeric: tabular-nums; }
.sc-chip:hover { color: var(--text); border-color: rgba(var(--g, var(--brand-rgb)),.5); }
.sc-chip.active { color: #fff; border-color: rgba(var(--g, var(--brand-rgb)),.75); background: rgba(var(--g, var(--brand-rgb)),.18); }
.sc-chip.active small { color: rgba(255,255,255,.7); }

/* 表格：数字右对齐等宽，斑马纹，表头吸顶 */
.sc-tbl-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-1) var(--sp-4); margin: 0 2px var(--sp-2); font-size: var(--fs-2); color: var(--text-3); }
.sc-tbl-meta b { color: var(--text); font-variant-numeric: tabular-nums; }
.sc-meta-l { display: flex; flex-wrap: wrap; align-items: center; gap: 6px var(--sp-2); }
.sc-on {
  display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 6px 0 9px; border-radius: var(--r-pill); cursor: pointer;
  border: 1px solid rgba(var(--brand-rgb),.4); background: rgba(var(--brand-rgb),.1); color: rgb(var(--brand-rgb)); font: inherit; font-size: var(--fs-2); font-weight: 600;
  max-width: 100%; transition: background-color var(--dur-1);
}
.sc-on span { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-on:hover { background: rgba(var(--brand-rgb),.2); }
.sc-on svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.sc-on-clear { all: unset; cursor: pointer; color: var(--text-3); font-size: var(--fs-2); }
.sc-on-clear:hover { color: var(--text); text-decoration: underline; }
.sc-on-clear:focus-visible { box-shadow: var(--focus-ring); border-radius: var(--r-1); }
.sc-wrap { border: 1px solid var(--line-soft); background: var(--surface-1); border-radius: var(--r-3); }
.sc-tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs-3); }
.sc-tbl th {
  position: sticky; top: 0; z-index: 2; text-align: right; font-weight: 600; color: var(--text-3); font-size: var(--fs-2);
  padding: 0; background: var(--surface-1); border-bottom: 1px solid var(--line); white-space: nowrap; user-select: none;
}
.sc-tbl th:first-child { border-top-left-radius: var(--r-3); padding-left: var(--sp-4); }
.sc-tbl th:last-child { border-top-right-radius: var(--r-3); }
.sc-tbl th:not([data-sort]) { padding: 10px; }
.sc-tbl th:first-child:not([data-sort]) { padding-left: var(--sp-4); }
.sc-tbl th button {
  all: unset; box-sizing: border-box; display: block; width: 100%; padding: 10px; cursor: pointer; text-align: inherit; border-radius: var(--r-1);
}
.sc-tbl th button:hover { color: var(--text); }
.sc-tbl th button:focus-visible { box-shadow: inset 0 0 0 2px rgba(var(--brand-rgb),.75); }
.sc-tbl th.on { color: rgb(var(--brand-rgb)); }
.sc-tbl th.on button::after { content: " ↓"; }
.sc-tbl th.on.asc button::after { content: " ↑"; }
.sc-tbl td {
  text-align: right; padding: 9px 10px; border-bottom: 1px solid var(--line-faint); white-space: nowrap;
  vertical-align: middle; font-variant-numeric: tabular-nums;
}
.sc-tbl td:first-child { padding-left: var(--sp-4); }
.sc-tbl td:last-child { padding-right: var(--sp-4); }
.sc-tbl th:first-child, .sc-tbl td:first-child, .sc-tbl th.l, .sc-tbl td.l { text-align: left; }
.sc-tbl tbody tr:nth-child(even) td { background: var(--zebra); }
.sc-tbl tbody tr:last-child td { border-bottom: none; }
.sc-tbl tbody tr { cursor: pointer; }
.sc-tbl tbody tr:hover td { background: rgba(var(--brand-rgb),.055); }
.sc-tbl tbody tr:focus-visible { box-shadow: none; }
.sc-tbl tbody tr:focus-visible td { background: rgba(var(--brand-rgb),.08); box-shadow: inset 0 1px 0 rgba(var(--brand-rgb),.6), inset 0 -1px 0 rgba(var(--brand-rgb),.6); }
.sc-tbl td > b { font-weight: 650; color: var(--text); }
.sc-tbl td.sc-none { padding: var(--sp-8) var(--sp-4); text-align: center; white-space: normal; background: none; }
.sc-tbl tbody tr:has(.sc-none) { cursor: default; }
.sc-tbl tbody tr:has(.sc-none):hover td { background: none; }
.sc-none-in { display: flex; flex-direction: column; align-items: center; gap: var(--sp-1); }
.sc-none-in b { font-size: var(--fs-4); font-weight: 600; color: var(--text); }
.sc-none-in span { font-size: var(--fs-2); color: var(--text-3); }
.sc-none-in .pill-btn { margin-top: var(--sp-3); }
.sc-app { display: flex; align-items: center; gap: var(--sp-3); min-width: 200px; max-width: 250px; }
.sc-app img { width: 36px; height: 36px; border-radius: 9px; flex: none; background: var(--surface-2); box-shadow: 0 0 0 1px rgba(255,255,255,.06); }
.sc-app div { min-width: 0; }
.sc-app .nm { font-weight: 650; font-size: var(--fs-4); color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.sc-app .cd { font-size: var(--fs-2); color: var(--text-3); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 1600px) { .sc-app { max-width: 340px; } }
.sc-m-only { display: none; }
.sc-tag {
  display: inline-block; padding: 0 7px; border-radius: var(--r-1); font-size: var(--fs-1); line-height: 18px; font-weight: 600;
  color: color-mix(in srgb, rgb(var(--g)) 78%, #fff); background: rgba(var(--g),.13);
}
.sc-sm { display: block; font-size: var(--fs-2); color: var(--text-3); margin-top: 2px; }
.sc-price { font-weight: 700; color: var(--money); }
.sc-ratio { display: inline-flex; align-items: center; gap: 6px; }
td .sc-sm[title], td[title] { cursor: help; }
.sc-eff.hi { color: rgb(var(--brand-rgb)); font-weight: 700; }
.sc-eff.mid { color: var(--text-2); }
.sc-eff.lo { color: var(--text-3); }
.sc-rankbar {
  position: relative; display: inline-block; width: 44px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(var(--brand-rgb),.4) 0 30%, rgba(255,255,255,.09) 30% 100%);
}
.sc-rankbar b {
  position: absolute; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%;
  background: rgb(var(--brand-rgb)); box-shadow: 0 0 0 2px var(--surface-1);
}
.sc-rankbar.mid b { background: #cbd5e1; }
.sc-rankbar.lo b { background: #64748b; }
.sc-d { display: inline-block; min-width: 38px; padding: 0 7px; border-radius: var(--r-pill); font-size: var(--fs-2); line-height: 20px; font-weight: 700; text-align: center; }
.sc-d.up { color: var(--up); background: rgba(52,211,153,.14); }
.sc-d.dn { color: var(--down); background: rgba(248,113,113,.14); }
.sc-d.new { color: var(--money); background: rgba(var(--money-rgb),.14); }
.sc-d.na { color: var(--text-3); }
.sc-spark { display: block; margin-left: auto; }
.sc-spark-na { font-size: var(--fs-2); color: var(--text-3); }
/* 得分：高分实底，中分描边色，低分灰 */
.sc-score {
  display: inline-grid; place-items: center; min-width: 44px; height: 26px; padding: 0 8px; border-radius: var(--r-pill);
  font-weight: 700; font-size: var(--fs-3); font-variant-numeric: tabular-nums; color: #032521; background: rgb(var(--brand-rgb));
}
.sc-score.mid { color: rgb(var(--brand-rgb)); background: rgba(var(--brand-rgb),.13); }
.sc-score.low { color: var(--text-2); background: rgba(255,255,255,.06); }

/* 说明：默认收起 */
.sc-note { margin: var(--sp-4) 0 0; border: 1px solid var(--line-soft); border-radius: var(--r-3); background: var(--surface-1); }
.sc-note summary {
  display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); cursor: pointer; list-style: none;
  font-size: var(--fs-3); font-weight: 600; color: var(--text-2); border-radius: var(--r-3);
}
.sc-note summary::-webkit-details-marker { display: none; }
.sc-note summary::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .15s ease; }
.sc-note[open] summary::before { transform: rotate(45deg); }
.sc-note summary:hover { color: var(--text); }
.sc-note p { margin: 0; padding: 0 var(--sp-4) var(--sp-4); max-width: 78em; font-size: var(--fs-2); line-height: 1.75; color: var(--text-3); }
.sc-note b { color: var(--text-2); font-weight: 600; }

/* 空状态 */
.sc-empty { text-align: center; padding: 56px var(--sp-4) 48px; border: 1px dashed var(--line); border-radius: var(--r-4); background: var(--surface-1); }
.sc-empty b { display: block; font-size: var(--fs-5); margin-bottom: var(--sp-2); }
.sc-empty p { margin: 0 auto; max-width: 520px; font-size: var(--fs-3); color: var(--text-2); line-height: 1.7; text-wrap: pretty; }
.sc-empty code {
  display: inline-block; max-width: 100%; margin-top: var(--sp-4); padding: var(--sp-2) 14px; border-radius: var(--r-2); overflow-x: auto; white-space: nowrap; vertical-align: top;
  background: var(--surface-0); border: 1px solid var(--line-soft); font-size: var(--fs-2); color: rgb(var(--brand-rgb)); user-select: all;
}

/* 详情弹窗：头部、简介、四个关键数（一条带，和首页指标一致）、两栏区块、底部操作 */
.sc-dlg {
  --c: 45,212,191; --btn-rgb: 45,212,191; --btn-bg: linear-gradient(135deg, #2dd4bf, #14b8a6); --btn-text: #032521;
  --d-surface: var(--surface-hover); --d-line: var(--line-faint);
  width: min(920px, calc(100vw - 32px));
}
.xb-dlg.sc-dlg { padding: 0; overflow: hidden; }
.xb-dlg.sc-dlg[open] { display: flex; flex-direction: column; }
.sc-dh { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-6) var(--sp-6) var(--sp-4); flex: none; }
.sc-dh img { width: 60px; height: 60px; border-radius: 14px; flex: none; background: var(--surface-2); box-shadow: var(--sh-2), 0 0 0 1px rgba(255,255,255,.08); }
.sc-dh > div { flex: 1; min-width: 0; }
.sc-dh b { display: block; font-size: var(--fs-6); font-weight: 700; line-height: 1.3; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-dh span { display: block; font-size: var(--fs-2); color: var(--text-3); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-dh span.sc-tag { display: inline-block; margin-top: 6px; }
.sc-dh .dlg-x { align-self: flex-start; width: 36px; height: 36px; transition: color var(--dur-1), border-color var(--dur-1), background-color var(--dur-1); }
.sc-dh .dlg-x:hover { color: var(--text); background: rgba(255,255,255,.12); }
.sc-dh .dlg-x:active { transform: translateY(1px); }
.sc-dbody { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--sp-6) var(--sp-4); scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.14) transparent; }
.sc-dlg .dlg-foot { flex: none; margin: 0; padding: var(--sp-3) var(--sp-6) var(--sp-5); border-top: 1px solid var(--d-line); flex-wrap: nowrap; gap: var(--sp-2); }
.sc-dlg .dlg-foot .run { white-space: nowrap; padding: 0 10px; height: 40px; font-size: var(--fs-3); box-shadow: none; }

.sc-intro { margin: 0 0 var(--sp-4); max-width: 72ch; }
.sc-intro p { margin: 0; font-size: var(--fs-4); line-height: 1.65; color: var(--text); text-wrap: pretty; }
.sc-intro p .sc-auto { margin-left: 6px; vertical-align: 1px; }
.sc-feats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--sp-3); }
.sc-feats span { max-width: 240px; padding: 3px var(--sp-2); border-radius: var(--r-1); font-size: var(--fs-2); color: var(--text-2); background: var(--d-surface); border: 1px solid var(--d-line); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sc-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: var(--sp-4); border: 1px solid var(--d-line); border-radius: var(--r-3); background: var(--d-surface); overflow: hidden; }
.sc-tile { padding: var(--sp-3) var(--sp-4); min-width: 0; }
.sc-tile[title] { cursor: help; }
.sc-tile + .sc-tile { border-left: 1px solid var(--d-line); }
.sc-tile span { display: block; font-size: var(--fs-2); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-tile b { display: block; font-size: var(--fs-6); font-weight: 700; letter-spacing: -.01em; margin: 2px 0 1px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sc-tile b small { font-size: var(--fs-2); font-weight: 500; color: var(--text-3); margin-left: 3px; letter-spacing: 0; }
.sc-tile em { display: block; font-style: normal; font-size: var(--fs-1); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-tile.key b { color: rgb(var(--c)); }
.sc-tile b.money { color: var(--money); }

.sc-cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--sp-3); align-items: start; }
.sc-col { display: grid; gap: var(--sp-3); }
.sc-col .sc-blk + .sc-blk { margin-top: 0; }
.sc-blk { padding: var(--sp-4); border-radius: var(--r-3); background: var(--d-surface); border: 1px solid var(--d-line); min-width: 0; }
.sc-blk + .sc-blk { margin-top: var(--sp-3); }
.sc-blk .sec-h { font-size: var(--fs-4); margin-bottom: var(--sp-3); }
.sc-blk .sec-h small { font-size: var(--fs-1); }

.sc-chart { width: 100%; height: 150px; display: block; }
.sc-chart text { font-size: var(--fs-1); fill: var(--text-3); font-variant-numeric: tabular-nums; }
.sc-chart .ln-g { stroke: rgb(var(--brand-rgb)); }
.sc-chart .ln-f { stroke: var(--text-2); }
.sc-chart .grid { stroke: var(--line-faint); }
.sc-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: var(--fs-1); color: var(--text-3); margin-top: var(--sp-2); }
.sc-legend i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 5px; vertical-align: 3px; }
.sc-legend i.ln-g { background: rgb(var(--brand-rgb)); }
.sc-legend i.ln-f { background: var(--text-2); }
.sc-legend span:last-child { margin-left: auto; }

/* 内购：序号弱、名称次、价格右对齐，最贵的一档用金色 */
.sc-iap { list-style: none; margin: 0; padding: 0; display: grid; max-height: 260px; overflow-y: auto; scrollbar-width: thin; }
.sc-blk-iap .sc-iap { max-height: 420px; }
.sc-iap li { display: flex; align-items: center; gap: 10px; min-height: 32px; padding: 0 var(--sp-2) 0 6px; border-radius: var(--r-1); font-size: var(--fs-3); }
.sc-iap li:hover { background: rgba(var(--brand-rgb),.06); }
.sc-iap li:nth-child(odd) { background: var(--zebra); }
.sc-iap li > i { font-style: normal; width: 16px; flex: none; font-size: var(--fs-1); color: var(--text-3); text-align: right; font-variant-numeric: tabular-nums; }
.sc-iap li > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.sc-iap li > b { font-weight: 600; font-variant-numeric: tabular-nums; }
.sc-iap li.top > b { color: var(--money); font-weight: 700; }
.sc-iap-more {
  display: none; width: 100%; min-height: 34px; margin-top: 6px; border-radius: var(--r-2); border: 1px dashed var(--d-line);
  background: none; color: var(--text-2); font: inherit; font-size: var(--fs-2); cursor: pointer; transition: color var(--dur-1), border-color var(--dur-1);
}
.sc-iap-more:hover { color: var(--text); border-color: var(--line-strong); }
.sc-iap-more:active { transform: translateY(1px); }

/* 为什么值得看：一条一个理由，关键数字加粗，补充说明小一号 */
.sc-why { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sc-why li { display: flex; gap: 10px; font-size: var(--fs-3); color: var(--text-2); line-height: 1.6; text-wrap: pretty; }
.sc-why li::before { content: ""; flex: none; width: 5px; height: 5px; margin-top: 8px; border-radius: 50%; background: rgba(var(--c),.8); }
.sc-why b { color: var(--text); font-weight: 650; }
.sc-why .sc-sm { margin-top: 4px; font-size: var(--fs-1); line-height: 1.55; }

@media (max-width: 1180px) {
  .sc-theme-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sc-themes:not(.open) .sc-theme-list > :nth-child(n+4) { display: none; }
}
/* 表格放不下时才横向滚动（这时表头不再吸顶） */
@media (max-width: 1240px) and (min-width: 641px) {
  .sc-wrap { overflow-x: auto; }
  /* 还能往哪边滚，哪边就渐隐（can-l / can-r 由 scan.js 按滚动位置切换） */
  .sc-wrap.can-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
  .sc-wrap.can-l { -webkit-mask-image: linear-gradient(270deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(270deg, #000 calc(100% - 56px), transparent); }
  .sc-wrap.can-l.can-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); }
}
@media (max-width: 980px) {
  .sc-top-list { grid-template-columns: 1fr; }
  .sc-theme-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sc-themes:not(.open) .sc-theme-list > :nth-child(n+3) { display: none; }
}
@media (max-width: 640px) {
  .sc-store { width: 100%; grid-auto-columns: 1fr; }
  .sc-store .seg-btn { min-height: 40px; }
  .sc-themes { margin-bottom: var(--sp-4); }
  .sc-themes .sc-top-h span, .sc-themes .sc-top-h em { display: none; }
  .sc-theme-list { grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
  .sc-theme { padding: var(--sp-3) 10px; gap: 6px; }
  .sc-theme-stats { grid-template-columns: repeat(2, auto); row-gap: 4px; }
  .sc-theme p, .sc-theme-icons { display: none; }
  .sc-theme-more .pill-btn { min-height: 40px; }
  .sc-kpis { grid-template-columns: repeat(3, 1fr); margin-bottom: var(--sp-4); }
  .sc-kpi { padding: 10px 12px; }
  .sc-kpi:nth-child(3n + 1) { border-left: 0; }
  .sc-kpi:nth-child(n + 4) { border-top: 1px solid var(--line-faint); }
  .sc-kpi span { font-size: var(--fs-1); }
  .sc-kpi b { font-size: var(--fs-5); }
  .sc-toolbar { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-2); }
  .sc-views { flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px; padding: 0 12px 2px; scrollbar-width: none; }
  .sc-view { flex: none; height: 40px; }
  .sc-views .sc-dd { flex: none; }
  .sc-tools { margin-left: 0; }
  .sc-sel { height: 40px; }
  .sc-dd-slot { flex: 1 1 0; min-width: 0; }
  .sc-dd-slot .sc-dd, .sc-dd-slot .sc-dd-btn { width: 100%; min-width: 0; }
  .sc-filter-toggle { flex: none; justify-content: center; }
  .sc-dd-menu {
    position: fixed; top: auto; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom));
    width: auto; min-width: 0; max-width: none; max-height: 56vh; padding: 6px; border-radius: var(--r-4); animation-name: sc-dd-up;
  }
  .sc-dd.open::before { content: ''; position: fixed; inset: 0; z-index: 39; background: rgba(3,6,14,.55); }
  .sc-dd-menu.right { left: 12px; right: 12px; }
  .sc-dd-menu.cols { grid-template-columns: 1fr 1fr; }
  .sc-dd-menu [role=option] { height: 44px; }
  @keyframes sc-dd-up { from { opacity: 0; transform: translateY(8px); } }
  .sc-bar { gap: var(--sp-2) var(--sp-3); padding: var(--sp-3); }
  .sc-bar .seg-btn { min-height: 36px; }
  .sc-theme-more .sc-chip { flex: none; min-height: 36px; align-items: center; }
  .sc-tbl-meta { flex-direction: column; align-items: flex-start; }

  /* 表格 → 卡片：第一行应用 + 得分，第二行三个关键数，其余弱化 */
  .sc-wrap { padding: 0; border: 0; background: none; overflow: visible; }
  .sc-tbl, .sc-tbl tbody { display: block; }
  .sc-tbl thead { display: none; }
  .sc-tbl tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; padding: 14px; margin-bottom: 10px; border-radius: var(--r-3); background: var(--surface-1); border: 1px solid var(--line-soft); }
  .sc-tbl tbody tr:nth-child(even) td, .sc-tbl tbody tr:hover td { background: none; }
  .sc-tbl tbody tr:focus-visible { border-color: rgba(var(--brand-rgb),.7); }
  .sc-tbl tbody tr:focus-visible td { box-shadow: none; background: none; }
  .sc-tbl td, .sc-tbl td:first-child, .sc-tbl td:last-child { display: block; padding: 0; border: 0; text-align: left; white-space: normal; min-width: 0; }
  .sc-tbl td::before { content: attr(data-l); display: block; font-size: var(--fs-1); color: var(--text-3); margin-bottom: 2px; }
  .sc-tbl td:first-child { grid-column: 1 / 3; }
  .sc-tbl td:first-child::before, .sc-tbl td[data-l="得分"]::before { display: none; }
  .sc-tbl td[data-l="得分"] { order: -1; grid-column: 3; grid-row: 1; text-align: right; align-self: start; }
  .sc-tbl td[data-l="30 日走势"], .sc-tbl td[data-l="分类"] { display: none; }
  .sc-tbl td > b { font-size: var(--fs-4); }
  .sc-tbl td[data-l="上线"] .sc-sm, .sc-tbl td[data-l="变现效率"] .sc-sm { display: none; }
  .sc-tbl td .sc-sm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sc-app { min-width: 0; max-width: none; align-items: flex-start; }
  .sc-app .nm { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .sc-app .cd { white-space: nowrap; }
  .sc-tbl td.sc-none { grid-column: 1 / -1; padding: var(--sp-6) 0; text-align: center; }
  .sc-tbl td.sc-none::before { display: none; }
  .sc-m-only { display: block; margin-top: 6px; }
  .sc-m-only .sc-gross { margin-left: 0; }
  .sc-spark { margin-left: 0; }
}
@media (max-width: 820px) {
  .sc-cols { grid-template-columns: 1fr; }
  .sc-blk-iap .sc-iap { max-height: 260px; }
}

/* 手机弹窗：底部抽屉，内容按重要程度排：简介 → 关键数字 → 内购价格 → 为什么值得看 → 走势 → 各国 */
@media (max-width: 640px) {
  .xb-dlg.sc-dlg { width: 100%; max-height: calc(100dvh - 86px - env(safe-area-inset-bottom)); margin-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .sc-dh { position: relative; gap: var(--sp-3); padding: var(--sp-5) var(--sp-4) var(--sp-3); }
  .sc-dh::before { content: ""; position: absolute; top: 8px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: rgba(255,255,255,.18); }
  .sc-dh img { width: 48px; height: 48px; border-radius: 12px; }
  .sc-dh b { font-size: var(--fs-5); }
  .sc-dh .dlg-x { width: 40px; height: 40px; }
  .sc-dbody { padding: 0 var(--sp-4) var(--sp-3); scrollbar-width: none; }
  .sc-dbody::-webkit-scrollbar { display: none; }
  .sc-intro { margin: 0 0 var(--sp-3); }
  .sc-intro p { font-size: var(--fs-3); line-height: 1.6; }
  .sc-feats { gap: 5px; margin-top: var(--sp-2); }
  .sc-feats span { padding: 2px 7px; font-size: var(--fs-1); }
  .sc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: var(--sp-3); }
  .sc-tile { padding: 10px var(--sp-3); }
  .sc-tile:nth-child(odd) { border-left: 0; }
  .sc-tile:nth-child(n + 3) { border-top: 1px solid var(--d-line); }
  .sc-tile b { font-size: var(--fs-5); }
  .sc-cols { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
  .sc-col { display: contents; }
  .sc-cols .sc-blk { margin-top: 0; padding: var(--sp-3); }
  .sc-blk-iap { order: 1; }
  .sc-blk-why { order: 2; }
  .sc-blk-chart { order: 3; }
  .sc-blk-geo { order: 4; }
  .sc-blk-iap .sc-iap { max-height: none; overflow: visible; }
  .sc-iap li { min-height: 34px; font-size: var(--fs-3); }
  .sc-iap:not(.open) li.more { display: none; }
  .sc-iap-more { display: block; min-height: 40px; }
  .sc-why { gap: var(--sp-2); }
  .sc-chart { height: 120px; }
  .sc-geo td { height: 32px; }
  .sc-geo-bar { width: 36px; }
  .sc-dlg .dlg-foot { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 10px var(--sp-3); }
  .sc-dlg .dlg-foot .run { min-width: 0; height: 44px; padding: 0 2px; font-size: var(--fs-2); justify-content: center; }
  .sc-dlg .dlg-foot .run svg { display: none; }
}
