.page-home {
  --home-gap: clamp(20px, 3.2vw, 40px);
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  padding-block: clamp(18px, 2.6vw, 34px) clamp(44px, 6vw, 88px);
}

.page-home .hero::before {
  content: "";
  position: absolute;
  inset: -12% -6% auto -6%;
  height: 76%;
  background-image:
    linear-gradient(to right, rgba(94, 124, 140, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(94, 124, 140, 0.12) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 92% at 84% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(120% 92% at 84% 0%, #000 0%, transparent 72%);
  pointer-events: none;
}

.page-home .hero-split {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-gap);
  align-items: start;
}

.page-home .hero-title {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 7vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.page-home .hero-title-main {
  display: block;
}

.page-home .hero-title-sub {
  display: block;
  margin-top: 14px;
  padding-left: 14px;
  border-left: 4px solid var(--amber);
  font-size: clamp(18px, 2.7vw, 29px);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ink-2);
}

.page-home .hero-lede {
  margin: 20px 0 0;
  max-width: 56ch;
  font-size: clamp(15.5px, 1.5vw, 17px);
  line-height: 1.8;
  color: var(--text);
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.page-home .hero-note {
  margin: 26px 0 0;
  padding-left: 14px;
  max-width: 38ch;
  border-left: 2px solid var(--steel);
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--steel);
}

.page-home .hero-visual {
  position: relative;
}

.page-home .console {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(11, 31, 51, 0.22));
}

.page-home .console text {
  font-family: var(--font-mono);
}

.page-home .console .c-eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  fill: #5E7C8C;
}

.page-home .console .c-tiny {
  font-size: 10px;
  letter-spacing: 0.1em;
  fill: #7E97A8;
}

.page-home .console .c-idx {
  font-size: 15px;
  font-weight: 600;
  fill: #D99A2B;
}

.page-home .console .c-label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  fill: #F7F3EA;
}

.page-home .console .c-sub {
  font-size: 11px;
  letter-spacing: 0.02em;
  fill: #9DB3C2;
}

.page-home .console .c-live {
  fill: #2E8B87;
  animation: home-pulse 2.8s var(--ease) infinite;
}

.page-home .console .c-node {
  animation: home-pulse 2.2s var(--ease) infinite;
}

.page-home .console .c-flow {
  animation: home-dash 2.8s linear infinite;
}

@keyframes home-dash {
  to { stroke-dashoffset: -64; }
}

@keyframes home-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ---------- 通用章节头 ---------- */
.page-home h2 {
  margin: 10px 0 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(25px, 3.3vw, 37px);
  line-height: 1.16;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.page-home .sec-head,
.page-home .cov-head {
  max-width: 64ch;
}

.page-home .sec-head .lede,
.page-home .cov-head .lede {
  margin: 0;
  font-size: clamp(15.5px, 1.4vw, 17px);
  line-height: 1.8;
  color: var(--text);
}

/* ---------- 三组入口 ---------- */
.page-home .entry-track {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: clamp(26px, 3.4vw, 40px);
}

.page-home .entry-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--text);
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-left-color var(--dur) var(--ease);
}

.page-home .entry-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(11, 31, 51, 0.12);
  border-left-color: var(--fault);
}

.page-home .entry-card:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.page-home .entry-num {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--amber);
}

.page-home .entry-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.page-home .entry-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text);
}

.page-home .entry-go {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.page-home .entry-card--ink {
  background: var(--ink);
  border-color: var(--ink);
  border-left-color: var(--amber);
}

.page-home .entry-card--ink h3 { color: var(--white); }
.page-home .entry-card--ink p { color: #C6D5E0; }

.page-home .entry-card--ink .entry-go {
  color: var(--amber);
  border-top-color: rgba(201, 214, 223, 0.28);
}

.page-home .entry-card--ink:hover {
  box-shadow: 0 14px 30px rgba(11, 31, 51, 0.3);
  border-left-color: var(--fault);
}

.page-home .entry-frame {
  margin-top: clamp(26px, 3.6vw, 44px);
}

.page-home .entry-frame img,
.page-home .ver-frame img,
.page-home .triage-frame img,
.page-home .cov-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  object-fit: cover;
}

/* ---------- 版本可追溯 ---------- */
.page-home .ver-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-gap);
  align-items: start;
}

.page-home .ver-aside p {
  margin: 0 0 16px;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--text);
}

.page-home .ver-aside .aside-note {
  margin: 0 0 22px;
  padding-left: 14px;
  border-left: 2px solid var(--amber);
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--steel);
}

.page-home .v-timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 26px;
  border-left: 1px solid var(--line);
}

.page-home .v-item {
  position: relative;
  padding-bottom: 26px;
}

.page-home .v-item:last-child {
  padding-bottom: 0;
}

.page-home .v-item::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 5px;
  width: 11px;
  height: 11px;
  background: var(--paper);
  border: 2px solid var(--amber);
  transform: rotate(45deg);
}

.page-home .v-date {
  display: inline-block;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--steel);
}

.page-home .v-item h3 {
  margin: 5px 0 5px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.page-home .v-item p {
  margin: 0;
  max-width: 50ch;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text);
}

.page-home .ver-frame {
  margin-top: clamp(24px, 3vw, 36px);
}

/* ---------- 故障分流 ---------- */
.page-home .triage {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #D7E2EA;
}

.page-home .triage::after {
  content: "";
  position: absolute;
  inset: auto -8% -30% auto;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 87, 43, 0.16) 0%, transparent 68%);
  pointer-events: none;
}

.page-home .triage-split {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-gap);
  align-items: start;
}

.page-home .triage h2 {
  color: var(--white);
}

.page-home .triage .kicker--light {
  color: var(--amber-strong);
}

.page-home .triage-frame img {
  border-color: rgba(201, 214, 223, 0.24);
}

.page-home .triage-lede {
  margin: 0;
  max-width: 56ch;
  font-size: 15.5px;
  line-height: 1.8;
  color: #B9CBD8;
}

.page-home .triage-list {
  list-style: none;
  margin: clamp(22px, 2.6vw, 30px) 0 0;
  padding: 0;
  display: grid;
  gap: 13px;
}

.page-home .triage-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 16px 18px;
  background: rgba(16, 42, 67, 0.88);
  border: 1px solid rgba(201, 214, 223, 0.16);
  border-left: 3px solid var(--fault);
  border-radius: var(--r-sm);
}

.page-home .triage-num {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--fault);
}

.page-home .triage-item h3 {
  margin: 0 0 5px;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--white);
}

.page-home .triage-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: #B9CBD8;
}

.page-home .triage-cta {
  margin-top: clamp(22px, 2.6vw, 30px);
}

/* ---------- 服务覆盖 ---------- */
.page-home .stat-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(24px, 3vw, 36px);
}

.page-home .stat {
  padding: 18px 16px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--amber);
  border-radius: var(--r-sm);
}

.page-home .stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(27px, 3.4vw, 35px);
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
}

.page-home .stat-unit {
  margin-left: 3px;
  font-size: 0.52em;
  font-weight: 700;
  color: var(--steel);
}

.page-home .stat-label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--steel);
}

.page-home .cov-frame {
  margin-top: clamp(24px, 3vw, 38px);
}

/* ---------- 下一步 ---------- */
.page-home .next-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-gap);
  align-items: start;
}

.page-home .next-copy p {
  margin: 0;
  max-width: 54ch;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--text);
}

.page-home .next-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.page-home .reach-card {
  padding: 8px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: var(--r-md);
}

.page-home .reach-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
}

.page-home .reach-row:last-child {
  border-bottom: none;
}

.page-home .reach-key {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--steel);
}

.page-home .reach-val {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
}

.page-home .to-top {
  margin: clamp(28px, 3.4vw, 40px) 0 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
}

.page-home .to-top a {
  color: var(--steel);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.page-home .to-top a:hover,
.page-home .to-top a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--amber);
}

.page-home .to-top a:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

/* ---------- 响应式 ---------- */
@media (min-width: 760px) {
  .page-home .entry-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .page-home .stat-row {
    gap: 16px;
  }
}

@media (min-width: 900px) {
  .page-home .hero-split {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(28px, 4vw, 60px);
  }

  .page-home .hero-visual {
    margin-top: clamp(6px, 1.8vw, 26px);
  }

  .page-home .ver-split {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: clamp(28px, 4vw, 62px);
  }

  .page-home .triage-split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(28px, 4vw, 56px);
  }

  .page-home .next-split {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    gap: clamp(28px, 4vw, 56px);
  }

  .page-home .ver-aside {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}

@media (min-width: 1040px) {
  .page-home .stat-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .console .c-live,
  .page-home .console .c-node,
  .page-home .console .c-flow {
    animation: none;
  }

  .page-home .entry-card {
    transition: none;
  }

  .page-home .entry-card:hover {
    transform: none;
  }
}
