.page-home {
  position: relative;
  --home-glow: radial-gradient(circle at 80% 8%, rgba(122, 59, 255, 0.24), transparent 56%);
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  padding: calc(var(--mobile-bar-h) + 26px) 0 44px;
  background-image: var(--home-glow);
  overflow: hidden;
}

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

.page-home .hero__intro {
  min-width: 0;
}

.page-home .hero__title {
  margin: 14px 0 18px;
  font-size: clamp(2.35rem, 8.4vw, 4.4rem);
  font-weight: 200;
  line-height: 1.12;
  letter-spacing: 0.035em;
}

.page-home .hero__title-accent {
  display: block;
  background-image: var(--grad-flow);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-home .hero__lede {
  margin: 0 0 22px;
  max-width: 34em;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.78;
}

.page-home .hero__status {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.page-home .status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(58, 69, 133, 0.7);
  border-radius: 999px;
  background: rgba(22, 28, 63, 0.82);
  color: var(--ink);
  font-size: 13.5px;
  letter-spacing: 0.01em;
}

.page-home .status-chip .mono {
  font-size: 13.5px;
}

.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.page-home .hero__actions .copy-status {
  color: var(--cyan);
  font-size: 13px;
}

.page-home .entry-log {
  border: 1px solid rgba(58, 69, 133, 0.6);
  border-radius: var(--r-md);
  background: rgba(22, 28, 63, 0.6);
  padding: 12px 16px;
}

.page-home .entry-log[open] {
  border-color: rgba(47, 243, 224, 0.42);
}

.page-home .entry-log__summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 14px;
  letter-spacing: 0.02em;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-home .entry-log__summary::-webkit-details-marker {
  display: none;
}

.page-home .entry-log__summary::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(59, 227, 138, 0.16);
  flex: none;
}

.page-home .entry-log__summary:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

.page-home .entry-log__list {
  margin: 14px 0 4px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.page-home .entry-log__list li + li {
  margin-top: 8px;
}

.page-home .entry-log__list .mono {
  color: var(--cyan);
}

.page-home .hero__visual {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
}

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

.page-home .hero__visual .media__badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(10, 14, 39, 0.78);
  border: 1px solid rgba(47, 243, 224, 0.4);
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.page-home .hero__races {
  position: relative;
  padding: 18px 16px 14px;
  border: 1px solid rgba(58, 69, 133, 0.75);
  border-radius: var(--r-md);
  background: linear-gradient(160deg, rgba(22, 28, 63, 0.96), rgba(10, 14, 39, 0.94));
  overflow: hidden;
}

.page-home .hero__races > *:not(.hero__races-bg) {
  position: relative;
  z-index: 1;
}

.page-home .hero__races-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}

.page-home .tablist {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 14px;
  border: 1px solid rgba(58, 69, 133, 0.7);
  border-radius: 999px;
  background: rgba(10, 14, 39, 0.72);
}

.page-home .tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 14px;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.22s var(--ease), background-color 0.22s var(--ease);
}

.page-home .tab[aria-selected="true"] {
  background: var(--cyan);
  color: #06121f;
  font-weight: 600;
}

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

.page-home .tabpanel[hidden] {
  display: none;
}

.page-home .tabpanel:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
  border-radius: var(--r-sm);
}

.page-home .fixture-list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 262px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.page-home .fixture-list::-webkit-scrollbar {
  width: 6px;
}

.page-home .fixture-list::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 999px;
}

.page-home .fixture {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  grid-template-areas:
    "time teams meta"
    "time league meta";
  gap: 3px 12px;
  align-items: center;
  padding: 12px 4px;
  border-bottom: 1px solid rgba(58, 69, 133, 0.42);
}

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

.page-home .fixture__time {
  grid-area: time;
  text-align: right;
  color: var(--ink);
  font-size: 16px;
  letter-spacing: 0.04em;
}

.page-home .fixture__league {
  grid-area: league;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.page-home .fixture__teams {
  grid-area: teams;
  color: var(--ink);
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-home .fixture__vs {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.14em;
  padding: 0 4px;
}

.page-home .fixture__meta {
  grid-area: meta;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  font-size: 15px;
}

.page-home .hero__races-note {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px dashed rgba(58, 69, 133, 0.6);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.page-home .hero__races-note .mono {
  color: var(--orange);
}

/* ---------- 通用章节 ---------- */
.page-home .section {
  padding: 52px 0;
}

.page-home .chapter {
  max-width: 780px;
  margin-bottom: 30px;
}

.page-home .chapter__num {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  letter-spacing: 0.32em;
}

.page-home .chapter__title {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 5vw, 2.15rem);
  font-weight: 300;
  line-height: 1.28;
  letter-spacing: 0.02em;
}

.page-home .chapter__lede {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.78;
}

/* ---------- 01 版本变更 ---------- */
.page-home .changes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.page-home .tile {
  min-width: 0;
  padding: 22px 20px;
  border: 1px solid rgba(58, 69, 133, 0.6);
  border-radius: var(--r-md);
  background: var(--panel);
  transition: transform 0.34s var(--ease), border-color 0.34s var(--ease);
}

.page-home .tile:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 243, 224, 0.5);
}

.page-home .changes > :nth-child(odd) {
  border-radius: 26px 14px 26px 14px;
}

.page-home .changes > :nth-child(even) {
  border-radius: 14px 26px 14px 26px;
}

.page-home .changes__focus {
  position: relative;
  background: linear-gradient(150deg, rgba(122, 59, 255, 0.36), rgba(255, 46, 122, 0.22) 58%, rgba(22, 28, 63, 0.94));
  border-color: rgba(255, 46, 122, 0.45);
}

.page-home .tile__title {
  margin: 10px 0 12px;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: 0.01em;
}

.page-home .tile__title .mono {
  color: var(--cyan);
  letter-spacing: 0.04em;
}

.page-home .tile__note {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.78;
}

.page-home .tile__link {
  margin: 0;
}

.page-home .check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .check-list li {
  position: relative;
  padding-left: 22px;
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.72;
}

.page-home .check-list li + li {
  margin-top: 10px;
}

.page-home .check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--cyan);
  transform: rotate(45deg);
}

.page-home .stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .stats--wide {
  margin-bottom: 22px;
}

.page-home .stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 10px 12px 14px;
  border-left: 2px solid rgba(47, 243, 224, 0.55);
  background: rgba(10, 14, 39, 0.42);
  border-radius: 0 10px 10px 0;
}

.page-home .stats__num {
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: 0.03em;
}

.page-home .stats__unit {
  margin-left: 2px;
  font-size: 13px;
  color: var(--muted);
}

.page-home .stats__label {
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.06em;
}

/* ---------- 02 回放 ---------- */
.page-home .section--reel {
  position: relative;
  background: linear-gradient(180deg, rgba(32, 42, 92, 0.34), rgba(10, 14, 39, 0));
}

.page-home .reel-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}

.page-home .reel-head__count {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

.page-home .reel-head__count .mono {
  font-size: 17px;
}

.page-home .reel-bar {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(58, 69, 133, 0.5);
  overflow: hidden;
}

.page-home .reel-bar__fill {
  display: block;
  width: 82%;
  height: 100%;
  border-radius: inherit;
  background-image: var(--grad-flow);
}

.page-home .reel {
  display: flex;
  gap: 18px;
  padding: 4px 2px 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.page-home .reel::-webkit-scrollbar {
  height: 6px;
}

.page-home .reel::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 999px;
}

.page-home .reel:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
  border-radius: var(--r-sm);
}

.page-home .reel__card {
  flex: 0 0 84%;
  min-width: 0;
  scroll-snap-align: start;
  background: var(--panel);
  border: 1px solid rgba(58, 69, 133, 0.6);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), 0 100%);
  transition: transform 0.34s var(--ease), border-color 0.34s var(--ease);
}

.page-home .reel__card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 122, 47, 0.55);
}

.page-home .reel__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0;
}

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

.page-home .reel__thumb .media__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 122, 47, 0.92);
  color: #1a0b00;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.page-home .reel__thumb .media__cap {
  position: absolute;
  left: 14px;
  bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.page-home .reel__body {
  padding: 14px 16px 20px;
}

.page-home .reel__match {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}

.page-home .reel__vs {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.14em;
  padding: 0 3px;
}

.page-home .reel__meta {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.page-home .reel__meta .mono {
  color: var(--orange);
}

.page-home .reel-foot {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.page-home .reel-foot .mono {
  color: var(--cyan);
}

.page-home .link-inline {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 243, 224, 0.45);
  padding-bottom: 1px;
}

.page-home .link-inline:hover {
  border-bottom-color: var(--cyan);
}

/* ---------- 03 收藏 ---------- */
.page-home .fans {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  align-items: center;
}

.page-home .fans__text {
  min-width: 0;
}

.page-home .fans__visual {
  margin: 0;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(47, 243, 224, 0.32);
  background: var(--panel);
}

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

/* ---------- 04 自查 ---------- */
.page-home .section--selfcheck {
  padding-bottom: 64px;
}

.page-home .checklist {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.page-home .checklist__item {
  position: relative;
  min-width: 0;
  padding: 20px 18px;
  border: 1px solid rgba(58, 69, 133, 0.6);
  border-radius: 14px 24px 14px 24px;
  background: rgba(22, 28, 63, 0.72);
}

.page-home .checklist__idx {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--orange);
  font-size: 13px;
  letter-spacing: 0.28em;
}

.page-home .checklist__title {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
}

.page-home .checklist__desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.76;
}

.page-home .selfcheck-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(58, 69, 133, 0.55);
}

.page-home .selfcheck-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.page-home .selfcheck-note .mono {
  color: var(--cyan);
}

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .page-home .fixture {
    grid-template-columns: 58px 52px minmax(0, 1fr) 60px;
    grid-template-areas: "time league teams meta";
    padding: 13px 6px;
  }

  .page-home .reel__card {
    flex: 0 0 46%;
  }

  .page-home .reel-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }

  .page-home .reel-bar {
    flex: 0 1 320px;
  }

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

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

  .page-home .hero__grid {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    grid-template-areas:
      "intro visual"
      "races visual";
    column-gap: 44px;
    row-gap: 30px;
    align-items: start;
  }

  .page-home .hero__intro {
    grid-area: intro;
  }

  .page-home .hero__visual {
    grid-area: visual;
    aspect-ratio: auto;
    align-self: stretch;
    min-height: 520px;
  }

  .page-home .hero__races {
    grid-area: races;
    padding: 22px 22px 16px;
  }

  .page-home .fixture-list {
    max-height: 244px;
  }

  .page-home .section {
    padding: 84px 0;
  }

  .page-home .section--selfcheck {
    padding-bottom: 96px;
  }

  .page-home .changes {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
  }

  .page-home .changes__focus {
    grid-column: span 3;
  }

  .page-home .changes > :nth-child(2) {
    grid-column: span 3;
  }

  .page-home .changes > :nth-child(3) {
    grid-column: span 2;
  }

  .page-home .changes > :nth-child(4) {
    grid-column: span 4;
  }

  .page-home .changes__focus .tile__title,
  .page-home .changes > :nth-child(2) .tile__title {
    font-size: 21px;
  }

  .page-home .fans {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 46px;
  }

  .page-home .reel__card {
    flex: 0 0 31%;
  }

  .page-home .stats__num {
    font-size: 30px;
  }

  .page-home .chapter {
    margin-bottom: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .tile,
  .page-home .reel__card {
    transition: none;
  }

  .page-home .tile:hover,
  .page-home .reel__card:hover {
    transform: none;
  }
}
