.page-home {
  --home-frame: rgba(35, 42, 54, 0.92);
  --home-amber-soft: rgba(255, 164, 28, 0.07);
  --home-cyan-soft: rgba(34, 225, 255, 0.12);
  display: block;
}

/* ── 首屏框景 ─────────────────────────────── */
.page-home .hero {
  padding: 12px 10px 0;
}

.page-home .hero__shell {
  position: relative;
  border: 1px solid var(--rule);
  background: var(--hold);
  overflow: hidden;
  padding: 40px 18px 26px;
  isolation: isolate;
}

.page-home .hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.26;
  z-index: 0;
}

.page-home .hero__shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 7, 12, 0.5) 0%, rgba(5, 7, 12, 0.86) 52%, var(--ink) 100%),
    radial-gradient(120% 80% at 12% 0%, rgba(34, 225, 255, 0.14) 0%, rgba(34, 225, 255, 0) 62%);
}

.page-home .hero__ticks {
  position: absolute;
  left: 0;
  right: 0;
  height: 9px;
  z-index: 3;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    90deg,
    var(--rule) 0 1px,
    transparent 1px 14px
  );
  opacity: 0.95;
}

.page-home .hero__ticks--top { top: 0; }
.page-home .hero__ticks--bottom { bottom: 0; }

.page-home .hero__corner {
  position: absolute;
  width: 14px;
  height: 14px;
  z-index: 3;
  pointer-events: none;
  border: 0 solid var(--cyan);
  opacity: 0.85;
}
.page-home .hero__corner--tl { top: 8px; left: 8px; border-top-width: 1px; border-left-width: 1px; }
.page-home .hero__corner--tr { top: 8px; right: 8px; border-top-width: 1px; border-right-width: 1px; }
.page-home .hero__corner--bl { bottom: 8px; left: 8px; border-bottom-width: 1px; border-left-width: 1px; }
.page-home .hero__corner--br { bottom: 8px; right: 8px; border-bottom-width: 1px; border-right-width: 1px; }

.page-home .hero__content {
  position: relative;
  z-index: 2;
}

.page-home .hero__crumb {
  margin: 0 0 18px;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--steel);
}

.page-home .hero__eyebrow {
  margin: 0;
  color: var(--cyan);
}

.page-home .hero__title {
  margin: 12px 0 0;
  font-weight: 900;
  color: var(--paper);
}

.page-home .hero__title-en {
  display: block;
  font-size: clamp(1.85rem, 11.2vw, 5.4rem);
  line-height: 0.94;
  letter-spacing: -0.01em;
  text-shadow: 0 0 30px rgba(34, 225, 255, 0.32);
}

.page-home .hero__title-cn {
  display: block;
  margin-top: 10px;
  font-size: clamp(1.1rem, 5.6vw, 2.5rem);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--cyan);
}

.page-home .hero__lede {
  margin: 18px 0 0;
  max-width: 46ch;
  font-size: 0.95rem;
  line-height: 1.78;
  color: var(--steel);
}

/* 合并栏：公告 + 检索 */
.page-home .hero__merge {
  margin-top: 30px;
  display: grid;
  gap: 0;
  border: 1px solid var(--rule);
  background: rgba(11, 16, 24, 0.9);
}

.page-home .merge-news {
  padding: 16px 16px 14px;
  border-bottom: 1px solid var(--rule);
}

.page-home .merge-news__label {
  margin: 0 0 12px;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--steel);
}

.page-home .merge-news__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .merge-news__item + .merge-news__item {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--rule);
}

.page-home .merge-news__title {
  margin: 9px 0 0;
  font-size: 0.96rem;
  line-height: 1.5;
  font-weight: 700;
  color: var(--paper);
  text-shadow: 0 0 14px rgba(34, 225, 255, 0.28);
}

.page-home .merge-news__meta {
  margin: 7px 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--steel);
}

.page-home .merge-search {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-home .merge-search__label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--steel);
}

.page-home .merge-search__field {
  display: flex;
  align-items: center;
  border: 1px solid var(--rule);
  background: var(--ink);
  padding: 11px 12px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.page-home .merge-search__field:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan), 0 0 22px rgba(34, 225, 255, 0.22);
}

.page-home .merge-search__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
}

.page-home .merge-search__input::placeholder {
  color: var(--steel);
}

.page-home .merge-search__note {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--steel);
}

.page-home .merge-search__link {
  font-size: 0.82rem;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(34, 225, 255, 0.4);
  padding-bottom: 2px;
  align-self: flex-start;
}

.page-home .merge-search__link:hover {
  border-bottom-color: var(--cyan);
}

/* ── 三栏动线带 ───────────────────────────── */
.page-home .flow-band {
  margin-top: 34px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--hold);
  padding: 32px 0 0;
}

.page-home .flow-band__title {
  margin: 8px 0 0;
  font-size: clamp(1.3rem, 5.4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--paper);
}

.page-home .flow-band__sub {
  margin: 10px 0 0;
  max-width: 42ch;
  font-size: 0.88rem;
  line-height: 1.72;
  color: var(--steel);
}

.page-home .flow-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 22px clamp(18px, 6vw, 110px) 30px;
  -webkit-overflow-scrolling: touch;
}

.page-home .flow-rail > * {
  scroll-snap-align: start;
  flex: 0 0 80%;
  min-width: 0;
}

.page-home .flow-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--rule);
  background: var(--board);
  padding: 20px 16px 18px;
  min-height: 172px;
}

.page-home .flow-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 68px;
  height: 3px;
  background: var(--grad-edge);
}

.page-home .flow-card__no {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--cyan);
}

.page-home .flow-card__name {
  margin: 0;
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--paper);
}

.page-home .flow-card__desc {
  margin: 0;
  flex: 1 1 auto;
  font-size: 0.85rem;
  line-height: 1.68;
  color: var(--steel);
}

.page-home .flow-card__link {
  font-size: 0.82rem;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(34, 225, 255, 0.35);
  align-self: flex-start;
  padding-bottom: 2px;
}

.page-home .flow-media {
  margin: 0;
  border: 1px solid var(--rule);
  background: var(--board);
  display: flex;
  flex-direction: column;
}

.page-home .flow-media img {
  display: block;
  width: 100%;
  height: 176px;
  object-fit: cover;
}

.page-home .flow-media__cap {
  padding: 12px 14px;
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--steel);
  border-top: 1px solid var(--rule);
}

/* ── 兼容提示 ─────────────────────────────── */
.page-home .compat {
  padding: 46px 0 44px;
}

.page-home .compat__grid {
  display: grid;
  gap: 22px;
}

.page-home .compat__aside img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
}

.page-home .compat__title {
  margin: 8px 0 0;
  font-size: clamp(1.25rem, 5vw, 1.7rem);
  font-weight: 800;
  color: var(--paper);
}

.page-home .compat__list {
  list-style: none;
  margin: 18px 0 20px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-home .compat__item {
  position: relative;
  padding: 13px 14px 13px 20px;
  border: 1px solid rgba(255, 164, 28, 0.32);
  background: var(--home-amber-soft);
  color: var(--amber);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.5;
}

.page-home .compat__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--amber);
}

.page-home .compat__meta {
  margin: 16px 0 0;
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--steel);
}

/* ── 地址簿预览 ───────────────────────────── */
.page-home .book {
  border-top: 1px solid var(--rule);
  background: var(--hold);
  padding: 46px 0 48px;
}

.page-home .book__head {
  display: grid;
  gap: 22px;
}

.page-home .book__title {
  margin: 8px 0 0;
  font-size: clamp(1.3rem, 5.4vw, 1.85rem);
  font-weight: 800;
  color: var(--paper);
}

.page-home .book__lede {
  margin: 12px 0 0;
  max-width: 44ch;
  font-size: 0.88rem;
  line-height: 1.74;
  color: var(--steel);
}

.page-home .book__figure {
  margin: 0;
  border: 1px solid var(--rule);
  background: var(--board);
}

.page-home .book__figure img {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .book-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 24px clamp(18px, 6vw, 110px) 8px;
  -webkit-overflow-scrolling: touch;
}

.page-home .chain-card {
  flex: 0 0 74%;
  scroll-snap-align: start;
  min-width: 0;
  border: 1px solid var(--rule);
  background: var(--board);
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-stack);
}

.page-home .chain-card__code {
  font-size: 1.42rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--cyan);
}

.page-home .chain-card__name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--paper);
}

.page-home .chain-card__meta {
  margin: 0;
  flex: 1 1 auto;
  font-size: 0.8rem;
  line-height: 1.62;
  color: var(--steel);
}

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

.page-home .book__foot {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.page-home .book__note {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.68;
  color: var(--steel);
}

/* ── 意图分流 ─────────────────────────────── */
.page-home .intent {
  padding: 46px 0 50px;
}

.page-home .intent__title {
  margin: 8px 0 0;
  font-size: clamp(1.3rem, 5.4vw, 1.85rem);
  font-weight: 800;
  color: var(--paper);
}

.page-home .intent-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.page-home .intent-row {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 8px 14px;
  padding: 18px 12px;
  border-bottom: 1px solid var(--rule);
  transition: background 0.18s ease;
}

.page-home .intent-row::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--cyan);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.22s ease;
}

.page-home .intent-row:hover::after,
.page-home .intent-row:focus-within::after {
  transform: scaleY(1);
}

.page-home .intent-row:hover {
  background: rgba(34, 225, 255, 0.045);
}

.page-home .intent-row__no {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--steel);
  padding-top: 4px;
}

.page-home .intent-row__body {
  min-width: 0;
}

.page-home .intent-row__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--paper);
}

.page-home .intent-row__hint {
  margin: 7px 0 0;
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--steel);
}

.page-home .intent-row__go {
  grid-column: 2;
  justify-self: start;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--cyan);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid rgba(34, 225, 255, 0.38);
  padding: 7px 13px;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.page-home .intent-row__go:hover {
  background: var(--home-cyan-soft);
  border-color: var(--cyan);
}

/* ── 备案与信任 ───────────────────────────── */
.page-home .trust {
  border-top: 1px solid var(--rule);
  background: var(--hold);
  padding: 46px 0 54px;
}

.page-home .trust__grid {
  display: grid;
  gap: 26px;
}

.page-home .trust__title {
  margin: 8px 0 0;
  font-size: clamp(1.25rem, 5vw, 1.7rem);
  font-weight: 800;
  color: var(--paper);
}

.page-home .trust__text {
  margin: 12px 0 0;
  max-width: 42ch;
  font-size: 0.88rem;
  line-height: 1.76;
  color: var(--steel);
}

.page-home .trust__actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.page-home .trust__link {
  font-size: 0.84rem;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(34, 225, 255, 0.36);
  padding-bottom: 2px;
}

.page-home .trust__link:hover {
  border-bottom-color: var(--cyan);
}

.page-home .trust__list {
  border-top: 1px solid var(--rule);
}

.page-home .trust__list .data-list__value {
  word-break: break-word;
}

/* ── 媒体查询 ─────────────────────────────── */
@media (min-width: 720px) {
  .page-home .flow-rail > * {
    flex: 0 0 46%;
  }
  .page-home .chain-card {
    flex: 0 0 44%;
  }
  .page-home .book__head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 34px;
  }
  .page-home .book__foot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }
  .page-home .book__note {
    max-width: 52ch;
    text-align: right;
  }
}

@media (min-width: 860px) {
  .page-home .hero {
    padding: 18px 22px 0;
  }
  .page-home .hero__shell {
    padding: 62px 46px 42px;
  }
  .page-home .hero__crumb {
    margin-bottom: 26px;
  }
  .page-home .hero__merge {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
  .page-home .merge-news {
    border-bottom: 0;
    border-right: 1px solid var(--rule);
    padding: 20px 22px;
  }
  .page-home .merge-search {
    padding: 20px 22px;
    justify-content: flex-start;
  }
  .page-home .compat__grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: 38px;
  }
  .page-home .trust__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 44px;
    align-items: start;
  }
  .page-home .trust__list {
    border-top: 1px solid var(--rule);
  }
  .page-home .flow-rail > * {
    flex: 0 0 290px;
  }
  .page-home .chain-card {
    flex: 0 0 224px;
  }
  .page-home .intent-row {
    grid-template-columns: 60px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 20px 16px;
  }
  .page-home .intent-row__go {
    grid-column: auto;
    justify-self: end;
  }
}

@media (min-width: 1180px) {
  .page-home .hero {
    padding: 26px 30px 0;
  }
  .page-home .hero__shell {
    padding: 76px 64px 52px;
  }
  .page-home .flow-rail > * {
    flex: 0 0 308px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .intent-row,
  .page-home .intent-row::after,
  .page-home .intent-row__go,
  .page-home .merge-search__field {
    transition: none;
  }
}
