/* ===== page-home 专属样式 ===== */
.page-home {
  --home-hero-gap: 0px;
  --home-card-radius: 16px;
  --home-transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  width: 100%;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--color-text-dark);
  background-color: var(--color-white);
}

/* ---------- 首屏对角色块 ---------- */
.page-home .hero-split {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  min-height: 80vh;
  overflow: hidden;
}

.page-home .hero-left,
.page-home .hero-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  flex: 1 1 auto;
  width: 100%;
  box-sizing: border-box;
}

.page-home .hero-left {
  background-color: var(--color-primary);
  color: var(--color-white);
  clip-path: none;
  order: 1;
}

.page-home .hero-right {
  background: linear-gradient(135deg, var(--color-accent) 0%, #e85d2c 100%);
  color: var(--color-white);
  clip-path: none;
  order: 2;
}

.page-home .hero-bg-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.15;
  pointer-events: none;
}

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

.page-home .hero-left-content,
.page-home .hero-right-content {
  position: relative;
  z-index: 2;
  max-width: 520px;
  width: 100%;
}

.page-home .hero-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 2.8rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
  color: var(--color-white);
}

.page-home .countdown-panel {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  display: inline-block;
  min-width: 240px;
}

.page-home .countdown-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.75;
  margin: 0 0 0.35rem;
  font-family: var(--font-heading);
}

.page-home .countdown-display {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1.1;
  color: var(--color-accent);
  margin: 0 0 0.25rem;
}

.page-home .countdown-remaining {
  font-family: var(--font-mono);
  font-size: 1rem;
  opacity: 0.85;
  margin: 0;
}

.page-home .hero-sub {
  font-size: 0.95rem;
  opacity: 0.7;
  margin: 0.75rem 0 0;
  letter-spacing: 0.04em;
}

.page-home .hero-cta-label {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 2rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
}

.page-home .hero-cta-desc {
  font-size: 1rem;
  line-height: 1.5;
  margin: 1rem 0 0.75rem;
  opacity: 0.9;
}

.page-home .hero-trust {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 0.4rem 1.2rem;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  margin-top: 0.5rem;
}

.page-home .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.9rem 2.4rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--home-transition), transform var(--home-transition), box-shadow var(--home-transition);
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.35);
}

.page-home .btn-primary:hover,
.page-home .btn-primary:focus-visible {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 107, 53, 0.45);
}

/* ---------- 赛事筛选 & 横向卡片 ---------- */
.page-home .home-sports {
  padding: 3.5rem 1.5rem;
  background-color: var(--color-bg-light);
}

.page-home .section-header {
  margin-bottom: 2rem;
}

.page-home .section-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.8rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  position: relative;
  display: inline-block;
}

.page-home .section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-accent);
  margin-top: 0.4rem;
  border-radius: 2px;
}

.page-home .section-desc {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text-dark);
  opacity: 0.7;
  margin: 0.5rem 0 0;
  max-width: 540px;
}

.page-home .sports-track {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.page-home .filter-btn {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.45rem 1.2rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--home-transition);
  color: var(--color-text-dark);
}

.page-home .filter-btn.is-active,
.page-home .filter-btn[aria-pressed="true"] {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.page-home .filter-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.page-home .sports-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
  padding-bottom: 0.5rem;
  margin: 0 -0.5rem;
  padding: 0 0.5rem 0.5rem;
}

.page-home .sports-scroll::-webkit-scrollbar {
  height: 4px;
}

.page-home .sports-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.page-home .sports-scroll::-webkit-scrollbar-thumb {
  background-color: var(--color-border);
  border-radius: 4px;
}

.page-home .sports-grid {
  display: flex;
  gap: 1rem;
  min-width: max-content;
  padding: 0.25rem 0;
}

.page-home .sport-card {
  flex: 0 0 160px;
  background: var(--color-white);
  border-radius: var(--home-card-radius);
  padding: 1.5rem 1rem 1.25rem;
  text-align: center;
  border: 1px solid rgba(196, 200, 203, 0.4);
  box-shadow: var(--shadow-card);
  transition: transform var(--home-transition), box-shadow var(--home-transition), border-color var(--home-transition);
  cursor: pointer;
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.page-home .sport-card:hover,
.page-home .sport-card:focus-visible {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-accent);
}

.page-home .sport-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.page-home .sport-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid var(--color-border);
  transition: border-color var(--home-transition);
}

.page-home .sport-card:hover .sport-icon {
  border-color: var(--color-accent);
}

.page-home .sport-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-home .sport-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 1.2;
}

.page-home .sport-count {
  font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  background: var(--color-bg-light);
  color: var(--color-primary);
  border-radius: 999px;
  font-weight: 600;
}

.page-home .tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--color-bg-light);
  color: var(--color-text-dark);
  font-weight: 500;
}

.page-home .tag-accent {
  background: var(--color-accent);
  color: var(--color-white);
}

.page-home .sports-footnote {
  font-size: 0.82rem;
  opacity: 0.6;
  margin-top: 1.25rem;
  text-align: center;
}

/* ---------- 数据驱动时间轴 ---------- */
.page-home .home-data {
  padding: 3.5rem 1.5rem;
  background-color: var(--color-primary);
  color: var(--color-white);
}

.page-home .data-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.page-home .data-text-col {
  flex: 1 1 auto;
}

.page-home .home-data .section-title {
  color: var(--color-white);
}

.page-home .home-data .section-title::after {
  background: var(--color-accent);
}

.page-home .data-desc {
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0.85;
  margin: 1rem 0 1.5rem;
  max-width: 540px;
}

.page-home .data-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.page-home .data-point {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  opacity: 0.9;
}

.page-home .step-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1;
  transition: transform var(--home-transition);
}

.page-home .data-point:hover .step-circle {
  transform: scale(1.12);
}

.page-home .data-vis-col {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
}

.page-home .timeline-chart {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.page-home .timeline-img {
  width: 100%;
  height: auto;
  max-height: 80px;
  object-fit: contain;
  display: block;
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
}

.page-home .progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  overflow: hidden;
  margin: 0.75rem 0;
}

.page-home .progress-fill {
  height: 100%;
  background: var(--color-accent-gradient);
  border-radius: 999px;
  transition: width 1.2s ease;
}

.page-home .timeline-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  opacity: 0.7;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---------- 注册订阅步骤区 ---------- */
.page-home .home-subscribe {
  padding: 3.5rem 1.5rem;
  background-color: var(--color-white);
}

.page-home .subscribe-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.page-home .subscribe-visual {
  position: relative;
  flex: 0 0 auto;
  max-width: 320px;
  margin: 0 auto;
}

.page-home .subscribe-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  display: block;
  border: 1px solid var(--color-border);
}

.page-home .subscribe-badge {
  position: absolute;
  top: -0.75rem;
  right: -0.75rem;
  padding: 0.4rem 1rem;
  font-weight: 700;
  font-size: 0.8rem;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.page-home .subscribe-content {
  flex: 1 1 auto;
}

.page-home .subscribe-desc {
  font-size: 1rem;
  line-height: 1.7;
  margin: 0.75rem 0 1.5rem;
  color: var(--color-text-dark);
  opacity: 0.85;
  max-width: 560px;
}

.page-home .subscribe-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 1.75rem;
}

.page-home .step-node {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  position: relative;
  padding-bottom: 1rem;
}

.page-home .step-content {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.page-home .step-content strong {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.page-home .step-content span {
  font-size: 0.88rem;
  opacity: 0.65;
}

.page-home .step-connector {
  position: absolute;
  left: 15px;
  top: 36px;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
  transform: translateX(-50%);
}

.page-home .step-node:last-child .step-connector {
  display: none;
}

.page-home .subscribe-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.page-home .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-secondary-btn);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--home-transition), transform var(--home-transition);
  box-shadow: 0 4px 12px rgba(30, 77, 115, 0.25);
}

.page-home .btn-secondary:hover,
.page-home .btn-secondary:focus-visible {
  background-color: #153d5e;
  transform: translateY(-2px);
}

.page-home .subscribe-note {
  font-size: 0.82rem;
  opacity: 0.55;
  margin-top: 1.25rem;
  line-height: 1.5;
}

/* ---------- 注册模态框 ---------- */
.page-home .register-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  pointer-events: none;
}

.page-home .register-modal:target {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.page-home .modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 46, 77, 0.65);
  backdrop-filter: blur(4px);
}

.page-home .modal-card {
  position: relative;
  z-index: 1;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: calc(100% - 2rem);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(10, 46, 77, 0.3);
  animation: modal-slide-up 0.4s ease;
}

@keyframes modal-slide-up {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.page-home .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.page-home .modal-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--color-primary);
}

.page-home .modal-close {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-text-dark);
  opacity: 0.4;
  text-decoration: none;
  transition: opacity var(--home-transition);
  padding: 0.25rem;
}

.page-home .modal-close:hover {
  opacity: 0.8;
}

.page-home .modal-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem;
}

.page-home .modal-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  display: block;
  border: 1px solid var(--color-border);
}

.page-home .modal-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.page-home .modal-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  color: var(--color-text-dark);
}

.page-home .modal-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.page-home .modal-benefits li {
  font-size: 0.88rem;
  padding: 0.4rem 0.6rem;
  background: var(--color-bg-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.page-home .modal-benefits li::before {
  content: '✓';
  color: var(--color-accent);
  font-weight: 700;
}

.page-home .modal-contact {
  font-size: 0.82rem;
  opacity: 0.6;
  margin: 0;
  line-height: 1.5;
}

.page-home .modal-contact a {
  color: var(--color-accent);
  text-decoration: underline;
}

.page-home .modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: flex-end;
}

.page-home .modal-footer .btn-secondary {
  font-size: 0.85rem;
  padding: 0.6rem 1.6rem;
}

.page-home .modal-close-btn {
  text-decoration: none;
}

/* ---------- 桌面端自适应 (≥768px) ---------- */
@media (min-width: 768px) {
  .page-home .hero-split {
    flex-direction: row;
    min-height: 75vh;
  }

  .page-home .hero-left {
    flex: 0 0 58%;
    clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
    padding: 4rem 3.5rem;
    order: 1;
  }

  .page-home .hero-right {
    flex: 0 0 42%;
    clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
    padding: 4rem 3rem 4rem 4rem;
    margin-left: -5%;
    order: 2;
    justify-content: flex-start;
  }

  .page-home .hero-title {
    font-size: 3.8rem;
  }

  .page-home .hero-cta-label {
    font-size: 2.4rem;
  }

  .page-home .countdown-display {
    font-size: 3rem;
  }

  .page-home .countdown-panel {
    min-width: 280px;
  }

  .page-home .home-sports {
    padding: 5rem 2.5rem;
  }

  .page-home .section-title {
    font-size: 2.2rem;
  }

  .page-home .sports-grid {
    gap: 1.25rem;
  }

  .page-home .sport-card {
    flex: 0 0 180px;
    padding: 1.75rem 1.25rem 1.5rem;
  }

  .page-home .home-data {
    padding: 5rem 2.5rem;
  }

  .page-home .data-inner {
    flex-direction: row;
    gap: 3rem;
    align-items: center;
  }

  .page-home .data-text-col {
    flex: 0 0 45%;
  }

  .page-home .data-vis-col {
    flex: 0 0 50%;
  }

  .page-home .timeline-chart {
    padding: 2rem;
  }

  .page-home .home-subscribe {
    padding: 5rem 2.5rem;
  }

  .page-home .subscribe-inner {
    flex-direction: row;
    gap: 3rem;
    align-items: center;
  }

  .page-home .subscribe-visual {
    flex: 0 0 35%;
    max-width: 360px;
    margin: 0;
  }

  .page-home .subscribe-content {
    flex: 0 0 58%;
  }

  .page-home .modal-card {
    width: 520px;
  }

  .page-home .modal-body {
    flex-direction: row;
    align-items: flex-start;
  }

  .page-home .modal-illustration {
    flex: 0 0 40%;
  }
}

/* ---------- 大桌面端 (≥1024px) ---------- */
@media (min-width: 1024px) {
  .page-home .hero-left {
    padding: 5rem 4rem;
  }

  .page-home .hero-right {
    padding: 5rem 3.5rem 5rem 5rem;
  }

  .page-home .hero-title {
    font-size: 4.8rem;
  }

  .page-home .hero-cta-label {
    font-size: 2.8rem;
  }

  .page-home .countdown-display {
    font-size: 3.6rem;
  }

  .page-home .home-sports {
    padding: 6rem 3rem;
  }

  .page-home .home-data {
    padding: 6rem 3rem;
  }

  .page-home .home-subscribe {
    padding: 6rem 3rem;
  }

  .page-home .sport-card {
    flex: 0 0 200px;
    padding: 2rem 1.5rem 1.75rem;
  }

  .page-home .section-title {
    font-size: 2.6rem;
  }
}

/* ---------- 窄屏安全 (≤400px) ---------- */
@media (max-width: 400px) {
  .page-home .hero-left,
  .page-home .hero-right {
    padding: 2rem 1rem;
  }

  .page-home .hero-title {
    font-size: 2rem;
  }

  .page-home .hero-cta-label {
    font-size: 1.5rem;
  }

  .page-home .countdown-display {
    font-size: 1.8rem;
  }

  .page-home .countdown-panel {
    min-width: 0;
    width: 100%;
    padding: 1rem;
  }

  .page-home .sport-card {
    flex: 0 0 130px;
    padding: 1rem 0.75rem;
  }

  .page-home .sport-icon {
    width: 48px;
    height: 48px;
  }

  .page-home .sport-name {
    font-size: 0.85rem;
  }

  .page-home .modal-benefits {
    grid-template-columns: 1fr;
  }
}

/* ---------- 打印优化 ---------- */
@media print {
  .page-home .hero-split {
    min-height: auto;
  }

  .page-home .hero-left,
  .page-home .hero-right {
    clip-path: none;
    margin: 0;
    padding: 1.5rem;
  }

  .page-home .register-modal {
    display: none;
  }

  .page-home .sports-scroll {
    overflow: visible;
  }

  .page-home .sports-grid {
    flex-wrap: wrap;
    min-width: 0;
  }

  .page-home .sport-card {
    flex: 1 1 140px;
  }
}
