.page-home {
  --home-section-pad: 48px;
  --home-card-bg: rgba(15, 31, 58, 0.68);
  --home-card-border: rgba(0, 240, 255, 0.16);
  --home-orange-soft: rgba(255, 107, 53, 0.14);
  background: var(--bg-deep);
  color: var(--white);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

.page-home img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* —— 首屏 Hero —— */
.page-home .home-hero {
  position: relative;
  padding: 40px 0 48px;
  overflow: hidden;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 28%, rgba(0, 240, 255, 0.1) 0%, transparent 52%),
    linear-gradient(rgba(0, 240, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.04) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
  pointer-events: none;
}

.page-home .home-hero-grid {
  position: relative;
  display: grid;
  gap: 36px;
  align-items: center;
}

.page-home .home-hero-copy {
  position: relative;
  z-index: 1;
}

.page-home .home-hero-kicker {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 14px;
  font-size: var(--font-small);
  letter-spacing: 0.08em;
  color: var(--cyan);
  background: var(--cyan-glass);
  border: 1px solid var(--cyan-border);
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

.page-home .home-hero-title {
  margin: 0 0 20px;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.14;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.page-home .home-hero-lead {
  margin: 0 0 28px;
  max-width: 56ch;
  color: var(--slate);
  font-size: 1.05rem;
  line-height: 1.8;
}

.page-home .home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.page-home .home-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0;
  padding: 20px 0 0;
  border-top: 1px solid rgba(138, 155, 181, 0.2);
}

.page-home .home-stat-item dt {
  margin-bottom: 4px;
  font-size: 0.8rem;
  color: var(--slate);
}

.page-home .home-stat-item dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cyan);
}

.page-home .home-hero-visual-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--cyan-border);
  background: var(--bg-panel);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.page-home .home-hero-img {
  width: 100%;
  min-height: 240px;
  object-fit: cover;
}

.page-home .home-hero-svg {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.72;
}

.page-home .hero-arc-1 {
  stroke-dasharray: 12 20 60 8;
  animation: homeDashFlow 7s linear infinite;
}

.page-home .hero-arc-2 {
  animation: homeDashFlow 9s linear infinite reverse;
}

.page-home .hero-arc-3 {
  animation: homeDashFlow 12s linear infinite;
}

.page-home .hero-particle {
  transform-box: fill-box;
  transform-origin: center;
  animation: homeParticlePulse 2.4s ease-in-out infinite;
}

.page-home .hero-particle-delay {
  animation-delay: 0.8s;
}

.page-home .hero-particle-late {
  animation-delay: 1.6s;
}

@keyframes homeDashFlow {
  to {
    stroke-dashoffset: -160;
  }
}

@keyframes homeParticlePulse {
  0%, 100% {
    opacity: 0.4;
    transform: scale(0.75);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.page-home .home-hero-float {
  position: absolute;
  z-index: 2;
  padding: 12px 16px;
  background: rgba(10, 20, 40, 0.9);
  border: 1px solid var(--cyan-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.page-home .home-hero-float-live {
  left: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
}

.page-home .home-hero-float-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: var(--font-small);
  color: var(--slate);
}

.page-home .home-hero-float-live strong {
  font-size: 0.95rem;
  color: var(--white);
}

.page-home .home-hero-float-update {
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  text-align: right;
  font-size: var(--font-small);
  color: var(--slate);
}

.page-home .home-hero-float-update .data-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--orange);
}

/* —— 章节通用 —— */
.page-home .page-section {
  position: relative;
  padding: var(--home-section-pad) 0;
}

.page-home .home-section-head {
  margin-bottom: 32px;
}

.page-home .home-section-desc {
  max-width: 66ch;
  margin: 14px 0 0;
  color: var(--slate);
  line-height: 1.75;
}

/* —— 01 桌面端 —— */
.page-home .home-desktop {
  background: linear-gradient(125deg, rgba(15, 31, 58, 0.6) 0%, transparent 60%), var(--bg-deep);
}

.page-home .home-desktop::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.1), transparent 70%);
  pointer-events: none;
}

.page-home .home-desktop-layout {
  display: grid;
  gap: 28px;
}

.page-home .home-desktop-cards {
  display: grid;
  gap: 16px;
}

.page-home .home-feature-card {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--home-card-bg);
  border: 1px solid var(--home-card-border);
  transition: transform var(--transition), border-color var(--transition);
}

.page-home .home-feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 240, 255, 0.42);
}

.page-home .home-feature-num {
  position: absolute;
  top: 18px;
  right: 20px;
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(0, 240, 255, 0.24);
}

.page-home .home-feature-card h3 {
  margin: 0 0 10px;
  font-size: var(--font-h3);
  font-weight: 800;
}

.page-home .home-feature-card p {
  margin: 0 0 16px;
  font-size: var(--font-small);
  line-height: 1.7;
  color: var(--slate);
}

.page-home .home-data-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid rgba(138, 155, 181, 0.14);
  font-size: var(--font-small);
  color: var(--slate);
}

.page-home .home-data-row strong {
  font-family: var(--font-mono);
  color: var(--cyan);
}

.page-home .home-desktop-visual {
  position: relative;
}

.page-home .home-desktop-img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 240, 255, 0.12);
  object-fit: cover;
}

.page-home .home-desktop-note {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(10, 20, 40, 0.9);
  border: 1px solid var(--cyan-border);
  border-radius: var(--radius-sm);
}

.page-home .home-desktop-note .data-value {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--orange);
}

.page-home .home-desktop-note span:last-child {
  font-size: var(--font-small);
  color: var(--slate);
}

/* —— 02 实时比分与阵容变动 —— */
.page-home .home-live {
  background: linear-gradient(160deg, var(--bg-panel) 0%, var(--bg-deep) 78%);
}

.page-home .home-live-layout {
  display: grid;
  gap: 28px;
}

.page-home .home-live-scores {
  display: grid;
  gap: 16px;
}

.page-home .home-score-card {
  padding: 18px 20px;
  background: rgba(10, 20, 40, 0.72);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-md);
}

.page-home .home-score-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.page-home .home-score-head .live-dot {
  margin-right: 2px;
}

.page-home .home-score-league {
  font-size: var(--font-small);
  font-weight: 700;
  color: var(--cyan);
}

.page-home .home-score-status {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--slate);
}

.page-home .home-score-main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.page-home .home-score-team {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
}

.page-home .home-score-team:first-child {
  text-align: right;
}

.page-home .home-score-team:last-child {
  text-align: left;
}

.page-home .home-score-num {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cyan);
  white-space: nowrap;
}

.page-home .home-score-foot {
  padding-top: 10px;
  border-top: 1px dashed rgba(138, 155, 181, 0.2);
  font-size: var(--font-small);
  color: var(--orange);
}

.page-home .home-live-panel {
  padding: 24px;
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: var(--radius-md);
}

.page-home .home-live-panel h3 {
  margin: 0 0 18px;
  font-size: var(--font-h3);
  font-weight: 800;
}

.page-home .home-live-metrics {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.page-home .home-live-metrics li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(138, 155, 181, 0.14);
  font-size: var(--font-small);
  color: var(--slate);
}

.page-home .home-live-metrics strong {
  font-family: var(--font-mono);
  color: var(--white);
}

.page-home .home-band-width {
  margin-bottom: 20px;
}

.page-home .home-band-label {
  display: block;
  margin-bottom: 8px;
  font-size: var(--font-small);
  color: var(--slate);
}

.page-home .home-band-bg {
  height: 10px;
  border-radius: var(--radius-pill);
  background: rgba(138, 155, 181, 0.2);
  overflow: hidden;
}

.page-home .home-band-fill {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  padding-right: 6px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--cyan), #3aa0ff);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--bg-deep);
}

.page-home .home-live-panel .btn {
  width: 100%;
  text-align: center;
}

/* —— 03 快速入口 —— */
.page-home .home-shortcut {
  background: linear-gradient(130deg, transparent 0%, transparent 40%, rgba(255, 107, 53, 0.08) 100%), var(--bg-deep);
}

.page-home .home-shortcut-layout {
  display: grid;
  gap: 28px;
}

.page-home .home-shortcut-copy {
  display: grid;
  gap: 16px;
  align-content: start;
}

.page-home .home-shortcut-block {
  position: relative;
  padding: 20px 20px 20px 56px;
  border-left: 3px solid var(--cyan);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(15, 31, 58, 0.5);
}

.page-home .home-shortcut-icon {
  position: absolute;
  left: 16px;
  top: 20px;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--cyan);
}

.page-home .home-shortcut-block h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 800;
}

.page-home .home-shortcut-block p {
  margin: 0;
  font-size: var(--font-small);
  line-height: 1.7;
  color: var(--slate);
}

.page-home .home-shortcut-visual {
  position: relative;
}

.page-home .home-shortcut-img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 107, 53, 0.2);
  object-fit: cover;
}

.page-home .home-tab-demo {
  display: inline-flex;
  gap: 2px;
  margin-top: 10px;
  padding: 4px;
  background: rgba(10, 20, 40, 0.92);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-sm);
}

.page-home .home-tab-item {
  padding: 6px 12px;
  font-size: var(--font-small);
  border-radius: 6px;
  color: var(--slate);
}

.page-home .home-tab-item.is-active {
  background: var(--cyan-glass);
  color: var(--cyan);
  font-weight: 700;
}

.page-home .home-tab-ranks {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.page-home .home-rank-card {
  padding: 16px 18px;
  background: rgba(15, 31, 58, 0.72);
  border: 1px solid rgba(138, 155, 181, 0.16);
  border-radius: var(--radius-sm);
}

.page-home .home-rank-card h4 {
  margin: 0 0 10px;
  font-size: var(--font-small);
  color: var(--cyan);
}

.page-home .home-rank-card ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .home-rank-card li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(138, 155, 181, 0.14);
  font-size: var(--font-small);
  color: var(--white);
}

.page-home .home-rank-card li:last-child {
  border-bottom: none;
}

.page-home .home-rank-card li span {
  font-family: var(--font-mono);
  color: var(--orange);
}

/* —— 04 帮助文档 —— */
.page-home .home-help {
  background: linear-gradient(145deg, rgba(0, 240, 255, 0.06), transparent 50%), var(--bg-deep);
}

.page-home .home-help-layout {
  display: grid;
  gap: 28px;
}

.page-home .home-help-timeline {
  position: relative;
  padding-left: 24px;
}

.page-home .home-help-timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--orange));
  opacity: 0.5;
}

.page-home .home-timeline-item {
  position: relative;
  padding: 0 0 24px;
}

.page-home .home-timeline-item:last-child {
  padding-bottom: 0;
}

.page-home .home-timeline-dot {
  position: absolute;
  left: -24px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.7);
}

.page-home .home-timeline-item:nth-child(2) .home-timeline-dot {
  background: var(--orange);
  box-shadow: 0 0 12px rgba(255, 107, 53, 0.7);
}

.page-home .home-timeline-item:nth-child(3) .home-timeline-dot {
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.7);
}

.page-home .home-timeline-item:nth-child(4) .home-timeline-dot {
  background: var(--orange);
  box-shadow: 0 0 12px rgba(255, 107, 53, 0.7);
}

.page-home .home-timeline-item h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 800;
}

.page-home .home-timeline-item p {
  margin: 0;
  font-size: var(--font-small);
  line-height: 1.7;
  color: var(--slate);
}

.page-home .home-help-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-home .home-help-img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 107, 53, 0.18);
  object-fit: cover;
}

.page-home .home-help-aside .btn {
  align-self: flex-start;
}

.page-home .home-help-note {
  margin: 0;
  padding: 10px 14px;
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--home-orange-soft);
  font-size: var(--font-small);
  color: var(--slate);
}

/* —— 05 数据内容预览 —— */
.page-home .home-preview {
  background: var(--bg-deep);
}

.page-home .home-preview-grid {
  display: grid;
  gap: 16px;
}

.page-home .home-preview-card {
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(15, 31, 58, 0.82), rgba(15, 31, 58, 0.5));
  border: 1px solid rgba(0, 240, 255, 0.14);
}

.page-home .home-preview-card h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--cyan);
}

.page-home .home-preview-card ul {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.page-home .home-preview-card li {
  position: relative;
  padding: 7px 0 7px 18px;
  font-size: var(--font-small);
  line-height: 1.6;
  color: #c8d3e5;
  border-bottom: 1px dashed rgba(138, 155, 181, 0.14);
}

.page-home .home-preview-card li:last-child {
  border-bottom: none;
}

.page-home .home-preview-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.7;
}

.page-home .home-preview-card li:nth-child(2n)::before {
  background: var(--orange);
}

.page-home .home-more-link {
  display: inline-block;
  font-size: var(--font-small);
  font-weight: 700;
  color: var(--cyan);
  text-decoration: none;
}

.page-home .home-more-link:hover {
  color: var(--orange);
}

/* —— 底部 CTA —— */
.page-home .home-cta {
  padding: 56px 0 72px;
  text-align: center;
  background:
    radial-gradient(circle at 80% 20%, rgba(0, 240, 255, 0.12), transparent 45%),
    linear-gradient(130deg, var(--bg-panel), var(--bg-deep));
}

.page-home .home-cta .container {
  max-width: 720px;
}

.page-home .home-cta-kicker {
  margin: 0 0 8px;
  font-size: var(--font-small);
  letter-spacing: 0.08em;
  color: var(--orange);
  text-transform: uppercase;
}

.page-home .home-cta h2 {
  margin: 0 0 12px;
  font-size: var(--font-h2);
  font-weight: 900;
}

.page-home .home-cta p {
  margin-bottom: 24px;
  color: var(--slate);
  line-height: 1.75;
}

.page-home .home-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* —— 平板 & 桌面 —— */
@media (min-width: 768px) {
  .page-home {
    --home-section-pad: 72px;
  }

  .page-home .home-hero {
    padding: 56px 0 72px;
  }

  .page-home .home-desktop-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-home .home-live-scores {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-home .home-tab-ranks {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-home .home-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-home .home-cta {
    padding: 72px 0 88px;
  }
}

@media (min-width: 1024px) {
  .page-home .home-hero {
    padding: 80px 0 104px;
  }

  .page-home .home-hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }

  .page-home .home-hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-home .home-desktop-layout {
    grid-template-columns: 1fr 0.85fr;
    gap: 48px;
    align-items: center;
  }

  .page-home .home-desktop-cards {
    grid-template-columns: 1fr;
  }

  .page-home .home-live-layout {
    grid-template-columns: 1.3fr 1fr;
    gap: 48px;
    align-items: start;
  }

  .page-home .home-live-scores {
    grid-template-columns: 1fr;
  }

  .page-home .home-shortcut-layout {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 48px;
    align-items: start;
  }

  .page-home .home-help-layout {
    grid-template-columns: 1fr 0.7fr;
    gap: 48px;
    align-items: start;
  }

  .page-home .home-help-aside {
    padding-top: 8px;
  }

  .page-home .home-preview-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-home .home-cta {
    padding: 88px 0 104px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero-arc-1,
  .page-home .hero-arc-2,
  .page-home .hero-arc-3,
  .page-home .hero-particle,
  .page-home .hero-particle-delay,
  .page-home .hero-particle-late {
    animation: none;
  }
}
