.page-home {
  --home-surface: rgba(15, 36, 56, 0.6);
  --home-surface-soft: rgba(24, 58, 87, 0.42);
  --home-text: rgba(243, 235, 221, 0.78);
  --home-text-soft: rgba(243, 235, 221, 0.62);
  color: var(--ivory);
  font-family: var(--font-sans);
  padding-bottom: clamp(36px, 7vw, 80px);
  background:
    radial-gradient(120% 55% at 50% 0%, rgba(24, 58, 87, 0.6) 0%, rgba(8, 21, 33, 0) 62%),
    radial-gradient(70% 36% at 50% 100%, rgba(166, 58, 43, 0.16) 0%, rgba(4, 8, 13, 0) 72%),
    var(--ink-950);
}

.page-home .shell {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.page-home .stage {
  padding-block: clamp(52px, 9vw, 104px);
}

.page-home .stage + .stage {
  padding-top: 0;
}

/* ---------- 通用标题组 ---------- */
.page-home .kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.page-home .head {
  max-width: 46rem;
}

.page-home .head--center {
  margin-inline: auto;
  text-align: center;
}

.page-home .head-title,
.page-home .head h2 {
  margin: 0.5em 0 0;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(1.55rem, 4.4vw, 2.5rem);
  line-height: 1.36;
  letter-spacing: 0.02em;
  color: var(--ivory);
}

.page-home .head p,
.page-home .head-lead {
  margin: 0.95em 0 0;
  font-size: clamp(0.94rem, 1.7vw, 1.03rem);
  line-height: 1.95;
  color: var(--home-text);
  max-width: 38em;
}

.page-home .head--center p {
  margin-inline: auto;
}

/* ---------- 首屏门洞 ---------- */
.page-home .hero {
  padding-top: clamp(12px, 2.6vw, 24px);
}

.page-home .hero__frame {
  position: relative;
  width: calc(100% - var(--gutter) * 2);
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(48px, 8vw, 92px) clamp(18px, 4.6vw, 62px) clamp(26px, 4.6vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(15, 36, 56, 0.86), rgba(4, 8, 13, 0.92));
  overflow: hidden;
  text-align: center;
}

.page-home .hero__frame::before {
  content: "";
  position: absolute;
  inset: clamp(9px, 1.8vw, 18px);
  border: 1px solid var(--line);
  border-radius: 260px 260px var(--radius-lg) var(--radius-lg);
  pointer-events: none;
}

.page-home .hero__frame::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -34%;
  width: min(760px, 130%);
  aspect-ratio: 1 / 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(232, 199, 102, 0.15) 0%, rgba(232, 199, 102, 0) 64%);
  pointer-events: none;
}

.page-home .hero__lintel {
  position: absolute;
  left: 50%;
  top: 0;
  width: min(440px, 64%);
  height: 16px;
  transform: translateX(-50%);
  background-image: repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 14px);
  opacity: 0.85;
}

.page-home .hero__stamp {
  position: relative;
  z-index: 1;
  margin: 0 0 clamp(18px, 3.4vw, 30px);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  color: var(--gold);
  text-transform: uppercase;
}

.page-home .hero__ring {
  position: relative;
  z-index: 1;
  width: clamp(78px, 15vw, 122px);
  margin: 0 auto clamp(16px, 3vw, 26px);
  color: var(--gold);
  animation: home-ring-breathe 7s ease-in-out infinite;
}

.page-home .hero__ring svg {
  display: block;
  width: 100%;
  height: auto;
}

@keyframes home-ring-breathe {
  0%, 100% { opacity: 0.78; }
  50% { opacity: 1; }
}

.page-home .hero h1 {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-width: 15em;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(2rem, 6.6vw, 4rem);
  line-height: 1.22;
  letter-spacing: 0.05em;
  color: var(--ivory);
  text-shadow: 0 0 34px rgba(201, 162, 39, 0.24);
}

.page-home .hero h1::after {
  content: "";
  display: block;
  width: 58px;
  height: 2px;
  margin: clamp(16px, 3vw, 24px) auto 0;
  background: linear-gradient(90deg, rgba(201, 162, 39, 0) 0%, var(--gold) 50%, rgba(201, 162, 39, 0) 100%);
}

.page-home .hero__lead {
  position: relative;
  z-index: 1;
  max-width: 34em;
  margin: clamp(18px, 3.2vw, 28px) auto 0;
  font-size: clamp(0.94rem, 1.7vw, 1.06rem);
  line-height: 1.95;
  color: var(--home-text);
}

.page-home .hero__cta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: clamp(22px, 3.8vw, 34px);
}

.page-home .hero__media {
  position: relative;
  z-index: 1;
  margin: clamp(28px, 4.8vw, 48px) auto 0;
  max-width: 880px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-900);
}

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

.page-home .hero__jump {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: clamp(20px, 3.6vw, 32px);
}

.page-home .hero__jump a {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.22s var(--ease), background-color 0.22s var(--ease), border-color 0.22s var(--ease);
}

.page-home .hero__jump a:hover,
.page-home .hero__jump a:focus-visible,
.page-home .hero__jump a[aria-current="true"],
.page-home .hero__jump a.is-active {
  color: var(--ink-950);
  background: var(--gold);
  border-color: var(--gold);
}

/* ---------- 六个入口 ---------- */
.page-home .gateways {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin: clamp(28px, 4.6vw, 46px) 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
  overflow: hidden;
}

.page-home .gateways__link {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "num name"
    "num desc";
  gap: 3px 16px;
  align-content: center;
  min-height: 104px;
  padding: clamp(20px, 3.2vw, 30px) clamp(18px, 3vw, 28px);
  background: var(--home-surface);
  text-decoration: none;
  transition: background-color 0.24s var(--ease);
}

.page-home .gateways__link:hover,
.page-home .gateways__link:focus-visible {
  background: rgba(24, 58, 87, 0.82);
}

.page-home .gateways__num {
  grid-area: num;
  align-self: center;
  font-family: var(--font-mono);
  font-size: 1.02rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  transition: color 0.24s var(--ease);
}

.page-home .gateways__link:hover .gateways__num,
.page-home .gateways__link:focus-visible .gateways__num {
  color: var(--gold-light);
}

.page-home .gateways__name {
  grid-area: name;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.14rem;
  letter-spacing: 0.04em;
  color: var(--ivory);
}

.page-home .gateways__desc {
  grid-area: desc;
  font-size: 0.83rem;
  line-height: 1.7;
  color: var(--home-text-soft);
}

/* ---------- 编号索引长廊 ---------- */
.page-home .index-hall {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4.6vw, 52px);
  align-items: start;
}

.page-home .index-hall__figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.page-home .index-hall__figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
}

.page-home .index-list {
  margin: clamp(22px, 3.8vw, 34px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.page-home .index-list__item {
  border-bottom: 1px solid var(--line);
}

.page-home .index-list__link {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  grid-template-areas:
    "num label"
    "num note";
  gap: 2px 14px;
  align-items: center;
  padding: 14px 2px;
  text-decoration: none;
  color: var(--ivory);
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease), background-color 0.2s var(--ease);
}

.page-home .index-list__link:hover,
.page-home .index-list__link:focus-visible {
  padding-left: 10px;
  background: rgba(24, 58, 87, 0.42);
}

.page-home .index-list__num {
  grid-area: num;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.page-home .index-list__label {
  grid-area: label;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
}

.page-home .index-list__note {
  grid-area: note;
  font-size: 0.79rem;
  line-height: 1.65;
  color: var(--home-text-soft);
}

/* ---------- 帮助分类 ---------- */
.page-home .help-hall {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4.6vw, 50px);
  align-items: center;
}

.page-home .help-hall__figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  order: -1;
}

.page-home .help-hall__figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
}

.page-home .tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: clamp(20px, 3.4vw, 30px) 0 0;
  padding: 0;
  list-style: none;
}

.page-home .tag-cloud .tag {
  display: inline-block;
  padding: 8px 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: var(--ivory);
  text-decoration: none;
  transition: border-color 0.22s var(--ease), background-color 0.22s var(--ease), color 0.22s var(--ease);
}

.page-home .tag-cloud .tag:hover,
.page-home .tag-cloud .tag:focus-visible {
  border-color: var(--line-strong);
  background: rgba(201, 162, 39, 0.16);
  color: var(--gold-light);
}

.page-home .help-hall .button--text {
  margin-top: clamp(18px, 3vw, 26px);
}

/* ---------- 版本 ---------- */
.page-home .version-hall {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4.4vw, 46px);
  align-items: center;
}

.page-home .version-hall__card {
  padding: clamp(24px, 4.2vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(160deg, rgba(24, 58, 87, 0.6), rgba(4, 8, 13, 0.72));
}

.page-home .version-hall__code {
  margin: 0.55em 0 0;
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 9vw, 4.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--gold-light);
  text-shadow: 0 0 28px rgba(232, 199, 102, 0.32);
}

.page-home .version-hall__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(20px, 3.4vw, 30px);
}

.page-home .version-hall__figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.page-home .version-hall__figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
}

/* ---------- 预约与来访 ---------- */
.page-home .visit-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 44px);
  padding: clamp(24px, 4.4vw, 48px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(90% 70% at 8% 0%, rgba(201, 162, 39, 0.12) 0%, rgba(4, 8, 13, 0) 68%),
    rgba(15, 36, 56, 0.72);
}

.page-home .visit-card .button--gold {
  margin-top: clamp(18px, 3vw, 26px);
}

.page-home .plaque {
  display: grid;
  gap: 1px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
  overflow: hidden;
}

.page-home .plaque__row {
  display: grid;
  gap: 4px;
  padding: 15px clamp(16px, 3vw, 24px);
  background: rgba(8, 21, 33, 0.86);
}

.page-home .plaque__row dt {
  font-family: var(--font-mono);
  font-size: 0.69rem;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.page-home .plaque__row dd {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.75;
  color: var(--ivory);
  word-break: break-word;
}

.page-home .plaque__row dd a {
  color: var(--ivory);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-home .plaque__row dd a:hover,
.page-home .plaque__row dd a:focus-visible {
  color: var(--gold-light);
  border-color: var(--gold);
}

.page-home .footnote {
  margin: clamp(18px, 3vw, 26px) 0 0;
  font-size: 0.82rem;
  line-height: 1.85;
  color: var(--home-text-soft);
  max-width: 44em;
}

/* ---------- 媒体查询 ---------- */
@media (min-width: 700px) {
  .page-home .gateways {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .page-home .index-list__link {
    grid-template-columns: 3rem 11rem 1fr;
    grid-template-areas: "num label note";
    gap: 16px;
    padding: 16px 2px;
  }
}

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

  .page-home .index-hall {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
    gap: clamp(36px, 5vw, 64px);
  }

  .page-home .index-hall__figure {
    position: sticky;
    top: calc(var(--header-h) + 28px);
  }

  .page-home .help-hall {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  }

  .page-home .help-hall__figure {
    order: 0;
  }

  .page-home .version-hall {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
  }

  .page-home .visit-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
    align-items: start;
  }
}

@media (min-width: 1180px) {
  .page-home .hero__frame {
    padding-bottom: clamp(34px, 3vw, 54px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero__ring {
    animation: none;
  }

  .page-home .hero__jump a,
  .page-home .gateways__link,
  .page-home .gateways__num,
  .page-home .index-list__link,
  .page-home .tag-cloud .tag,
  .page-home .plaque__row dd a {
    transition: none;
  }
}
