.page-home {
  --home-hero-bg: linear-gradient(165deg, #0A2E1A 0%, #0D0D0D 60%);
  --home-card-bg: rgba(26, 26, 26, 0.85);
  --home-gold-line: linear-gradient(90deg, transparent, #D4AF37, transparent);
  --home-stat-glow: 0 0 12px rgba(212, 175, 55, 0.25);
  --home-switch-accent: #2ECC71;
  --home-favorites-bg: linear-gradient(135deg, #0A2E1A 0%, #1A1A1A 100%);
  --home-radius: 12px;
  --home-gap: 1.5rem;
}

/* ===== 首屏分屏 ===== */
.page-home .home-hero {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2.5rem 1.25rem 2rem;
  background: var(--home-hero-bg);
  position: relative;
  overflow: hidden;
  min-height: 80vh;
}

.page-home .home-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 70%;
  height: 120%;
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.page-home .home-context-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #D4AF37;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  width: fit-content;
  margin-bottom: 0.75rem;
}

.page-home .home-tag-icon {
  font-size: 0.6rem;
  line-height: 1;
}

.page-home .home-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 8vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  color: #F5F5F5;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.page-home .home-hero-desc {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: #A0A0A0;
  max-width: 480px;
  margin: 0 0 1.5rem;
}

.page-home .home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.page-home .home-hero-actions .btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.7rem 1.6rem;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.page-home .home-hero-actions .btn-primary {
  background: #D4AF37;
  color: #0D0D0D;
  border: 1px solid #D4AF37;
}

.page-home .home-hero-actions .btn-primary:hover,
.page-home .home-hero-actions .btn-primary:focus-visible {
  opacity: 0.88;
}

.page-home .home-hero-actions .btn-outline {
  background: transparent;
  color: #F5F5F5;
  border: 1px solid rgba(245, 245, 245, 0.3);
}

.page-home .home-hero-actions .btn-outline:hover,
.page-home .home-hero-actions .btn-outline:focus-visible {
  border-color: #D4AF37;
  color: #D4AF37;
}

.page-home .home-hero-stats {
  display: flex;
  gap: 2rem;
}

.page-home .stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.page-home .stat-number {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: #D4AF37;
  line-height: 1.1;
  text-shadow: var(--home-stat-glow);
}

.page-home .stat-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  color: #A0A0A0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-home .home-hero-visual {
  position: relative;
  width: 100%;
  border-radius: var(--home-radius);
  overflow: hidden;
  order: -1;
}

.page-home .home-hero-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  border-radius: var(--home-radius);
  border: 1px solid rgba(212, 175, 55, 0.15);
}

/* ===== 最新赛果 ===== */
.page-home .home-results {
  padding: 2.5rem 1.25rem;
  background: #0D0D0D;
  position: relative;
}

.page-home .home-results::after {
  content: '';
  display: block;
  height: 1px;
  background: var(--home-gold-line);
  margin-top: 2rem;
  opacity: 0.4;
}

.page-home .home-section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.page-home .home-section-header h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: #F5F5F5;
  margin: 0;
  letter-spacing: -0.01em;
}

.page-home .home-round-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: #D4AF37;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 100px;
  padding: 0.2rem 0.8rem;
  white-space: nowrap;
}

.page-home .home-results-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.page-home .home-match-card {
  background: var(--home-card-bg);
  border-left: 3px solid #D4AF37;
  border-radius: 0 var(--home-radius) var(--home-radius) 0;
  padding: 1rem 1.25rem;
  transition: background 0.2s;
}

.page-home .home-match-card:hover,
.page-home .home-match-card:focus-within {
  background: rgba(26, 26, 26, 0.95);
}

.page-home .match-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.page-home .match-round {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: #A0A0A0;
  min-width: 3.2rem;
}

.page-home .match-teams {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: #F5F5F5;
  flex: 1;
  min-width: 120px;
}

.page-home .match-status {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.page-home .status-finished {
  color: #A0A0A0;
  background: rgba(160, 160, 160, 0.15);
}

.page-home .status-live {
  color: #2ECC71;
  background: rgba(46, 204, 113, 0.15);
}

.page-home .status-upcoming {
  color: #D4AF37;
  background: rgba(212, 175, 55, 0.12);
}

.page-home .match-injury {
  margin-top: 0.6rem;
  font-family: var(--font-body);
}

.page-home .match-injury summary {
  font-size: 0.8rem;
  font-weight: 600;
  color: #D4AF37;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  padding: 0.2rem 0;
  border-radius: 4px;
  transition: color 0.15s;
}

.page-home .match-injury summary::-webkit-details-marker {
  display: none;
}

.page-home .match-injury summary::before {
  content: '▶';
  font-size: 0.55rem;
  transition: transform 0.2s;
  color: #D4AF37;
}

.page-home .match-injury[open] summary::before {
  transform: rotate(90deg);
}

.page-home .match-injury summary:hover,
.page-home .match-injury summary:focus-visible {
  color: #F1C40F;
}

.page-home .injury-count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: #E74C3C;
  background: rgba(231, 76, 60, 0.12);
  padding: 0 0.45rem;
  border-radius: 100px;
  line-height: 1.4;
}

.page-home .injury-detail {
  margin-top: 0.5rem;
  padding: 0.6rem 0.8rem;
  background: rgba(13, 13, 13, 0.6);
  border-radius: 6px;
  border: 1px solid rgba(212, 175, 55, 0.1);
}

.page-home .injury-detail p {
  margin: 0.25rem 0;
  font-size: 0.8rem;
  color: #A0A0A0;
  line-height: 1.5;
}

.page-home .injury-pos {
  font-weight: 600;
  color: #F5F5F5;
}

.page-home .home-section-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: #D4AF37;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.page-home .home-section-link:hover,
.page-home .home-section-link:focus-visible {
  border-bottom-color: #D4AF37;
}

/* ===== 快速切换 ===== */
.page-home .home-switch {
  padding: 2.5rem 1.25rem;
  background: #1A1A1A;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
}

.page-home .home-switch::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46, 204, 113, 0.3), transparent);
}

.page-home .home-switch-content h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: #F5F5F5;
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
}

.page-home .home-switch-desc {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #A0A0A0;
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

.page-home .home-switch-control {
  margin-bottom: 0.75rem;
}

.page-home .home-round-select {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: #F5F5F5;
  background: #0D0D0D;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 6px;
  padding: 0.7rem 1rem;
  width: 100%;
  max-width: 280px;
  cursor: pointer;
  transition: border-color 0.2s;
  appearance: auto;
  -webkit-appearance: auto;
  -moz-appearance: auto;
}

.page-home .home-round-select:hover,
.page-home .home-round-select:focus-visible {
  border-color: #D4AF37;
  outline: none;
}

.page-home .home-switch-visual {
  border-radius: var(--home-radius);
  overflow: hidden;
}

.page-home .home-switch-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  border: 1px solid rgba(46, 204, 113, 0.12);
  border-radius: var(--home-radius);
}

/* ===== 数据面板 ===== */
.page-home .home-data {
  padding: 2.5rem 1.25rem;
  background: #0D0D0D;
  position: relative;
}

.page-home .home-data::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 40%, rgba(212, 175, 55, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.page-home .home-data-header h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: #F5F5F5;
  margin: 0 0 0.3rem;
  letter-spacing: -0.01em;
}

.page-home .home-data-desc {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #A0A0A0;
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

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

.page-home .home-data-chart {
  border-radius: var(--home-radius);
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.12);
  background: rgba(10, 46, 26, 0.3);
}

.page-home .home-data-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
}

.page-home .home-data-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.page-home .data-stat-item {
  background: rgba(26, 26, 26, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 8px;
  padding: 1rem 0.8rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  transition: border-color 0.2s, background 0.2s;
}

.page-home .data-stat-item:hover {
  border-color: rgba(212, 175, 55, 0.3);
  background: rgba(26, 26, 26, 0.9);
}

.page-home .data-stat-value {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: #D4AF37;
  line-height: 1.1;
  text-shadow: var(--home-stat-glow);
}

.page-home .data-stat-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: #A0A0A0;
  letter-spacing: 0.03em;
}

/* ===== 收藏导航 ===== */
.page-home .home-favorites {
  padding: 2.5rem 1.25rem;
  background: var(--home-favorites-bg);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}

.page-home .home-favorites::before {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.page-home .home-favorites-content h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: #F5F5F5;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

.page-home .home-favorites-desc {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #A0A0A0;
  margin: 0 0 1.5rem;
  line-height: 1.6;
  max-width: 420px;
}

.page-home .home-favorites-content .btn-primary {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  background: #D4AF37;
  color: #0D0D0D;
  border: 1px solid #D4AF37;
  display: inline-block;
  transition: opacity 0.2s;
}

.page-home .home-favorites-content .btn-primary:hover,
.page-home .home-favorites-content .btn-primary:focus-visible {
  opacity: 0.88;
}

.page-home .home-favorites-visual {
  border-radius: var(--home-radius);
  overflow: hidden;
}

.page-home .home-favorites-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  border: 1px solid rgba(212, 175, 55, 0.12);
  border-radius: var(--home-radius);
}

/* ===== 工具类 ===== */
.page-home .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ===== 桌面端媒体查询 ===== */
@media (min-width: 768px) {
  .page-home .home-hero {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
    padding: 3rem 3rem 2.5rem;
    min-height: 70vh;
  }

  .page-home .home-hero-content {
    flex: 1 1 50%;
    max-width: 560px;
  }

  .page-home .home-hero-visual {
    flex: 1 1 45%;
    max-width: 600px;
    order: 1;
  }

  .page-home .home-hero-img {
    max-height: 420px;
    object-position: center;
  }

  .page-home .home-hero-title {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
  }

  .page-home .home-results {
    padding: 3rem 3rem 2.5rem;
  }

  .page-home .home-results-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .page-home .home-section-header h2 {
    font-size: 1.8rem;
  }

  .page-home .home-switch {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
    padding: 3rem 3rem;
  }

  .page-home .home-switch-content {
    flex: 1 1 55%;
  }

  .page-home .home-switch-visual {
    flex: 1 1 35%;
    max-width: 320px;
  }

  .page-home .home-switch-content h2 {
    font-size: 1.8rem;
  }

  .page-home .home-data {
    padding: 3rem 3rem 2.5rem;
  }

  .page-home .home-data-header h2 {
    font-size: 1.8rem;
  }

  .page-home .home-data-grid {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
  }

  .page-home .home-data-chart {
    flex: 1 1 60%;
  }

  .page-home .home-data-stats {
    flex: 1 1 30%;
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .page-home .data-stat-item {
    padding: 1.2rem 1rem;
  }

  .page-home .data-stat-value {
    font-size: 2.2rem;
  }

  .page-home .home-favorites {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
    padding: 3rem 3rem;
  }

  .page-home .home-favorites-content {
    flex: 1 1 50%;
  }

  .page-home .home-favorites-content h2 {
    font-size: 1.8rem;
  }

  .page-home .home-favorites-visual {
    flex: 1 1 40%;
    max-width: 440px;
  }
}

@media (min-width: 1200px) {
  .page-home .home-hero {
    padding: 4rem 4rem 3rem;
    gap: 4rem;
  }

  .page-home .home-results,
  .page-home .home-switch,
  .page-home .home-data,
  .page-home .home-favorites {
    padding-left: 4rem;
    padding-right: 4rem;
  }

  .page-home .home-results-list {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .page-home .home-data-grid {
    gap: 3rem;
  }

  .page-home .home-data-stats {
    grid-template-columns: 1fr 1fr;
  }
}
