/* ===== 首页：星空夜幕 · 数据竞技 ===== */
.page-home {
  --home-slash: rgba(245, 197, 66, 0.24);
  --home-cyan: rgba(0, 229, 255, 0.16);
}

/* ---------- 英雄区 ---------- */
.page-home .home-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 0;
  background: var(--bg-primary);
}

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

.page-home .home-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
}

.page-home .home-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(175deg, rgba(5, 8, 20, 0.92) 0%, rgba(10, 14, 39, 0.75) 52%, var(--bg-primary) 100%);
}

.page-home .home-hero__slash {
  position: absolute;
  z-index: 1;
  bottom: 0;
  right: 0;
  width: 64%;
  height: 40%;
  background: linear-gradient(135deg, transparent 0%, var(--home-slash) 100%);
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
}

.page-home .home-hero__wrap {
  position: relative;
  z-index: 2;
  display: grid;
  align-items: center;
  gap: 32px;
  padding-top: 24px;
  padding-bottom: 72px;
}

.page-home .home-hero__content {
  max-width: 680px;
}

.page-home .home-hero__title {
  margin: 16px 0 0;
  line-height: 1.05;
}

.page-home .home-hero__title-main {
  display: block;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-shadow: 0 0 48px rgba(245, 197, 66, 0.18);
}

.page-home .home-hero__title-sub {
  display: block;
  font-size: 0.36em;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
  margin-top: 10px;
}

.page-home .home-hero__lead {
  margin-top: 20px;
  max-width: 560px;
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.page-home .home-hero__visual {
  position: relative;
  display: none;
  min-height: 300px;
}

.page-home .home-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(56px);
  opacity: 0.5;
  will-change: transform;
}

.page-home .home-hero__orb--gold {
  width: 240px;
  height: 240px;
  background: var(--accent-gold);
  top: 4%;
  right: 10%;
}

.page-home .home-hero__orb--cyan {
  width: 180px;
  height: 180px;
  background: var(--accent-cyan);
  left: 8%;
  bottom: 10%;
}

.page-home .home-hero__badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-elevated);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  text-align: center;
  box-shadow: var(--shadow-card);
  min-width: 160px;
}

.page-home .home-hero__badge-num {
  display: block;
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--accent-gold);
  line-height: 1;
}

.page-home .home-hero__badge-label {
  display: block;
  margin-top: 6px;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

.page-home .home-hero__particle {
  position: absolute;
  z-index: 2;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-gold);
  opacity: 0.5;
}

.page-home .home-hero__particle--1 { top: 16%; left: 12%; }
.page-home .home-hero__particle--2 { top: 38%; right: 16%; width: 4px; height: 4px; background: var(--accent-cyan); }
.page-home .home-hero__particle--3 { bottom: 26%; left: 24%; width: 5px; height: 5px; }

@media (prefers-reduced-motion: no-preference) {
  .page-home .home-hero__particle--1 { animation: home-float 7s ease-in-out infinite; }
  .page-home .home-hero__particle--2 { animation: home-float 9s ease-in-out 0.6s infinite; }
  .page-home .home-hero__particle--3 { animation: home-float 6s ease-in-out 1.2s infinite; }
  .page-home .home-hero__orb { animation: home-orb 12s ease-in-out infinite alternate; }
  .page-home .home-hero__orb--cyan { animation-duration: 16s; }
}

@keyframes home-float {
  0%, 100% { transform: translateY(0); opacity: 0.35; }
  50% { transform: translateY(-18px); opacity: 0.9; }
}

@keyframes home-orb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-20px, 12px) scale(1.08); }
}

.page-home .home-hero__stats {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, rgba(20, 26, 51, 0.55) 0%, rgba(10, 14, 39, 0.92) 100%);
  border-top: 1px solid var(--divider);
  backdrop-filter: blur(8px);
}

.page-home .home-hero__stats-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding: 16px 0;
}

.page-home .home-hero__stats-item {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.page-home .home-hero__stats-item strong {
  font-size: 1.125rem;
  color: var(--accent-gold);
  font-weight: 800;
}

/* ---------- 四大核心服务 ---------- */
.page-home .home-services {
  padding: 56px 0 16px;
}

.page-home .home-services__header {
  margin-bottom: 28px;
}

.page-home .home-services__tabswrap {
  margin-top: 8px;
}

.page-home .home-services__tablist {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  margin-bottom: 32px;
  scrollbar-width: none;
}

.page-home .home-services__tablist::-webkit-scrollbar {
  display: none;
}

.page-home .home-services__tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--divider);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: var(--transition);
}

.page-home .home-services__tab-num {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

.page-home .home-services__tab:hover {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
}

.page-home .home-services__tab[aria-selected="true"] {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: var(--bg-primary);
  font-weight: 700;
  box-shadow: var(--shadow-gold);
}

.page-home .home-services__tab[aria-selected="true"] .home-services__tab-num {
  color: var(--bg-primary);
}

.page-home .home-services__panel {
  margin-bottom: 40px;
}

.page-home [data-tabs] .tabs__panel {
  display: block;
}

.page-home [data-tabs] .tabs__panel[hidden] {
  display: none;
}

.page-home .home-services__card {
  display: grid;
  gap: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--divider);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.page-home .home-services__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-deep);
}

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

.page-home .home-services__body {
  padding: 24px 20px;
}

.page-home .home-services__index {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 10px;
}

.page-home .home-services__body h3 {
  margin-bottom: 12px;
}

.page-home .home-services__body p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.75;
}

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

.page-home .home-services__list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.page-home .home-services__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 10px rgba(245, 197, 66, 0.35);
}

.page-home .home-services__media--texture {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 55% 45% at 50% 18%, rgba(0, 229, 255, 0.2) 0%, transparent 70%),
    radial-gradient(ellipse 45% 30% at 72% 82%, rgba(245, 197, 66, 0.16) 0%, transparent 60%),
    var(--bg-deep);
}

.page-home .home-services__media-shape {
  position: absolute;
  width: 58%;
  height: 48%;
  background: linear-gradient(135deg, rgba(245, 197, 66, 0.5) 0%, rgba(245, 197, 66, 0.1) 100%);
  clip-path: polygon(0 0, 100% 0, 76% 100%, 0 100%);
  border-radius: 10px;
  box-shadow: 0 0 32px rgba(245, 197, 66, 0.12);
}

.page-home .home-services__media-line {
  position: absolute;
  width: 72%;
  height: 2px;
  background: var(--accent-cyan);
  opacity: 0.5;
  bottom: 26%;
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.5);
}

.page-home .home-services__media-tag {
  position: relative;
  z-index: 1;
  font-size: 0.8125rem;
  letter-spacing: 0.32em;
  font-weight: 600;
  color: var(--text-secondary);
  text-indent: 0.32em;
}

/* ---------- 实时数据看板 ---------- */
.page-home .home-dashboard {
  position: relative;
  padding: 48px 0 64px;
  background: linear-gradient(180deg, transparent 0%, rgba(20, 26, 51, 0.4) 50%, transparent 100%);
}

.page-home .home-dashboard__glow {
  position: absolute;
  top: 10%;
  right: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.1);
  filter: blur(80px);
  pointer-events: none;
}

.page-home .home-dashboard__header {
  margin-bottom: 32px;
}

.page-home .home-dashboard__header .lead {
  max-width: 720px;
}

.page-home .home-dashboard__grid {
  display: grid;
  gap: 16px;
}

.page-home .home-dashboard__stat {
  position: relative;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.page-home .home-dashboard__stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.6);
}

.page-home .home-dashboard__stat--gold::before {
  background: var(--accent-gold);
  box-shadow: 0 0 12px rgba(245, 197, 66, 0.6);
}

.page-home .home-dashboard__num {
  display: block;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.page-home .home-dashboard__stat--gold .home-dashboard__num {
  color: var(--accent-gold);
}

.page-home .home-dashboard__stat--cyan .home-dashboard__num {
  color: var(--accent-cyan);
}

.page-home .home-dashboard__label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.page-home .home-dashboard__meta {
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ---------- 最新动态 ---------- */
.page-home .home-news {
  padding: 16px 0 56px;
}

.page-home .home-news__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 18px;
  margin-bottom: 28px;
}

.page-home .home-news__header .h2 {
  margin: 8px 0 0;
}

.page-home .home-news__lead-link {
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.page-home .home-news__lead-link:hover {
  color: var(--accent-gold);
}

.page-home .home-news__grid {
  display: grid;
  gap: 16px;
}

.page-home .home-news__card {
  background: var(--bg-elevated);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.page-home .home-news__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(245, 197, 66, 0.4);
}

.page-home .home-news__card h3 {
  margin: 14px 0 10px;
  font-size: 1.125rem;
  line-height: 1.5;
}

.page-home .home-news__card p {
  margin-bottom: 14px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.page-home .home-news__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}

.page-home .home-news__link:hover {
  color: var(--accent-gold);
}

/* ---------- 访问须知 ---------- */
.page-home .home-notice {
  padding: 24px 0 8px;
}

.page-home .home-notice__inner {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 24px;
  background: linear-gradient(135deg, var(--bg-deep) 0%, rgba(10, 14, 39, 0.65) 100%);
  border: 1px solid var(--divider);
  border-radius: var(--radius-xl);
  padding: 36px 24px;
}

.page-home .home-notice__inner::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(245, 197, 66, 0.1);
  filter: blur(8px);
  pointer-events: none;
}

.page-home .home-notice__inner .eyebrow {
  margin-bottom: 8px;
}

.page-home .home-notice__info h2 {
  margin-bottom: 14px;
}

.page-home .home-notice__info p {
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.75;
}

.page-home .home-notice__info .text-secondary {
  margin-top: 12px;
  font-size: 0.9375rem;
}

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

/* ---------- 响应式增强 ---------- */
@media (min-width: 768px) {
  .page-home .home-hero {
    padding-top: 72px;
  }

  .page-home .home-hero__wrap {
    min-height: 540px;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    padding-bottom: 88px;
  }

  .page-home .home-hero__visual {
    display: block;
  }

  .page-home .home-hero__stats-inner {
    justify-content: space-between;
  }

  .page-home .home-services__body {
    padding: 36px 32px;
  }

  .page-home .home-services__card {
    grid-template-columns: 1fr 1fr;
  }

  .page-home .home-services__card--rev .home-services__media {
    order: 2;
  }

  .page-home .home-services__card--rev .home-services__body {
    order: 1;
  }

  .page-home .home-dashboard__grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

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

  .page-home .home-notice__inner {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    padding: 40px 36px;
  }

  .page-home .home-notice__actions {
    justify-content: flex-end;
  }
}

@media (min-width: 1024px) {
  .page-home .home-hero {
    padding-top: 88px;
  }

  .page-home .home-hero__wrap {
    min-height: 660px;
  }

  .page-home .home-hero__slash {
    width: 42%;
    height: 58%;
  }

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