/* ===== 首页专属样式（作用域 .page-home） ===== */
.page-home {
  --home-rail: clamp(44px, 7vw, 104px);
  --home-gap: clamp(18px, 3vw, 36px);
  display: block;
  background: var(--navy-deep);
  color: var(--cool-white);
  overflow-x: hidden;
}

.page-home .section {
  position: relative;
}

.page-home .section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(52% 58% at var(--spot-x, 20%) 10%, rgba(216, 166, 60, 0.15), transparent 68%);
  pointer-events: none;
}

.page-home .section--paper::before {
  background: radial-gradient(52% 58% at var(--spot-x, 20%) 8%, rgba(240, 101, 74, 0.10), transparent 66%);
}

.page-home .section-band {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--violet) 62%, var(--coral));
  opacity: 0.9;
}

/* ---------- 首屏 ---------- */
.page-home .hero-stage {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 8vw, 96px) 0 clamp(36px, 5vw, 64px);
  background:
    linear-gradient(180deg, #071324 0%, var(--navy) 58%, var(--navy) 100%);
  color: var(--cool-white);
}

.page-home .hero-stage__glow {
  position: absolute;
  inset: -16% -24% auto -24%;
  height: 86%;
  pointer-events: none;
  background:
    radial-gradient(40% 56% at 16% 24%, rgba(216, 166, 60, 0.24), transparent 70%),
    radial-gradient(34% 46% at 84% 6%, rgba(124, 77, 219, 0.22), transparent 72%);
}

.page-home .hero-stage__inner {
  position: relative;
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}

.page-home .hero-stage .breadcrumbs {
  margin: 0 0 20px;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.page-home .hero-stage .breadcrumbs,
.page-home .hero-stage .breadcrumbs a,
.page-home .hero-stage .breadcrumbs li {
  color: var(--cool-white);
  opacity: 0.66;
}

.page-home .hero-stage .breadcrumbs a:hover {
  opacity: 1;
  color: var(--gold-light);
}

.page-home .hero-stage .display-title {
  margin: 12px 0 20px;
  color: var(--cool-white);
  line-height: 1.06;
  letter-spacing: 0.02em;
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

.page-home .hero-stage .lede {
  max-width: 34em;
  color: rgba(251, 247, 240, 0.86);
}

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

.page-home .hero-stage__visual {
  position: relative;
}

.page-home .media-frame {
  display: block;
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-gold);
  background: var(--navy-deep);
  box-shadow: var(--shadow-soft);
}

.page-home .media-frame__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .media-frame__caption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(7, 19, 36, 0.78);
  border: 1px solid var(--line-gold);
  color: var(--gold-light);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.page-home .hero-stage__visual .media-frame__img {
  height: clamp(200px, 34vh, 400px);
}

/* ---------- 首屏章节预览 ---------- */
.page-home .stage-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding: 0;
  list-style: none;
}

.page-home .stage-map__item:first-child {
  grid-column: 1 / -1;
}

.page-home .stage-map__link {
  display: grid;
  gap: 4px;
  height: 100%;
  padding: 14px 16px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-dim);
  background: rgba(10, 27, 51, 0.62);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.3s var(--ease-stage), background 0.3s var(--ease-stage);
}

.page-home .stage-map__link:hover,
.page-home .stage-map__link:focus-visible {
  border-color: var(--gold);
  background: rgba(216, 166, 60, 0.12);
}

.page-home .stage-map__no {
  color: var(--violet);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.page-home .stage-map__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}

.page-home .stage-map__value {
  color: var(--gold);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.page-home .stage-map__note {
  color: rgba(251, 247, 240, 0.66);
  font-size: 13px;
  line-height: 1.6;
}

/* ---------- 章节骨架 ---------- */
.page-home .chapter {
  position: relative;
  display: grid;
  gap: clamp(16px, 3vw, 28px);
}

.page-home .chapter__rail {
  display: flex;
  align-items: flex-start;
}

.page-home .chapter-num {
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  line-height: 0.86;
  letter-spacing: 0.02em;
}

.page-home .chapter__title {
  margin: 8px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
  max-width: 22em;
}

.page-home .chapter__body .prose {
  max-width: 46em;
  margin: 0 0 26px;
}

.page-home .chapter__note {
  margin: 22px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--coral);
  color: var(--slate);
  font-size: 15px;
  line-height: 1.8;
}

.page-home .section--navy .chapter__note {
  color: rgba(251, 247, 240, 0.68);
}

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

/* ---------- 牌型长廊 ---------- */
.page-home .type-layout {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
}

.page-home .type-layout__figure {
  align-self: start;
}

.page-home .type-layout__runway {
  min-width: 0;
}

.page-home .type-runway {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(168px, 78%);
  gap: 12px;
  margin: 0;
  padding: 2px 2px 14px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.page-home .type-runway > li {
  scroll-snap-align: start;
}

.page-home .type-card {
  height: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(25, 19, 16, 0.16);
  background: var(--cool-white);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: border-color 0.3s var(--ease-stage);
}

.page-home .type-card[open] {
  border-color: var(--violet);
}

.page-home .type-card__summary {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  position: relative;
}

.page-home .type-card__summary::-webkit-details-marker {
  display: none;
}

.page-home .type-card__summary::after {
  content: "+";
  position: absolute;
  right: 14px;
  top: 14px;
  color: var(--slate);
  font-family: var(--font-mono);
  font-size: 14px;
  transition: transform 0.25s var(--ease-stage), color 0.25s var(--ease-stage);
}

.page-home .type-card[open] .type-card__summary::after {
  content: "–";
  color: var(--coral);
  transform: rotate(180deg);
}

.page-home .type-card__no {
  color: var(--violet);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.page-home .type-card__name {
  font-family: var(--font-display);
  font-size: 1.06rem;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.page-home .type-card__text {
  margin: 0;
  padding: 0 16px 16px;
  color: #4a403a;
  font-size: 13.5px;
  line-height: 1.72;
}

.page-home .type-runway__hint {
  margin: 6px 0 18px;
  color: var(--slate);
  font-size: 13px;
  letter-spacing: 0.02em;
}

/* ---------- 叫分刻度 ---------- */
.page-home .bid-layout {
  display: grid;
  gap: clamp(22px, 3vw, 36px);
}

.page-home .bid-ruler {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.page-home .bid-row {
  display: grid;
  grid-template-columns: clamp(58px, 18vw, 84px) 1fr auto;
  grid-template-areas:
    "tier bar mult"
    "tier bar wave";
  align-items: center;
  gap: 4px 10px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background 0.25s var(--ease-stage), border-color 0.25s var(--ease-stage);
}

.page-home .bid-row:hover {
  background: rgba(216, 166, 60, 0.08);
  border-color: var(--line-gold);
}

.page-home .bid-row__tier {
  grid-area: tier;
  color: var(--slate);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.page-home .bid-row__bar {
  grid-area: bar;
  height: 10px;
  width: var(--w, 50%);
  min-width: 26px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--coral), var(--gold));
  box-shadow: 0 0 0 1px rgba(216, 166, 60, 0.28);
}

.page-home .bid-row__mult {
  grid-area: mult;
  justify-self: end;
  color: var(--gold-light);
  font-size: 14px;
  font-weight: 700;
}

.page-home .bid-row__wave {
  grid-area: wave;
  justify-self: end;
  color: rgba(251, 247, 240, 0.62);
  font-size: 12px;
}

.page-home .bid-aside {
  display: grid;
  gap: 16px;
  align-content: start;
}

.page-home .bid-aside__text {
  margin: 0;
  color: rgba(251, 247, 240, 0.78);
  font-size: 15px;
  line-height: 1.85;
}

/* ---------- 好友局 ---------- */
.page-home .table-layout {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
}

.page-home .table-layout__label {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--slate);
}

.page-home .seat-scale {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .seat-scale__seat {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(25, 19, 16, 0.16);
  background: var(--cool-white);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.page-home .table-layout__hint {
  margin: 14px 0 0;
  color: var(--slate);
  font-size: 13px;
  line-height: 1.7;
}

.page-home .snapshot-log {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.page-home .snapshot-log__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(25, 19, 16, 0.04);
  border-left: 3px solid var(--gold);
}

.page-home .snapshot-log__count {
  color: var(--coral);
  font-size: 15px;
  font-weight: 700;
  min-width: 52px;
}

.page-home .snapshot-log__what {
  color: #4a403a;
  font-size: 14px;
}

/* ---------- 重连窗口 ---------- */
.page-home .reconnect-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.page-home .reconnect-facts__item {
  padding: 16px 16px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-dim);
  background: rgba(7, 19, 36, 0.55);
}

.page-home .reconnect-facts__num {
  display: block;
  color: var(--gold);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.05;
}

.page-home .reconnect-facts__label {
  display: block;
  margin-top: 6px;
  color: rgba(251, 247, 240, 0.66);
  font-size: 13px;
}

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

.page-home .reconnect-years__item {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-dim);
  background: rgba(10, 27, 51, 0.45);
}

.page-home .reconnect-years__range {
  color: var(--coral-light);
  font-size: 14px;
  letter-spacing: 0.06em;
}

.page-home .reconnect-years__text {
  margin: 0;
  color: rgba(251, 247, 240, 0.76);
  font-size: 14.5px;
  line-height: 1.8;
}

/* ---------- 结算明细 ---------- */
.page-home .settle-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: clamp(16px, 3vw, 24px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(25, 19, 16, 0.14);
  background: var(--cool-white);
  box-shadow: var(--shadow-soft);
}

.page-home .settle-strip__part {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(85, 112, 140, 0.09);
}

.page-home .settle-strip__part--total {
  background: linear-gradient(120deg, rgba(240, 101, 74, 0.16), rgba(216, 166, 60, 0.22));
  border: 1px solid var(--coral);
}

.page-home .settle-strip__label {
  color: var(--slate);
  font-size: 12.5px;
  letter-spacing: 0.06em;
}

.page-home .settle-strip__val {
  color: var(--ink);
  font-size: 1.4rem;
  font-weight: 700;
}

.page-home .settle-strip__op {
  justify-self: center;
  color: var(--coral);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  line-height: 1;
}

/* ---------- 更新节奏 ---------- */
.page-home .cadence-section {
  position: relative;
  overflow: hidden;
}

.page-home .cadence-section__bg {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
}

.page-home .cadence-section__bg .media-frame__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.26;
}

.page-home .cadence-section__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 19, 36, 0.9), rgba(10, 27, 51, 0.94));
}

.page-home .cadence-section__inner {
  position: relative;
  z-index: 1;
}

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

.page-home .cadence-list__item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-dim);
  background: rgba(7, 19, 36, 0.5);
}

.page-home .cadence-list__num {
  color: var(--gold);
  font-size: 1.5rem;
  font-weight: 700;
  min-width: 2.4em;
}

.page-home .cadence-list__text {
  color: rgba(251, 247, 240, 0.78);
  font-size: 14.5px;
}

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

  .page-home .stage-map__item:first-child {
    grid-column: auto;
  }

  .page-home .settle-strip {
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
  }

  .page-home .settle-strip__part {
    height: 100%;
    align-content: center;
  }

  .page-home .table-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .page-home .type-runway {
    grid-auto-columns: minmax(180px, 1fr);
  }
}

@media (min-width: 960px) {
  .page-home .hero-stage__inner {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    gap: clamp(36px, 5vw, 64px);
  }

  .page-home .stage-map {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
  }

  .page-home .stage-map__item:nth-child(2) {
    margin-top: 20px;
  }

  .page-home .stage-map__item:nth-child(4) {
    margin-top: 28px;
  }

  .page-home .chapter {
    grid-template-columns: var(--home-rail) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 56px);
  }

  .page-home .chapter__rail {
    padding-top: 6px;
  }

  .page-home .type-layout {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    align-items: start;
  }

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

  .page-home .bid-row {
    grid-template-columns: 84px minmax(0, 1fr) auto 116px;
    grid-template-areas: "tier bar mult wave";
    gap: 12px;
    padding: 7px 12px;
  }

  .page-home .bid-row__wave {
    justify-self: end;
  }

  .page-home .table-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }

  .page-home .type-runway {
    grid-auto-columns: minmax(170px, 1fr);
  }
}

@media (min-width: 1180px) {
  .page-home .type-runway {
    grid-auto-columns: minmax(184px, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .stage-map__link,
  .page-home .bid-row,
  .page-home .type-card,
  .page-home .type-card__summary::after {
    transition-duration: 0.15s;
  }
}
</main>

.page-home {
  --spot-x: transparent;
  --w: 1rem;
}
