.page-home {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.75;
  overflow-x: hidden;
}

.page-home h1,
.page-home h2,
.page-home h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: .01em;
  margin: 0;
}

.page-home p {
  margin: 0;
}

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

.page-home .img-frame {
  position: relative;
  overflow: hidden;
  border: var(--bd) solid var(--ink);
  box-shadow: var(--shadow-md);
  background: var(--ice-deep);
  margin: 0;
}

.page-home .img-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .text-link {
  display: inline-block;
  font-weight: 700;
  font-size: 15px;
  color: var(--river);
  text-decoration: none;
  border-bottom: 2px solid var(--chip);
  padding-bottom: 2px;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}

.page-home .text-link:hover,
.page-home .text-link:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--cinnabar);
}

/* ---------- 首屏拼贴 ---------- */
.page-home .hero {
  background-color: var(--ice);
  background-image:
    repeating-linear-gradient(112deg, rgba(247, 251, 252, .62) 0 3px, rgba(247, 251, 252, 0) 3px 26px),
    linear-gradient(178deg, var(--ice) 0%, var(--ice-deep) 70%, var(--white) 100%);
  border-bottom: var(--bd) solid var(--ink);
  padding: 18px 0 44px;
}

.page-home .hero-grid {
  display: grid;
  gap: 20px;
  margin-top: 14px;
}

.page-home .hero-rack {
  background: var(--white);
  border: var(--bd) solid var(--ink);
  box-shadow: var(--shadow-md);
  padding: 16px 14px 14px;
}

.page-home .rack-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--felt);
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: var(--bd-thin) solid var(--ink);
}

.page-home .rack-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background-image: repeating-linear-gradient(180deg, transparent 0 63px, rgba(11, 31, 28, .12) 63px 64px);
}

.page-home .rack-list li + li {
  border-top: 2px dashed rgba(11, 31, 28, .16);
}

.page-home .rack-list a {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 6px;
  text-decoration: none;
  color: var(--ink);
  transition: background-color .16s var(--ease), box-shadow .16s var(--ease);
}

.page-home .rack-list a:hover,
.page-home .rack-list a:focus-visible {
  background: var(--ice);
  box-shadow: inset 4px 0 0 var(--chip);
}

.page-home .rack-num {
  flex: none;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 5px 6px;
  background: var(--chip);
  color: var(--ink);
  border: 2px solid var(--ink);
}

.page-home .rack-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.page-home .rack-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.page-home .rack-meta {
  font-size: 12.5px;
  color: var(--gray);
  line-height: 1.5;
}

.page-home .rack-more {
  display: block;
  margin-top: 12px;
  padding-top: 10px;
  border-top: var(--bd-thin) solid var(--ink);
  font-size: 13px;
  font-weight: 700;
  color: var(--river);
  text-decoration: none;
}

.page-home .rack-more:hover,
.page-home .rack-more:focus-visible {
  color: var(--ink);
}

.page-home .hero-main {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.page-home .hero-copy .eyebrow {
  margin: 0 0 10px;
}

.page-home h1 {
  font-size: clamp(30px, 7.2vw, 52px);
  margin: 0;
}

.page-home .hero-lede {
  margin-top: 12px;
  font-size: 15.5px;
  color: var(--gray);
  line-height: 1.8;
  max-width: 62ch;
}

.page-home .hero-figure {
  aspect-ratio: 5 / 3;
}

.page-home .hero-entries {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.page-home .entry-figure {
  aspect-ratio: 16 / 7;
}

.page-home .entry-pair {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.page-home .entry-card {
  display: block;
  padding: 18px 16px;
  background: var(--white);
  border: var(--bd) solid var(--ink);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: var(--ink);
  transition: transform .16s var(--ease), box-shadow .16s var(--ease);
}

.page-home .entry-card:hover,
.page-home .entry-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 8px 8px 0 var(--ink);
}

.page-home .entry-card--alert {
  border-left: 10px solid var(--cinnabar);
}

.page-home .entry-card--chip {
  border-left: 10px solid var(--chip);
}

.page-home .entry-card__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--gray);
  margin-bottom: 6px;
}

.page-home .entry-card__title {
  display: block;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 6px;
}

.page-home .entry-card__text {
  display: block;
  font-size: 14px;
  color: var(--gray);
  line-height: 1.72;
}

.page-home .entry-card__go {
  display: block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--river);
}

.page-home .season-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 14px 16px;
  background: var(--felt);
  color: var(--white);
  border: var(--bd) solid var(--ink);
  box-shadow: var(--shadow-felt);
}

.page-home .season-tag {
  flex: none;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  background: var(--chip);
  color: var(--ink);
  padding: 3px 8px;
}

.page-home .season-strip p {
  flex: 1 1 200px;
  font-size: 14px;
  line-height: 1.7;
  min-width: 0;
}

.page-home .season-strip .text-link {
  color: var(--gold-soft);
  border-bottom-color: var(--chip);
  margin: 0;
}

.page-home .season-strip .text-link:hover,
.page-home .season-strip .text-link:focus-visible {
  color: var(--white);
  border-bottom-color: var(--white);
}

/* ---------- 通用章节头 ---------- */
.page-home .sec-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 24px;
}

.page-home .sec-head__body {
  min-width: 0;
}

.page-home .sec-head h2 {
  font-size: clamp(23px, 4.6vw, 36px);
}

.page-home .sec-lede {
  margin-top: 8px;
  font-size: 15px;
  color: var(--gray);
  line-height: 1.78;
  max-width: 66ch;
}

/* ---------- 三条路径 ---------- */
.page-home .paths {
  padding: 44px 0;
  background: var(--white);
}

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

.page-home .path-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--ice);
  border: var(--bd) solid var(--ink);
  box-shadow: var(--shadow-md);
  padding: 18px 16px 16px;
  transition: transform .16s var(--ease), border-color .16s var(--ease), box-shadow .16s var(--ease);
}

.page-home .path-card:hover,
.page-home .path-card:focus-within {
  transform: translateY(-2px);
  border-color: var(--chip);
  box-shadow: 8px 8px 0 var(--ink);
}

.page-home .path-card h3 {
  font-size: 19px;
  margin: 10px 0 8px;
}

.page-home .path-card p {
  font-size: 14.5px;
  color: var(--gray);
  line-height: 1.72;
  margin-bottom: 14px;
}

.page-home .path-card .text-link {
  margin-top: auto;
}

/* ---------- 房间导航 ---------- */
.page-home .rooms {
  padding: 44px 0;
  background-color: var(--ice);
  background-image:
    repeating-linear-gradient(0deg, rgba(46, 125, 143, .1) 0 2px, transparent 2px 28px),
    repeating-linear-gradient(90deg, rgba(46, 125, 143, .1) 0 2px, transparent 2px 28px);
  border-top: var(--bd) solid var(--ink);
  border-bottom: var(--bd) solid var(--ink);
}

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

.page-home .room-filter {
  position: relative;
  min-width: 0;
}

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

.page-home .filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.page-home .filter-bar label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 10px;
  background: var(--white);
  color: var(--ink);
  border: var(--bd-thin) solid var(--ink);
  cursor: pointer;
  user-select: none;
  transition: background-color .16s var(--ease), transform .16s var(--ease), box-shadow .16s var(--ease);
}

.page-home .filter-bar label:hover {
  background: var(--gold-soft);
}

.page-home #rf-all:checked ~ .filter-bar label[for="rf-all"],
.page-home #rf-classic:checked ~ .filter-bar label[for="rf-classic"],
.page-home #rf-quick:checked ~ .filter-bar label[for="rf-quick"],
.page-home #rf-rank:checked ~ .filter-bar label[for="rf-rank"],
.page-home #rf-event:checked ~ .filter-bar label[for="rf-event"] {
  background: var(--chip);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.page-home #rf-all:focus-visible ~ .filter-bar label[for="rf-all"],
.page-home #rf-classic:focus-visible ~ .filter-bar label[for="rf-classic"],
.page-home #rf-quick:focus-visible ~ .filter-bar label[for="rf-quick"],
.page-home #rf-rank:focus-visible ~ .filter-bar label[for="rf-rank"],
.page-home #rf-event:focus-visible ~ .filter-bar label[for="rf-event"] {
  outline: 2px solid var(--chip);
  outline-offset: 2px;
}

.page-home #rf-classic:checked ~ .room-cards .room-card:not([data-cat="classic"]),
.page-home #rf-quick:checked ~ .room-cards .room-card:not([data-cat="quick"]),
.page-home #rf-rank:checked ~ .room-cards .room-card:not([data-cat="rank"]),
.page-home #rf-event:checked ~ .room-cards .room-card:not([data-cat="event"]) {
  display: none;
}

.page-home .room-cards {
  display: grid;
  gap: 12px;
}

.page-home .room-card {
  background: var(--white);
  border: var(--bd-thin) solid var(--ink);
  box-shadow: var(--shadow-sm);
  padding: 12px 12px 10px;
  transition: transform .16s var(--ease), border-color .16s var(--ease);
}

.page-home .room-card:hover {
  transform: translateY(-2px);
  border-color: var(--chip);
}

.page-home .room-no {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  background: var(--gold-soft);
  border: 2px solid var(--ink);
  padding: 1px 6px;
}

.page-home .room-card h3 {
  font-size: 16px;
  margin: 8px 0 4px;
}

.page-home .room-card p {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.6;
}

.page-home .rooms-figure {
  aspect-ratio: 16 / 9;
}

/* ---------- 结算阶梯 ---------- */
.page-home .settle {
  padding: 44px 0;
  background: var(--white);
}

.page-home .settle-grid {
  display: grid;
  gap: 22px;
}

.page-home .settle-copy {
  min-width: 0;
}

.page-home .settle-copy h2 {
  font-size: clamp(23px, 4.4vw, 34px);
  margin-top: 4px;
}

.page-home .step-ladder {
  list-style: none;
  margin: 22px 0 18px;
  padding: 0;
}

.page-home .step-ladder li + li {
  margin-top: 10px;
}

.page-home .step-ladder li:nth-child(2) {
  margin-left: 12px;
}

.page-home .step-ladder li:nth-child(3) {
  margin-left: 24px;
}

.page-home .step-card details {
  background: var(--white);
  border: var(--bd) solid var(--ink);
  box-shadow: var(--shadow-sm);
}

.page-home .step-card--key details {
  border-color: var(--cinnabar);
  box-shadow: 5px 5px 0 var(--cinnabar);
}

.page-home .step-card summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.4;
}

.page-home .step-card summary::-webkit-details-marker {
  display: none;
}

.page-home .step-card summary::after {
  content: "＋";
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--river);
}

.page-home .step-card details[open] summary::after {
  content: "－";
}

.page-home .step-no {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  background: var(--ink);
  color: var(--white);
  padding: 3px 7px;
  white-space: nowrap;
}

.page-home .step-card--key .step-no {
  background: var(--cinnabar);
}

.page-home .step-card details p {
  padding: 0 14px 14px;
  font-size: 14.5px;
  color: var(--gray);
  line-height: 1.76;
}

.page-home .settle-copy > .btn {
  margin-top: 4px;
}

.page-home .settle-figure {
  aspect-ratio: 3 / 2;
}

/* ---------- 第 12 版访问提示 ---------- */
.page-home .access {
  position: relative;
  background: var(--felt);
  color: var(--white);
  padding: 34px 0 48px;
  border-top: var(--bd) solid var(--ink);
  border-bottom: var(--bd) solid var(--ink);
}

.page-home .ice-crack {
  display: block;
  width: 100%;
  height: 18px;
  margin-bottom: 22px;
  color: var(--mist-light);
}

.page-home .access-head {
  max-width: 70ch;
}

.page-home .access h2 {
  color: var(--white);
  font-size: clamp(23px, 4.6vw, 36px);
  margin: 14px 0 0;
}

.page-home .access .sec-lede {
  color: var(--mist-light);
}

.page-home .ver-chip {
  position: relative;
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 4px 10px;
  background: var(--gold-soft);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--cinnabar);
  cursor: help;
}

.page-home .ver-chip::before {
  content: "";
  position: absolute;
  top: -6px;
  right: -6px;
  width: 7px;
  height: 7px;
  background: var(--cinnabar);
  box-shadow: -7px 0 0 var(--cinnabar), 0 7px 0 var(--cinnabar);
}

.page-home .ver-chip__tip {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  z-index: 5;
  width: max-content;
  max-width: 230px;
  padding: 8px 10px;
  background: var(--ink);
  color: var(--white);
  border: 2px solid var(--chip);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s var(--ease);
}

.page-home .ver-chip:hover .ver-chip__tip,
.page-home .ver-chip:focus .ver-chip__tip,
.page-home .ver-chip:focus-visible .ver-chip__tip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

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

.page-home .access-list li {
  background: rgba(247, 251, 252, .06);
  border: 2px solid rgba(247, 251, 252, .3);
  border-left: 6px solid var(--chip);
  padding: 16px 16px 18px;
}

.page-home .access-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--chip);
}

.page-home .access-list h3 {
  font-size: 18px;
  color: var(--white);
  margin: 8px 0 6px;
}

.page-home .access-list p {
  font-size: 14px;
  color: var(--mist-light);
  line-height: 1.78;
}

/* ---------- 移动端与电脑端对照 ---------- */
.page-home .compare {
  padding: 44px 0;
  background: var(--white);
}

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

.page-home .compare-card {
  background: var(--ice);
  border: var(--bd) solid var(--ink);
  box-shadow: var(--shadow-md);
  padding: 18px 16px 20px;
}

.page-home .compare-card--desk {
  background: var(--white);
  border-color: var(--felt);
  box-shadow: var(--shadow-felt);
}

.page-home .compare-card h3 {
  font-size: 20px;
  margin: 10px 0 8px;
}

.page-home .compare-card p {
  font-size: 14.5px;
  color: var(--gray);
  line-height: 1.72;
}

.page-home .compare-list {
  margin: 12px 0 0;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--ink);
}

.page-home .compare-list li::marker {
  color: var(--chip);
}

.page-home .compare-stat {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--felt);
}

.page-home .compare-stat__num {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: var(--cinnabar);
}

.page-home .compare-card .text-link {
  margin-top: 16px;
}

/* ---------- 联络入口 ---------- */
.page-home .help-strip {
  padding: 42px 0 52px;
  background-color: var(--ice);
  border-top: var(--bd) solid var(--ink);
}

.page-home .help-inner {
  display: grid;
  gap: 22px;
}

.page-home .help-copy {
  min-width: 0;
}

.page-home .help-strip h2 {
  font-size: clamp(22px, 4.2vw, 32px);
}

.page-home .help-copy > p {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--gray);
  line-height: 1.78;
  max-width: 62ch;
}

.page-home .help-channels {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.page-home .help-channels li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  padding-bottom: 8px;
  border-bottom: 2px dashed rgba(11, 31, 28, .18);
  font-size: 14.5px;
  word-break: break-word;
}

.page-home .help-key {
  flex: none;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--ink);
  padding: 2px 7px;
}

.page-home .help-note {
  font-size: 13.5px;
  color: var(--gray);
}

.page-home .help-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

/* ---------- 平板与桌面 ---------- */
@media (min-width: 560px) {
  .page-home .room-cards {
    grid-template-columns: 1fr 1fr;
  }

  .page-home .entry-pair {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 760px) {
  .page-home .path-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-home .compare-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-home .access-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-home .step-ladder li:nth-child(2) {
    margin-left: 22px;
  }

  .page-home .step-ladder li:nth-child(3) {
    margin-left: 44px;
  }
}

@media (min-width: 880px) {
  .page-home .help-inner {
    grid-template-columns: 1.55fr 1fr;
    align-items: start;
    gap: 32px;
  }

  .page-home .help-actions {
    align-items: stretch;
    padding-top: 6px;
  }

  .page-home .help-actions .text-link {
    align-self: flex-start;
  }
}

@media (min-width: 940px) {
  .page-home .rooms-grid {
    grid-template-columns: 1.45fr 1fr;
    align-items: start;
    gap: 26px;
  }

  .page-home .settle-grid {
    grid-template-columns: 1.15fr .85fr;
    align-items: start;
    gap: 32px;
  }

  .page-home .settle-copy h2 {
    font-size: 34px;
  }

  .page-home .paths,
  .page-home .rooms,
  .page-home .settle,
  .page-home .compare {
    padding: 56px 0;
  }
}

@media (min-width: 1024px) {
  .page-home .hero {
    padding: 22px 0 56px;
  }

  .page-home .hero-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    align-items: start;
  }

  .page-home .hero-rack {
    grid-column: 1 / span 3;
  }

  .page-home .hero-main {
    grid-column: 4 / span 9;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "copy figure"
      "entries figure"
      "season season";
    gap: 20px 24px;
    align-items: start;
  }

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

  .page-home .hero-figure {
    grid-area: figure;
    align-self: stretch;
    aspect-ratio: auto;
    min-height: 360px;
  }

  .page-home .hero-entries {
    grid-area: entries;
  }

  .page-home .season-strip {
    grid-area: season;
  }

  .page-home .entry-figure {
    aspect-ratio: 16 / 6;
  }

  .page-home .entry-pair {
    grid-template-columns: 1fr;
  }

  .page-home .hero-lede {
    font-size: 16.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .entry-card,
  .page-home .path-card,
  .page-home .room-card,
  .page-home .filter-bar label,
  .page-home .ver-chip__tip {
    transition: none;
  }

  .page-home .entry-card:hover,
  .page-home .entry-card:focus-visible,
  .page-home .path-card:hover,
  .page-home .path-card:focus-within,
  .page-home .room-card:hover,
  .page-home #rf-all:checked ~ .filter-bar label[for="rf-all"],
  .page-home #rf-classic:checked ~ .filter-bar label[for="rf-classic"],
  .page-home #rf-quick:checked ~ .filter-bar label[for="rf-quick"],
  .page-home #rf-rank:checked ~ .filter-bar label[for="rf-rank"],
  .page-home #rf-event:checked ~ .filter-bar label[for="rf-event"] {
    transform: none;
  }
}
