/* ===== 首页专属样式 ===== */
.page-home {
  --home-line: rgba(57, 255, 20, 0.14);
  --home-line-strong: rgba(57, 255, 20, 0.32);
  --home-card-bg: rgba(30, 58, 95, 0.72);
  background: var(--c-bg-deep);
  color: var(--c-text);
  overflow-x: hidden;
}

/* 面包屑 */
.page-home .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: var(--c-text-dim);
  margin-bottom: 18px;
}
.page-home .breadcrumb a {
  color: var(--c-text-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.page-home .breadcrumb a:hover {
  color: var(--c-accent);
  border-color: var(--c-accent);
}
.page-home .breadcrumb [aria-current="page"] {
  color: var(--c-text);
}

/* ===== 首屏 ===== */
.page-home .home-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 28px) 0 56px;
  background:
    radial-gradient(circle at 78% 22%, rgba(57, 255, 20, 0.12) 0%, transparent 34%),
    linear-gradient(135deg, var(--c-bg-deep) 0%, var(--c-bg-main) 58%, var(--c-bg-surface) 100%);
  isolation: isolate;
}
.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 68px, var(--home-line) 68px 69px),
    repeating-linear-gradient(0deg, transparent 0 68px, var(--home-line) 68px 69px);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
  z-index: -1;
  pointer-events: none;
}
.page-home .hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(var(--gap) * 1.5);
  align-items: center;
}
.page-home .hero-content {
  max-width: 680px;
}
.page-home .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  background: var(--c-accent);
  color: var(--c-bg-deep);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 6px 16px 6px 10px;
  margin-bottom: 18px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 50%, 100% 100%, 0 100%);
  font-family: var(--font-body);
}
.page-home .hero-content h1 {
  margin: 0 0 18px;
  font-family: var(--font-heading);
  font-size: clamp(36px, 7vw, 72px);
  line-height: 1.04;
  color: var(--c-text);
}
.page-home .hero-lead {
  font-size: 18px;
  color: var(--c-text-dim);
  max-width: 56ch;
  margin: 0 0 24px;
}
.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}
.page-home .hero-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.page-home .hero-facts li {
  position: relative;
  padding-left: 22px;
  color: var(--c-text-dim);
  font-size: 14px;
}
.page-home .hero-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 2px;
  background: var(--c-accent);
  box-shadow: var(--shadow-glow);
}
.page-home .hero-facts a {
  color: var(--c-accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(57, 255, 20, 0.3);
}
.page-home .hero-facts a:hover {
  color: var(--c-text);
  border-color: var(--c-accent);
}
.page-home .hero-visual {
  position: relative;
  min-height: 300px;
}
.page-home .hero-visual-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: polygon(4% 0, 100% 0, 100% 92%, 0 100%);
  background: var(--c-bg-surface);
}
.page-home .hero-visual-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(6, 13, 31, 0.55) 0%, transparent 48%);
}
.page-home .hero-visual-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.12) saturate(1.05);
}
.page-home .hero-float-card {
  position: absolute;
  right: 20px;
  bottom: 28px;
  z-index: 2;
  background: rgba(6, 13, 31, 0.82);
  border: 1px solid rgba(57, 255, 20, 0.5);
  border-radius: 16px;
  padding: 16px 22px;
  box-shadow: var(--shadow-card);
  transform: skewX(-4deg);
}
.page-home .hero-float-card.card-2 {
  right: auto;
  left: -4px;
  top: 20px;
  bottom: auto;
  border-color: rgba(255, 109, 0, 0.65);
  transform: skewX(3deg);
}
.page-home .hero-float-card .float-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 36px;
  line-height: 1;
  color: var(--c-accent);
}
.page-home .hero-float-card.card-2 .float-num {
  color: var(--c-action);
}
.page-home .hero-float-card .float-label {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--c-text-dim);
}

/* ===== 简介带 ===== */
.page-home .home-intro {
  background: var(--c-bg-main);
  border-block: 1px solid rgba(57, 255, 20, 0.25);
}
.page-home .intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
  padding: 32px 0;
}
.page-home .intro-badge {
  justify-self: start;
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--c-bg-deep);
  background: var(--c-accent);
  padding: 8px 18px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.page-home .intro-copy h2 {
  margin: 0 0 6px;
  font-size: 28px;
}
.page-home .intro-copy p {
  margin: 0;
  color: var(--c-text-dim);
}
.page-home .intro-link {
  justify-self: start;
  color: var(--c-accent);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--c-action);
}

/* ===== 五大联赛轮次表 ===== */
.page-home .home-leagues {
  background: var(--c-bg-deep);
}
.page-home .league-img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  border-radius: 20px;
  margin-top: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.page-home .league-tabs {
  margin-top: 24px;
  background: var(--c-bg-main);
  border: 1px solid rgba(57, 255, 20, 0.22);
  border-radius: 20px;
  overflow: hidden;
}
.page-home .league-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.page-home .league-tabs-list {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
}
.page-home .league-tabs-list label {
  flex: 0 0 auto;
  font-family: var(--font-heading);
  font-size: 16px;
  padding: 10px 18px;
  background: var(--c-bg-surface);
  color: var(--c-text-dim);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.page-home .league-tabs-list label:hover {
  color: var(--c-text);
  box-shadow: inset 0 0 0 1px rgba(57, 255, 20, 0.45);
}
.page-home #tab-epl:checked ~ .league-tabs-list label[for="tab-epl"],
.page-home #tab-laliga:checked ~ .league-tabs-list label[for="tab-laliga"],
.page-home #tab-bundesliga:checked ~ .league-tabs-list label[for="tab-bundesliga"],
.page-home #tab-seriea:checked ~ .league-tabs-list label[for="tab-seriea"],
.page-home #tab-ligue1:checked ~ .league-tabs-list label[for="tab-ligue1"] {
  background: var(--c-accent);
  color: var(--c-bg-deep);
  box-shadow: var(--shadow-glow);
}
.page-home .league-input:focus-visible ~ .league-tabs-list label {
  outline: 3px solid var(--c-action);
  outline-offset: 2px;
}
.page-home .league-panel {
  display: none;
  padding: 24px;
}
.page-home #tab-epl:checked ~ .league-panels .league-panel[data-panel="epl"],
.page-home #tab-laliga:checked ~ .league-panels .league-panel[data-panel="laliga"],
.page-home #tab-bundesliga:checked ~ .league-panels .league-panel[data-panel="bundesliga"],
.page-home #tab-seriea:checked ~ .league-panels .league-panel[data-panel="seriea"],
.page-home #tab-ligue1:checked ~ .league-panels .league-panel[data-panel="ligue1"] {
  display: block;
}
.page-home .league-panel h3 {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-size: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.page-home .league-panel h3::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--c-accent), transparent);
}
.page-home .league-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.page-home .league-table th {
  text-align: left;
  color: var(--c-accent);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(57, 255, 20, 0.25);
}
.page-home .league-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--c-text-dim);
}
.page-home .league-table td:first-child {
  font-family: var(--font-mono);
  color: var(--c-text);
  font-weight: 700;
}
.page-home .status-live,
.page-home .status-upcoming {
  font-weight: 700;
}
.page-home .status-live {
  color: var(--c-accent);
}
.page-home .status-upcoming {
  color: var(--c-text-dim);
}
.page-home .status-live::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  background: var(--c-accent);
  box-shadow: var(--shadow-glow);
}

/* ===== 苹果设备优化 ===== */
.page-home .home-apple {
  background: linear-gradient(180deg, var(--c-bg-deep) 0%, var(--c-bg-main) 100%);
}
.page-home .apple-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.page-home .apple-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 44px);
}
.page-home .apple-copy p {
  color: var(--c-text-dim);
  max-width: 52ch;
}
.page-home .apple-steps {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.page-home .apple-steps li {
  position: relative;
  padding-left: 32px;
  color: var(--c-text);
}
.page-home .apple-steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  background: var(--c-accent);
  clip-path: polygon(0 0, 100% 0, 100% 50%, 50% 100%, 0 50%);
}
.page-home .apple-visual img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid rgba(57, 255, 20, 0.25);
}

/* ===== 速度升级 ===== */
.page-home .home-speed {
  background:
    linear-gradient(120deg, rgba(255, 109, 0, 0.12), transparent 40%),
    var(--c-bg-deep);
}
.page-home .speed-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.page-home .speed-content h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 44px);
}
.page-home .speed-content p {
  color: var(--c-text-dim);
  max-width: 52ch;
}
.page-home .speed-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 20px;
}
.page-home .metric {
  background: var(--c-bg-surface);
  padding: 18px 22px;
  border-left: 4px solid var(--c-accent);
  border-radius: 12px;
}
.page-home .metric .metric-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 34px;
  line-height: 1.1;
  color: var(--c-accent);
}
.page-home .metric .metric-label {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--c-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.page-home .speed-figure img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===== AOA测试版 ===== */
.page-home .home-beta {
  background: var(--c-bg-main);
}
.page-home .beta-panel {
  background: var(--c-bg-surface);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.page-home .beta-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-action));
}
.page-home .beta-panel h3 {
  margin: 0 0 14px;
  font-family: var(--font-heading);
  font-size: 30px;
}
.page-home .beta-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.page-home .beta-panel li {
  position: relative;
  padding-left: 22px;
  color: var(--c-text-dim);
}
.page-home .beta-panel li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--c-accent);
  font-weight: 800;
}
.page-home .beta-cta {
  margin-top: 28px;
  text-align: center;
}

/* ===== 服务范围 ===== */
.page-home .home-coverage {
  background: var(--c-bg-deep);
}
.page-home .coverage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.page-home .coverage-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 44px);
}
.page-home .coverage-copy p {
  color: var(--c-text-dim);
}
.page-home .coverage-list {
  list-style: none;
  margin: 20px 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.page-home .coverage-list li {
  background: linear-gradient(135deg, rgba(255, 109, 0, 0.2), rgba(57, 255, 20, 0.05));
  border: 1px solid rgba(255, 109, 0, 0.25);
  color: var(--c-text);
  font-weight: 700;
  text-align: center;
  padding: 18px 12px;
  border-radius: 12px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), 0 100%);
}
.page-home .coverage-figure img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===== 联系引导 ===== */
.page-home .home-connect {
  background: var(--c-bg-main);
}
.page-home .connect-strip {
  background: var(--grad-action);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}
.page-home .connect-strip p {
  margin: 0;
  color: #0a1e3c;
  font-weight: 800;
  font-size: 18px;
}
.page-home .connect-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.page-home .connect-links a {
  background: rgba(10, 30, 60, 0.88);
  color: var(--c-text);
  text-decoration: none;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.page-home .connect-links a:hover {
  background: var(--c-bg-deep);
  color: var(--c-accent);
}

/* 移动端适配 */
@media (max-width: 480px) {
  .page-home .hero-float-card {
    right: 10px;
    bottom: 14px;
    padding: 12px 16px;
  }
  .page-home .hero-float-card .float-num {
    font-size: 28px;
  }
  .page-home .league-panel {
    padding: 18px 14px;
  }
  .page-home .league-table td,
  .page-home .league-table th {
    padding: 8px 6px;
  }
}

/* 平板与桌面 */
@media (min-width: 640px) {
  .page-home .hero-visual {
    min-height: 400px;
  }
  .page-home .speed-metrics {
    grid-template-columns: repeat(3, 1fr);
  }
  .page-home .coverage-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 960px) {
  .page-home .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
  }
  .page-home .intro-grid {
    grid-template-columns: auto 1fr auto;
    gap: 24px;
  }
  .page-home .apple-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
  .page-home .speed-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
  .page-home .coverage-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}
