.page-home {
  --home-edge: var(--bw-thick) solid var(--line);
  background: var(--ink);
  color: var(--ivory);
  overflow-x: hidden;
}

/* ---------- 首屏：对角切割 ---------- */
.page-home .hero-diag {
  position: relative;
  padding: clamp(104px, 16vw, 168px) 0 clamp(40px, 6vw, 72px);
  background-color: var(--ink);
  background-image:
    repeating-linear-gradient(118deg, rgba(244, 240, 230, 0.026) 0 2px, transparent 2px 10px),
    linear-gradient(166deg, var(--panel) 0 62%, rgba(15, 27, 54, 0) 62%),
    linear-gradient(346deg, var(--moss) 0 46%, rgba(10, 33, 29, 0) 46%);
  border-bottom: var(--home-edge);
}

.page-home .hero-diag__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  align-items: end;
}

.page-home .hero-diag__lead {
  min-width: 0;
}

.page-home .hero-diag__title {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 7.6vw, 62px);
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--ivory);
  text-wrap: balance;
}

.page-home .hero-diag__lede {
  margin-top: 20px;
  max-width: 46ch;
  color: var(--mist);
}

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

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

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

.page-home .hero-diag__figure {
  margin: 0;
  aspect-ratio: 4 / 3;
  border: var(--home-edge);
  box-shadow: var(--shadow-hard);
}

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

/* 三张事实长条卡 */
.page-home .fact-rail {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .fact {
  min-width: 0;
  padding: 18px 20px 20px;
  background: linear-gradient(180deg, rgba(15, 27, 54, 0.94), rgba(7, 11, 24, 0.94));
  border: var(--bw) solid var(--line-strong);
  border-left: var(--bw-thick) solid var(--coral);
  box-shadow: var(--shadow-hard);
  transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}

.page-home .fact:hover {
  transform: translateY(-4px);
  border-left-color: var(--cyan);
}

.page-home .fact__key {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--coral);
}

.page-home .fact__val {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ivory);
}

/* ---------- 章节通用微调 ---------- */
.page-home .section {
  padding: clamp(56px, 8vw, 96px) 0;
}

.page-home .section__num {
  font-family: var(--font-mono);
  color: var(--coral);
}

.page-home .section__lead {
  max-width: 58ch;
}

.page-home .link-arrow {
  display: inline-block;
  margin-top: 24px;
  font-size: 15px;
  font-weight: 700;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: var(--bw) solid var(--cyan-line);
  padding-bottom: 4px;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.page-home .link-arrow:hover,
.page-home .link-arrow:focus-visible {
  color: var(--ivory);
  border-bottom-color: var(--ivory);
}

/* ---------- 01 玩法编号墙 ---------- */
.page-home .play-wall {
  background:
    radial-gradient(120% 90% at 88% 0%, rgba(30, 122, 94, 0.16), transparent 62%),
    var(--ink);
  border-bottom: var(--home-edge);
}

.page-home .play-wall__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .play-tile {
  position: relative;
  overflow: hidden;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 24px 20px 20px;
  background: var(--panel);
  border: var(--bw) solid var(--line-strong);
  box-shadow: var(--shadow-hard);
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}

.page-home .play-tile::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: var(--felt);
  opacity: 0.7;
  transition: background var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}

.page-home .play-tile:hover,
.page-home .play-tile:focus-within {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: var(--shadow-lift);
}

.page-home .play-tile:hover::after,
.page-home .play-tile:focus-within::after {
  background: var(--cyan);
  opacity: 1;
}

.page-home .play-tile__num {
  position: absolute;
  top: 6px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: clamp(48px, 9vw, 68px);
  font-weight: 700;
  line-height: 1;
  color: var(--coral);
  opacity: 0.2;
  pointer-events: none;
  user-select: none;
}

.page-home .play-tile__name {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--ivory);
}

.page-home .play-tile__text {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--mist);
}

.page-home .play-tile__meta {
  margin: auto 0 0;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--green);
}

.play-home-placeholder {
  display: none;
}

/* ---------- 02 房间人数 ---------- */
.page-home .rooms {
  background: var(--moss);
  border-bottom: var(--home-edge);
}

.page-home .rooms__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: 36px;
}

.page-home .room-cell {
  min-width: 0;
  padding: 20px 18px 22px;
  background: linear-gradient(180deg, rgba(30, 122, 94, 0.18), rgba(7, 11, 24, 0.6));
  border: var(--bw) solid var(--line-strong);
  border-top: var(--bw-thick) solid var(--felt);
  transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}

.page-home .room-cell:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  border-top-color: var(--cyan);
}

.page-home .room-cell__num {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(40px, 8vw, 56px);
  line-height: 1;
  color: var(--ivory);
}

.page-home .room-cell__unit {
  margin: 6px 0 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--mist);
}

.page-home .room-cell__range {
  margin: 16px 0 0;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 20px;
  color: var(--cyan);
}

.page-home .room-cell__desc {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--mist);
}

.page-home .rooms__note {
  margin: 26px 0 0;
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--mist);
  border-left: var(--bw-thick) solid var(--amber);
  background: rgba(245, 185, 66, 0.06);
}

/* ---------- 03 统计说明 ---------- */
.page-home .metrics {
  background: var(--ink);
  border-bottom: var(--home-edge);
}

.page-home .metrics__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

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

.page-home .metrics__lead {
  margin-top: 18px;
  max-width: 56ch;
  font-size: 16px;
  line-height: 1.9;
  color: var(--mist);
}

.page-home .fold-set {
  margin-top: 28px;
}

.page-home .metrics__figure {
  margin: 0;
  aspect-ratio: 4 / 3;
  border: var(--home-edge);
  box-shadow: var(--shadow-hard);
}

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

/* ---------- 04 两步流程 ---------- */
.page-home .flow {
  background:
    linear-gradient(180deg, var(--panel) 0%, var(--ink) 70%);
  border-bottom: var(--home-edge);
}

.page-home .flow__steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.page-home .flow-step {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 24px 22px 22px;
  background: rgba(7, 11, 24, 0.72);
  border: var(--bw) solid var(--line-strong);
  box-shadow: var(--shadow-hard);
}

.page-home .flow-step__no {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--coral);
}

.page-home .flow-step__title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  color: var(--ivory);
}

.page-home .flow-step__text {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--mist);
}

.page-home .flow-step__media {
  margin: auto 0 0;
  border: var(--bw) solid var(--line-strong);
  overflow: hidden;
}

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

.page-home .flow-step__media--tall {
  aspect-ratio: 4 / 5;
}

.page-home .flow-step__media--wide {
  aspect-ratio: 2 / 1;
}

.page-home .flow__note {
  margin: 26px 0 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--mist);
  border-left: var(--bw-thick) solid var(--felt);
  padding-left: 16px;
}

/* ---------- 05 常见问题 ---------- */
.page-home .faq-brief {
  background: var(--moss);
}

.page-home .faq-list {
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  border-top: var(--bw) solid var(--line);
}

.page-home .faq-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 18px 0;
  border-bottom: var(--bw) solid var(--line);
}

.page-home .faq-item__q {
  font-size: 16px;
  font-weight: 700;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  width: fit-content;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.page-home .faq-item__q:hover,
.page-home .faq-item__q:focus-visible {
  color: var(--ivory);
  border-bottom-color: var(--ivory);
}

.page-home .faq-item__a {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--mist);
}

/* 收尾联络 */
.page-home .closing {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  margin-top: 40px;
  padding: 26px 22px;
  background: linear-gradient(135deg, rgba(69, 224, 255, 0.10), rgba(47, 216, 160, 0.05) 60%, rgba(7, 11, 24, 0.9));
  border: var(--bw) solid var(--cyan-line);
  box-shadow: var(--shadow-hard);
}

.page-home .closing__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  color: var(--ivory);
}

.page-home .closing__lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--mist);
}

.page-home .closing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: start;
}

/* ---------- 窄屏到宽屏 ---------- */
@media (min-width: 620px) {
  .page-home .fact-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .fact:first-child {
    grid-column: span 2;
  }

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

  .page-home .play-tile--wide {
    grid-column: span 2;
  }

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

@media (min-width: 900px) {
  .page-home .hero-diag__inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 48px;
  }

  .page-home .hero-diag__title {
    max-width: 16ch;
  }

  .page-home .fact-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 52px;
  }

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

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

  .page-home .metrics__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 48px;
  }

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

  .page-home .faq-item {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 28px;
    align-items: start;
  }

  .page-home .closing {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    align-items: center;
    padding: 34px 32px;
  }

  .page-home .closing__actions {
    justify-content: flex-end;
  }
}

@media (min-width: 1040px) {
  .page-home .play-wall__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
  }

  .page-home .play-tile--wide {
    grid-column: span 6;
    min-height: 172px;
    justify-content: flex-end;
  }

  .page-home .play-tile--wide .play-tile__text {
    max-width: 68ch;
  }

  .page-home .play-tile {
    grid-column: span 3;
  }

  .page-home .play-tile:nth-child(4),
  .page-home .play-tile:nth-child(5),
  .page-home .play-tile:nth-child(6) {
    grid-column: span 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .play-tile,
  .page-home .fact,
  .page-home .room-cell,
  .page-home .link-arrow,
  .page-home .faq-item__q {
    transition: none;
  }

  .page-home .play-tile:hover,
  .page-home .play-tile:focus-within,
  .page-home .fact:hover,
  .page-home .room-cell:hover {
    transform: none;
  }
}
