.page-home {
  --home-bg: #0B1D3A;
  --home-panel: rgba(28, 28, 30, 0.72);
  --home-panel-border: rgba(245, 247, 250, 0.08);
  --home-line-neon: rgba(57, 255, 20, 0.45);
  --home-line-orange: rgba(255, 107, 53, 0.5);
  --home-text-dim: #B8C4D0;
  background: var(--home-bg);
  color: var(--off-white);
  overflow-x: hidden;
}

/* ===== 首屏框景 ===== */
.page-home .hero-frame {
  padding: 16px;
  position: relative;
}

.page-home .hero-frame__window {
  position: relative;
  min-height: 600px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 56px), calc(100% - 56px) 100%, 0 100%);
  overflow: hidden;
  background: var(--home-bg);
}

.page-home .hero-frame__window::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  border: 1px solid rgba(255, 107, 53, 0.4);
  clip-path: inherit;
}

.page-home .hero-frame__visual {
  position: absolute;
  inset: 0;
}

.page-home .hero-frame__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-home .hero-frame__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 29, 58, 0.55) 0%, rgba(11, 29, 58, 0.8) 70%, var(--home-bg) 100%);
}

.page-home .hero-frame__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(57, 255, 20, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 255, 20, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
}

.page-home .hero-frame__speedline {
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: 0;
  width: 120px;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.14), rgba(57, 255, 20, 0.1), transparent);
  pointer-events: none;
  animation: homeSweep 7s ease-in-out infinite;
}

@keyframes homeSweep {
  0% {
    transform: translateX(-160px) skewX(-18deg);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  75% {
    opacity: 1;
  }
  100% {
    transform: translateX(calc(100vw + 160px)) skewX(-18deg);
    opacity: 0;
  }
}

.page-home .hero-frame__content {
  position: relative;
  z-index: 3;
  padding: 32px 24px 24px;
  max-width: 900px;
}

.page-home .hero-frame__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  color: var(--neon-green);
  text-transform: uppercase;
  border: 1px solid rgba(57, 255, 20, 0.35);
  padding: 6px 12px;
  background: rgba(11, 29, 58, 0.6);
}

.page-home .hero-frame__title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  line-height: 1.05;
  margin: 20px 0 16px;
  text-transform: uppercase;
}

.page-home .hero-frame__desc {
  color: var(--home-text-dim);
  max-width: 620px;
  line-height: 1.7;
  font-size: 1rem;
}

.page-home .hero-frame__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  position: relative;
  z-index: 8;
}

.page-home .hero-frame__stats {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 28px 24px 40px;
}

.page-home .hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 120px;
}

.page-home .hero-stat__num {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--electric-orange);
  line-height: 1;
}

.page-home .hero-stat__num small {
  font-size: 1rem;
  color: var(--off-white);
}

.page-home .hero-stat__label {
  font-size: 0.8125rem;
  color: var(--home-text-dim);
}

/* ===== 功能速览 ===== */
.page-home .function-band {
  background: linear-gradient(180deg, var(--home-bg) 0%, rgba(107, 33, 66, 0.24) 55%, var(--home-bg) 100%);
  padding: 72px 16px 48px;
}

.page-home .function-band__head,
.page-home .editor-band__head {
  max-width: 760px;
  margin-bottom: 32px;
}

.page-home .function-band__title,
.page-home .editor-band__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  margin: 12px 0 12px;
}

.page-home .function-band__intro,
.page-home .editor-band__intro {
  color: var(--home-text-dim);
  line-height: 1.6;
}

.page-home .function-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-home .feature-card {
  background: linear-gradient(145deg, rgba(28, 28, 30, 0.85), rgba(11, 29, 58, 0.75));
  border: 1px solid var(--home-panel-border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow: hidden;
}

.page-home .feature-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--electric-orange);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition-base);
}

.page-home .feature-card:hover::after {
  transform: scaleY(1);
}

.page-home .feature-card__index {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.4rem;
  line-height: 1;
  color: rgba(245, 247, 250, 0.16);
  margin-bottom: 14px;
}

.page-home .feature-card__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin: 0 0 10px;
}

.page-home .feature-card__text {
  color: var(--home-text-dim);
  line-height: 1.6;
  font-size: 0.9375rem;
}

.page-home .feature-card__link {
  color: var(--electric-orange);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  text-decoration: none;
  font-weight: 600;
}

.page-home .feature-card__link:hover {
  color: var(--off-white);
}

.page-home .feature-card__thumb {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin-top: 16px;
  border: 1px solid var(--home-panel-border);
}

.page-home .feature-card--lineup::before {
  content: "2H";
  position: absolute;
  right: -12px;
  bottom: -20px;
  font-family: var(--font-heading);
  font-size: 6rem;
  color: rgba(57, 255, 20, 0.1);
  pointer-events: none;
  line-height: 1;
}

/* ===== 数据带 ===== */
.page-home .live-data-band {
  padding: 64px 16px 48px;
}

.page-home .live-data-band__content {
  display: grid;
  gap: 24px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.page-home .live-data-band__title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.2;
  margin: 12px 0 12px;
}

.page-home .live-data-band__desc {
  color: var(--home-text-dim);
  line-height: 1.7;
  max-width: 560px;
}

.page-home .live-data-band__visual {
  background: linear-gradient(145deg, rgba(27, 107, 90, 0.25), rgba(11, 29, 58, 0.5));
  border-radius: var(--radius);
  padding: 12px;
  border: 1px solid var(--home-panel-border);
}

.page-home .live-data-band__visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* ===== 赛事层 ===== */
.page-home .live-match-band {
  padding: 48px 16px 72px;
  background: rgba(14, 23, 38, 0.6);
}

.page-home .live-match-band__head {
  max-width: 800px;
  margin-bottom: 28px;
}

.page-home .live-match-band__title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin: 12px 0 12px;
}

.page-home .live-match-band__intro {
  color: var(--home-text-dim);
  line-height: 1.6;
}

.page-home .match-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.page-home .match-tabs__radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.page-home .match-tabs__label {
  padding: 10px 20px;
  background: rgba(28, 28, 30, 0.75);
  border: 1px solid var(--home-panel-border);
  border-radius: 999px;
  color: var(--home-text-dim);
  cursor: pointer;
  font-weight: 600;
  transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}

.page-home .match-tabs__radio--fb:checked + .match-tabs__label--fb,
.page-home .match-tabs__radio--bb:checked + .match-tabs__label--bb,
.page-home .match-tabs__radio--es:checked + .match-tabs__label--es {
  background: var(--electric-orange);
  border-color: var(--electric-orange);
  color: var(--soft-black);
}

.page-home .match-panel {
  display: none;
  flex: 1 0 100%;
  width: 100%;
}

.page-home .match-tabs__radio--fb:checked ~ .match-panel--football,
.page-home .match-tabs__radio--bb:checked ~ .match-panel--basketball,
.page-home .match-tabs__radio--es:checked ~ .match-panel--esports {
  display: block;
}

.page-home .match-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 300px);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.page-home .match-card {
  scroll-snap-align: start;
  background: linear-gradient(180deg, rgba(28, 28, 30, 0.82), rgba(11, 29, 58, 0.72));
  border: 1px solid var(--home-panel-border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.page-home .match-card--feature {
  border-color: rgba(255, 107, 53, 0.35);
}

.page-home .match-card__img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

.page-home .match-card__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.page-home .match-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.page-home .match-card__league {
  color: var(--muted-steel);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.page-home .match-card__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--neon-green);
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
}

.page-home .match-card__scoreline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-heading);
}

.page-home .match-card__team {
  color: var(--off-white);
  flex: 1;
  text-align: center;
  font-size: 0.9375rem;
}

.page-home .match-card__score {
  font-size: 1.8rem;
  color: var(--off-white);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ===== 编辑部 ===== */
.page-home .editor-band {
  padding: 64px 16px;
  background: linear-gradient(180deg, var(--home-bg) 0%, rgba(107, 33, 66, 0.16) 50%, var(--home-bg) 100%);
}

.page-home .editor-band__more {
  margin-top: 18px;
}

.page-home .editor-grid {
  display: grid;
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
}

.page-home .editor-card {
  background: var(--charcoal);
  border: 1px solid var(--home-panel-border);
  border-radius: 8px;
  padding: 24px;
  position: relative;
  transition: transform var(--transition-base), border-color var(--transition-fast);
}

.page-home .editor-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 53, 0.45);
}

.page-home .editor-card__tag {
  display: inline-block;
  background: rgba(255, 107, 53, 0.12);
  color: var(--electric-orange);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.page-home .editor-card__title {
  font-size: 1.15rem;
  line-height: 1.4;
  margin: 0 0 10px;
}

.page-home .editor-card__desc {
  color: var(--home-text-dim);
  line-height: 1.6;
  font-size: 0.9375rem;
}

.page-home .editor-card__link {
  color: var(--electric-orange);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  text-decoration: none;
}

.page-home .editor-card__link:hover {
  color: var(--off-white);
}

/* ===== 邀请加入 ===== */
.page-home .join-band {
  padding: 80px 16px;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.22), transparent 40%),
    linear-gradient(135deg, rgba(107, 33, 66, 0.85), var(--home-bg) 70%);
}

.page-home .join-band__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 24px;
  border: 1px solid rgba(245, 247, 250, 0.08);
  border-radius: 12px;
  background: rgba(11, 29, 58, 0.55);
}

.page-home .join-band__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin: 16px 0 14px;
}

.page-home .join-band__desc {
  color: var(--home-text-dim);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 26px;
}

.page-home .join-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.page-home .join-band__story {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--off-white);
  text-decoration: none;
  font-weight: 600;
  padding: 10px 14px;
}

.page-home .join-band__story:hover {
  color: var(--electric-orange);
}

.page-home .function-band,
.page-home .live-data-band,
.page-home .editor-band,
.page-home .join-band {
  max-width: 1280px;
}

/* ===== 平板及以上 ===== */
@media (min-width: 768px) {
  .page-home .hero-frame {
    padding: 24px;
  }

  .page-home .hero-frame__window {
    min-height: 640px;
  }

  .page-home .hero-frame__content {
    padding: 48px 56px 32px;
    max-width: 1000px;
  }

  .page-home .hero-frame__stats {
    padding: 32px 56px 48px;
  }

  .page-home .function-band,
  .page-home .live-data-band,
  .page-home .live-match-band,
  .page-home .editor-band,
  .page-home .join-band {
    padding-left: 24px;
    padding-right: 24px;
  }

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

  .page-home .feature-card--subscribe {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 24px;
    align-items: center;
  }

  .page-home .feature-card--subscribe .feature-card__title,
  .page-home .feature-card--subscribe .feature-card__text,
  .page-home .feature-card--subscribe .feature-card__link {
    grid-column: 1;
  }

  .page-home .feature-card--subscribe .feature-card__thumb {
    grid-column: 2;
    grid-row: 1 / span 4;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
  }

  .page-home .feature-card--lineup {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 24px;
  }

  .page-home .feature-card--lineup .feature-card__text {
    flex: 1;
  }

  .page-home .live-data-band__content {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .page-home .editor-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* ===== 桌面 ===== */
@media (min-width: 1024px) {
  .page-home .hero-frame__actions {
    margin-top: 32px;
  }

  .page-home .hero-frame__stats {
    gap: 40px;
  }

  .page-home .function-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-home .feature-card--collection,
  .page-home .feature-card--forum {
    grid-row: span 1;
  }

  .page-home .feature-card--subscribe {
    grid-column: 1 / span 2;
    grid-template-columns: 1fr 220px;
  }

  .page-home .feature-card--lineup {
    grid-column: 3 / -1;
  }

  .page-home .feature-card--lineup {
    display: block;
  }

  .page-home .feature-card--lineup .feature-card__text {
    margin-bottom: 12px;
  }

  .page-home .match-scroller {
    grid-auto-columns: minmax(300px, 320px);
  }

  .page-home .join-band {
    padding: 96px 24px;
  }
}

/* ===== 减少动态偏好 ===== */
@media (prefers-reduced-motion: reduce) {
  .page-home .hero-frame__speedline {
    animation: none;
    display: none;
  }

  .page-home .feature-card::after,
  .page-home .editor-card {
    transition: none;
  }

  .page-home .editor-card:hover {
    transform: none;
  }
}
