.page-home {
  --hm-line: rgba(232, 241, 238, 0.12);
  --hm-text: rgba(232, 241, 238, 0.78);
  background-image:
    repeating-linear-gradient(to right, rgba(155, 167, 162, 0.06) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(to bottom, rgba(155, 167, 162, 0.06) 0 1px, transparent 1px 72px);
}

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

.page-home .hm-hero {
  padding-top: clamp(1.5rem, 5vw, 3.75rem);
}

.page-home .hm-hero-grid {
  display: grid;
  gap: 32px;
}

.page-home .hm-ctx {
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-index);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver);
}

.page-home .hm-ctx::before {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  background: var(--cyan);
}

.page-home .hm-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.75rem, 11vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--white);
}

.page-home .hm-title-line {
  display: block;
}

.page-home .hm-title-line--accent {
  color: var(--cyan);
}

.page-home .hm-deck {
  margin: 22px 0 0;
  max-width: 44ch;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.75;
  color: var(--hm-text);
}

.page-home .hm-hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-home .hm-hero-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-home .hm-hero-media {
  margin: 0;
  background: var(--coal);
  border: 1px solid var(--line-strong);
  clip-path: polygon(0 34px, 34px 0, 100% 0, 100% 100%, 0 100%);
}

.page-home .hm-hero-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.06);
}

.page-home .hm-index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.page-home .hm-index-link {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 11px 14px;
  background: rgba(20, 24, 26, 0.92);
  color: var(--white);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: background 200ms var(--ease), padding-left 200ms var(--ease);
}

.page-home .hm-index-link:hover,
.page-home .hm-index-link:focus-visible {
  background: rgba(31, 224, 192, 0.12);
  padding-left: 18px;
}

.page-home .hm-index-num {
  flex: none;
  font-size: var(--fs-index);
  letter-spacing: 0.18em;
  color: var(--cyan);
}

/* ---------- 整宽数据带 ---------- */

.page-home .hm-band {
  margin-top: clamp(3rem, 7vw, 5.5rem);
  padding: clamp(2rem, 4vw, 2.75rem) 0;
  background:
    linear-gradient(100deg, rgba(31, 224, 192, 0.1), rgba(11, 31, 23, 0) 58%),
    var(--coal);
  border-top: 1px solid var(--line-cyan);
  border-bottom: 1px solid var(--line);
  clip-path: polygon(0 26px, 100% 0, 100% calc(100% - 26px), 0 100%);
}

.page-home .hm-band-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 16px;
}

.page-home .hm-band-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 14px;
  border-left: 1px solid var(--line-cyan);
}

.page-home .hm-band-num {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--cyan);
}

.page-home .hm-band-cell:nth-child(2) .hm-band-num,
.page-home .hm-band-cell:nth-child(4) .hm-band-num {
  color: var(--orange);
}

.page-home .hm-band-label {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--silver);
}

/* ---------- 章节通用 ---------- */

.page-home .hm-sec {
  padding: clamp(2.75rem, 7vw, 5rem) 0;
}

.page-home .hm-sec + .hm-sec {
  border-top: 1px solid var(--hm-line);
}

.page-home .hm-sec-head {
  max-width: 68ch;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.page-home .hm-sec-title {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-h2);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--white);
}

.page-home .hm-sec-intro {
  margin: 14px 0 0;
  max-width: 62ch;
  line-height: 1.75;
  color: rgba(232, 241, 238, 0.76);
}

.page-home .hm-inline-link {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid var(--line-cyan);
}

.page-home .hm-inline-link:hover,
.page-home .hm-inline-link:focus-visible {
  color: var(--orange);
  border-bottom-color: var(--line-orange);
}

/* ---------- 季票 ---------- */

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

.page-home .hm-ticket-media {
  margin: 0;
  background: var(--coal);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
}

.page-home .hm-ticket-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.08);
}

.page-home .hm-seat-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
}

.page-home .hm-seat {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 16px 18px;
  background: rgba(20, 24, 26, 0.9);
  border-left: 2px solid transparent;
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
}

.page-home .hm-seat:hover {
  border-left-color: var(--cyan);
  background: rgba(31, 224, 192, 0.07);
}

.page-home .hm-seat-id {
  padding-top: 4px;
  font-size: var(--fs-index);
  letter-spacing: 0.18em;
  color: var(--silver);
}

.page-home .hm-seat-name {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--white);
}

.page-home .hm-seat-desc {
  margin: 6px 0 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(232, 241, 238, 0.7);
}

.page-home .hm-window {
  border: 1px solid var(--line);
  background: rgba(20, 24, 26, 0.65);
}

.page-home .hm-table-cap {
  caption-side: top;
  text-align: left;
  padding: 14px 16px 6px;
  font-size: var(--fs-index);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver);
}

.page-home .data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.page-home .data-table th,
.page-home .data-table td {
  padding: 12px 16px;
  text-align: left;
  border-top: 1px solid var(--line);
  color: rgba(232, 241, 238, 0.85);
}

.page-home .data-table th {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white);
  background: rgba(11, 31, 23, 0.6);
}

.page-home .data-table tbody tr:hover td {
  background: rgba(31, 224, 192, 0.06);
}

.page-home .data-table td:last-child {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

/* ---------- 上海站 ---------- */

.page-home .hm-sh-grid {
  display: grid;
  gap: 16px;
}

.page-home .hm-sh-card {
  padding: 24px 22px 26px;
  background:
    linear-gradient(150deg, rgba(31, 224, 192, 0.07), rgba(20, 24, 26, 0) 62%),
    var(--coal);
  border: 1px solid var(--line);
  clip-path: polygon(0 16px, 16px 0, 100% 0, 100% 100%, 0 100%);
}

.page-home .hm-sh-card--wide {
  clip-path: polygon(0 28px, 28px 0, 100% 0, 100% 100%, 0 100%);
}

.page-home .hm-sh-title {
  margin: 0 0 10px;
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: -0.01em;
}

.page-home .hm-sh-text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: rgba(232, 241, 238, 0.78);
}

/* ---------- 赛程对照 ---------- */

.page-home .hm-fx-media {
  margin: 0 0 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
}

.page-home .hm-fx-img {
  display: block;
  width: 100%;
  height: clamp(180px, 28vw, 360px);
  object-fit: cover;
  opacity: 0.9;
  filter: saturate(0.75) contrast(1.05);
}

.page-home .hm-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(270px, 86%);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 14px;
  scrollbar-width: thin;
}

.page-home .hm-fx-card {
  scroll-snap-align: start;
  padding: 18px 18px 20px;
  background: var(--coal);
  border: 1px solid var(--line);
  border-top: 2px solid var(--orange);
  clip-path: polygon(0 14px, 14px 0, 100% 0, 100% 100%, 0 100%);
}

.page-home .hm-fx-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.page-home .hm-fx-round {
  font-size: var(--fs-index);
  letter-spacing: 0.18em;
  color: var(--cyan);
}

.page-home .hm-fx-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--hm-line);
}

.page-home .hm-fx-row:last-child {
  border-bottom: 0;
}

.page-home .hm-fx-team {
  font-weight: 700;
  color: var(--white);
}

.page-home .hm-fx-venue {
  grid-column: 1;
  font-size: 0.8125rem;
  color: var(--silver);
}

.page-home .hm-fx-time {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  font-size: 1.375rem;
  letter-spacing: 0.04em;
  color: var(--orange);
}

.page-home .hm-rail-cta {
  margin: 20px 0 0;
}

/* ---------- 名单动态 ---------- */

.page-home .hm-phase-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.page-home .hm-phase-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.page-home .hm-phase-tab {
  display: inline-block;
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  color: var(--silver);
  background: rgba(20, 24, 26, 0.7);
  border: 1px solid var(--line-strong);
  clip-path: polygon(0 8px, 8px 0, 100% 0, 100% 100%, 0 100%);
  cursor: pointer;
  transition: color 200ms var(--ease), background 200ms var(--ease), border-color 200ms var(--ease);
}

.page-home .hm-phase-tab:hover {
  color: var(--white);
  border-color: var(--cyan);
}

.page-home .hm-phase-input:focus-visible ~ .hm-phase-tabs .hm-phase-tab {
  box-shadow: inset 0 -2px 0 var(--cyan);
}

.page-home .hm-phase-input:nth-of-type(1):checked ~ .hm-phase-tabs .hm-phase-tab:nth-child(1),
.page-home .hm-phase-input:nth-of-type(2):checked ~ .hm-phase-tabs .hm-phase-tab:nth-child(2),
.page-home .hm-phase-input:nth-of-type(3):checked ~ .hm-phase-tabs .hm-phase-tab:nth-child(3) {
  color: var(--ink);
  background: var(--cyan);
  border-color: var(--cyan);
}

.page-home .hm-phase-panel {
  display: none;
}

.page-home .hm-phase-input:nth-of-type(1):checked ~ .hm-phase-panels .hm-phase-panel:nth-child(1),
.page-home .hm-phase-input:nth-of-type(2):checked ~ .hm-phase-panels .hm-phase-panel:nth-child(2),
.page-home .hm-phase-input:nth-of-type(3):checked ~ .hm-phase-panels .hm-phase-panel:nth-child(3) {
  display: block;
}

.page-home .hm-rec-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.page-home .hm-rec {
  display: grid;
  gap: 6px;
  padding: 15px 16px;
  background: rgba(20, 24, 26, 0.92);
}

.page-home .hm-rec-kind {
  font-family: var(--font-mono);
  font-size: var(--fs-index);
  letter-spacing: 0.16em;
  color: var(--red);
}

.page-home .hm-rec-text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.68;
  color: rgba(232, 241, 238, 0.85);
}

.page-home .hm-rec-meta {
  font-size: 0.8125rem;
  color: var(--silver);
}

/* ---------- 号码资料 ---------- */

.page-home .hm-num-grid {
  display: grid;
  gap: 18px;
}

.page-home .hm-num-visual {
  margin: 0;
  min-height: 240px;
}

.page-home .hm-num-img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  border: 1px solid var(--line);
  filter: saturate(0.9) contrast(1.05);
}

.page-home .hm-num-card {
  padding: 22px 20px;
  background: var(--cream);
  color: var(--umber);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}

.page-home .hm-num-id {
  display: block;
  font-size: var(--fs-index);
  letter-spacing: 0.18em;
  color: var(--red);
}

.page-home .hm-num-title {
  margin: 10px 0 8px;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--umber);
}

.page-home .hm-num-text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.72;
  color: #43301f;
}

/* ---------- 联系 ---------- */

.page-home .hm-contact-grid {
  display: grid;
  gap: 14px;
}

.page-home .hm-contact-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: rgba(20, 24, 26, 0.8);
  border: 1px solid var(--line);
  border-left: 2px solid var(--cyan);
}

.page-home .hm-contact-card:nth-child(2) {
  border-left-color: var(--orange);
}

.page-home .hm-contact-card:nth-child(3) {
  border-left-color: var(--red);
}

.page-home .hm-contact-label {
  font-size: var(--fs-index);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver);
}

.page-home .hm-contact-val {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--white);
  word-break: break-word;
}

.page-home .hm-contact-note {
  margin: 20px 0 0;
  max-width: 66ch;
  font-size: 0.875rem;
  line-height: 1.75;
  color: rgba(232, 241, 238, 0.62);
}

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

@media (min-width: 720px) {
  .page-home .hm-title-line:nth-child(3) {
    padding-left: 0.42em;
  }

  .page-home .hm-band-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 760px) {
  .page-home .hm-rec {
    grid-template-columns: 96px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
  }

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

@media (min-width: 900px) {
  .page-home .hm-hero-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 56px;
    align-items: start;
  }

  .page-home .hm-ticket-grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 40px;
    align-items: start;
  }

  .page-home .hm-sh-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .page-home .hm-sh-card--wide {
    grid-column: 1 / span 7;
  }

  .page-home .hm-sh-card:nth-child(2) {
    grid-column: 8 / span 5;
  }

  .page-home .hm-sh-card:nth-child(3) {
    grid-column: 3 / span 7;
  }

  .page-home .hm-rail {
    grid-auto-columns: minmax(300px, 30%);
  }

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

  .page-home .hm-num-visual {
    grid-column: 1 / span 5;
    grid-row: 1 / span 2;
  }

  .page-home .hm-num-card--a {
    grid-column: 6 / span 7;
    grid-row: 1;
  }

  .page-home .hm-num-card--b {
    grid-column: 6 / span 3;
    grid-row: 2;
  }

  .page-home .hm-num-card--c {
    grid-column: 9 / span 4;
    grid-row: 2;
  }
}

@media (min-width: 1200px) {
  .page-home .hm-rail {
    grid-auto-columns: minmax(300px, 24%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hm-index-link,
  .page-home .hm-seat,
  .page-home .hm-phase-tab {
    transition: none;
  }
}
