/* ===== 页面专属：.page-home ===== */
.page-home {
  --hero-title-mobile: 2.8rem;
  --hero-title-desktop: 4.5rem;
  --card-radius: 16px;
  --glow-green: rgba(0, 255, 132, 0.35);
  --glow-gold: rgba(245, 176, 65, 0.25);
  --card-bg: rgba(15, 43, 92, 0.55);
  --border-subtle: rgba(255, 255, 255, 0.08);
  display: block;
  width: 100%;
  background: linear-gradient(165deg, var(--color-deep-space) 0%, var(--color-deep-blue) 60%, #0a2240 100%);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---------- 首屏英雄区 ---------- */
.page-home .hero-section {
  position: relative;
  padding: 2rem var(--content-padding) 3rem;
  min-height: 85vh;
  display: flex;
  align-items: center;
}
.page-home .hero-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
}
.page-home .hero-content {
  flex: 1 1 55%;
  position: relative;
  z-index: 2;
}
.page-home .hero-context-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-fluorescent-green);
  border: 1px solid var(--color-fluorescent-green);
  padding: 0.25rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(4px);
  background: rgba(0, 255, 132, 0.06);
}
.page-home .hero-title {
  font-family: var(--font-heading);
  font-size: var(--hero-title-mobile);
  font-weight: 800;
  font-style: italic;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-white);
  background: linear-gradient(135deg, #ffffff 60%, var(--color-fluorescent-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px rgba(0, 255, 132, 0.15);
  margin: 0 0 0.5rem;
}
.page-home .hero-slogan {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-gold);
  letter-spacing: 0.15em;
  margin: 0 0 1rem;
}
.page-home .hero-summary {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  max-width: 34em;
  margin: 0 0 1.75rem;
  line-height: 1.7;
}
.page-home .cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  margin-bottom: 0.75rem;
}
.page-home .btn-login {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.9rem 2.4rem;
  border-radius: 50px;
  text-decoration: none;
  color: var(--color-deep-space);
  background: linear-gradient(135deg, var(--color-fluorescent-green) 0%, #00d96a 100%);
  box-shadow: 0 0 30px var(--glow-green);
  transition: transform 0.25s ease, box-shadow 0.3s ease;
  animation: pulse-glow 2.4s ease-in-out infinite;
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
}
.page-home .btn-login:hover,
.page-home .btn-login:focus {
  transform: scale(1.04);
  box-shadow: 0 0 50px var(--glow-green), 0 0 80px rgba(0, 255, 132, 0.15);
}
@keyframes pulse-glow {
  0% { box-shadow: 0 0 15px var(--glow-green); }
  50% { box-shadow: 0 0 40px var(--glow-green), 0 0 70px rgba(0, 255, 132, 0.1); }
  100% { box-shadow: 0 0 15px var(--glow-green); }
}
.page-home .btn-register {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1.8rem;
  border-radius: 50px;
  text-decoration: none;
  color: var(--color-fluorescent-green);
  border: 1.5px solid var(--color-fluorescent-green);
  background: rgba(0, 255, 132, 0.05);
  transition: background 0.25s, transform 0.2s;
  cursor: pointer;
}
.page-home .btn-register:hover,
.page-home .btn-register:focus {
  background: rgba(0, 255, 132, 0.14);
  transform: scale(1.03);
}
.page-home .cta-note {
  font-size: 0.85rem;
  color: var(--color-light-blue);
  margin: 0;
  letter-spacing: 0.03em;
}
.page-home .hero-visual {
  flex: 0 0 auto;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.page-home .hero-athlete {
  display: block;
  width: 100%;
  height: auto;
  max-height: 65vh;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 0 40px rgba(0, 255, 132, 0.08));
  border-radius: 12px;
}

/* ---------- 模态框（纯CSS） ---------- */
.page-home .modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 999;
  background: rgba(2, 10, 26, 0.88);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.page-home .modal-overlay:target {
  opacity: 1;
  pointer-events: auto;
}
.page-home .modal-dialog {
  background: linear-gradient(145deg, #0f2340, #0b1a34);
  border: 1px solid rgba(0, 255, 132, 0.2);
  border-radius: 24px;
  max-width: 480px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2.5rem 2rem;
  position: relative;
  box-shadow: 0 0 80px rgba(0, 255, 132, 0.05);
}
.page-home .modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 2rem;
  line-height: 1;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.page-home .modal-close:hover {
  color: var(--color-fluorescent-green);
}
.page-home .modal-logo {
  display: block;
  width: 80px;
  height: auto;
  margin: 0 auto 1rem;
}
.page-home .modal-heading {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  color: var(--color-white);
  margin: 0 0 0.75rem;
}
.page-home .modal-desc {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  text-align: center;
  line-height: 1.7;
  margin: 0 0 1.25rem;
}
.page-home .modal-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.page-home .modal-features li {
  font-size: 0.9rem;
  color: var(--color-fluorescent-green);
  padding-left: 1.25rem;
  position: relative;
}
.page-home .modal-features li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--color-gold);
}
.page-home .modal-contact {
  font-size: 0.82rem;
  color: var(--color-light-blue);
  text-align: center;
  margin: 0 0 1.25rem;
  padding: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}
.page-home .modal-action {
  display: block;
  width: 100%;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  border-radius: 40px;
  background: linear-gradient(135deg, var(--color-fluorescent-green), #00d96a);
  color: var(--color-deep-space);
  text-decoration: none;
  margin-bottom: 0.6rem;
  transition: transform 0.2s;
}
.page-home .modal-action:hover {
  transform: scale(1.02);
}
.page-home .modal-dismiss {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  text-decoration: none;
}
.page-home .modal-dismiss:hover {
  color: var(--color-fluorescent-green);
}

/* ---------- 功能卡片区 ---------- */
.page-home .features-section {
  padding: 2rem var(--content-padding) 3.5rem;
}
.page-home .features-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.page-home .feature-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.4s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.page-home .feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 255, 132, 0.08);
}
.page-home .card-visual {
  flex: 0 0 auto;
  overflow: hidden;
  background: var(--color-dark-charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}
.page-home .card-chart-img,
.page-home .card-rules-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.page-home .feature-card:hover .card-chart-img,
.page-home .feature-card:hover .card-rules-img {
  transform: scale(1.03);
}
.page-home .card-body {
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.page-home .card-heading {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  margin: 0;
  letter-spacing: -0.01em;
}
.page-home .card-desc {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin: 0;
}
.page-home .filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.page-home .filter-label {
  font-size: 0.8rem;
  color: var(--color-light-blue);
  font-weight: 600;
  margin-right: 0.25rem;
}
.page-home .filter-btn {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(0, 255, 132, 0.25);
  background: rgba(0, 255, 132, 0.05);
  color: var(--color-fluorescent-green);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.page-home .filter-btn.is-active,
.page-home .filter-btn:hover,
.page-home .filter-btn:focus {
  background: rgba(0, 255, 132, 0.15);
  border-color: var(--color-fluorescent-green);
}
.page-home .ranking-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.page-home .ranking-item {
  font-size: 0.9rem;
  color: var(--color-text-primary);
  padding: 0.6rem 0.8rem;
  background: rgba(0, 0, 0, 0.2);
  border-left: 3px solid var(--color-gold);
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.page-home .ranking-cat {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.1rem 0.6rem;
  border-radius: 12px;
  color: var(--color-white);
}
.page-home .cat-football { background: #1e5a3a; }
.page-home .cat-basketball { background: #b45309; }
.page-home .cat-tennis { background: #5b3e8c; }
.page-home .card-cta {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-fluorescent-green);
  text-decoration: none;
  margin-top: 0.5rem;
  transition: color 0.2s, transform 0.2s;
  align-self: flex-start;
}
.page-home .card-cta:hover {
  color: var(--color-gold);
  transform: translateX(4px);
}
.page-home .rules-highlights {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.page-home .rules-highlights li {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  padding-left: 1.1rem;
  position: relative;
}
.page-home .rules-highlights li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--color-gold);
  font-weight: 600;
}

/* ---------- 登录辅助入口 ---------- */
.page-home .login-assist {
  padding: 1rem var(--content-padding) 3rem;
}
.page-home .assist-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  position: relative;
  border-radius: var(--card-radius);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(15, 43, 92, 0.7), rgba(10, 34, 64, 0.9));
  border: 1px solid rgba(245, 176, 65, 0.12);
  display: flex;
  flex-direction: column;
}
.page-home .assist-content {
  padding: 2rem 1.5rem;
  position: relative;
  z-index: 2;
  text-align: center;
}
.page-home .assist-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-white);
  margin: 0 0 0.5rem;
}
.page-home .assist-desc {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  max-width: 28em;
  margin: 0 auto 1.25rem;
  line-height: 1.7;
}
.page-home .assist-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.page-home .assist-btn {
  animation: none;
  font-size: 1rem;
  padding: 0.75rem 2rem;
}
.page-home .assist-btn-outline {
  font-size: 0.95rem;
  padding: 0.65rem 1.6rem;
}
.page-home .assist-visual {
  flex: 0 0 auto;
  width: 100%;
  max-height: 200px;
  overflow: hidden;
}
.page-home .assist-bg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.5;
}

/* ===== 桌面端断点 ===== */
@media (min-width: 768px) {
  .page-home .hero-section {
    padding: 3rem var(--content-padding) 4rem;
    min-height: 90vh;
  }
  .page-home .hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
  }
  .page-home .hero-content {
    flex: 0 0 52%;
  }
  .page-home .hero-title {
    font-size: var(--hero-title-desktop);
  }
  .page-home .hero-slogan {
    font-size: 1.35rem;
  }
  .page-home .hero-summary {
    font-size: 1.15rem;
  }
  .page-home .hero-visual {
    flex: 0 0 44%;
    max-width: none;
    margin: 0;
  }
  .page-home .hero-athlete {
    max-height: 75vh;
  }
  .page-home .features-inner {
    flex-direction: row;
    align-items: stretch;
    gap: 2rem;
  }
  .page-home .feature-card {
    flex: 1 1 50%;
  }
  .page-home .card-ranking {
    flex: 1.4 1 56%;
  }
  .page-home .card-rules {
    flex: 1 1 44%;
  }
  .page-home .card-body {
    padding: 1.75rem 1.5rem;
  }
  .page-home .card-heading {
    font-size: 1.7rem;
  }
  .page-home .login-assist {
    padding: 1rem var(--content-padding) 4rem;
  }
  .page-home .assist-inner {
    flex-direction: row;
    align-items: center;
  }
  .page-home .assist-content {
    flex: 1 1 55%;
    text-align: left;
    padding: 2.5rem 2rem;
  }
  .page-home .assist-title {
    font-size: 1.9rem;
  }
  .page-home .assist-desc {
    margin: 0 0 1.25rem;
  }
  .page-home .assist-actions {
    justify-content: flex-start;
  }
  .page-home .assist-visual {
    flex: 0 0 40%;
    max-height: 260px;
  }
}

@media (min-width: 1024px) {
  .page-home .hero-title {
    font-size: 5rem;
  }
  .page-home .hero-section {
    padding: 3.5rem var(--content-padding) 5rem;
  }
  .page-home .features-section {
    padding: 2.5rem var(--content-padding) 4rem;
  }
  .page-home .card-body {
    padding: 2rem 1.75rem;
  }
}

/* ---------- 安全溢出与可读性 ---------- */
.page-home img {
  max-width: 100%;
  height: auto;
}
.page-home a {
  transition: color 0.2s ease;
}
.page-home *:focus-visible {
  outline: 2px solid var(--color-fluorescent-green);
  outline-offset: 2px;
}
.page-home .modal-overlay:target .modal-dialog {
  animation: modal-slide 0.3s ease forwards;
}
@keyframes modal-slide {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.page-home .btn-login,
.page-home .btn-register,
.page-home .filter-btn,
.page-home .card-cta,
.page-home .modal-action,
.page-home .modal-dismiss {
  cursor: pointer;
}
/* 确保筛选标记存在时内容仍可见（渐进增强） */
.page-home [data-filter-target] {
  display: flex;
}
