/* 设计变量已统一迁移至 assets/research-tokens.css（母版 qmt_dashboard.py :root 的镜像）。
   本文件不再定义任何 token，只消费变量，避免出现第二套设计系统。 */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  /* 背景/字体/行高由 research-tokens.css 统一提供（母版为纯色 #f5f7fb，无渐变） */
  margin: 0;
  min-width: 320px;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--dash-primary-deep);
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 15px 28px;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--dash-border);
  box-shadow: 0 2px 12px rgba(20, 54, 100, 0.035);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
}

.brand-symbol {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #cfe0ff;
  border-radius: 12px;
  color: var(--dash-primary);
  background: linear-gradient(145deg, #e6f0ff, #f7fbff);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.9), 0 8px 18px rgba(37, 99, 235, 0.12);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.brand-name {
  display: block;
  color: #111827;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.brand-sub {
  display: block;
  margin-top: 2px;
  color: var(--dash-text-muted);
  font-size: 11px;
  font-weight: 600;
}

.topbar-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: var(--dash-text-muted);
  font-size: 12px;
  white-space: nowrap;
}

.topbar-chip {
  padding: 7px 11px;
  border: 1px solid #cfe0ff;
  border-radius: 999px;
  color: var(--dash-primary);
  background: var(--dash-primary-soft);
  font-weight: 700;
}

.topbar-chip.neutral {
  border-color: var(--dash-border);
  color: var(--dash-text-muted);
  background: #fff;
}

main {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: var(--content-padding-top) var(--content-padding-x) var(--content-padding-bottom);
}

.page-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 2px 0;
  flex-wrap: wrap;
}

.page-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 13px;
  border: 1px solid var(--dash-border);
  border-radius: 8px;
  color: var(--dash-text-muted);
  background: var(--dash-surface);
  box-shadow: none;
  font-size: 13px;
  font-weight: 820;
  white-space: nowrap;
}

.page-nav a:hover {
  border-color: #b9d1fb;
  color: var(--dash-primary-deep);
  background: #f8fbff;
}

.page-nav a.active {
  border-color: #111827;
  color: #fff;
  background: #111827;
  box-shadow: none;
}

.page-nav .nav-spacer {
  flex: 1;
}

.page-nav .nav-meta {
  color: var(--dash-text-muted);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.mkt-temp {
  --mt-blue: var(--dash-primary);
  --mt-ink: var(--dash-text);
  --mt-text: var(--dash-text-main);
  --mt-mut: var(--dash-text-muted);
  --mt-border: var(--dash-border);
  max-width: 1440px;
  margin: 0 auto;
  color: var(--mt-text);
  font-size: 14px;
}

.mkt-temp::before {
  content: "";
  display: block;
  height: 1px;
  margin: -6px 0 16px;
  background: linear-gradient(90deg, transparent, #cfe0ff 16%, #dbe4ef 50%, transparent 84%);
}

.mt-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin: 4px 2px 18px;
}

.mt-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.dash-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid #cfe0ff;
  border-radius: 50%;
  color: var(--dash-primary);
  background: linear-gradient(150deg, #e0edff, #eff6ff);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.9), 0 8px 18px rgba(37, 99, 235, 0.18);
}

.dash-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mt-title {
  display: inline;
  margin: 0;
  color: var(--mt-ink);
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.7px;
  line-height: 1.1;
}

.mt-badge {
  display: inline-block;
  margin-left: 12px;
  padding: 3px 10px;
  border: 1px solid #f6d5a8;
  border-radius: 8px;
  color: #e67e22;
  background: #fff3e0;
  font-size: 13px;
  font-weight: 750;
  vertical-align: 7px;
}

.mt-subtitle {
  margin-top: 8px;
  color: var(--mt-mut);
  font-size: 14px;
  font-weight: 540;
}

.mt-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mt-header-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 15px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--dash-primary), var(--dash-primary-deep));
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.27);
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.mt-update {
  padding: 9px 15px;
  border: 1px solid var(--dash-border);
  border-radius: 8px;
  color: var(--mt-mut);
  background: var(--dash-primary-soft);
  font-size: 13px;
  font-weight: 780;
  white-space: nowrap;
}

.mt-hero {
  display: grid;
  grid-template-columns: minmax(240px, 24%) minmax(0, 1fr);
  gap: 32px;
  align-items: stretch;
  margin-bottom: 18px;
  padding: 30px 32px;
  border: 1px solid #dbeafe;
  border-radius: 22px;
  background: linear-gradient(135deg, #fff 0%, #f8fbff 100%);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
}

.mt-small-label {
  color: var(--mt-mut);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.mt-bignum {
  margin: 6px 0 16px;
  color: var(--dash-primary);
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 52%, #0ea5e9 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 72px;
  font-weight: 900;
  letter-spacing: -2.5px;
  line-height: 1;
}

.mt-state {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--dash-primary), var(--dash-primary-deep));
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
  font-size: 14px;
  font-weight: 800;
}

.mt-zone-legend {
  list-style: none;
  margin: 18px 0;
  padding: 0;
}

.mt-zone-legend li {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 -8px;
  padding: 5px 8px;
  border-radius: 8px;
  color: var(--mt-text);
  font-size: 13.5px;
}

.mt-zone-legend li.active {
  color: var(--mt-ink);
  background: var(--dash-primary-soft);
  font-weight: 750;
}

.mt-zone-legend .dot {
  width: 10px;
  height: 10px;
  flex: none;
  display: inline-block;
  border-radius: 50%;
}

.zone-hot .dot { background: #e11d48; }
.zone-exp .dot { background: #f59e0b; }
.zone-draw .dot { background: #2563eb; }
.zone-ice .dot { background: #10b981; }

.mt-interp {
  margin-top: 6px;
  padding: 14px;
  border: 1px solid var(--mt-border);
  border-radius: 10px;
  background: #f8fafc;
}

.mt-interp-title {
  margin-bottom: 6px;
  color: var(--mt-ink);
  font-size: 13.5px;
  font-weight: 750;
}

.mt-interp-body {
  color: var(--mt-text);
  font-size: 13.5px;
  line-height: 1.7;
}

.mt-position-features {
  margin-top: 18px;
}

.mt-position-title {
  margin-bottom: 10px;
  color: var(--mt-ink);
  font-size: 14px;
  font-weight: 850;
}

.mt-position-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mt-feature-card {
  min-width: 0;
  min-height: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 8px;
  border: 1px solid var(--mt-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--dash-shadow-soft);
  text-align: center;
}

.mt-feature-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
}

.mt-feature-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mt-feature-name {
  color: var(--mt-ink);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.25;
  white-space: nowrap;
}

.mt-feature-note {
  color: var(--mt-mut);
  font-size: 10px;
  line-height: 1.35;
}

.mt-feature-card.chop { color: var(--dash-purple); border-color: #e5ddfb; background: linear-gradient(145deg, #fff, #fbf9ff); }
.mt-feature-card.mainline { color: var(--dash-primary); border-color: #d8e6fb; background: linear-gradient(145deg, #fff, #f8fbff); }
.mt-feature-card.hotspot { color: #14b8a6; border-color: #d5efeb; background: linear-gradient(145deg, #fff, #f7fdfc); }
.mt-feature-card.risk { color: #f97316; border-color: #f6dfcc; background: linear-gradient(145deg, #fff, #fffaf6); }

.mt-hero-right {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 12px 10px 6px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
}

.mt-chart-cap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.mt-chart-cap .t {
  color: var(--mt-ink);
  font-size: 16px;
  font-weight: 850;
}

.mt-chart-cap .s {
  margin-top: 3px;
  color: var(--mt-mut);
  font-size: 12.5px;
  font-weight: 600;
}

.mt-chart-cap .ma-values {
  display: flex;
  gap: 6px;
  color: var(--mt-mut);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 10px;
  white-space: nowrap;
}

.mt-chart-cap .ma-values b {
  padding: 3px 5px;
  border-radius: 5px;
  font-weight: 800;
}

.ma5 { color: #d97706; background: #fff7ed; }
.ma10 { color: #0f9f87; background: #ecfdf5; }
.ma20 { color: #7c3aed; background: #f5f3ff; }

.mt-hero-right img {
  width: 100%;
  height: auto;
  display: block;
  border: 0;
  border-radius: 8px;
}

.mt-zonebar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.zb {
  position: relative;
  padding: 14px 8px;
  border: 1px solid var(--mt-border);
  border-radius: 14px;
  background: #fbfcfe;
  box-shadow: var(--dash-shadow-soft);
  text-align: center;
}

.zb.active {
  border-width: 2px;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.16);
  transform: translateY(-2px);
}

.zb.active::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform: translateX(-50%);
}

.zb-ic {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  margin: 0 auto 8px;
  border-radius: 9px;
  color: #94a3b8;
  background: #f1f5f9;
}

.zb-ic svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.zb-name {
  color: var(--mt-ink);
  font-size: 14px;
  font-weight: 750;
}

.zb-range {
  margin-top: 2px;
  color: var(--mt-mut);
  font-size: 12.5px;
}

.zb[data-key="ice"].active { border-color: var(--dash-green); background: #ecfdf5; }
.zb[data-key="ice"].active::before { background: var(--dash-green); }
.zb[data-key="draw"].active { border-color: var(--dash-primary); background: var(--dash-primary-soft); }
.zb[data-key="draw"].active::before { background: var(--dash-primary); }
.zb[data-key="expansion"].active { border-color: var(--dash-amber); background: #fffbeb; }
.zb[data-key="expansion"].active::before { background: var(--dash-amber); }
.zb[data-key="hot"].active { border-color: var(--dash-red); background: #fef2f2; }
.zb[data-key="hot"].active::before { background: var(--dash-red); }

.mt-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0;
}

.mt-card {
  min-width: 0;
  padding: var(--dash-card-padding);
  border: 1px solid var(--mt-border);
  border-radius: var(--dash-radius-lg);
  background: var(--dash-surface);
  box-shadow: var(--dash-shadow-card);
}

.mt-summary-grid .mt-card {
  min-height: 142px;
  position: relative;
  overflow: hidden;
}

.mt-summary-grid .mt-card::after {
  content: "";
  position: absolute;
  right: -26px;
  bottom: -34px;
  width: 112px;
  height: 112px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.08;
}

.mt-summary-grid .mt-card.stage { border-bottom: 3px solid var(--dash-primary); }
.mt-summary-grid .mt-card.temperature { border-bottom: 3px solid var(--dash-amber); }
.mt-summary-grid .mt-card.score { border-bottom: 3px solid #06b6d4; }
.mt-summary-grid .mt-card.emotion { border-bottom: 3px solid var(--dash-green); }

.mt-sum-label {
  margin-bottom: 8px;
  color: var(--mt-mut);
  font-size: 14px;
  font-weight: 700;
}

.mt-sum-big {
  color: var(--mt-blue);
  font-size: 30px;
  font-weight: 880;
  line-height: 1.1;
}

.mt-sum-big.stage-name {
  color: #e68a00;
  font-size: 24px;
}

.mt-sum-max {
  color: var(--mt-mut);
  font-size: 15px;
  font-weight: 600;
}

.mt-sum-line {
  margin-top: 6px;
  color: var(--mt-text);
  font-size: 13px;
}

.mt-sum-desc {
  margin-top: 8px;
  color: var(--mt-mut);
  font-size: 12.5px;
  line-height: 1.6;
}

.mt-emotion-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.mt-emotion-head .mt-sum-label {
  margin-bottom: 0;
}

.mt-emotion-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  color: #0369a1;
  background: #e0f2fe;
  font-size: 12px;
  font-weight: 800;
}

.mt-stage-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.mt-stage-pill {
  padding: 2px 9px;
  border-radius: 999px;
  color: #475569;
  background: #f1f5f9;
  font-size: 11px;
  font-weight: 700;
}

.mt-thermo {
  position: relative;
  height: 8px;
  margin: 13px 0 10px;
  border-radius: 5px;
  background: linear-gradient(90deg, #10b981 0%, #f59e0b 55%, #e11d48 100%);
}

.mt-thermo-marker {
  position: absolute;
  top: -3px;
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: #0f172a;
  transform: translateX(-50%);
}

.mt-delta-up { color: #059669; font-weight: 750; }
.mt-delta-down { color: #dc2626; font-weight: 750; }

.mt-detail-grid {
  display: grid;
  grid-template-columns: minmax(270px, 1fr) minmax(300px, 1fr) minmax(270px, 1fr);
  gap: 16px;
}

.mt-card-title {
  margin-bottom: 16px;
  color: var(--mt-ink);
  font-size: 15px;
  font-weight: 780;
}

.mt-card-sub {
  margin-left: 8px;
  color: var(--mt-mut);
  font-size: 12.5px;
  font-weight: 500;
}

.bar-row {
  margin-bottom: 15px;
}

.bar-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 13.5px;
}

.bar-head .lbl { color: var(--mt-text); }
.bar-head .num { color: var(--mt-ink); font-weight: 750; }

.bar-track {
  height: 8px;
  overflow: hidden;
  border-radius: 5px;
  background: #eef2f7;
}

.bar-fill {
  height: 100%;
  border-radius: 5px;
  background: var(--mt-blue);
}

.bar-fill.trend { background: var(--dash-primary); }
.bar-fill.breadth { background: #38bdf8; }
.bar-fill.momentum { background: var(--dash-green); }
.bar-fill.funds { background: var(--dash-amber); }
.bar-fill.sentiment { background: var(--dash-purple); }

.score-path-box {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--mt-border);
}

.score-path-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.score-path-title {
  color: var(--mt-ink);
  font-size: 14px;
  font-weight: 850;
}

.score-path-badge {
  padding: 3px 9px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: 11px;
  font-weight: 850;
}

.score-path-chart {
  width: 100%;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}

.score-path-chart img {
  width: 100%;
  display: block;
}

.score-path-summary {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  color: #475569;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.55;
}

.score-path-summary b {
  color: #0f172a;
  font-weight: 850;
}

.mt-radar {
  text-align: center;
}

.mt-radar img {
  width: 100%;
  max-width: 500px;
  height: auto;
}

.mt-advice {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mt-advice-box {
  padding: 14px;
  border: 1px solid var(--mt-border);
  border-radius: 10px;
}

.adv-pos { border-color: #bfdbfe; background: #eff6ff; }
.adv-strat { border-color: #a7f3d0; background: #ecfdf5; }
.adv-focus { border-color: #fecaca; background: #fef2f2; }
.adv-verify { border-color: #fde68a; background: #fffbeb; }

.adv-title {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 780;
}

.adv-pos .adv-title { color: #2563eb; }
.adv-strat .adv-title { color: #059669; }
.adv-focus .adv-title { color: #dc2626; }
.adv-verify .adv-title { color: #b45309; }

.adv-main {
  color: var(--mt-ink);
  font-size: 15px;
  font-weight: 780;
  line-height: 1.5;
}

.adv-note {
  margin-top: 4px;
  color: var(--mt-mut);
  font-size: 12.5px;
  line-height: 1.6;
}

.adv-ic {
  float: left;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  margin: 0 9px 4px 0;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.76);
}

.adv-ic svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mt-footer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  padding: 14px 18px;
  border: 1px solid var(--mt-border);
  border-radius: 10px;
  color: var(--mt-mut);
  background: #f1f5f9;
  font-size: 12.5px;
  line-height: 1.7;
}

.mt-footer .foot-ic {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--dash-primary);
  background: #fff;
}

.mt-footer svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.foot-title {
  display: inline;
  margin-right: 4px;
  color: var(--dash-text-main);
  font-weight: 800;
}

.dashboard-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 26px 2px 12px;
}

.dashboard-section-heading > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.dashboard-section-heading h2 {
  margin: 0;
  color: var(--dash-text);
  font-size: 19px;
  font-weight: 880;
  letter-spacing: -0.25px;
}

.dashboard-section-heading h1 {
  margin: 0;
  color: var(--dash-text);
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.45px;
  line-height: 1.2;
}

.dashboard-section-heading > span {
  color: var(--dash-text-muted);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.section-index {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 8px;
  color: #fff;
  background: var(--dash-primary);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 11px;
  font-weight: 850;
}

.research-block {
  margin-top: 28px;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.module-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 178px;
  padding: 18px;
  border: 1px solid var(--dash-border);
  border-radius: var(--dash-radius-lg);
  background: #fff;
  box-shadow: var(--dash-shadow-card);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.module-card:hover,
.radar-card:hover,
.history-list a:hover {
  border-color: #b9d1fb;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.12);
  transform: translateY(-2px);
}

.module-topline,
.radar-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.module-index,
.radar-code {
  color: #94a3b8;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.module-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid #dbe4ef;
  border-radius: 999px;
  color: #64748b;
  background: #f8fafc;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.module-tag.green { border-color: #bbf7d0; color: #047857; background: #ecfdf5; }
.module-tag.blue { border-color: #bfdbfe; color: #1d4ed8; background: #eff6ff; }
.module-tag.amber { border-color: #fde68a; color: #b45309; background: #fffbeb; }
.module-tag.purple { border-color: #ddd6fe; color: #6d28d9; background: #f5f3ff; }

.module-card h3,
.radar-card h3 {
  margin: 14px 0 6px;
  color: var(--dash-text);
  font-size: 16px;
  font-weight: 850;
  letter-spacing: -0.15px;
}

.module-card p,
.radar-card p {
  margin: 0;
  color: var(--dash-text-muted);
  font-size: 12.5px;
  line-height: 1.65;
}

.module-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 15px;
  color: var(--dash-primary);
  font-size: 12px;
  font-weight: 800;
}

.module-spark {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
  color: #8bb5fa;
}

.module-spark i {
  width: 4px;
  border-radius: 3px;
  background: currentColor;
}

.module-spark i:nth-child(1) { height: 8px; }
.module-spark i:nth-child(2) { height: 13px; }
.module-spark i:nth-child(3) { height: 10px; }
.module-spark i:nth-child(4) { height: 16px; }
.module-spark i:nth-child(5) { height: 12px; }
.module-spark i:nth-child(6) { height: 18px; }

.radar-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  margin-bottom: 14px;
  padding: 12px 18px;
  border: 1px solid #dbeafe;
  border-radius: var(--dash-radius-lg);
  color: var(--dash-text-muted);
  background: linear-gradient(90deg, #eff6ff, #fff);
  font-size: 13px;
  font-weight: 650;
}

.radar-summary strong {
  color: var(--dash-primary);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 30px;
  line-height: 1;
}

.research-link {
  margin-left: auto;
  color: var(--dash-primary);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.radar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.radar-card {
  min-width: 0;
  display: block;
  padding: 16px;
  border: 1px solid var(--dash-border);
  border-radius: var(--dash-radius-md);
  background: #fff;
  box-shadow: var(--dash-shadow-soft);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.radar-card h3 {
  margin-top: 11px;
  font-size: 15px;
}

.radar-card p {
  min-height: 42px;
  font-size: 12px;
}

.radar-meter {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  color: var(--dash-text);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 13px;
  font-weight: 850;
}

.mini-track {
  flex: 1;
  height: 7px;
  overflow: hidden;
  border-radius: 5px;
  background: #eef2f7;
}

.mini-fill {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, #60a5fa, #2563eb);
}

.mini-fill.blue-fill { background: linear-gradient(90deg, #38bdf8, #0ea5e9); }
.mini-fill.amber-fill { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.mini-fill.purple-fill { background: linear-gradient(90deg, #a78bfa, #7c3aed); }

.layer-meter {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 1;
}

.layer-chip {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid #dbe4ef;
  border-radius: 6px;
  color: #94a3b8;
  background: #f8fafc;
  font-size: 10px;
  font-weight: 850;
}

.layer-chip.active {
  border-color: #86efac;
  color: #047857;
  background: #ecfdf5;
}

.layer-chip.active.amber {
  border-color: #fde68a;
  color: #b45309;
  background: #fffbeb;
}

.layer-chip.active.purple {
  border-color: #ddd6fe;
  color: #6d28d9;
  background: #f5f3ff;
}

.layer-label {
  color: var(--dash-text-muted);
  font-size: 10px;
  white-space: nowrap;
}

.history-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding: 16px 18px;
  border: 1px solid var(--dash-border);
  border-radius: var(--dash-radius-lg);
  background: #fff;
  box-shadow: var(--dash-shadow-soft);
}

.history-panel-title {
  color: var(--dash-text);
  font-size: 15px;
  font-weight: 850;
}

.history-panel-note {
  margin-top: 3px;
  color: var(--dash-text-muted);
  font-size: 12px;
}

.history-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.history-list a {
  display: grid;
  gap: 3px;
  min-height: 76px;
  padding: 13px 14px;
  border: 1px solid var(--dash-border);
  border-radius: var(--dash-radius-md);
  background: #fff;
  box-shadow: var(--dash-shadow-soft);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.history-date {
  color: var(--dash-text);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 12px;
  font-weight: 850;
}

.history-state {
  color: var(--dash-text-muted);
  font-size: 11px;
}

.history-score {
  color: var(--dash-primary);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 14px;
  font-weight: 900;
}

.research-disclaimer {
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  color: var(--dash-text-muted);
  background: #fff;
  font-size: 12px;
  line-height: 1.7;
}

.research-disclaimer strong {
  color: var(--dash-text-main);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 2px 0;
  color: var(--dash-text-muted);
  font-size: 11px;
}

.footer a {
  color: var(--dash-primary);
  font-weight: 700;
}

@media (max-width: 1120px) {
  .topbar {
    flex-wrap: wrap;
  }

  .topbar-meta {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }

  .mt-hero {
    grid-template-columns: minmax(220px, 32%) minmax(0, 1fr);
    gap: 22px;
    padding: 24px;
  }

  .mt-title {
    font-size: 31px;
  }

  .mt-bignum {
    font-size: 64px;
  }

  .mt-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mt-advice {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .radar-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .history-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  main {
    padding-right: 16px;
    padding-left: 16px;
  }

  .brand-lockup {
    min-width: 0;
  }

  .topbar {
    padding-right: 17px;
    padding-left: 17px;
  }

  .topbar-meta {
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .page-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 5px;
  }

  .page-nav a {
    flex: 0 0 auto;
  }

  .page-nav .nav-spacer,
  .page-nav .nav-meta {
    display: none;
  }

  .mt-header {
    flex-direction: column;
  }

  .mt-header-right {
    width: 100%;
    justify-content: flex-start;
  }

  .mt-hero {
    grid-template-columns: 1fr;
  }

  .mt-hero-right {
    padding: 13px;
  }

  .mt-summary-grid,
  .mt-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mt-radar {
    grid-column: 1 / -1;
  }

  .radar-grid,
  .history-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .brand-name {
    font-size: 16px;
  }

  .brand-sub {
    font-size: 10px;
  }

  .topbar-chip.neutral {
    display: none;
  }

  .mt-title {
    font-size: 27px;
  }

  .mt-badge {
    margin-left: 5px;
    padding: 2px 7px;
    font-size: 11px;
    vertical-align: 4px;
  }

  .mt-header-right {
    align-items: flex-start;
    flex-direction: column;
  }

  .mt-bignum {
    font-size: 58px;
  }

  .mt-zonebar,
  .mt-summary-grid,
  .mt-detail-grid,
  .mt-advice {
    grid-template-columns: 1fr;
  }

  .mt-radar,
  .mt-advice {
    grid-column: auto;
  }

  .dashboard-section-heading,
  .history-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-section-heading > span {
    white-space: normal;
  }

  .module-grid,
  .radar-grid,
  .history-list {
    grid-template-columns: 1fr;
  }

  .research-link {
    margin-left: 0;
  }

  .mt-chart-cap {
    align-items: flex-start;
    flex-direction: column;
  }

  .mt-chart-cap .ma-values {
    flex-wrap: wrap;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* ===== GCQ-ALIGN：标题层级对齐母版（--dash-font-title 34px / --dash-font-section 22px） ===== */
.research-hero h1,
.research-block h1,
.dashboard-section-heading h1,
.mt-title { font-size: var(--dash-font-title); }

.dashboard-section-heading h2,
.research-block h2,
.research-panel h2 { font-size: var(--dash-font-section); }

.research-panel h3,
.research-block h3 { font-size: var(--dash-font-card-title); }
