/* 页面基础变量，统一颜色与阴影 */
:root {
  --bg: #0b0d12;
  --bg-alt: #0f131a;
  --panel: rgba(17, 21, 29, 0.92);
  --panel-strong: #151a23;
  --text: #f7f8fb;
  --muted: #aab2c3;
  --accent: #7d87ff;
  --accent-2: #4be9c3;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

/* 统一盒模型，避免尺寸计算问题 */
* {
  box-sizing: border-box;
}

/* 页面滚动更柔和 */
html {
  scroll-behavior: smooth;
}

/* 页面整体样式 */
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 统一链接颜色和交互 */
a {
  color: inherit;
  text-decoration: none;
}

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

/* 页面容器，负责整体宽度 */
.page {
  position: relative;
  overflow: hidden;
}

/* 背景画布层 */
.graph-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  mix-blend-mode: screen;
  opacity: 0.85;
}

/* 鼠标光晕 */
.cursor-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 135, 255, 0.35), rgba(75, 233, 195, 0.08) 55%, transparent 70%);
  filter: blur(6px);
  opacity: 0.6;
  pointer-events: none;
  z-index: -1;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

/* 背景装饰，提升高级感 */
.page::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(125, 135, 255, 0.15), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(75, 233, 195, 0.1), transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(125, 135, 255, 0.08), transparent 40%);
  z-index: -2;
  animation: aurora 18s ease-in-out infinite;
  background-size: 140% 140%;
}

/* 顶部导航区域 */
.site-header {
  padding: 32px 6vw 80px;
}

/* 顶部滚动进度条 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.04);
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.scroll-progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px rgba(125, 135, 255, 0.6);
  transition: width 0.1s linear;
}

/* 顶部导航栏 */
.site-nav {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 20px;
  margin-bottom: 40px;
  border-radius: 18px;
  background: rgba(15, 19, 26, 0.8);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
  z-index: 10;
}

/* 品牌区域 */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Sora", "Manrope", sans-serif;
  font-weight: 600;
}

/* 品牌字母标记 */
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 导航链接 */
.nav-links {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
  color: var(--muted);
}

/* 导航链接微动画 */
.nav-links a {
  position: relative;
  padding: 6px 2px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-links a.active {
  color: var(--text);
}

.nav-links a.active::after {
  transform: scaleX(1);
}

/* 导航按钮区域 */
.nav-actions {
  display: flex;
  gap: 12px;
}

/* 通用按钮样式 */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* 主按钮样式 */
.button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0d12;
  box-shadow: 0 12px 25px rgba(125, 135, 255, 0.25);
}

/* 辅助按钮样式 */
.button.ghost {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text);
}

/* 按钮悬停反馈 */
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(125, 135, 255, 0.2);
}

/* 头图布局 */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px;
  align-items: center;
}

/* 头图文案 */
.hero-copy h1 {
  font-family: "Sora", "Manrope", sans-serif;
  font-size: clamp(2.6rem, 4vw, 4rem);
  margin: 14px 0;
  letter-spacing: -0.02em;
}

/* 手写体标志 */
.hero-handwriting {
  display: block;
  width: min(220px, 45vw);
  margin-top: 6px;
  margin-bottom: 6px;
  opacity: 0.9;
  filter: drop-shadow(0 6px 18px rgba(75, 233, 195, 0.25));
}

/* 头图小标题 */
.hero-subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 540px;
}

/* 头图徽章 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  background: rgba(125, 135, 255, 0.15);
  border: 1px solid rgba(125, 135, 255, 0.4);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
}

/* 头图按钮组 */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* 统计数字区域 */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-top: 28px;
}

/* 单个统计卡片 */
.stat {
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

/* 统计数字 */
.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: "Sora", "Manrope", sans-serif;
}

/* 统计文字 */
.stat-label {
  color: var(--muted);
  font-size: 0.9rem;
}

/* 头图右侧卡片区域 */
.hero-panel {
  display: grid;
  gap: 18px;
}

/* 卡片主体 */
.panel-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
}

/* 头图卡片轻微漂浮 */
.hero-panel .panel-card {
  animation: float 10s ease-in-out infinite;
}

.hero-panel .panel-graph {
  animation: float 12s ease-in-out infinite;
}

/* 卡片头部 */
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

/* 卡片标签 */
.panel-chip {
  background: rgba(75, 233, 195, 0.15);
  color: var(--accent-2);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* 卡片正文 */
.panel-body {
  color: var(--muted);
  font-size: 0.95rem;
}

/* 卡片内指标 */
.panel-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

/* 卡片指标标签 */
.metric-label {
  color: var(--muted);
  font-size: 0.8rem;
}

/* 卡片指标数值 */
.metric-value {
  font-weight: 700;
  font-size: 1.2rem;
}

/* 头图 SVG 区域 */
.panel-graph {
  background: var(--panel-strong);
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 14px;
}

/* Pipeline 图展示 */
.pipeline-figure {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.pipeline-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(125, 135, 255, 0.18), transparent 55%);
  opacity: 0.5;
  pointer-events: none;
}

.pipeline-figure img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* SVG 线条 */
.graph-lines line {
  stroke: url(#graphGradient);
  stroke-width: 2;
  opacity: 0.7;
  stroke-dasharray: 6 10;
  animation: dash 6s linear infinite;
}

/* SVG 节点 */
.graph-nodes circle {
  fill: #e8ecff;
  stroke: #4be9c3;
  stroke-width: 2;
}

/* 通用分区样式 */
.section {
  padding: 80px 6vw;
  position: relative;
}

/* 分区沉浸式光晕 */
.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(125, 135, 255, 0.18), transparent 55%),
    radial-gradient(circle at 80% 30%, rgba(75, 233, 195, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
  z-index: 0;
}

.section.section-active::before {
  opacity: 1;
}

.section > * {
  position: relative;
  z-index: 1;
}

/* 分区标题 */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 32px;
}

/* 分区眉标题 */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--muted);
  margin: 0 0 10px;
}

/* 分区副标题 */
.section-subtitle {
  color: var(--muted);
  max-width: 640px;
}

/* 操作按钮组 */
.section-actions {
  display: flex;
  gap: 12px;
}

/* 过滤器整体布局 */
.controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

/* 控制组标签 */
.control-label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 8px;
}

/* 输入框与下拉框 */
.control-input,
.control-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-size: 0.95rem;
}

/* 芯片按钮组 */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* 单个芯片 */
.chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* 芯片选中状态 */
.chip.active {
  color: #0b0d12;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
}

/* Leaderboard 布局 */
.leaderboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
}

/* Leaderboard 进阶视图 */
.leaderboard-insights {
  margin-top: 28px;
}

/* Signature 卡片 */
.signature-card {
  background: var(--panel);
  border-radius: 24px;
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: var(--shadow);
}

.signature-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.signature-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 8px;
}

.signature-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.signature-model {
  font-weight: 700;
  font-size: 1rem;
}

.signature-chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(75, 233, 195, 0.18);
  color: var(--accent-2);
  font-size: 0.8rem;
  font-weight: 600;
}

.signature-chart {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 18px 12px;
}

.signature-svg {
  width: 100%;
  height: auto;
}

.signature-grid line {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.signature-line {
  fill: none;
  stroke: url(#signatureGradient);
  stroke-width: 3;
  filter: drop-shadow(0 8px 18px rgba(125, 135, 255, 0.35));
}

.signature-area {
  fill: url(#signatureArea);
  opacity: 0.7;
}

.signature-dots circle {
  fill: #ffffff;
  stroke: #4be9c3;
  stroke-width: 2;
}

.signature-axis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.signature-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.signature-metric-card {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  opacity: 0;
  transform: translateY(8px);
  animation: metricIn 0.6s ease forwards;
}

.signature-metric-label {
  color: var(--muted);
  font-size: 0.75rem;
  margin-bottom: 6px;
}

.signature-metric-value {
  font-weight: 700;
  font-size: 1rem;
}

/* 可视化区域网格 */
.visual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* 可视化卡片 */
.visual-card {
  background: var(--panel);
  border-radius: 22px;
  border: 1px solid var(--border);
  padding: 20px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}

/* 可视化头部 */
.visual-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

/* 可视化副标题 */
.visual-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 8px;
}

/* 可视化控制区 */
.visual-controls {
  display: grid;
  gap: 8px;
}

.visual-label {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.visual-select {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-size: 0.9rem;
}

/* 对比地图 */
.compare-map-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.compare-cell {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 6px;
  min-height: 74px;
}

.compare-label {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.compare-value {
  font-weight: 700;
  font-size: 0.95rem;
}

.compare-delta {
  font-size: 0.9rem;
  color: var(--muted);
}

.compare-legend {
  display: grid;
  grid-template-columns: 1fr 120px 1fr;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.75rem;
}

.compare-legend-bar {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 107, 107, 0.8), rgba(75, 233, 195, 0.9));
}

/* 热力图 */
.heatmap-grid {
  display: grid;
  grid-template-columns: 140px repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

.heatmap-cell {
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.heatmap-col-label,
.heatmap-row-label {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 8px;
}

.heatmap-legend {
  display: grid;
  grid-template-columns: 1fr 120px 1fr;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.75rem;
}

.heatmap-legend-bar {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(125, 135, 255, 0.2), rgba(125, 135, 255, 0.9));
}

/* 模型谱系图 */
.lineage-chart {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px;
}

.lineage-svg {
  width: 100%;
  height: auto;
}

.lineage-link {
  stroke: rgba(125, 135, 255, 0.3);
  stroke-width: 1.5;
}

.lineage-link.active {
  stroke: rgba(75, 233, 195, 0.9);
  stroke-width: 2.4;
}

.lineage-node {
  fill: rgba(255, 255, 255, 0.95);
  stroke: rgba(125, 135, 255, 0.6);
  stroke-width: 2;
}

.lineage-node.active {
  fill: #4be9c3;
  stroke: #ffffff;
}

.lineage-label {
  fill: var(--muted);
  font-size: 12px;
  font-family: "Manrope", sans-serif;
}

.lineage-label.active {
  fill: #ffffff;
  font-weight: 600;
}

.visual-footnote {
  color: var(--muted);
  font-size: 0.78rem;
}

/* 表格包裹层 */
.table-wrap {
  background: var(--panel);
  border-radius: 20px;
  border: 1px solid var(--border);
  overflow: hidden;
}

/* Leaderboard 表格 */
.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

/* 表头样式 */
.leaderboard-table thead th {
  text-align: left;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-weight: 600;
}

/* 表格内容 */
.leaderboard-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* 表格行悬停 */
.leaderboard-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* 选中行状态 */
.leaderboard-table tbody tr.selected {
  background: rgba(125, 135, 255, 0.12);
}

/* 表格加载提示 */
.loading {
  text-align: center;
  color: var(--muted);
}

/* 空状态提示 */
.empty-state {
  padding: 18px 20px;
  color: var(--muted);
}

/* 详情卡片 */
.details-card {
  background: var(--panel);
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 20px;
  box-shadow: var(--shadow);
  height: fit-content;
}

/* 统一卡片玻璃感 */
:is(.panel-card, .table-wrap, .details-card, .info-card, .resource-card, .cta-card, .repo-chart-card, .repo-summary-card, .stat, .signature-card, .visual-card) {
  position: relative;
  overflow: hidden;
}

:is(.panel-card, .table-wrap, .details-card, .info-card, .resource-card, .cta-card, .repo-chart-card, .repo-summary-card, .stat, .signature-card, .visual-card)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.08), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

:is(.panel-card, .table-wrap, .details-card, .info-card, .resource-card, .cta-card, .repo-chart-card, .repo-summary-card, .stat, .signature-card, .visual-card):hover::before {
  opacity: 1;
}

/* 视差层 */
.parallax-layer {
  --parallax-offset: 0px;
  will-change: transform;
}

/* 轻微倾斜的动效卡片 */
.tilt-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --glow-x: 50%;
  --glow-y: 50%;
  transform: perspective(900px) translateY(var(--parallax-offset, 0px)) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.tilt-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--glow-x) var(--glow-y), rgba(125, 135, 255, 0.25), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.tilt-card:hover::after {
  opacity: 1;
}

/* 详情卡片小标题 */
.details-subtitle {
  color: var(--muted);
  margin-top: 4px;
}

/* 详情项 */
.details-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

/* 详情标签 */
.details-label {
  color: var(--muted);
  font-size: 0.85rem;
}

/* 详情数值 */
.details-value {
  font-weight: 600;
}

/* 按仓库视图布局 */
.repo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
}

/* 按仓库图表卡片 */
.repo-chart-card {
  background: var(--panel);
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 20px;
  box-shadow: var(--shadow);
}

/* 图表头部 */
.repo-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

/* 图表右侧徽章容器 */
.repo-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 图表副标题 */
.repo-chart-subtitle {
  color: var(--muted);
  margin: 6px 0 0;
  font-size: 0.9rem;
}

/* 顶部徽章 */
.repo-badge {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(125, 135, 255, 0.15);
  border: 1px solid rgba(125, 135, 255, 0.4);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
}

/* 图表容器 */
.repo-chart {
  display: grid;
  gap: 12px;
}

/* 图表行 */
.repo-bar-row {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr 60px;
  gap: 12px;
  align-items: center;
}

/* 图表标签 */
.repo-bar-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* 图表模型类型文字 */
.repo-bar-type {
  color: var(--muted);
  font-size: 0.75rem;
}

/* 图表轨道 */
.repo-bar-track {
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

/* 图表填充 */
.repo-bar-fill {
  height: 100%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  transition: width 0.6s ease;
}

/* 图表数值 */
.repo-bar-value {
  text-align: right;
  font-weight: 600;
  font-size: 0.85rem;
}

/* 右侧汇总卡片 */
.repo-summary-card {
  background: var(--panel);
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 20px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

/* Top 列表 */
.repo-top-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

/* Top 列表条目 */
.repo-top-list li {
  margin: 6px 0;
}

/* Top 列表强调 */
.repo-top-list strong {
  color: var(--text);
}

/* 小图表卡片 */
.repo-mini-card {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
}

/* 小图表头部 */
.repo-mini-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

/* 小图表模型名 */
.repo-mini-model {
  color: var(--text);
  font-weight: 600;
}

/* 小图表网格 */
.repo-mini-chart {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

/* 小图表单元 */
.repo-mini-item {
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* 小图表文字 */
.repo-mini-label {
  color: var(--muted);
  font-size: 0.75rem;
  margin-bottom: 6px;
}

/* 小图表条 */
.repo-mini-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

/* 小图表填充 */
.repo-mini-fill {
  height: 100%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  transition: width 0.6s ease;
}

/* 小图表数值 */
.repo-mini-value {
  margin-top: 6px;
  font-weight: 600;
  font-size: 0.85rem;
}

/* 信息卡片网格 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

/* 信息卡片样式 */
.info-card {
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

/* 时间线布局 */
.timeline {
  display: grid;
  gap: 18px;
}

/* 时间线条目 */
.timeline-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 18px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

/* 时间线序号 */
.timeline-step {
  display: grid;
  place-items: center;
  font-family: "Sora", "Manrope", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
}

/* 资源区域网格 */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

/* 资源卡片 */
.resource-card {
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.2s ease;
}

/* 资源卡片悬停 */
.resource-card:hover {
  transform: translateY(-4px);
}

/* 资源链接文字 */
.resource-link {
  color: var(--accent-2);
  font-weight: 600;
  display: inline-block;
  margin-top: 12px;
}

/* CTA 区域 */
.cta {
  padding-top: 20px;
}

/* CTA 卡片 */
.cta-card {
  border-radius: 24px;
  padding: 28px;
  background: linear-gradient(135deg, rgba(125, 135, 255, 0.18), rgba(75, 233, 195, 0.12));
  border: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* 页脚样式 */
.site-footer {
  padding: 40px 6vw 60px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

/* 页脚链接 */
.footer-links {
  display: flex;
  gap: 18px;
}

/* 置顶按钮样式 */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 19, 26, 0.9);
  color: var(--text);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
}

/* 置顶按钮显示状态 */
.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

/* 进入视口的淡入动画 */
.reveal {
  opacity: 0;
  transform: translateY(calc(var(--parallax-offset, 0px) + 16px));
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(var(--parallax-offset, 0px));
}

/* 小屏适配 */
@media (max-width: 1024px) {
  .leaderboard-layout {
    grid-template-columns: 1fr;
  }
  .repo-layout {
    grid-template-columns: 1fr;
  }
  .visual-grid {
    grid-template-columns: 1fr;
  }
  .site-nav {
    flex-wrap: wrap;
  }
}

/* 更小屏适配 */
@media (max-width: 720px) {
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .repo-bar-row {
    grid-template-columns: 1fr;
  }
  .repo-bar-value {
    text-align: left;
  }
  .signature-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .compare-map-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .heatmap-grid {
    grid-template-columns: 120px repeat(4, minmax(0, 1fr));
    font-size: 0.78rem;
  }
}

/* 触控设备隐藏鼠标光晕 */
@media (pointer: coarse) {
  .cursor-glow {
    display: none;
  }
}

/* 降低动画偏好 */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
  .page::before,
  .graph-lines line {
    animation: none !important;
  }
  .hero-panel .panel-card,
  .hero-panel .panel-graph {
    animation: none !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .cursor-glow,
  .graph-canvas {
    display: none;
  }
  .signature-metric-card {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
  .parallax-layer {
    --parallax-offset: 0px;
  }
}

/* 背景流动动画 */
@keyframes aurora {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 60% 40%;
  }
  100% {
    background-position: 0% 0%;
  }
}

/* 线条流动动画 */
@keyframes dash {
  to {
    stroke-dashoffset: -32;
  }
}

/* 浮动动画 */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Signature 指标卡进入动画 */
@keyframes metricIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
