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

.page-home {
  display: block;
  overflow-x: hidden;
  background:
    radial-gradient(140% 70% at 100% 0%, rgba(53, 240, 160, 0.10), transparent 58%),
    radial-gradient(110% 60% at 0% 100%, rgba(76, 215, 255, 0.08), transparent 60%),
    var(--bg);
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  padding: clamp(92px, 15vw, 150px) 0 clamp(44px, 7vw, 76px);
  overflow: hidden;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(234, 241, 251, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.75;
  pointer-events: none;
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  top: -100px;
  right: -140px;
  width: min(600px, 78vw);
  height: 440px;
  background: linear-gradient(135deg, rgba(53, 240, 160, 0.22), rgba(76, 215, 255, 0.04));
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 76%);
  pointer-events: none;
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(34px, 5vw, 52px);
  align-items: center;
}

.page-home .home-hero__crumb {
  margin-bottom: 16px;
}

.page-home .home-hero__title {
  margin: 10px 0 18px;
  font-style: italic;
  letter-spacing: -0.01em;
  line-height: 1.16;
  text-wrap: balance;
}

.page-home .home-hero__lead {
  max-width: 46ch;
  color: var(--muted);
}

/* 三条主路径 */
.page-home .home-paths {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.page-home .home-path {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 18px 46px 20px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(158deg, rgba(26, 42, 74, 0.66), rgba(15, 27, 51, 0.94));
  color: var(--text);
  text-decoration: none;
  transition: transform 0.24s var(--ease), border-color 0.24s var(--ease), box-shadow 0.24s var(--ease);
}

.page-home .home-path:hover,
.page-home .home-path:focus-visible {
  transform: translateY(-4px);
  border-color: var(--neon);
  box-shadow: 0 0 0 1px rgba(53, 240, 160, 0.35), 0 18px 40px rgba(0, 0, 0, 0.5);
}

.page-home .home-path__idx {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--neon);
}

.page-home .home-path__title {
  font-size: 17px;
  font-weight: 700;
}

.page-home .home-path__desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.page-home .home-path__arrow {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 18px;
  color: var(--neon);
  transition: transform 0.24s var(--ease);
}

.page-home .home-path:hover .home-path__arrow {
  transform: translateX(4px);
}

/* 首屏媒体 */
.page-home .home-hero__media {
  position: relative;
  padding: 10px;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--panel-hi), var(--panel));
  clip-path: polygon(0 6%, 94% 0, 100% 92%, 7% 100%);
}

.page-home .home-hero__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.page-home .home-hero__badge {
  position: absolute;
  top: 26px;
  left: 26px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--neon);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

/* ---------- 内容筛选 ---------- */
.page-home .home-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
}

.page-home .home-filter-count {
  color: var(--muted);
  letter-spacing: 0.1em;
}

/* ---------- 堆叠面板 ---------- */
.page-home .home-band {
  position: relative;
  margin: 0 0 clamp(52px, 8vw, 86px);
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  overflow: hidden;
}

.page-home .home-band--round {
  border-color: rgba(53, 240, 160, 0.42);
  box-shadow: inset 0 0 60px rgba(53, 240, 160, 0.06);
}

.page-home .home-band--round::after {
  content: "";
  position: absolute;
  top: -90px;
  left: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(53, 240, 160, 0.16), transparent 68%);
  pointer-events: none;
}

.page-home .home-band--archive {
  background: linear-gradient(160deg, rgba(26, 42, 74, 0.55), var(--panel));
}

.page-home .home-band__head {
  position: relative;
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.page-home .home-band__idx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 26px;
  border: 1px solid rgba(53, 240, 160, 0.45);
  border-radius: var(--radius-pill);
  color: var(--neon);
  font-size: 12px;
  letter-spacing: 0.14em;
}

/* 本轮 */
.page-home .home-round {
  display: grid;
  gap: 26px;
  align-items: start;
}

.page-home .home-round__body p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.8;
}

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

.page-home .home-facts li {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-left: 2px solid rgba(53, 240, 160, 0.6);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(26, 42, 74, 0.42);
}

.page-home .home-facts__key {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.page-home .home-facts__val {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

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

/* 时间轴 */
.page-home .home-timeline__cap {
  margin: 34px 0 14px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.page-home .home-timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .home-node {
  position: relative;
  display: grid;
  gap: 5px;
  padding-top: 26px;
}

.page-home .home-node::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(53, 240, 160, 0.7), rgba(34, 48, 79, 0.25));
}

.page-home .home-node__dot {
  position: absolute;
  top: 3px;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 0 4px rgba(53, 240, 160, 0.16);
}

.page-home .home-node--live .home-node__dot {
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 90, 43, 0.2);
}

.page-home .home-node__label {
  font-size: 14px;
  color: var(--text);
}

.page-home .home-node__state {
  font-size: 12px;
  color: var(--muted);
}

.page-home .home-node__state--live {
  color: var(--orange);
}

.page-home .home-node__pop {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 4;
  width: max(210px, 100%);
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(53, 240, 160, 0.4);
  border-radius: var(--radius-sm);
  background: rgba(15, 27, 51, 0.97);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}

.page-home .home-node:last-child .home-node__pop {
  left: auto;
  right: 0;
}

.page-home .home-node:hover .home-node__pop,
.page-home .home-node:focus-within .home-node__pop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 客户端 */
.page-home .home-client {
  display: grid;
  gap: 26px;
  align-items: start;
}

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

.page-home .home-step {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 15px 16px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(26, 42, 74, 0.36);
  transition: border-color 0.22s var(--ease), background 0.22s var(--ease);
}

.page-home .home-step:hover {
  border-color: rgba(76, 215, 255, 0.5);
  background: rgba(26, 42, 74, 0.58);
}

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

.page-home .home-step__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.page-home .home-step__desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

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

/* 收藏入口 */
.page-home .home-collect {
  margin-top: 30px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(53, 240, 160, 0.42);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(120deg, rgba(53, 240, 160, 0.10), rgba(15, 27, 51, 0.9)),
    var(--bg);
}

.page-home .home-collect__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}

.page-home .home-collect__head .h-card {
  margin: 0;
}

.page-home .home-collect__meta {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--neon);
}

.page-home .home-collect p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.8;
}

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

.page-home .home-collect__list li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

.page-home .home-collect__list li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--neon);
  transform: rotate(45deg);
}

/* 归档 */
.page-home .home-archive {
  display: grid;
  gap: 28px;
  align-items: start;
}

.page-home .home-archive__body p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.8;
}

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

.page-home .home-version {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(7, 11, 20, 0.5);
}

.page-home .home-version--current {
  border-color: var(--gold);
  background: rgba(255, 194, 75, 0.08);
}

.page-home .home-version__tag {
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.page-home .home-version--current .home-version__tag {
  color: var(--gold);
}

.page-home .home-version__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.page-home .home-version__desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

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

/* ---------- 数据面板 ---------- */
.page-home .home-metrics-section {
  padding: clamp(48px, 8vw, 88px) 0 clamp(32px, 5vw, 56px);
  background: linear-gradient(180deg, rgba(15, 27, 51, 0.75), rgba(7, 11, 20, 0));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-home .home-metrics-section .section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 30px;
}

.page-home .home-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.page-home .home-metric {
  position: relative;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 20px 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  overflow: hidden;
}

.page-home .home-metric::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent, var(--neon));
}

.page-home .home-metric--neon {
  --accent: var(--neon);
}

.page-home .home-metric--orange {
  --accent: var(--orange);
}

.page-home .home-metric--cyan {
  --accent: var(--cyan);
}

.page-home .home-metric--gold {
  --accent: var(--gold);
}

.page-home .home-metric__value {
  margin: 0;
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--accent);
  white-space: nowrap;
}

.page-home .home-metric__label {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.page-home .home-cred {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .home-cred li {
  padding-left: 14px;
  border-left: 2px solid var(--line);
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .home-cred .mono {
  color: var(--text);
  font-weight: 700;
}

/* ---------- 下一步 ---------- */
.page-home .home-next-section {
  padding: clamp(48px, 8vw, 88px) 0 clamp(60px, 9vw, 96px);
}

.page-home .home-next-section .section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 30px;
}

.page-home .home-next {
  display: grid;
  gap: 14px;
}

.page-home .home-next__card {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 22px 20px 24px 62px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, rgba(26, 42, 74, 0.55), rgba(15, 27, 51, 0.92));
  color: var(--text);
  text-decoration: none;
  transition: transform 0.24s var(--ease), border-color 0.24s var(--ease), box-shadow 0.24s var(--ease);
}

.page-home .home-next__card:hover,
.page-home .home-next__card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px rgba(76, 215, 255, 0.35), 0 20px 44px rgba(0, 0, 0, 0.5);
}

.page-home .home-next__idx {
  position: absolute;
  top: 22px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(76, 215, 255, 0.5);
  color: var(--cyan);
  font-size: 12px;
}

.page-home .home-next__title {
  font-size: 18px;
  font-weight: 700;
}

.page-home .home-next__desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .home-next__more {
  margin: 22px 0 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .home-next__more a {
  color: var(--neon);
  text-decoration: none;
  border-bottom: 1px solid rgba(53, 240, 160, 0.45);
}

.page-home .home-next__more a:hover,
.page-home .home-next__more a:focus-visible {
  color: var(--text);
  border-bottom-color: var(--text);
}

/* ---------- 浮动快捷入口 ---------- */
.page-home .home-jump {
  position: fixed;
  left: 16px;
  bottom: 18px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid rgba(53, 240, 160, 0.5);
  border-radius: var(--radius-pill);
  background: rgba(15, 27, 51, 0.94);
  color: var(--neon);
  font-size: 13px;
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.page-home .home-jump:hover,
.page-home .home-jump:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.page-home .home-jump__icon {
  font-size: 12px;
}

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

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

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

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

@media (min-width: 900px) {
  .page-home .home-hero__inner {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    gap: 52px;
  }

  .page-home .home-hero__copy {
    padding-bottom: 18px;
  }

  .page-home .home-round {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 34px;
  }

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

  .page-home .home-client {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: 34px;
  }

  .page-home .home-archive {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 36px;
  }

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

@media (min-width: 1180px) {
  .page-home .home-hero__media {
    margin-right: -40px;
  }

  .page-home .home-jump {
    left: 28px;
    bottom: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-path,
  .page-home .home-next__card,
  .page-home .home-jump,
  .page-home .home-node__pop,
  .page-home .home-path__arrow {
    transition: none;
  }

  .page-home .home-path:hover,
  .page-home .home-path:focus-visible,
  .page-home .home-next__card:hover,
  .page-home .home-next__card:focus-visible,
  .page-home .home-jump:hover,
  .page-home .home-jump:focus-visible {
    transform: none;
  }
}
