.page-home {
  --home-hero-gap: 2rem;
  --home-lineup-border: rgba(0, 255, 135, 0.25);
  --home-timeline-accent: #FFD700;
  --home-fav-star: #FFD700;
  display: block;
  background-color: var(--bg-deep, #0D1B2A);
  color: var(--text-primary, #F5F5F5);
  padding: 0 1.5rem 3rem;
  max-width: var(--content-max, 1200px);
  margin: 0 auto;
  font-family: Inter, "Noto Sans SC", sans-serif;
}

/* 面包屑 */
.page-home .breadcrumb {
  padding: 0.75rem 0 0.25rem;
  font-size: 0.875rem;
  color: var(--text-secondary, #B0B0B0);
  border-bottom: 1px solid rgba(255, 215, 0, 0.15);
  margin-bottom: 2rem;
}

/* ===== 分屏首屏 ===== */
.page-home .split-hero {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem 0 3rem;
  position: relative;
}

.page-home .split-hero-data {
  flex: 1 1 50%;
}

.page-home .split-hero-heading {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-white, #FFFFFF);
  margin: 0 0 0.25rem;
  letter-spacing: 0.02em;
}

.page-home .split-hero-desc {
  color: var(--text-secondary, #B0B0B0);
  font-size: 1rem;
  margin: 0 0 1.5rem;
  border-left: 3px solid var(--accent-green, #00FF87);
  padding-left: 0.75rem;
}

/* 标签页 */
.page-home .match-tabs .tab-nav {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.page-home .match-tabs .tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary, #B0B0B0);
  font-size: 0.95rem;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  font-weight: 500;
  transition: color 0.2s, border-color 0.2s;
  border-bottom: 2px solid transparent;
  font-family: inherit;
}

.page-home .match-tabs .tab-btn[aria-selected="true"] {
  color: var(--accent-green, #00FF87);
  border-bottom-color: var(--accent-green, #00FF87);
}

.page-home .match-tabs .tab-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.page-home .match-tabs .tab-panel[data-visible="true"] {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 交锋数据 */
.page-home .match-stats-grid {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.page-home .stat-block {
  flex: 1;
  text-align: center;
  background: var(--bg-card, #1B2838);
  border-radius: var(--border-radius, 16px);
  padding: 1rem 0.75rem;
}

.page-home .stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary, #B0B0B0);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
}

.page-home .stat-team {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-white, #FFFFFF);
  display: block;
  margin: 0.3rem 0;
}

.page-home .stat-record {
  font-size: 1rem;
  color: var(--accent-green, #00FF87);
  font-family: "JetBrains Mono", monospace;
}

.page-home .stat-divider {
  flex: 0 0 auto;
  padding: 0 0.25rem;
}

.page-home .stat-vs {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-gold, #FFD700);
  font-family: "JetBrains Mono", monospace;
}

.page-home .stat-chart-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius, 16px);
  margin-top: 0.75rem;
  object-fit: cover;
  border: 1px solid rgba(255, 215, 0, 0.12);
}

/* 红黄牌卡片 */
.page-home .card-stack {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.page-home .card-stat {
  flex: 1;
  min-width: 80px;
  padding: 1.25rem 0.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.page-home .card-stat-key {
  font-size: 0.9rem;
  color: var(--text-secondary, #B0B0B0);
}

.page-home .card-stat-val {
  font-size: 2rem;
  font-weight: 700;
}

/* 近期战绩 */
.page-home .form-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.page-home .form-item {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  font-family: "JetBrains Mono", monospace;
}

.page-home .form-win {
  background: #0B4F2C;
}

.page-home .form-draw {
  background: #3A5A7A;
}

.page-home .form-loss {
  background: #7A2E2E;
}

/* 右侧视觉 */
.page-home .split-hero-visual {
  flex: 1 1 45%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card, #1B2838);
  border-radius: var(--border-radius, 16px);
  padding: 1.5rem;
  min-height: 280px;
}

.page-home .radar-viz {
  width: 100%;
  max-width: 360px;
  text-align: center;
}

.page-home .radar-svg {
  width: 100%;
  height: auto;
}

.page-home .radar-legend {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.75rem;
}

.page-home .legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-secondary, #B0B0B0);
}

.page-home .legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ===== 通用章节 ===== */
.page-home .content-section {
  padding: 3rem 0;
}

.page-home .section-heading {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-white, #FFFFFF);
  margin: 0 0 0.3rem;
  letter-spacing: 0.01em;
  position: relative;
  display: inline-block;
}

.page-home .section-heading::after {
  content: "";
  display: block;
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-green, #00FF87), transparent);
  margin-top: 0.4rem;
  border-radius: 2px;
}

.page-home .section-sub {
  color: var(--text-secondary, #B0B0B0);
  font-size: 1rem;
  margin: 0.2rem 0 1.8rem;
  max-width: 480px;
}

/* ===== 首发阵容 ===== */
.page-home .lineup-section {
  border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.page-home .lineup-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.page-home .lineup-col {
  background: var(--bg-card, #1B2838);
  border-radius: var(--border-radius, 16px);
  padding: 1.25rem 1rem;
  border-left: 3px solid var(--home-lineup-border);
  transition: border-color 0.25s;
}

.page-home .lineup-col:hover {
  border-left-color: var(--accent-green, #00FF87);
}

.page-home .lineup-team-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.page-home .lineup-badge {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  text-align: center;
  line-height: 28px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
}

.page-home .badge-home {
  background: #0B4F2C;
}

.page-home .badge-away {
  background: #7A4F0B;
}

.page-home .lineup-team-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-white, #FFFFFF);
}

.page-home .lineup-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.page-home .lineup-player {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s;
  cursor: default;
}

.page-home .lineup-player:hover {
  background: rgba(0, 255, 135, 0.08);
  transform: translateX(4px);
}

.page-home .player-num {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-gold, #FFD700);
  min-width: 28px;
}

.page-home .player-name {
  flex: 1;
  font-size: 0.95rem;
  color: var(--text-primary, #F5F5F5);
}

.page-home .player-meta {
  font-size: 0.8rem;
  color: var(--accent-green, #00FF87);
  opacity: 0.85;
}

.page-home .lineup-visual-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius, 16px);
  object-fit: cover;
  border: 1px solid rgba(0, 255, 135, 0.12);
  margin-top: 0.75rem;
}

/* ===== 亮点数据（窄章节） ===== */
.page-home .narrow-section {
  max-width: var(--content-narrow, 780px);
  margin-left: auto;
  margin-right: auto;
}

.page-home .highlight-section {
  padding: 2.5rem 0;
}

.page-home .highlight-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.page-home .highlight-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--border-radius, 16px);
  background: var(--bg-card, #1B2838);
  transition: transform 0.2s, box-shadow 0.2s;
}

.page-home .highlight-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 255, 135, 0.08);
}

.page-home .highlight-icon {
  font-size: 1.8rem;
  line-height: 1;
  min-width: 40px;
  text-align: center;
}

.page-home .highlight-val {
  font-size: 2rem;
  font-weight: 700;
  min-width: 60px;
  text-align: center;
}

.page-home .highlight-label {
  font-size: 0.95rem;
  color: var(--text-secondary, #B0B0B0);
}

/* ===== 赛后复盘时间轴 ===== */
.page-home .timeline-section {
  border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.page-home .timeline {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1.5rem;
}

.page-home .timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--home-timeline-accent), var(--accent-green, #00FF87));
  opacity: 0.3;
  border-radius: 1px;
}

.page-home .timeline-item {
  position: relative;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-start;
}

.page-home .timeline-marker {
  position: absolute;
  left: -2rem;
  top: 0.5rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-deep, #0D1B2A);
  border: 2px solid var(--home-timeline-accent);
  z-index: 1;
  transition: transform 0.2s;
}

.page-home .timeline-item:hover .timeline-marker {
  transform: scale(1.25);
  background: var(--home-timeline-accent);
}

.page-home .timeline-content {
  flex: 1;
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  background: var(--bg-card, #1B2838);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  transition: background 0.2s;
}

.page-home .timeline-content:hover {
  background: #1E3040;
}

.page-home .timeline-time {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--home-timeline-accent);
  min-width: 64px;
}

.page-home .timeline-event {
  font-size: 0.95rem;
  color: var(--text-primary, #F5F5F5);
  flex: 1;
}

.page-home .timeline-visual-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius, 16px);
  object-fit: cover;
  border: 1px solid rgba(255, 215, 0, 0.12);
  margin-top: 0.5rem;
}

/* ===== 收藏模块（窄章节） ===== */
.page-home .fav-section {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.page-home .fav-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.page-home .fav-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--border-radius, 16px);
  background: var(--bg-card, #1B2838);
  transition: background 0.2s, border-color 0.2s;
  border: 1px solid transparent;
}

.page-home .fav-card:hover {
  border-color: rgba(255, 215, 0, 0.2);
}

.page-home .fav-icon {
  font-size: 1.5rem;
  color: var(--home-fav-star);
  min-width: 36px;
  text-align: center;
  transition: transform 0.2s;
}

.page-home .fav-card:hover .fav-icon {
  transform: rotate(12deg) scale(1.1);
}

.page-home .fav-name {
  flex: 1;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary, #F5F5F5);
}

.page-home .fav-toggle {
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  flex-shrink: 0;
}

.page-home .fav-icon-img {
  display: block;
  margin: 0 auto;
  width: 60px;
  height: auto;
  max-width: 100%;
  border-radius: 50%;
  opacity: 0.7;
}

/* ===== 内部链接导航 ===== */
.page-home .internal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 2rem 0 1rem;
  border-top: 1px solid rgba(255, 215, 0, 0.08);
  justify-content: center;
}

.page-home .internal-nav .btn {
  padding: 0.5rem 1.4rem;
  font-size: 0.95rem;
}

/* ===== 响应式: 平板及以上 ===== */
@media (min-width: 768px) {
  .page-home {
    padding: 0 2rem 4rem;
  }

  .page-home .split-hero {
    flex-direction: row;
    gap: var(--home-hero-gap);
    padding: 2rem 0 4rem;
  }

  .page-home .split-hero-heading {
    font-size: 2.6rem;
  }

  .page-home .split-hero-visual {
    min-height: 340px;
    padding: 2rem;
  }

  .page-home .lineup-grid {
    flex-direction: row;
    gap: 1.5rem;
  }

  .page-home .lineup-col {
    flex: 1;
  }

  .page-home .highlight-grid {
    flex-direction: row;
  }

  .page-home .highlight-card {
    flex: 1;
  }

  .page-home .timeline {
    padding-left: 2.5rem;
  }

  .page-home .timeline-marker {
    left: -2.5rem;
    width: 20px;
    height: 20px;
  }

  .page-home .fav-grid {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .page-home .fav-card {
    flex: 1;
    min-width: 200px;
  }

  .page-home .internal-nav {
    gap: 1rem;
  }
}

/* ===== 桌面大屏 ===== */
@media (min-width: 1024px) {
  .page-home {
    padding: 0 3rem 5rem;
  }

  .page-home .split-hero-heading {
    font-size: 3rem;
  }

  .page-home .split-hero-visual {
    min-height: 400px;
    padding: 2.5rem;
  }

  .page-home .section-heading {
    font-size: 2.3rem;
  }

  .page-home .stat-record {
    font-size: 1.1rem;
  }

  .page-home .lineup-list {
    gap: 0.5rem;
  }

  .page-home .player-name {
    font-size: 1rem;
  }
}

/* ===== 辅助 ===== */
.page-home .btn {
  font-family: inherit;
}

.page-home .btn-outline {
  background: transparent;
  border: 1px solid var(--accent-green, #00FF87);
  color: var(--accent-green, #00FF87);
  border-radius: 24px;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}

.page-home .btn-outline:hover {
  background: var(--accent-green, #00FF87);
  color: var(--bg-deep, #0D1B2A);
}

.page-home .card {
  background: var(--bg-card, #1B2838);
  border-radius: var(--border-radius, 16px);
}

.page-home .data-val {
  font-family: "JetBrains Mono", monospace;
  color: var(--accent-green, #00FF87);
  font-weight: 700;
}

.page-home .data-font {
  font-family: "JetBrains Mono", monospace;
}
