.page-home {
  --home-hair: 1px;
  --home-tilt: 0.8deg;
}

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

.page-home .section {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

/* ---------- 首屏 ---------- */

.page-home .home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--felt);
  color: var(--ivory);
  padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 7vw, 5.5rem);
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image: radial-gradient(circle at 1px 1px, rgba(244, 237, 224, 0.07) 1px, transparent 0);
  background-size: 4px 4px;
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

.page-home .home-hero__kicker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-size: var(--fs-sm);
  letter-spacing: 0.08em;
  color: var(--mist);
}

.page-home .home-hero__slash {
  color: var(--brass);
}

.page-home .home-hero .h-hero {
  margin: 0 0 1.25rem;
  color: var(--ivory);
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.page-home .home-hero__lede {
  max-width: 38ch;
  margin: 0 0 1.75rem;
  font-size: var(--fs-base);
  line-height: 1.78;
  color: rgba(244, 237, 224, 0.86);
}

.page-home .home-hero__status {
  list-style: none;
  margin: 0;
  padding: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.25rem;
  border-top: var(--home-hair) solid var(--brass-line);
  font-size: var(--fs-sm);
  color: var(--mist);
}

/* 首屏舞台 */

.page-home .home-hero__stage {
  position: relative;
  z-index: 0;
}

.page-home .home-hero__stage > * {
  position: relative;
  z-index: 1;
}

.page-home .home-hero__figure {
  margin: 0;
  padding: 0.5rem;
  background: var(--paper);
  border: var(--home-hair) solid var(--ink-line);
  box-shadow: var(--shadow-paper);
  transform: rotate(calc(var(--home-tilt) * -0.75));
}

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

.page-home .home-entry {
  margin-top: -2rem;
  padding: 1.25rem 1.15rem 1.4rem;
  transform: rotate(var(--home-tilt));
  box-shadow: var(--shadow-paper);
}

.page-home .home-entry__label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--felt);
  text-transform: uppercase;
}

.page-home .home-entry__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.page-home .home-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.7rem;
  background: var(--paper);
  border: var(--home-hair) solid var(--ink-line);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.page-home .home-chip:hover {
  border-color: var(--brass);
}

.page-home .home-chip:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

.page-home .home-chip .chip__id {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  padding: 0.05rem 0.28rem;
  border: var(--home-hair) solid currentColor;
  border-radius: 1px;
}

.page-home .home-chip[aria-pressed="true"] {
  background: var(--felt);
  border-color: var(--brass);
  color: var(--ivory);
}

.page-home .home-chip[aria-pressed="true"] .chip__id {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--felt-deep);
}

.page-home .home-entry__notes {
  display: grid;
  gap: 0.9rem;
}

.page-home .home-note + .home-note {
  padding-top: 0.9rem;
  border-top: var(--home-hair) solid var(--ink-line);
}

.page-home .home-note p {
  margin: 0 0 0.45rem;
  font-size: 0.9375rem;
  line-height: 1.72;
  color: var(--ink);
}

.page-home .home-note__link {
  display: inline-block;
  font-size: var(--fs-sm);
  color: var(--dice);
  text-decoration: none;
  border-bottom: var(--home-hair) solid currentColor;
  padding-bottom: 1px;
}

.page-home .home-note__link:hover {
  color: var(--felt);
}

/* ---------- 上手三步 ---------- */

.page-home .home-steps {
  background: var(--paper);
  color: var(--ink);
}

.page-home .home-steps__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 2.5rem);
}

.page-home .home-steps__intro .prose {
  max-width: 40ch;
}

.page-home .home-steps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.page-home .home-steps__list > li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  padding-bottom: 1.25rem;
  border-bottom: var(--home-hair) dashed var(--ink-line);
}

.page-home .home-steps__list > li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.page-home .step__num {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--ivory);
  border: var(--home-hair) solid var(--brass);
  color: var(--felt);
  font-size: 0.875rem;
  font-weight: 700;
}

.page-home .home-steps__list .h-sub {
  margin: 0.25rem 0 0.4rem;
}

.page-home .home-steps__list p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.75;
}

.page-home .home-steps__figure {
  margin: 0;
  padding: 0.55rem 0.55rem 0.85rem;
  background: var(--ivory);
  border: var(--home-hair) solid var(--ink-line);
  box-shadow: var(--shadow-paper);
  transform: rotate(var(--home-tilt));
}

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

.page-home .home-steps__figure figcaption {
  margin-top: 0.6rem;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--felt);
}

/* ---------- 玩法族主题带 ---------- */

.page-home .home-band {
  background: var(--felt-mid);
  color: var(--ivory);
  padding-block: clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}

.page-home .home-band__head .prose {
  max-width: 46ch;
  color: rgba(244, 237, 224, 0.82);
}

.page-home .home-band__rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(15rem, 20rem);
  gap: 1.1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1.75rem clamp(1rem, 4vw, 3rem) 1.5rem;
  margin-top: 0.5rem;
}

.page-home .home-band__rail::-webkit-scrollbar {
  height: 6px;
}

.page-home .home-band__rail::-webkit-scrollbar-thumb {
  background: var(--brass-soft);
}

.page-home .home-band__rail > * {
  scroll-snap-align: start;
}

.page-home .home-band__rail:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: -2px;
}

.page-home .family-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.6rem 1.25rem 1.25rem;
  background: var(--paper);
  color: var(--ink);
  border: var(--home-hair) solid var(--ink-line);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.page-home .family-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brass), rgba(201, 162, 39, 0) 85%);
}

.page-home .family-card:hover {
  transform: translateY(-2px);
  border-color: var(--brass);
  box-shadow: var(--shadow-paper-hover);
}

.page-home .family-card__plate {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--dice);
}

.page-home .family-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-lg);
  letter-spacing: -0.01em;
}

.page-home .family-card__desc {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.72;
}

.page-home .family-card__meta {
  margin: auto 0 0;
  padding-top: 0.6rem;
  border-top: var(--home-hair) solid var(--ink-line);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--felt);
}

/* 房型条 */

.page-home .home-band__rooms {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  margin-top: 1.5rem;
  align-items: center;
}

.page-home .room-strip__figure {
  margin: 0;
  padding: 0.4rem;
  background: var(--felt-deep);
  border: var(--home-hair) solid var(--brass-line);
}

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

.page-home .room-strip__body .h-sub {
  margin: 0 0 0.75rem;
  color: var(--ivory);
}

.page-home .room-strip__list {
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.page-home .room-strip__list > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.2rem;
  padding-bottom: 0.85rem;
  border-bottom: var(--home-hair) solid var(--brass-line);
}

.page-home .room-strip__list > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.page-home .room-strip__list dt {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--brass);
}

.page-home .room-strip__list dd {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.72;
  color: rgba(244, 237, 224, 0.84);
}

.page-home .room-strip__note {
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: var(--home-hair) dashed var(--brass-line);
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--mist);
}

/* ---------- 结算速查 ---------- */

.page-home .home-score {
  background: var(--ivory);
  color: var(--ink);
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.page-home .home-score__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}

.page-home .home-score__figure {
  margin: 0;
  padding: 0.6rem;
  background: var(--paper);
  border: var(--home-hair) solid var(--ink-line);
  box-shadow: var(--shadow-paper);
  transform: rotate(calc(var(--home-tilt) * -1));
}

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

.page-home .home-score__body .prose {
  max-width: 42ch;
}

.page-home .home-score__points {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.page-home .home-score__points li {
  padding-left: 0.9rem;
  border-left: 2px solid var(--brass);
  font-size: 0.9375rem;
  line-height: 1.72;
}

.page-home .home-score__points .mono {
  display: inline-block;
  min-width: 5.5rem;
  margin-right: 0.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--felt);
}

.page-home .home-score__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.page-home .home-score__tip {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--felt);
}

/* ---------- 索引收束条 ---------- */

.page-home .home-index {
  background: var(--felt-deep);
  color: var(--ivory);
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
  border-top: var(--home-hair) solid var(--brass-line);
}

.page-home .home-index__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
}

.page-home .home-index__lead p {
  max-width: 40ch;
  margin: 1rem 0 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: rgba(244, 237, 224, 0.82);
}

.page-home .home-index__lead .h-section {
  color: var(--ivory);
}

.page-home .home-index__links {
  display: grid;
  gap: 0.25rem;
  align-content: start;
}

.page-home .home-index__links a {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 0.5rem;
  color: var(--ivory);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  border-bottom: var(--home-hair) solid var(--brass-line);
  transition: color 160ms ease, background-color 160ms ease;
}

.page-home .home-index__links a:hover {
  color: var(--brass);
  background: rgba(201, 162, 39, 0.08);
}

.page-home .home-index__sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-sm);
  color: var(--mist);
}

/* ---------- 响应式 ---------- */

@media (min-width: 640px) {
  .page-home .room-strip__list > div {
    grid-template-columns: auto 1fr;
    gap: 0.25rem 1rem;
    align-items: baseline;
  }

  .page-home .room-strip__list dt {
    white-space: nowrap;
  }
}

@media (min-width: 880px) {
  .page-home .home-steps__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    grid-template-areas:
      "intro intro"
      "list figure";
    column-gap: clamp(2rem, 5vw, 4rem);
    row-gap: clamp(2rem, 4vw, 3rem);
    align-items: start;
  }

  .page-home .home-steps__intro {
    grid-area: intro;
  }

  .page-home .home-steps__list {
    grid-area: list;
  }

  .page-home .home-steps__figure {
    grid-area: figure;
    margin-top: 3.5rem;
  }

  .page-home .home-band__rooms {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  }

  .page-home .home-score__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  }

  .page-home .home-index__inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    align-items: start;
  }
}

@media (min-width: 960px) {
  .page-home .home-hero__inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
  }

  .page-home .home-hero__stage::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: -1.5rem;
    right: -2rem;
    bottom: -2rem;
    left: -1rem;
    background: var(--ivory);
    clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%);
  }

  .page-home .home-entry {
    margin-top: -3rem;
    margin-left: -1.75rem;
    margin-right: 0.75rem;
  }

  .page-home .home-hero__figure {
    transform: rotate(calc(var(--home-tilt) * -1));
  }
}

@media (min-width: 1180px) {
  .page-home .home-band__rail {
    grid-auto-columns: minmax(17rem, 22rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .family-card,
  .page-home .home-chip,
  .page-home .home-note__link,
  .page-home .home-index__links a {
    transition: none;
  }

  .page-home .family-card:hover {
    transform: none;
  }

  .page-home .home-hero__figure,
  .page-home .home-entry,
  .page-home .home-steps__figure,
  .page-home .home-score__figure {
    transform: none;
  }
}
