/* ================= page-home ================= */
.page-home {
  --home-gutter: clamp(1.1rem, 4vw, 3rem);
  --home-cut: 14px;
  background-color: var(--pitch);
  color: var(--mist);
  font-family: var(--font-body);
  overflow-x: hidden;
}

.page-home .is-in {
  opacity: 1;
  transform: none;
}

.page-home .wrap,
.page-home .wrap-narrow {
  min-width: 0;
}

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

/* ---------- hero ---------- */
.page-home .hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 640px;
  min-height: 100svh;
  padding: calc(var(--header-h) + 1.6rem) var(--home-gutter) 2.6rem;
  overflow: hidden;
  background: linear-gradient(160deg, #050D0A 0%, #0B1A14 58%, #050D0A 100%);
}

.page-home .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 34%;
  opacity: 0.26;
  filter: saturate(0.62) contrast(1.08) brightness(0.86);
  pointer-events: none;
}

.page-home .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(201, 255, 63, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 255, 63, 0.07) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 38%, #000 10%, transparent 76%);
  mask-image: radial-gradient(ellipse 80% 55% at 50% 38%, #000 10%, transparent 76%);
  pointer-events: none;
}

.page-home .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 92% 62% at 50% 28%, rgba(5, 13, 10, 0.15) 0%, rgba(5, 13, 10, 0.72) 68%, var(--pitch) 100%),
    linear-gradient(180deg, rgba(5, 13, 10, 0.78) 0%, rgba(5, 13, 10, 0.24) 32%, var(--pitch) 97%);
  pointer-events: none;
}

.page-home .hero-grid {
  position: relative;
  z-index: 2;
  width: 100%;
}

.page-home .hero-ctx {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.2rem;
  padding: 0.42rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--lime);
  background: rgba(11, 26, 20, 0.72);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
}

.page-home .ctx-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  animation: home-pulse 2s var(--ease) infinite;
}

@keyframes home-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 255, 63, 0.5); opacity: 1; }
  50% { box-shadow: 0 0 0 7px rgba(201, 255, 63, 0); opacity: 0.72; }
}

.page-home .hero-title {
  margin: 0 0 1.1rem;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(2.4rem, 12.5vw, 7rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  color: var(--white);
}

.page-home .hero-title-mark {
  display: inline-block;
  margin: 0 0.08em;
  color: var(--orange);
  font-family: var(--font-display);
  transform: skewX(-10deg);
}

.page-home .hero-lead {
  max-width: 46ch;
  margin: 0 0 1.9rem;
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--mist);
}

/* 比分板 */
.page-home .scoreboard {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  max-width: 780px;
  padding: 1.1rem 1.2rem;
  background: linear-gradient(145deg, rgba(19, 39, 30, 0.94), rgba(11, 26, 20, 0.86));
  border: 1px solid var(--line);
  clip-path: polygon(var(--home-cut) 0, 100% 0, 100% calc(100% - var(--home-cut)), calc(100% - var(--home-cut)) 100%, 0 100%, 0 var(--home-cut));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.page-home .sb-side {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0.6rem;
}

.page-home .sb-side--away {
  justify-content: flex-end;
}

.page-home .sb-short {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  color: var(--data);
}

.page-home .sb-name {
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
}

.page-home .sb-core {
  text-align: center;
  order: -1;
}

.page-home .sb-nums {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.1em;
  margin: 0;
  font-family: var(--font-display);
  line-height: 0.82;
}

.page-home .score-value {
  font-size: clamp(4rem, 22vw, 9.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--white);
}

.page-home .score-sep {
  font-size: clamp(2rem, 9vw, 4rem);
  color: var(--lime);
  transform: translateY(-0.1em);
}

.page-home .score-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.7rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--lime);
}

.page-home .score-status .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  animation: home-pulse 1.6s var(--ease) infinite;
}

.page-home .hero-clock {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 1.3rem 0 1.7rem;
}

.page-home .clock-value {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 7vw, 2.6rem);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--orange);
}

.page-home .clock-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--mist);
}

.page-home .hero-actions .btn {
  flex: 1 1 auto;
  text-align: center;
}

/* ---------- 心跳分隔 ---------- */
.page-home .pulse-rule {
  width: 100%;
  height: 40px;
  color: var(--lime);
  opacity: 0.55;
  overflow: hidden;
  background: var(--pitch);
}

.page-home .pulse-rule svg {
  display: block;
  width: 100%;
  height: 40px;
  animation: home-breathe 4s ease-in-out infinite;
}

@keyframes home-breathe {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.95; }
}

/* ---------- 通用章节 ---------- */
.page-home .section {
  position: relative;
  padding: clamp(3.4rem, 9vw, 6.5rem) var(--home-gutter);
}

.page-home .section-head {
  display: grid;
  justify-items: start;
  gap: 0.85rem;
  max-width: 66ch;
  margin-bottom: 2.1rem;
}

.page-home .section-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--pitch);
  background: var(--lime);
  clip-path: polygon(0 0, 100% 0, 100% 68%, calc(100% - 9px) 100%, 0 100%);
}

.page-home .section-title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.7rem, 5.4vw, 2.9rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--white);
}

.page-home .section-lead {
  margin: 0;
  max-width: 58ch;
  font-size: 1.0625rem;
  line-height: 1.76;
  color: var(--mist);
}

.page-home .section-band {
  background: linear-gradient(180deg, var(--stand) 0%, rgba(11, 26, 20, 0.72) 100%);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.page-home .arrow-link {
  color: var(--lime);
  font-size: 0.9375rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 255, 63, 0.4);
  padding-bottom: 2px;
}

.page-home .arrow-link:hover,
.page-home .arrow-link:focus-visible {
  border-bottom-color: var(--lime);
}

/* ---------- 01 一条入口 ---------- */
.page-home .grid-aside {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.2rem;
}

.page-home .tabs {
  display: block;
  margin-top: 1.6rem;
}

.page-home .tab-nav {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.3rem;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}

.page-home .tab-nav::-webkit-scrollbar {
  display: none;
}

.page-home .tab {
  appearance: none;
  flex: 0 0 auto;
  padding: 0.72rem 1rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.page-home .tab:hover {
  color: var(--white);
}

.page-home .tab[aria-selected="true"] {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

.page-home .tab:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.page-home .tab-panel {
  padding: 1.35rem 1.25rem 1.5rem;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
}

.page-home .panel-title {
  margin: 0 0 0.7rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.35;
  color: var(--white);
}

.page-home .tab-panel > p {
  margin: 0;
  font-size: 0.9688rem;
  line-height: 1.75;
  color: var(--mist);
}

.page-home .tick-list {
  display: grid;
  gap: 0.62rem;
  margin: 1.05rem 0 0;
  padding: 0;
  list-style: none;
}

.page-home .tick-list li {
  position: relative;
  padding-left: 1.45rem;
  font-size: 0.9375rem;
  line-height: 1.68;
  color: var(--mist);
}

.page-home .tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.72rem;
  height: 0.16rem;
  background: var(--lime);
  transform: skewX(-24deg);
}

.page-home .panel-cta {
  margin-top: 1.1rem !important;
}

.page-home .home-shot {
  margin: 0;
  overflow: hidden;
  background: var(--stand);
  border: 1px solid var(--line);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
}

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

.page-home .media-caption {
  padding: 0.85rem 1rem 1rem;
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--mist);
  border-top: 1px solid var(--line-soft);
}

/* ---------- 02 周末赛程 ---------- */
.page-home .weekend-grid {
  align-items: start;
}

.page-home .day-label {
  margin: 0 0 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--lime);
}

.page-home .day-label--gap {
  margin-top: 2.2rem;
}

.page-home .timeline {
  display: grid;
  gap: 0;
  padding-left: 1.1rem;
  border-left: 1px solid var(--line);
}

.page-home .timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  padding: 0.7rem 0 0.7rem 0.2rem;
  border-bottom: 1px dashed rgba(30, 58, 46, 0.6);
}

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

.page-home .timeline-dot {
  position: absolute;
  left: calc(-1.1rem - 4.5px);
  top: 1.05rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  box-shadow: 0 0 0 3px rgba(5, 13, 10, 0.9);
}

.page-home .timeline-item[data-state="now"] .timeline-dot {
  background: var(--lime);
  animation: home-pulse 1.8s var(--ease) infinite;
}

.page-home .timeline-item[data-state="next"] .timeline-dot {
  background: var(--orange);
}

.page-home .timeline-time {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--data);
  padding-top: 0.1rem;
}

.page-home .timeline-text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--white);
}

.page-home .timeline-item[data-state="past"] .timeline-text {
  color: var(--mist);
}

/* ---------- 03 场馆第 7 版 ---------- */
.page-home .section-venue {
  background: linear-gradient(120deg, var(--pitch) 0%, var(--stand) 46%, var(--pitch) 100%);
}

.page-home .venue-flag {
  display: grid;
  gap: 0.85rem;
  justify-items: start;
  max-width: 62ch;
  padding: 1.2rem 1.35rem;
  margin-bottom: 2rem;
  background: rgba(6, 17, 12, 0.72);
  border-left: 3px solid var(--lime);
}

.page-home .badge-version {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--pitch);
  background: var(--lime);
  clip-path: polygon(0 0, 100% 0, 100% 66%, calc(100% - 8px) 100%, 0 100%);
}

.page-home .venue-flag-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--white);
}

.page-home .stat-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.9rem;
  margin-bottom: 2rem;
}

.page-home .stat {
  display: grid;
  gap: 0.4rem;
  padding: 1.1rem 1.15rem;
  background: rgba(19, 39, 30, 0.7);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}

.page-home .stat[data-tone="data"] {
  border-color: rgba(87, 227, 196, 0.42);
}

.page-home .stat[data-tone="orange"] {
  border-color: rgba(255, 106, 31, 0.42);
}

.page-home .stat-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.1rem);
  line-height: 0.94;
  font-variant-numeric: tabular-nums;
  color: var(--white);
}

.page-home .stat[data-tone="data"] .stat-value {
  color: var(--data);
}

.page-home .stat[data-tone="orange"] .stat-value {
  color: var(--orange);
}

.page-home .stat-label {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--mist);
}

.page-home .venue-actions .btn {
  flex: 1 1 220px;
  text-align: center;
}

/* ---------- 04 收藏夹 ---------- */
.page-home .section-fav {
  overflow: hidden;
  background: var(--stand);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.page-home .fav-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  filter: saturate(0.5) brightness(0.7);
  pointer-events: none;
}

.page-home .section-fav::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(11, 26, 20, 0.9) 0%, rgba(5, 13, 10, 0.94) 100%);
  pointer-events: none;
}

.page-home .fav-inner {
  position: relative;
  z-index: 1;
}

.page-home .fav-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.page-home .fav-card {
  padding: 1.25rem 1.3rem 1.35rem;
  background: rgba(19, 39, 30, 0.82);
  border: 1px solid var(--line);
  border-left: 3px solid var(--lime);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 13px), calc(100% - 13px) 100%, 0 100%);
}

.page-home .fav-number {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 9vw, 3.2rem);
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
  color: var(--lime);
}

.page-home .fav-text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--mist);
}

/* ---------- 05 持续更新 ---------- */
.page-home .update-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-soft);
}

.page-home .update-cell {
  padding: 1.4rem 0.2rem 1.5rem;
  border-bottom: 1px solid var(--line-soft);
}

.page-home .update-kicker {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--data);
}

.page-home .update-value {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 8vw, 3rem);
  line-height: 0.92;
  font-variant-numeric: tabular-nums;
  color: var(--white);
}

.page-home .update-desc {
  margin: 0;
  max-width: 40ch;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--mist);
}

.page-home .partner-strip {
  display: grid;
  gap: 0.9rem;
  margin-top: 2.2rem;
  padding: 1.3rem 1.35rem;
  background: var(--paper);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.page-home .partner-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: #2c4a3c;
}

.page-home .partner-list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .partner-list li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink);
}

.page-home .partner-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.6rem;
  height: 0.14rem;
  background: var(--orange);
}

.page-home .updates-actions {
  margin-top: 2.1rem;
}

.page-home .updates-actions .btn {
  flex: 1 1 200px;
  text-align: center;
}

/* ================= 响应式 ================= */
@media (min-width: 600px) {
  .page-home .sb-side {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .page-home .sb-side--away {
    align-items: flex-end;
  }

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

  .page-home .stat-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .partner-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .page-home .scoreboard {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2.2rem;
    padding: 1.4rem 2rem;
  }

  .page-home .sb-core {
    order: 0;
  }

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

  .page-home .update-cell {
    padding: 1.6rem 1.6rem 1.7rem 0;
  }

  .page-home .update-cell:nth-child(2n) {
    padding-left: 1.6rem;
    border-left: 1px solid var(--line-soft);
  }
}

@media (min-width: 960px) {
  .page-home .grid-aside {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 3.4rem;
    align-items: start;
  }

  .page-home .weekend-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
  }

  .page-home .weekend-grid .home-shot {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }

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

  .page-home .update-cell:nth-child(2n) {
    padding-left: 0;
    border-left: 0;
  }

  .page-home .update-cell {
    padding: 1.6rem 1.8rem 1.7rem 0;
  }

  .page-home .update-cell:not(:nth-child(3n + 1)) {
    padding-left: 1.8rem;
    border-left: 1px solid var(--line-soft);
  }

  .page-home .hero-title {
    max-width: 16ch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .ctx-pulse,
  .page-home .score-status .status-dot,
  .page-home .timeline-item[data-state="now"] .timeline-dot,
  .page-home .pulse-rule svg {
    animation: none;
  }

  .page-home .tab {
    transition: none;
  }
}
