/**
 * Hero section - full-bleed OLED black with radial mesh + 3-image carousel
 *
 * Design language (per high-end-visual-design + impeccable brand):
 *   - radial mesh: 2 large blurred orbs (lime top-right, violet bottom-left)
 *   - massive title (clamp 4-10rem, tight tracking -0.045em)
 *   - micro eyebrow above title
 *   - button-in-button CTA with magnetic hover
 *   - carousel: 3 stacked slides with opacity crossfade (6s autoplay)
 *
 * Memory: img rules all !important, no JS in <script type="..."> (handled in assets class).
 */

[data-blinds-hero] {
  position: relative;
  min-height: min(900px, 100dvh);
  display: grid;
  grid-template-rows: 1fr auto;
  padding: clamp(64px, 12vw, 192px) clamp(20px, 4vw, 64px) clamp(40px, 6vw, 96px);
  background: var(--ink-bg);
  isolation: isolate;
  overflow: hidden;
}

/* radial mesh: 2 large blurred orbs */
[data-blinds-hero]::before,
[data-blinds-hero]::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
}
[data-blinds-hero]::before {
  width: 60vw; height: 60vw;
  top: -10vw; right: -10vw;
  background: radial-gradient(circle, var(--ink-lime) 0%, transparent 60%);
  opacity: 0.35;
  animation: hero-orb-1 18s ease-in-out infinite alternate;
}
[data-blinds-hero]::after {
  width: 50vw; height: 50vw;
  bottom: -10vw; left: -15vw;
  background: radial-gradient(circle, var(--ink-violet) 0%, transparent 60%);
  opacity: 0.45;
  animation: hero-orb-2 22s ease-in-out infinite alternate;
}
@keyframes hero-orb-1 { to { transform: translate(-30px, 40px) scale(1.08); } }
@keyframes hero-orb-2 { to { transform: translate(40px, -30px) scale(1.05); } }

/* grain overlay (fixed position, pointer-events none) */
[data-blinds-hero] > .hero-grain {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.07 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  mix-blend-mode: overlay;
}

/* main content */
.hero-content {
  position: relative;
  z-index: var(--z-content);
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  gap: clamp(24px, 4vw, 48px);
}

/* eyebrow micro-tag */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--ink-line-2);
  border-radius: var(--r-pill);
  background: var(--ink-surface);
  width: max-content;
  font-family: var(--font-body);
  font-size: var(--fs-12);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--ink-mute);
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink-lime);
  box-shadow: 0 0 8px var(--ink-lime);
  animation: hero-dot-pulse 2.4s var(--ease-in-out) infinite;
}
@keyframes hero-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* title */
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 3.6vw + 1.2rem, 4.6rem);
  line-height: 1.04;
  max-width: 14ch;
  letter-spacing: var(--ls-tight);
  color: var(--ink-fg);
  text-wrap: balance;
  margin: 0;
  max-width: 14ch;
}
.hero-title .accent {
  color: var(--ink-lime);
  font-style: italic;
  font-weight: 700;
}
.hero-title .stroke {
  -webkit-text-stroke: 1.5px var(--ink-fg);
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* subtitle */
.hero-sub {
  font-family: var(--font-body);
  font-size: var(--fs-18);
  line-height: 1.5;
  color: var(--ink-mute);
  max-width: 56ch;
  margin: 0;
}

/* CTA row */
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
}

/* magnetic button (button-in-button) */
.btn-magnetic {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px 14px 28px;
  background: var(--ink-lime);
  color: var(--ink-bg);
  border: none;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-16);
  text-decoration: none !important;
  cursor: pointer;
  transition: transform var(--dur-base) var(--ease-spring),
              box-shadow var(--dur-base) var(--ease-out-expo);
  box-shadow: 0 8px 24px -8px rgba(201, 255, 0, 0.5);
}
.btn-magnetic:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 32px -8px rgba(201, 255, 0, 0.7);
}
.btn-magnetic:active {
  transform: scale(0.98);
}
.btn-magnetic .arrow-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--ink-bg);
  color: var(--ink-lime);
  transition: transform var(--dur-base) var(--ease-spring);
}
.btn-magnetic:hover .arrow-wrap {
  transform: translateX(3px) rotate(-45deg);
}

/* secondary CTA (ghost) */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: transparent;
  color: var(--ink-fg);
  border: 1px solid var(--ink-line-2);
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-16);
  text-decoration: none !important;
  transition: border-color var(--dur-base) var(--ease-out-expo),
              background var(--dur-base) var(--ease-out-expo);
}
.btn-ghost:hover {
  border-color: var(--ink-lime-line);
  background: var(--ink-lime-soft);
}

/* carousel (3 slides stacked, opacity crossfade) */
.hero-carousel {
  position: relative;
  margin-top: 56px;
  border-radius: var(--r-2xl);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-height: 520px;
  background: var(--ink-surface);
  border: 1px solid var(--ink-line);
  box-shadow: var(--sh-float);
}
.hero-carousel .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1200ms var(--ease-in-out);
}
.hero-carousel .slide[data-active="1"] { opacity: 1; }
.hero-carousel .slide .slide-img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
.hero-carousel .slide .slide-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(135deg, var(--ink-surface) 0%, var(--ink-surface-2) 100%);
  color: var(--ink-dim);
  font-family: var(--font-body);
  font-size: var(--fs-14);
  text-align: center;
  padding: 24px;
}
.hero-carousel .slide .slide-empty svg {
  width: 48px; height: 48px;
  opacity: 0.4;
}
.hero-carousel .slide .slide-caption {
  position: absolute;
  left: 24px; bottom: 24px;
  font-family: var(--font-body);
  font-size: var(--fs-14);
  color: var(--ink-fg);
  background: rgba(5, 5, 5, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--ink-line);
  z-index: 2;
}
.hero-carousel .dots {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 8px;
  z-index: 3;
}
.hero-carousel .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out-expo);
  padding: 0;
}
.hero-carousel .dot[data-active="1"] {
  background: var(--ink-lime);
  width: 24px;
  border-radius: 4px;
}

/* scroll indicator (bottom) */
.hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: var(--fs-12);
  color: var(--ink-mute);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  z-index: var(--z-content);
}
.hero-scroll .line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--ink-mute), transparent);
  animation: hero-scroll-line 2.4s var(--ease-in-out) infinite;
}
@keyframes hero-scroll-line {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* trust strip below hero */
.hero-trust {
  position: relative;
  z-index: var(--z-content);
  max-width: 1200px;
  width: 100%;
  margin: 56px auto 0;
  padding: 28px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  border-top: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
}
.hero-trust .trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: var(--fs-14);
  color: var(--ink-mute);
}
.hero-trust .trust-item .icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--ink-lime-soft);
  border: 1px solid var(--ink-lime-line);
  color: var(--ink-lime);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-trust .trust-item strong {
  color: var(--ink-fg);
  font-weight: 500;
  display: block;
  margin-bottom: 2px;
}

/* responsive handled in responsive.css */


/* === Phase 3 additions (simplified for image-driven carousel) === */

/* 怀疑→回应型 hero title accent */
.hero-title .accent {
  background: linear-gradient(180deg, var(--ink-lime) 0%, #B5E600 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-style: italic;
}

/* 倒计时 eyebrow */
.hero-eyebrow [data-countdown] {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
[data-countdown-text] {
  color: var(--ink-fg);
  font-variant-numeric: tabular-nums;
}

/* 盲盒不退条文 */
.hero-no-refund {
  margin-top: 32px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: var(--fs-13);
  line-height: 1.6;
  color: var(--ink-dim);
  text-align: center;
  max-width: 100%;
}
@media (max-width: 767px) {
  .hero-no-refund {
    font-size: var(--fs-12);
    padding: 12px 16px;
  }
  .hero-content {
    /* 给底部 hero-scroll 留位置,避免和 hero-no-refund 重叠 */
    padding-bottom: clamp(60px, 12vw, 100px);
  }
}
