.page-home {
  --home-pad: 16px;
  --home-radius: 24px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
}

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

.page-home a {
  color: inherit;
}

.page-home h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
}

.page-home h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.page-home .section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-home .section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
}

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

.page-home [data-reveal] {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.page-home [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* 首屏双轴布局 */
.page-home .hero {
  position: relative;
  padding: 16px 0 0;
  background:
    radial-gradient(circle at 86% 8%, rgba(255, 90, 31, 0.18), transparent 34%),
    var(--ink);
}

.page-home .hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  width: min(var(--shell), calc(100% - 32px));
  margin-inline: auto;
}

.page-home .venue-rail {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 22px 20px;
  border-radius: var(--home-radius) var(--home-radius) 0 0;
  background: var(--ink-2);
}

.page-home .venue-rail::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% 30%;
  height: 160px;
  background: radial-gradient(ellipse at center, rgba(255, 90, 31, 0.18), transparent 65%);
  pointer-events: none;
}

.page-home .venue-rail__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.17;
  filter: saturate(0.65);
}

.page-home .venue-rail__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-home .venue-rail__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
}

.page-home .venue-rail p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.page-home .venue-item {
  border-top: 1px solid var(--line);
}

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

.page-home .venue-item__link {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: center;
  padding: 12px 0;
  color: var(--white);
  text-decoration: none;
  transition: background 0.15s ease;
}

.page-home .venue-item__link:hover {
  background: rgba(255, 255, 255, 0.03);
}

.page-home .venue-item__idx {
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.page-home .venue-item__name {
  font-size: 0.95rem;
  font-weight: 600;
}

.page-home .venue-item__status {
  font-size: 0.72rem;
}

.page-home .venue-item__note {
  grid-column: 2 / -1;
  max-height: none;
  overflow: visible;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
  opacity: 1;
  transform: none;
  transition: max-height 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.page-home .hero__stage {
  position: relative;
  overflow: hidden;
  padding: 22px 20px 0;
  border-radius: 0 0 var(--home-radius) var(--home-radius);
  background: var(--ink);
}

.page-home .hero__stage::before {
  content: "";
  position: absolute;
  top: 26%;
  right: -18%;
  left: 52%;
  height: 1px;
  background: var(--orange);
  opacity: 0.48;
  transform: rotate(-18deg);
  pointer-events: none;
}

.page-home .hero__meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.page-home .hero__meta-left {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.page-home .hero__kicker {
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-home .hero__title {
  position: relative;
  z-index: 1;
  max-width: 13ch;
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 4.8rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.page-home .hero__lede {
  position: relative;
  z-index: 1;
  max-width: 58ch;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 1rem;
}

.page-home .hero__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}

.page-home .hero__textlink {
  padding-bottom: 2px;
  color: var(--amber);
  border-bottom: 1px solid currentColor;
  font-size: 0.9rem;
  text-decoration: none;
}

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

.page-home .league-chips {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.page-home .chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.page-home .chip:hover,
.page-home .chip:focus-visible {
  color: var(--white);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
}

.page-home .chip.is-active {
  color: var(--white);
  border-color: var(--orange);
  background: var(--orange);
}

.page-home .hero__banner {
  position: relative;
  z-index: 1;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.page-home .hero__banner img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.page-home .score-strip {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  border-radius: 16px 16px 0 0;
  background: rgba(13, 42, 63, 0.55);
}

.page-home .score-strip__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: var(--ink-2);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

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

.page-home .score-strip__item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: center;
  padding: 11px 14px;
  border-top: 1px solid var(--line);
}

.page-home .score-time {
  grid-row: 1 / span 2;
  align-self: start;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 1rem;
}

.page-home .score-league {
  grid-column: 2;
  grid-row: 1;
  font-size: 0.88rem;
  font-weight: 600;
}

.page-home .score-venue {
  grid-column: 2 / 4;
  grid-row: 2;
  color: var(--muted);
  font-size: 0.8rem;
}

.page-home .score-strip__item .status {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  font-size: 0.72rem;
}

/* 多联赛对齐区 */
.page-home .leagues {
  padding: 56px 0;
  background: var(--paper);
  color: var(--brown);
}

.page-home .leagues__inner {
  display: grid;
  gap: 28px;
}

.page-home .leagues__top {
  display: grid;
  gap: 24px;
}

.page-home .leagues__intro {
  max-width: 72ch;
}

.page-home .leagues__intro p {
  margin: 0;
  color: rgba(27, 21, 16, 0.78);
}

.page-home .leagues .section-label {
  color: var(--orange);
}

.page-home .leagues__media {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line-dark);
  border-radius: var(--home-radius);
}

.page-home .leagues__media img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  filter: saturate(0.7) contrast(0.95);
}

.page-home .leagues__media figcaption {
  padding: 8px 4px 0;
  color: rgba(27, 21, 16, 0.62);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.page-home .leagues__table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.page-home .league-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.page-home .league-table th {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line-dark);
  color: rgba(27, 21, 16, 0.58);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.page-home .league-table td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line-dark);
  vertical-align: middle;
}

.page-home .league-table tr:last-child th,
.page-home .league-table tr:last-child td {
  border-bottom: 0;
}

.page-home .league-table th:first-child,
.page-home .league-table td:first-child {
  padding-left: 4px;
}

.page-home .league-table tbody th {
  color: var(--brown);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.page-home .league-table td:nth-child(2) {
  font-family: var(--font-mono);
  font-weight: 600;
}

.page-home .league-table .status {
  font-size: 0.72rem;
}

.page-home .heat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.page-home .heat::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
}

.page-home .heat--high::before {
  background: var(--orange);
}

.page-home .heat--mid::before {
  background: var(--amber);
}

.page-home .table-note {
  margin: 0;
  color: rgba(27, 21, 16, 0.56);
  font-size: 0.78rem;
}

/* 更新记录时间轴 */
.page-home .updates {
  padding: 56px 0;
  background: var(--ink);
}

.page-home .updates__inner {
  display: grid;
  gap: 28px;
}

.page-home .updates__intro {
  max-width: 70ch;
}

.page-home .updates__intro p {
  margin: 0 0 18px;
  color: var(--muted);
}

.page-home .updates__media {
  max-width: 320px;
  overflow: hidden;
  margin: 20px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--home-radius);
}

.page-home .updates__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  opacity: 0.85;
}

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

.page-home .timeline__item {
  position: relative;
  padding: 0 0 22px 22px;
}

.page-home .timeline__item:last-child {
  padding-bottom: 0;
}

.page-home .timeline__marker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.page-home .timeline__dot {
  flex: none;
  width: 11px;
  height: 11px;
  margin-left: -28px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(242, 181, 68, 0.14);
}

.page-home .timeline__time {
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.page-home .timeline__body {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 0 14px 14px 14px;
  background: rgba(13, 42, 63, 0.55);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.page-home .timeline__item:hover .timeline__body,
.page-home .timeline__item:focus-within .timeline__body {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.page-home .timeline__body .tag {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--brown);
}

.page-home .timeline__body h3 {
  margin: 8px 0 6px;
  color: var(--white);
  font-size: 1.15rem;
  line-height: 1.1;
}

.page-home .timeline__body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.page-home .timeline__note {
  max-height: none;
  overflow: visible;
  margin-top: 8px;
  color: var(--amber) !important;
  font-size: 0.78rem;
  opacity: 1;
  transition: max-height 0.2s ease, opacity 0.2s ease, margin 0.2s ease;
}

/* 稳定版与会员中心 */
.page-home .stable {
  padding: 56px 0;
  background: var(--ink-2);
}

.page-home .stable__band {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--home-radius);
}

.page-home .stable__version {
  padding: 28px 22px;
  background: var(--ink-3);
}

.page-home .stable__version h2 {
  max-width: 15ch;
}

.page-home .stable__version p {
  margin: 0;
  color: var(--muted);
}

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

.page-home .stable__stat {
  display: flex;
  flex-direction: column;
  min-width: 120px;
  padding-left: 10px;
  border-left: 2px solid var(--orange);
}

.page-home .stat-num {
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 2rem;
  line-height: 1;
}

.page-home .stat-label {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

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

.page-home .stable__member {
  padding: 28px 22px;
  background: var(--paper);
  color: var(--brown);
}

.page-home .member-chip {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}

.page-home .stable__member h3 {
  margin: 14px 0 12px;
  color: var(--brown);
  font-size: 1.6rem;
  line-height: 1.05;
}

.page-home .member-list {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-dark);
}

.page-home .member-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 0.88rem;
}

.page-home .member-list strong {
  font-family: var(--font-mono);
  font-weight: 600;
  text-align: right;
}

.page-home .stable__member p {
  margin: 0;
  color: rgba(27, 21, 16, 0.66);
  font-size: 0.82rem;
}

/* 三步路径 */
.page-home .path {
  padding: 56px 0;
  background: var(--ink);
}

.page-home .path__head {
  max-width: 68ch;
}

.page-home .path__head p {
  margin: 0;
  color: var(--muted);
}

.page-home .path__steps {
  display: grid;
  gap: 0;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.page-home .path__step {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 4px 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.page-home .path__num {
  grid-row: span 3;
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 1.3rem;
}

.page-home .path__step h3 {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1;
}

.page-home .path__step p {
  margin: 4px 0 6px;
  color: var(--muted);
  font-size: 0.88rem;
}

.page-home .path__step a {
  justify-self: start;
  color: var(--amber);
  border-bottom: 1px solid currentColor;
  font-size: 0.82rem;
  text-decoration: none;
}

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

/* 地域与服务条 */
.page-home .service {
  position: relative;
  overflow: hidden;
  padding: 48px 0;
  background: var(--amber);
  color: var(--brown);
}

.page-home .service__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
}

.page-home .service .section-label {
  color: var(--brown);
}

.page-home .service h2 {
  max-width: 14ch;
  color: var(--brown);
}

.page-home .service__text p {
  max-width: 62ch;
  margin: 0 0 12px;
  color: rgba(27, 21, 16, 0.78);
}

.page-home .service__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 20px;
  border: 1px solid rgba(27, 21, 16, 0.18);
  border-radius: var(--home-radius);
  background: rgba(244, 235, 221, 0.55);
}

.page-home .service__loc {
  color: rgba(27, 21, 16, 0.58);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.page-home .service__label {
  margin-top: 6px;
  color: rgba(27, 21, 16, 0.58);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-home .service__mail,
.page-home .service__phone {
  color: var(--brown);
  font-family: var(--font-mono);
  font-size: 1.05rem;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.page-home .service__mail:hover,
.page-home .service__phone:hover {
  color: var(--orange);
}

.page-home .service__contact .btn {
  margin-top: 10px;
  border-color: var(--brown);
  background: var(--brown);
  color: var(--paper);
}

.page-home .service__mark {
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 220px;
  height: 220px;
  opacity: 0.22;
  pointer-events: none;
}

.page-home .to-top-wrap {
  display: flex;
  justify-content: flex-end;
  padding-top: 20px;
  padding-bottom: 20px;
}

.page-home .to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-decoration: none;
}

@media (min-width: 720px) {
  .page-home .hero__grid {
    width: min(var(--shell), calc(100% - 48px));
  }

  .page-home .hero__stage {
    padding: 32px 32px 0;
  }

  .page-home .score-strip__item {
    grid-template-columns: 70px minmax(0, 1fr) auto;
  }

  .page-home .stable__band {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .page-home .stable__version,
  .page-home .stable__member {
    padding: 36px 32px;
  }

  .page-home .path__steps {
    grid-template-columns: repeat(3, 1fr);
    border-top: 0;
  }

  .page-home .path__step {
    grid-template-columns: 1fr;
    padding: 22px 20px 22px 0;
    border-top: 1px solid var(--line-strong);
    border-bottom: 0;
  }

  .page-home .path__num {
    grid-row: auto;
    margin-bottom: 10px;
  }

  .page-home .service__inner {
    grid-template-columns: 1.3fr 0.7fr;
    align-items: end;
  }
}

@media (min-width: 960px) {
  .page-home .hero {
    padding-top: 24px;
  }

  .page-home .hero__grid {
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: stretch;
  }

  .page-home .venue-rail {
    display: flex;
    padding: 28px 22px;
    border-radius: var(--home-radius) 0 0 var(--home-radius);
  }

  .page-home .venue-rail__content {
    width: 100%;
  }

  .page-home .venue-item__note {
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
    opacity: 0;
    transform: translateY(-2px);
  }

  .page-home .venue-item:hover .venue-item__note,
  .page-home .venue-item:focus-within .venue-item__note {
    max-height: 60px;
    opacity: 1;
    transform: none;
  }

  .page-home .hero__stage {
    min-height: 100%;
    padding: 32px 36px 0;
    border-radius: 0 var(--home-radius) var(--home-radius) 0;
  }

  .page-home .hero__title {
    max-width: 12ch;
    font-size: clamp(3.2rem, 5.6vw, 5.3rem);
  }

  .page-home .leagues__top {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }

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

  .page-home .updates__inner {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 48px;
    align-items: start;
  }

  .page-home .updates__intro {
    position: sticky;
    top: 24px;
  }

  .page-home .updates__media {
    max-width: 280px;
  }

  .page-home .timeline__note {
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
    opacity: 0;
  }

  .page-home .timeline__item:hover .timeline__note,
  .page-home .timeline__item:focus-within .timeline__note {
    max-height: 70px;
    margin-top: 8px;
    opacity: 1;
  }

  .page-home .service__inner {
    grid-template-columns: 1.4fr 0.6fr;
    gap: 48px;
  }

  .page-home .to-top-wrap {
    padding-top: 24px;
    padding-bottom: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
