/* ===== 盈嘉体育首页 · page-home 专属样式 ===== */
.page-home {
  --home-pad-x: clamp(1.25rem, 4vw, 3rem);
  --home-pad-y: clamp(3rem, 8vw, 6rem);
  --home-neon: var(--color-green);
  --home-accent: var(--color-red);
  --home-ink: var(--color-night);
  color: var(--color-fog);
}

.page-home a {
  color: inherit;
  text-decoration: none;
}

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

.page-home .site-container {
  max-width: var(--max-w);
  margin-inline: auto;
}

/* ---------- 首屏：章节预览 ---------- */
.page-home .home-hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--color-night);
}

.page-home .hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  opacity: 0.48;
}

.page-home .hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(20, 33, 61, 0.2) 0%, rgba(20, 33, 61, 0.72) 60%, var(--color-night) 100%);
}

.page-home .hero-inner {
  position: relative;
  z-index: 2;
  padding-top: clamp(4rem, 14vh, 9rem);
  padding-bottom: 1.5rem;
}

.page-home .hero-kicker {
  color: var(--color-green);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  margin-bottom: 1rem;
}

.page-home .hero-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--color-fog);
  font-size: clamp(2rem, 6vw, 4.6rem);
  max-width: 15em;
  margin-bottom: 0;
}

.page-home .hero-title__pre {
  display: block;
  font-size: 0.42em;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(241, 250, 238, 0.78);
  margin-bottom: 0.45rem;
}

.page-home .hero-title__main {
  display: block;
}

.page-home .hero-summary {
  margin-top: 1.5rem;
  max-width: 42em;
  color: rgba(241, 250, 238, 0.84);
  font-size: 1rem;
  line-height: 1.8;
}

.page-home .hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.page-home .hero-cta .btn--ghost {
  border-color: rgba(241, 250, 238, 0.6);
  color: var(--color-fog);
  background: transparent;
}

.page-home .hero-cta .btn--ghost:hover {
  border-color: var(--color-fog);
  background: rgba(241, 250, 238, 0.1);
}

.page-home .chapter-index {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.75rem 0 2.5rem;
}

.page-home .chapter-index__item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1rem;
  background: rgba(20, 33, 61, 0.7);
  border: 1px solid rgba(241, 250, 238, 0.22);
  box-shadow: var(--shadow-hard);
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.page-home .chapter-index__item:hover,
.page-home .chapter-index__item:focus-visible {
  border-color: var(--color-green);
  background: rgba(20, 33, 61, 0.92);
  transform: translateY(-2px);
}

.page-home .chapter-index__no {
  font-family: var(--font-mono);
  color: var(--color-green);
  font-size: 0.75rem;
  font-weight: 700;
}

.page-home .chapter-index__text {
  color: var(--color-fog);
  font-weight: 700;
  font-size: 1rem;
}

/* ---------- 章节通用 ---------- */
.page-home .home-league,
.page-home .home-data,
.page-home .home-download {
  background: var(--color-fog);
  color: var(--color-text);
}

.page-home .home-calendar,
.page-home .home-reports {
  background: var(--color-navy);
  color: var(--color-fog);
}

.page-home .home-league,
.page-home .home-calendar,
.page-home .home-data,
.page-home .home-reports,
.page-home .home-download {
  padding: var(--home-pad-y) var(--home-pad-x);
  position: relative;
}

.page-home .home-section-head {
  margin-bottom: clamp(2rem, 5vw, 3rem);
  max-width: 50em;
}

.page-home .home-section-head .section-kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.page-home .home-league .section-kicker,
.page-home .home-data .section-kicker,
.page-home .home-download .section-kicker {
  color: var(--color-red);
}

.page-home .home-calendar .section-kicker,
.page-home .home-reports .section-kicker {
  color: var(--color-green);
}

.page-home .section-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin: 0 0 0.75rem;
}

.page-home .home-league .section-title,
.page-home .home-data .section-title,
.page-home .home-download .section-title {
  color: var(--color-night);
}

.page-home .home-calendar .section-title,
.page-home .home-reports .section-title {
  color: var(--color-fog);
}

.page-home .section-desc {
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
  color: inherit;
  opacity: 0.85;
}

.page-home .section-note {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.page-home .section-note__link,
.page-home .data-extra a {
  color: var(--color-red);
  font-weight: 700;
  border-bottom: 1px solid rgba(230, 57, 70, 0.4);
  transition: border-color 0.2s ease;
}

.page-home .section-note__link:hover,
.page-home .data-extra a:hover {
  border-bottom-color: var(--color-red);
}

/* ---------- 联赛专题 ---------- */
.page-home .home-league {
  background: linear-gradient(135deg, var(--color-fog) 0%, #ffffff 48%, rgba(230, 57, 70, 0.08) 100%);
  box-shadow: 0 4px 0 rgba(230, 57, 70, 0.4);
}

.page-home .league-grid {
  display: grid;
  gap: 1.75rem;
}

.page-home .league-card {
  position: relative;
  background: var(--color-fog);
  border: 2px solid var(--color-night);
  box-shadow: var(--shadow-hard);
  padding: clamp(1.25rem, 3vw, 2rem);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.page-home .league-card:hover,
.page-home .league-card:focus-within {
  transform: translate(-3px, -3px);
  box-shadow: 12px 12px 0 rgba(20, 33, 61, 0.22);
}

.page-home .league-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.page-home .league-card__num {
  font-family: var(--font-mono);
  font-size: clamp(3.5rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 0.9;
  color: var(--color-trans-red);
  display: block;
}

.page-home .league-card__type {
  background: var(--color-night);
  color: var(--color-fog);
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.page-home .league-card__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  color: var(--color-night);
  margin: 0.5rem 0;
  line-height: 1.2;
}

.page-home .league-card__focus {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-muted);
  margin: 0 0 1.25rem;
}

.page-home .league-card__stats {
  margin: 0 0 1.25rem;
  border-top: 1px solid var(--color-line);
}

.page-home .league-card__stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--color-line);
}

.page-home .league-card__stat dt {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.page-home .league-card__stat dd {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-red);
  margin: 0;
  white-space: nowrap;
}

.page-home .league-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-night);
  border-bottom: 2px solid var(--color-red);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.page-home .league-card__link:hover,
.page-home .league-card__link:focus-visible {
  color: var(--color-red);
}

.page-home .league-card__arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.page-home .league-card__link:hover .league-card__arrow {
  transform: translateX(4px);
}

/* ---------- 赛事日历 ---------- */
.page-home .home-calendar {
  box-shadow: inset 0 18px 0 var(--color-night), inset 0 -18px 0 var(--color-night);
}

.page-home .calendar-list {
  display: grid;
  gap: 1rem;
}

.page-home .calendar-day {
  border: 1px solid rgba(241, 250, 238, 0.18);
  background: rgba(20, 33, 61, 0.62);
  box-shadow: 6px 6px 0 rgba(20, 33, 61, 0.45);
}

.page-home .calendar-day--today {
  border-color: var(--color-green);
  background: rgba(20, 33, 61, 0.85);
}

.page-home .calendar-day__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
}

.page-home .calendar-day__summary::-webkit-details-marker {
  display: none;
}

.page-home .calendar-day__summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--color-blue);
  line-height: 1;
  transition: transform 0.2s ease;
}

.page-home .calendar-day[open] .calendar-day__summary::after {
  transform: rotate(45deg);
}

.page-home .calendar-day__date {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--color-fog);
  min-width: 3.2em;
}

.page-home .calendar-day--today .calendar-day__date {
  color: var(--color-green);
}

.page-home .calendar-day__lead {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(241, 250, 238, 0.82);
  flex: 1;
}

.page-home .calendar-day__badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-fog);
  background: var(--color-blue);
  padding: 0.25rem 0.5rem;
}

.page-home .calendar-day--today .calendar-day__badge {
  background: var(--color-green);
  color: var(--color-night);
}

.page-home .calendar-day__matches {
  list-style: none;
  margin: 0;
  padding: 0 1.25rem 1rem;
  display: grid;
  gap: 0.5rem;
}

.page-home .calendar-match {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.8rem;
  border-left: 3px solid var(--color-red);
  background: rgba(69, 123, 157, 0.18);
}

.page-home .calendar-match__time {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-green);
  min-width: 3.5em;
}

.page-home .calendar-match__teams {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-fog);
  flex: 1;
}

.page-home .calendar-match__tag {
  font-size: 0.78rem;
  color: var(--color-fog);
  background: rgba(69, 123, 157, 0.35);
  padding: 0.2rem 0.5rem;
}

/* ---------- 数据区 ---------- */
.page-home .home-data {
  background: linear-gradient(180deg, var(--color-fog) 0%, #ffffff 72%);
}

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

.page-home .data-cards {
  display: grid;
  gap: 1.5rem;
  align-content: start;
}

.page-home .data-stat {
  border: 2px solid var(--color-night);
  background: var(--color-fog);
  box-shadow: var(--shadow-hard);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.page-home .data-stat--primary {
  border-color: var(--color-red);
  background: var(--color-night);
  color: var(--color-fog);
}

.page-home .data-stat__label {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  margin: 0 0 0.5rem;
}

.page-home .data-stat--primary .data-stat__label {
  color: var(--color-green);
}

.page-home .data-stat__number {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: -0.05em;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1;
  color: var(--color-night);
  margin: 0.25rem 0 0.5rem;
}

.page-home .data-stat--primary .data-stat__number {
  color: var(--color-fog);
}

.page-home .data-stat__note {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
  color: var(--color-muted);
}

.page-home .data-stat--primary .data-stat__note {
  color: rgba(241, 250, 238, 0.78);
}

.page-home .data-stat-subgrid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.page-home .goal-chart-panel {
  border: 2px solid var(--color-night);
  background: var(--color-fog);
  box-shadow: var(--shadow-hard);
  padding: clamp(1.25rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.page-home .data-sub-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--color-night);
  margin: 0;
}

.page-home .goal-chart {
  width: 100%;
  height: auto;
  display: block;
}

.page-home .goal-chart__label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  fill: var(--color-muted);
}

.page-home .goal-chart__value {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  fill: var(--color-night);
}

.page-home .goal-chart__bar--score {
  fill: var(--color-red);
}

.page-home .goal-chart__bar--concede {
  fill: var(--color-blue);
}

.page-home .goal-chart__note {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin: 0;
}

.page-home .data-visual-img {
  border: 1px solid var(--color-line);
  box-shadow: 6px 6px 0 rgba(20, 33, 61, 0.1);
  width: 100%;
  object-fit: cover;
}

.page-home .data-extra {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.7;
  max-width: 60em;
}

/* ---------- 重点场次战报 ---------- */
.page-home .home-reports {
  box-shadow: inset 0 18px 0 var(--color-night), inset 0 -18px 0 var(--color-night);
}

.page-home .report-card {
  display: grid;
  gap: 1.75rem;
  border: 2px solid rgba(241, 250, 238, 0.18);
  background: rgba(20, 33, 61, 0.72);
  box-shadow: var(--shadow-deep);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.page-home .report-card__media {
  position: relative;
}

.page-home .report-card__media img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  border: 2px solid var(--color-night);
}

.page-home .report-card__flag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--color-red);
  color: var(--color-fog);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.7rem;
  box-shadow: 4px 4px 0 rgba(20, 33, 61, 0.5);
}

.page-home .report-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-home .report-card__meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-green);
  margin: 0 0 0.75rem;
  letter-spacing: 0.06em;
}

.page-home .report-card__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.15;
  color: var(--color-fog);
  margin: 0 0 1rem;
}

.page-home .report-card__excerpt {
  font-size: 0.98rem;
  line-height: 1.75;
  color: rgba(241, 250, 238, 0.82);
  margin: 0 0 1.5rem;
}

.page-home .report-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  width: 100%;
}

.page-home .report-stat {
  background: var(--color-night);
  border: 1px solid rgba(241, 250, 238, 0.18);
  padding: 0.75rem 1rem;
  flex: 1;
  min-width: 6.5em;
}

.page-home .report-stat__value {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--color-fog);
  margin-bottom: 0.35rem;
}

.page-home .report-stat__label {
  font-size: 0.78rem;
  color: var(--color-blue);
}

.page-home .report-card .btn--ghost {
  border-color: rgba(241, 250, 238, 0.45);
  color: var(--color-fog);
}

.page-home .report-card .btn--ghost:hover {
  border-color: var(--color-fog);
  background: rgba(241, 250, 238, 0.1);
}

/* ---------- 资源下载 ---------- */
.page-home .home-download {
  background: linear-gradient(135deg, var(--color-fog) 0%, #ffffff 55%, rgba(168, 225, 12, 0.08) 100%);
  box-shadow: 0 6px 0 rgba(20, 33, 61, 0.28);
}

.page-home .download-panel {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.page-home .download-copy .download-lead {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
  margin: 1.25rem 0 1.75rem;
}

.page-home .download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.page-home .download-actions .btn--green {
  box-shadow: 6px 6px 0 rgba(20, 33, 61, 0.28);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.page-home .download-actions .btn--green:hover,
.page-home .download-actions .btn--green:focus-visible {
  box-shadow: 10px 10px 0 rgba(20, 33, 61, 0.3);
  transform: translate(-2px, -2px);
}

.page-home .download-actions .btn--ghost {
  border-color: var(--color-night);
  color: var(--color-night);
}

.page-home .download-actions .btn--ghost:hover {
  background: rgba(20, 33, 61, 0.08);
}

.page-home .download-meta {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--color-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.page-home .download-figure {
  display: flex;
  justify-content: center;
}

.page-home .download-figure img {
  width: min(220px, 100%);
  height: auto;
  border: 2px solid var(--color-night);
  box-shadow: var(--shadow-hard);
  background: var(--color-fog);
  object-fit: cover;
}

/* ---------- 桌面端增强 ---------- */
@media (min-width: 920px) {
  .page-home .league-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-home .calendar-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-home .calendar-day--today {
    grid-column: 1 / -1;
  }

  .page-home .data-grid {
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
  }

  .page-home .data-stat-subgrid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-home .report-card {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
  }

  .page-home .download-panel {
    grid-template-columns: minmax(0, 1.2fr) minmax(200px, 0.6fr);
  }

  .page-home .download-figure {
    justify-content: flex-end;
  }
}

/* ---------- 视觉降级与焦点可见性 ---------- */
.page-home .skip-target,
.page-home a:focus-visible,
.page-home summary:focus-visible {
  outline: 3px solid var(--color-green);
  outline-offset: 2px;
}

.page-home .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  line-height: 1.2;
  text-align: center;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.page-home .btn--compact {
  min-height: 2.6rem;
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
}

.page-home .btn--green {
  background: var(--color-green);
  color: var(--color-night);
}

.page-home .btn--ghost {
  border-color: currentColor;
  background: transparent;
}

.page-home .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
