.page-home {
  --home-gap: clamp(18px, 3vw, 34px);
  --home-card-r: var(--r-lg);
}

.page-home .crumbs {
  margin-block: clamp(14px, 2vw, 22px) 0;
}

.page-home .section {
  padding-block: clamp(48px, 7vw, 92px);
}

.page-home .section__head {
  max-width: 640px;
}

.page-home .section__head .lede {
  margin-top: 14px;
  color: var(--taupe);
}

.page-home h2 {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 4.2vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ---------- 首屏框景 ---------- */
.page-home .home-hero {
  padding-block: clamp(14px, 2vw, 24px) clamp(36px, 5vw, 72px);
}

.page-home .home-hero__frame {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3.4vw, 44px);
  padding: clamp(26px, 3.4vw, 46px);
  border-radius: var(--r-xl);
  background: var(--paper);
  border: 2px solid var(--crimson);
  box-shadow:
    inset 0 0 0 5px var(--paper),
    inset 0 0 0 8px var(--gold),
    inset 0 0 0 10px rgba(155, 44, 36, 0.28),
    var(--shadow-2);
}

.page-home .home-hero__title {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 6vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.page-home .home-hero__mark {
  display: inline-block;
  margin-top: 0.16em;
  padding: 0.04em 0.26em 0.1em;
  border-radius: var(--r-md);
  background: var(--crimson);
  color: var(--cream);
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.16);
}

.page-home .home-hero__lede {
  margin-top: 18px;
  max-width: 34em;
  color: var(--ink);
}

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

.page-home .home-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .home-hero__stats li {
  padding-left: 12px;
  border-left: 3px solid var(--gold);
}

.page-home .home-stat__num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  color: var(--crimson);
}

.page-home .home-stat__label {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--taupe);
}

.page-home .home-hero__media {
  display: grid;
  gap: clamp(14px, 2vw, 20px);
  align-content: start;
}

.page-home .home-hero__shot {
  margin: 0;
  border-radius: var(--home-card-r);
  overflow: hidden;
  background: var(--sand);
  box-shadow: var(--shadow-1);
}

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

.page-home .home-hero__anchors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .home-anchor {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--sand);
  border-left: 3px solid transparent;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.page-home .home-anchor__num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12px;
  color: var(--gold-deep);
}

.page-home .home-anchor:hover,
.page-home .home-anchor:focus-visible {
  transform: translateY(-2px);
  background: var(--paper);
  border-left-color: var(--gold);
}

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

/* ---------- 房间横向主题带 ---------- */
.page-home .home-rooms {
  padding-top: 0;
}

.page-home .home-band {
  margin-top: clamp(24px, 3vw, 36px);
}

.page-home .home-band__art {
  overflow: hidden;
  border-block: 1px solid var(--line);
}

.page-home .home-band__art img {
  display: block;
  width: 100%;
  height: clamp(96px, 16vw, 168px);
  object-fit: cover;
  opacity: 0.92;
}

.page-home .home-band__viewport {
  display: flex;
  gap: clamp(14px, 2vw, 20px);
  margin: 0;
  padding: clamp(20px, 3vw, 30px) var(--gutter) 18px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent);
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent);
}

.page-home .home-band__viewport:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -4px;
}

.page-home .home-room {
  flex: 0 0 min(80vw, 300px);
  scroll-snap-align: start;
  padding: 18px 18px 20px;
  border-radius: var(--home-card-r);
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 6px solid var(--crimson);
  box-shadow: var(--shadow-1);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.page-home .home-room:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}

.page-home .home-room__name {
  margin: 12px 0 4px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  color: var(--ink);
}

.page-home .home-room__who {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--jade);
}

.page-home .home-room__list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
}

.page-home .home-room__list li {
  position: relative;
  padding-left: 14px;
  margin-top: 6px;
}

.page-home .home-room__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--gold);
}

/* ---------- 段位阶梯长卷 ---------- */
.page-home .home-ranks__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(26px, 3.4vw, 46px);
}

.page-home .home-ranks__figure {
  margin: 0;
  border-radius: var(--home-card-r);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}

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

.page-home .home-ranks__figure .media__caption {
  display: block;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--taupe);
  border-top: 1px solid var(--line);
}

.page-home .home-ranks__list {
  margin: clamp(20px, 3vw, 30px) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.page-home .home-rank {
  border-radius: var(--r-md);
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.page-home .home-rank[open] {
  border-color: var(--gold);
  box-shadow: var(--shadow-1);
}

.page-home .home-rank summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

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

.page-home .home-rank summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -3px;
}

.page-home .home-rank__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  color: var(--ink);
}

.page-home .home-rank__hint {
  margin-left: auto;
  font-size: 12px;
  line-height: 1.5;
  text-align: right;
  color: var(--taupe);
}

.page-home .home-rank[open] .home-rank__hint {
  color: var(--gold-deep);
}

.page-home .home-rank__panel {
  padding: 0 16px 16px;
  border-top: 1px dashed var(--line);
}

.page-home .home-rank__panel p {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink);
}

.page-home .home-rank__panel strong {
  color: var(--crimson);
  font-weight: 700;
}

.page-home .home-ranks__more {
  margin: clamp(22px, 3vw, 32px) 0 0;
}

/* ---------- 常来的人 ---------- */
.page-home .home-who {
  padding-top: 0;
}

.page-home .home-who__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(14px, 2vw, 20px);
  margin-top: clamp(20px, 3vw, 30px);
}

.page-home .home-who__card {
  padding: 22px 20px;
  border-radius: var(--home-card-r);
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 6px solid var(--jade);
  box-shadow: var(--shadow-1);
}

.page-home .home-who__card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--ink);
}

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

.page-home .home-who__link {
  margin-top: 12px !important;
}

.page-home .home-who__link a {
  color: var(--indigo);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-home .home-who__link a:hover {
  color: var(--crimson);
}

/* ---------- 活动摘要 ---------- */
.page-home .home-acts__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 34px);
  align-items: end;
}

.page-home .home-acts__figure {
  margin: 0;
  border-radius: var(--home-card-r);
  overflow: hidden;
  background: var(--sand);
  box-shadow: var(--shadow-1);
}

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

.page-home .home-acts__figure .media__caption {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--taupe);
  background: var(--paper);
}

.page-home .home-acts__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(16px, 2.2vw, 22px);
  margin: clamp(24px, 3.4vw, 38px) 0 0;
  padding: 0;
  list-style: none;
}

.page-home .home-act {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px 20px;
  border-radius: var(--home-card-r);
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 6px solid var(--gold);
  box-shadow: var(--shadow-1);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.page-home .home-act:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}

.page-home .home-act .tag {
  align-self: flex-start;
}

.page-home .home-act__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  line-height: 1.4;
  color: var(--ink);
}

.page-home .home-act__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--taupe);
}

.page-home .home-act__meta {
  margin: auto 0 0;
  padding-top: 8px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--gold-deep);
  border-top: 1px dashed var(--line);
}

.page-home .home-acts__more {
  margin: clamp(22px, 3vw, 32px) 0 0;
}

/* ---------- 版本记录 ---------- */
.page-home .home-version__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3.4vw, 44px);
  align-items: start;
}

.page-home .home-version__text p {
  margin: 16px 0 0;
  max-width: 36em;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
}

.page-home .home-version__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-home .home-version__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .home-version__stats li {
  padding: 16px 14px;
  border-radius: var(--r-md);
  background: var(--paper);
  border-bottom: 3px solid var(--indigo);
}

.page-home .home-version__num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 19px;
  color: var(--crimson);
}

.page-home .home-version__label {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--taupe);
}

/* ---------- 底部注单核对说明 ---------- */
.page-home .home-ledger {
  padding-top: 0;
}

.page-home .home-ledger__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
  padding: clamp(22px, 3.2vw, 40px);
  border-radius: var(--r-xl);
  background: var(--paper);
  border: 2px solid var(--crimson);
  box-shadow: var(--shadow-2);
}

.page-home .home-ledger__body p {
  margin: 16px 0 0;
  max-width: 34em;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
}

.page-home .home-ledger__actions {
  margin-top: 22px;
}

.page-home .home-ledger__contact {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-content: start;
}

.page-home .home-ledger__contact li {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: var(--sand);
}

.page-home .home-ledger__label {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--gold-deep);
}

.page-home .home-ledger__value {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  overflow-wrap: anywhere;
}

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .page-home .home-hero__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

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

@media (min-width: 900px) {
  .page-home .home-hero__frame {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    align-items: stretch;
  }

  .page-home .home-acts__head {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .page-home .home-ranks__grid {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  }

  .page-home .home-ranks__art {
    position: sticky;
    top: 120px;
  }

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

  .page-home .home-ledger__card {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: start;
  }

  .page-home .home-ranks__list {
    gap: 8px;
    padding-left: 18px;
    border-left: 2px solid var(--gold);
  }

  .page-home .home-ranks__list > li:nth-child(2) {
    margin-left: 10px;
  }
  .page-home .home-ranks__list > li:nth-child(3) {
    margin-left: 20px;
  }
  .page-home .home-ranks__list > li:nth-child(4) {
    margin-left: 30px;
  }
  .page-home .home-ranks__list > li:nth-child(5) {
    margin-left: 40px;
  }
  .page-home .home-ranks__list > li:nth-child(6) {
    margin-left: 50px;
  }
  .page-home .home-ranks__list > li:nth-child(7) {
    margin-left: 60px;
  }
}

@media (min-width: 1080px) {
  .page-home .home-acts__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-room,
  .page-home .home-act,
  .page-home .home-anchor {
    transition: none;
  }
  .page-home .home-room:hover,
  .page-home .home-act:hover,
  .page-home .home-anchor:hover {
    transform: none;
  }
}
