.page-home {
  --home-aurora: radial-gradient(120% 90% at 82% 6%, rgba(108, 75, 216, 0.4), transparent 62%);
  --home-halo: radial-gradient(80% 60% at 8% 96%, rgba(56, 225, 212, 0.14), transparent 70%);
  --home-edge: rgba(154, 123, 255, 0.42);
  --home-card: rgba(18, 20, 31, 0.82);
  background-color: var(--deep-space);
  background-image: var(--home-aurora), var(--home-halo);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding: clamp(20px, 5vw, 44px) var(--gutter) clamp(24px, 5vw, 56px);
}

.page-home .hero-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.page-home .rail-label {
  display: none;
}

.page-home .rail-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  transition: color var(--dur-hover) var(--ease), border-color var(--dur-hover) var(--ease);
}

.page-home .rail-link:hover {
  color: var(--cyan);
  border-color: rgba(56, 225, 212, 0.55);
}

.page-home .rail-link:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.page-home .rail-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.page-home .hero-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(24px, 5vw, 52px) clamp(18px, 4vw, 46px) clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(154deg, #14172a 0%, #0d0f1a 54%, #07080e 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 54px), calc(100% - 54px) 100%, 0 100%);
}

.page-home .hero-stage::before {
  content: "";
  position: absolute;
  top: -24%;
  right: -26%;
  width: min(74%, 620px);
  aspect-ratio: 1;
  background: conic-gradient(from 210deg at 50% 50%, rgba(108, 75, 216, 0.55), rgba(56, 225, 212, 0.18) 38%, transparent 64%);
  clip-path: polygon(50% 0, 100% 38%, 78% 100%, 12% 86%, 0 26%);
  z-index: 0;
  pointer-events: none;
}

.page-home .hero-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(118deg, transparent 10%, #000 66%);
  mask-image: linear-gradient(118deg, transparent 10%, #000 66%);
}

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

.page-home .eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--cyan);
}

.page-home .hero-title {
  margin: 14px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(34px, 8.4vw, 64px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-shadow: 0 0 28px rgba(154, 123, 255, 0.3);
}

.page-home .lede {
  max-width: 60ch;
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .entry-duo {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: 30px;
}

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

.page-home .entry-card::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  opacity: 0.45;
  transition: opacity var(--dur-hover) var(--ease);
}

.page-home .entry-card--version::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.page-home .entry-card:hover {
  transform: translateY(-2px);
  border-color: var(--home-edge);
  box-shadow: 0 14px 36px -20px rgba(108, 75, 216, 0.95);
}

.page-home .entry-card:hover::after {
  opacity: 1;
}

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

.page-home .entry-index {
  position: absolute;
  top: 18px;
  right: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.page-home .entry-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.page-home .entry-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .entry-link {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--cyan);
}

.page-home .ver {
  font-family: var(--font-mono);
  color: var(--gold);
  letter-spacing: 0.02em;
}

/* ---------- 状态摘要条 ---------- */
.page-home .status-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(18, 20, 31, 0.92), rgba(7, 8, 14, 0.55));
}

.page-home .status-inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.page-home .status-item {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
}

.page-home .status-item:last-child {
  border-bottom: none;
}

.page-home .status-key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.page-home .status-val {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--text);
}

.page-home .status-val .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 9px rgba(56, 225, 212, 0.9);
}

.page-home .status-more summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
}

.page-home .status-more summary::-webkit-details-marker {
  display: none;
}

.page-home .status-more summary::after {
  content: "+";
  font-size: 13px;
}

.page-home .status-more[open] summary::after {
  content: "−";
}

.page-home .status-more summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.page-home .status-more p {
  margin: 10px 0 0;
  max-width: 44ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 通用区块 ---------- */
.page-home .section {
  padding: clamp(40px, 7vw, 84px) var(--gutter);
}

.page-home .section-inner {
  max-width: var(--shell-max);
  margin: 0 auto;
}

.page-home .section-title {
  margin: 12px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(26px, 4.6vw, 38px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.01em;
}

.page-home .section-text {
  max-width: 62ch;
  margin: 0;
  font-size: 16px;
  line-height: 1.78;
  color: var(--muted);
}

.page-home .split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

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

.page-home .check-list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
}

.page-home .check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(56, 225, 212, 0.75);
}

.page-home .check-list li:nth-child(2)::before {
  background: var(--gold);
  box-shadow: 0 0 10px rgba(246, 184, 90, 0.75);
}

.page-home .check-list li:nth-child(3)::before {
  background: var(--nebula-glow);
  box-shadow: 0 0 10px rgba(154, 123, 255, 0.75);
}

.page-home .figure-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(23, 26, 40, 0.92), rgba(7, 8, 14, 0.96));
}

.page-home .figure-frame img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .figure-frame figcaption {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* ---------- 版本表格 ---------- */
.page-home .version-scroll {
  margin-top: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(18, 20, 31, 0.7);
  overflow-x: auto;
}

.page-home .version-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
}

.page-home .version-table th,
.page-home .version-table td {
  padding: 13px 16px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}

.page-home .version-table thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--muted);
  background: rgba(7, 8, 14, 0.62);
}

.page-home .version-table tbody tr:last-child th,
.page-home .version-table tbody tr:last-child td {
  border-bottom: none;
}

.page-home .version-table tbody tr:hover {
  background: rgba(108, 75, 216, 0.12);
}

.page-home .version-table .ver {
  font-family: var(--font-mono);
  color: var(--gold);
  font-weight: 500;
}

.page-home .table-note {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 客户端下载 ---------- */
.page-home .download-layout {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.page-home .download-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.page-home .plat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--home-card);
  color: var(--text);
  text-decoration: none;
  transition: transform var(--dur-hover) var(--ease), border-color var(--dur-hover) var(--ease);
}

.page-home .plat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--nebula-glow), transparent);
  opacity: 0.45;
  transition: opacity var(--dur-hover) var(--ease);
}

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

.page-home .plat-card:hover::before {
  opacity: 1;
}

.page-home .plat-card:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.page-home .plat-name {
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: 0.01em;
}

.page-home .plat-note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.page-home .plat-ver {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--cyan);
}

/* ---------- 服务与备案 ---------- */
.page-home .trust-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: radial-gradient(120% 120% at 100% 0%, rgba(108, 75, 216, 0.28), transparent 58%),
    rgba(18, 20, 31, 0.86);
}

.page-home .fact-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0 26px;
  padding: 0;
}

.page-home .fact-row > div {
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.page-home .fact-row dt {
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.page-home .fact-row dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.12;
  color: var(--text);
}

.page-home .fact-row dd.fact-mono {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--gold);
}

.page-home .trust-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 中等屏 ---------- */
@media (min-width: 720px) {
  .page-home .entry-duo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

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

/* ---------- 桌面 ---------- */
@media (min-width: 900px) {
  .page-home .hero {
    max-width: var(--shell-max);
    margin: 0 auto;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
  }

  .page-home .hero-rail {
    position: sticky;
    top: 96px;
    flex-direction: column;
    gap: 2px;
    overflow: visible;
    padding: 18px 0 0;
    border-left: 1px solid var(--line);
  }

  .page-home .rail-label {
    display: block;
    padding: 0 0 12px 16px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    color: var(--muted);
  }

  .page-home .rail-link {
    position: relative;
    padding: 9px 0 9px 16px;
    border: none;
    border-radius: 0;
    font-size: 13px;
  }

  .page-home .rail-link::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 50%;
    width: 2px;
    height: 0;
    background: var(--cyan);
    transition: top var(--dur-hover) var(--ease), height var(--dur-hover) var(--ease);
  }

  .page-home .rail-link:hover::before,
  .page-home .rail-link:focus-visible::before {
    top: 0;
    height: 100%;
  }

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

  .page-home .status-item {
    padding: 20px 22px;
    border-bottom: none;
    border-right: 1px solid var(--line);
  }

  .page-home .status-item:first-child {
    padding-left: 0;
  }

  .page-home .status-item:last-child {
    border-right: none;
  }

  .page-home .split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 48px;
  }

  .page-home .split--reverse .split-copy {
    order: 2;
  }

  .page-home .split--reverse .figure-frame {
    order: 1;
  }
}

@media (min-width: 1024px) {
  .page-home .download-layout {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    gap: 32px;
    align-items: start;
  }

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

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

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