.page-home {
  overflow-x: clip;
  --home-edge: clamp(14px, 3.2vw, 32px);
  --home-line: rgba(224, 169, 60, 0.34);
  --home-line-soft: rgba(224, 169, 60, 0.18);
  --home-veil: rgba(246, 240, 226, 0.74);
}

/* ---------- 首屏框景 ---------- */
.page-home .home-stage-band {
  padding-top: clamp(16px, 3.4vw, 34px);
}

.page-home .home-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 4px;
  background: linear-gradient(164deg, #0B2540 0%, #061726 60%, #0A3140 100%);
  padding: clamp(24px, 6vw, 56px) clamp(18px, 5vw, 54px) clamp(22px, 4.6vw, 48px);
}

.page-home .home-stage__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  max-width: none;
}

.page-home .home-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(115% 88% at 10% 4%, rgba(43, 163, 148, 0.3), transparent 58%),
    linear-gradient(178deg, rgba(6, 23, 38, 0.6) 0%, rgba(6, 23, 38, 0.42) 46%, rgba(6, 23, 38, 0.9) 100%);
}

.page-home .home-stage__ticks {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.page-home .home-stage__ticks::before,
.page-home .home-stage__ticks::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 7px;
  background-image: repeating-linear-gradient(90deg, rgba(224, 169, 60, 0.62) 0 1px, transparent 1px 13px);
}

.page-home .home-stage__ticks::before { top: 11px; }
.page-home .home-stage__ticks::after { bottom: 11px; }

.page-home .home-stage__corner {
  position: absolute;
  z-index: 3;
  display: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(246, 222, 154, 0.88);
  border: 1px solid var(--home-line);
  background: rgba(6, 23, 38, 0.72);
  padding: 4px 9px;
}

.page-home .home-stage__corner--tr { top: 22px; right: 22px; }
.page-home .home-stage__corner--bl { bottom: 22px; left: 22px; }

.page-home .home-stage__inner {
  position: relative;
  z-index: 4;
  max-width: 660px;
  padding-top: clamp(20px, 5vw, 42px);
}

.page-home .home-stage__kicker {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--c-neon);
  border-left: 3px solid var(--c-red);
  padding-left: 10px;
}

.page-home .home-stage__lede {
  margin-top: clamp(14px, 3vw, 20px);
  color: rgba(246, 240, 226, 0.86);
  max-width: 40ch;
}

.page-home .home-paths {
  display: grid;
  gap: 10px;
  margin-top: clamp(20px, 4vw, 30px);
}

.page-home .home-path {
  position: relative;
  display: block;
  padding: 15px 44px 15px 16px;
  text-decoration: none;
  color: var(--c-paper);
  border-left: 3px solid var(--c-red);
  background: rgba(11, 37, 64, 0.66);
  transition: background 0.25s var(--speed), border-color 0.25s var(--speed), transform 0.25s var(--speed);
}

.page-home .home-path:hover,
.page-home .home-path:focus-visible {
  background: rgba(200, 24, 43, 0.24);
  border-left-color: var(--c-neon);
  transform: translateX(3px);
}

.page-home .home-path__role {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--c-neon);
}

.page-home .home-path__title {
  display: block;
  margin: 5px 0 4px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.page-home .home-path__desc {
  display: block;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(246, 240, 226, 0.72);
}

.page-home .home-path::after {
  content: "→";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--c-gold);
}

.page-home .home-stage__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 4vw, 44px);
  margin-top: clamp(20px, 4vw, 30px);
  padding-top: clamp(14px, 3vw, 20px);
  border-top: 1px solid rgba(224, 169, 60, 0.26);
}

.page-home .home-stat__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(20px, 4.4vw, 26px);
  line-height: 1.1;
  color: var(--c-gold-lt);
  letter-spacing: 0.02em;
}

.page-home .home-stat__label {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(201, 194, 180, 0.88);
}

/* ---------- 残局练习面板 ---------- */
.page-home .home-replay {
  display: grid;
  gap: clamp(28px, 5vw, 46px);
  align-items: center;
}

.page-home .home-replay__text {
  margin-top: clamp(14px, 2.6vw, 18px);
  color: rgba(246, 240, 226, 0.84);
  max-width: 40ch;
}

.page-home .home-replay__list {
  list-style: none;
  margin: clamp(16px, 3vw, 24px) 0 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.page-home .home-replay__list li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(246, 240, 226, 0.82);
}

.page-home .home-replay__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 9px;
  height: 9px;
  border: 1px solid var(--c-jade);
  background: rgba(43, 163, 148, 0.32);
  transform: rotate(45deg);
}

.page-home .home-replay__copy .cx-btn {
  margin-top: clamp(20px, 3.4vw, 28px);
}

.page-home .home-replay__panel {
  position: relative;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--home-line);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(11, 37, 64, 0.94), rgba(6, 23, 38, 0.98));
  box-shadow: 0 26px 54px -26px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(255, 216, 107, 0.06);
}

.page-home .home-replay__tag {
  position: absolute;
  top: -12px;
  left: 14px;
  z-index: 2;
}

.page-home .home-replay__screen {
  overflow: hidden;
  border: 1px solid rgba(143, 216, 206, 0.24);
  border-radius: 2px;
}

.page-home .home-replay__screen img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

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

.page-home .home-replay__bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 0;
  padding: 9px 11px;
  font-size: 13px;
  border-left: 2px solid var(--c-jade);
  background: rgba(43, 163, 148, 0.1);
  color: rgba(246, 240, 226, 0.8);
}

.page-home .home-replay__bar span:last-child {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-gold-lt);
  white-space: nowrap;
}

.page-home .home-replay__panel .cx-media__cap {
  display: block;
  margin: 12px 2px 2px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(201, 194, 180, 0.78);
}

/* ---------- 三步进桌 ---------- */
.page-home .home-steps {
  display: grid;
  gap: clamp(26px, 5vw, 44px);
}

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

.page-home .home-steps__list {
  list-style: none;
  margin: clamp(18px, 3.4vw, 26px) 0 0;
  padding: 0;
}

.page-home .home-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 14px 12px 14px 0;
  border-top: 1px solid var(--home-line-soft);
  transition: background 0.3s var(--speed);
}

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

.page-home .home-step:hover,
.page-home .home-step:focus-visible,
.page-home .home-step:focus-within {
  background: rgba(224, 169, 60, 0.08);
}

.page-home .home-step__idx {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--c-abyss);
  background: linear-gradient(180deg, var(--c-gold-lt), var(--c-gold));
  border-radius: 2px;
}

.page-home .home-step .cx-h3 {
  margin: 4px 0 6px;
}

.page-home .home-step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(246, 240, 226, 0.78);
}

.page-home .home-steps__body .cx-btn {
  margin-top: clamp(20px, 3.4vw, 28px);
}

/* ---------- 房间索引 ---------- */
.page-home .home-rooms__lede {
  max-width: 44ch;
}

.page-home .home-rooms__banner {
  margin: clamp(20px, 3.6vw, 30px) 0 0;
}

.page-home .home-rooms__banner img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 3;
  object-fit: cover;
  border-radius: 3px;
}

.page-home .home-rooms__banner .cx-media__cap {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(20, 16, 14, 0.58);
}

.page-home .home-rooms__scroller {
  margin-top: clamp(20px, 3.6vw, 30px);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding-bottom: 10px;
}

.page-home .home-rooms__scroller:focus-visible {
  outline: 2px solid var(--c-neon);
  outline-offset: 4px;
}

.page-home .home-rooms__rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 80vw);
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .home-rooms__zone {
  scroll-snap-align: start;
  padding-top: 12px;
  border-top: 3px solid var(--c-red);
}

.page-home .home-rooms__zone-name {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--c-ink);
}

.page-home .home-rooms__zone-meta {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--c-red-deep);
}

.page-home .home-rooms__zone ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .home-rooms__room {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
  font-size: 14px;
  color: var(--c-ink);
  border-bottom: 1px dashed rgba(20, 16, 14, 0.16);
}

.page-home .home-rooms__room span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(20, 16, 14, 0.56);
  white-space: nowrap;
}

.page-home .home-rooms__zone-desc {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(20, 16, 14, 0.7);
}

/* ---------- 赛季与版本 ---------- */
.page-home .home-season__lede {
  max-width: 42ch;
}

.page-home .home-timeline {
  list-style: none;
  margin: clamp(22px, 4vw, 32px) 0 0;
  padding: 0;
}

.page-home .home-timeline__item {
  position: relative;
  padding: 16px 18px 16px 22px;
  border-left: 2px solid var(--home-line);
}

.page-home .home-timeline__item::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 16px;
  width: 2px;
  height: 30px;
  background: var(--c-neon);
}

.page-home .home-timeline__stamp {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--c-jade-lt);
}

.page-home .home-timeline__item .cx-h3 {
  margin: 0 0 8px;
}

.page-home .home-timeline__item p:last-child {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(246, 240, 226, 0.78);
}

/* ---------- 数据面板 ---------- */
.page-home .home-numbers {
  margin-top: clamp(20px, 3.6vw, 30px);
}

.page-home .home-numbers .cx-data__row {
  padding: 12px 0;
}

.page-home .home-numbers .cx-data__key {
  font-size: 14px;
  color: rgba(246, 240, 226, 0.76);
}

.page-home .home-numbers .cx-data__val {
  font-family: var(--font-mono);
  font-size: clamp(17px, 3.6vw, 21px);
  letter-spacing: 0.03em;
  color: var(--c-gold-lt);
  white-space: nowrap;
}

.page-home .home-numbers__note {
  margin: clamp(16px, 3vw, 22px) 0 0;
  font-size: 13px;
  line-height: 1.75;
  color: rgba(201, 194, 180, 0.84);
}

/* ---------- 收束 ---------- */
.page-home .home-close {
  display: grid;
  gap: clamp(24px, 4vw, 40px);
  padding: clamp(24px, 5vw, 44px) clamp(20px, 4.6vw, 42px);
  border: 1px solid var(--home-line);
  border-radius: 4px;
  background:
    radial-gradient(120% 130% at 100% 0%, rgba(200, 24, 43, 0.3), transparent 62%),
    linear-gradient(158deg, rgba(11, 37, 64, 0.96), rgba(6, 23, 38, 0.99));
}

.page-home .home-close__cta p {
  margin: clamp(12px, 2.4vw, 16px) 0 0;
  max-width: 40ch;
  color: rgba(246, 240, 226, 0.8);
}

.page-home .home-close__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(18px, 3.4vw, 26px);
}

.page-home .home-close__help {
  padding-top: clamp(18px, 3vw, 24px);
  border-top: 1px solid var(--home-line-soft);
}

.page-home .home-close__eyebrow {
  margin: 0 0 10px;
}

.page-home .home-close__help-text {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(246, 240, 226, 0.78);
}

.page-home .home-close__link {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-neon);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 216, 107, 0.5);
  padding-bottom: 2px;
}

.page-home .home-close__link:hover,
.page-home .home-close__link:focus-visible {
  color: var(--c-gold-lt);
  border-bottom-color: var(--c-gold-lt);
}

/* ---------- 响应式 ---------- */
@media (min-width: 620px) {
  .page-home .home-paths {
    grid-template-columns: 1fr 1fr;
  }

  .page-home .home-stage__corner {
    display: block;
  }
}

@media (min-width: 760px) {
  .page-home .home-rooms__rail {
    grid-auto-columns: minmax(0, 1fr);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-flow: row;
    gap: 22px;
  }

  .page-home .home-numbers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: clamp(30px, 5vw, 72px);
  }
}

@media (min-width: 860px) {
  .page-home .home-timeline {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }

  .page-home .home-timeline__item {
    padding: 20px 16px 0 0;
    border-left: 0;
    border-top: 2px solid var(--home-line);
  }

  .page-home .home-timeline__item::before {
    left: 0;
    top: -2px;
    width: 42px;
    height: 2px;
  }

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

  .page-home .home-close__help {
    padding-top: 0;
    padding-left: clamp(20px, 3vw, 32px);
    border-top: 0;
    border-left: 1px solid var(--home-line-soft);
  }
}

@media (min-width: 940px) {
  .page-home .home-replay {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.1fr);
  }

  .page-home .home-replay__panel {
    margin-right: calc(-1 * clamp(0px, 6vw, 84px));
  }

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

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

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

  .page-home .home-path:hover,
  .page-home .home-path:focus-visible {
    transform: none;
  }

  .page-home .home-steps__media {
    position: static;
  }
}
