.page-home {
  --hm-pad: clamp(16px, 2.4vw, 28px);
  --hm-gap: clamp(14px, 2vw, 24px);
  color: var(--paper);
  background:
    radial-gradient(70% 42% at 10% 0%, rgba(232, 180, 90, 0.10), transparent 70%),
    radial-gradient(60% 44% at 92% 14%, rgba(180, 74, 58, 0.12), transparent 72%);
}

.page-home .hm-context {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 clamp(12px, 2vw, 20px);
  overflow-wrap: anywhere;
}

/* ---------- 首屏 ---------- */
.page-home .hm-hero {
  position: relative;
  padding-block: clamp(18px, 3vw, 36px) clamp(30px, 5vw, 68px);
}

.page-home .hm-hero-frame {
  display: grid;
  gap: var(--hm-gap);
  grid-template-columns: minmax(0, 1fr);
}

.page-home .hm-plaque {
  position: relative;
  overflow: hidden;
  padding: var(--hm-pad);
  border: 1px solid var(--line-gold);
  background: linear-gradient(180deg, rgba(17, 26, 46, 0.94), rgba(11, 18, 32, 0.62));
  box-shadow: inset 0 1px 0 rgba(246, 235, 216, 0.06), 0 24px 48px -36px #000;
}

.page-home .hm-plaque::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 3px;
  height: 54px;
  background: var(--gold);
}

.page-home .hm-plaque::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 0;
  width: 46px;
  height: 60%;
  background: repeating-linear-gradient(
    to bottom,
    rgba(232, 180, 90, 0.30) 0 1px,
    transparent 1px 9px
  );
  pointer-events: none;
}

.page-home .hm-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 800;
  color: var(--paper);
  background: var(--brick);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
}

.page-home .hm-plaque-name {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(21px, 2.6vw, 27px);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--gold);
  overflow-wrap: anywhere;
}

.page-home .hm-plaque-ver {
  margin: 6px 0 0;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.page-home .hm-plaque-note {
  margin: 12px 0 0;
  font-family: var(--narrow);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--mint);
}

.page-home .hm-core {
  min-width: 0;
}

.page-home .hm-core h1 {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: clamp(26px, 4.4vw, 46px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--paper);
  overflow-wrap: anywhere;
}

.page-home .hm-lede {
  margin: clamp(12px, 1.6vw, 18px) 0 0;
  max-width: 40em;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.8;
  color: rgba(246, 235, 216, 0.82);
}

.page-home .hm-search-entry {
  position: relative;
  overflow: hidden;
  margin-top: clamp(16px, 2.2vw, 24px);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  background: rgba(11, 18, 32, 0.78);
  box-shadow: 0 28px 56px -44px #000;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.page-home .hm-search-entry:hover,
.page-home .hm-search-entry:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px rgba(79, 227, 208, 0.22), 0 0 34px -12px rgba(79, 227, 208, 0.5);
}

.page-home .hm-search-entry::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  transform: scaleX(0.18);
  transform-origin: left center;
  transition: transform var(--dur) var(--ease);
  pointer-events: none;
}

.page-home .hm-search-entry:hover::after,
.page-home .hm-search-entry:focus-within::after {
  transform: scaleX(1);
}

.page-home .hm-search-tex {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
  mix-blend-mode: screen;
  pointer-events: none;
}

.page-home .hm-search-inner {
  position: relative;
  z-index: 1;
  padding: var(--hm-pad);
}

.page-home .hm-search-cap {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.page-home .hm-search-go {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--narrow);
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 600;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid var(--line-gold);
  padding-bottom: 3px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  overflow-wrap: anywhere;
}

.page-home .hm-search-go:hover,
.page-home .hm-search-go:focus-visible {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.page-home .hm-search-hint {
  margin: clamp(14px, 2vw, 20px) 0 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

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

.page-home .hm-chips .chip {
  font-size: 12px;
  text-decoration: none;
}

.page-home .hm-tags {
  min-width: 0;
  display: grid;
  gap: 12px;
  align-content: start;
}

.page-home .hm-tags-cap {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--amber);
}

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

.page-home .hm-tag {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(17, 26, 46, 0.68);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.page-home .hm-tag:hover,
.page-home .hm-tag:focus-within {
  background: rgba(22, 34, 58, 0.9);
}

.page-home .hm-tag--amber:hover,
.page-home .hm-tag--amber:focus-within {
  border-color: rgba(255, 176, 32, 0.55);
}

.page-home .hm-tag--mint:hover,
.page-home .hm-tag--mint:focus-within {
  border-color: rgba(127, 209, 185, 0.55);
}

.page-home .hm-tag--cyan:hover,
.page-home .hm-tag--cyan:focus-within {
  border-color: rgba(79, 227, 208, 0.55);
}

.page-home .hm-tag .chip {
  justify-self: start;
  font-size: 11px;
}

.page-home .hm-tag-desc {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(246, 235, 216, 0.72);
}

.page-home .hm-plate {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(22, 34, 58, 0.85), rgba(11, 18, 32, 0.9));
  box-shadow: 0 26px 54px -42px #000;
}

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

.page-home .hm-plate--tall {
  aspect-ratio: 3 / 4;
}

.page-home .hm-plate--tall img {
  height: 100%;
}

.page-home .hm-plate--wide {
  aspect-ratio: 4 / 3;
}

.page-home .hm-plate--wide img {
  height: 100%;
}

.page-home .hm-plate-cap {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 6px 10px;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
  background: rgba(11, 18, 32, 0.82);
  border-top: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
}

/* ---------- 街巷段落 ---------- */
.page-home .hm-lane {
  display: grid;
  gap: var(--hm-gap);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.page-home .hm-lane-side {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--brick);
}

.page-home .hm-lane-side h2 {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.3;
  color: var(--paper);
  overflow-wrap: anywhere;
}

.page-home .hm-lane-body {
  min-width: 0;
}

.page-home .hm-lane-body p {
  margin: 0 0 14px;
  max-width: 40em;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.85;
  color: rgba(246, 235, 216, 0.82);
}

.page-home .hm-figures {
  list-style: none;
  margin: clamp(16px, 2vw, 24px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

.page-home .hm-figure {
  display: grid;
  gap: 2px;
  padding: 14px 14px 16px;
  background: rgba(17, 26, 46, 0.86);
}

.page-home .hm-figure-num {
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.page-home .hm-figure-key {
  font-family: var(--narrow);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* ---------- 三层主线 ---------- */
.page-home .hm-tiers h2 {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.3;
  color: var(--paper);
  overflow-wrap: anywhere;
}

.page-home .hm-section-lede {
  margin: 12px 0 clamp(18px, 2.6vw, 28px);
  max-width: 38em;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.8;
  color: rgba(246, 235, 216, 0.78);
}

.page-home .hm-tier-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(10px, 1.6vw, 18px);
}

.page-home .hm-tier {
  position: relative;
  padding: clamp(16px, 2.2vw, 26px) clamp(16px, 2.4vw, 28px);
  border: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(17, 26, 46, 0.95), rgba(11, 18, 32, 0.72));
  box-shadow: 0 22px 44px -38px #000;
}

.page-home .hm-tier::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: var(--tier-c, var(--gold));
}

.page-home .hm-tier--1 { --tier-c: var(--gold); }
.page-home .hm-tier--2 { --tier-c: var(--brick); }
.page-home .hm-tier--3 { --tier-c: var(--mint); }

.page-home .hm-tier-idx {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--tier-c, var(--gold));
}

.page-home .hm-tier-name {
  margin: 6px 0 8px;
  font-family: var(--serif);
  font-size: clamp(17px, 1.9vw, 21px);
  font-weight: 700;
  color: var(--paper);
}

.page-home .hm-tier p {
  margin: 0;
  max-width: 40em;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(246, 235, 216, 0.78);
}

/* ---------- 两条路径 ---------- */
.page-home .hm-paths h2 {
  margin: 0 0 clamp(16px, 2.4vw, 26px);
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.3;
  color: var(--paper);
  overflow-wrap: anywhere;
}

.page-home .hm-path-grid {
  display: grid;
  gap: var(--hm-gap);
  grid-template-columns: minmax(0, 1fr);
}

.page-home .hm-path {
  position: relative;
  padding: clamp(18px, 2.4vw, 30px);
  border: 1px solid var(--line);
  background: rgba(17, 26, 46, 0.72);
  box-shadow: 0 26px 52px -46px #000;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.page-home .hm-path--amber { border-top: 2px solid var(--amber); }
.page-home .hm-path--mint { border-top: 2px solid var(--mint); }

.page-home .hm-path:hover {
  background: rgba(22, 34, 58, 0.9);
}

.page-home .hm-path--amber:hover { border-color: rgba(255, 176, 32, 0.5); }
.page-home .hm-path--mint:hover { border-color: rgba(127, 209, 185, 0.5); }

.page-home .hm-path-cap {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.page-home .hm-path h3 {
  margin: 8px 0 10px;
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  color: var(--paper);
}

.page-home .hm-path p {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(246, 235, 216, 0.78);
}

.page-home .hm-path .btn {
  margin-top: 18px;
}

/* ---------- 认证与联系 ---------- */
.page-home .hm-certify-grid {
  display: grid;
  gap: clamp(18px, 2.6vw, 34px);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

.page-home .hm-certify-body h2 {
  margin: 10px 0 12px;
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.3;
  color: var(--paper);
  overflow-wrap: anywhere;
}

.page-home .hm-certify-body p {
  margin: 0 0 12px;
  max-width: 40em;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(246, 235, 216, 0.8);
}

.page-home .hm-certify-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(14px, 2vw, 22px);
}

.page-home .hm-certify-plate {
  margin: 0;
}

/* ---------- 收束横幅 ---------- */
.page-home .hm-final {
  position: relative;
  margin-top: clamp(30px, 5vw, 64px);
  padding-block: clamp(24px, 3.6vw, 44px) clamp(30px, 4.6vw, 56px);
  border-top: 1px solid var(--line-gold);
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(79, 227, 208, 0.08), transparent 72%),
    linear-gradient(180deg, rgba(17, 26, 46, 0.6), rgba(11, 18, 32, 0.96));
}

.page-home .hm-final-plate {
  margin: 0 0 clamp(16px, 2.4vw, 26px);
  overflow: hidden;
  border: 1px solid var(--line-soft);
}

.page-home .hm-final-plate img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  opacity: 0.9;
}

.page-home .hm-final-row {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

.page-home .hm-final-row h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 800;
  color: var(--paper);
  overflow-wrap: anywhere;
}

.page-home .hm-final-row p {
  margin: 0;
  max-width: 40em;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(246, 235, 216, 0.76);
}

.page-home .hm-final-row .btn {
  justify-self: start;
}

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

  .page-home .hm-final-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (min-width: 900px) {
  .page-home .hm-lane--side-narrow {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.8fr);
    gap: clamp(20px, 3vw, 44px);
  }

  .page-home .hm-lane-side {
    border-bottom: 0;
    border-left: 1px solid var(--brick);
    padding: 0 0 0 clamp(16px, 2vw, 26px);
  }

  .page-home .hm-path-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .page-home .hm-tier--2 {
    margin-left: clamp(0px, 3vw, 44px);
  }

  .page-home .hm-tier--3 {
    margin-left: clamp(0px, 6vw, 88px);
  }

  .page-home .hm-certify-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  }
}

@media (min-width: 960px) {
  .page-home .hm-hero-frame {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr) minmax(0, 1.02fr);
    align-items: start;
  }

  .page-home .hm-plaque {
    position: sticky;
    top: 96px;
  }

  .page-home .hm-tags {
    position: sticky;
    top: 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hm-search-entry,
  .page-home .hm-search-entry::after,
  .page-home .hm-tag,
  .page-home .hm-path,
  .page-home .hm-search-go {
    transition: none;
  }
}
