.page-home {
  --home-cut: 22px;
  --home-rail-w: 172px;
  display: block;
  background: var(--ink);
  color: var(--ice-white);
}

.page-home section[id],
.page-home .home-hero[id] {
  scroll-margin-top: 108px;
}

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

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(64px, 13vw, 128px) 0 clamp(48px, 8vw, 92px);
  background:
    radial-gradient(120% 92% at 88% 0%, rgba(127, 212, 255, 0.20), transparent 62%),
    linear-gradient(180deg, var(--ink-soft), var(--ink) 72%);
}

.page-home .home-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-home .home-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 11, 24, 0.58), rgba(10, 22, 51, 0.94) 68%),
    repeating-linear-gradient(90deg, rgba(127, 212, 255, 0.07) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(0deg, rgba(127, 212, 255, 0.07) 0 1px, transparent 1px 48px);
}

.page-home .home-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.page-home .home-hero__cut {
  position: absolute;
  top: 0;
  right: 0;
  z-index: -1;
  width: min(52%, 560px);
  height: 62%;
  background: linear-gradient(202deg, rgba(43, 245, 208, 0.22), rgba(127, 212, 255, 0.06) 56%, transparent);
  clip-path: polygon(30% 0, 100% 0, 100% 76%, 0 100%);
  pointer-events: none;
}

.page-home .home-hero__inner {
  display: grid;
  gap: clamp(32px, 6vw, 52px);
  align-items: start;
}

.page-home .home-hero__crumb {
  margin: 0 0 14px;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
}

.page-home .home-hero__title {
  margin: 12px 0 18px;
  max-width: 18ch;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.05rem, 8vw, 4.1rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.page-home .home-hero__lede {
  margin: 0;
  max-width: 38rem;
  font-size: clamp(1rem, 2.6vw, 1.12rem);
  line-height: 1.8;
  color: var(--silver);
}

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

.page-home .home-hero__stats {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: grid;
  gap: 18px 24px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.page-home .home-hero__stats .stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-home .home-hero__stats .stat__value {
  font-family: var(--font-mono);
  font-size: clamp(1.7rem, 5vw, 2.3rem);
  line-height: 1;
  font-weight: 700;
}

.page-home .home-hero__stats .stat__label {
  font-size: 0.84rem;
  color: var(--silver);
}

.page-home .home-hero__unit {
  font-size: 0.55em;
  margin-left: 2px;
}

/* 今日焦点卡 */
.page-home .home-focus {
  padding: 24px 22px 26px;
  background: linear-gradient(155deg, rgba(24, 74, 122, 0.72), rgba(5, 11, 24, 0.86));
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
}

.page-home .home-focus__label {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--neon);
}

.page-home .home-focus__score {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 6px;
  margin: 10px 0 2px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2.6rem, 12vw, 5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ice-white);
  text-shadow: 0 0 42px rgba(43, 245, 208, 0.28);
}

.page-home .home-focus__sep {
  color: var(--neon);
}

.page-home .home-focus__meta {
  margin: 0 0 18px;
  font-size: 0.86rem;
  color: var(--silver);
}

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

.page-home .home-focus__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  transition: background var(--dur) var(--ease);
}

.page-home .home-focus__item:hover {
  background: rgba(127, 212, 255, 0.10);
}

.page-home .home-focus__time {
  font-size: 0.78rem;
  color: var(--ice);
  white-space: nowrap;
}

.page-home .home-focus__match {
  font-size: 0.9rem;
  min-width: 0;
}

.page-home .home-focus__link {
  display: inline-block;
  font-size: 0.9rem;
}

/* ---------- 主体骨架 ---------- */
.page-home .home-shell {
  display: grid;
  gap: 40px;
  padding-top: clamp(48px, 8vw, 84px);
  padding-bottom: clamp(48px, 8vw, 96px);
}

.page-home .home-rail {
  align-self: start;
}

.page-home .home-rail__title {
  margin: 0 0 10px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver);
}

.page-home .home-rail__list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0 0 4px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.page-home .home-rail__link {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 12px;
  white-space: nowrap;
  font-size: 0.88rem;
  color: var(--silver);
  text-decoration: none;
  border: 1px solid var(--line);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.page-home .home-rail__link .mono {
  font-size: 0.72rem;
  color: var(--ice);
}

.page-home .home-rail__link:hover {
  color: var(--ice-white);
  border-color: var(--line-strong);
  transform: translateX(4px);
}

.page-home .home-rail__link[data-active="true"] {
  color: var(--void);
  background: var(--neon);
  border-color: var(--neon);
}

.page-home .home-rail__link[data-active="true"] .mono {
  color: var(--void);
}

.page-home .home-rail__cta {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--amber);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.page-home .home-rail__cta:hover {
  border-bottom-color: var(--amber);
}

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

.page-home .home-body .section:first-child {
  padding-top: 0;
}

/* ---------- 分类栏目 ---------- */
.page-home .home-cats__grid {
  display: grid;
  gap: 26px;
}

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

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

.page-home .home-cats__item {
  padding: 22px 22px 24px;
  background: linear-gradient(150deg, rgba(24, 74, 122, 0.55), rgba(5, 11, 24, 0.72));
  border-left: 3px solid var(--ice-deep);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.page-home .home-cats__item:hover {
  border-left-color: var(--neon);
  background: linear-gradient(150deg, rgba(24, 74, 122, 0.78), rgba(5, 11, 24, 0.8));
}

.page-home .home-cats__no {
  margin: 0 0 8px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--ice);
}

.page-home .home-cats__name {
  margin: 0 0 8px;
  font-size: 1.14rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.page-home .home-cats__text {
  margin: 0 0 12px;
  font-size: 0.94rem;
  line-height: 1.75;
  color: var(--silver);
}

.page-home .home-cats__ex {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--mint);
}

.page-home .home-cats__foot {
  margin: 28px 0 0;
  font-size: 0.94rem;
  color: var(--silver);
}

/* ---------- 收藏计费 ---------- */
.page-home .bill {
  position: relative;
}

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

.page-home .bill__switch {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.page-home .bill__tab {
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(5, 11, 24, 0.6);
  border: 1px solid var(--line);
  color: var(--silver);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.page-home .bill__tab-name {
  font-size: 0.98rem;
}

.page-home .bill__tab-price {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--amber);
}

.page-home .bill__tab:hover {
  border-color: var(--line-strong);
  color: var(--ice-white);
}

.page-home #bill-single:checked ~ .bill__switch .bill__tab[for="bill-single"],
.page-home #bill-weekend:checked ~ .bill__switch .bill__tab[for="bill-weekend"] {
  background: rgba(43, 245, 208, 0.12);
  border-color: var(--neon);
  color: var(--ice-white);
}

.page-home .bill__input:focus-visible ~ .bill__switch .bill__tab {
  outline: 2px solid var(--neon);
  outline-offset: 2px;
}

.page-home .bill__panels {
  display: grid;
}

.page-home .bill__panel {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: clamp(22px, 4vw, 34px);
  background: linear-gradient(158deg, rgba(24, 74, 122, 0.6), rgba(5, 11, 24, 0.82));
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
}

.page-home .bill__panel--weekend {
  background: linear-gradient(158deg, rgba(255, 122, 47, 0.14), rgba(5, 11, 24, 0.86));
  border-color: rgba(255, 122, 47, 0.42);
}

.page-home #bill-single:checked ~ .bill__panels .bill__panel--weekend,
.page-home #bill-weekend:checked ~ .bill__panels .bill__panel--single {
  display: none;
}

.page-home .bill__kicker {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--ice);
}

.page-home .bill__price {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-mono);
}

.page-home .bill__num {
  font-size: clamp(2.6rem, 11vw, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--amber);
}

.page-home .bill__unit {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--silver);
}

.page-home .bill__desc {
  margin: 0;
  max-width: 34rem;
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--ice-white);
}

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

.page-home .bill__points li {
  position: relative;
  padding-left: 20px;
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--silver);
}

.page-home .bill__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 2px;
  background: var(--neon);
}

.page-home .bill__panel .btn {
  justify-self: start;
}

/* ---------- iOS 规格 ---------- */
.page-home .home-ios__grid {
  display: grid;
  gap: 28px;
  align-items: start;
}

.page-home .home-ios__lede {
  margin: 14px 0 20px;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--silver);
}

.page-home .home-ios__list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .home-ios__list li {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 12px;
  font-size: 0.94rem;
  line-height: 1.75;
  color: var(--ice-white);
}

.page-home .home-ios__dot {
  margin-top: 0.55em;
  width: 12px;
  height: 12px;
  background: var(--amber);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}

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

/* ---------- 赛季对照 ---------- */
.page-home .home-seasons__band {
  margin: 0 0 26px;
}

.page-home .home-seasons__chart {
  position: relative;
  margin: 0 0 26px;
  padding: 20px 18px 10px;
  background: linear-gradient(160deg, rgba(24, 74, 122, 0.42), rgba(5, 11, 24, 0.68));
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}

.page-home .home-seasons__chart-label {
  margin: 0 0 8px;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--ice);
}

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

.page-home .home-chart__grid line {
  stroke: rgba(127, 212, 255, 0.16);
  stroke-width: 1;
  stroke-dasharray: 4 6;
}

.page-home .home-chart__line {
  fill: none;
  stroke: var(--neon);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-home .home-chart__dot {
  fill: var(--ink);
  stroke: var(--neon);
  stroke-width: 3;
}

.page-home .home-chart__dot--last {
  fill: var(--neon);
  stroke: var(--ice-white);
}

.page-home .home-chart__axis text {
  fill: var(--silver);
  font-size: 13px;
  font-family: var(--font-mono);
}

.page-home .home-seasons__tablewrap {
  overflow-x: auto;
  border: 1px solid var(--line);
}

.page-home .home-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.page-home .home-table caption {
  padding: 16px 18px;
  text-align: left;
  font-size: 0.86rem;
  color: var(--silver);
  background: rgba(5, 11, 24, 0.72);
}

.page-home .home-table th,
.page-home .home-table td {
  padding: 14px 16px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}

.page-home .home-table thead th {
  background: var(--ice-deep);
  color: var(--ice-white);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.page-home .home-table tbody th {
  font-weight: 600;
  color: var(--ice-white);
}

.page-home .home-table tbody tr:nth-child(even) {
  background: rgba(5, 11, 24, 0.55);
}

.page-home .home-table tbody tr:hover {
  background: rgba(127, 212, 255, 0.13);
}

.page-home .home-table td.mono {
  font-family: var(--font-mono);
  color: var(--neon);
}

.page-home .home-seasons__foot {
  margin: 22px 0 0;
  font-size: 0.94rem;
  line-height: 1.8;
  color: var(--silver);
}

/* ---------- 四步路径 ---------- */
.page-home .home-steps {
  list-style: none;
  margin: 0;
  padding: 0 0 8px;
  display: grid;
  gap: 16px;
}

.page-home .home-steps__item {
  position: relative;
  padding: 22px 20px 24px;
  background: linear-gradient(160deg, rgba(24, 74, 122, 0.5), rgba(5, 11, 24, 0.74));
  border-top: 2px solid var(--ice-deep);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.page-home .home-steps__item:hover {
  border-top-color: var(--neon);
  transform: translateY(-4px);
}

.page-home .home-steps__no {
  display: block;
  margin-bottom: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ice);
}

.page-home .home-steps__name {
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 700;
}

.page-home .home-steps__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--silver);
}

.page-home .home-start__cta {
  margin-top: 28px;
  padding: clamp(22px, 4vw, 32px);
  display: grid;
  gap: 20px;
  background: linear-gradient(120deg, rgba(43, 245, 208, 0.14), rgba(24, 74, 122, 0.4) 60%, rgba(5, 11, 24, 0.8));
  border: 1px solid var(--line-strong);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
}

.page-home .home-start__cta-label {
  margin: 0 0 8px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--neon);
}

.page-home .home-start__cta-text {
  margin: 0;
  max-width: 34rem;
  font-size: 1rem;
  line-height: 1.8;
}

.page-home .home-start__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 响应式 ---------- */
@media (min-width: 720px) {
  .page-home .bill__switch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .page-home .home-start__cta {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

@media (min-width: 900px) {
  .page-home .home-hero__inner {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    gap: 48px;
    align-items: end;
  }

  .page-home .home-cats__grid {
    grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
    gap: 32px;
    align-items: start;
  }

  .page-home .home-ios__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 44px;
    align-items: center;
  }

  .page-home .home-ios__media {
    max-width: 420px;
    justify-self: end;
  }
}

@media (min-width: 1000px) {
  .page-home .home-shell {
    grid-template-columns: var(--home-rail-w) minmax(0, 1fr);
    gap: 60px;
  }

  .page-home .home-rail {
    position: sticky;
    top: 104px;
  }

  .page-home .home-rail__list {
    flex-direction: column;
    gap: 2px;
    overflow: visible;
    padding-bottom: 0;
  }

  .page-home .home-rail__link {
    border: 0;
    border-left: 2px solid transparent;
    padding: 9px 12px;
  }

  .page-home .home-rail__link:hover {
    border-left-color: var(--ice);
  }

  .page-home .home-rail__link[data-active="true"] {
    background: rgba(43, 245, 208, 0.1);
    border-left-color: var(--neon);
    color: var(--neon);
  }

  .page-home .home-rail__link[data-active="true"] .mono {
    color: var(--neon);
  }
}

@media (min-width: 1100px) {
  .page-home .home-cats__item:nth-child(2) {
    margin-left: 26px;
  }

  .page-home .home-cats__item:nth-child(3) {
    margin-left: 52px;
  }

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

  .page-home .home-steps__item:nth-child(even) {
    transform: translateY(28px);
  }

  .page-home .home-steps__item:nth-child(even):hover {
    transform: translateY(24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home * {
    transition: none !important;
    animation: none !important;
  }
}
