/* GC Quant Research Edition · theme mainline dashboard reconstruction */
.theme-dashboard-main {
  max-width: var(--content-max-width);
  overflow-x: hidden;
}

.theme-dashboard-main .theme-nav {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.theme-dashboard-main .theme-nav::-webkit-scrollbar {
  display: none;
}

.theme-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 2px 0 20px;
}

.theme-page-heading {
  min-width: 0;
}

.theme-page-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--dash-primary);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .12em;
}

.theme-page-heading h1 {
  margin: 0;
  color: var(--dash-text);
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -.04em;
}

.theme-page-heading p {
  max-width: 700px;
  margin: 9px 0 0;
  color: var(--dash-text-muted);
  font-size: 14px;
}

.theme-page-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(86px, 1fr));
  gap: 8px;
  min-width: 430px;
}

.theme-meta-chip {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid var(--dash-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, .86);
  box-shadow: var(--dash-shadow-soft);
}

.theme-meta-chip small {
  color: var(--dash-text-muted);
  font-size: 11px;
}

.theme-meta-chip b {
  overflow: hidden;
  color: var(--dash-text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-meta-chip.meta-static {
  border-color: #bfdbfe;
  background: var(--dash-primary-soft);
}

.theme-meta-chip.meta-static b {
  color: var(--dash-primary-deep);
}

.theme-panel,
.theme-summary-card,
.theme-note-panel,
.theme-card {
  border: 1px solid var(--dash-border);
  border-radius: var(--dash-radius-lg);
  background: var(--dash-surface);
  box-shadow: var(--dash-shadow-card);
}

.theme-panel {
  min-width: 0;
  padding: 22px;
}

.theme-panel-title,
.theme-summary-label,
.theme-note-label {
  color: var(--dash-text-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}

.theme-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(270px, .8fr);
  gap: 16px;
  margin-bottom: 16px;
}

.theme-hero-main {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  min-height: 236px;
  position: relative;
  overflow: hidden;
}

.theme-hero-main::after {
  content: "";
  position: absolute;
  top: -92px;
  right: -52px;
  width: 260px;
  height: 260px;
  border: 28px solid var(--dash-primary-soft);
  border-radius: 50%;
  opacity: .72;
}

.theme-hero-score,
.theme-hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.theme-hero-score {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 20px;
  border-right: 1px solid var(--dash-border);
}

.theme-hero-value {
  margin: 7px 0 1px;
  color: var(--dash-primary);
  font-size: clamp(42px, 5vw, 58px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.06em;
}

.theme-hero-unit {
  margin-bottom: 12px;
  color: var(--dash-text-muted);
  font-size: 11px;
}

.theme-hero-theme {
  margin-top: 12px;
  color: var(--dash-text);
  font-size: 17px;
  font-weight: 850;
}

.theme-hero-copy h2 {
  margin: 0 0 12px;
  color: var(--dash-text);
  font-size: 22px;
  letter-spacing: -.025em;
}

.theme-hero-conclusion {
  max-width: 760px;
  margin-bottom: 15px;
  color: var(--dash-text);
  font-size: 17px;
  font-weight: 760;
  line-height: 1.65;
}

.theme-hero-facts {
  display: grid;
  gap: 7px;
  color: var(--dash-text-muted);
  font-size: 13px;
}

.theme-hero-facts b {
  color: var(--dash-text-main);
}

.theme-grade-panel {
  min-height: 236px;
}

.theme-grade-list {
  display: grid;
  gap: 11px;
  margin-top: 17px;
}

.theme-grade-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 9px;
  color: var(--dash-text-muted);
  font-size: 12px;
}

.theme-grade-row > b {
  color: var(--dash-text-main);
  text-align: right;
}

.grade-key,
.theme-grade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
}

.grade-key {
  width: 26px;
  height: 24px;
}

.theme-grade {
  min-width: 40px;
  padding: 5px 7px;
}

.grade-s { color: #be123c; background: #fff1f2; border-color: #fecdd3; }
.grade-a { color: #b45309; background: #fffbeb; border-color: #fde68a; }
.grade-b { color: #0369a1; background: #eff6ff; border-color: #bfdbfe; }
.grade-c { color: #0f766e; background: #f0fdfa; border-color: #99f6e4; }
.grade-d { color: #64748b; background: #f8fafc; border-color: #cbd5e1; }

.theme-grade-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f7;
}

.theme-grade-track i {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: inherit;
}

.grade-fill-s { background: #fb7185; }
.grade-fill-a { background: #fbbf24; }
.grade-fill-b { background: #60a5fa; }
.grade-fill-c { background: #2dd4bf; }
.grade-fill-d { background: #94a3b8; }

.theme-panel-note {
  margin: 18px 0 0;
  color: var(--dash-text-muted);
  font-size: 12px;
  line-height: 1.6;
}

.theme-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.theme-summary-card {
  display: grid;
  align-content: space-between;
  min-height: 130px;
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  border-bottom-width: 3px;
}

.theme-summary-card::after {
  content: "";
  position: absolute;
  right: -26px;
  bottom: -40px;
  width: 112px;
  height: 112px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .08;
}

.theme-summary-card strong {
  position: relative;
  z-index: 1;
  color: var(--dash-text);
  font-size: 23px;
  letter-spacing: -.03em;
}

.theme-summary-card > span:last-child {
  position: relative;
  z-index: 1;
  color: var(--dash-text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.theme-summary-card.accent-blue { color: var(--dash-primary); border-bottom-color: var(--dash-primary); }
.theme-summary-card.accent-red { color: var(--dash-red); border-bottom-color: var(--dash-red); }
.theme-summary-card.accent-cyan { color: #0891b2; border-bottom-color: #06b6d4; }
.theme-summary-card.accent-amber { color: var(--dash-amber); border-bottom-color: var(--dash-amber); }

.theme-path-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.theme-path-panel {
  min-height: 318px;
}

.theme-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}

.theme-section-heading h2,
.theme-note-panel h2 {
  margin: 0;
  color: var(--dash-text);
  font-size: 18px;
  letter-spacing: -.02em;
}

.theme-section-heading p,
.theme-note-panel-head p {
  margin: 4px 0 0;
  color: var(--dash-text-muted);
  font-size: 12px;
}

.theme-section-tag {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  color: var(--dash-primary-deep);
  background: var(--dash-primary-soft);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .06em;
}

.theme-section-tag.tag-watch {
  border-color: #fde68a;
  color: #b45309;
  background: #fffbeb;
}

.theme-rank-list {
  display: grid;
  gap: 7px;
}

.theme-rank-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 41px;
  padding: 7px 9px;
  border: 1px solid #edf1f6;
  border-radius: 9px;
  background: #fbfcfe;
}

.theme-rank {
  color: var(--dash-primary);
  font-size: 12px;
  font-weight: 900;
}

.theme-rank-main {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.theme-rank-main strong {
  overflow: hidden;
  color: var(--dash-text-main);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-rank-main span {
  overflow: hidden;
  color: var(--dash-text-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-rank-side {
  display: flex;
  align-items: center;
  gap: 7px;
}

.theme-rank-side > b {
  color: var(--dash-text);
  font-size: 13px;
}

.theme-note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.theme-note-panel {
  padding: 17px 20px;
}

.theme-note-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.note-icon {
  display: grid;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--dash-primary);
  font-size: 15px;
  font-weight: 900;
}

.note-risk .note-icon { background: var(--dash-amber); }
.note-validation .note-icon { background: var(--dash-green); }

.theme-note-panel ul {
  display: grid;
  gap: 5px;
  margin: 13px 0 0 38px;
  padding: 0;
  color: var(--dash-text-main);
  font-size: 12px;
}

.theme-note-panel li::marker {
  color: var(--dash-primary);
}

.theme-cards-section {
  margin-top: 4px;
}

.theme-cards-heading {
  align-items: center;
  margin-bottom: 14px;
}

.theme-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.theme-card {
  display: flex;
  min-width: 0;
  min-height: 430px;
  flex-direction: column;
  gap: 13px;
  position: relative;
  overflow: hidden;
  padding: 18px 18px 17px 21px;
}

.theme-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #cbd5e1;
}

.theme-grade-s::before { background: #fb7185; }
.theme-grade-a::before { background: #f59e0b; }
.theme-grade-b::before { background: #3b82f6; }
.theme-grade-c::before { background: #14b8a6; }
.theme-grade-d::before { background: #94a3b8; }

.theme-card-head,
.theme-card-title,
.theme-score-row {
  display: flex;
  align-items: center;
}

.theme-card-head {
  justify-content: space-between;
  gap: 10px;
}

.theme-card-title {
  min-width: 0;
  gap: 10px;
}

.theme-card-title > div {
  min-width: 0;
}

.theme-card-title h3 {
  overflow: hidden;
  margin: 0;
  color: var(--dash-text);
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-group {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--dash-text-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-icon {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #bfdbfe;
  border-radius: 50%;
  color: var(--dash-primary);
  background: linear-gradient(145deg, #eff6ff, #f8fbff);
}

.theme-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.theme-score-row {
  align-items: flex-end;
  justify-content: space-between;
  gap: 9px;
  padding: 4px 0 2px;
}

.theme-score {
  color: var(--dash-primary);
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.06em;
}

.theme-score-unit {
  margin-left: 5px;
  color: var(--dash-text-muted);
  font-size: 11px;
}

.theme-status {
  max-width: 48%;
  overflow: hidden;
  color: var(--dash-text-main);
  font-size: 12px;
  font-weight: 760;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-research-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  color: #1d4ed8;
  background: linear-gradient(100deg, #eff6ff, #f8fbff);
  font-size: 11px;
}

.theme-research-strip b {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.theme-field {
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid #edf1f6;
  border-radius: 7px;
  background: #fbfcfe;
}

.theme-field span {
  display: block;
  color: var(--dash-text-muted);
  font-size: 10px;
  line-height: 1.35;
}

.theme-field b {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--dash-text-main);
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-card-note {
  margin-top: auto;
  padding: 9px 10px;
  border-radius: 8px;
  background: #f8fafc;
}

.theme-card-note p,
.theme-card-foot p {
  margin: 4px 0 0;
  color: var(--dash-text-main);
  font-size: 11px;
  line-height: 1.55;
}

.theme-card-foot {
  display: grid;
  gap: 8px;
  padding-top: 9px;
  border-top: 1px solid #edf1f6;
}

.theme-card-risk {
  padding-top: 7px;
  border-top: 1px dashed #e2e8f0;
}

.theme-disclaimer {
  margin: 22px 0 2px;
  padding: 16px 18px;
  border: 1px solid #dbeafe;
  border-left: 3px solid var(--dash-primary);
  border-radius: 10px;
  color: var(--dash-text-muted);
  background: #f8fbff;
  font-size: 12px;
  line-height: 1.7;
}

.theme-disclaimer strong {
  display: block;
  margin-bottom: 3px;
  color: var(--dash-text-main);
}

@media (max-width: 1180px) {
  .theme-page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .theme-page-meta {
    width: 100%;
    min-width: 0;
    max-width: 680px;
  }

  .theme-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .theme-hero {
    grid-template-columns: 1fr;
  }

  .theme-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .theme-hero-main {
    min-height: 220px;
  }
}

@media (max-width: 640px) {
  .theme-dashboard-main {
    padding: 16px 14px 36px;
  }

  .theme-page-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .theme-page-heading h1 {
    font-size: 29px;
  }

  .theme-hero-main {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .theme-hero-score {
    align-self: auto;
    padding: 0 0 14px;
    border-right: 0;
    border-bottom: 1px solid var(--dash-border);
  }

  .theme-hero-value {
    font-size: 48px;
  }

  .theme-summary-grid,
  .theme-path-grid,
  .theme-note-grid,
  .theme-card-grid {
    grid-template-columns: 1fr;
  }

  .theme-panel,
  .theme-summary-card,
  .theme-note-panel {
    padding: 17px;
  }

  .theme-card {
    min-height: 0;
    padding-left: 20px;
  }

  .theme-rank-side {
    gap: 4px;
  }

  .theme-rank-side > b {
    font-size: 12px;
  }
}


/* ===== GCQ-ALIGN：题材卡栅格对齐母版 .theme-card-grid（4 列） ===== */
.theme-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--dash-gap);
  align-items: stretch;
}
@media (max-width: 1366px) { .theme-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1024px) { .theme-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px)  { .theme-card-grid { grid-template-columns: minmax(0, 1fr); } }
