/* ===== 首页 page-home ===== */

.page-home {
  display: block;
  background: var(--ink-900);
  color: var(--text-dark);
  font-family: var(--font-body);
  overflow-x: hidden;
}

.page-home .home-block {
  scroll-margin-top: 96px;
}

.page-home .section-body {
  padding: clamp(34px, 6vw, 76px) 0;
}

.page-home .section-paper {
  background: var(--paper);
  color: var(--slate);
}

.page-home a {
  color: var(--cyan);
}

.page-home .section-paper a {
  color: #0F5F55;
}

.page-home .block-lead {
  max-width: 68ch;
  margin: 0 0 clamp(20px, 3vw, 30px);
  font-size: clamp(15px, 2.2vw, 17px);
  line-height: 1.85;
  color: var(--text-mute);
}

.page-home .section-paper .block-lead {
  color: var(--slate);
}

.page-home .block-foot {
  margin: clamp(22px, 3vw, 32px) 0 0;
  padding-left: 16px;
  border-left: 3px solid var(--cyan);
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-mute);
}

.page-home .section-paper .block-foot {
  color: var(--slate);
}

/* ---------- 首屏 ---------- */

.page-home .hero {
  position: relative;
  padding: clamp(38px, 6.5vw, 84px) 0 clamp(34px, 5vw, 62px);
  border-bottom: var(--bw) solid var(--edge);
  background: var(--ink-900);
  overflow: hidden;
}

.page-home .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page-home .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
}

.page-home .hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(58% 46% at 68% 28%, rgba(53, 230, 208, 0.22), transparent 72%),
    linear-gradient(165deg, rgba(11, 16, 48, 0.4) 0%, rgba(11, 16, 48, 0.92) 70%);
}

.page-home .hero-inner {
  position: relative;
  z-index: 1;
}

.page-home .hero-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
}

.page-home .hero-kicker-text {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--index);
}

.page-home h1 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 6vw, 50px);
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.page-home .hero-lead {
  max-width: 62ch;
  margin: 0 0 20px;
  font-size: clamp(15px, 2.3vw, 17px);
  line-height: 1.85;
  color: var(--text-mute);
}

.page-home .hero-status {
  display: inline-block;
  margin: 0 0 clamp(26px, 4vw, 40px);
  padding: 7px 14px;
  border: 1px solid var(--edge);
  background: rgba(23, 28, 74, 0.7);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.page-home .hero-sub {
  margin: 0 0 clamp(18px, 2.6vw, 26px);
  font-family: var(--font-display);
  font-size: clamp(17px, 2.6vw, 21px);
  letter-spacing: -0.01em;
  color: var(--text-dark);
}

/* 入口矩阵 */

.page-home .entry-matrix {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.page-home .entry-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(18px, 3vw, 26px);
  background: linear-gradient(180deg, var(--ink-800) 0%, #12173F 100%);
  border: var(--bw) solid var(--edge);
  box-shadow: var(--shadow-hard);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.page-home .entry-card > * {
  position: relative;
  z-index: 1;
}

.page-home .entry-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  width: 46px;
  height: 3px;
  background: var(--gold);
  transition: width 0.4s ease;
}

.page-home .entry-card::after {
  content: "";
  position: absolute;
  top: -46px;
  right: -46px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(53, 230, 208, 0.42), transparent 68%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.page-home .entry-card:hover,
.page-home .entry-card:focus-within {
  transform: translate(-2px, -2px);
  border-color: var(--cyan);
}

.page-home .entry-card:hover::before,
.page-home .entry-card:focus-within::before {
  width: calc(100% + 4px);
}

.page-home .entry-card:hover::after,
.page-home .entry-card:focus-within::after {
  opacity: 1;
  animation: home-node-pulse 1.6s ease-in-out infinite;
}

@keyframes home-node-pulse {
  0%, 100% { transform: scale(0.92); opacity: 0.5; }
  50% { transform: scale(1.08); opacity: 0.95; }
}

.page-home .entry-card--a {
  background: linear-gradient(180deg, #12224F 0%, #0F1A44 100%);
  border-color: #2E3A86;
}

.page-home .entry-code {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.page-home .entry-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(19px, 2.8vw, 24px);
  letter-spacing: -0.01em;
  color: #FFFFFF;
}

.page-home .entry-desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-mute);
}

.page-home .entry-meta {
  display: grid;
  gap: 6px;
  margin: 2px 0 auto;
  padding-top: 12px;
  border-top: 1px dashed var(--edge-soft);
}

.page-home .entry-meta > div {
  display: flex;
  gap: 10px;
  font-size: 13px;
}

.page-home .entry-meta dt {
  flex: 0 0 68px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--index);
}

.page-home .entry-meta dd {
  margin: 0;
  color: var(--text-mute);
}

.page-home .entry-action {
  align-self: flex-start;
  margin-top: 4px;
}

/* 测试通道 */

.page-home .test-lane {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  padding: 16px 18px;
  border: var(--bw) dashed rgba(255, 107, 90, 0.55);
  background: rgba(74, 22, 51, 0.4);
}

.page-home .test-lane-text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-mute);
}

.page-home .test-lane-text strong {
  color: var(--coral);
}

.page-home .test-lane-action {
  justify-self: start;
}

/* ---------- 章节索引 ---------- */

.page-home .chapter-nav {
  border-bottom: var(--bw) solid var(--edge);
  background: var(--ink-800);
}

.page-home .chapter-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.page-home .chapter-nav-title {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--index);
}

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

.page-home .chapter-nav-list .chapter-link {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 3px 0;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  color: var(--text-mute);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.page-home .chapter-nav-list .chapter-link .mono {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.page-home .chapter-nav-list .chapter-link:hover,
.page-home .chapter-nav-list .chapter-link:focus-visible,
.page-home .chapter-nav-list .chapter-link[aria-current="true"] {
  color: #FFFFFF;
  border-bottom-color: var(--cyan);
}

/* ---------- 章节色带 ---------- */

.page-home .chapter-band {
  display: block;
  padding: clamp(14px, 2.4vw, 24px) 0;
  border-top: var(--bw) solid rgba(255, 255, 255, 0.12);
  border-bottom: var(--bw) solid rgba(0, 0, 0, 0.35);
  background: var(--band-teal);
}

.page-home .chapter-band[data-tone="wine"] {
  background: var(--band-wine);
}

.page-home .band-inner {
  display: flex;
  align-items: baseline;
  gap: clamp(14px, 3vw, 30px);
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.page-home .chapter-index {
  font-size: clamp(26px, 5vw, 52px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--gold);
}

.page-home .chapter-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(19px, 3.2vw, 27px);
  letter-spacing: -0.01em;
  color: #FFFFFF;
}

/* ---------- 01 运行状态 ---------- */

.page-home .status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: clamp(20px, 3vw, 30px);
}

.page-home .stat {
  padding: 18px 16px;
  background: var(--ink-800);
  border: var(--bw) solid var(--edge);
  box-shadow: var(--shadow-hard);
}

.page-home .stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(23px, 3.6vw, 34px);
  letter-spacing: 0.02em;
  color: var(--cyan);
}

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

/* ---------- 02 入口分类 ---------- */

.page-home .kind-layout {
  display: grid;
  gap: clamp(24px, 4vw, 40px);
}

.page-home .kind-figure {
  margin: 0;
  border: var(--bw) solid rgba(42, 48, 80, 0.5);
  box-shadow: 6px 6px 0 rgba(42, 48, 80, 0.22);
  background: var(--ink-900);
  overflow: hidden;
}

.page-home .kind-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.page-home .kind-caption {
  display: block;
  padding: 10px 14px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gold);
  background: var(--ink-900);
}

.page-home .kind-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .kind-item {
  padding: 14px 0 14px 18px;
  border-left: 3px solid var(--slate);
}

.page-home .kind-item:nth-child(1) { border-left-color: #0F5F55; }
.page-home .kind-item:nth-child(2) { border-left-color: #8A5F10; }
.page-home .kind-item:nth-child(3) { border-left-color: #1E9C8C; }
.page-home .kind-item:nth-child(4) { border-left-color: #A32A1B; }

.page-home .kind-tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  border: 1px solid rgba(42, 48, 80, 0.45);
  background: rgba(42, 48, 80, 0.07);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--slate);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.page-home .kind-tag:hover,
.page-home .kind-tag:focus-visible {
  background: var(--slate);
  color: var(--paper);
}

.page-home .kind-name {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(16px, 2.3vw, 19px);
  letter-spacing: -0.01em;
  color: var(--slate);
}

.page-home .kind-desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: #454C74;
}

/* ---------- 03 重新接入 ---------- */

.page-home .path-tree {
  display: grid;
  gap: 0;
  margin-bottom: clamp(20px, 3vw, 28px);
}

.page-home .path-node {
  position: relative;
  padding: 0 0 26px 30px;
  border-left: 2px solid var(--edge);
}

.page-home .path-node:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.page-home .path-node::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 4px;
  width: 14px;
  height: 14px;
  background: var(--ink-900);
  border: 2px solid var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(53, 230, 208, 0.6);
}

.page-home .path-node-index {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.page-home .path-node-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(17px, 2.4vw, 20px);
  color: #FFFFFF;
}

.page-home .path-node-body {
  margin: 0;
  max-width: 60ch;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--text-mute);
}

.page-home .start-figure {
  margin: 0 0 20px;
  border: var(--bw) solid var(--edge);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
}

.page-home .start-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* ---------- 04 版本节奏 ---------- */

.page-home .version-banner {
  margin-bottom: clamp(26px, 4vw, 42px);
  border: var(--bw) solid rgba(42, 48, 80, 0.5);
  box-shadow: 6px 6px 0 rgba(42, 48, 80, 0.22);
  overflow: hidden;
}

.page-home .version-banner img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 3;
  object-fit: cover;
}

.page-home .sub-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(16px, 2.3vw, 19px);
  letter-spacing: -0.01em;
  color: var(--slate);
}

.page-home .change-list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: var(--bw) solid rgba(42, 48, 80, 0.28);
}

.page-home .change-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(42, 48, 80, 0.22);
}

.page-home .change-batch {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: #454C74;
}

.page-home .change-item p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--slate);
}

.page-home .change-list .tag {
  justify-self: start;
  padding: 2px 8px;
  border: 1px solid;
  font-size: 12px;
  letter-spacing: 0.08em;
  background: transparent;
}

.page-home .change-list .tag-cyan {
  color: #11695F;
  border-color: #1E9C8C;
  background: rgba(53, 230, 208, 0.18);
}

.page-home .change-list .tag-gold {
  color: #8A5F10;
  border-color: #A9791B;
  background: rgba(242, 180, 65, 0.2);
}

.page-home .change-list .tag-coral {
  color: #A32A1B;
  border-color: #C2402F;
  background: rgba(255, 107, 90, 0.16);
}

.page-home .rhythm-card {
  padding: clamp(18px, 2.6vw, 24px);
  border: var(--bw) solid rgba(42, 48, 80, 0.5);
  box-shadow: 6px 6px 0 rgba(42, 48, 80, 0.22);
  background: #FFFFFF;
}

.page-home .rhythm-card p {
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.8;
  color: #454C74;
}

.page-home .rhythm-stats {
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
  padding-top: 16px;
  border-top: 1px dashed rgba(42, 48, 80, 0.3);
}

.page-home .rhythm-stats > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.page-home .rhythm-stats dt {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: #454C74;
}

.page-home .rhythm-stats dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 17px;
  color: var(--slate);
}

/* ---------- 05 官方与承诺 ---------- */

.page-home .promise-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .promise-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-mute);
}

.page-home .promise-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 2px;
  background: var(--gold);
}

.page-home .trust-card {
  padding: clamp(18px, 2.6vw, 24px);
  border: var(--bw) solid var(--edge);
  background: var(--ink-800);
  box-shadow: var(--shadow-hard);
}

.page-home .trust-card-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 17px;
  color: #FFFFFF;
}

.page-home .trust-list {
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
  padding: 0 0 16px;
  border-bottom: 1px dashed var(--edge-soft);
  list-style: none;
}

.page-home .trust-list li {
  display: grid;
  gap: 3px;
}

.page-home .trust-key {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--index);
}

.page-home .trust-val {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-dark);
  word-break: break-word;
}

.page-home .trust-note {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--text-mute);
}

/* ---------- 收束段 ---------- */

.page-home .home-next {
  border-top: var(--bw) solid var(--edge);
  background: linear-gradient(180deg, var(--ink-800) 0%, var(--ink-900) 100%);
  padding: clamp(34px, 6vw, 70px) 0;
}

.page-home .next-title {
  margin: 0 0 clamp(18px, 3vw, 26px);
  font-family: var(--font-display);
  font-size: clamp(20px, 3.2vw, 27px);
  letter-spacing: -0.01em;
  color: #FFFFFF;
}

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

/* ---------- 响应式 ---------- */

@media (min-width: 720px) {
  .page-home .entry-matrix {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .test-lane {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .page-home .test-lane-action {
    grid-column: 2;
  }

  .page-home .status-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-home .change-item {
    grid-template-columns: 110px 74px 1fr;
    align-items: baseline;
  }
}

@media (min-width: 960px) {
  .page-home .grid-12 {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(22px, 3vw, 36px);
  }

  .page-home .col-main {
    grid-column: span 7;
  }

  .page-home .col-aside {
    grid-column: 9 / span 4;
  }

  .page-home .kind-layout {
    grid-template-columns: 5fr 6fr;
    align-items: start;
  }

  .page-home .chapter-nav-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
  }

  .page-home .test-lane {
    grid-template-columns: auto 1fr auto;
  }

  .page-home .test-lane-action {
    grid-column: auto;
  }
}

@media (min-width: 1080px) {
  .page-home .entry-matrix {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 20px;
  }

  .page-home .entry-card--a {
    grid-column: span 5;
    grid-row: span 2;
  }

  .page-home .entry-card--b {
    grid-column: span 7;
  }

  .page-home .entry-card--c {
    grid-column: span 4;
  }

  .page-home .entry-card--d {
    grid-column: span 3;
  }

  .page-home .entry-card--a .entry-action {
    margin-top: auto;
  }
}

@media (max-width: 719px) {
  .page-home .stat,
  .page-home .entry-card,
  .page-home .trust-card,
  .page-home .start-figure {
    box-shadow: 4px 4px 0 #05071A;
  }
}

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

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

  .page-home .entry-card:hover::after,
  .page-home .entry-card:focus-within::after {
    animation: none;
    opacity: 0.6;
  }
}
