.page-home {
  --ph-line: rgba(241, 230, 210, 0.14);
  --ph-line-soft: rgba(241, 230, 210, 0.08);
  position: relative;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  overflow-x: hidden;
}

.page-home *,
.page-home *::before,
.page-home *::after {
  box-sizing: border-box;
}

.page-home h1,
.page-home h2,
.page-home h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.01em;
}

/* ---------- 首屏 ---------- */

.page-home .hero {
  position: relative;
  padding: clamp(24px, 4vw, 48px) 0 clamp(40px, 6vw, 76px);
  background:
    radial-gradient(120% 85% at 82% -12%, rgba(61, 245, 210, 0.13), transparent 62%),
    radial-gradient(90% 70% at 4% 0%, rgba(255, 158, 69, 0.1), transparent 58%),
    var(--ink);
}

.page-home .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(241, 230, 210, 0.045) 1px, transparent 1px);
  background-size: 100% 46px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
}

.page-home .hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "head"
    "index"
    "main"
    "margin";
  gap: clamp(22px, 3.4vw, 34px);
}

.page-home .hero__crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mist);
  margin-bottom: 16px;
}

.page-home .hero__crumb-home {
  color: var(--amber);
}

.page-home .hero__crumb-sep {
  color: rgba(147, 167, 158, 0.55);
}

.page-home .hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--cyan);
}

.page-home .hero__eyebrow::before {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(61, 245, 210, 0.8);
}

.page-home .hero__title {
  font-size: clamp(38px, 7.2vw, 82px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--cream);
}

.page-home .hero__title em {
  display: inline-block;
  font-style: normal;
  color: var(--amber);
}

.page-home .hero__lead {
  margin: 18px 0 0;
  max-width: 54ch;
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.85;
  color: rgba(241, 230, 210, 0.78);
}

/* 左侧竖排索引 */

.page-home .league-index {
  grid-area: index;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--ph-line);
  min-width: 0;
}

.page-home .league-index__title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.page-home .league-index__note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--mist);
}

.page-home .league-index__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.page-home .league-index__item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--ph-line-soft);
  position: relative;
  transition: padding-left 0.24s var(--ease), background 0.24s var(--ease);
}

.page-home .league-index__item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(61, 245, 210, 0.7);
  transition: width 0.28s var(--ease);
}

.page-home .league-index__item:hover {
  padding-left: 6px;
}

.page-home .league-index__item:hover::after {
  width: 100%;
}

.page-home .league-index__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ice);
  min-width: 54px;
  letter-spacing: 0.02em;
}

.page-home .league-index__name {
  font-size: 14px;
  color: rgba(241, 230, 210, 0.86);
}

.page-home .league-index__figure {
  margin: 4px 0 0;
  overflow: hidden;
  border: 1px solid var(--ph-line);
}

.page-home .league-index__figure img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  filter: saturate(0.8) brightness(0.82);
}

.page-home .league-index__cta {
  align-self: flex-start;
}

/* 首屏主区 */

.page-home .hero__main {
  grid-area: main;
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.6vw, 28px);
  min-width: 0;
}

.page-home .hero__figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--ph-line);
  background: var(--moss);
}

.page-home .hero__figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05) brightness(0.82);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 92%);
}

.page-home .hero__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, rgba(10, 17, 16, 0.86) 0%, rgba(10, 17, 16, 0.12) 46%, rgba(255, 158, 69, 0.14) 100%);
}

.page-home .hero__figure figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.05em;
  color: rgba(241, 230, 210, 0.84);
}

.page-home .hero__split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(18px, 2.6vw, 26px);
}

/* 时间轴 */

.page-home .timeline {
  position: relative;
  border-top: 1px solid var(--ph-line);
  padding-top: 14px;
  min-width: 0;
}

.page-home .timeline__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 12px;
}

.page-home .timeline__title {
  font-size: 20px;
  color: var(--cream);
}

.page-home .timeline__note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mist);
  letter-spacing: 0.05em;
}

.page-home .timeline__radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  clip-path: inset(50%);
}

.page-home .timeline__filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.page-home .timeline__btn {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--ph-line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--mist);
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-home .timeline__radio--weekend:checked ~ .timeline__filter .timeline__btn--weekend,
.page-home .timeline__radio--weekday:checked ~ .timeline__filter .timeline__btn--weekday {
  color: var(--ink);
  background: var(--cyan);
  border-color: var(--cyan);
}

.page-home .timeline__radio:focus-visible ~ .timeline__filter .timeline__btn {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.page-home .timeline__radio--weekday:checked ~ .match-list .is-weekend {
  display: none;
}

.page-home .match-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 16px;
  border-left: 1px solid var(--ph-line);
}

.page-home .match {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ph-line-soft);
}

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

.page-home .match::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--cyan);
  transform: translateY(-50%) rotate(45deg);
  box-shadow: 0 0 10px rgba(61, 245, 210, 0.55);
}

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

.page-home .match__time {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--ice);
}

.page-home .match__meta {
  display: block;
  margin-top: 3px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(241, 230, 210, 0.86);
}

.page-home .match__side {
  position: relative;
}

.page-home .match__fav {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  clip-path: inset(50%);
}

.page-home .match__fav-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid var(--ph-line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--mist);
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.page-home .match__fav-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  transform: rotate(45deg);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-home .match__fav:checked + .match__fav-label {
  color: var(--ink);
  background: var(--amber);
  border-color: var(--amber);
  box-shadow: 0 0 14px rgba(255, 158, 69, 0.45);
}

.page-home .match__fav:checked + .match__fav-label::before {
  background: var(--ink);
  border-color: var(--ink);
}

.page-home .match__fav:focus-visible + .match__fav-label {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* 回看卡片 */

.page-home .replay-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--ph-line);
  background: linear-gradient(180deg, rgba(18, 53, 42, 0.92), rgba(10, 17, 16, 0.94));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  min-width: 0;
}

.page-home .replay-card img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.86);
}

.page-home .replay-card__body {
  display: grid;
  gap: 10px;
  padding: 14px 16px 18px;
}

.page-home .replay-card__title {
  font-size: 17px;
  color: var(--cream);
}

.page-home .replay-card__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(241, 230, 210, 0.74);
}

.page-home .replay-card__cta {
  justify-self: start;
  margin-top: 4px;
}

/* 右侧窄注释 */

.page-home .hero__margin {
  grid-area: margin;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--ph-line);
  min-width: 0;
}

.page-home .hero__margin-note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: var(--mist);
}

.page-home .hero__margin-line {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.page-home .hero__stats {
  margin: 0;
  display: grid;
  gap: 12px;
}

.page-home .hero__stat {
  border-top: 1px solid var(--ph-line-soft);
  padding-top: 8px;
}

.page-home .hero__stat dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--mist);
}

.page-home .hero__stat dd {
  margin: 3px 0 0;
  font-family: var(--font-mono);
  font-size: 22px;
  line-height: 1.1;
  color: var(--ice);
}

/* ---------- 榜单 ---------- */

.page-home .board {
  padding: clamp(44px, 7vw, 88px) 0;
  background: linear-gradient(180deg, var(--ink) 0%, var(--moss) 58%, var(--ink) 100%);
}

.page-home .board__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 52px);
}

.page-home .board__eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ice);
}

.page-home .board__title {
  font-size: clamp(26px, 4.2vw, 46px);
  color: var(--cream);
  max-width: 16ch;
}

.page-home .board__lead {
  margin: 16px 0 0;
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.9;
  color: rgba(241, 230, 210, 0.76);
}

.page-home .board__cta {
  margin-top: 22px;
}

.page-home .board__note {
  margin: 12px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.8;
  color: var(--mist);
}

.page-home .board__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  align-content: start;
}

.page-home .board__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 14px;
  padding: 16px 0;
  border-top: 1px solid var(--ph-line);
}

.page-home .board__row:last-child {
  border-bottom: 1px solid var(--ph-line);
}

.page-home .board__key {
  font-size: 16px;
  font-weight: 700;
  color: var(--cream);
}

.page-home .board__val {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ice);
  align-self: center;
}

.page-home .board__desc {
  margin: 0;
  grid-column: 1 / -1;
  font-size: 13px;
  line-height: 1.75;
  color: rgba(241, 230, 210, 0.7);
}

.page-home .board__bar {
  display: block;
  grid-column: 1 / -1;
  height: 2px;
  margin-top: 4px;
  background: rgba(140, 217, 255, 0.14);
}

.page-home .board__bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--ice), var(--cyan));
}

.page-home .bar-a {
  width: 92%;
}

.page-home .bar-b {
  width: 74%;
}

.page-home .bar-c {
  width: 58%;
}

/* ---------- 内容中心 ---------- */

.page-home .center {
  padding: clamp(44px, 7vw, 88px) 0;
  background: var(--cream);
  color: var(--coffee);
}

.page-home .center__eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--rust);
}

.page-home .center__title {
  font-size: clamp(27px, 4.4vw, 46px);
  color: var(--coffee);
  max-width: 18ch;
}

.page-home .center__lead {
  margin: 16px 0 0;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.85;
  color: rgba(29, 23, 18, 0.78);
}

.page-home .center__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 44px);
  margin-top: clamp(26px, 4vw, 44px);
}

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

.page-home .topic {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 3px 14px;
  padding: 16px 0;
  border-top: 1px solid rgba(29, 23, 18, 0.16);
}

.page-home .topic:last-child {
  border-bottom: 1px solid rgba(29, 23, 18, 0.16);
}

.page-home .topic__num {
  grid-row: 1 / 3;
  padding-top: 5px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--rust);
}

.page-home .topic__name {
  font-size: 20px;
  color: var(--coffee);
}

.page-home .topic__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(29, 23, 18, 0.72);
}

.page-home .center__panel {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(29, 23, 18, 0.2);
  background: rgba(255, 255, 255, 0.42);
  min-width: 0;
}

.page-home .center__panel img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.95);
}

.page-home .center__panel-body {
  display: grid;
  gap: 10px;
  padding: 16px 18px 20px;
}

.page-home .center__panel-title {
  font-size: 18px;
  color: var(--coffee);
}

.page-home .center__panel-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(29, 23, 18, 0.76);
}

.page-home .center__panel-count {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(29, 23, 18, 0.66);
}

.page-home .center__panel-count strong {
  font-size: 17px;
  color: var(--rust);
}

.page-home .center__panel .btn--ghost {
  justify-self: start;
  margin-top: 4px;
  border-color: rgba(29, 23, 18, 0.4);
  color: var(--coffee);
}

/* ---------- 本地服务 ---------- */

.page-home .local {
  padding: clamp(42px, 6vw, 80px) 0;
  background: var(--ink);
  border-top: 1px solid var(--ph-line);
}

.page-home .local__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 52px);
}

.page-home .local__eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.page-home .local__title {
  font-size: clamp(25px, 3.8vw, 40px);
  color: var(--cream);
  max-width: 20ch;
}

.page-home .local__lead {
  margin: 16px 0 0;
  max-width: 58ch;
  font-size: 15px;
  line-height: 1.9;
  color: rgba(241, 230, 210, 0.76);
}

.page-home .local__link {
  display: inline-block;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(61, 245, 210, 0.45);
  padding-bottom: 3px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-home .local__link:hover {
  color: var(--cream);
  border-color: var(--cream);
}

.page-home .local__contact {
  border: 1px solid var(--ph-line);
  background: rgba(18, 53, 42, 0.5);
  padding: 20px 20px 22px;
  min-width: 0;
}

.page-home .local__contact-title {
  font-size: 16px;
  color: var(--cream);
  margin-bottom: 14px;
}

.page-home .local__list {
  margin: 0;
  display: grid;
  gap: 0;
}

.page-home .local__row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--ph-line-soft);
}

.page-home .local__row dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--mist);
  align-self: center;
}

.page-home .local__row dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--cream);
  word-break: break-word;
}

.page-home .local__note {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.8;
  color: rgba(241, 230, 210, 0.62);
}

.page-home .local__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 16px 0 0;
}

.page-home .local__links a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--amber);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 158, 69, 0.42);
  padding-bottom: 2px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-home .local__links a:hover {
  color: var(--cream);
  border-color: var(--cream);
}

/* ---------- 响应式 ---------- */

@media (min-width: 760px) {
  .page-home .hero__split {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: start;
  }
}

@media (min-width: 900px) {
  .page-home .board__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    align-items: start;
  }

  .page-home .center__grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    align-items: start;
  }

  .page-home .local__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: start;
  }
}

@media (min-width: 1000px) {
  .page-home .hero__grid {
    grid-template-columns: minmax(180px, 1fr) minmax(0, 2.8fr) minmax(140px, 0.7fr);
    grid-template-areas:
      "head  head  margin"
      "index main  margin";
    column-gap: clamp(20px, 3vw, 40px);
    row-gap: clamp(24px, 3vw, 38px);
  }

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

  .page-home .league-index {
    border-top: 0;
    border-left: 1px solid var(--ph-line);
    padding-top: 0;
    padding-left: clamp(14px, 2vw, 22px);
  }

  .page-home .hero__margin {
    border-top: 0;
    border-left: 1px solid var(--ph-line-soft);
    padding-top: 0;
    padding-left: clamp(12px, 1.6vw, 18px);
  }

  .page-home .hero__main {
    padding-top: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .league-index__item,
  .page-home .league-index__item::after,
  .page-home .match__fav-label,
  .page-home .match__fav-label::before,
  .page-home .timeline__btn,
  .page-home .local__link,
  .page-home .local__links a {
    transition: none;
  }
}
