:root {
  --bg: #070b12;
  --bg-2: #0b1020;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.05);
  --text: #eef4ff;
  --muted: #9fb0c8;
  --muted-2: #738299;
  --accent: #38bdf8;
  --accent-2: #a78bfa;
  --high: #f59e0b;
  --mid: #60a5fa;
  --low: #34d399;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --tier-gold: #F59E0B;
  --tier-blue: #60A5FA;
  --tier-green: #34D399;
  --tier-red: #EF4444;
  --tier-purple: #A78BFA;
  --success: #34D399;
  --danger: #EF4444;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top center, rgba(56, 189, 248, 0.09), transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(167, 139, 250, 0.08), transparent 20%),
    linear-gradient(180deg, var(--bg), var(--bg-2) 45%, var(--bg));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), transparent);
}

.site-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 72px;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px 20px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(7, 11, 18, 0.66);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.topbar-nav {
  display: flex;
  justify-content: center;
  gap: 26px;
}

.topbar-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  transition: color 0.2s ease;
}

.topbar-nav a:hover,
.topbar-nav a:focus-visible {
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: #06131d;
  background: linear-gradient(135deg, #6dd3ff, #8ec5ff);
  box-shadow: 0 12px 24px rgba(56, 189, 248, 0.18);
}

.button-primary:hover,
.button-primary:focus-visible {
  filter: brightness(1.03);
}

.button-secondary {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
}

.page {
  display: grid;
  gap: 28px;
}

.section {
  animation: fade-up 0.55s ease both;
}

.section-block {
  padding: 34px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  box-shadow: var(--shadow);
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.65fr);
  align-items: center;
  gap: 36px;
  padding: 40px 8px 12px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  max-width: 11ch;
}

.hero-text {
  max-width: 640px;
  margin: 18px 0 28px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-card {
  position: relative;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.16), transparent 34%);
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.16), transparent 66%);
  pointer-events: none;
}

.preview-label,
.mini-label,
.stat-label,
.item-label,
.tooltip-label {
  color: var(--muted-2);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.preview-player {
  margin-top: 10px;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.preview-range {
  margin-top: 10px;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.preview-metric {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
}

.preview-metric strong {
  display: block;
  margin-top: 8px;
  font-size: 1.1rem;
  font-weight: 600;
}

.stats-strip {
  padding: 10px 0 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.stat-item {
  padding: 8px 4px;
}

.stat-value {
  font-size: clamp(1.7rem, 2vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.stat-note {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.94rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 26px;
}

.section-header h2 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-subtitle,
.section-meta {
  color: var(--muted);
  font-size: 0.98rem;
}

.section-subtitle {
  margin: 10px 0 0;
  max-width: 760px;
  line-height: 1.7;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.summary-card,
.legend-card,
.detail-column,
.profile-main,
.profile-radar,
.profile-insight,
.player-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
}

.summary-card h3,
.legend-card h3,
.detail-column h3,
.profile-radar h3,
.profile-insight h3 {
  margin: 0 0 18px;
  font-size: 1rem;
  font-weight: 600;
}

.summary-list {
  display: grid;
  gap: 14px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.summary-row strong {
  font-size: 1rem;
  font-weight: 600;
}

.summary-row span:last-child,
.summary-inline {
  color: var(--muted);
  font-size: 0.95rem;
}

.progress-row {
  display: grid;
  gap: 8px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.insight-strip {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 18px;
  margin-top: 22px;
}

.strip-copy,
.top-feature-panel {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
}

.strip-label {
  color: var(--muted-2);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.strip-copy p {
  margin: 12px 0 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
}

.feature-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.feature-chip {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.025);
}

.feature-chip strong {
  color: var(--text);
  font-weight: 600;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 22px;
}

.control {
  display: grid;
  gap: 10px;
}

.control span {
  color: var(--muted);
  font-size: 0.9rem;
}

input,
select {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font: inherit;
  appearance: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder {
  color: var(--muted-2);
}

input:focus,
select:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.36);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.08);
}

.player-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.player-card {
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.player-card:hover,
.player-card.active {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
}

.player-name {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.player-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.94rem;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.84rem;
  white-space: nowrap;
}

.tag-pill::before,
.legend-dot,
.band-dot {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.price-high {
  color: var(--high);
}

.price-high::before,
.dot-high,
.band-high {
  background: var(--high);
}

.price-mid {
  color: var(--mid);
}

.price-mid::before,
.dot-mid,
.band-mid {
  background: var(--mid);
}

.price-low {
  color: var(--low);
}

.price-low::before,
.dot-low,
.band-low {
  background: var(--low);
}

.card-main {
  margin-top: 18px;
}

.card-range {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.card-subtext {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.94rem;
}

.card-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.metric-box {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
}

.metric-box strong {
  display: block;
  margin-top: 8px;
  font-size: 1.05rem;
  font-weight: 600;
}

.chart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
}

.chart-panel {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

#scatterChart {
  display: block;
  width: 100%;
  height: auto;
}

.legend-panel {
  display: grid;
  gap: 14px;
}

.legend-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.legend-list {
  display: grid;
  gap: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 0.95rem;
}

.chart-tooltip {
  position: absolute;
  min-width: 180px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(7, 11, 18, 0.92);
  color: var(--text);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.chart-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.tooltip-title {
  font-size: 0.98rem;
  font-weight: 600;
}

.tooltip-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.tooltip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.tooltip-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 0.92rem;
}

.axis-line {
  stroke: rgba(255, 255, 255, 0.14);
}

.axis-grid {
  stroke: rgba(255, 255, 255, 0.06);
}

.axis-label,
.scatter-name {
  fill: var(--muted-2);
  font-size: 12px;
  font-family: "Inter", system-ui, sans-serif;
}

.point {
  cursor: pointer;
}

.point circle {
  transition: transform 0.18s ease, opacity 0.18s ease, stroke-width 0.18s ease;
}

.point:hover circle,
.point.active circle {
  opacity: 1;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 2;
}

.detail-section {
  overflow: hidden;
}

#playerDetail {
  display: grid;
  grid-template-columns: minmax(290px, 0.95fr) minmax(320px, 1fr) minmax(260px, 0.9fr);
  gap: 18px;
}

.detail-badge {
  color: var(--muted);
  font-size: 0.95rem;
}

.profile-main,
.profile-radar,
.profile-insight {
  height: 100%;
}

.profile-name {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.profile-meta {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.7;
}

.profile-kpis {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.profile-kpi {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.profile-kpi strong {
  display: block;
  margin-top: 6px;
  font-size: 1.18rem;
  font-weight: 600;
}

.profile-radar-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
}

.radar-svg {
  width: 100%;
  max-width: 320px;
  justify-self: center;
}

.radar-list,
.insight-list,
.traffic-list,
.stat-list {
  display: grid;
  gap: 12px;
}

.radar-list {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.radar-item,
.traffic-row,
.stat-row {
  display: grid;
  gap: 7px;
}

.radar-item {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.metric-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.metric-inline strong {
  font-weight: 600;
  flex-shrink: 0;
}

.traffic-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.traffic-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.profile-insight p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.insight-keypoints {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}

.insight-point {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 0.94rem;
}

.insight-point::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.aux-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}

.detail-card {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.detail-card h4 {
  margin: 0 0 14px;
  font-size: 0.96rem;
  font-weight: 600;
}

.loading-state,
.empty-state {
  display: grid;
  place-items: center;
  min-height: 240px;
  color: var(--muted);
  text-align: center;
}

.loader {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

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

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =============================================
   Phase 1 — 排名预测
   ============================================= */

/* 模型评分卡片 */
.model-score-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.model-score-card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.model-score-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.12);
}

.model-score-card.optimal {
  border-color: rgba(56, 189, 248, 0.3);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.06), var(--panel));
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.06);
}

.optimal-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #0ea5e9);
  color: #06131d;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.model-score-header {
  display: flex;
  align-items: end;
  gap: 10px;
  margin-bottom: 12px;
}

.model-score-number {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.model-score-max {
  color: var(--muted-2);
  font-size: 1rem;
  font-weight: 500;
  padding-bottom: 4px;
}

.model-score-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.model-score-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  margin: 16px 0 14px;
  overflow: hidden;
}

.model-score-fill {
  height: 100%;
  border-radius: inherit;
  transition: width 0.6s ease;
}

.model-score-note {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* Phase 1 指标条 */
.phase1-metrics-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
}

.phase1-metric {
  text-align: center;
  padding: 6px 4px;
}

.phase1-metric .metric-value {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.phase1-metric .metric-label {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.phase1-metric .metric-hint {
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 0.76rem;
}

/* 梯队卡片网格 */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.tier-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  transition: transform 0.22s ease;
}

.tier-card:hover {
  transform: translateY(-2px);
}

.tier-card.tier-championship { border-left: 3px solid var(--tier-gold); }
.tier-card.tier-top4 { border-left: 3px solid var(--tier-blue); }
.tier-card.tier-mid { border-left: 3px solid var(--tier-green); }
.tier-card.tier-pressure { border-left: 3px solid var(--tier-red); }

.tier-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.tier-card-header h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.tier-rank-range {
  color: var(--muted-2);
  font-size: 0.84rem;
  font-weight: 600;
}

.tier-desc {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.tier-team-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tier-team-tag {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

/* Tier 徽章 */
.tier-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid;
  white-space: nowrap;
}

.tier-badge.tier-championship {
  color: var(--tier-gold);
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.08);
}

.tier-badge.tier-top4 {
  color: var(--tier-blue);
  border-color: rgba(96, 165, 250, 0.3);
  background: rgba(96, 165, 250, 0.08);
}

.tier-badge.tier-mid {
  color: var(--tier-green);
  border-color: rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.08);
}

.tier-badge.tier-pressure {
  color: var(--tier-red);
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.08);
}

/* 排名对比表 */
.ranking-table-wrap {
  margin-top: 22px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.ranking-table th {
  padding: 14px 16px;
  text-align: left;
  color: var(--muted-2);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.ranking-table th:hover {
  color: var(--text);
}

.ranking-table th .sort-arrow {
  margin-left: 4px;
  font-size: 0.7rem;
  opacity: 0.5;
}

.ranking-table th.sorted .sort-arrow {
  opacity: 1;
  color: var(--accent);
}

.ranking-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text);
}

.ranking-table tr:last-child td {
  border-bottom: none;
}

.ranking-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.ranking-table .rank-num {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ranking-table .team-name-cell {
  font-weight: 600;
}

/* 误差方向指示器 */
.error-exact {
  color: var(--tier-gold);
  font-weight: 600;
}

.error-over {
  color: var(--success);
}

.error-under {
  color: var(--danger);
}

/* 斜线图 SVG */
.slope-line {
  stroke-width: 2.5;
  stroke-linecap: round;
  fill: none;
  opacity: 0.7;
  transition: stroke-width 0.18s ease, opacity 0.18s ease;
}

.slope-line:hover {
  stroke-width: 5;
  opacity: 1;
}

.slope-dot {
  transition: r 0.18s ease;
}

.slope-dot:hover {
  r: 7;
}

.slope-label-left,
.slope-label-right {
  font-size: 11px;
  font-family: "Inter", system-ui, sans-serif;
}

.slope-rank-num {
  font-size: 10px;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
}

/* Notable Findings */
.notable-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.notable-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  transition: transform 0.22s ease;
}

.notable-card:hover {
  transform: translateY(-3px);
}

.notable-card.perfect { border-top: 3px solid var(--tier-gold); }
.notable-card.dark-horse { border-top: 3px solid var(--tier-purple); }
.notable-card.largest-error { border-top: 3px solid var(--tier-red); }

.notable-card .notable-type {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.notable-card.perfect .notable-type { color: var(--tier-gold); }
.notable-card.dark-horse .notable-type { color: var(--tier-purple); }
.notable-card.largest-error .notable-type { color: var(--tier-red); }

.notable-card h4 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 700;
}

.notable-card .notable-team {
  color: var(--muted-2);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.notable-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* =============================================
   Responsive
   ============================================= */

@media (max-width: 1120px) {
  .hero,
  .summary-grid,
  .chart-layout,
  #playerDetail,
  .insight-strip,
  .profile-radar-wrap {
    grid-template-columns: 1fr;
  }

  .player-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid,
  .filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .model-score-grid {
    grid-template-columns: 1fr;
  }

  .phase1-metrics-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tier-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .notable-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 20px, 1280px);
  }

  .topbar {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 14px;
  }

  .topbar-nav {
    flex-wrap: wrap;
    justify-content: start;
    gap: 14px 18px;
  }

  .section-block {
    padding: 22px;
  }

  .hero {
    padding: 24px 2px 6px;
  }

  .hero h1 {
    font-size: 2.45rem;
  }

  .stats-grid,
  .filter-bar,
  .player-grid,
  .card-metrics,
  .preview-grid,
  .aux-grid {
    grid-template-columns: 1fr;
  }

  .model-score-grid {
    grid-template-columns: 1fr;
  }

  .phase1-metrics-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tier-grid {
    grid-template-columns: 1fr;
  }

  .notable-grid {
    grid-template-columns: 1fr;
  }
}
