/* ==========================================================================
   首页骨架：居中 Hero + 横向滚动卡带（scroll-snap）+ 数据带
   ========================================================================== */

:root {
  --h-bg: #070c17;
  --h-panel: #0f1728;
  --h-coral: #f43f5e;
  --h-coral-lt: #fda4af;
  --h-text: #e9eef7;
  --h-muted: #8b98ae;
}

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

.home-page .site-header { background: rgba(7, 12, 23, .85); border-bottom-color: rgba(244, 63, 94, .14); }
.home-page .brand-text { color: #fff; }
.home-page .brand-text em { color: var(--h-coral-lt); }
.home-page .site-nav a { color: #94a1b8; }
.home-page .site-nav a:hover { color: #fff; background: rgba(244, 63, 94, .1); }
.home-page .site-nav a.is-active { color: #fecdd3; background: rgba(244, 63, 94, .16); }
.home-page .nav-toggle { background: transparent; border-color: rgba(244, 63, 94, .3); }
.home-page .nav-toggle span { background: #fecdd3; }

@media (max-width: 1060px) {
  .home-page .site-nav { background: #0f1728; border-bottom-color: rgba(244, 63, 94, .2); }
  .home-page .site-nav a { color: #94a1b8; }
}

/* ---------------- Hero ---------------- */
.hh-hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 66px;
  text-align: center;
  background:
    radial-gradient(760px 460px at 50% -6%, rgba(244, 63, 94, .24), transparent 66%),
    radial-gradient(520px 380px at 92% 90%, rgba(99, 102, 241, .12), transparent 70%),
    var(--h-bg);
}

.hh-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(253, 164, 175, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(253, 164, 175, .05) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse at 50% 26%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 26%, #000, transparent 70%);
  pointer-events: none;
}

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

.hh-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 17px;
  border-radius: 999px;
  border: 1px solid rgba(244, 63, 94, .34);
  background: rgba(244, 63, 94, .09);
  font-size: 12.5px;
  font-weight: 600;
  color: #fecdd3;
}

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

.hh-hero h1 {
  margin: 26px auto 18px;
  max-width: 880px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -.9px;
  text-wrap: balance;
}

.hh-hero h1 .grad {
  background: linear-gradient(100deg, #fda4af, #f43f5e 48%, #be123c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.hh-lead strong { color: var(--h-text); }

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

.hh-actions .btn-primary {
  background: linear-gradient(135deg, #f43f5e, #be123c);
  color: #fff;
  box-shadow: 0 16px 38px rgba(190, 18, 60, .38);
}

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

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

.hh-visual {
  position: relative;
  z-index: 2;
  width: min(100%, 780px);
  margin: 44px auto 0;
}

.hh-visual img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(253, 164, 175, .14);
  filter: drop-shadow(0 40px 70px rgba(0, 0, 0, .6));
}

/* ---------------- 横向卡带 ---------------- */
.hh-section { padding: 82px 0; }

.hh-head { max-width: 700px; margin: 0 auto 34px; text-align: center; }

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

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

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

.rail-wrap { position: relative; }

.rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 24px 22px;
  margin-inline: -24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(244, 63, 94, .4) transparent;
}

.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-track { background: transparent; }
.rail::-webkit-scrollbar-thumb {
  background: rgba(244, 63, 94, .35);
  border-radius: 3px;
}

.rail-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: 28px 26px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(165deg, #121a2c, #0a101c);
  transition: transform .25s, border-color .25s;
}

.rail-card:hover {
  transform: translateY(-5px);
  border-color: rgba(244, 63, 94, .42);
}

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

.rail-card h3 {
  margin: 14px 0 9px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.rail-card p {
  flex: 1;
  font-size: 13.5px;
  line-height: 1.78;
  color: #8b98ae;
}

.rail-card .go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--h-coral-lt);
}

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

.rail-card.feature {
  background:
    radial-gradient(260px 180px at 90% 0%, rgba(244, 63, 94, .26), transparent 70%),
    linear-gradient(165deg, #1a1224, #0c0f1c);
  border-color: rgba(244, 63, 94, .36);
}

.rail-hint {
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  color: #5f6b82;
  letter-spacing: 1px;
}

/* ---------------- 数据 ---------------- */
.hh-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(244, 63, 94, .18);
  border-radius: 18px;
  background: linear-gradient(180deg, #101828, #0a0f1b);
  overflow: hidden;
}

.hh-stats div {
  padding: 28px 20px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, .06);
}

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

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

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

/* ---------------- 说明双栏 ---------------- */
.hh-why {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
}

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

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

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

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

.hh-list .n { font-family: var(--mono); font-size: 13px; color: var(--h-coral-lt); padding-top: 2px; }
.hh-list h4 { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.hh-list p { font-size: 13px; line-height: 1.7; color: #8b98ae; }

/* ---------------- CTA ---------------- */
.hh-cta { padding: 0 0 92px; }

.hh-cta-box {
  padding: 50px 46px;
  border-radius: 20px;
  border: 1px solid rgba(244, 63, 94, .28);
  background:
    radial-gradient(500px 260px at 88% 12%, rgba(244, 63, 94, .2), transparent 70%),
    linear-gradient(135deg, #15192c, #080d18);
  text-align: center;
}

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

.hh-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;
}

.hh-cta-box .tg:hover { border-color: var(--h-coral); background: rgba(244, 63, 94, .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) {
  .hh-hero { padding: 60px 0 52px; }
  .hh-stats { grid-template-columns: 1fr 1fr; }
  .hh-stats div:nth-child(2) { border-right: 0; }
  .hh-stats div:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .hh-why { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 640px) {
  .hh-hero h1 { font-size: 30px; }
  .hh-actions .btn { width: 100%; }
  .hh-section { padding: 58px 0; }
  .rail-card { flex: 0 0 82vw; }
  .hh-stats div { padding: 22px 12px; }
  .hh-cta { padding-bottom: 66px; }
  .hh-cta-box { padding: 32px 22px; }
  .hh-cta-box .row .btn, .hh-cta-box .row .tg { width: 100%; }
}
