.page-home .hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-bottom: clamp(32px, 6vw, 72px);
}

.page-home .hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.34;
}

.page-home .hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.page-home .hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 11, 31, 0.45) 0%, rgba(7, 11, 31, 0.9) 68%, var(--bg) 100%),
    radial-gradient(120% 80% at 82% 8%, rgba(53, 230, 208, 0.14), transparent 60%);
}

.page-home .hero__inner {
  padding-top: clamp(20px, 4vw, 44px);
}

.page-home .hero__frame {
  position: relative;
  margin-top: clamp(16px, 3vw, 28px);
  padding: clamp(20px, 4vw, 48px);
  border: 1px solid var(--line);
  background: linear-gradient(158deg, rgba(15, 23, 54, 0.88) 0%, rgba(7, 11, 31, 0.74) 68%);
}

.page-home .hero__frame::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: clamp(72px, 16%, 168px);
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.page-home .hero__frame::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  width: clamp(72px, 16%, 168px);
  height: 2px;
  background: linear-gradient(270deg, var(--gold), transparent);
}

.page-home .hero__title {
  margin: 0.4em 0 0;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.page-home .hero__lede {
  max-width: 44ch;
  margin-top: clamp(16px, 2.4vw, 26px);
  color: var(--muted);
}

/* 入口矩阵 */
.page-home .gate-matrix {
  display: grid;
  gap: 1px;
  margin-top: clamp(28px, 4.4vw, 52px);
  border: 1px solid var(--line);
  background: var(--line);
}

.page-home .gate {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: clamp(18px, 2.6vw, 30px);
  background: var(--surface);
  text-decoration: none;
  transition: background 0.3s var(--ease);
}

.page-home .gate::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent, var(--cyan));
  opacity: 0.45;
  transition: opacity 0.3s var(--ease);
}

.page-home .gate:hover,
.page-home .gate:focus-visible {
  background: var(--surface-2);
}

.page-home .gate:hover::before,
.page-home .gate:focus-visible::before {
  opacity: 1;
}

.page-home .gate--cyan { --accent: var(--cyan); }
.page-home .gate--violet { --accent: var(--violet-soft); }
.page-home .gate--gold { --accent: var(--gold); }
.page-home .gate--service { --accent: var(--service); }

.page-home .gate__no {
  font-size: 12px;
  letter-spacing: 0.26em;
  color: var(--accent, var(--cyan));
}

.page-home .gate__kicker {
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--dim);
}

.page-home .gate__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.28;
  color: var(--ink);
}

.page-home .gate__desc {
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .gate__go {
  margin-top: auto;
  padding-top: 16px;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--accent, var(--cyan));
}

.page-home .gate__go::after {
  content: " →";
}

/* 服务范围 */
.page-home .scope-grid {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.page-home .scope-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(20px, 2.8vw, 32px);
  background: var(--surface);
}

.page-home .scope-card__no {
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--dim);
}

.page-home .scope-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.4;
  color: var(--ink);
}

.page-home .scope-card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
}

.page-home .scope-card__img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  object-position: center 24%;
  border: 1px solid var(--line);
  filter: saturate(0.9);
}

/* 中段过渡 */
.page-home .band {
  position: relative;
}

.page-home .band .wrap {
  position: relative;
}

.page-home .band .wrap::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 0;
  width: min(300px, 44%);
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  transform: rotate(12deg);
  transform-origin: left center;
  pointer-events: none;
}

.page-home .band__cap {
  margin: clamp(18px, 2.6vw, 28px) 0 0;
  font-size: 15px;
  line-height: 1.8;
  max-width: 42ch;
}

/* 栏目航线 */
.page-home .rail--cols {
  display: flex;
  gap: 1px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--line);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.page-home .nav-card {
  position: relative;
  display: flex;
  flex: 0 0 min(272px, 76vw);
  flex-direction: column;
  gap: 10px;
  padding: 26px 22px 30px;
  background: var(--surface);
  text-decoration: none;
  scroll-snap-align: start;
  transition: background 0.3s var(--ease);
}

.page-home .nav-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 3px;
  background: var(--accent, var(--cyan));
}

.page-home .nav-card:hover,
.page-home .nav-card:focus-visible {
  background: var(--surface-2);
}

.page-home .nav-card--cyan { --accent: var(--cyan); }
.page-home .nav-card--violet { --accent: var(--violet-soft); }
.page-home .nav-card--gold { --accent: var(--gold); }
.page-home .nav-card--service { --accent: var(--service); }
.page-home .nav-card--coral { --accent: var(--coral); }

.page-home .nav-card__no {
  font-size: 12px;
  letter-spacing: 0.26em;
  color: var(--accent, var(--cyan));
}

.page-home .nav-card__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.page-home .nav-card__latest {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .nav-card__go {
  margin-top: auto;
  padding-top: 14px;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--accent, var(--cyan));
}

/* 站内索引 */
.page-home .index-layout {
  display: grid;
  gap: clamp(18px, 3vw, 32px);
}

.page-home .index-side img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  opacity: 0.62;
}

.page-home .index-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.page-home .index-table a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(53, 230, 208, 0.3);
}

.page-home .index-table a:hover,
.page-home .index-table a:focus-visible {
  border-bottom-color: var(--cyan);
}

.page-home .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 通道状态 */
.page-home .status-grid {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.page-home .status-cell {
  padding: clamp(20px, 2.6vw, 30px);
  background: var(--surface);
}

.page-home .status-cell__k {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--ink);
}

.page-home .status-cell__v {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 38ch;
}

.page-home .outro {
  margin-top: clamp(28px, 4vw, 52px);
  padding: clamp(24px, 3.4vw, 40px);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  background: linear-gradient(120deg, rgba(242, 179, 61, 0.07), transparent 62%), var(--surface);
}

.page-home .outro__lead {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(19px, 2vw, 25px);
  letter-spacing: 0.02em;
  color: var(--ink);
}

.page-home .outro__text {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

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

/* 响应式 */
@media (min-width: 700px) {
  .page-home .status-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 820px) {
  .page-home .gate-matrix {
    grid-template-columns: 1.25fr 0.85fr;
  }

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

  .page-home .scope-card--media .scope-card__img {
    height: 200px;
  }
}

@media (min-width: 900px) {
  .page-home .index-layout {
    grid-template-columns: 196px minmax(0, 1fr);
  }
}

@media (min-width: 1020px) {
  .page-home .status-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 520px) {
  .page-home .gate__desc,
  .page-home .scope-card__text {
    font-size: 14.5px;
  }

  .page-home .nav-card {
    flex-basis: 82vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .gate,
  .page-home .nav-card {
    transition: none;
  }

  .page-home .band .wrap::before {
    transform: none;
  }
}
