/* ============================================================
   home.css · 首页：Hero / 轮播 / 特性 / CTA
   ============================================================ */

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  margin-bottom: 96px;
}

.hero-copy .eyebrow { margin-bottom: 24px; }

.hero-title {
  font-size: clamp(42px, 6.4vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero-title .grad {
  background: linear-gradient(100deg, var(--accent) 10%, var(--blob-2) 55%, var(--blob-3) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  margin-top: 20px;
  font-size: clamp(15px, 1.6vw, 17.5px);
  line-height: 1.8;
  color: var(--text-2);
  max-width: 560px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; align-items: center; }

.hero-stats {
  display: flex;
  gap: clamp(18px, 3vw, 40px);
  margin-top: 40px;
  flex-wrap: wrap;
}

.stat b {
  display: block;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--accent-2), var(--blob-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat span { font-size: 13.5px; color: var(--text-2); }

/* Hero 展示卡（液态玻璃 + 悬浮 logo） */
.hero-show {
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease-apple);
}

.hero-show .liquid-content {
  padding: clamp(26px, 3.4vw, 44px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  width: 100%;
}

.hero-logo {
  width: clamp(120px, 14vw, 168px);
  height: auto;
  border-radius: 26%;
  box-shadow: 0 30px 70px rgba(6, 20, 60, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.25);
  animation: logo-float 6s ease-in-out infinite;
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-show h2 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 750; letter-spacing: -0.01em; }

.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.chip {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-hi);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: transform 0.4s var(--spring), color 0.2s;
}

.chip:hover { transform: scale(1.07); color: var(--text); }
.chip:active { transform: scale(0.93); }

/* ---------- 轮播 ---------- */
.carousel { overflow: hidden; }

.carousel-viewport { position: relative; overflow: hidden; border-radius: inherit; }

.carousel-track {
  display: flex;
  transition: transform 0.65s var(--ease-apple);
  will-change: transform;
  cursor: grab;
}

.carousel-track.is-dragging { transition: none; cursor: grabbing; }

.carousel-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 100%;
  user-select: none;
  -webkit-user-select: none;
}

.carousel-slide img {
  width: 100%;
  aspect-ratio: 16 / 8.4;
  object-fit: cover;
  object-position: top center;
  pointer-events: none;
  -webkit-user-drag: none;
}

.carousel-slide figcaption {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: max-content;
  max-width: 88%;
  text-align: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 550;
  color: var(--text);
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-hi);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.car-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 10px 26px rgba(10, 25, 60, 0.25);
  transition: transform 0.4s var(--spring), opacity 0.3s;
  color: var(--text);
}

.car-btn:hover { transform: translateY(-50%) scale(1.12); }
.car-btn:active { transform: translateY(-50%) scale(0.9); }
.car-btn.prev { left: 18px; }
.car-btn.next { right: 18px; }
.car-btn svg { width: 20px; height: 20px; }

.car-dots {
  position: absolute;
  bottom: 64px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.car-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--text-3);
  transition: all 0.45s var(--spring);
}

.car-dot:hover { transform: scale(1.3); }

.car-dot.is-active {
  width: 26px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(0, 113, 227, 0.6);
}

/* ---------- 特性网格 ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 30px 28px;
  border-radius: var(--r-md);
  transition: transform 0.5s var(--spring);
}

.feature-card:hover { transform: translateY(-6px) scale(1.015); }
.feature-card:active { transform: scale(0.97); }

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: linear-gradient(140deg, var(--accent-soft), transparent 70%), var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-hi);
  color: var(--accent);
}

.feature-icon svg { width: 26px; height: 26px; }

.feature-card h3 { font-size: 17.5px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.feature-card p { font-size: 14.5px; line-height: 1.75; color: var(--text-2); }

/* ---------- 隐私横幅 ---------- */
.privacy-band { padding: clamp(28px, 4vw, 48px); display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

.privacy-band .p-icon {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, var(--accent-2), var(--blob-2));
  color: #fff;
  box-shadow: 0 16px 40px rgba(0, 113, 227, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.privacy-band .p-icon svg { width: 34px; height: 34px; }
.privacy-band h3 { font-size: 22px; font-weight: 750; margin-bottom: 8px; }
.privacy-band p { color: var(--text-2); line-height: 1.8; font-size: 15px; max-width: 720px; }

/* ---------- 底部 CTA ---------- */
.cta-band {
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px);
  text-align: center;
  overflow: hidden;
}

.cta-band h2 { font-size: clamp(28px, 4.4vw, 44px); font-weight: 800; letter-spacing: -0.025em; }
.cta-band p { margin-top: 14px; color: var(--text-2); font-size: 16px; }
.cta-band .hero-cta { justify-content: center; margin-top: 30px; }

.cta-band .store-badge { margin-top: 26px; display: flex; justify-content: center; }
.cta-band .store-badge ms-store-badge {
  display: inline-block;
  transform: scale(1.5);
  transform-origin: center center;
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-show { order: -1; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .feature-grid { grid-template-columns: 1fr; }
  .carousel-slide figcaption { font-size: 12px; padding: 8px 14px; bottom: 14px; }
  .car-dots { bottom: 56px; }
  .car-btn { width: 38px; height: 38px; }
  .car-btn.prev { left: 10px; }
  .car-btn.next { right: 10px; }
}
