:root {
  /* 2026-08-18: 浅色"需求台账/金融仪表盘"改版 —— 从深色玻璃拟态切换为
     Financo 风格的浅灰底+白卡片+粗衬线体+单一橙色强调色。保留原有变量名，
     只换取值，让引用了这些 token 的组件自动继承新外观。 */
  --bg: #f4f4f6;
  --bg-raise: #ffffff;
  --surface: #ffffff;
  --surface-solid: #ffffff;
  --surface-raised: #fbfaf9;
  --border: rgba(23, 23, 26, .08);
  --border-strong: rgba(23, 23, 26, .16);
  --fg: #17171a;
  --fg-dim: #6b6b72;
  --fg-faint: #9d9da3;
  --accent: #d95a28;
  --accent-strong: #ea7c45;
  --up: #3f8f45;            /* 语义：上升 */
  --up-bg: rgba(63, 143, 69, .12);
  --down: #c14a3a;          /* 语义：下降 */
  --down-bg: rgba(193, 74, 58, .12);
  --flat: #9d9da3;
  --gold: #d9752e;          /* 预算/价值 —— 复用同一个强调色，不引入第二个颜色 */
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(20, 20, 25, .04), 0 10px 26px -14px rgba(20, 20, 25, .14);
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scrollbar-color: var(--border-strong) transparent;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  /* 环境光晕：顶部一抹蓝，克制 */
  background-image:
    radial-gradient(900px 500px at 78% -8%, rgba(217, 90, 40, .14), transparent 60%),
    radial-gradient(700px 400px at 8% 4%, rgba(217, 90, 40, .08), transparent 55%);
  background-attachment: fixed;
  /* 粘性页脚：内容不够一屏高时，footer 不能浮在内容正下方留出大片空白，
     必须始终贴在视口底部（Pro 未登录/空态等短内容页最容易暴露这个问题）。 */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#main-content {
  flex: 1 0 auto;
}

footer {
  flex-shrink: 0;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: inherit;
  text-decoration: none;
}

/* 2026-08-18: 粗衬线体只用在品牌字标（"Idea Miner" 恒为英文）上。曾经把这条
   规则扩到 h1-h6/nav/按钮，结果中文标题的 ch 单位按 Georgia 的窄字宽计算，
   跟已有的 zh 专属 max-width:none 修复（见下方 html[lang^="zh"] 规则）打架，
   导致中文首页大标题挤成几个字一行、爆版——中文场景必须只保留品牌字标这一处。 */
.brand span,
.foot-logo {
  font-family: var(--serif);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.tnum {
  font-variant-numeric: tabular-nums;
}

/* ---------- 顶栏 ---------- */
header.top {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, .72);
  border-bottom: 1px solid var(--border);
}

.top .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 62px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -.02em;
  font-size: 18px;
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  filter: drop-shadow(0 0 8px rgba(217, 90, 40, .32));
}

nav.tabs {
  display: flex;
  gap: 4px;
  margin-left: 8px;
}

nav.tabs a {
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 14px;
  color: var(--fg-dim);
  font-weight: 500;
  transition: background .18s, color .18s;
  display: inline-block;
}

nav.tabs a:hover {
  color: var(--fg);
  background: rgba(23, 23, 26, .08);
}

nav.tabs a.active {
  color: var(--fg);
  background: rgba(217, 90, 40, .14);
}

.top .spacer {
  flex: 1;
}

.dropdown { position: relative; }
.dropdown summary { list-style: none; cursor: pointer; }
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown[open] summary { color: var(--fg); }

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-dim);
}
.lang-btn::after { content: "▾"; font-size: 9px; opacity: .7; }
.lang-btn:hover { color: var(--fg); border-color: var(--border-strong); }

.avatar-btn { display: inline-flex; }
.avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ea7c45, #d95a28);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}
.dropdown[open] .avatar-circle { outline: 2px solid rgba(217, 90, 40,.45); outline-offset: 2px; }

.dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(255, 255, 255,.98), rgba(255, 255, 255,.98));
  box-shadow: var(--shadow);
  z-index: 40;
}
.dropdown-panel a { padding: 8px 10px; border-radius: 7px; font-size: 13px; color: var(--fg-dim); text-decoration: none; }
.dropdown-panel a:hover { background: rgba(217, 90, 40,.1); color: var(--fg); }
.dropdown-panel a.active { color: var(--accent); }
.dropdown-email { padding: 6px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--border); font-size: 12px; color: var(--fg-faint); word-break: break-all; }
.dropdown-logout { color: #c14a3a !important; }
.dropdown-logout:hover { background: rgba(193, 74, 58,.12) !important; }

.btn-login {
  padding: 8px 15px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
}

.btn-login:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- 通用玻璃卡 ---------- */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.eyebrow {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-faint);
  font-weight: 600;
}

section.view {
  padding: 34px 0 90px;
}

/* ---------- 首页 Hero ---------- */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.hero h1 {
  font-size: 34px;
  line-height: 1.12;
  font-weight: 750;
  letter-spacing: -.025em;
  text-wrap: balance;
  max-width: 16ch;
}

.hero h1 .accent {
  background: linear-gradient(120deg, var(--accent-strong), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  color: var(--fg-dim);
  margin-top: 10px;
  max-width: 52ch;
  font-size: 15px;
}

.stat-row {
  display: flex;
  gap: 14px;
}

.stat {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: rgba(23, 23, 26, .06);
  border: 1px solid var(--border);
  min-width: 104px;
}

.stat .n {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.stat .l {
  font-size: 11px;
  color: var(--fg-faint);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 3px;
}

/* ---------- Hero 数据可视化图表 ---------- */
/* 右列：图表在上、统计卡在下，垂直填满 Hero 高度，消除宽屏下的大片空白 */
.hero-right {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  min-width: 340px;
  max-width: 480px;
  flex: 1;
}

.hero-chart-container {
  width: 100%;
  min-height: 150px;
  padding: 14px 18px;
}

/* 条形图行：HTML/CSS 渲染（SVG 拉伸会让文字变形），label + 轨道 + 数值三段式 */
.hbar-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.hbar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}

.hbar-label {
  flex: 0 0 132px;
  font-size: 12px;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hbar-row:hover .hbar-label {
  color: var(--accent);
}

.hbar-track {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: rgba(23, 23, 26, .12);
  overflow: hidden;
}

.hbar-fill {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent-strong), var(--accent));
}

.hbar-val {
  flex: 0 0 26px;
  text-align: right;
  font-size: 11.5px;
  color: var(--fg-dim);
}

@media (max-width: 1024px) {
  .hero-chart-container {
    display: none;
  }
  .hero-right {
    min-width: 0;
    max-width: none;
  }
}

/* ---------- 过滤栏 ---------- */
.filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 22px;
  align-items: center;
  margin-bottom: 20px;
  padding: 16px 18px;
}

.filter-primary { min-width: 0; }
.filter-title { display:flex; align-items:baseline; gap:9px; margin-bottom:9px; font-size:13px; font-weight:650; }
.filter-title small { color:var(--fg-faint); font-size:11px; font-weight:400; }
.window-pills { display:flex; gap:5px; flex-wrap:wrap; padding:4px; border:1px solid var(--border); border-radius:12px; background:rgba(23, 23, 26,.04); }
.window-pill { border-color:transparent; padding:7px 12px; font-variant-numeric:tabular-nums; }
.window-pill.active { box-shadow:0 4px 14px rgba(217, 90, 40,.28); }
.filter-secondary { display:flex; align-items:center; justify-content:flex-end; gap:15px; flex-wrap:wrap; }

.fgroup {
  display: flex;
  gap: 6px;
  align-items: center;
}

.fgroup .cap {
  font-size: 11px;
  color: var(--fg-faint);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-right: 2px;
}

.pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--fg-dim);
  border: 1px solid var(--border);
  transition: all .16s;
  display: inline-block;
}

.pill:hover {
  color: var(--fg);
  border-color: var(--border-strong);
}

.pill.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  font-weight: 600;
}

.filters .spacer {
  display:none;
}

@media (max-width: 980px) {
  .filters { grid-template-columns:1fr; }
  .filter-secondary { justify-content:flex-start; }
}
@media (max-width: 600px) {
  .filters { padding:14px; gap:14px; }
  .filter-title { flex-direction:column; gap:2px; }
  .window-pills { width:100%; }
  .window-pill { flex:1 1 72px; text-align:center; }
  .filter-secondary { gap:10px; }
  .fgroup { width:100%; overflow-x:auto; padding-bottom:2px; }
  .sel { width:100%; }
}

.sel {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--fg);
  background: var(--surface-solid);
  border: 1px solid var(--border);
}

/* ---------- 榜单大盘 ---------- */
.board-head,
.row {
  display: grid;
  grid-template-columns: 52px 1fr 118px 120px 132px 96px;
  gap: 16px;
  align-items: center;
}

.board-head {
  padding: 10px 20px;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-faint);
  font-weight: 600;
}

.board {
  padding: 6px;
}

.row {
  padding: 15px 14px;
  border-radius: 12px;
  position: relative;
  transition: background .16s, transform .16s;
}

.row+.row {
  margin-top: 2px;
}

.row:hover {
  background: rgba(217, 90, 40, .06);
  transform: translateX(2px);
}

.row:hover .rank .no {
  color: var(--accent);
}

.rank {
  display: flex;
  align-items: center;
  gap: 9px;
}

.rank .no {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 600;
  color: var(--fg-dim);
  width: 26px;
  text-align: right;
}

.rank .mv {
  font-size: 12px;
  font-family: var(--mono);
  display: flex;
  align-items: center;
  gap: 2px;
}

.mv.up {
  color: var(--up);
}

.mv.down {
  color: var(--down);
}

.mv.flat {
  color: var(--flat);
}

.feat .name {
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -.01em;
}

.feat .name .hot {
  color: var(--gold);
  font-size: 13px;
  margin-left: 5px;
}

.feat .tags {
  display: flex;
  gap: 6px;
  margin-top: 7px;
  flex-wrap: wrap;
}

.tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(23, 23, 26, .1);
  color: var(--fg-dim);
  font-family: var(--mono);
}

.tag.tool-badge,
.badge.tool-badge {
  color: #ffffff;
  background: linear-gradient(120deg, var(--accent-strong), var(--accent));
  font-family: var(--sans);
  font-weight: 700;
  border-color: transparent;
  cursor: pointer;
}
.badge.tool-badge:hover { filter: brightness(1.06); }

.tag.tech {
  color: #ea7c45;
  background: rgba(217, 90, 40, .1);
}

/* 涨跌 pill */
.trend {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  justify-self: start;
}

.trend.up {
  color: var(--up);
  background: var(--up-bg);
}

.trend.down {
  color: var(--down);
  background: var(--down-bg);
}

.trend.flat {
  color: var(--flat);
  background: rgba(157, 157, 163, .14);
}

.mentions {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--fg);
}

.mentions small {
  display: block;
  font-size: 11px;
  color: var(--fg-faint);
  font-family: var(--sans);
}

.budget {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 5px;
}

.budget small {
  color: var(--fg-faint);
  font-size: 11px;
}

.spark {
  width: 88px;
  height: 30px;
  display: block;
}

/* ---------- 详情页 ---------- */
.crumb {
  font-size: 13px;
  color: var(--fg-faint);
  margin-bottom: 16px;
}

.crumb a:hover {
  color: var(--accent);
}

.detail-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.detail-head h1 {
  font-size: 28px;
  font-weight: 730;
  letter-spacing: -.02em;
  max-width: 20ch;
  text-wrap: balance;
}

.badges {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-family: var(--mono);
  border: 1px solid var(--border);
}

.badge.rank {
  background: rgba(217, 90, 40, .12);
  color: var(--accent);
  border-color: transparent;
}

.mine-btn {
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 650;
  font-size: 14.5px;
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #ffffff;
  box-shadow: 0 8px 24px -8px var(--accent);
  transition: transform .15s, box-shadow .15s;
  white-space: nowrap;
}

.mine-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -8px var(--accent);
}

.mine-btn:active:not(:disabled) {
  transform: translateY(0);
}

.mine-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
  color: var(--fg-faint);
}

.cookie-btn {
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 650;
  font-size: 14px;
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #ffffff;
  box-shadow: 0 8px 24px -8px var(--accent);
  transition: transform .15s, box-shadow .15s;
  white-space: nowrap;
}

.cookie-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -8px var(--accent);
}

.cookie-btn:active {
  transform: translateY(0);
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  margin-top: 22px;
  align-items: start;
}

.grid2>.evidence {
  position: sticky;
  top: 82px;
  max-height: calc(100vh - 102px);
  overflow-y: auto;
}

.panel {
  padding: 22px;
}

.panel h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--fg-faint);
  margin-bottom: 14px;
  font-weight: 600;
}

.panel p.body {
  color: #3a3630;
  font-size: 14.5px;
  line-height: 1.7;
  max-width: 64ch;
}

/* ch is sized off the Latin '0' glyph; CJK characters render roughly twice as
   wide, so a Latin-tuned max-width forces short, choppy line wraps on zh-hans
   paragraphs. Let CJK body copy use the panel's natural width instead. */
html[lang^="zh"] .panel p.body,
html[lang^="zh"] .hero p,
html[lang^="zh"] .hero h1,
html[lang^="zh"] .footer-brand .disc {
  max-width: none;
}

.panel+.panel {
  margin-top: 16px;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}

.mcard {
  padding: 14px;
  border-radius: 10px;
  background: rgba(23, 23, 26, .05);
  border: 1px solid var(--border);
}

.mcard .k {
  font-size: 11px;
  color: var(--fg-faint);
  text-transform: uppercase;
  letter-spacing: .07em;
}

.mcard .v {
  font-size: 22px;
  font-weight: 700;
  font-family: var(--mono);
  margin-top: 4px;
}

/* 地域条 */
.geo {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.geo .g {
  display: grid;
  grid-template-columns: 60px 1fr 40px;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}

.geo .bar {
  height: 8px;
  border-radius: 4px;
  background: rgba(23, 23, 26, .12);
  overflow: hidden;
}

.geo .bar i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
}

.geo .pct {
  font-family: var(--mono);
  color: var(--fg-dim);
  text-align: right;
  font-size: 12px;
}

/* 证据面板 */
.evidence .ev {
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}

.evidence .ev:last-child {
  border-bottom: none;
}

.ev .et {
  font-size: 13.5px;
  color: #17171a;
  line-height: 1.5;
}

.ev .em {
  display: flex;
  gap: 10px;
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--fg-faint);
  font-family: var(--mono);
  align-items: center;
  flex-wrap: wrap;
}

.ev .plat {
  color: var(--accent);
}

.ev .ext {
  margin-left: auto;
  color: var(--fg-dim);
}

.ev .ext:hover {
  color: var(--accent);
}

.src-note {
  font-size: 11px;
  color: var(--fg-faint);
  margin-top: 14px;
  line-height: 1.5;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

/* 锁区（分层变现）*/
.lock {
  position: relative;
  overflow: hidden;
}

.lock .blurred {
  filter: blur(6px);
  opacity: .5;
  pointer-events: none;
  user-select: none;
}

.lock .gate {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .96));
}

.gate .glabel {
  font-size: 13px;
  color: var(--fg-dim);
  max-width: 32ch;
}

.gate .cta {
  padding: 9px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13.5px;
}

.gate .cta.free {
  background: var(--accent);
  color: #ffffff;
}

.gate .cta.pro {
  background: linear-gradient(120deg, var(--accent-strong), var(--gold));
  color: #ffffff;
}

.gate .tier {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
}

.tier.free {
  background: rgba(217, 90, 40, .16);
  color: var(--accent);
}

.tier.pro {
  background: rgba(217, 90, 40, .16);
  color: var(--gold);
}

/* 挖掘结果 */
#mineResult {
  margin-top: 18px;
  display: none;
}

#mineResult.show {
  display: block;
}

.mine-loading {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 20px;
  color: var(--fg-dim);
  font-size: 14px;
}

.mine-loading.show {
  display: flex;
}

.digger {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.idea-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.idea {
  padding: 18px;
  border-radius: 12px;
  background: rgba(23, 23, 26, .05);
  border: 1px solid var(--border);
  transition: border-color .16s;
}

.idea:hover {
  border-color: var(--accent);
}

.idea .kind {
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.idea h4 {
  font-size: 15px;
  margin: 8px 0 7px;
  letter-spacing: -.01em;
}

.idea p {
  font-size: 12.5px;
  color: var(--fg-dim);
  line-height: 1.6;
}

.idea .st {
  display: flex;
  gap: 5px;
  margin-top: 11px;
  flex-wrap: wrap;
}

/* 机会评分环 */
.score-wrap {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 6px;
}

.ring {
  --v: 88;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  flex-shrink: 0;
  background: conic-gradient(var(--up) calc(var(--v)*1%), rgba(23, 23, 26, .14) 0);
  display: grid;
  place-items: center;
  position: relative;
}

.ring::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--bg-raise);
}

.ring b {
  position: relative;
  z-index: 1;
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
}

.score-legend {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
}

.score-legend .sl {
  display: flex;
  align-items: center;
  gap: 9px;
}

.score-legend .swatch {
  width: 9px;
  height: 9px;
  border-radius: 2px;
}

.data-snapshot { margin-top: 9px; color: var(--fg-faint); font-size: 11px; }
.data-snapshot a { color: var(--accent); }
.stats-context { margin: -3px 0 14px; color: var(--fg-faint); font-size: 12px; }
.ranking-reason { display: block; margin-top: 6px; color: var(--fg-dim); font-size: 12px; line-height: 1.45; }
.workbench-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.workbench-column { display: grid; align-content: start; gap: 8px; }
.workbench-card { display: flex; justify-content: space-between; gap: 8px; padding: 11px 12px; text-decoration: none; }
.score-badge { align-self: start; padding: 4px 7px; border-radius: 6px; background: rgba(217, 90, 40, .14); color: var(--gold); font-size: 12px; white-space: nowrap; }
.dimension-bars { display: grid; min-width: min(100%, 230px); gap: 10px; }
.dimension-bar { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; color: var(--fg-dim); font-size: 12px; }
.dimension-track { grid-column: 1 / -1; height: 7px; overflow: hidden; border-radius: 999px; background: rgba(23, 23, 26, .14); }
.dimension-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-strong)); transition: width .15s ease-out; }
.dimension-bar.inverse .dimension-track i { margin-left: auto; background: linear-gradient(90deg, var(--accent-strong), var(--accent)); }
.locked-teaser { display: grid; justify-items: center; gap: 10px; margin-top: 12px; padding: 16px; border: 1px solid var(--border); border-radius: 10px; background: rgba(23, 23, 26,.04); text-align: center; }
.locked-teaser-placeholder { width: min(100%, 280px); padding: 10px; border-radius: 8px; opacity: .56; filter: blur(3px); pointer-events: none; }
.locked-teaser-placeholder span, .locked-teaser-placeholder i { display: block; height: 8px; margin: 7px 0; border-radius: 4px; background: rgba(23, 23, 26, .18); }
.locked-teaser-placeholder span { width: 48%; }
.locked-teaser-placeholder i:nth-child(3) { width: 78%; }
.locked-teaser-placeholder i:nth-child(4) { width: 62%; }
.locked-teaser-link { color: var(--fg-dim); font-size: 12px; text-decoration: underline; }

footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 28px;
  color: var(--fg-faint);
  font-size: 12px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand .foot-logo { color: var(--fg); font-weight: 750; font-size: 15px; margin-bottom: 10px; }
.footer-brand .disc { max-width: 42ch; line-height: 1.65; margin-bottom: 16px; }
.foot-social { display: inline-flex; align-items: center; gap: 6px; color: var(--fg-dim); text-decoration: none; font-weight: 600; transition: color .16s var(--ease-out); }
.foot-social:hover { color: var(--accent); }

.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col .foot-heading { color: var(--fg-dim); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px; }
.footer-col a { color: var(--fg-faint); text-decoration: none; }
.footer-col a:hover { color: var(--accent); }

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .grid2 {
    grid-template-columns: 1fr;
  }
  .grid2>.evidence {
    position: static;
    max-height: none;
    overflow-y: visible;
  }
  .idea-cards {
    grid-template-columns: 1fr;
  }
  .board-head {
    display: none;
  }
  .row {
    grid-template-columns: 44px 1fr auto;
    row-gap: 10px;
  }
  .row .spark,
  .row .mentions {
    display: none;
  }
  .hero h1 {
    font-size: 27px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Professional data-product refresh ---------- */
:root {
  /* 2026-08-18: 这一层曾经二次覆盖 --bg/--up/--down/--gold，是深色版视觉的
     真正生效值。改版后直接复用顶部 :root 的浅色 token，不再重复声明，
     避免两层 :root 各存一份、以后改一处忘改另一处。 */
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

html { background: var(--bg); }

body {
  min-width: 320px;
  background-image: none;
  background-attachment: fixed;
}

.wrap { max-width: 1240px; padding-inline: 32px; }

header.top {
  background: rgba(255, 255, 255, .82);
  border-bottom-color: var(--border);
  backdrop-filter: blur(18px) saturate(135%);
}

.top .wrap { height: 70px; gap: 26px; }
.brand { gap: 11px; font-size: 17px; letter-spacing: -.025em; }
.brand-mark { width: 30px; height: 30px; flex-basis: 30px; }

nav.tabs { gap: 2px; margin-left: 12px; }
nav.tabs a {
  position: relative;
  padding: 9px 12px;
  color: var(--fg-faint);
  border-radius: 7px;
  transition: color .18s var(--ease-out), background .18s var(--ease-out);
}
nav.tabs a.active { color: var(--fg); background: transparent; }
nav.tabs a.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
nav.tabs a:hover { background: rgba(23, 23, 26,.05); color: var(--fg); }

.btn-login {
  display: inline-flex !important;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 14px !important;
  border: 1px solid rgba(217, 90, 40, .45) !important;
  border-radius: 8px !important;
  background: linear-gradient(135deg, #ea7c45, #d95a28) !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  box-shadow: 0 8px 18px -13px rgba(217, 90, 40, .9);
  transition: transform .18s var(--ease-out), filter .18s var(--ease-out) !important;
}
.btn-login:hover, .btn-logout:hover { color: #ffffff !important; filter: brightness(1.08); transform: translateY(-1px); }
.user-menu { display:flex; align-items:center; gap:12px; }
.user-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg-dim); font-size: 13px; }
.btn-logout { background: transparent !important; border-color: var(--border-strong) !important; color: var(--fg-dim) !important; box-shadow: none; }
.btn-logout:hover { color: var(--fg) !important; border-color: var(--fg-faint) !important; }

section.view { padding: 48px 0 96px; }
.glass { background: linear-gradient(145deg, rgba(255, 255, 255,.96), rgba(255, 255, 255,.96)); border-color: var(--border); box-shadow: var(--shadow); backdrop-filter: none; }
.eyebrow { color: #8b877e; letter-spacing: .13em; }

.hero {
  align-items: stretch;
  gap: 42px;
  margin-bottom: 34px;
  padding: 38px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(255, 255, 255,.94), rgba(255, 255, 255,.82));
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -180px;
  top: -245px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 90, 40,.16), transparent 67%);
}
.hero > * { position: relative; z-index: 1; }
/* 文字列没有宽度上限时会把 .hero-right 挤到下一行折行——.hero-right 单独占一行、
   右边一大截空白，就是"布局问题一直没解决"截图里那种视觉——加个上限让两列
   真正并排。 */
.hero:has(.hero-right) > div:first-child { max-width: 620px; flex: 1 1 480px; }
.hero h1 { max-width: 17ch; font-size: clamp(2.15rem, 4vw, 3.55rem); line-height: 1.28; letter-spacing: -.01em; }
.hero h1 .accent { background: linear-gradient(105deg, #ea7c45, #d95a28); -webkit-background-clip: text; background-clip: text; }
.hero p { max-width: 59ch; margin-top: 18px; font-size: 15.5px; line-height: 1.75; color: var(--fg-dim); }
.hero-right { max-width: 500px; min-width: 380px; gap: 14px; z-index: 1; }

/* .hero is a 2-column flex (text + .hero-right) so justify-content:space-between
   balances the row. Pages that only render the text half (no .hero-right, e.g.
   faq/features/pricing/report_list/forum_list) were left with a large blank
   void on wide screens instead. Fall back to a plain single-column block
   whenever there's no .hero-right sibling, instead of patching each template. */
.hero:not(:has(.hero-right)) { display: block; }
.hero:not(:has(.hero-right)) h1 { max-width: 34ch; }
.hero:not(:has(.hero-right)) p { max-width: 72ch; }
.hero-chart-container { min-height: 172px; padding: 17px 19px; border-radius: 12px; border-color: var(--border); background: var(--surface); box-shadow: var(--shadow); }
.stat-row { gap: 10px; flex-wrap: wrap; }
.stat { flex: 1; min-width: 116px; padding: 16px; border-radius: 11px; background: var(--surface); border-color: var(--border); box-shadow: var(--shadow); }
.stat .n { font-size: 26px; color: #17171a; }
.stat .l { letter-spacing: .075em; color: var(--fg-faint); }

.insight-zone { margin-bottom: 28px !important; }
.insight-cards { gap: 12px !important; }
.insight-cards .panel { min-height: 156px; border-radius: 12px; transition: transform .2s var(--ease-out), border-color .2s var(--ease-out), background .2s var(--ease-out); }
.insight-cards .panel:hover { transform: translateY(-3px); border-color: rgba(217, 90, 40,.44); background: var(--surface-raised); }

.filters {
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 18px;
  padding: 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255,.94);
}
.filter-title { margin-bottom: 11px; font-size: 13px; }
.filter-title small { color: var(--fg-faint); }
.window-pills { gap: 4px; padding: 4px; border-radius: 10px; background: rgba(23, 23, 26,.05); border-color: var(--border); }
.pill { padding: 7px 11px; border-color: transparent; color: var(--fg-dim); border-radius: 7px; font-weight: 500; transition: color .18s var(--ease-out), background .18s var(--ease-out), border-color .18s var(--ease-out), transform .18s var(--ease-out); }
.pill:hover { color: var(--fg); background: rgba(23, 23, 26,.05); border-color: transparent; }
.pill.active { border-color: rgba(217, 90, 40,.25); background: rgba(217, 90, 40,.14); color: #c14a1f; box-shadow: none; }
.window-pill { padding: 8px 14px; }
.window-pill.active { box-shadow: 0 6px 16px -13px rgba(217, 90, 40,.75); }
.filter-secondary { justify-content: space-between; gap: 12px 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.fgroup { gap: 4px; padding: 3px; border-radius: 9px; background: rgba(23, 23, 26,.05); }
.fgroup .cap { margin-inline: 5px 3px; }
.sel { min-height: 36px; border-radius: 8px; padding: 6px 30px 6px 12px; border-color: var(--border); background: var(--surface-solid); }

.board { padding: 8px; border-radius: 14px; overflow: hidden; }
.board-head { padding: 13px 16px 11px; color: #6b6b72; border-bottom: 1px solid var(--border); }
.row { min-height: 78px; padding: 15px 16px; border-radius: 9px; border: 1px solid transparent; transition: transform .18s var(--ease-out), background .18s var(--ease-out), border-color .18s var(--ease-out); }
.row + .row { margin-top: 1px; }
.row:hover { transform: none; background: rgba(217, 90, 40,.075); border-color: rgba(217, 90, 40,.16); }
.feat .name { font-size: 15.5px; line-height: 1.35; }
.tag { border-radius: 5px; background: rgba(23, 23, 26,.09); }
.tag.tech { color: #a8541f; background: rgba(217, 90, 40,.12); }
.trend { min-width: 74px; justify-content: center; padding: 5px 8px; }
.spark { opacity: .9; }

.detail-head h1 { font-size: clamp(1.85rem, 3vw, 2.65rem); line-height: 1.1; }
.panel { padding: 24px; border-radius: 14px; }
.panel h3 { color: #6b6b72; }
.mcard, .idea { border-radius: 10px; background: var(--bg); border-color: var(--border); }
.mine-btn, .cookie-btn { min-height: 44px; border-radius: 9px; background: linear-gradient(135deg, #ea7c45, #d95a28); color: #ffffff; box-shadow: 0 12px 22px -16px rgba(217, 90, 40,.9); }
.mine-btn:hover:not(:disabled), .cookie-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }

footer { margin-top: 24px; background: var(--surface); border-top-color: var(--border); }
#cookie-banner { border-color: var(--border) !important; border-radius: 14px !important; background: #ffffff !important; box-shadow: 0 22px 60px -28px rgba(20, 20, 25,.24) !important; }

@media (max-width: 860px) {
  .wrap { padding-inline: 20px; }
  .top .wrap { height: auto; min-height: 64px; gap: 12px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .top .spacer { display: none; }
  nav.tabs { order: 3; width: 100%; margin: 0; overflow-x: auto; padding-bottom: 1px; }
  nav.tabs a { flex: 0 0 auto; }
  .user-name { display: none; }
  section.view { padding-top: 26px; }
  .hero { padding: 25px; gap: 26px; margin-inline: -2px; }
  .hero-right { width: 100%; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.75rem); }
  .stat { min-width: 0; padding: 13px 11px; }
  .stat .n { font-size: 22px; }
  .filters { padding: 14px; }
  .filter-secondary { align-items: stretch; }
  .fgroup { max-width: 100%; }
}

@media (max-width: 560px) {
  .brand { font-size: 16px; }
  .lang { margin-left: auto; }
  .btn-login, .btn-logout { min-height: 36px; padding-inline: 11px !important; }
  .hero { padding: 22px 18px; border-radius: 14px; }
  .hero p { font-size: 14px; line-height: 1.68; }
  .stat-row { gap: 7px; }
  .stat .l { font-size: 9px; letter-spacing: .055em; }
  .window-pills { display: grid; grid-template-columns: repeat(3, 1fr); }
  .window-pill { min-width: 0; padding-inline: 6px; font-size: 12px; }
  .board { padding: 5px; }
  .row { padding: 14px 10px; }
  .panel { padding: 18px; }
  #cookie-banner { left: 12px !important; right: 12px !important; bottom: 12px !important; padding: 16px !important; flex-direction: column; align-items: stretch !important; }
  #cookie-banner > div { padding-right: 0 !important; }
}

/* ---------- Authentication ---------- */
.auth-view { display: grid; min-height: calc(100dvh - 180px); place-items: center; padding: 48px 20px; }
.auth-card { width: min(100%, 460px); padding: 34px; border-radius: 16px; }
.auth-heading { margin-bottom: 26px; text-align: center; }
.auth-heading .eyebrow { display: block; margin-bottom: 11px; }
.auth-heading h1 { font-size: 28px; line-height: 1.3; letter-spacing: -.01em; }
.auth-heading p { margin-top: 8px; color: var(--fg-dim); font-size: 14px; }
.auth-form { display: grid; gap: 9px; }
.auth-form label { margin-top: 7px; color: var(--fg-dim); font-size: 13px; font-weight: 600; }
.auth-form input {
  min-height: 46px;
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: rgba(23, 23, 26,.03);
  color: var(--fg);
  font: inherit;
  outline: none;
  transition: border-color .18s var(--ease-out), box-shadow .18s var(--ease-out), background .18s var(--ease-out);
}
.auth-form input:focus { border-color: rgba(217, 90, 40,.7); background: #ffffff; box-shadow: 0 0 0 3px rgba(217, 90, 40,.14); }
.auth-submit { min-height: 46px; margin-top: 15px; border-radius: 9px; background: linear-gradient(135deg, #ea7c45, #d95a28); color: #ffffff; font-size: 14px; font-weight: 750; transition: transform .18s var(--ease-out), filter .18s var(--ease-out); }
.auth-submit:hover { filter: brightness(1.07); transform: translateY(-1px); }
.auth-error { margin-bottom: 18px; padding: 12px 14px; border: 1px solid rgba(193, 74, 58,.28); border-radius: 9px; background: var(--down-bg); color: var(--down); font-size: 13px; line-height: 1.55; }
.password-checklist { display: grid; gap: 5px; margin: 2px 0 5px; padding: 11px 12px; border: 1px solid var(--border); border-radius: 9px; background: rgba(23, 23, 26,.04); color: var(--fg-faint); font-size: 12px; }
.password-checklist strong { margin-bottom: 2px; color: var(--fg-dim); font-size: 12px; }
.password-checklist span { display: flex; align-items: center; gap: 7px; }
.password-checklist i { width: 14px; color: var(--fg-faint); font-size: 14px; font-style: normal; text-align: center; }
.password-checklist .is-valid { color: #3f8f45; }
.password-checklist .is-valid i { color: var(--up); }
.social-login { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; }
.social-button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; padding: 9px; border: 1px solid var(--border-strong); border-radius: 9px; background: rgba(23, 23, 26,.03); color: var(--fg-dim); font-size: 13px; font-weight: 650; transition: background .18s var(--ease-out), border-color .18s var(--ease-out), transform .18s var(--ease-out); }
.social-button svg { width: 18px; height: 18px; }
.social-button:hover { transform: translateY(-1px); border-color: rgba(217, 90, 40,.52); background: rgba(217, 90, 40,.1); color: var(--fg); }
.social-twitter_oauth2:hover { background: rgba(23, 23, 26,.05); }
.auth-divider { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 20px 0; color: var(--fg-faint); font-size: 12px; }
.auth-divider::before, .auth-divider::after { height: 1px; background: var(--border); content: ""; }
.auth-switch { margin-top: 24px; text-align: center; color: var(--fg-dim); font-size: 13px; }
.auth-switch a { margin-left: 4px; color: #d9752e; font-weight: 700; }
.auth-switch a:hover { color: var(--fg); }
@media (max-width: 560px) { .auth-view { padding: 26px 14px; } .auth-card { padding: 24px 18px; } }

.faq-list { display: grid; gap: 12px; max-width: 760px; margin: 28px auto 0; }
.faq-item { padding: 0; overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 650; color: var(--fg); font-size: 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; transition: color .16s var(--ease-out); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex-shrink: 0; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(217, 90, 40,.12); color: var(--accent); font-size: 16px; line-height: 1; transition: transform .18s var(--ease-out), background .18s var(--ease-out); }
.faq-item:hover summary { color: var(--accent); }
.faq-item[open] summary::after { transform: rotate(45deg); background: rgba(217, 90, 40,.2); }
.faq-item p { margin: 0 22px 20px; color: var(--fg-dim); font-size: 14px; line-height: 1.7; }
@media (prefers-reduced-motion: reduce) { .faq-item summary::after { transition: none; } }

.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; margin-top: 28px; }
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(255, 255, 255,.96), rgba(255, 255, 255,.96));
  box-shadow: var(--shadow);
}
.pricing-card-head h3 { font-size: 17px; font-weight: 750; color: var(--fg); margin: 0; }
.pricing-sub { margin: 4px 0 0; font-size: 12.5px; color: var(--fg-faint); }
.pricing-price { display: flex; align-items: baseline; gap: 4px; margin: 18px 0 2px; }
.pricing-price .amount { font-size: 32px; font-weight: 800; color: var(--fg); letter-spacing: -.02em; }
.pricing-price .period { font-size: 13px; color: var(--fg-faint); }
.pricing-value { font-size: 12.5px; color: var(--accent); font-weight: 600; margin-bottom: 18px; }
.pricing-features { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.pricing-features li { font-size: 13px; color: var(--fg-dim); line-height: 1.5; }
.pricing-cta { display: flex; width: 100%; align-items: center; justify-content: center; text-decoration: none; }

.pricing-card-featured {
  border-color: rgba(217, 90, 40,.55);
  background: linear-gradient(165deg, rgba(234, 124, 69,.16), rgba(255, 255, 255,.98));
  box-shadow: 0 24px 48px -24px rgba(217, 90, 40,.55), var(--shadow);
  transform: scale(1.035);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ea7c45, #d95a28);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pricing-cta-featured { box-shadow: 0 14px 26px -14px rgba(217, 90, 40,.95); }
.pricing-annual-note { margin-top: 18px; text-align: center; font-size: 12.5px; color: var(--fg-faint); }

.token-scenario-group-label { margin: 4px 0 10px; font-size: 13px; color: var(--fg-faint); letter-spacing: .02em; }
.token-scenarios { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 28px; }
.token-scenario {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-radius: 10px;
  background: rgba(23, 23, 26, .05); border: 1px solid var(--border);
}
.token-scenario-label { font-size: 14px; color: var(--fg); }
.token-scenario-cost {
  flex-shrink: 0; min-width: 34px; text-align: center;
  padding: 3px 9px; border-radius: 20px; font-family: var(--mono); font-size: 13px; font-weight: 700;
  color: var(--accent); background: rgba(217, 90, 40, .12); border: 1px solid rgba(217, 90, 40, .3);
}

/* Community interaction widgets — comments/votes/tool cards, used on the
   feature detail page AND the forum (moved here from detail.html's local
   <style> 2026-07-26 so non-detail pages can reuse them). */
.interaction-btn {
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--fg);
  box-shadow: var(--shadow);
  transition: all .15s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.interaction-btn:hover {
  background: var(--surface-solid);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.interaction-btn.active {
  background: rgba(63, 143, 69, 0.15);
  border-color: var(--up);
  color: var(--up);
}
.interaction-btn.bookmarked {
  background: rgba(217, 90, 40, 0.15);
  border-color: var(--gold);
  color: var(--gold);
}

.comments-section { margin-top: 24px; }
.comment-card {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--fg-dim);
  margin-bottom: 8px;
}
.comment-user { font-weight: 600; color: var(--fg); }
.comment-body {
  font-size: 14.5px;
  color: var(--fg);
  line-height: 1.6;
  white-space: pre-wrap;
}
.comment-badge {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
}
.comment-badge.pending {
  background: rgba(217, 90, 40, 0.12);
  color: var(--gold);
  border: 1px solid rgba(217, 90, 40, 0.2);
}
.replies-list {
  margin-left: 24px;
  border-left: 2px solid var(--border);
  padding-left: 16px;
  margin-top: 12px;
}
.comment-form-container { margin-top: 16px; margin-bottom: 24px; }
.comment-textarea {
  width: 100%;
  min-height: 80px;
  background: rgba(23, 23, 26, 0.6);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  color: var(--fg);
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  margin-bottom: 10px;
}
.comment-textarea:focus { outline: none; border-color: var(--accent); }
.reply-trigger-btn {
  font-size: 12.5px;
  color: var(--accent);
  margin-top: 8px;
  display: inline-block;
  cursor: pointer;
}
.reply-trigger-btn:hover { text-decoration: underline; }

/* Community tool submissions + forum posts share this card look */
.tool-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 14px;
  background: rgba(23, 23, 26, .04);
}
.tool-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 6px;
}
.tool-name-link { font-weight: 650; font-size: 15px; color: var(--fg); text-decoration: none; }
.tool-name-link:hover { color: var(--accent); }
.tool-submitter { font-size: 12.5px; color: var(--fg-dim); }
.tool-description { font-size: 14px; color: var(--fg-dim); line-height: 1.6; margin: 6px 0; }
.tool-vote-widget { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.tool-vote-widget .interaction-btn { padding: 4px 8px; font-size: 13px; }
.tool-vote-score { font-family: var(--mono); font-weight: 700; min-width: 20px; text-align: center; }
.tool-status-badge {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
}
.tool-status-badge.pending {
  background: rgba(217, 90, 40, 0.12);
  color: var(--gold);
  border: 1px solid rgba(217, 90, 40, 0.2);
}
.tool-status-badge.rejected {
  background: rgba(193, 74, 58, 0.12);
  color: var(--down);
  border: 1px solid rgba(193, 74, 58, 0.2);
}
.tool-submit-form input[type="text"], .tool-submit-form input[type="url"] {
  width: 100%;
  background: rgba(23, 23, 26, 0.6);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--fg);
  font-family: inherit;
  font-size: 14px;
  margin-bottom: 8px;
}
.tool-submit-form input:focus { outline: none; border-color: var(--accent); }

/* Reddit-style forum layout — 2026-07-27 redesign: vertical vote column,
   compact list rows instead of boxed cards, threaded comments with a
   connector line (reuses .replies-list) and a collapse toggle. Scoped to
   the forum only ("rd-" prefix) so the ToolSubmission widgets above are
   untouched. */
.rd-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.rd-row:hover { background: rgba(23, 23, 26, .05); }
.rd-vote {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  width: 34px;
  padding-top: 2px;
}
.rd-vote-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  padding: 3px;
  color: var(--fg-faint);
  border-radius: 4px;
  transition: color .15s, background .15s;
}
.rd-vote-btn:hover { background: var(--surface); color: var(--fg); }
.rd-vote-btn.up.active { color: var(--accent); }
.rd-vote-btn.down.active { color: var(--down); }
.rd-vote-score { font-family: var(--mono); font-weight: 700; font-size: 13px; color: var(--fg); }
.rd-vote-score.up { color: var(--accent); }
.rd-vote-score.down { color: var(--down); }

.rd-post-main { flex: 1; min-width: 0; }
.rd-post-title-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.rd-post-title { font-size: 16px; font-weight: 650; color: var(--fg); text-decoration: none; }
.rd-post-title:hover { color: var(--accent); }
.rd-post-meta { font-size: 12.5px; color: var(--fg-dim); }
.rd-badge { font-size: 11px; padding: 2px 6px; border-radius: 4px; font-weight: bold; }
.rd-badge.pin { background: rgba(217, 90, 40, .12); color: var(--accent); border: 1px solid rgba(217, 90, 40, .3); }

.rd-post-detail { display: flex; gap: 16px; align-items: flex-start; }
.rd-post-detail .rd-post-main h1 { margin: 4px 0 6px; font-size: 22px; }

.rd-comment { display: flex; gap: 10px; padding: 10px 0; }
.rd-comment-vote { display: flex; flex-direction: column; align-items: center; gap: 1px; flex-shrink: 0; width: 26px; padding-top: 2px; }
.rd-comment-vote .rd-vote-btn { font-size: 12px; padding: 2px; }
.rd-comment-vote .rd-vote-score { font-size: 11.5px; }
.rd-comment-body-col { flex: 1; min-width: 0; }
.rd-comment-meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--fg-dim); margin-bottom: 4px; }
.rd-collapse-toggle { cursor: pointer; color: var(--fg-faint); font-family: var(--mono); user-select: none; }
.rd-collapse-toggle:hover { color: var(--fg); }
.rd-comment-actions { margin-top: 4px; }

/* Canonical typography for rendered Markdown (forum posts/replies, development-
   brief text) — one shared scale so these blocks stop drifting font-size/weight
   independently per template (2026-07-27, see apps/core/templatetags/markdown_extras.py). */
.md-content { font-size: 14.5px; line-height: 1.65; color: var(--fg-dim); }
.md-content > *:first-child { margin-top: 0; }
.md-content > *:last-child { margin-bottom: 0; }
.md-content p { margin: 0 0 10px; }
.md-content strong, .md-content b { color: var(--fg); font-weight: 650; }
.md-content ul, .md-content ol { margin: 0 0 10px; padding-left: 22px; }
.md-content li { margin-bottom: 4px; }
.md-content li > p { margin: 0; }
.md-content code { font-family: var(--mono); font-size: 13px; background: rgba(23, 23, 26, .12); padding: 1px 5px; border-radius: 4px; color: var(--fg); }
.md-content pre { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; overflow-x: auto; margin: 0 0 10px; }
.md-content pre code { background: none; padding: 0; }
.md-content blockquote { border-left: 3px solid var(--border-strong); padding-left: 12px; color: var(--fg-faint); margin: 0 0 10px; }
.md-content a { color: var(--accent); text-decoration: underline; }
.md-content h1, .md-content h2, .md-content h3, .md-content h4, .md-content h5, .md-content h6 { color: var(--fg); font-weight: 650; margin: 14px 0 6px; line-height: 1.3; }
.md-content h1 { font-size: 18px; }
.md-content h2 { font-size: 16.5px; }
.md-content h3, .md-content h4, .md-content h5, .md-content h6 { font-size: 15px; }
.md-content hr { border: none; border-top: 1px solid var(--border); margin: 14px 0; }
/* .comment-body normally pre-wraps raw user text; markdown output is already
   real HTML block elements, so the source newlines between tags must not
   also render as visible whitespace (was doubling the gap between blocks). */
.comment-body.md-content { white-space: normal; }

@media (max-width: 980px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-card-featured { transform: none; }
}
@media (max-width: 560px) {
  .pricing-grid { grid-template-columns: 1fr; }
}
