/* ===== KAIYUN 首页专属样式 ===== */
.page-home {
  --home-gold-glow: rgba(245, 166, 35, 0.14);
  --home-blue-glow: rgba(0, 194, 255, 0.12);
  background: var(--ink-900);
  color: var(--text);
  overflow-x: clip;
}

/* ---------- 首屏 Hero ---------- */
.page-home .home-hero {
  position: relative;
  padding: 3rem 0 2.5rem;
  overflow: hidden;
}
.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 18%, var(--home-gold-glow), transparent 42%),
    radial-gradient(circle at 24% 78%, var(--home-blue-glow), transparent 40%);
  pointer-events: none;
}
.page-home .home-hero__inner {
  position: relative;
  display: grid;
  gap: 2rem;
  align-items: center;
}
.page-home .home-hero__content {
  max-width: 40rem;
}
.page-home .home-hero__label {
  margin-bottom: 1rem;
}
.page-home .home-hero__title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 7vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: 0.01em;
  margin: 0 0 1.1rem;
  color: var(--text);
}
.page-home .home-hero__lead {
  font-size: 1.04rem;
  line-height: 1.7;
  color: var(--text-2);
  margin: 0 0 1.6rem;
}
.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
}
.page-home .home-hero__ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.page-home .hero-tick {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--ink-600);
  border-radius: 999px;
  background: rgba(20, 26, 36, 0.72);
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1;
}
.page-home .hero-tick strong {
  font-size: 1.05rem;
  font-weight: 800;
}
.page-home .hero-tick--gold strong { color: var(--gold); }
.page-home .hero-tick--blue strong { color: var(--blue); }
.page-home .hero-tick--paper { border-color: rgba(245, 230, 200, 0.4); }
.page-home .hero-tick--paper strong { color: var(--paper); }

/* 首屏视觉 */
.page-home .home-hero__visual {
  position: relative;
}
.page-home .hero-visual-box {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--ink-600), var(--ink-900));
  border: 1px solid var(--ink-600);
  box-shadow: var(--shadow-2);
  display: grid;
  align-items: center;
}
.page-home .hero-visual__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.85;
}
.page-home .hero-visual__beam {
  position: absolute;
  top: -14%;
  height: 72%;
  width: 44%;
  filter: blur(10px);
  pointer-events: none;
  z-index: 2;
}
.page-home .hero-visual__beam--gold {
  left: 6%;
  background: linear-gradient(to bottom, rgba(245, 166, 35, 0.5), rgba(245, 166, 35, 0));
  transform: rotate(18deg);
}
.page-home .hero-visual__beam--blue {
  right: 0;
  background: linear-gradient(to bottom, rgba(0, 194, 255, 0.36), rgba(0, 194, 255, 0));
  transform: rotate(-16deg);
}
.page-home .hero-visual__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}
.page-home .hero-visual__path {
  stroke-dasharray: 8 18;
  animation: home-dash-flow 30s linear infinite;
}
.page-home .hero-visual__path--slow {
  animation-duration: 44s;
  animation-direction: reverse;
}
.page-home .hero-visual__mark {
  animation: home-blink 2.6s ease-in-out infinite alternate;
}
.page-home .hero-visual__emblem {
  position: absolute;
  right: -0.05em;
  bottom: -0.16em;
  z-index: 2;
  font-family: var(--font-head);
  font-size: clamp(7rem, 22vw, 16rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(245, 166, 35, 0.14);
  user-select: none;
}

/* ---------- 通用章节 ---------- */
.page-home .home-section {
  position: relative;
  padding: 3.2rem 0;
}
.page-home .home-section + .home-section {
  border-top: 1px solid var(--ink-700);
}
.page-home .section-head {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}
.page-home .section-no {
  font-family: var(--font-head);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.85;
  letter-spacing: 0.02em;
  min-width: 3.4rem;
}
.page-home .section-head__text {
  flex: 1;
  min-width: 14rem;
}
.page-home .section-title {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  letter-spacing: 0.02em;
  margin: 0.15rem 0 0;
  color: var(--text);
}
.page-home .btn--small {
  padding: 0.52rem 1rem;
  font-size: 0.84rem;
}

/* ---------- 01 今日赛程 Bento ---------- */
.page-home .schedule-bento {
  display: grid;
  gap: 1rem;
}
.page-home .schedule-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  border-radius: var(--radius);
}
.page-home .schedule-feature__thumb {
  position: relative;
  aspect-ratio: 320 / 200;
  overflow: hidden;
}
.page-home .schedule-feature__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-home .schedule-feature__body {
  padding: 1.1rem 1.2rem 1.2rem;
}
.page-home .schedule-feature__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.7rem;
}
.page-home .schedule-feature__time {
  font-size: 0.82rem;
  color: var(--text-2);
}
.page-home .schedule-feature__match {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-family: var(--font-head);
  font-size: 1.45rem;
  line-height: 1.2;
  margin: 0 0 0.4rem;
  color: var(--text);
}
.page-home .schedule-feature__vs {
  color: var(--gold);
  font-size: 0.8rem;
}
.page-home .schedule-feature__info {
  font-size: 0.82rem;
  color: var(--text-2);
  margin: 0;
}
.page-home .lineup-tick {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin-top: 1rem;
  padding: 0.7rem 0.8rem;
  border: 1px dashed rgba(245, 166, 35, 0.5);
  background: rgba(245, 166, 35, 0.06);
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-2);
}
.page-home .lineup-tick strong {
  color: var(--gold);
  font-weight: 700;
}
.page-home .lineup-tick__icon {
  flex: 0 0 auto;
  margin-top: 0.1rem;
}

.page-home .schedule-mini {
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-radius: var(--radius);
}
.page-home .schedule-mini__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.page-home .schedule-mini__time {
  font-size: 0.78rem;
  color: var(--text-2);
}
.page-home .schedule-mini__match {
  font-family: var(--font-head);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  color: var(--text);
}
.page-home .schedule-mini__match span {
  color: var(--gold);
  font-size: 0.75rem;
}
.page-home .schedule-mini__info {
  font-size: 0.82rem;
  color: var(--text-2);
  margin: 0;
}

.page-home .schedule-note {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.2rem;
  border-radius: var(--radius);
  background:
    linear-gradient(150deg, rgba(0, 194, 255, 0.08), transparent 56%),
    var(--ink-700);
  border: 1px solid var(--ink-600);
}
.page-home .schedule-note__label {
  font-size: 0.78rem;
}
.page-home .schedule-note__text {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-2);
  margin: 0;
}

/* ---------- 02 射手榜 ---------- */
.page-home .scorer-layout {
  display: grid;
  gap: 1rem;
}
.page-home .scorer-table {
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0.6rem;
}
.page-home .scorer-row {
  display: grid;
  grid-template-columns: 2.6rem 1fr 3.2rem 3.2rem;
  align-items: center;
  gap: 0.4rem;
  padding: 0.62rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: background-color var(--dur) var(--ease);
}
.page-home .scorer-row:hover {
  background: rgba(255, 255, 255, 0.04);
}
.page-home .scorer-row--head {
  font-size: 0.72rem;
  color: var(--text-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink-600);
  border-radius: 0;
  padding-top: 0.3rem;
  padding-bottom: 0.5rem;
}
.page-home .scorer-rank {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--text-2);
}
.page-home .scorer-row--gold .scorer-rank { color: var(--gold); }
.page-home .scorer-row--blue .scorer-rank { color: var(--blue); }
.page-home .scorer-row--paper .scorer-rank { color: var(--paper); }
.page-home .scorer-player {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  min-width: 0;
}
.page-home .scorer-player strong {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}
.page-home .scorer-player small {
  font-size: 0.72rem;
  color: var(--text-2);
}
.page-home .scorer-goals {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--text);
  text-align: right;
}
.page-home .scorer-assists {
  color: var(--text-2);
  font-size: 0.85rem;
  text-align: right;
}

.page-home .scorer-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.page-home .scorer-chart {
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  flex: 1 1 auto;
  min-height: 220px;
}
.page-home .scorer-chart__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-home .scorer-callout {
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.1), transparent 70%), var(--ink-700);
  border: 1px solid rgba(245, 166, 35, 0.35);
  padding: 1.2rem 1.3rem;
}
.page-home .scorer-callout__title {
  font-family: var(--font-head);
  letter-spacing: 0.03em;
  color: var(--gold);
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}
.page-home .scorer-callout__text {
  margin: 0;
  color: var(--text-2);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ---------- 03 战报速递 ---------- */
.page-home .report-grid {
  display: grid;
  gap: 1rem;
}
.page-home .report-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: var(--radius);
  align-items: center;
}
.page-home .report-item__thumb {
  width: 120px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.page-home .report-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-home .report-item__body {
  min-width: 0;
}
.page-home .report-item__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.45rem;
}
.page-home .report-item__meta > span:last-child {
  font-size: 0.72rem;
  color: var(--text-2);
}
.page-home .report-item__title {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  line-height: 1.4;
}
.page-home .report-item__title a {
  color: var(--text);
  text-decoration: none;
}
.page-home .report-item__title a:hover {
  color: var(--gold);
}
.page-home .report-item__text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-home .report-timeline {
  border-radius: var(--radius);
  padding: 1.2rem 1.2rem;
  background:
    linear-gradient(300deg, rgba(0, 194, 255, 0.1), transparent 48%),
    var(--ink-700);
  border: 1px solid var(--ink-600);
}
.page-home .report-timeline__label {
  font-size: 0.78rem;
}
.page-home .report-timeline__list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.page-home .report-timeline__list li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-2);
}
.page-home .report-timeline__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.18);
}
.page-home .report-timeline__list span {
  color: var(--text);
  font-weight: 600;
}
.page-home .report-timeline__note {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-2);
  border-top: 1px solid var(--ink-600);
  padding-top: 0.8rem;
}

/* ---------- 04 数据看板 ---------- */
.page-home .data-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.page-home .stat-card {
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 220px;
}
.page-home .stat-card__num {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1;
  color: var(--blue);
  margin: 0;
}
.page-home .stat-card:nth-child(1) .stat-card__num,
.page-home .stat-card:nth-child(3) .stat-card__num,
.page-home .stat-card--accent .stat-card__num {
  color: var(--gold);
}
.page-home .stat-card__label {
  font-family: var(--font-head);
  letter-spacing: 0.03em;
  color: var(--text);
  font-size: 1.1rem;
  margin: 0;
}
.page-home .stat-card__desc {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.55;
  margin: 0.2rem 0 0;
  max-width: 32ch;
}
.page-home .stat-card--accent {
  background:
    linear-gradient(135deg, rgba(245, 166, 35, 0.12), transparent 60%),
    var(--ink-700);
  border: 1px solid rgba(245, 166, 35, 0.35);
}

/* ---------- 底部 Callout ---------- */
.page-home .home-callout {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: flex-start;
  justify-content: space-between;
  padding: 2rem;
  border-radius: var(--radius);
  background:
    linear-gradient(110deg, rgba(245, 166, 35, 0.16), transparent 36%),
    linear-gradient(300deg, rgba(0, 194, 255, 0.12), transparent 40%),
    var(--ink-700);
  border: 1px solid var(--ink-600);
}
.page-home .home-callout__text {
  max-width: 46rem;
}
.page-home .home-callout__text p:last-child {
  margin: 0.4rem 0 0;
  color: var(--text-2);
  line-height: 1.65;
}
.page-home .home-callout__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  flex-shrink: 0;
}

/* ---------- 动效与动画 ---------- */
@keyframes home-dash-flow {
  to {
    stroke-dashoffset: -520;
  }
}
@keyframes home-blink {
  from { opacity: 0.35; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero-visual__path,
  .page-home .hero-visual__path--slow,
  .page-home .hero-visual__mark {
    animation: none;
  }
}

/* ---------- 桌面端布局增强 ---------- */
@media (min-width: 640px) {
  .page-home .data-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .page-home .home-hero {
    padding: 4.5rem 0 4rem;
  }
  .page-home .home-hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
  .page-home .hero-visual-box {
    min-height: 520px;
  }
  .page-home .schedule-bento {
    grid-template-columns: repeat(3, 1fr);
  }
  .page-home .schedule-feature {
    grid-column: span 2;
  }
  .page-home .schedule-note {
    grid-column: 3;
    grid-row: 1 / 3;
  }
  .page-home .scorer-layout {
    grid-template-columns: 1fr 0.8fr;
    align-items: stretch;
  }
  .page-home .report-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
  }
  .page-home .report-item {
    grid-template-columns: 1fr;
    padding: 0;
    align-items: stretch;
  }
  .page-home .report-item__thumb {
    width: 100%;
    height: 140px;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  }
  .page-home .report-item__body {
    padding: 0 1rem 1rem;
  }
  .page-home .home-callout {
    flex-direction: row;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .page-home .data-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .page-home .stat-card--wide {
    grid-column: span 2;
  }
}
