.page-home {
  --home-neon: #00FF87;
  --home-orange: #FF6B35;
  --home-bg-deep: #060B1C;
  --home-bg-card: #101E3C;
  --home-line: rgba(255, 255, 255, 0.08);
  --home-glow: 0 0 18px rgba(0, 255, 135, 0.25);
  --home-font-mono: 'JetBrains Mono', 'Roboto Mono', 'SF Mono', Menlo, monospace;
  --home-font-head: 'PingFang SC', 'Roboto Condensed', 'Microsoft YaHei', sans-serif;
  --home-font-body: 'PingFang SC', 'Noto Sans CJK SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  position: relative;
  background: var(--home-bg-deep);
  overflow-x: hidden;
}

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

.page-home figure {
  margin: 0;
}

.page-home .kicker-neon {
  color: var(--home-neon);
  letter-spacing: 0.12em;
}

.page-home .home-chapter-nav {
  display: none;
}

.page-home .home-hero {
  position: relative;
  padding: clamp(24px, 5vw, 64px) 0 clamp(32px, 6vw, 72px);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 255, 135, 0.05), transparent 42%),
    radial-gradient(circle at 82% 28%, rgba(0, 255, 135, 0.12), transparent 40%),
    linear-gradient(210deg, transparent 66%, rgba(255, 107, 53, 0.07) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--home-neon), transparent);
  opacity: 0.7;
}

.page-home .home-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

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

.page-home .home-hero-copy h1 {
  margin: 12px 0 18px;
  font-family: var(--home-font-head);
  font-weight: 900;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--color-text, #FFFFFF);
}

.page-home .home-hero-lead {
  margin: 0 0 24px;
  color: var(--color-dim, #B0B7C3);
  font-family: var(--home-font-body);
  font-size: 15px;
  line-height: 1.8;
  max-width: 46ch;
}

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

.page-home .home-hero-actions .btn {
  min-width: 132px;
  justify-content: center;
}

.page-home .home-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--home-line);
}

.page-home .home-hero-metrics div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-home .home-hero-metrics dt {
  font-size: 12px;
  line-height: 1.4;
  color: var(--color-dim, #B0B7C3);
}

.page-home .home-hero-metrics dd {
  margin: 0;
  font-family: var(--home-font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--home-neon);
  text-shadow: var(--glow-neon, 0 0 12px rgba(0, 255, 135, 0.35));
}

.page-home .home-hero-board {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.page-home .home-pitch-lines {
  position: absolute;
  right: -24px;
  bottom: -18px;
  width: 68%;
  height: auto;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

.page-home .home-board-stage {
  position: relative;
}

.page-home .home-board-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 255, 135, 0.3);
  box-shadow: var(--shadow-card-hover, 0 8px 40px rgba(0, 0, 0, 0.5)), var(--glow-neon, 0 0 12px rgba(0, 255, 135, 0.35));
  background: var(--home-bg-deep);
}

.page-home .home-board-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.page-home .home-board-overlay {
  position: relative;
  padding: clamp(18px, 3vw, 28px);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(180deg, rgba(6, 11, 28, 0.55) 0%, rgba(6, 11, 28, 0.9) 100%);
}

.page-home .home-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  width: fit-content;
  background: rgba(0, 255, 135, 0.08);
  border: 1px solid rgba(0, 255, 135, 0.35);
  border-radius: 999px;
  color: var(--home-neon);
  font-size: 12px;
  letter-spacing: 0.08em;
}

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

.page-home .home-score-team {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-home .home-score-team.home-score-away {
  align-items: flex-end;
  text-align: right;
}

.page-home .home-score-abbr {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 800;
  color: var(--color-text, #FFFFFF);
  line-height: 1;
}

.page-home .home-score-meta {
  font-size: 12px;
  line-height: 1.4;
  color: var(--color-dim, #B0B7C3);
}

.page-home .home-score-core {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  font-size: clamp(36px, 6vw, 48px);
  font-weight: 800;
  color: var(--color-text, #FFFFFF);
  line-height: 1;
}

.page-home .home-score-num {
  color: var(--home-neon);
  text-shadow: var(--home-glow);
  animation: home-score-flash 2.6s ease-in-out infinite;
}

.page-home .home-score-num:nth-child(3) {
  animation-delay: 0.2s;
}

@keyframes home-score-flash {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50% { opacity: 0.55; transform: translateY(-2px); }
}

.page-home .home-board-standings {
  padding: 14px 16px;
  border: 1px solid var(--home-line);
  background: rgba(6, 11, 28, 0.78);
}

.page-home .home-stand-head {
  font-size: 12px;
  color: var(--color-dim, #B0B7C3);
  margin-bottom: 8px;
}

.page-home .home-stand-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.page-home .home-stand-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  background: rgba(16, 30, 60, 0.6);
  border-left: 2px solid var(--home-neon);
  font-size: 13px;
  line-height: 1.4;
}

.page-home .home-stand-list li span:first-child {
  color: var(--color-dim, #B0B7C3);
}

.page-home .home-stand-list li span:nth-child(2) {
  font-weight: 700;
  color: var(--color-text, #FFFFFF);
}

.page-home .home-stand-list li span:last-child {
  color: var(--home-neon);
  font-weight: 800;
}

.page-home .home-board-foot {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--color-dim, #B0B7C3);
  text-align: right;
  letter-spacing: 0.04em;
}

.page-home .home-board-section,
.page-home .home-channel-section,
.page-home .home-record-section,
.page-home .home-speed-section {
  padding: 48px 0;
  position: relative;
}

.page-home .home-channel-section {
  background: linear-gradient(180deg, transparent, rgba(0, 255, 135, 0.035), transparent);
}

.page-home .home-speed-section {
  background: linear-gradient(180deg, transparent, rgba(255, 107, 53, 0.045), transparent);
}

.page-home .home-section-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.page-home .home-section-head {
  position: relative;
  padding-top: 8px;
}

.page-home .home-section-head .section-num {
  display: block;
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 12px;
  color: rgba(58, 74, 107, 0.6);
  -webkit-text-stroke: 1px rgba(58, 74, 107, 0.75);
}

.page-home .home-section-head .section-title {
  font-family: var(--home-font-head);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.22;
  margin: 0 0 12px;
  color: var(--color-text, #FFFFFF);
}

.page-home .home-section-head .section-sub {
  font-family: var(--home-font-body);
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-dim, #B0B7C3);
  margin: 0;
}

.page-home .home-section-body {
  min-width: 0;
}

.page-home .home-board-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.page-home .home-card {
  position: relative;
  padding: 24px;
  background: var(--home-bg-card);
  border: 1px solid var(--home-line);
  border-radius: 14px;
  box-shadow: var(--shadow-card, 0 4px 24px rgba(0, 0, 0, 0.35));
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-home .home-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--home-neon), transparent);
  opacity: 0.6;
}

.page-home .home-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 255, 135, 0.4);
  box-shadow: var(--shadow-card-hover, 0 8px 40px rgba(0, 0, 0, 0.5)), var(--home-glow);
}

.page-home .home-card h3 {
  font-family: var(--home-font-head);
  font-size: 18px;
  line-height: 1.4;
  margin: 0 0 8px;
  color: var(--color-text, #FFFFFF);
}

.page-home .home-card p {
  font-family: var(--home-font-body);
  font-size: 14px;
  line-height: 1.75;
  color: var(--color-dim, #B0B7C3);
  margin: 0 0 16px;
}

.page-home .home-bar-chart {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-home .home-bar-row {
  display: grid;
  grid-template-columns: 40px 1fr 32px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--color-dim, #B0B7C3);
}

.page-home .home-bar-row i {
  display: block;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.page-home .home-bar-row b {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--home-neon), rgba(0, 255, 135, 0.35));
}

.page-home .home-bar-row .rt {
  text-align: right;
  color: var(--home-neon);
  font-weight: 700;
}

.page-home .home-mini-stand {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--home-line);
  font-size: 13px;
}

.page-home .home-mini-stand li {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 12px 0;
  border-bottom: 1px solid var(--home-line);
  color: var(--color-text, #FFFFFF);
  line-height: 1.5;
}

.page-home .home-mini-stand li span:first-child {
  color: var(--color-dim, #B0B7C3);
}

.page-home .home-mini-stand li span:last-child {
  color: var(--home-neon);
}

.page-home .home-sync-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: rgba(0, 255, 135, 0.06);
  border: 1px solid rgba(0, 255, 135, 0.2);
  border-radius: 10px;
  color: var(--home-neon);
  font-size: 13px;
  margin: 0 0 10px;
}

.page-home .home-sync-line .sync-dot {
  width: 8px;
  height: 8px;
}

.page-home .home-sync-note {
  font-family: var(--home-font-body);
  font-size: 12px;
  line-height: 1.7;
  color: var(--color-faint, #3A4A6B);
  padding-top: 8px;
  border-top: 1px dashed var(--home-line);
}

.page-home .home-channel-layout,
.page-home .home-record-layout,
.page-home .home-speed-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.page-home .home-tag-pool {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.page-home .home-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: var(--home-bg-card);
  border: 1px solid var(--home-line);
  border-radius: 999px;
  font-family: var(--home-font-body);
  font-size: 14px;
  line-height: 1.4;
  color: var(--color-dim, #B0B7C3);
  cursor: default;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.page-home .home-tag:hover,
.page-home .home-tag-active {
  color: var(--home-neon);
  border-color: var(--home-neon);
  background: rgba(0, 255, 135, 0.08);
  box-shadow: var(--home-glow);
}

.page-home .home-channel-main p {
  font-family: var(--home-font-body);
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-dim, #B0B7C3);
  margin: 0 0 20px;
}

.page-home .home-channel-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 0 24px;
}

.page-home .home-channel-points div {
  padding: 12px;
  background: var(--home-bg-card);
  border: 1px solid var(--home-line);
  border-left: 2px solid var(--home-orange);
  font-family: var(--home-font-body);
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text, #FFFFFF);
}

.page-home .home-channel-points .mono {
  display: block;
  font-size: 12px;
  color: var(--home-orange);
  margin-bottom: 2px;
}

.page-home .img-frame {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--home-line);
  background: var(--home-bg-deep);
}

.page-home .home-channel-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(0, 255, 135, 0.14), transparent 40%);
}

.page-home .home-channel-media img,
.page-home .home-record-media img,
.page-home .home-speed-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

.page-home .home-channel-media:hover img,
.page-home .home-record-media:hover img,
.page-home .home-speed-media:hover img {
  transform: scale(1.03);
}

.page-home .home-record-main {
  min-width: 0;
}

.page-home .home-record-lead {
  font-family: var(--home-font-body);
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text, #FFFFFF);
  margin: 0 0 20px;
}

.page-home .home-record-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.page-home .home-record-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--home-line);
  font-family: var(--home-font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-dim, #B0B7C3);
}

.page-home .home-record-key {
  color: var(--home-neon);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.page-home .home-record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-home .home-speed-copy {
  min-width: 0;
}

.page-home .home-speed-copy p {
  font-family: var(--home-font-body);
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-dim, #B0B7C3);
  margin: 0 0 16px;
}

.page-home .home-speed-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home .home-pill {
  padding: 8px 14px;
  border: 1px solid rgba(255, 107, 53, 0.35);
  background: rgba(255, 107, 53, 0.06);
  border-radius: 999px;
  color: var(--home-orange);
  font-size: 13px;
}

.page-home .home-final-cta {
  position: relative;
  padding: 64px 0;
  margin-top: 16px;
}

.page-home .home-final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(0, 255, 135, 0.1), transparent 45%),
    linear-gradient(240deg, rgba(255, 107, 53, 0.1), transparent 55%);
  clip-path: polygon(0 14%, 100% 0, 100% 100%, 0 100%);
}

.page-home .home-final-grid {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.page-home .home-final-cta .final-kicker {
  margin-bottom: 8px;
}

.page-home .home-final-cta h2 {
  font-family: var(--home-font-head);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.25;
  margin: 0 0 10px;
  color: var(--color-text, #FFFFFF);
}

.page-home .home-final-cta p {
  font-family: var(--home-font-body);
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-dim, #B0B7C3);
  max-width: 56ch;
  margin: 0;
}

.page-home .home-final-btn {
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-score-num {
    animation: none;
  }

  .page-home .home-card,
  .page-home .home-channel-media img,
  .page-home .home-record-media img,
  .page-home .home-speed-media img {
    transition: none;
  }
}

@media (min-width: 900px) {
  .page-home .home-hero-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr);
    gap: clamp(32px, 5vw, 64px);
  }

  .page-home .home-board-section,
  .page-home .home-channel-section,
  .page-home .home-record-section,
  .page-home .home-speed-section {
    padding: 72px 0;
  }

  .page-home .home-section-layout {
    grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 64px);
  }

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

  .page-home .home-channel-layout {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: center;
    gap: clamp(28px, 4vw, 48px);
  }

  .page-home .home-record-layout {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(28px, 4vw, 48px);
  }

  .page-home .home-speed-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: clamp(28px, 4vw, 48px);
  }

  .page-home .home-final-grid {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 1200px) {
  .page-home .home-chapter-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: fixed;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 80;
    padding: 10px 6px;
    background: rgba(6, 11, 28, 0.85);
    border: 1px solid var(--home-line);
    border-radius: 10px;
    box-shadow: var(--shadow-card, 0 4px 24px rgba(0, 0, 0, 0.35));
    backdrop-filter: blur(8px);
  }

  .page-home .home-chapter-nav-title {
    font-size: 10px;
    letter-spacing: 0.14em;
    color: var(--color-faint, #3A4A6B);
    padding: 4px 10px;
  }

  .page-home .home-chapter-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    font-family: var(--home-font-body);
    font-size: 13px;
    line-height: 1.4;
    color: var(--color-dim, #B0B7C3);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  }

  .page-home .home-chapter-link .mono {
    font-size: 12px;
    color: var(--color-faint, #3A4A6B);
  }

  .page-home .home-chapter-link:hover {
    color: var(--color-text, #FFFFFF);
  }

  .page-home .home-chapter-link[data-active] {
    color: var(--home-neon);
    border-left-color: var(--home-neon);
    background: rgba(0, 255, 135, 0.06);
  }

  .page-home .home-chapter-link[data-active] .mono {
    color: var(--home-neon);
  }
}
