.page-home {
  --home-glow: rgba(57, 255, 20, .18);
  --home-violet-glow: rgba(157, 0, 255, .22);
  position: relative;
  background: var(--bg-deep, #0B1B3D);
}

.page-home .font-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ===== 首屏框景 ===== */
.page-home .home-hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--header-space) + 16px) 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-home .hero-frame {
  position: relative;
  width: 100%;
  max-width: var(--container-width);
  min-height: 540px;
  border-radius: 28px;
  border: 1px solid rgba(157, 0, 255, .45);
  background: var(--bg-deep, #0B1B3D);
  overflow: hidden;
  box-shadow:
    0 0 80px rgba(57, 255, 20, .10),
    0 0 40px rgba(157, 0, 255, .16),
    inset 0 0 60px rgba(157, 0, 255, .06);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.page-home .hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.page-home .hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(11, 27, 61, .55) 0%, rgba(11, 27, 61, .30) 40%, rgba(11, 27, 61, .88) 100%),
    radial-gradient(ellipse at 50% -20%, rgba(57, 255, 20, .16) 0%, transparent 55%);
}

.page-home .hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(57, 255, 20, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 255, 20, .05) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: .5;
}

.page-home .hero-frame .frame-tick {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: var(--neon);
  opacity: .92;
  z-index: 3;
  pointer-events: none;
}

.page-home .hero-frame .frame-tick--tl {
  top: 14px;
  left: 14px;
  border-top: 3px solid var(--neon);
  border-left: 3px solid var(--neon);
  border-top-left-radius: 10px;
}

.page-home .hero-frame .frame-tick--tr {
  top: 14px;
  right: 14px;
  border-top: 3px solid var(--neon);
  border-right: 3px solid var(--neon);
  border-top-right-radius: 10px;
}

.page-home .hero-frame .frame-tick--bl {
  bottom: 14px;
  left: 14px;
  border-bottom: 3px solid var(--neon);
  border-left: 3px solid var(--neon);
  border-bottom-left-radius: 10px;
}

.page-home .hero-frame .frame-tick--br {
  bottom: 14px;
  right: 14px;
  border-bottom: 3px solid var(--neon);
  border-right: 3px solid var(--neon);
  border-bottom-right-radius: 10px;
}

.page-home .hero-content {
  position: relative;
  z-index: 2;
  padding: 24px 20px;
  max-width: 760px;
}

.page-home .hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: .18em;
  color: var(--neon);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.page-home .hero-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 12px rgba(57, 255, 20, .8);
  animation: homePulse 2.4s ease-in-out infinite;
}

.page-home .hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1.15;
  color: var(--text-bright);
  margin: 0 0 16px;
  letter-spacing: .01em;
}

.page-home .hero-lead {
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.7;
  color: var(--text);
  max-width: 560px;
  margin: 0 0 22px;
}

.page-home .hero-dashboard {
  max-width: 460px;
  margin: 0 0 24px;
  padding: 16px 18px;
  background: rgba(11, 27, 61, .72);
  border: 1px solid rgba(57, 255, 20, .22);
  border-radius: 18px;
  backdrop-filter: blur(6px);
}

.page-home .db-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text);
  letter-spacing: .08em;
  margin-bottom: 12px;
}

.page-home .db-row {
  display: grid;
  grid-template-columns: 48px 1fr 52px;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.page-home .db-row:last-child {
  margin-bottom: 0;
}

.page-home .db-team {
  font-size: 14px;
  color: var(--text-bright);
}

.page-home .db-track {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: rgba(242, 245, 250, .10);
  overflow: hidden;
}

.page-home .db-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--neon), var(--neon-soft));
  box-shadow: 0 0 12px rgba(57, 255, 20, .4);
  width: 58%;
}

.page-home .db-fill--away {
  width: 42%;
  background: linear-gradient(90deg, var(--purple), rgba(157, 0, 255, .65));
  box-shadow: 0 0 12px rgba(157, 0, 255, .4);
}

.page-home .db-val {
  font-size: 16px;
  color: var(--neon);
  text-align: right;
}

.page-home .hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin: 0;
  padding: 0;
}

.page-home .hero-metric {
  display: flex;
  flex-direction: column;
}

.page-home .hero-metric dt {
  font-size: 12px;
  color: var(--text);
  letter-spacing: .12em;
  opacity: .8;
}

.page-home .hero-metric dd {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 600;
  color: var(--neon);
  text-shadow: 0 0 20px rgba(57, 255, 20, .35);
  margin: 2px 0 0;
}

.page-home .hero-bar {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 20px 20px;
}

.page-home .hero-bar .btn {
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}

.page-home .hero-bar .btn-accent {
  background: var(--neon);
  color: var(--bg-deep);
  box-shadow: 0 0 24px rgba(57, 255, 20, .35);
}

.page-home .hero-bar .btn-ghost {
  background: rgba(242, 245, 250, .08);
  border: 1px solid var(--card-line);
  color: var(--text-bright);
}

/* ===== 区块通用 ===== */
.page-home .section {
  position: relative;
  padding: 64px 0;
}

.page-home .section-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.page-home .section-index {
  font-family: var(--font-mono);
  font-size: clamp(40px, 6vw, 56px);
  font-weight: 700;
  line-height: 1;
  color: var(--neon);
  text-shadow: 0 0 20px rgba(57, 255, 20, .3);
  flex-shrink: 0;
}

.page-home .section-head-main {
  flex: 1;
  min-width: 200px;
}

.page-home .section-title {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3.5vw, 32px);
  line-height: 1.25;
  color: var(--text-bright);
  margin: 4px 0 8px;
}

.page-home .section-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  max-width: 540px;
  margin: 0;
}

.page-home .section-note {
  display: block;
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  color: rgba(157, 0, 255, .8);
  text-transform: uppercase;
  min-height: 48px;
  flex-shrink: 0;
}

/* ===== Bento 网格 ===== */
.page-home .bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.page-home .panel {
  position: relative;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(27, 16, 64, .72), rgba(11, 27, 61, .92));
  border: 1px solid var(--card-line);
  padding: 24px;
  overflow: hidden;
}

.page-home .panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(57, 255, 20, .5), transparent);
  z-index: 1;
}

.page-home .panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(57, 255, 20, .08), transparent 70%);
  opacity: 0;
  transition: opacity .35s var(--ease);
  pointer-events: none;
  z-index: 0;
}

.page-home .panel:hover::after {
  opacity: 1;
}

.page-home .panel--neon {
  border-color: rgba(57, 255, 20, .28);
}

.page-home .panel--violet {
  border-color: rgba(157, 0, 255, .40);
}

.page-home .panel-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--purple);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.page-home .panel h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 1.3;
  color: var(--text-bright);
  margin: 0 0 12px;
}

.page-home .feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-home .feature-list li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

.page-home .feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--neon);
  box-shadow: 0 0 8px rgba(57, 255, 20, .5);
}

.page-home .feature-list li:nth-child(4n)::before {
  background: var(--purple);
  box-shadow: 0 0 8px rgba(157, 0, 255, .5);
}

.page-home .btn--sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 13px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin-top: 18px;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}

/* ===== 01 幻影数据视界 ===== */
.page-home .possession-section {
  background:
    radial-gradient(ellipse at 80% 10%, rgba(157, 0, 255, .08), transparent 55%),
    radial-gradient(ellipse at 20% 90%, rgba(57, 255, 20, .06), transparent 55%);
}

.page-home .possession-viz,
.page-home .history-viz,
.page-home .tablet-viz {
  padding: 0;
  min-height: 300px;
}

.page-home .card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-home .possession-viz {
  min-height: 340px;
}

.page-home .viz-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(11, 27, 61, .75);
  border: 1px solid rgba(57, 255, 20, .2);
  border-radius: 14px;
  backdrop-filter: blur(4px);
}

.page-home .possession-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-home .possession-stats .btn {
  margin-top: auto;
}

/* ===== 02 赛事日历说明 ===== */
.page-home .calendar-section {
  background: linear-gradient(135deg, rgba(157, 0, 255, .10) 0%, transparent 45%, rgba(57, 255, 20, .06) 100%);
  border-top: 1px solid var(--card-line);
  border-bottom: 1px solid var(--card-line);
}

.page-home .calendar-preview {
  display: flex;
  flex-direction: column;
}

.page-home .round-badge {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(57, 255, 20, .12), rgba(157, 0, 255, .10));
  border: 1px solid rgba(57, 255, 20, .25);
  margin-bottom: 18px;
}

.page-home .round-label {
  font-size: 13px;
  color: var(--text);
  letter-spacing: .08em;
}

.page-home .round-value {
  font-size: clamp(48px, 8vw, 72px);
  font-weight: 700;
  line-height: 1;
  color: var(--neon);
  text-shadow: 0 0 28px rgba(57, 255, 20, .4);
}

.page-home .round-meta {
  font-size: 14px;
  color: var(--text-bright);
}

.page-home .zone-list {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.page-home .zone-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(242, 245, 250, .04);
  border: 1px solid var(--card-line);
  font-size: 15px;
  color: var(--text-bright);
}

.page-home .zone-row .font-mono {
  color: var(--neon);
}

.page-home .calendar-preview .btn {
  margin-top: auto;
}

.page-home .calendar-features {
  display: flex;
  flex-direction: column;
}

/* ===== 03 使用记录主客场分析 ===== */
.page-home .history-section {
  background: radial-gradient(ellipse at 20% 50%, rgba(57, 255, 20, .08), transparent 60%);
}

.page-home .history-copy {
  display: flex;
  flex-direction: column;
}

.page-home .history-copy p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 16px;
}

.page-home .data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed var(--card-line);
  font-size: 14px;
  color: var(--text);
}

.page-home .data-row:first-of-type {
  border-top: 1px dashed var(--card-line);
}

.page-home .data-row .font-mono {
  color: var(--neon);
  font-size: 16px;
}

.page-home .history-copy .btn {
  margin-top: auto;
}

.page-home .history-viz {
  min-height: 340px;
}

/* ===== 04 幻影sports帮助文档平板专区 ===== */
.page-home .tablet-section {
  background: linear-gradient(120deg, transparent, rgba(157, 0, 255, .08));
  border-top: 1px solid var(--card-line);
  border-bottom: 1px solid var(--card-line);
}

.page-home .tablet-viz {
  min-height: 320px;
}

.page-home .tablet-features {
  display: flex;
  flex-direction: column;
}

.page-home .tablet-features .btn {
  margin-top: auto;
}

/* ===== 05 华人球迷快速入口 ===== */
.page-home .quick-section {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(57, 255, 20, .06), transparent 50%),
    radial-gradient(ellipse at 10% 80%, rgba(157, 0, 255, .08), transparent 50%);
}

.page-home .quick-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.page-home .quick-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 24px;
  border-radius: 24px;
  text-decoration: none;
  background: linear-gradient(145deg, rgba(27, 16, 64, .6), rgba(11, 27, 61, .85));
  border: 1px solid var(--card-line);
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}

.page-home .quick-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon), var(--purple));
  opacity: .6;
  transition: opacity .3s var(--ease);
}

.page-home .quick-card--purple::after {
  background: linear-gradient(90deg, var(--purple), var(--neon));
}

.page-home .quick-num {
  font-size: 14px;
  color: var(--neon);
  letter-spacing: .1em;
}

.page-home .quick-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--text-bright);
  margin: 8px 0 0;
}

.page-home .quick-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}

/* ===== 信任声明 ===== */
.page-home .trust-panel {
  border-radius: 28px;
  padding: 32px 28px;
  background:
    radial-gradient(ellipse at 80% 10%, rgba(157, 0, 255, .18), transparent 50%),
    linear-gradient(120deg, rgba(27, 16, 64, .5), rgba(11, 27, 61, .9));
  border: 1px solid var(--card-line);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.page-home .trust-text {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
  color: var(--text-bright);
  font-family: var(--font-heading);
  margin: 0;
}

.page-home .trust-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home .tag {
  background: rgba(157, 0, 255, .14);
  border: 1px solid rgba(157, 0, 255, .35);
  color: var(--text-bright);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 13px;
}

/* ===== 桌面端增强 ===== */
@media (min-width: 768px) {
  .page-home .section {
    padding: 88px 0;
  }

  .page-home .home-hero {
    padding: calc(var(--header-space) + 24px) 24px 32px;
  }

  .page-home .hero-frame {
    min-height: 640px;
  }

  .page-home .hero-content {
    padding: 48px 48px 32px;
  }

  .page-home .hero-bar {
    padding: 0 48px 48px;
  }

  .page-home .bento-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 22px;
  }

  .page-home .span-8 {
    grid-column: span 8;
  }

  .page-home .span-7 {
    grid-column: span 7;
  }

  .page-home .span-5 {
    grid-column: span 5;
  }

  .page-home .span-4 {
    grid-column: span 4;
  }

  .page-home .quick-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }

  .page-home .possession-viz {
    min-height: 380px;
  }

  .page-home .history-viz {
    min-height: 360px;
  }

  .page-home .tablet-viz {
    min-height: 340px;
  }
}

@media (min-width: 1024px) {
  .page-home .hero-lead {
    margin-bottom: 28px;
  }

  .page-home .hero-dashboard {
    margin-bottom: 28px;
  }
}

@media (hover: hover) {
  .page-home .hero-bar .btn:hover,
  .page-home .btn--sm:hover {
    transform: translateY(-2px);
  }

  .page-home .hero-bar .btn-accent:hover {
    box-shadow: 0 0 36px rgba(57, 255, 20, .5);
  }

  .page-home .quick-card:hover {
    transform: translateY(-4px);
    border-color: rgba(57, 255, 20, .35);
  }

  .page-home .quick-card:hover::after {
    opacity: 1;
  }
}

/* ===== 动效与降级 ===== */
@keyframes homePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}

@media (prefers-reduced-motion: no-preference) {
  .page-home .hero-content > * {
    animation: homeRise .6s var(--ease) both;
  }

  .page-home .hero-content > *:nth-child(2) { animation-delay: .06s; }
  .page-home .hero-content > *:nth-child(3) { animation-delay: .12s; }
  .page-home .hero-content > *:nth-child(4) { animation-delay: .18s; }

  .page-home .hero-bar {
    animation: homeRise .6s var(--ease) .24s both;
  }
}

@keyframes homeRise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    animation: none !important;
    transition: none !important;
  }
}
