.page-home {
  --hm-card-w: min(320px, 78vw);
  --hm-line: rgba(216, 207, 190, 0.16);
  background-color: var(--gd-ink);
  color: var(--gd-paper);
  overflow-x: hidden;
}

/* ---------- 首屏 ---------- */
.page-home .hm-hero {
  position: relative;
  padding-block: clamp(18px, 3vw, 32px) clamp(36px, 6vw, 72px);
  background:
    radial-gradient(120% 90% at 10% 0%, rgba(201, 162, 39, 0.18), transparent 62%),
    repeating-linear-gradient(96deg, rgba(245, 239, 225, 0.028) 0 1px, transparent 1px 9px),
    var(--gd-ink);
  border-bottom: 1px solid var(--gd-bronze);
}

.page-home .hm-hero-grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
  margin-top: clamp(14px, 2vw, 22px);
}

.page-home .hm-console {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 3.4vw, 44px);
  border: 1px solid var(--gd-bronze);
  background: linear-gradient(155deg, #242019 0%, var(--gd-coal) 58%, #151412 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}

.page-home .hm-console-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .hm-console-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  filter: grayscale(0.3) saturate(0.72) brightness(0.82);
}

.page-home .hm-console::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.18) 0%, rgba(18, 18, 18, 0.86) 76%);
  pointer-events: none;
}

.page-home .hm-console-body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(14px, 2vw, 22px);
}

.page-home .hm-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .hm-title {
  margin: 0;
  font-size: clamp(29px, 5.4vw, 56px);
  line-height: 1.14;
  letter-spacing: 0.005em;
}

.page-home .hm-lede {
  margin: 0;
  max-width: 52ch;
  color: var(--gd-paper-gray);
}

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

.page-home .hm-hero-note {
  margin: 0;
  padding-left: 12px;
  border-left: 2px solid var(--gd-cinnabar);
  font-size: 13px;
  line-height: 1.7;
  color: var(--gd-mist);
}

/* 左侧任务索引 */
.page-home .hm-index {
  position: relative;
  display: grid;
  gap: 12px;
  align-content: start;
  padding-block: 4px;
}

.page-home .hm-index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.page-home .hm-index-item a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 13px 14px 13px 12px;
  border-left: 2px solid var(--gd-bronze);
  background: linear-gradient(90deg, rgba(201, 162, 39, 0.09), transparent 72%);
  text-decoration: none;
  color: var(--gd-paper);
  transition: border-color 160ms var(--gd-ease), background 240ms var(--gd-ease);
}

.page-home .hm-index-item a:hover,
.page-home .hm-index-item a:focus-visible {
  border-left-color: var(--gd-gold);
  background: linear-gradient(90deg, rgba(201, 162, 39, 0.22), transparent 78%);
  outline: none;
}

.page-home .hm-index-num {
  font-family: var(--gd-font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gd-gold);
  padding-top: 3px;
}

.page-home .hm-index-name {
  display: block;
  font-family: var(--gd-font-display);
  font-size: 17px;
  line-height: 1.3;
}

.page-home .hm-index-desc {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--gd-mist);
}

.page-home .hm-vertical-note {
  display: none;
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--gd-gold-deep);
  writing-mode: vertical-rl;
}

/* ---------- 章节头 ---------- */
.page-home .hm-section-head {
  display: grid;
  gap: 10px;
  max-width: 62ch;
  margin-bottom: clamp(22px, 3vw, 36px);
}

.page-home .hm-section-head .gd-h2 {
  margin: 0;
}

.page-home .hm-section-head .gd-lede {
  margin: 0;
  color: var(--gd-paper-gray);
}

/* ---------- 服务中心索引 ---------- */
.page-home .hm-map {
  background:
    radial-gradient(80% 70% at 88% 8%, rgba(140, 111, 30, 0.16), transparent 60%),
    var(--gd-ink);
}

.page-home .hm-map-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.page-home .hm-map-media {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--gd-bronze);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

.page-home .hm-map-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  filter: saturate(0.6) brightness(0.88);
}

.page-home .hm-panel {
  position: relative;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: clamp(18px, 2.4vw, 26px);
  text-decoration: none;
  color: var(--gd-paper);
  border: 1px solid var(--gd-bronze);
  background: linear-gradient(150deg, rgba(58, 53, 44, 0.55), rgba(18, 18, 18, 0.95));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
  transition: border-color 160ms var(--gd-ease), transform 240ms var(--gd-ease);
}

.page-home .hm-panel::after {
  content: "";
  position: absolute;
  top: 22px;
  right: 16px;
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gd-gold));
  transform: rotate(-45deg);
  opacity: 0.75;
}

.page-home .hm-panel:hover,
.page-home .hm-panel:focus-visible {
  border-color: var(--gd-gold);
  transform: translateY(-2px);
  outline: none;
}

.page-home .hm-panel .gd-h3 {
  margin: 0;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.4;
}

.page-home .hm-panel p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.66;
  color: var(--gd-paper-gray);
}

.page-home .hm-panel-link {
  font-family: var(--gd-font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gd-gold-lift);
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(201, 162, 39, 0.42);
  justify-self: start;
}

.page-home .hm-panel--brand {
  background: linear-gradient(150deg, rgba(201, 162, 39, 0.18), rgba(27, 26, 24, 0.96) 62%);
  border-color: var(--gd-gold-deep);
}

/* ---------- 当前服务状态 ---------- */
.page-home .hm-status {
  background: var(--gd-coal);
  border-block: 1px solid var(--gd-bronze);
}

.page-home .hm-status-inner {
  display: grid;
  gap: clamp(20px, 3vw, 34px);
}

.page-home .hm-status-head {
  display: grid;
  gap: 10px;
  align-content: start;
}

.page-home .hm-status-head .gd-h2 {
  margin: 0;
}

.page-home .hm-status-head .gd-lede {
  margin: 0;
  color: var(--gd-paper-gray);
}

.page-home .hm-stats {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--gd-bronze);
  border: 1px solid var(--gd-bronze);
}

.page-home .hm-stat {
  display: grid;
  gap: 6px;
  padding: clamp(14px, 2vw, 20px);
  background: var(--gd-ink);
}

.page-home .hm-stat dt {
  font-family: var(--gd-font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gd-mist);
}

.page-home .hm-stat dd {
  margin: 0;
  display: grid;
  gap: 5px;
}

.page-home .hm-stat-num {
  font-family: var(--gd-font-display);
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.2;
  color: var(--gd-gold-lift);
}

.page-home .hm-stat-sub {
  font-size: 13px;
  line-height: 1.55;
  color: var(--gd-paper-gray);
}

/* ---------- 额度与版本速览 ---------- */
.page-home .hm-glance {
  background:
    radial-gradient(70% 60% at 4% 90%, rgba(179, 58, 43, 0.12), transparent 62%),
    var(--gd-ink);
}

.page-home .hm-glance-layout {
  display: grid;
  gap: clamp(18px, 3vw, 32px);
}

.page-home .hm-glance-layout > * {
  min-width: 0;
}

.page-home .hm-glance-media {
  margin: 0;
  display: grid;
  gap: 10px;
}

.page-home .hm-shot {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--gd-bronze);
  filter: saturate(0.62) brightness(0.92);
}

.page-home .hm-glance-media .gd-media-caption {
  font-size: 12px;
  line-height: 1.6;
  color: var(--gd-mist);
}

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

.page-home .hm-filter button {
  font-family: var(--gd-font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  color: var(--gd-paper-gray);
  background: transparent;
  border: 1px solid var(--gd-bronze);
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  transition: color 160ms var(--gd-ease), background 160ms var(--gd-ease), border-color 160ms var(--gd-ease);
}

.page-home .hm-filter button:hover,
.page-home .hm-filter button:focus-visible {
  color: var(--gd-paper);
  border-color: var(--gd-gold);
  outline: none;
}

.page-home .hm-filter button[aria-pressed="true"] {
  background: var(--gd-cinnabar);
  border-color: var(--gd-gold);
  color: var(--gd-paper);
}

.page-home .hm-rail {
  list-style: none;
  margin: 0;
  padding: 0 0 16px;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--gd-gold-deep) transparent;
}

.page-home .hm-rail::-webkit-scrollbar {
  height: 4px;
}

.page-home .hm-rail::-webkit-scrollbar-thumb {
  background: var(--gd-gold-deep);
}

.page-home .hm-card {
  flex: 0 0 var(--hm-card-w);
  scroll-snap-align: start;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 20px;
  border: 1px solid var(--gd-bronze);
  border-top: 2px solid var(--gd-gold-deep);
  background: linear-gradient(160deg, rgba(58, 53, 44, 0.5), rgba(18, 18, 18, 0.97));
}

.page-home .hm-card[hidden] {
  display: none;
}

.page-home .hm-card-kicker {
  font-family: var(--gd-font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--gd-gold);
}

.page-home .hm-card-title {
  margin: 0;
  font-family: var(--gd-font-display);
  font-size: 19px;
  line-height: 1.35;
  color: var(--gd-paper);
}

.page-home .hm-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.66;
  color: var(--gd-paper-gray);
}

.page-home .hm-card-link {
  justify-self: start;
  font-family: var(--gd-font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--gd-gold-lift);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(201, 162, 39, 0.4);
}

/* ---------- 联系与收束 ---------- */
.page-home .hm-contact {
  background: linear-gradient(180deg, var(--gd-ink), #17150f 100%);
}

.page-home .hm-contact .gd-rule {
  margin: 0 0 clamp(22px, 3vw, 38px);
}

.page-home .hm-contact-grid {
  display: grid;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
}

.page-home .hm-contact-grid > * {
  min-width: 0;
}

.page-home .hm-contact-media {
  margin: 0;
  overflow: hidden;
}

.page-home .hm-contact-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(0.6) brightness(0.9);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 26px 100%, 0 calc(100% - 26px));
}

.page-home .hm-contact-body {
  display: grid;
  gap: 14px;
  align-content: start;
}

.page-home .hm-contact-body .gd-h2 {
  margin: 0;
}

.page-home .hm-contact-lede {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--gd-paper-gray);
}

.page-home .hm-contact-list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
}

.page-home .hm-contact-list li {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--hm-line);
}

.page-home .hm-contact-label {
  font-family: var(--gd-font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--gd-mist);
  padding-top: 3px;
}

.page-home .hm-contact-value {
  font-size: 14px;
  line-height: 1.55;
  color: var(--gd-paper);
  overflow-wrap: anywhere;
}

.page-home .hm-contact-cta {
  justify-self: start;
  margin-top: 6px;
}

/* ---------- 断点 ---------- */
@media (min-width: 560px) {
  .page-home .hm-stats {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (min-width: 980px) {
  .page-home .hm-hero-grid {
    grid-template-columns: 4fr 8fr;
    align-items: start;
  }

  .page-home .hm-index {
    grid-column: 1;
    grid-row: 1;
    padding-right: 10px;
  }

  .page-home .hm-console {
    grid-column: 2;
    grid-row: 1;
    min-height: 440px;
  }

  .page-home .hm-vertical-note {
    display: block;
    position: absolute;
    top: 44px;
    right: 6px;
    max-height: 180px;
  }

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

  .page-home .hm-status-inner {
    grid-template-columns: 5fr 7fr;
    align-items: start;
    gap: clamp(32px, 4vw, 56px);
  }

  .page-home .hm-glance-layout {
    grid-template-columns: minmax(220px, 300px) 1fr;
    align-items: start;
  }

  .page-home .hm-contact-grid {
    grid-template-columns: 6fr 6fr;
  }
}

@media (min-width: 1280px) {
  .page-home .hm-console {
    min-height: 480px;
  }

  .page-home .hm-card {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hm-panel,
  .page-home .hm-index-item a,
  .page-home .hm-filter button {
    transition: none;
  }

  .page-home .hm-panel:hover,
  .page-home .hm-panel:focus-visible {
    transform: none;
  }
}
