.page-home {
  --home-glow-a: radial-gradient(circle at 76% 16%, rgba(23, 224, 176, 0.17), transparent 58%);
  --home-glow-b: radial-gradient(circle at 10% 76%, rgba(123, 91, 255, 0.20), transparent 62%);
  --home-card-bg: rgba(11, 18, 32, 0.72);
  --home-grid-line: rgba(42, 53, 80, 0.46);
  background: var(--ink);
  color: var(--text);
  overflow-x: hidden;
}

.page-home .inline-link {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(23, 224, 176, 0.45);
  padding-bottom: 1px;
}
.page-home .inline-link:hover {
  border-bottom-color: var(--cyan);
}

.page-home .sec-num {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line);
  margin: 0 0 10px;
  letter-spacing: 0.02em;
}

.page-home .caption {
  color: var(--muted);
  font-size: 13px;
  margin: 14px 0 0;
}

/* ---------- 封面 ---------- */
.page-home .cover {
  position: relative;
  isolation: isolate;
  border-bottom: 2px solid var(--line);
  background-color: var(--ink);
  background-image: var(--home-glow-a), var(--home-glow-b);
  overflow: hidden;
}
.page-home .cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(to right, var(--home-grid-line) 0 1px, transparent 1px 78px),
    repeating-linear-gradient(to bottom, var(--home-grid-line) 0 1px, transparent 1px 78px);
  opacity: 0.42;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 88%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 88%);
}

.page-home .cover-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 44px);
  padding-top: clamp(88px, 15vh, 150px);
  padding-bottom: clamp(30px, 5vw, 56px);
}

.page-home .cover-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}

.page-home .cover-copy .crumbs {
  margin: 0;
}

.page-home .cover-copy h1 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(32px, 7vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 18em;
  background: linear-gradient(96deg, var(--text) 42%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-home .cover-copy .lead {
  font-family: var(--sans);
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.78;
  color: var(--muted);
  margin: 0;
  max-width: 46em;
}

.page-home .cover-meta {
  font-size: 13px;
  color: var(--cyan);
  letter-spacing: 0.04em;
  padding: 7px 12px;
  border: 2px solid rgba(23, 224, 176, 0.4);
  background: rgba(23, 224, 176, 0.06);
  margin: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

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

.page-home .cover-visual {
  margin: 0;
  border: 2px solid var(--line);
  box-shadow: var(--hard-cyan);
  background: var(--panel);
  min-width: 0;
}
.page-home .cover-visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .cover-index {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 2px solid var(--line);
  border-left: 2px solid var(--line);
}
.page-home .cover-link {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-right: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  background: var(--home-card-bg);
  text-decoration: none;
  color: var(--text);
  transition: background 0.16s ease, transform 0.16s ease;
}
.page-home .cover-link:hover,
.page-home .cover-link:focus-visible {
  background: rgba(23, 224, 176, 0.11);
}
.page-home .cover-link .cv-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
}
.page-home .cover-link .cv-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.page-home .cover-link .cv-text strong {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.page-home .cover-link .cv-text span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- 通用区块 ---------- */
.page-home .section {
  padding: clamp(52px, 8vw, 96px) 0;
  border-bottom: 2px solid var(--line);
}
.page-home .section h2 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(24px, 3.6vw, 38px);
  line-height: 1.24;
  margin: 0 0 16px;
  max-width: 22em;
}
.page-home .section p {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.78;
  color: var(--muted);
  margin: 0 0 16px;
  max-width: 44em;
}

.page-home .home-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 3.6vw, 46px);
  align-items: start;
}
.page-home .col-main { min-width: 0; }
.page-home .col-side { min-width: 0; }

/* ---------- 01 多链拓扑 ---------- */
.page-home .chain-section {
  background:
    linear-gradient(180deg, rgba(20, 28, 46, 0.55) 0%, rgba(5, 7, 14, 0) 62%),
    var(--ink);
}

.page-home .topo {
  display: block;
  width: 100%;
  height: auto;
  margin: 18px 0 0;
  overflow: visible;
}

.page-home .topo-core-dot {
  fill: var(--cyan);
}
.page-home .topo-core-halo {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.5;
  opacity: 0.35;
}
.page-home .topo-core-label {
  fill: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  text-anchor: middle;
  letter-spacing: 0.06em;
}

.page-home .topo-link {
  stroke: var(--violet);
  stroke-width: 1.4;
  stroke-dasharray: 3 9;
  stroke-linecap: round;
  opacity: 0.7;
  transition: stroke-width 0.18s ease, opacity 0.18s ease, stroke 0.18s ease;
  animation: topo-flow 6s linear infinite;
}
@keyframes topo-flow {
  to { stroke-dashoffset: -120; }
}

.page-home .topo-dot {
  fill: var(--cyan);
  transition: fill 0.18s ease, r 0.18s ease;
}
.page-home .topo-halo {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.5;
  opacity: 0.26;
}
.page-home .topo-label {
  fill: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  text-anchor: middle;
  letter-spacing: 0.02em;
}
.page-home .topo-tip {
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}
.page-home .topo-tip rect {
  fill: var(--card);
  stroke: var(--line);
  stroke-width: 1.5;
}
.page-home .topo-tip text {
  fill: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  text-anchor: middle;
  letter-spacing: 0.02em;
}

.page-home .topo-node { cursor: pointer; outline: none; }
.page-home .topo-node:hover .topo-link,
.page-home .topo-node:focus-visible .topo-link {
  stroke-width: 3;
  opacity: 1;
  stroke: var(--cyan);
}
.page-home .topo-node:hover .topo-dot,
.page-home .topo-node:focus-visible .topo-dot {
  fill: var(--amber);
  r: 10;
}
.page-home .topo-node:hover .topo-halo,
.page-home .topo-node:focus-visible .topo-halo {
  opacity: 0.7;
}
.page-home .topo-node:hover .topo-tip,
.page-home .topo-node:focus-visible .topo-tip {
  opacity: 1;
}

.page-home .side-title {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
}
.page-home .chain-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.page-home .chain-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  background: var(--card);
  border: 2px solid transparent;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.page-home .chain-list li:hover {
  border-color: rgba(23, 224, 176, 0.55);
  background: rgba(23, 224, 176, 0.08);
}
.page-home .chain-key {
  font-size: 12px;
  color: var(--violet);
  letter-spacing: 0.08em;
}
.page-home .chain-name {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
}
.page-home .chain-v {
  font-size: 13px;
  color: var(--cyan);
}
.page-home .side-note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin: 14px 0 0;
}
.page-home .side-btn {
  width: 100%;
  margin-top: 16px;
  text-align: center;
}

/* ---------- 02 站内索引 ---------- */
.page-home .station-section {
  background: var(--ink);
}
.page-home .station-lead {
  max-width: 50em;
}
.page-home .station-figure {
  margin: 26px 0 36px;
}

.page-home .timeline-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 3vw, 36px);
}

.page-home .tl-head {
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--cyan);
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(23, 224, 176, 0.42);
}
.page-home .tl-head--amber {
  color: var(--amber);
  border-bottom-color: rgba(255, 176, 32, 0.42);
}

.page-home .tl-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.page-home .tl-item details {
  border: 2px solid var(--line);
  background: var(--panel);
  transition: border-color 0.16s ease;
}
.page-home .tl-item details[open] {
  border-color: rgba(23, 224, 176, 0.45);
}
.page-home .tl-item summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "dot ver"
    "dot name";
  align-items: center;
  gap: 2px 12px;
  padding: 13px 15px;
  outline: none;
}
.page-home .tl-item summary::-webkit-details-marker { display: none; }
.page-home .tl-item summary:focus-visible {
  box-shadow: inset 0 0 0 2px var(--cyan);
}
.page-home .tl-dot {
  grid-area: dot;
  width: 10px;
  height: 10px;
  align-self: center;
  background: var(--line);
}
.page-home .tl-dot--cyan { background: var(--cyan); }
.page-home .tl-dot--amber { background: var(--amber); }
.page-home .tl-ver {
  grid-area: ver;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--cyan);
}
.page-home .tl-dot--amber ~ .tl-ver { color: var(--amber); }
.page-home .tl-name {
  grid-area: name;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}
.page-home .tl-item details p {
  margin: 0;
  padding: 0 15px 15px 37px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  border-top: 1px solid rgba(42, 53, 80, 0.6);
  padding-top: 12px;
}

.page-home .station-foot {
  margin: 30px 0 0;
  padding: 16px 18px;
  border-left: 3px solid var(--amber);
  background: rgba(255, 176, 32, 0.06);
  font-size: 14px;
  max-width: none;
}

/* ---------- 03 节点版本 ---------- */
.page-home .version-section {
  background:
    linear-gradient(180deg, rgba(123, 91, 255, 0.10) 0%, rgba(5, 7, 14, 0) 70%),
    var(--ink);
}
.page-home .ver-list {
  list-style: none;
  margin: 22px 0 20px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.page-home .ver-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 14px 16px;
  border: 2px solid var(--line);
  background: var(--home-card-bg);
  transition: border-color 0.16s ease, transform 0.16s ease;
}
.page-home .ver-row:hover {
  border-color: rgba(123, 91, 255, 0.65);
  transform: translateY(-2px);
}
.page-home .ver-tag {
  justify-self: start;
}
.page-home .ver-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}
.page-home .ver-figure {
  margin: 0;
}

/* ---------- 04 观察地址导出 ---------- */
.page-home .export-section {
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 176, 32, 0.13), transparent 52%),
    var(--ink);
}
.page-home .export-shell { position: relative; }
.page-home .bound-list {
  list-style: none;
  margin: 22px 0 30px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  max-width: 46em;
}
.page-home .bound-list li {
  display: grid;
  grid-template-columns: 5.6em 1fr;
  gap: 12px;
  padding: 12px 14px;
  border: 2px solid var(--line);
  background: var(--panel);
}
.page-home .bound-key {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--amber);
  align-self: start;
  padding-top: 2px;
}
.page-home .bound-val {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}
.page-home .export-figure {
  margin: 0 0 18px;
  max-width: 900px;
}
.page-home .export-note {
  font-size: 14px;
  margin: 0;
}

/* ---------- 05 节奏与路线 ---------- */
.page-home .rhythm-section {
  background: var(--ink);
  border-bottom: none;
}
.page-home .routes {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2.4vw, 26px);
  margin-top: 28px;
}
.page-home .route-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 22px 20px;
  text-decoration: none;
  color: var(--text);
}
.page-home .route-card h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.4;
  margin: 0;
}
.page-home .route-card p {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.72;
  color: var(--muted);
  margin: 0;
}
.page-home .rhythm-section .rule {
  margin: clamp(30px, 4vw, 48px) 0 22px;
}
.page-home .rhythm-foot {
  font-size: 14px;
  margin: 0;
  max-width: 52em;
}

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .page-home .cover-index {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .page-home .timeline-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-home .routes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .page-home .bound-list li {
    grid-template-columns: 6.4em 1fr;
  }
}

@media (min-width: 960px) {
  .page-home .cover-inner {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    align-items: center;
  }
  .page-home .cover-index {
    grid-column: 1 / -1;
  }
  .page-home .home-split {
    grid-template-columns: minmax(0, 8fr) minmax(0, 3fr);
  }
  .page-home .home-split--reverse .col-main { order: 1; }
  .page-home .home-split--reverse .col-side { order: 2; }
  .page-home .col-side.sticky-aside {
    position: sticky;
    top: 96px;
  }
  .page-home .ver-row {
    grid-template-columns: 9.5em 1fr;
    align-items: center;
  }
  .page-home .ver-tag {
    justify-self: stretch;
    text-align: center;
  }
}

@media (min-width: 1180px) {
  .page-home .cover-copy h1 {
    font-size: 60px;
  }
  .page-home .bound-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .topo-link { animation: none; }
  .page-home .cover-link,
  .page-home .ver-row,
  .page-home .topo-tip { transition: none; }
}
