/* ==========================================================
   首页专属样式 · page-home
   作用域：.page-home 内，移动端优先
   ========================================================== */
.page-home {
  --home-line: rgba(141, 153, 174, 0.16);
  --home-line-strong: rgba(141, 153, 174, 0.24);
  --home-red-soft: rgba(230, 57, 70, 0.12);
  --home-green-soft: rgba(42, 255, 104, 0.10);
  --home-card-bg: rgba(19, 34, 56, 0.72);
  background: var(--c-space);
  color: var(--c-white);
  overflow-x: hidden;
}

/* ---------- 通用区块节拍 ---------- */
.page-home .section-header {
  margin-bottom: 28px;
}

/* ---------- Hero 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  padding: 56px 0 48px;
  background:
    radial-gradient(1000px 500px at 92% -10%, rgba(230, 57, 70, 0.18), transparent 62%),
    radial-gradient(800px 420px at -6% 112%, rgba(42, 255, 104, 0.11), transparent 56%),
    var(--c-space);
  border-bottom: 1px solid var(--home-line);
  overflow: hidden;
  isolation: isolate;
}

.page-home .hero-decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page-home .hero-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.page-home .hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: center;
  padding-top: 12px;
  padding-bottom: 12px;
}

@media (min-width: 992px) {
  .page-home .hero-grid {
    grid-template-columns: 1.12fr 0.88fr;
    gap: 60px;
  }
}

.page-home .hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sub);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--c-green);
  padding: 8px 16px;
  border: 1px solid rgba(42, 255, 104, 0.30);
  border-radius: var(--r-full);
  margin-bottom: 24px;
  text-transform: uppercase;
}

.page-home .hero-kicker .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-green);
  animation: home-pulse 1.8s ease-in-out infinite;
}

@keyframes home-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.78); }
}

.page-home .home-hero h1 {
  font-family: var(--font-head);
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: 0.01em;
  margin: 0 0 18px;
  color: var(--c-white);
}

.page-home .title-divider {
  color: var(--c-red);
  margin: 0 6px;
}

.page-home .title-second-line {
  color: var(--c-white);
  white-space: nowrap;
}

@media (min-width: 768px) {
  .page-home .home-hero h1 {
    font-size: 60px;
  }
}

@media (min-width: 1200px) {
  .page-home .home-hero h1 {
    font-size: 72px;
  }
}

.page-home .hero-lead {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.85;
  color: var(--c-silver);
  max-width: 560px;
  margin: 0 0 28px;
}

@media (min-width: 768px) {
  .page-home .hero-lead {
    font-size: 17px;
  }
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.page-home .hero-actions .btn {
  min-width: 132px;
  justify-content: center;
}

.page-home .hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 460px;
  margin: 0;
}

.page-home .hero-stat {
  background: rgba(19, 34, 56, 0.62);
  border: 1px solid var(--home-line);
  border-radius: var(--r-md);
  padding: 16px 14px;
  text-align: center;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.page-home .hero-stat:hover {
  border-color: rgba(42, 255, 104, 0.35);
  background-color: var(--home-green-soft);
}

.page-home .hero-stat dt {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-white);
  margin: 0;
}

.page-home .hero-stat .stat-unit {
  font-size: 15px;
  color: var(--c-green);
  margin-left: 2px;
}

.page-home .hero-stat dd {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--c-metal);
  letter-spacing: 0.04em;
}

/* ---------- Hero 右侧积分板 ---------- */
.page-home .live-board {
  background: linear-gradient(160deg, rgba(19, 34, 56, 0.94), rgba(10, 17, 40, 0.98));
  border: 1px solid var(--home-line-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 20px 18px;
}

.page-home .live-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.page-home .live-board-title {
  font-family: var(--font-sub);
  font-size: 18px;
  font-weight: 700;
  color: var(--c-white);
  letter-spacing: 0.02em;
}

.page-home .board-live-tag {
  font-style: normal;
  font-size: 14px;
  font-weight: 400;
  color: var(--c-green);
  margin-left: 4px;
}

.page-home .board-row {
  display: grid;
  grid-template-columns: 44px 1fr 46px 54px;
  align-items: center;
  padding: 12px 8px;
  border-bottom: 1px solid rgba(141, 153, 174, 0.10);
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--c-silver);
}

.page-home .board-row:last-of-type {
  border-bottom: none;
}

.page-home .board-head {
  font-family: var(--font-sub);
  font-size: 12px;
  letter-spacing: 0.10em;
  color: var(--c-metal);
  padding: 6px 8px;
  text-transform: uppercase;
}

.page-home .board-top {
  background: rgba(230, 57, 70, 0.14);
  border-radius: 10px;
  border-bottom: none;
  margin-bottom: 2px;
}

.page-home .board-top .team {
  color: var(--c-white);
  font-weight: 700;
}

.page-home .board-top .pts {
  color: var(--c-green);
  font-weight: 700;
}

.page-home .board-row .rank {
  font-weight: 700;
  color: var(--c-metal);
}

.page-home .board-row .team {
  font-family: var(--font-sub);
  font-size: 15px;
}

.page-home .board-row .pts {
  color: var(--c-white);
  font-weight: 700;
}

.page-home .live-board-foot {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 14px;
  margin-top: 4px;
  border-top: 1px dashed var(--home-line-strong);
  font-size: 12px;
  color: var(--c-metal);
}

.page-home .live-board-foot .link-underline {
  color: var(--c-green);
}

/* ---------- 赛事焦点 ---------- */
.page-home .home-focus {
  padding: 60px 0 64px;
  background: var(--c-space);
}

.page-home .focus-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.page-home .focus-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.page-home .focus-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.page-home .focus-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 22px 26px;
  background: linear-gradient(180deg, rgba(10, 17, 40, 0) 0%, rgba(10, 17, 40, 0.72) 52%, rgba(10, 17, 40, 0.96) 100%);
  color: var(--c-white);
}

.page-home .focus-overlay .pill {
  margin-bottom: 10px;
}

.page-home .focus-meta {
  font-family: var(--font-sub);
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.page-home .focus-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-silver);
  max-width: 560px;
  margin: 0 0 10px;
}

.page-home .focus-overlay .link-underline {
  color: var(--c-yellow);
}

@media (min-width: 768px) {
  .page-home .focus-overlay {
    padding: 36px 36px 34px;
  }

  .page-home .focus-meta {
    font-size: 26px;
  }

  .page-home .focus-desc {
    font-size: 15px;
  }
}

/* ---------- 一触即达 ---------- */
.page-home .home-quick {
  padding: 64px 0;
  background:
    radial-gradient(720px 360px at 12% 12%, rgba(42, 255, 104, 0.06), transparent 62%),
    var(--c-deep);
  border-top: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
}

.page-home .quick-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.page-home .quick-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 992px) {
  .page-home .quick-layout {
    grid-template-columns: 0.88fr 1.12fr;
    gap: 56px;
  }
}

.page-home .quick-visual {
  position: relative;
}

.page-home .quick-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  object-fit: cover;
}

.page-home .quick-visual-note {
  position: absolute;
  left: 14px;
  bottom: 14px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 17, 40, 0.90);
  color: var(--c-white);
  font-size: 12px;
  font-family: var(--font-sub);
  padding: 8px 14px;
  border-radius: var(--r-full);
  border: 1px solid rgba(42, 255, 104, 0.28);
}

.page-home .quick-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.page-home .quick-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(10, 17, 40, 0.76);
  border: 1px solid var(--home-line);
  border-radius: var(--r-md);
  padding: 18px;
  color: var(--c-white);
  text-decoration: none;
  transition:
    border-color 0.18s var(--ease),
    transform 0.18s var(--ease),
    background-color 0.18s var(--ease);
}

.page-home .quick-card:hover,
.page-home .quick-card:focus-visible {
  border-color: rgba(42, 255, 104, 0.55);
  background: var(--home-green-soft);
  transform: translateY(-3px);
}

.page-home .quick-card-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 20px;
  font-weight: 700;
  color: var(--c-red);
  background: var(--home-red-soft);
  border: 1px solid rgba(230, 57, 70, 0.28);
  transition:
    color 0.18s var(--ease),
    background-color 0.18s var(--ease);
}

.page-home .quick-card:hover .quick-card-icon,
.page-home .quick-card:focus-visible .quick-card-icon {
  color: var(--c-space);
  background: var(--c-red);
}

.page-home .quick-card-body h3 {
  font-family: var(--font-sub);
  font-size: 17px;
  margin: 0 0 6px;
  letter-spacing: 0.02em;
}

.page-home .quick-card-body p {
  font-size: 13px;
  line-height: 1.65;
  margin: 0 0 10px;
  color: var(--c-silver);
}

.page-home .quick-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-green);
  background: var(--home-green-soft);
  padding: 4px 10px;
  border-radius: var(--r-full);
}

/* ---------- 实时积分 ---------- */
.page-home .home-standings {
  padding: 64px 0;
  background:
    radial-gradient(900px 420px at 100% 20%, rgba(230, 57, 70, 0.08), transparent 60%),
    var(--c-space);
}

.page-home .standings-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 992px) {
  .page-home .standings-layout {
    grid-template-columns: 0.92fr 1.08fr;
    gap: 64px;
  }
}

.page-home .standings-lead {
  font-size: 15px;
  line-height: 1.85;
  color: var(--c-silver);
  margin: 0 0 24px;
}

.page-home .standings-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.page-home .meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-family: var(--font-sub);
  color: var(--c-metal);
  padding: 6px 14px;
  background: rgba(19, 34, 56, 0.72);
  border-radius: var(--r-full);
  border: 1px solid var(--home-line);
}

.page-home .chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.page-home .chip-red { background: var(--c-red); }
.page-home .chip-green { background: var(--c-green); }
.page-home .chip-silver { background: var(--c-metal); }

.page-home .standings-figure {
  margin: 0;
  position: relative;
}

.page-home .standings-img {
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  display: block;
  object-fit: cover;
}

.page-home .standings-figure figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--c-metal);
  text-align: center;
  font-family: var(--font-sub);
  letter-spacing: 0.03em;
}

/* ---------- 最近五个比赛日 ---------- */
.page-home .home-recent {
  padding: 64px 0;
  background:
    radial-gradient(760px 360px at 4% 86%, rgba(42, 255, 104, 0.05), transparent 58%),
    var(--c-deep);
  border-top: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
}

.page-home .recent-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.page-home .recent-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 992px) {
  .page-home .recent-layout {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
  }
}

.page-home .recent-timeline {
  list-style: none;
  position: relative;
  margin: 0;
  padding: 8px 0 8px 24px;
}

.page-home .recent-timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--c-red), var(--c-green));
  border-radius: 2px;
  opacity: 0.5;
}

.page-home .timeline-item {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 12px 0 12px 18px;
  border-bottom: 1px dashed rgba(141, 153, 174, 0.16);
}

.page-home .timeline-item:last-child {
  border-bottom: none;
}

.page-home .timeline-item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-space);
  border: 2px solid var(--c-green);
  transform: translateY(-50%);
}

.page-home .timeline-day {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-metal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-basis: 80px;
}

.page-home .timeline-match {
  font-family: var(--font-sub);
  font-size: 15px;
  color: var(--c-silver);
  flex: 1;
}

.page-home .timeline-match b {
  font-family: var(--font-mono);
  color: var(--c-white);
  font-weight: 700;
  padding: 0 4px;
}

.page-home .result-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 3px 10px;
  border-radius: var(--r-full);
}

.page-home .pill-win {
  background: rgba(42, 255, 104, 0.14);
  color: var(--c-green);
  border: 1px solid rgba(42, 255, 104, 0.30);
}

.page-home .pill-draw {
  background: rgba(255, 209, 102, 0.12);
  color: var(--c-yellow);
  border: 1px solid rgba(255, 209, 102, 0.28);
}

.page-home .recent-chart {
  margin: 0;
}

.page-home .chart-img {
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  display: block;
  object-fit: cover;
}

.page-home .recent-chart figcaption {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-green);
  text-align: center;
}

/* ---------- 焕新版说明 ---------- */
.page-home .home-version {
  padding: 64px 0;
  background: var(--c-space);
}

.page-home .version-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  background: linear-gradient(145deg, rgba(19, 34, 56, 0.92), rgba(10, 17, 40, 0.97));
  border: 1px solid var(--home-line-strong);
  border-radius: var(--r-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-card);
}

@media (min-width: 992px) {
  .page-home .version-card {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    padding: 48px 52px;
  }
}

.page-home .version-copy p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--c-silver);
  margin: 0 0 24px;
}

.page-home .version-timeline {
  list-style: none;
  position: relative;
  margin: 0;
  padding: 0 0 0 20px;
}

.page-home .version-timeline::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--c-red), var(--c-green));
  opacity: 0.35;
  border-radius: 2px;
}

.page-home .version-item {
  position: relative;
  display: grid;
  grid-template-columns: 58px 68px 1fr;
  gap: 8px;
  align-items: baseline;
  padding: 10px 0 10px 18px;
}

.page-home .version-item::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-space);
  border: 2px solid var(--c-metal);
  transform: translateY(-50%);
}

.page-home .version-item:has(.version-current)::before {
  border-color: var(--c-green);
  box-shadow: 0 0 0 3px rgba(42, 255, 104, 0.14);
}

.page-home .version-tag {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--c-silver);
}

.page-home .version-tag.version-current {
  color: var(--c-green);
}

.page-home .version-year {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-metal);
}

.page-home .version-desc {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--c-silver);
}

/* ---------- 窄屏边界保护 ---------- */
@media (max-width: 420px) {
  .page-home .title-second-line {
    white-space: normal;
  }

  .page-home .home-hero h1 {
    font-size: 36px;
  }

  .page-home .hero-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .page-home .board-row {
    grid-template-columns: 36px 1fr 40px 48px;
    font-size: 13px;
  }

  .page-home .version-item {
    grid-template-columns: 52px 60px 1fr;
    font-size: 12px;
  }

  .page-home .timeline-day {
    flex-basis: 100%;
  }
}
