/* ===== 首页专属样式：page-home ===== */
.page-home {
  --hero-grid-size: 48px;
  --hero-grid-line: rgba(140, 158, 255, 0.08);
  --module-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
  background: var(--color-bg);
}

/* ---------- Hero 首屏 ---------- */
.page-home .page-home-hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
}

.page-home .page-home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--hero-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid-line) 1px, transparent 1px);
  background-size: var(--hero-grid-size) var(--hero-grid-size);
  z-index: 0;
  pointer-events: none;
}

.page-home .page-home-hero::after {
  content: "";
  position: absolute;
  right: -12%;
  top: -18%;
  width: 62%;
  height: 128%;
  background: linear-gradient(135deg, rgba(30, 42, 90, 0.95), rgba(46, 30, 94, 0.88));
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
  z-index: 0;
  pointer-events: none;
}

.page-home .hero-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 52px;
  padding-top: 56px;
  padding-bottom: 72px;
}

.page-home .hero-context {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--color-line);
  background: rgba(18, 18, 31, 0.72);
  color: var(--color-text-dim);
  font-size: 13px;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
  border-radius: var(--radius-pill);
}

.page-home .hero-copy h1 {
  font-size: 34px;
  line-height: 1.16;
  margin: 0 0 20px;
  color: #fff;
  font-weight: 700;
  max-width: 10em;
  letter-spacing: -0.02em;
}

.page-home .hero-desc {
  font-size: 15px;
  line-height: 1.85;
  color: var(--color-text-dim);
  max-width: 38em;
  margin: 0;
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.page-home .hero-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  margin: 30px 0 0;
  font-size: 14px;
  color: var(--color-text);
}

.page-home .hero-point-mark {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 9px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
  clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%);
  vertical-align: middle;
}

.page-home .hero-visual {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
}

.page-home .hero-visual__frame {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--color-line-accent);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%);
  overflow: hidden;
}

.page-home .hero-visual__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.page-home .hero-visual__frame::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 14px;
  height: 14px;
  border-top: 2px solid var(--color-accent);
  border-right: 2px solid var(--color-accent);
  z-index: 2;
  pointer-events: none;
}

.page-home .hero-float-tag {
  position: absolute;
  background: rgba(11, 10, 26, 0.86);
  border: 1px solid var(--color-line-accent);
  padding: 8px 13px;
  font-size: 12px;
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  z-index: 3;
}

.page-home .hero-float-tag--one {
  top: 16px;
  left: 8px;
  border-radius: var(--radius-pill);
}

.page-home .hero-float-tag--two {
  right: 6px;
  bottom: 42px;
  color: var(--color-accent);
  border-color: rgba(0, 229, 255, 0.45);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 14px 100%);
}

.page-home .hero-visual__meta {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  justify-content: flex-end;
}

/* ---------- 四模块堆叠面板 ---------- */
.page-home .home-modules {
  padding: 72px 0 88px;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-deep) 100%);
}

.page-home .module-grid {
  display: grid;
  gap: 18px;
  margin-top: 44px;
}

.page-home .module-card {
  position: relative;
  background: linear-gradient(135deg, rgba(30, 42, 90, 0.5), rgba(18, 18, 31, 0.92));
  border: 1px solid var(--color-line);
  border-left: 3px solid var(--color-accent);
  box-shadow: var(--module-shadow);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-home .module-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 14px;
  height: 14px;
  background: var(--color-bg-deep);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  pointer-events: none;
}

.page-home .module-card:hover,
.page-home .module-card:focus-within {
  transform: translateY(-4px);
  border-color: var(--color-line-accent);
  box-shadow: 0 18px 48px rgba(0, 229, 255, 0.07);
}

.page-home .module-summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 20px;
  cursor: pointer;
}

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

.page-home .module-index {
  flex: 0 0 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-accent);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-alt));
  clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%);
}

.page-home .module-text {
  flex: 1;
  display: grid;
  gap: 4px;
  min-width: 0;
}

.page-home .module-title {
  font-size: 17px;
  color: #fff;
  font-weight: 700;
  line-height: 1.4;
}

.page-home .module-desc {
  font-size: 13px;
  color: var(--color-text-dim);
  line-height: 1.5;
}

.page-home .module-arrow {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-line);
  color: var(--color-accent);
  font-size: 18px;
  font-weight: 400;
  transition: transform 0.25s ease;
}

.page-home .module-card[open] .module-arrow {
  transform: rotate(45deg);
}

.page-home .module-card:not([open]) .module-body {
  display: none;
}

.page-home .module-body {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 0 20px 26px 78px;
}

.page-home .module-card[open] .module-body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent) 35%, var(--color-gold) 65%, transparent);
  transform: translateX(-100%);
  animation: pageHomeModuleSweep 0.7s ease forwards;
  pointer-events: none;
}

@keyframes pageHomeModuleSweep {
  to {
    transform: translateX(100%);
  }
}

.page-home .module-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--color-text);
}

.page-home .module-body img {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--color-line);
}

.page-home .module-body .btn {
  justify-self: start;
}

/* ---------- 平台数据一览 ---------- */
.page-home .home-stats {
  padding: 80px 0;
  background: var(--color-bg-deep);
  position: relative;
}

.page-home .home-stats::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), transparent 40%);
  opacity: 0.5;
  pointer-events: none;
}

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

.page-home .stat-card {
  background: linear-gradient(160deg, rgba(30, 42, 90, 0.45), rgba(18, 18, 31, 0.92));
  border: 1px solid var(--color-line);
  padding: 26px 14px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.page-home .stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-line-accent);
}

.page-home .stat-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s ease;
}

.page-home .stat-card:hover::after {
  transform: scaleX(1);
}

.page-home .stat-num {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  background-image: linear-gradient(100deg, transparent 30%, rgba(0, 229, 255, 0.35) 50%, transparent 70%);
  background-size: 200% 100%;
  background-repeat: no-repeat;
}

.page-home .stat-card[data-reveal="in"] .stat-num {
  animation: pageHomeStatShine 1.4s ease both;
}

@keyframes pageHomeStatShine {
  0% {
    background-position: -120% 0;
  }
  100% {
    background-position: 220% 0;
  }
}

.page-home .stat-label {
  display: block;
  font-size: 13px;
  color: var(--color-text-dim);
  margin-top: 8px;
}

.page-home .stats-note {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
  border: 1px solid var(--color-line);
  background: rgba(30, 42, 90, 0.3);
  padding: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text);
}

.page-home .stats-note__icon {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-alt));
  border: 1px solid var(--color-line-accent);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-accent);
}

/* ---------- 最新动态 ---------- */
.page-home .home-news {
  padding: 80px 0 96px;
  background: linear-gradient(180deg, var(--color-bg-deep), var(--color-bg));
}

.page-home .news-grid {
  display: grid;
  gap: 18px;
  margin-top: 44px;
}

.page-home .news-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  padding: 28px 24px;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-home .news-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--color-gold), transparent 80%);
  opacity: 0.8;
  pointer-events: none;
}

.page-home .news-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-line-accent);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
}

.page-home .news-card__tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--color-gold);
  border: 1px solid rgba(232, 195, 106, 0.4);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

.page-home .news-card h3 {
  font-size: 20px;
  color: #fff;
  margin: 16px 0 10px;
  line-height: 1.45;
  font-weight: 700;
}

.page-home .news-card p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--color-text-dim);
  margin: 0 0 20px;
}

.page-home .news-more {
  text-align: center;
  margin-top: 38px;
}

.page-home .news-more a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid var(--color-line-accent);
  padding: 6px 4px;
  font-size: 15px;
}

.page-home .news-more a::after {
  content: "→";
  transition: transform 0.25s ease;
}

.page-home .news-more a:hover::after {
  transform: translateX(4px);
}

/* ---------- 桌面端布局 ---------- */
@media (min-width: 900px) {
  .page-home .hero-shell {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 64px;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 88px;
  }

  .page-home .hero-copy h1 {
    font-size: 64px;
    line-height: 1.1;
  }

  .page-home .hero-desc {
    font-size: 16px;
  }

  .page-home .hero-visual {
    transform: translateX(10px);
  }

  .page-home .module-grid {
    gap: 22px;
  }

  .page-home .module-summary {
    padding: 28px 32px;
  }

  .page-home .module-title {
    font-size: 20px;
  }

  .page-home .module-body {
    padding: 0 32px 32px 96px;
  }

  .page-home .module-body img {
    max-width: 440px;
  }

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

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

/* ---------- 减少动态偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
