.page-home {
  --home-cut: 32px;
  --home-gap: clamp(20px, 3vw, 42px);
  position: relative;
  color: var(--text);
}

.page-home img {
  max-width: 100%;
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  padding: clamp(104px, 15vh, 172px) 0 clamp(40px, 6vw, 72px);
  background-color: var(--ink-950);
  background-image:
    radial-gradient(110% 80% at 88% 6%, rgba(22, 208, 124, .16), transparent 60%),
    radial-gradient(70% 60% at 0% 92%, rgba(255, 91, 46, .11), transparent 62%),
    linear-gradient(to right, rgba(79, 209, 255, .06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(79, 209, 255, .06) 1px, transparent 1px);
  background-size: auto, auto, 72px 72px, 72px 72px;
  overflow: hidden;
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(22, 208, 124, .55) 32%, rgba(79, 209, 255, .45) 68%, transparent);
}

.page-home .home-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-gap);
  align-items: end;
}

.page-home .home-hero__eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--green);
}

.page-home .home-hero__title {
  margin: 20px 0 0;
  font-size: clamp(2.4rem, 8.4vw, 5.4rem);
  line-height: 1.04;
  letter-spacing: -.02em;
  font-weight: 900;
  color: var(--white);
}

.page-home .home-hero__lead {
  margin: 24px 0 0;
  max-width: min(100%, 560px);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.8;
  color: var(--text);
}

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

.page-home .home-hero__hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 32px;
  padding: 14px 18px;
  background: rgba(18, 36, 56, .82);
  border-left: 3px solid var(--orange);
  font-size: 14px;
  line-height: 1.7;
}

.page-home .home-hero__hint p {
  margin: 0;
  flex: 1 1 220px;
  color: var(--text);
}

.page-home .home-hero__hint-link {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--green);
  text-decoration: none;
  white-space: nowrap;
}

.page-home .home-hero__hint-link:hover {
  text-decoration: underline;
}

/* 状态面板 */
.page-home .home-status {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(330px, 62vw, 460px);
  padding: 30px 26px 34px;
  background: var(--ink-800);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--home-cut)), calc(100% - var(--home-cut)) 100%, 0 100%);
  overflow: hidden;
}

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

.page-home .home-status::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10, 20, 32, .35) 0%, rgba(10, 20, 32, .86) 52%, rgba(10, 20, 32, .97) 100%);
  pointer-events: none;
}

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

.page-home .home-status__label {
  margin: 0;
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--green);
}

.page-home .home-status__state {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 0;
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 800;
  line-height: 1.4;
  color: var(--white);
}

.page-home .home-status__list {
  display: grid;
  gap: 11px;
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

.page-home .home-status__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
}

.page-home .home-status__row dt {
  font-size: 13px;
  color: var(--muted);
}

.page-home .home-status__row dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--white);
  text-align: right;
}

.page-home .home-status__more {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.page-home .home-status__more summary {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--green);
  cursor: pointer;
  list-style: none;
}

.page-home .home-status__more summary::-webkit-details-marker {
  display: none;
}

.page-home .home-status__more summary::before {
  content: "＋";
  font-family: var(--font-mono);
  font-size: 12px;
}

.page-home .home-status__more[open] summary::before {
  content: "－";
}

.page-home .home-status__more p {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--text);
}

/* ---------- 索引条 ---------- */
.page-home .home-index {
  position: sticky;
  top: 66px;
  z-index: 6;
  background: rgba(13, 27, 42, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.page-home .home-index__list {
  display: flex;
  gap: clamp(16px, 3vw, 36px);
  margin: 0;
  padding: 13px 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.page-home .home-index__list::-webkit-scrollbar {
  display: none;
}

.page-home .home-index__link {
  display: block;
  white-space: nowrap;
  padding-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-home .home-index__link:hover,
.page-home .home-index__link:focus-visible,
.page-home .home-index__link[aria-current="true"] {
  color: var(--white);
  border-bottom-color: var(--green);
}

/* ---------- 区块骨架 ---------- */
.page-home .home-section {
  position: relative;
  padding: clamp(56px, 8vw, 104px) 0;
}

.page-home .home-section + .home-section {
  border-top: 1px solid var(--line-soft);
}

.page-home .home-fix {
  background: linear-gradient(180deg, rgba(18, 36, 56, .62) 0%, rgba(10, 20, 32, 0) 72%);
}

.page-home .home-rebuild {
  background: rgba(18, 36, 56, .42);
}

.page-home .home-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-bottom: clamp(28px, 4vw, 46px);
}

.page-home .home-head__index {
  margin: 0;
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--green);
}

.page-home .home-head__title {
  margin: 0;
  font-size: clamp(1.5rem, 4.4vw, 2.5rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.015em;
  color: var(--white);
}

.page-home .home-head__lead {
  margin: 14px 0 0;
  max-width: 620px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
}

/* ---------- 两栏内容 ---------- */
.page-home .home-today__figure {
  margin: 0 0 clamp(24px, 3.5vw, 40px);
}

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

.page-home .home-col {
  padding: 26px 24px 30px;
  background: var(--ink-800);
  border-top: 2px solid var(--green-deep);
}

.page-home .home-col--data {
  background-color: var(--ink-800);
  background-image: linear-gradient(158deg, rgba(79, 209, 255, .09) 0%, rgba(18, 36, 56, .92) 46%);
  border-top-color: var(--cyan);
}

.page-home .home-col__label {
  margin: 0;
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--green);
}

.page-home .home-col--data .home-col__label {
  color: var(--cyan);
}

.page-home .home-col__title {
  margin: 12px 0 0;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--white);
}

.page-home .home-col__text {
  margin: 14px 0 0;
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}

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

.page-home .home-col__views {
  display: grid;
  gap: 2px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .home-col__views li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 14px;
  color: var(--text);
}

.page-home .home-col__views .mono {
  font-size: 12px;
  color: var(--cyan);
}

/* ---------- 排查引导 ---------- */
.page-home .home-fix__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-gap);
}

.page-home .home-fix__figure {
  margin: 0;
}

.page-home .home-steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.page-home .home-step {
  position: relative;
  counter-increment: step;
  padding: 20px 22px 22px 62px;
  background: var(--ink-800);
  border-left: 3px solid var(--green-deep);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.page-home .home-step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 20px;
  top: 20px;
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: .06em;
  color: var(--green);
}

.page-home .home-step:first-child {
  border-left-color: var(--orange);
}

.page-home .home-step:first-child::before {
  color: var(--orange);
}

.page-home .home-step__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--white);
}

.page-home .home-step__text {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
}

.page-home .home-step:hover {
  transform: translateX(2px);
  background: var(--ink-700);
}

.page-home .home-fix__cta {
  margin: clamp(24px, 3.5vw, 40px) 0 0;
  max-width: 66ch;
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
}

.page-home .home-fix__cta-link {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid rgba(22, 208, 124, .5);
}

.page-home .home-fix__cta-link:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}

/* ---------- 改版叙述 ---------- */
.page-home .home-rebuild__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-gap);
}

.page-home .home-rebuild__text {
  margin: 20px 0 0;
  max-width: 48ch;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
}

.page-home .home-rebuild__link {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid rgba(22, 208, 124, .5);
}

.page-home .home-rebuild__link:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}

.page-home .home-rebuild__figure {
  margin: 0 0 24px;
}

.page-home .home-rebuild__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  border: 1px solid var(--line-soft);
  background: var(--line-soft);
}

.page-home .home-stat {
  padding: 18px 16px;
  background: var(--ink-950);
}

.page-home .home-stat dt {
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
}

.page-home .home-stat__num {
  display: block;
  margin: 8px 0 0;
  font-size: clamp(1.2rem, 2.6vw, 1.65rem);
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--amber);
}

/* ---------- 去向清单 ---------- */
.page-home .home-exits {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-soft);
}

.page-home .home-exit__link {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 20px 14px;
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none;
  color: inherit;
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.page-home .home-exit__link:hover,
.page-home .home-exit__link:focus-visible {
  background: var(--ink-800);
  transform: translateX(2px);
}

.page-home .home-exit__idx {
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--green);
}

.page-home .home-exit__title {
  display: block;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--white);
}

.page-home .home-exit__desc {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .home-exit__arrow {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--green);
}

/* ---------- 焦点与动效 ---------- */
.page-home a:focus-visible,
.page-home summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

/* ---------- 自适应 ---------- */
@media (min-width: 720px) {
  .page-home .home-head {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 20px;
  }

  .page-home .home-head__index {
    padding-top: 9px;
  }

  .page-home .home-status {
    min-height: 440px;
  }

  .page-home .home-step:nth-child(2) {
    margin-left: 18px;
  }

  .page-home .home-step:nth-child(3) {
    margin-left: 36px;
  }

  .page-home .home-step:nth-child(4) {
    margin-left: 54px;
  }
}

@media (min-width: 960px) {
  .page-home .home-index {
    top: 74px;
  }

  .page-home .home-hero__inner {
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .78fr);
  }

  .page-home .home-today__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .page-home .home-fix__layout {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    align-items: start;
  }

  .page-home .home-rebuild__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(32px, 4vw, 64px);
    align-items: start;
  }

  .page-home .home-rebuild__copy {
    padding-top: 6px;
  }

  .page-home .home-exit__link {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 20px;
    padding: 24px 20px;
  }
}

@media (min-width: 1280px) {
  .page-home .home-hero__title {
    font-size: clamp(3.4rem, 5.6vw, 5.4rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-step,
  .page-home .home-exit__link,
  .page-home .home-index__link {
    transition-duration: 1ms;
  }

  .page-home .home-step:hover,
  .page-home .home-exit__link:hover,
  .page-home .home-exit__link:focus-visible {
    transform: none;
  }
}
