/* ================= 首页专属样式 ================= */
.page-home {
  background: var(--deep-space);
  color: var(--text-glow);
  overflow-x: hidden;
}

.page-home .home-wrap {
  width: min(100% - 40px, 1200px);
  margin-inline: auto;
}

/* ---------- 页面位置提示 ---------- */
.page-home .home-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 24px 0;
  max-width: 1200px;
  margin-inline: auto;
}

.page-home .home-breadcrumb__item {
  font-size: 13px;
  color: var(--ink-muted);
}

.page-home .home-breadcrumb__sep {
  font-size: 13px;
  color: rgba(57, 255, 20, 0.5);
}

/* ---------- 首屏封面区 ---------- */
.page-home .home-hero {
  position: relative;
  padding-top: 28px;
  isolation: isolate;
}

.page-home .home-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.page-home .home-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
}

.page-home .home-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(57, 255, 20, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 255, 20, 0.04) 1px, transparent 1px),
    linear-gradient(100deg, var(--deep-space) 26%, rgba(10, 17, 40, 0.8) 56%, rgba(10, 17, 40, 0.44) 100%),
    linear-gradient(0deg, var(--deep-space) 8%, transparent 48%);
  background-size: 44px 44px, 44px 44px, auto, auto;
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
  padding-bottom: 72px;
}

.page-home .home-hero__copy {
  max-width: 620px;
}

.page-home .home-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  padding: 8px 16px;
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-pill);
  background: rgba(57, 255, 20, 0.08);
  color: var(--neon-green);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-home .home-hero__title {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(38px, 8.5vw, 76px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.page-home .home-hero__slogan {
  display: inline-block;
  margin-left: 6px;
  padding: 0.04em 0.28em 0.1em;
  color: var(--deep-space);
  background: var(--signal-orange);
  transform: skewX(-8deg);
  box-shadow: 0 10px 30px rgba(255, 110, 64, 0.28);
}

.page-home .home-hero__lead {
  margin: 22px 0 0;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-muted);
  max-width: 56ch;
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.page-home .home-hero__actions .btn {
  flex: 1 1 100%;
  justify-content: center;
}

.page-home .home-hero__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin: 34px 0 0;
  padding: 24px 0 0;
  list-style: none;
  border-top: 1px solid rgba(57, 255, 20, 0.16);
}

.page-home .home-hero__metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-home .home-hero__metric strong {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-glow);
}

.page-home .home-hero__metric strong::after {
  content: "";
  display: block;
  width: 30px;
  height: 3px;
  margin-top: 7px;
  background: var(--speed-gradient);
}

.page-home .home-hero__metric span {
  font-size: 13px;
  color: var(--ink-muted);
}

/* ---------- 实时数据仪表盘 ---------- */
.page-home .dashboard-panel {
  position: relative;
  padding: 20px;
  border: 1px solid rgba(57, 255, 20, 0.28);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(19, 34, 71, 0.94), rgba(10, 17, 40, 0.92));
  box-shadow: var(--shadow-card), 0 0 0 6px rgba(57, 255, 20, 0.05);
  overflow: hidden;
}

.page-home .dashboard-panel::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 2px;
  background: var(--speed-gradient);
}

.page-home .dashboard-panel::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(57, 255, 20, 0.14);
}

.page-home .dashboard-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.page-home .dashboard-panel__delay {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--signal-orange);
}

/* 联赛切换（纯 CSS 交互） */
.page-home .league-switch {
  position: relative;
}

.page-home .league-switch__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.page-home .league-switch__tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.page-home .league-switch__tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 6px;
  border: 1px solid rgba(154, 168, 188, 0.24);
  border-radius: var(--radius-sm);
  background: rgba(13, 22, 53, 0.82);
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-glow);
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  user-select: none;
}

.page-home .league-switch__glyph {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  transition: color 0.25s;
}

.page-home #league-eng:checked ~ .league-switch__tabs label[for="league-eng"],
.page-home #league-uefa:checked ~ .league-switch__tabs label[for="league-uefa"],
.page-home #league-nba:checked ~ .league-switch__tabs label[for="league-nba"] {
  border-color: var(--neon-green);
  background: rgba(57, 255, 20, 0.12);
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.16);
}

.page-home #league-eng:checked ~ .league-switch__tabs label[for="league-eng"] .league-switch__glyph,
.page-home #league-uefa:checked ~ .league-switch__tabs label[for="league-uefa"] .league-switch__glyph,
.page-home #league-nba:checked ~ .league-switch__tabs label[for="league-nba"] .league-switch__glyph {
  color: var(--neon-green);
}

.page-home .league-switch__panels {
  min-height: 272px;
}

.page-home .league-panel {
  display: none;
  flex-direction: column;
  gap: 10px;
}

.page-home #league-eng:checked ~ .league-switch__panels .league-panel:nth-child(1),
.page-home #league-uefa:checked ~ .league-switch__panels .league-panel:nth-child(2),
.page-home #league-nba:checked ~ .league-switch__panels .league-panel:nth-child(3) {
  display: flex;
  animation: home-panel-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes home-panel-in {
  from {
    opacity: 0;
    transform: translateX(14px) skewX(-3deg);
  }
  to {
    opacity: 1;
    transform: translateX(0) skewX(0);
  }
}

.page-home .match-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  background: rgba(13, 22, 53, 0.78);
  border-left: 3px solid rgba(57, 255, 20, 0.42);
  transition: background 0.25s, transform 0.25s;
}

.page-home .match-row:hover {
  background: rgba(19, 34, 71, 0.9);
  transform: translateX(4px);
}

.page-home .match-row__info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.page-home .match-row__league {
  font-size: 12px;
  color: var(--ink-muted);
}

.page-home .match-row__pair {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-glow);
  white-space: nowrap;
}

.page-home .match-row__result {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 3px;
  flex-shrink: 0;
}

.page-home .match-row__score {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 800;
  color: var(--text-glow);
}

.page-home .match-row__state {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(154, 168, 188, 0.16);
  font-size: 11px;
  color: var(--ink-muted);
}

.page-home .match-row__state--live {
  background: rgba(57, 255, 20, 0.14);
  color: var(--neon-green);
}

.page-home .match-row__state--soon {
  background: rgba(255, 110, 64, 0.12);
  color: var(--signal-orange);
}

.page-home .dashboard-panel__foot {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px dashed rgba(57, 255, 20, 0.14);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  text-align: center;
}

/* ---------- 首屏速度线 ---------- */
.page-home .home-hero__speedline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  height: 200px;
  pointer-events: none;
  opacity: 0.7;
  z-index: 0;
}

.page-home .home-hero__svg {
  width: 100%;
  height: 100%;
}

.page-home .home-hero__svg path {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: home-dash 2.6s ease forwards;
}

.page-home .home-hero__svg path:nth-child(2) {
  animation-delay: 0.25s;
}

.page-home .home-hero__svg path:nth-child(3) {
  animation-delay: 0.5s;
}

@keyframes home-dash {
  to {
    stroke-dashoffset: 0;
  }
}

/* ---------- V4 资料包更新亮点 ---------- */
.page-home .home-v4 {
  position: relative;
  padding: 64px 0 72px;
  background: var(--deep-space-2);
}

.page-home .home-v4::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(57, 255, 20, 0.4) 40%, rgba(255, 110, 64, 0.5) 80%, transparent);
}

.page-home .home-v4__head {
  margin-bottom: 36px;
}

.page-home .v4-bento {
  display: grid;
  gap: 18px;
}

.page-home .v4-card {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--deep-space-3);
  border: 1px solid rgba(57, 255, 20, 0.12);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.page-home .v4-card:hover {
  border-color: rgba(57, 255, 20, 0.4);
  box-shadow: 0 18px 44px var(--shadow-deep);
  transform: translateY(-4px);
}

.page-home .v4-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, transparent 46%, rgba(57, 255, 20, 0.14) 50%, transparent 54%);
}

.page-home .v4-card__media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.page-home .v4-card__media--grid {
  aspect-ratio: 4 / 3;
}

.page-home .v4-card__media--wide {
  aspect-ratio: 16 / 10;
}

.page-home .v4-card__media--phone {
  aspect-ratio: 6 / 7;
  max-width: 280px;
  margin-inline: auto;
  width: 100%;
}

.page-home .v4-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.page-home .v4-card:hover .v4-card__media img {
  transform: scale(1.04);
}

.page-home .v4-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.page-home .v4-card__body h3 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-glow);
}

.page-home .v4-card__body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-muted);
}

.page-home .v4-card__line {
  width: 100%;
  height: 2px;
  margin-top: auto;
  background: var(--speed-gradient);
}

/* ---------- 公告栏 ---------- */
.page-home .home-news {
  padding: 64px 0 72px;
}

.page-home .home-news__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.page-home .home-news__more {
  flex-shrink: 0;
}

.page-home .news-ticker {
  position: relative;
  height: 272px;
  overflow: hidden;
  border: 1px solid rgba(57, 255, 20, 0.16);
  border-radius: var(--radius-lg);
  background: rgba(13, 22, 53, 0.72);
}

.page-home .news-ticker__track {
  animation: home-news-scroll 30s linear infinite;
}

.page-home .news-ticker:hover .news-ticker__track {
  animation-play-state: paused;
}

.page-home .news-ticker__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .news-ticker__item + .news-ticker__item {
  border-top: 1px solid rgba(154, 168, 188, 0.1);
}

.page-home .news-ticker__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  text-decoration: none;
  transition: background 0.25s;
}

.page-home .news-ticker__link:hover {
  background: rgba(57, 255, 20, 0.06);
}

.page-home .news-ticker__tag {
  flex-shrink: 0;
  padding: 3px 10px;
  border: 1px solid rgba(57, 255, 20, 0.4);
  border-radius: var(--radius-pill);
  font-size: 12px;
  color: var(--neon-green);
  background: rgba(57, 255, 20, 0.08);
}

.page-home .news-ticker__text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  color: var(--text-glow);
}

.page-home .news-ticker__time {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--ink-muted);
}

@keyframes home-news-scroll {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}

/* ---------- 核心数据与信任背书 ---------- */
.page-home .home-trust {
  position: relative;
  padding: 64px 0 72px;
  background: var(--deep-space-2);
}

.page-home .home-trust::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 110, 64, 0.38) 50%, transparent);
}

.page-home .home-trust__head {
  margin-bottom: 36px;
}

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

.page-home .trust-card {
  position: relative;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(57, 255, 20, 0.14);
  background: var(--deep-space-3);
  overflow: hidden;
}

.page-home .trust-card::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: repeating-linear-gradient(-45deg, transparent 0 6px, rgba(57, 255, 20, 0.12) 6px 8px);
  transform: rotate(10deg);
}

.page-home .trust-card__num {
  display: block;
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--neon-green);
}

.page-home .trust-card--delay .trust-card__num {
  color: var(--signal-orange);
}

.page-home .trust-card__label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-muted);
}

.page-home .trust-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.page-home .trust-cert {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: rgba(13, 22, 53, 0.7);
  border: 1px solid rgba(57, 255, 20, 0.14);
}

.page-home .trust-cert__badge {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  color: var(--signal-orange);
}

.page-home .trust-cert__text {
  font-size: 12px;
  color: var(--ink-muted);
}

.page-home .trust-foot__award {
  margin: 0;
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(120deg, rgba(255, 110, 64, 0.14), rgba(57, 255, 20, 0.08));
  border: 1px solid rgba(255, 110, 64, 0.28);
  font-size: 13px;
  color: var(--text-glow);
}

/* ---------- 下载与订阅入口 ---------- */
.page-home .home-cta {
  padding: 64px 0 80px;
}

.page-home .home-cta__inner {
  position: relative;
  display: grid;
  gap: 28px;
  padding: 40px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 110, 64, 0.14), rgba(57, 255, 20, 0.08) 60%, rgba(13, 22, 53, 0.4));
  border: 1px solid rgba(255, 110, 64, 0.3);
  overflow: hidden;
}

.page-home .home-cta__inner::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 2px;
  background: var(--speed-gradient);
}

.page-home .home-cta__eyebrow {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--neon-green);
}

.page-home .home-cta__title {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  color: var(--text-glow);
}

.page-home .home-cta__desc {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-muted);
  max-width: 52ch;
}

.page-home .home-cta__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-home .home-cta__btn {
  justify-content: center;
}

/* ---------- 平板适配 ---------- */
@media (min-width: 640px) {
  .page-home .home-hero__actions .btn {
    flex: 0 1 auto;
  }

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

  .page-home .v4-card--history,
  .page-home .v4-card--review {
    grid-column: span 2;
  }

  .page-home .v4-card--history {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .page-home .v4-card--review {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .page-home .trust-bento {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-home .trust-card {
    padding: 24px;
  }

  .page-home .trust-card__num {
    font-size: 36px;
  }

  .page-home .home-cta__inner {
    padding: 44px 36px;
  }
}

/* ---------- 桌面布局 ---------- */
@media (min-width: 960px) {
  .page-home .home-hero {
    padding-top: 48px;
  }

  .page-home .home-hero__inner {
    grid-template-columns: 1.02fr 0.98fr;
    gap: 48px;
    align-items: center;
    padding-bottom: 120px;
  }

  .page-home .home-v4 {
    padding: 80px 0 88px;
  }

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

  .page-home .v4-card--history {
    grid-column: span 7;
  }

  .page-home .v4-card--lineup {
    grid-column: span 5;
  }

  .page-home .v4-card--review {
    grid-column: span 7;
  }

  .page-home .v4-card--browser {
    grid-column: span 5;
  }

  .page-home .v4-card--browser {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .page-home .v4-card__media--phone {
    max-width: 220px;
  }

  .page-home .news-ticker {
    height: 272px;
  }

  .page-home .home-trust {
    padding: 80px 0 88px;
  }

  .page-home .trust-bento {
    gap: 18px;
  }

  .page-home .trust-card {
    padding: 26px;
  }

  .page-home .trust-card__num {
    font-size: 40px;
  }

  .page-home .trust-foot {
    flex-wrap: nowrap;
  }

  .page-home .home-cta {
    padding: 72px 0 96px;
  }

  .page-home .home-cta__inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 40px;
    padding: 48px 44px;
  }

  .page-home .home-cta__actions {
    width: 340px;
  }
}

/* ---------- 减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-home .home-hero__svg path {
    animation: none;
    stroke-dashoffset: 0;
  }

  .page-home .league-panel {
    animation: none;
  }

  .page-home .news-ticker {
    height: auto;
  }

  .page-home .news-ticker__track {
    animation: none;
  }

  .page-home .news-ticker__track .news-ticker__list[aria-hidden="true"] {
    display: none;
  }

  .page-home .v4-card,
  .page-home .match-row {
    transition: none;
  }
}
