.page-home {
  --home-line: rgba(154, 167, 199, 0.26);
  --home-line-soft: rgba(154, 167, 199, 0.12);
  --home-glow: rgba(34, 211, 238, 0.5);
}

.page-home .section {
  padding-block: clamp(52px, 7vw, 104px);
}

.page-home .inline-link {
  color: var(--electric);
  text-decoration: none;
  border-bottom: 1px solid rgba(34, 211, 238, 0.4);
}

.page-home .inline-link:hover {
  color: var(--paper);
  border-bottom-color: var(--paper);
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(58px, 9vw, 132px);
  border-bottom: 1px solid var(--home-line-soft);
  background:
    radial-gradient(120% 90% at 80% 8%, rgba(108, 77, 255, 0.3), transparent 62%),
    radial-gradient(90% 80% at 6% 92%, rgba(34, 211, 238, 0.14), transparent 66%),
    var(--void);
}

.page-home .hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  display: block;
}

.page-home .hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 11, 26, 0.58) 0%, rgba(7, 11, 26, 0.8) 58%, var(--void) 100%);
}

.page-home .hero-frame {
  position: absolute;
  inset: clamp(10px, 2.4vw, 32px);
  border: 1px solid var(--home-line);
  pointer-events: none;
  z-index: 1;
}

.page-home .hero-frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 9px;
  background-image: repeating-linear-gradient(90deg, var(--home-line) 0 1px, transparent 1px 28px);
}

.page-home .hero-frame::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 9px;
  background-image: repeating-linear-gradient(180deg, var(--home-line) 0 1px, transparent 1px 28px);
}

.page-home .corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1px solid var(--electric);
}

.page-home .corner--tl {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}

.page-home .corner--br {
  bottom: -1px;
  right: -1px;
  border-left: 0;
  border-top: 0;
}

.page-home .hero-inner {
  position: relative;
  z-index: 2;
  padding-inline: clamp(26px, 5vw, 64px);
}

.page-home .hero-context {
  margin: 0 0 clamp(24px, 4vw, 44px);
  font-size: var(--fs-12);
  letter-spacing: 0.14em;
  color: var(--stargray);
}

.page-home .hero-grid {
  display: grid;
  gap: clamp(30px, 4vw, 52px);
}

.page-home .hero-copy h1 {
  margin: 0 0 clamp(18px, 2.4vw, 28px);
  font-size: clamp(2.2rem, 7.2vw, 5rem);
  line-height: 1.1;
  letter-spacing: 0.04em;
  color: var(--paper);
}

.page-home .hero-lede {
  margin: 0 0 clamp(22px, 3vw, 34px);
  max-width: 34em;
  font-size: var(--fs-18);
  line-height: 1.78;
  color: var(--stargray);
}

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

.page-home .hero-note {
  margin: clamp(20px, 3vw, 30px) 0 0;
  font-size: var(--fs-14);
  line-height: 1.7;
  color: var(--stargray);
}

/* 导航星 */
.page-home .nav-star {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  justify-self: start;
  padding: 8px 4px;
  text-decoration: none;
  color: var(--paper);
}

.page-home .nav-star-core {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #ffffff 0%, #22D3EE 38%, #6C4DFF 100%);
  box-shadow: 0 0 22px var(--home-glow), 0 0 0 1px rgba(34, 211, 238, 0.45);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.page-home .nav-star-ring {
  position: absolute;
  left: -12px;
  top: 50%;
  width: 70px;
  height: 70px;
  margin-top: -35px;
  border-radius: 50%;
  border: 1px dashed rgba(154, 167, 199, 0.5);
  animation: home-spin 26s linear infinite;
}

.page-home .nav-star-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.page-home .nav-star-title {
  font-size: var(--fs-16);
  letter-spacing: 0.12em;
  color: var(--electric);
}

.page-home .nav-star-sub {
  font-size: var(--fs-12);
  letter-spacing: 0.06em;
  color: var(--stargray);
}

.page-home .nav-star:hover .nav-star-core,
.page-home .nav-star:focus-visible .nav-star-core {
  transform: scale(1.09);
  box-shadow: 0 0 34px rgba(34, 211, 238, 0.85), 0 0 0 1px var(--electric);
}

.page-home .nav-star:hover .nav-star-sub,
.page-home .nav-star:focus-visible .nav-star-sub {
  color: var(--paper);
}

@keyframes home-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- 服务中心星簇 ---------- */
.page-home .cluster-grid {
  gap: clamp(14px, 2vw, 24px);
  margin-top: clamp(26px, 4vw, 48px);
}

.page-home .cluster {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(20px, 3vw, 32px);
}

.page-home .cluster h3 {
  margin: 0;
  font-size: var(--fs-24);
  line-height: 1.4;
  letter-spacing: 0.03em;
  color: var(--paper);
}

.page-home .cluster p {
  margin: 0;
  font-size: var(--fs-16);
  line-height: 1.75;
  color: var(--stargray);
}

.page-home .cluster-link {
  margin-top: auto;
  padding-top: 6px;
  font-size: var(--fs-14);
  letter-spacing: 0.06em;
  color: var(--electric);
  text-decoration: none;
}

.page-home .cluster-link:hover,
.page-home .cluster-link:focus-visible {
  color: var(--paper);
  text-decoration: underline;
}

.page-home .cluster-media {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border: 1px solid var(--home-line);
  background: var(--night);
}

.page-home .cluster-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  opacity: 0.9;
}

/* ---------- 分类索引带 ---------- */
.page-home .categories {
  background:
    linear-gradient(180deg, rgba(14, 22, 48, 0.72) 0%, rgba(7, 11, 26, 0) 100%);
  border-block: 1px solid var(--home-line-soft);
}

.page-home .cat-band {
  display: grid;
  gap: clamp(20px, 3vw, 34px);
  margin-top: clamp(24px, 3vw, 40px);
}

.page-home .cat-visual {
  border: 1px solid var(--home-line);
  overflow: hidden;
  background: var(--night);
}

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

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

.page-home .cat-node {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid var(--home-line);
  font-size: var(--fs-14);
  letter-spacing: 0.06em;
  color: var(--paper);
  text-decoration: none;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.page-home .cat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--electric);
  box-shadow: 0 0 8px var(--home-glow);
  flex: none;
}

.page-home .cat-node:hover,
.page-home .cat-node:focus-visible {
  border-color: var(--electric);
  background-color: rgba(34, 211, 238, 0.08);
}

.page-home .cat-foot {
  margin: clamp(18px, 2.5vw, 26px) 0 0;
  font-size: var(--fs-14);
  line-height: 1.8;
  color: var(--stargray);
}

/* ---------- 版本公告轨道 ---------- */
.page-home .updates-body {
  display: grid;
  gap: clamp(24px, 3.5vw, 44px);
  margin-top: clamp(24px, 3vw, 40px);
}

.page-home .rail {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--home-line);
}

.page-home .rail-item {
  position: relative;
  padding: 0 0 clamp(24px, 3vw, 36px) clamp(20px, 3vw, 30px);
}

.page-home .rail-item:last-child {
  padding-bottom: 0;
}

.page-home .rail-item::before {
  content: "";
  position: absolute;
  left: -4.5px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--electric);
  box-shadow: 0 0 10px var(--home-glow);
}

.page-home .rail-item h3 {
  margin: 12px 0 8px;
  font-size: var(--fs-18);
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: var(--paper);
}

.page-home .rail-item p {
  margin: 0;
  font-size: var(--fs-16);
  line-height: 1.75;
  color: var(--stargray);
}

.page-home .rail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home .rail-time {
  font-size: var(--fs-12);
  letter-spacing: 0.04em;
  color: var(--rockgray);
}

.page-home .updates-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-home .updates-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--home-line);
  background: var(--night);
}

.page-home .updates-btn {
  align-self: flex-start;
}

/* ---------- 服务版图 ---------- */
.page-home .trust {
  border-top: 1px solid var(--home-line-soft);
}

.page-home .trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
  margin-top: clamp(26px, 3.5vw, 44px);
}

.page-home .stat {
  border-top: 1px solid var(--home-line);
  padding-top: 14px;
}

.page-home .stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 3.4vw, 2.2rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold);
  line-height: 1.2;
}

.page-home .stat-label {
  display: block;
  margin-top: 6px;
  font-size: var(--fs-14);
  line-height: 1.6;
  color: var(--stargray);
}

.page-home .trust-foot {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: clamp(24px, 3vw, 40px);
  padding-top: clamp(20px, 3vw, 30px);
  border-top: 1px solid var(--home-line);
}

.page-home .trust-foot p {
  margin: 0;
  max-width: 62em;
  font-size: var(--fs-16);
  line-height: 1.78;
  color: var(--stargray);
}

/* ---------- 联系入口 ---------- */
.page-home .contact-panel {
  display: grid;
  gap: clamp(24px, 3.5vw, 44px);
  padding: clamp(24px, 4vw, 48px);
}

.page-home .contact-main h2 {
  margin: 0 0 16px;
}

.page-home .contact-main .lede {
  margin: 0 0 clamp(20px, 3vw, 28px);
}

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

.page-home .contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  align-content: start;
}

.page-home .contact-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--home-line-soft);
}

.page-home .contact-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.page-home .contact-label {
  font-size: var(--fs-12);
  letter-spacing: 0.14em;
  color: var(--rockgray);
}

.page-home .contact-value {
  font-size: var(--fs-16);
  line-height: 1.6;
  color: var(--paper);
  text-decoration: none;
  word-break: break-word;
}

a.page-home .contact-value:hover,
.page-home a.contact-value:hover,
.page-home a.contact-value:focus-visible {
  color: var(--electric);
}

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

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

  .page-home .trust-foot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 900px) {
  .page-home .hero-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .page-home .nav-star {
    justify-self: end;
  }

  .page-home .cat-band {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: start;
  }

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

  .page-home .updates-body {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: start;
  }

  .page-home .contact-panel {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  }
}

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

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

@media (prefers-reduced-motion: reduce) {
  .page-home .nav-star-ring {
    animation: none;
  }

  .page-home .nav-star-core {
    transition: none;
  }
}
