/* ============ 首页 page-home ============ */
.page-home {
  --home-shard-w: min(88vw, 860px);
  --home-shard-h: min(100vw, 820px);
  position: relative;
  overflow-x: clip;
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(2.5rem, 7vw, 5rem);
  border-bottom: 1px solid var(--ink-line);
}

.page-home .hero__shard {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  top: -16%;
  right: -20%;
  width: var(--home-shard-w);
  height: var(--home-shard-h);
  background:
    radial-gradient(120% 90% at 78% 22%, rgba(0, 224, 184, 0.16), transparent 58%),
    linear-gradient(148deg, rgba(124, 77, 255, 0.46), rgba(124, 77, 255, 0.06) 58%, transparent 76%);
  clip-path: polygon(26% 0, 100% 0, 100% 100%, 0 84%);
}

.page-home .hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(1.75rem, 5vw, 3rem);
}

.page-home .hero__kicker {
  margin: 0 0 1rem;
  font-size: var(--fs-12);
  letter-spacing: 0.22em;
  color: var(--teal);
}

.page-home .hero__title {
  margin: 0 0 1.1rem;
  font-family: var(--font-narrow);
  font-weight: 300;
  font-size: var(--fs-h1);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--text-title);
}

.page-home .hero__lead {
  max-width: 36em;
  margin: 0;
  color: var(--text-body);
}

.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.page-home .hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-12);
  color: var(--text-muted);
}

.page-home .hero__meta li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-home .hero__meta li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-soft);
}

.page-home .hero__figure {
  position: relative;
  margin: 0;
}

.page-home .hero__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-line);
  opacity: 0.92;
}

.page-home .hero__nodes {
  position: absolute;
  z-index: 1;
  left: -5%;
  bottom: -8%;
  width: 62%;
  height: auto;
  pointer-events: none;
}

.page-home .hero__edges path {
  fill: none;
  stroke: var(--teal-line);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-dasharray: 620;
  stroke-dashoffset: 0;
}

.page-home .hero__dots circle {
  fill: var(--teal);
}

@media (prefers-reduced-motion: no-preference) {
  .page-home .hero__edges path {
    animation: home-trace 1200ms var(--ease) both;
  }
  .page-home .hero__dots .node--pulse {
    animation: home-pulse 3.2s ease-in-out infinite;
  }
}

@keyframes home-trace {
  from { stroke-dashoffset: 620; }
  to { stroke-dashoffset: 0; }
}

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

/* ---------- 栏目标题微调 ---------- */
.page-home .section__index {
  color: var(--teal);
  letter-spacing: 0.2em;
}

/* ---------- 多链总览 ---------- */
.page-home .overview {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

.page-home .overview__frame {
  aspect-ratio: 8 / 5;
}

.page-home .overview__frame img,
.page-home .verify__frame img,
.page-home .backup__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-home .flow {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}

.page-home .flow li {
  counter-increment: flow;
  position: relative;
  padding: 0.65rem 0 0.65rem 2.4rem;
  border-bottom: 1px dashed var(--ink-line);
  font-size: var(--fs-14);
  color: var(--text-body);
}

.page-home .flow li::before {
  content: "0" counter(flow);
  position: absolute;
  left: 0;
  top: 0.7rem;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.08em;
  color: var(--teal);
}

.page-home .filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.35rem;
}

.page-home .filter-btn {
  padding: 0.4rem 0.9rem;
  border-radius: var(--pill);
  border: 1px solid var(--ink-line);
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: var(--fs-12);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.page-home .filter-btn:hover {
  color: var(--text-title);
  border-color: var(--teal-line);
}

.page-home .filter-btn[aria-pressed="true"] {
  color: var(--teal);
  border-color: var(--teal-line);
  background: var(--teal-soft);
}

.page-home .chain-list {
  display: grid;
  gap: 1rem;
}

.page-home .chain-card {
  --chain: var(--teal);
  position: relative;
  padding: 1.25rem 1.25rem 1.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--ink-line);
  background: var(--ink-panel);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.page-home .chain-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.25rem;
  width: 2.25rem;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: var(--chain);
}

.page-home .chain-card:hover {
  border-color: var(--chain);
  transform: translateY(-2px);
}

.page-home .chain-card--eth { --chain: var(--teal); }
.page-home .chain-card--bnb { --chain: var(--amber); }
.page-home .chain-card--poly { --chain: var(--violet); }
.page-home .chain-card--arb { --chain: var(--mint); }

.page-home .chain-card__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.page-home .chain-card__dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--chain);
  box-shadow: 0 0 0 3px rgba(233, 238, 246, 0.05);
}

.page-home .chain-card__name {
  margin: 0;
  font-family: var(--font-narrow);
  font-size: var(--fs-20);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-title);
}

.page-home .chain-card .tag {
  margin-left: auto;
  padding: 0.15rem 0.6rem;
  border: 1px solid var(--chain);
  border-radius: var(--pill);
  background: transparent;
  color: var(--chain);
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.06em;
}

.page-home .chain-card__bal {
  margin: 0 0 0.6rem;
  font-size: var(--fs-20);
  font-weight: 300;
  color: var(--text-title);
  letter-spacing: 0.02em;
}

.page-home .chain-card__note {
  margin: 0;
  font-size: var(--fs-14);
  line-height: 1.7;
  color: var(--text-muted);
}

.page-home .chain-note {
  margin: 1.25rem 0 0;
  padding-left: 0.9rem;
  border-left: 2px solid var(--ink-line);
  font-size: var(--fs-12);
  line-height: 1.8;
  color: var(--text-muted);
}

.page-home .filter-empty {
  margin: 1rem 0 0;
  font-size: var(--fs-14);
  color: var(--amber);
}

/* ---------- 三步备份 ---------- */
.page-home .backup__media {
  max-width: min(560px, 100%);
  margin: 0 0 clamp(1.5rem, 4vw, 2rem);
}

.page-home .backup__frame {
  aspect-ratio: 3 / 2;
}

.page-home .steps {
  display: grid;
  gap: 1rem;
}

.page-home .step {
  position: relative;
  padding: 1.6rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--ink-line);
  background: var(--ink-panel);
  transition: border-color var(--dur) var(--ease);
}

.page-home .step:hover {
  border-color: var(--teal-line);
}

.page-home .step__mark {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--ink-line);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.page-home .step__mark::after {
  content: "✓";
  position: absolute;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.page-home .step__mark .step__num {
  font-size: var(--fs-12);
  letter-spacing: 0.06em;
  transition: opacity var(--dur) var(--ease);
}

.page-home .step__mark:hover {
  border-color: var(--teal-line);
  color: var(--text-title);
}

.page-home .step__mark[data-done] {
  border-color: var(--teal);
  background: var(--teal-soft);
  color: var(--teal);
}

.page-home .step__mark[data-done] .step__num {
  opacity: 0;
}

.page-home .step__mark[data-done]::after {
  opacity: 1;
}

.page-home .step__mark:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}

.page-home .step__title {
  margin: 0 0 0.75rem;
  padding-right: 2.5rem;
  font-family: var(--font-narrow);
  font-size: var(--fs-20);
  font-weight: 500;
  color: var(--text-title);
}

.page-home .step__text {
  margin: 0;
  font-size: var(--fs-14);
  line-height: 1.8;
  color: var(--text-body);
}

/* ---------- 地址校验 ---------- */
.page-home .scanline {
  height: 1px;
  margin: 0 0 clamp(2rem, 6vw, 3.25rem);
  background: linear-gradient(90deg, transparent, var(--teal-line) 18%, var(--mint) 50%, var(--teal-line) 82%, transparent);
  opacity: 0.7;
}

.page-home .verify {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

.page-home .verify__frame {
  aspect-ratio: 3 / 2;
}

.page-home .checklist {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.page-home .checklist li {
  position: relative;
  padding: 0.7rem 0 0.7rem 1.75rem;
  border-bottom: 1px solid var(--ink-line);
  font-size: var(--fs-14);
  line-height: 1.75;
  color: var(--text-body);
}

.page-home .checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.1rem;
  width: 8px;
  height: 8px;
  border: 1px solid var(--teal);
  border-radius: 2px;
}

.page-home .addr-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--ink-line);
  background: var(--plate-soft);
}

.page-home .addr-row .tag {
  padding: 0.15rem 0.6rem;
  border: 1px solid var(--teal-line);
  border-radius: var(--pill);
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.06em;
}

.page-home .addr-row .code {
  font-size: var(--fs-16);
  color: var(--text-title);
  letter-spacing: 0.04em;
}

.page-home .addr-row__hint {
  flex: 1 1 100%;
  font-size: var(--fs-12);
  line-height: 1.7;
  color: var(--text-muted);
}

.page-home .callout {
  margin-top: 1.5rem;
}

/* ---------- 版本与更新 ---------- */
.page-home .log {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

.page-home .version-plate {
  position: relative;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-line);
  background:
    linear-gradient(158deg, rgba(124, 77, 255, 0.16), rgba(5, 7, 11, 0) 62%),
    var(--ink-panel);
}

.page-home .version-plate__label {
  margin: 0 0 0.75rem;
  font-size: var(--fs-12);
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.page-home .version-plate__num {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-md);
  background: transparent;
  font-family: var(--font-mono);
  font-size: clamp(1.9rem, 7vw, 2.75rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--text-title);
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.page-home .version-plate__num:hover {
  border-color: var(--teal);
  color: var(--mint);
}

.page-home .version-plate__num:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}

.page-home .version-plate__name {
  margin: 0.75rem 0 0.85rem;
  font-family: var(--font-narrow);
  font-size: var(--fs-20);
  font-weight: 500;
  color: var(--text-title);
}

.page-home .version-plate__text {
  margin: 0;
  font-size: var(--fs-14);
  line-height: 1.8;
  color: var(--text-body);
}

.page-home .log__main {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.page-home .disclosure {
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-md);
  background: var(--ink-panel);
  padding: 0.35rem 1.1rem;
}

.page-home .disclosure summary {
  padding-block: 0.95rem;
  cursor: pointer;
  font-size: var(--fs-16);
  color: var(--text-title);
}

.page-home .disclosure__body {
  padding-bottom: 1rem;
  font-size: var(--fs-14);
  line-height: 1.8;
  color: var(--text-body);
}

.page-home .disclosure__body p {
  margin: 0;
}

/* ---------- 入口导航岛 ---------- */
.page-home .gateway {
  display: grid;
  gap: 1rem;
}

.page-home .gateway__card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.4rem 1.35rem;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-md);
  background: var(--ink-panel);
  color: inherit;
  text-decoration: none;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.page-home .gateway__card:hover {
  border-color: var(--teal);
  background: var(--plate-soft);
  transform: translateY(-2px);
}

.page-home .gateway__card:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}

.page-home .gateway__tag {
  font-size: var(--fs-12);
  letter-spacing: 0.16em;
  color: var(--teal);
}

.page-home .gateway__title {
  margin: 0;
  font-family: var(--font-narrow);
  font-size: var(--fs-20);
  font-weight: 500;
  color: var(--text-title);
}

.page-home .gateway__text {
  margin: 0;
  font-size: var(--fs-14);
  line-height: 1.75;
  color: var(--text-muted);
}

.page-home .service-note {
  margin: 1.75rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--ink-line);
  font-size: var(--fs-12);
  line-height: 1.9;
  color: var(--text-muted);
}

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .page-home .chain-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-home .gateway {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .page-home .hero {
    padding-bottom: clamp(3.5rem, 8vw, 6rem);
  }
  .page-home .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
  }
  .page-home .overview {
    grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
    align-items: start;
  }
  .page-home .verify {
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
    align-items: start;
  }
  .page-home .log {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }
  .page-home .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

@media (max-width: 899px) {
  .page-home .hero__nodes {
    width: 76%;
    left: -8%;
    bottom: -6%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .chain-card,
  .page-home .gateway__card,
  .page-home .filter-btn,
  .page-home .step__mark {
    transition: none;
  }
  .page-home .chain-card:hover,
  .page-home .gateway__card:hover {
    transform: none;
  }
}
</main>
