/* ===== 页面作用域：首页 .page-home ===== */
.page-home {
  --home-gap: clamp(1.5rem, 4vw, 3rem);
  --home-section-spacing: clamp(4rem, 8vw, 7rem);
  --home-max-content: 1280px;
  --home-hero-left-width: min(40%, 480px);
  --home-timeline-dot-size: 18px;
  --home-card-radius: 12px;
  --home-glass-bg: rgba(255, 255, 255, 0.06);
  --home-glass-border: rgba(255, 255, 255, 0.10);
  --home-overlay-dark: rgba(26, 26, 46, 0.60);
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  color: var(--text-primary);
  background: var(--bg-main);
}

/* ---- 面包屑 ---- */
.page-home .breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}

.page-home .breadcrumb-current {
  color: var(--brand);
  font-weight: 600;
}

/* ---- 章节头部通用 ---- */
.page-home .section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--glass-border);
}

.page-home .section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.15;
}

.page-home .section-sub {
  font-family: var(--font-heading);
  font-size: clamp(0.75rem, 1.2vw, 0.95rem);
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  white-space: nowrap;
  background: var(--glass);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
}

/* ---- 按钮变体 ---- */
.page-home .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.7rem 1.6rem;
  border-radius: 40px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: none;
  line-height: 1.2;
}

.page-home .btn-primary {
  background: var(--brand);
  color: #0a0a1a;
  box-shadow: 0 4px 16px rgba(0, 196, 180, 0.25);
}

.page-home .btn-primary:hover,
.page-home .btn-primary:focus-visible {
  background: #00d6c4;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 196, 180, 0.35);
}

.page-home .btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.25);
}

.page-home .btn-accent:hover,
.page-home .btn-accent:focus-visible {
  background: #ff7f4d;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 107, 53, 0.35);
}

.page-home .btn-glass {
  background: var(--glass);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.page-home .btn-glass:hover,
.page-home .btn-glass:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--brand);
  transform: translateY(-2px);
}

/* ===== HERO 首屏 ===== */
.page-home .hero-section {
  display: flex;
  flex-wrap: wrap;
  min-height: min(90vh, 700px);
  max-width: var(--home-max-content);
  margin: 0 auto;
  padding: 2rem var(--home-gap) 3rem;
  position: relative;
  align-items: stretch;
}

.page-home .hero-left {
  flex: 1 1 var(--home-hero-left-width);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 2rem 2rem 0;
  z-index: 2;
  min-width: 280px;
}

.page-home .hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 8vw, 5rem);
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 0.15em;
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 30%, var(--brand) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-home .hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.2vw, 1.6rem);
  font-weight: 600;
  color: var(--brand);
  margin: 0 0 0.75rem;
  letter-spacing: 0.02em;
}

.page-home .hero-desc {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.4vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 1.8rem;
  max-width: 32em;
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-home .hero-right {
  flex: 1 1 calc(100% - var(--home-hero-left-width) - 2rem);
  min-width: 300px;
  position: relative;
  border-radius: var(--home-card-radius);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: 400px;
  background: var(--bg-secondary);
}

.page-home .hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.5;
  filter: saturate(0.7) contrast(1.1);
}

.page-home .hero-bg-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,46,0.7) 0%, transparent 60%);
  pointer-events: none;
}

.page-home .hero-index {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: var(--home-glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--home-glass-border);
  border-radius: var(--home-card-radius);
  padding: 1.2rem 1.5rem;
  margin: 1.5rem;
  min-width: 180px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.page-home .index-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand);
  margin-bottom: 0.2rem;
}

.page-home .index-item {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  border-left: 3px solid transparent;
}

.page-home .index-item:hover,
.page-home .index-item:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-left-color: var(--brand);
  color: var(--brand);
}

/* ===== 赛季时间线 ===== */
.page-home .timeline-section {
  max-width: var(--home-max-content);
  margin: 0 auto;
  padding: var(--home-section-spacing) var(--home-gap);
  position: relative;
}

.page-home .timeline-container {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-left: calc(var(--home-timeline-dot-size) + 2rem);
}

.page-home .timeline-track {
  position: absolute;
  left: calc(var(--home-timeline-dot-size) / 2 + 0.5rem);
  top: 0.8rem;
  bottom: 0.8rem;
  width: 3px;
  background: linear-gradient(180deg, var(--brand) 0%, var(--accent) 50%, var(--brand) 100%);
  border-radius: 4px;
  opacity: 0.4;
}

.page-home .timeline-item {
  position: relative;
  transition: transform 0.3s ease;
}

.page-home .timeline-item:hover {
  transform: translateX(4px);
}

.page-home .timeline-dot {
  position: absolute;
  left: calc(-1 * (var(--home-timeline-dot-size) + 2rem) + 0.5rem);
  top: 1.2rem;
  width: var(--home-timeline-dot-size);
  height: var(--home-timeline-dot-size);
  border-radius: 50%;
  background: var(--dot-color, var(--brand));
  border: 3px solid var(--bg-main);
  box-shadow: 0 0 0 4px var(--dot-color, var(--brand)), 0 4px 16px rgba(0,0,0,0.3);
  z-index: 2;
}

.page-home .timeline-card {
  background: var(--home-glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--home-glass-border);
  border-radius: var(--home-card-radius);
  padding: 1.2rem 1.6rem;
  transition: background 0.3s, border-color 0.3s;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.page-home .timeline-item[data-status="updated"] .timeline-card {
  border-left: 4px solid var(--brand);
}

.page-home .timeline-item[data-status="pending"] .timeline-card {
  border-left: 4px solid var(--accent);
}

.page-home .timeline-item[data-status="live"] .timeline-card {
  border-left: 4px solid #ffd700;
  background: rgba(255, 215, 0, 0.04);
}

.page-home .timeline-status {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  margin-bottom: 0.5rem;
}

.page-home .status-updated {
  background: rgba(0, 196, 180, 0.18);
  color: var(--brand);
}

.page-home .status-pending {
  background: rgba(255, 107, 53, 0.18);
  color: var(--accent);
}

.page-home .status-live {
  background: rgba(255, 215, 0, 0.18);
  color: #ffd700;
}

.page-home .timeline-league {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
  color: var(--text-primary);
}

.page-home .timeline-date {
  font-family: var(--font-data);
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 0.4rem;
}

.page-home .timeline-desc {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.page-home .timeline-footer {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

/* ===== 联赛切换入口 ===== */
.page-home .league-grid-section {
  max-width: var(--home-max-content);
  margin: 0 auto;
  padding: var(--home-section-spacing) var(--home-gap);
}

.page-home .league-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 540px) {
  .page-home .league-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.page-home .league-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  background: var(--home-glass-bg);
  border: 1px solid var(--home-glass-border);
  border-radius: var(--home-card-radius);
  padding: 1.2rem 0.8rem 1rem;
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: default;
}

@media (hover: hover) {
  .page-home .league-item:hover {
    transform: translateY(-6px);
    border-color: var(--brand);
    box-shadow: 0 12px 32px rgba(0, 196, 180, 0.12);
  }
}

.page-home .league-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 16px;
  background: var(--glass);
  padding: 6px;
  transition: transform 0.3s ease;
}

.page-home .league-item:hover .league-icon {
  transform: scale(1.08);
}

.page-home .league-name {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.2;
}

.page-home .league-desc {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.3;
}

.page-home .league-grid-footer {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

/* ===== 移动端新特性 ===== */
.page-home .features-section {
  max-width: var(--home-max-content);
  margin: 0 auto;
  padding: var(--home-section-spacing) var(--home-gap);
}

.page-home .features-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: center;
}

.page-home .features-text {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

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

.page-home .feature-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 1rem;
  align-items: start;
  padding: 1rem 1.2rem;
  background: var(--home-glass-bg);
  border-radius: var(--home-card-radius);
  border: 1px solid var(--home-glass-border);
  transition: border-color 0.2s;
}

.page-home .feature-item:hover {
  border-color: var(--brand);
}

.page-home .feature-icon {
  grid-row: 1 / 3;
  font-size: 1.6rem;
  line-height: 1.2;
}

.page-home .feature-label {
  grid-column: 2;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
}

.page-home .feature-desc {
  grid-column: 2;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.page-home .features-phone {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-home .phone-frame {
  width: 220px;
  padding: 10px;
  background: var(--bg-secondary);
  border-radius: 32px;
  border: 2px solid var(--glass-border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.page-home .phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  background: #0a0a1a;
}

/* ===== 河南本地热门 ===== */
.page-home .local-section {
  max-width: var(--home-max-content);
  margin: 0 auto;
  padding: var(--home-section-spacing) var(--home-gap) calc(var(--home-section-spacing) + 2rem);
}

.page-home .local-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--home-card-radius);
}

.page-home .carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 0 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--brand) transparent;
}

.page-home .carousel-track::-webkit-scrollbar {
  height: 4px;
}

.page-home .carousel-track::-webkit-scrollbar-thumb {
  background: var(--brand);
  border-radius: 4px;
}

.page-home .carousel-item {
  scroll-snap-align: start;
  flex: 0 0 min(300px, 70vw);
  position: relative;
  border-radius: var(--home-card-radius);
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--home-glass-border);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.page-home .carousel-item:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
}

.page-home .carousel-bg {
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.page-home .carousel-item:hover .carousel-bg {
  opacity: 0.9;
}

.page-home .carousel-content {
  padding: 1rem 1.2rem 1.2rem;
  background: var(--home-glass-bg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.page-home .carousel-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
  color: var(--text-primary);
}

.page-home .carousel-meta {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.page-home .carousel-score {
  font-family: var(--font-data);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(255, 107, 53, 0.12);
  display: inline-block;
  padding: 0.25rem 0.8rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 107, 53, 0.2);
}

.page-home .carousel-controls {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 0 0;
}

.page-home .carousel-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  transition: background 0.3s, border-color 0.3s;
}

.page-home .carousel-dot.active {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 0 8px rgba(0, 196, 180, 0.4);
}

.page-home .local-footer {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

/* ===== 响应式：桌面端增强 ===== */
@media (min-width: 900px) {
  .page-home .hero-section {
    flex-wrap: nowrap;
    padding-top: 1rem;
  }

  .page-home .hero-left {
    padding-right: 3rem;
  }

  .page-home .hero-right {
    min-height: 550px;
  }

  .page-home .hero-index {
    margin: 2rem;
    min-width: 220px;
    padding: 1.4rem 1.8rem;
  }

  .page-home .timeline-container {
    padding-left: calc(var(--home-timeline-dot-size) + 3rem);
  }

  .page-home .timeline-track {
    left: calc(var(--home-timeline-dot-size) / 2 + 1rem);
  }

  .page-home .timeline-dot {
    left: calc(-1 * (var(--home-timeline-dot-size) + 3rem) + 0.5rem);
  }

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

  .page-home .league-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
  }

  .page-home .league-icon {
    width: 72px;
    height: 72px;
  }

  .page-home .phone-frame {
    width: 260px;
  }

  .page-home .carousel-item {
    flex: 0 0 min(320px, 25vw);
  }

  .page-home .carousel-bg {
    height: 180px;
  }
}

@media (min-width: 1200px) {
  .page-home .hero-title {
    font-size: 5rem;
  }

  .page-home .hero-right {
    min-height: 620px;
  }

  .page-home .timeline-card {
    padding: 1.6rem 2.4rem;
  }

  .page-home .league-grid {
    gap: 1.5rem;
  }
}

/* ===== 暗色滚动条美化 ===== */
.page-home * {
  scrollbar-width: thin;
  scrollbar-color: var(--brand) transparent;
}

.page-home *::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

.page-home *::-webkit-scrollbar-thumb {
  background: var(--brand);
  border-radius: 4px;
}

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

/* ===== 焦点样式 ===== */
.page-home a:focus-visible,
.page-home button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ===== 打印优化 ===== */
@media print {
  .page-home .hero-right,
  .page-home .carousel-item {
    break-inside: avoid;
  }
  .page-home .hero-bg-img {
    opacity: 0.15;
  }
}

.page-home {
  --dot-color: none;
}
