.page-home {
  --home-line: rgba(201, 210, 220, .14);
  background: var(--ink);
  color: var(--white);
}

.page-home .mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}

.page-home .lead {
  max-width: 34em;
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(244, 247, 250, .78);
}

.page-home .section {
  padding-block: clamp(46px, 7vw, 88px);
}

.page-home .section-head h2 {
  margin: 10px 0 0;
  font-size: clamp(1.55rem, 4.4vw, 2.6rem);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -.015em;
  color: var(--white);
}

.page-home .section-cta {
  margin-top: clamp(22px, 4vw, 32px);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-home .figcap {
  margin: 10px 0 0;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--steel);
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 6vw, 60px) 0 clamp(26px, 5vw, 52px);
  background: linear-gradient(150deg, #0B0D10 0%, #10151B 52%, #171B21 100%);
}

.page-home .hero::before {
  content: "";
  position: absolute;
  right: -22%;
  top: -14%;
  width: min(760px, 110vw);
  height: min(760px, 110vw);
  background: linear-gradient(140deg, var(--red) 0%, var(--red-deep) 55%, rgba(0, 59, 70, 0) 100%);
  clip-path: polygon(34% 0, 100% 14%, 100% 100%, 0 74%);
  opacity: .72;
  pointer-events: none;
}

.page-home .hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent 65%);
  opacity: .5;
}

.page-home .hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(24px, 5vw, 44px);
  align-items: center;
}

.page-home .hero__context {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.page-home .hero__crumb {
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--gray);
}

.page-home .hero__title {
  margin: 16px 0 0;
  font-size: clamp(2.35rem, 10vw, 5.2rem);
  font-weight: 900;
  line-height: .94;
  letter-spacing: -.02em;
  color: var(--white);
}

.page-home .hero__title-line {
  display: block;
  margin-top: .06em;
  color: var(--cyan);
}

.page-home .hero__lede {
  margin: 18px 0 0;
  max-width: 30em;
  font-size: clamp(16px, 2.2vw, 18px);
  line-height: 1.75;
  color: rgba(244, 247, 250, .82);
}

.page-home .hero__note {
  margin: 16px 0 0;
  padding-left: 12px;
  border-left: 2px solid var(--orange);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: .03em;
  color: var(--gray);
}

.page-home .hero__actions {
  margin-top: 24px;
  gap: 12px;
}

.page-home .hero__visual {
  position: relative;
  margin: 0;
}

.page-home .hero__visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  clip-path: polygon(0 4%, 100% 0, 100% 94%, 0 100%);
}

.page-home .hero__cap {
  position: absolute;
  left: 0;
  bottom: 7%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-left: 3px solid var(--orange);
  border-radius: 2px;
  background: rgba(11, 13, 16, .88);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--white);
}

.page-home .hero__cap .mono {
  color: var(--orange);
  font-weight: 700;
}

.page-home .scoreboard {
  list-style: none;
  margin: clamp(26px, 5vw, 44px) 0 0;
  padding: 18px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 12px;
  border-top: 1px solid var(--home-line);
}

.page-home .scoreboard__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.page-home .scoreboard__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 700;
  line-height: 1;
  color: var(--white);
}

.page-home .scoreboard__unit {
  margin-left: 2px;
  font-size: .5em;
  color: var(--cyan);
}

.page-home .scoreboard__label {
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--gray);
}

/* ---------- 路径对照 ---------- */
.page-home .route {
  background: var(--char);
}

.page-home .route__split {
  margin-top: clamp(24px, 5vw, 40px);
  display: grid;
  gap: 16px;
}

.page-home .route__col {
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--home-line);
  border-radius: 4px;
  background: linear-gradient(165deg, rgba(23, 27, 33, .92), rgba(11, 13, 16, .92));
}

.page-home .route__col--old {
  border-left: 3px solid var(--steel);
}

.page-home .route__col--new {
  border-left: 3px solid var(--cyan);
  background: linear-gradient(165deg, rgba(0, 59, 70, .55), rgba(11, 13, 16, .94));
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, .16);
}

.page-home .route__col-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--white);
}

.page-home .route__col-title .mono {
  font-size: 12px;
  color: var(--orange);
}

.page-home .route__steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-home .route__steps li {
  counter-increment: step;
  position: relative;
  padding-left: 38px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(244, 247, 250, .84);
}

.page-home .route__steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  padding: 1px 5px;
  border: 1px solid rgba(0, 229, 255, .42);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--cyan);
}

.page-home .route__col--old .route__steps li::before {
  border-color: rgba(92, 107, 122, .55);
  color: var(--steel);
}

.page-home .route__tip {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--gray);
}

.page-home .route__arrow {
  position: relative;
  justify-self: center;
  width: 2px;
  height: 44px;
  background: linear-gradient(var(--cyan), rgba(0, 229, 255, .18));
}

.page-home .route__arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--cyan);
}

.page-home .route__figure {
  margin: clamp(24px, 4vw, 36px) 0 0;
}

.page-home .route__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--home-line);
  border-radius: 4px;
}

/* ---------- 赛历 ---------- */
.page-home .calendar {
  background: var(--ink);
}

.page-home .events-rail,
.page-home .topics-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  margin-top: clamp(22px, 4vw, 32px);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.page-home .events-rail__card {
  flex: 0 0 min(255px, 80%);
  scroll-snap-align: start;
  padding: 18px 16px;
  border: 1px solid var(--home-line);
  border-top: 2px solid var(--red);
  border-radius: 4px;
  background: linear-gradient(160deg, #1A2028, #0F1318);
}

.page-home .events-rail__name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--white);
}

.page-home .events-rail__desc {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--gray);
}

.page-home .events-rail__meta {
  margin: 12px 0 0;
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--cyan);
}

.page-home .calendar__meters {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.page-home .meter {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 4px;
  border-left: 3px solid var(--red);
  background: var(--white);
  color: #171B21;
}

.page-home .meter__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--red);
}

.page-home .meter__label {
  font-size: 13px;
  line-height: 1.5;
  color: #3A444F;
}

.page-home .calendar__figure {
  margin: clamp(22px, 4vw, 32px) 0 0;
}

.page-home .calendar__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 4px;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 6% 100%);
}

/* ---------- 兼容快查 ---------- */
.page-home .compat {
  background: var(--char);
}

.page-home .compat__scroll {
  margin-top: clamp(22px, 4vw, 32px);
  overflow-x: auto;
  border-radius: 4px;
}

.page-home .compat-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: var(--white);
  color: #171B21;
  font-size: 14px;
  text-align: left;
}

.page-home .compat-table th {
  padding: 12px;
  background: #0B0D10;
  border-bottom: 2px solid var(--red);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  white-space: nowrap;
}

.page-home .compat-table td {
  padding: 14px 12px;
  border-top: 1px solid rgba(23, 27, 33, .1);
  line-height: 1.55;
  vertical-align: top;
}

.page-home .compat-table tbody tr:nth-child(even) td {
  background: #EEF2F6;
}

.page-home .compat-table .mono {
  color: var(--red-deep);
  font-size: 13px;
}

.page-home .ok {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 2px;
  background: rgba(200, 16, 46, .1);
  color: var(--red-deep);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.page-home .ok--muted {
  background: rgba(92, 107, 122, .16);
  color: #3A444F;
}

.page-home .compat__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.page-home .compat__note {
  margin: 0;
  max-width: 44em;
  font-size: 13px;
  line-height: 1.7;
  color: var(--gray);
}

/* ---------- 专题板 ---------- */
.page-home .topics {
  background: var(--ink);
}

.page-home .topic-card {
  flex: 0 0 min(280px, 84%);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 18px;
  border: 1px solid var(--home-line);
  border-radius: 4px;
  background: linear-gradient(155deg, rgba(0, 59, 70, .42), rgba(23, 27, 33, .92));
}

.page-home .topic-card__kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--orange);
}

.page-home .topic-card__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
}

.page-home .topic-card__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--gray);
}

.page-home .topic-card__meta {
  margin: auto 0 0;
  padding-top: 6px;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--steel);
}

.page-home .topics__figure {
  margin: clamp(22px, 4vw, 30px) 0 0;
}

.page-home .topics__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--home-line);
}

/* ---------- 下一步 ---------- */
.page-home .next {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, #6E0818 0%, var(--red) 46%, #3A030E 100%);
}

.page-home .next::before {
  content: "";
  position: absolute;
  left: -10%;
  top: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, rgba(11, 13, 16, .45), transparent 70%);
  clip-path: polygon(0 0, 100% 0, 62% 100%, 0 100%);
  pointer-events: none;
}

.page-home .next__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(20px, 4vw, 32px);
}

.page-home .next .lead {
  color: rgba(255, 253, 247, .86);
}

.page-home .next__links {
  display: grid;
  gap: 10px;
}

.page-home .next__link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 253, 247, .34);
  border-radius: 4px;
  background: rgba(11, 13, 16, .34);
  color: var(--white);
  text-decoration: none;
  transition: background .18s var(--ease), border-color .18s var(--ease);
}

.page-home .next__link:hover,
.page-home .next__link:focus-visible {
  background: rgba(11, 13, 16, .62);
  border-color: var(--white);
}

.page-home .next__link-name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.page-home .next__link-desc {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 253, 247, .78);
}

.page-home .next__console {
  padding: 16px 18px;
  border: 1px solid rgba(255, 253, 247, .28);
  border-radius: 4px;
  background: rgba(11, 13, 16, .44);
}

.page-home .next__hint {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 253, 247, .8);
}

/* ---------- 响应式 ---------- */
@media (min-width: 720px) {
  .page-home .lead {
    font-size: 17px;
  }

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

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

  .page-home .events-rail__card,
  .page-home .topic-card {
    flex: 0 0 min(280px, 46%);
  }
}

@media (min-width: 840px) {
  .page-home .hero__grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  }

  .page-home .route__split {
    grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
    align-items: center;
    gap: 24px;
  }

  .page-home .route__arrow {
    width: 56px;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), rgba(0, 229, 255, .18));
  }

  .page-home .route__arrow::after {
    left: auto;
    right: -4px;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    border-color: transparent;
    border-left-color: var(--cyan);
  }

  .page-home .events-rail__card,
  .page-home .topic-card {
    flex: 0 0 268px;
  }
}

@media (min-width: 900px) {
  .page-home .next__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "copy links"
      "copy console";
    align-items: start;
    column-gap: clamp(24px, 4vw, 48px);
  }

  .page-home .next__copy {
    grid-area: copy;
  }

  .page-home .next__links {
    grid-area: links;
  }

  .page-home .next__console {
    grid-area: console;
  }
}

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

  .page-home .events-rail,
  .page-home .topics-rail {
    scroll-behavior: auto;
  }
}
