/* ===== 页面专属 CSS — 首页 (.page-home) ===== */
/* 移动端优先，仅限定于 .page-home 作用域内 */

.page-home {
  --home-hero-min-height: 100vh;
  --home-card-radius: 0;
  --home-grid-gap: 1.5rem;
  --home-section-pad: 3rem 1.25rem;
  --home-max-width: 1200px;
  --home-badge-bg: rgba(0, 200, 83, 0.18);
  --home-glow-color: rgba(0, 200, 83, 0.25);
  --home-card-bg: rgba(26, 58, 107, 0.55);
  --home-card-hover-bg: rgba(26, 58, 107, 0.78);
  --home-divider: rgba(0, 200, 83, 0.25);
  --home-stats-bg: #E8F0FE;
  --home-team-bg: #FFFFFF;
  --home-changelog-bg: #E8F0FE;
  --home-cta-bg: #0D2340;
}

/* ---------- 首屏 ---------- */
.page-home .hero-section {
  position: relative;
  min-height: var(--home-hero-min-height);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #FFFFFF;
  background-color: var(--color-bg-dark, #0D2340);
}

/* 背景图 */
.page-home .hero-bg-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-home .hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
}

/* 深色叠加 */
.page-home .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(145deg, rgba(13,35,64,0.82) 30%, rgba(13,35,64,0.48) 100%);
}

/* 网格线条层 */
.page-home .hero-grid-line {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(0,200,83,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,83,0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  animation: homeGridPulse 6s ease-in-out infinite alternate;
}
@keyframes homeGridPulse {
  0% { opacity: 0.4; background-size: 48px 48px; }
  100% { opacity: 0.9; background-size: 52px 52px; }
}

/* 流动光晕 */
.page-home .hero-glow {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: radial-gradient(ellipse 70% 40% at 30% 70%, rgba(0,200,83,0.18), transparent 70%);
  pointer-events: none;
  animation: homeGlowMove 10s ease-in-out infinite alternate;
}
@keyframes homeGlowMove {
  0% { transform: translateX(-10%) scale(1); opacity: 0.5; }
  50% { transform: translateX(10%) scale(1.15); opacity: 0.9; }
  100% { transform: translateX(-5%) scale(1); opacity: 0.5; }
}

/* 粒子层 */
.page-home .hero-particles-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 15% 30%, rgba(0,200,83,0.7), transparent),
    radial-gradient(2px 2px at 75% 20%, rgba(0,200,83,0.6), transparent),
    radial-gradient(1px 1px at 40% 80%, rgba(0,200,83,0.8), transparent),
    radial-gradient(1px 1px at 85% 65%, rgba(0,200,83,0.5), transparent),
    radial-gradient(2px 2px at 60% 90%, rgba(0,200,83,0.7), transparent),
    radial-gradient(1px 1px at 10% 55%, rgba(0,200,83,0.6), transparent),
    radial-gradient(2px 2px at 90% 10%, rgba(0,200,83,0.5), transparent),
    radial-gradient(1px 1px at 50% 40%, rgba(0,200,83,0.7), transparent);
  background-size: 200% 200%;
  animation: homeParticlesDrift 16s linear infinite;
}
@keyframes homeParticlesDrift {
  0% { background-position: 0% 0%; }
  50% { background-position: 15% 10%; }
  100% { background-position: 0% 0%; }
}

/* 首屏内容 */
.page-home .hero-content {
  position: relative;
  z-index: 5;
  max-width: var(--home-max-width);
  width: 100%;
  padding: 2rem 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.page-home .hero-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-accent, #00C853);
  background: var(--home-badge-bg);
  padding: 0.35rem 1.2rem;
  border: 1px solid rgba(0,200,83,0.3);
}

.page-home .hero-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(2.4rem, 10vw, 5.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin: 0;
  max-width: 10ch;
}

.page-home .hero-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.25em;
  margin: 0;
}

/* 三卡片目录 */
.page-home .hero-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.75rem;
  width: 100%;
}

.page-home .hero-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  background: var(--home-card-bg);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 1.25rem 1.5rem;
  min-width: 120px;
  flex: 1 1 140px;
  max-width: 200px;
  text-decoration: none;
  color: #FFFFFF;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
  cursor: pointer;
}
.page-home .hero-card:hover,
.page-home .hero-card:focus-visible {
  transform: scale(1.06);
  background: var(--home-card-hover-bg);
  box-shadow: 0 0 0 2px rgba(0,200,83,0.5), 0 12px 32px rgba(0,200,83,0.2);
  outline: none;
}

.page-home .hero-card-icon {
  color: var(--color-accent, #00C853);
  line-height: 1;
}
.page-home .hero-card-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}
.page-home .hero-card-desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.08em;
}

/* 滚动提示 */
.page-home .hero-scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  opacity: 0.5;
  pointer-events: none;
}
.page-home .scroll-line {
  display: block;
  width: 1px;
  height: 28px;
  background: var(--color-accent, #00C853);
  animation: homeScrollLine 2s ease-in-out infinite;
}
@keyframes homeScrollLine {
  0%, 100% { transform: scaleY(0.3); opacity: 0.3; }
  50% { transform: scaleY(1); opacity: 1; }
}
.page-home .scroll-text {
  font-family: var(--font-body);
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

/* ---------- 通用章节样式 ---------- */
.page-home .section-inner {
  max-width: var(--home-max-width);
  margin: 0 auto;
  padding: var(--home-section-pad);
}

.page-home .section-label {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-accent, #00C853);
  margin-bottom: 0.35rem;
}

.page-home .section-heading {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.1;
  color: var(--color-primary, #1A3A6B);
  margin: 0 0 1.5rem;
}

/* ---------- 章节1：射门统计 ---------- */
.page-home .section-stats {
  background: var(--home-stats-bg);
}
.page-home .stats-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.page-home .stats-visual {
  position: relative;
  order: 1;
}
.page-home .stats-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border: 1px solid var(--color-border, rgba(26,58,107,0.15));
}
.page-home .stats-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--color-accent, #00C853);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.75rem;
}
.page-home .stats-content {
  order: 2;
}
.page-home .stats-highlight {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--color-primary, #1A3A6B);
  margin: 0 0 0.75rem;
}
.page-home .stats-highlight strong {
  color: var(--color-accent, #00C853);
  font-weight: 900;
}
.page-home .stats-desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-secondary, #4A5568);
  margin: 0 0 1rem;
}
.page-home .stats-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.page-home .stats-features li {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--color-text-primary, #1A1A2E);
  padding-left: 1.5rem;
  position: relative;
}
.page-home .stats-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.6rem;
  height: 0.6rem;
  background: var(--color-accent, #00C853);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* details 交互区 */
.page-home .stats-details,
.page-home .team-details,
.page-home .changelog-details {
  margin-top: 0.75rem;
  border-top: 1px solid var(--home-divider);
  padding-top: 0.75rem;
}
.page-home .stats-details-summary,
.page-home .team-details-summary,
.page-home .changelog-details-summary {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary, #1A3A6B);
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.page-home .stats-details-summary::-webkit-details-marker,
.page-home .team-details-summary::-webkit-details-marker,
.page-home .changelog-details-summary::-webkit-details-marker {
  display: none;
}
.page-home .stats-details-summary::after,
.page-home .team-details-summary::after,
.page-home .changelog-details-summary::after {
  content: "+";
  font-size: 1.1rem;
  line-height: 1;
  color: var(--color-accent, #00C853);
  transition: transform 0.25s;
}
.page-home details[open] .stats-details-summary::after,
.page-home details[open] .team-details-summary::after,
.page-home details[open] .changelog-details-summary::after {
  transform: rotate(45deg);
}
.page-home .stats-details-body,
.page-home .team-details-body,
.page-home .changelog-details-body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--color-text-secondary, #4A5568);
  padding: 0.75rem 0 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.page-home .stats-details-body p,
.page-home .team-details-body p,
.page-home .changelog-details-body p {
  margin: 0;
}

/* ---------- 章节2：组队看赛 ---------- */
.page-home .section-team {
  background: var(--home-team-bg);
}
.page-home .team-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.page-home .team-content {
  order: 2;
}
.page-home .team-desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-secondary, #4A5568);
  margin: 0 0 1rem;
}
.page-home .team-features {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.page-home .team-features li {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--color-text-primary, #1A1A2E);
  padding-left: 1.5rem;
  position: relative;
}
.page-home .team-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.6rem;
  height: 0.6rem;
  background: var(--color-accent, #00C853);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.page-home .team-visual {
  order: 1;
}
.page-home .team-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border: 1px solid var(--color-border, rgba(26,58,107,0.15));
}

/* ---------- 章节3：赛事变更 ---------- */
.page-home .section-changelog {
  background: var(--home-changelog-bg);
}
.page-home .changelog-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.page-home .changelog-visual {
  order: 1;
}
.page-home .changelog-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border: 1px solid var(--color-border, rgba(26,58,107,0.15));
}
.page-home .changelog-content {
  order: 2;
}
.page-home .changelog-desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-secondary, #4A5568);
  margin: 0 0 1rem;
}
.page-home .changelog-example {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.page-home .changelog-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.88rem;
  color: var(--color-text-primary, #1A1A2E);
  background: rgba(26,58,107,0.04);
  padding: 0.6rem 0.9rem;
  border-left: 3px solid var(--color-accent, #00C853);
}
.page-home .changelog-tag {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent, #00C853);
  background: rgba(0,200,83,0.1);
  padding: 0.15rem 0.5rem;
  flex-shrink: 0;
}
.page-home .changelog-text {
  font-weight: 300;
}

/* ---------- 章节4：立即体验 ---------- */
.page-home .section-cta {
  background: var(--home-cta-bg);
}
.page-home .cta-box {
  text-align: center;
  padding: 3rem 1.25rem;
  border: 1px solid rgba(0,200,83,0.2);
  background: rgba(255,255,255,0.03);
}
.page-home .cta-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-accent, #00C853);
  background: var(--home-badge-bg);
  padding: 0.3rem 1rem;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(0,200,83,0.25);
}
.page-home .cta-heading {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.1;
  color: #FFFFFF;
  margin: 0 0 0.75rem;
}
.page-home .cta-desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
  max-width: 640px;
  margin: 0 auto 1.5rem;
}
.page-home .cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.page-home .cta-footnote {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

/* ---------- 按钮 (复用) ---------- */
.page-home .btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.7rem 1.8rem;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.page-home .btn-primary {
  background: var(--color-accent, #00C853);
  color: #FFFFFF;
  border-color: var(--color-accent, #00C853);
}
.page-home .btn-primary:hover,
.page-home .btn-primary:focus-visible {
  background: transparent;
  color: var(--color-accent, #00C853);
  outline: none;
}
.page-home .btn-outline {
  background: transparent;
  color: var(--color-primary, #1A3A6B);
  border-color: var(--color-primary, #1A3A6B);
}
.page-home .btn-outline:hover,
.page-home .btn-outline:focus-visible {
  background: var(--color-primary, #1A3A6B);
  color: #FFFFFF;
  outline: none;
}
.page-home .btn-outline-light {
  background: transparent;
  color: #FFFFFF;
  border-color: rgba(255,255,255,0.4);
}
.page-home .btn-outline-light:hover,
.page-home .btn-outline-light:focus-visible {
  border-color: var(--color-accent, #00C853);
  color: var(--color-accent, #00C853);
  outline: none;
}

/* ---------- 桌面端媒体查询 (≥768px) ---------- */
@media (min-width: 768px) {
  .page-home {
    --home-section-pad: 4.5rem 2rem;
    --home-grid-gap: 2.5rem;
  }

  .page-home .hero-content {
    padding: 3rem 2rem;
    gap: 1.5rem;
  }
  .page-home .hero-cards {
    gap: 1.5rem;
    margin-top: 0.5rem;
  }
  .page-home .hero-card {
    padding: 1.75rem 2rem;
    min-width: 160px;
    flex: 1 1 180px;
    max-width: 240px;
  }
  .page-home .hero-card-title {
    font-size: 1.05rem;
  }

  .page-home .stats-grid {
    flex-direction: row;
    align-items: center;
  }
  .page-home .stats-visual {
    flex: 0 0 45%;
    order: 0;
  }
  .page-home .stats-content {
    flex: 1;
    order: 0;
    padding-left: 2.5rem;
  }

  .page-home .team-grid {
    flex-direction: row;
    align-items: center;
  }
  .page-home .team-content {
    flex: 1;
    order: 0;
    padding-right: 2.5rem;
  }
  .page-home .team-visual {
    flex: 0 0 45%;
    order: 0;
  }

  .page-home .changelog-grid {
    flex-direction: row;
    align-items: center;
  }
  .page-home .changelog-visual {
    flex: 0 0 40%;
    order: 0;
  }
  .page-home .changelog-content {
    flex: 1;
    order: 0;
    padding-left: 2.5rem;
  }

  .page-home .cta-box {
    padding: 4rem 3rem;
  }
  .page-home .cta-actions {
    gap: 1.5rem;
  }
}

/* ---------- 大桌面端微调 ---------- */
@media (min-width: 1024px) {
  .page-home .hero-card {
    padding: 2rem 2.25rem;
    min-width: 200px;
    flex: 1 1 220px;
    max-width: 280px;
  }
  .page-home .stats-content {
    padding-left: 3.5rem;
  }
  .page-home .team-content {
    padding-right: 3.5rem;
  }
  .page-home .changelog-content {
    padding-left: 3.5rem;
  }
}
