/* ==========================================================================
   首页骨架：九宫格门户 · 居中 Hero + Bento 九格导航 + 横向数据带
   ========================================================================== */

:root {
  --h-bg: #070a18;
  --h-panel: #0f1428;
  --h-indigo: #818cf8;
  --h-indigo-dk: #4338ca;
  --h-text: #e8ecf8;
  --h-muted: #8f9ab8;
}

body.home-page {
  background: var(--h-bg);
  color: var(--h-text);
}

.home-page .site-header {
  background: rgba(7, 10, 24, .84);
  border-bottom-color: rgba(129, 140, 248, .14);
}

.home-page .brand-text { color: #fff; }
.home-page .brand-text em { color: var(--h-indigo); }
.home-page .site-nav a { color: #9aa5c2; }
.home-page .site-nav a:hover { color: #fff; background: rgba(129, 140, 248, .1); }
.home-page .site-nav a.is-active { color: #c7d2fe; background: rgba(129, 140, 248, .16); }
.home-page .nav-toggle { background: transparent; border-color: rgba(129, 140, 248, .3); }
.home-page .nav-toggle span { background: #c7d2fe; }

@media (max-width: 1080px) {
  .home-page .site-nav { background: #0f1428; border-bottom-color: rgba(129, 140, 248, .2); }
  .home-page .site-nav a { color: #9aa5c2; }
}

/* ---------------- Hero：居中 ---------------- */
.h-hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 76px;
  text-align: center;
  background:
    radial-gradient(760px 460px at 50% -10%, rgba(99, 102, 241, .32), transparent 66%),
    radial-gradient(520px 400px at 92% 86%, rgba(168, 85, 247, .14), transparent 70%),
    var(--h-bg);
}

.h-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(129, 140, 248, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(129, 140, 248, .055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 10%, transparent 72%);
  pointer-events: none;
}

.h-hero-inner { position: relative; z-index: 2; }

.h-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 17px;
  border-radius: 999px;
  border: 1px solid rgba(129, 140, 248, .35);
  background: rgba(129, 140, 248, .1);
  font-size: 12.5px;
  font-weight: 600;
  color: #c7d2fe;
  letter-spacing: .5px;
}

.h-pill i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, .16);
}

.h-hero h1 {
  margin: 26px auto 18px;
  max-width: 900px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: -.8px;
}

.h-hero h1 .grad {
  background: linear-gradient(100deg, #a5b4fc, #818cf8 45%, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.h-hero .lead {
  max-width: 660px;
  margin: 0 auto;
  font-size: 16.5px;
  line-height: 1.9;
  color: var(--h-muted);
}

.h-hero .lead strong { color: #e8ecf8; }

.h-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 32px 0 0;
}

.h-actions .btn-primary {
  background: linear-gradient(135deg, #818cf8, #4338ca);
  color: #fff;
  box-shadow: 0 16px 38px rgba(67, 56, 202, .4);
}

.h-actions .btn-room {
  border-color: rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .04);
  color: #fff;
}

.h-actions .btn-room b { color: #c7d2fe; letter-spacing: 1.5px; }

/* Hero 图 */
.h-visual {
  position: relative;
  z-index: 2;
  width: min(100%, 720px);
  margin: 44px auto 0;
}

.h-visual img {
  width: 100%;
  border-radius: 20px;
  filter: drop-shadow(0 40px 80px rgba(0, 0, 0, .55));
}

/* ---------------- 九格导航 ---------------- */
.h-section { padding: 90px 0; }

.h-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }

.h-head .k {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--h-indigo);
}

.h-head h2 {
  margin: 12px 0 10px;
  font-size: clamp(25px, 3.2vw, 38px);
  font-weight: 900;
  line-height: 1.3;
}

.h-head p { color: var(--h-muted); font-size: 15.5px; }

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 190px;
  padding: 26px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(160deg, #121830, #0a0e1d);
  overflow: hidden;
  transition: transform .25s, border-color .25s;
}

.bento-card::after {
  content: "";
  position: absolute;
  right: -46px; top: -46px;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(129, 140, 248, .18), transparent 70%);
  transition: transform .35s;
}

.bento-card:hover {
  transform: translateY(-5px);
  border-color: rgba(129, 140, 248, .45);
}

.bento-card:hover::after { transform: scale(1.4); }

.bento-card .no {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: #5b6690;
}

.bento-card h3 {
  position: relative;
  margin: 14px 0 8px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.bento-card p {
  position: relative;
  font-size: 13.5px;
  line-height: 1.75;
  color: #8b96b4;
  flex: 1;
}

.bento-card .go {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 12.5px;
  font-weight: 700;
  color: #a5b4fc;
}

.bento-card .go span { transition: transform .2s; }
.bento-card:hover .go span { transform: translateX(5px); }

.bento-card.wide { grid-column: span 2; }

.bento-card.accent {
  background:
    radial-gradient(280px 200px at 90% 10%, rgba(129, 140, 248, .28), transparent 70%),
    linear-gradient(160deg, #1a2050, #0d1226);
  border-color: rgba(129, 140, 248, .4);
}

/* ---------------- 数据带 ---------------- */
.h-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(129, 140, 248, .2);
  border-radius: 18px;
  background: linear-gradient(180deg, #111731, #0a0e1d);
  overflow: hidden;
}

.h-stats div {
  padding: 30px 20px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, .07);
}

.h-stats div:last-child { border-right: 0; }

.h-stats b {
  display: block;
  font-family: Georgia, serif;
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 700;
  color: #c7d2fe;
}

.h-stats span { display: block; margin-top: 6px; font-size: 12.5px; color: #7b87a8; }

/* ---------------- 说明区 ---------------- */
.h-why {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.h-why-text h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 14px;
}

.h-why-text p { font-size: 15.5px; line-height: 1.9; color: var(--h-muted); }
.h-why-text p + p { margin-top: 12px; }
.h-why-text strong { color: #fff; }

.h-list { display: grid; gap: 10px; }

.h-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .07);
  background: rgba(255, 255, 255, .02);
}

.h-list .n {
  font-family: var(--mono);
  font-size: 13px;
  color: #818cf8;
  padding-top: 2px;
}

.h-list h4 { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.h-list p { font-size: 13px; line-height: 1.7; color: #8b96b4; }

/* ---------------- CTA ---------------- */
.h-cta { padding: 0 0 96px; }

.h-cta-box {
  padding: 52px 48px;
  border-radius: 20px;
  border: 1px solid rgba(129, 140, 248, .3);
  background:
    radial-gradient(500px 260px at 88% 12%, rgba(129, 140, 248, .22), transparent 70%),
    linear-gradient(135deg, #151b3a, #090d1a);
  text-align: center;
}

.h-cta-box h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 900; margin-bottom: 10px; }
.h-cta-box p { font-size: 15px; color: var(--h-muted); max-width: 620px; margin-inline: auto; }
.h-cta-box .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.h-cta-box .tg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, .2);
  font-size: 14.5px;
  font-weight: 700;
  transition: border-color .2s, background .2s;
}

.h-cta-box .tg:hover { border-color: #818cf8; background: rgba(129, 140, 248, .1); }

/* 入场 */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s, transform .7s; }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1000px) {
  .h-hero { padding: 62px 0 56px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-card.wide { grid-column: span 2; }
  .h-stats { grid-template-columns: 1fr 1fr; }
  .h-stats div:nth-child(2) { border-right: 0; }
  .h-stats div:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .07); }
  .h-why { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .h-hero h1 { font-size: 30px; }
  .h-actions .btn { width: 100%; }
  .h-section { padding: 64px 0; }
  .bento { grid-template-columns: 1fr; }
  .bento-card.wide { grid-column: span 1; }
  .bento-card { min-height: 0; }
  .h-stats div { padding: 22px 12px; }
  .h-cta { padding-bottom: 68px; }
  .h-cta-box { padding: 34px 22px; }
  .h-cta-box .row .btn, .h-cta-box .row .tg { width: 100%; }
}
