/* 首页首屏 Hero v2 — 精简 · 科技字体 · 左文案右截图 */

.hero-v2 {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}

.hero-v2__ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 55% at 72% 32%, rgba(94, 179, 255, 0.16), transparent 58%),
    radial-gradient(ellipse 50% 45% at 12% 68%, rgba(201, 169, 98, 0.1), transparent 52%),
    linear-gradient(165deg, #070a10 0%, #05070a 50%, #060910 100%);
}

.hero-v2__grid {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(94, 179, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 179, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 85% 75% at 55% 42%, #000 12%, transparent 78%);
}

.hero-v2__inner {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: clamp(6.5rem, 13vh, 8.5rem) var(--layout-pad) clamp(4.5rem, 10vh, 6.5rem);
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

/* —— 文案区 —— */
.hero-v2__copy {
  max-width: 28rem;
}

.hero-v2__copy--lite .hero-v2__kicker {
  margin-bottom: 1.5rem;
}

.hero-v2__tagline {
  margin: 0 0 1.75rem;
  font-size: clamp(1rem, 1.9vw, 1.2rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--muted);
  max-width: 22em;
}

.hero-v2__copy--lite .hero-v2__title {
  margin-bottom: 0.65rem;
  font-size: clamp(2.1rem, 4.2vw, 3.15rem);
}

.hero-v2__slogan-lite {
  margin-bottom: clamp(2.75rem, 5.5vh, 3.75rem);
}

.hero-v2__slogan-lite .slogan-copy {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero-v2__slogan-lite .slogan-copy:not(.slogan-copy--visible) {
  opacity: 0;
  transform: translateY(6px);
}

.hero-v2__rotate-eyebrow {
  margin: 0 0 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.88;
}

.hero-v2__rotate-line {
  margin: 0;
  font-size: clamp(0.92rem, 1.6vw, 1.02rem);
  line-height: 1.5;
  color: rgba(245, 247, 251, 0.78);
  max-width: 26em;
}

.hero-v2__dots--lite {
  margin-top: 1.1rem;
}

.hero-v2__copy--lite .hero-v2__actions {
  margin-top: clamp(0.75rem, 2vh, 1.25rem);
  gap: 1.1rem;
}

.hero-v2__kicker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-v2__kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.hero-v2__kicker-sep {
  opacity: 0.35;
}

/* 完整 Slogan 面板（注册页等） */
.hero-v2__slogan-panel {
  position: relative;
  margin-bottom: 2.25rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem) 0 clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.25rem, 2vw, 1.65rem);
}

.hero-v2__slogan-rail {
  position: absolute;
  left: 0;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(
    180deg,
    transparent,
    var(--accent) 25%,
    var(--accent-2) 75%,
    transparent
  );
  opacity: 0.85;
  transition: opacity 0.4s ease;
}

.hero-v2__slogan-panel[data-theme="save"] .hero-v2__slogan-rail {
  background: linear-gradient(180deg, transparent, #5eb3ff, #4ecdc4, transparent);
}

.hero-v2__slogan-panel[data-theme="commerce"] .hero-v2__slogan-rail {
  background: linear-gradient(180deg, transparent, #4ecdc4, var(--accent), transparent);
}

.hero-v2__slogan-panel[data-theme="efficiency"] .hero-v2__slogan-rail {
  background: linear-gradient(180deg, transparent, #7dd87d, var(--accent), transparent);
}

.hero-v2__slogan-panel[data-theme="creative"] .hero-v2__slogan-rail {
  background: linear-gradient(180deg, transparent, var(--accent-2), #b07aff, transparent);
}

.hero-v2__slogan-body {
  padding-right: 0.5rem;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.hero-v2__slogan-body:not(.slogan-copy--visible) {
  opacity: 0;
  transform: translateY(8px);
}

.hero-v2__eyebrow {
  margin: 0 0 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--accent);
  opacity: 0.9;
}

.hero-v2__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(2.65rem, 5.8vw, 4.15rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, #ffffff 0%, #e8eef8 42%, #c9d8f0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-v2__subtitle {
  margin: 0;
  font-size: clamp(1.1rem, 2.2vw, 1.38rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--muted);
  max-width: 24em;
}

.hero-v2__dots {
  display: flex;
  gap: 0.4rem;
  margin-top: 1.25rem;
  padding-left: 0;
}

.hero-v2__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 0.65rem;
}

.hero-v2__promo {
  margin-bottom: 0.85rem;
}

.hero-v2__more {
  margin: 0;
  font-size: 0.88rem;
}

.hero-v2__more a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(94, 179, 255, 0.25);
  transition: color 0.2s, border-color 0.2s;
}

.hero-v2__more a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* —— 右侧截图 —— */
.hero-v2__visual {
  position: relative;
  --hero-accent: #5eb3ff;
  --hero-glow: rgba(94, 179, 255, 0.28);
}

.hero-v2__visual[data-theme="save"] {
  --hero-accent: #5eb3ff;
  --hero-glow: rgba(94, 179, 255, 0.26);
}

.hero-v2__visual[data-theme="commerce"] {
  --hero-accent: #4ecdc4;
  --hero-glow: rgba(78, 205, 196, 0.22);
}

.hero-v2__visual[data-theme="efficiency"] {
  --hero-accent: #7dd87d;
  --hero-glow: rgba(125, 216, 125, 0.2);
}

.hero-v2__visual[data-theme="creative"] {
  --hero-accent: #c9a962;
  --hero-glow: rgba(201, 169, 98, 0.24);
}

.hero-v2__visual-glow {
  position: absolute;
  inset: -5% -8%;
  background: radial-gradient(ellipse 65% 55% at 50% 48%, var(--hero-glow), transparent 68%);
  pointer-events: none;
}

.hero-v2__device {
  position: relative;
  z-index: 1;
  border-radius: 20px;
  padding: clamp(0.55rem, 1.2vw, 0.7rem);
  background: linear-gradient(
    165deg,
    rgba(28, 36, 52, 0.9) 0%,
    rgba(10, 14, 22, 0.95) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transform: perspective(1400px) rotateY(-5deg) rotateX(1deg);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.hero-v2--parallax .hero-v2__device {
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.hero-v2__device-chrome {
  display: flex;
  gap: 0.35rem;
  padding: 0.35rem 0.45rem 0.45rem;
}

.hero-v2__device-chrome span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.hero-v2__device-chrome span:nth-child(1) {
  background: #ff5f57;
}

.hero-v2__device-chrome span:nth-child(2) {
  background: #febc2e;
}

.hero-v2__device-chrome span:nth-child(3) {
  background: #28c840;
}

.hero-v2__screen {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #0a0e14;
}

.hero-v2__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  border-radius: inherit;
}

.hero-v2__shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.hero-v2__shot.is-active {
  opacity: 1;
}

/* 浅色界面截图降亮度，避免首屏刺眼 */
.hero-v2__shot[data-tone="light"],
img[data-tone="light"] {
  filter: brightness(0.86) contrast(1.03) saturate(0.92);
}

.hero-v2__shot[data-tone="dark"] {
  filter: brightness(0.96) contrast(1.02);
}

/* 入场 */
.hero-v2__fx .hero-reveal {
  opacity: 0;
  animation: heroV2Reveal 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(0.06s * var(--hero-i, 0));
}

@keyframes heroV2Reveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-v2__scroll {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: clamp(1rem, 2.5vh, 1.75rem);
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}

.hero-v2__scroll:hover {
  color: var(--accent);
  text-decoration: none;
}

/* 轮播点 */
.hero-v2__dots .slogan-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-v2__dots .slogan-dot--active {
  width: 22px;
  border-radius: 3px;
  background: var(--accent);
}

.hero-v2__dots .slogan-dot--save.slogan-dot--active {
  background: #5eb3ff;
}

.hero-v2__dots .slogan-dot--commerce.slogan-dot--active {
  background: #4ecdc4;
}

.hero-v2__dots .slogan-dot--efficiency.slogan-dot--active {
  background: #7dd87d;
}

.hero-v2__dots .slogan-dot--creative.slogan-dot--active {
  background: var(--accent-2);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

@media (max-width: 1024px) {
  .hero-v2__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: clamp(5rem, 11vh, 6.5rem);
  }

  .hero-v2__visual {
    order: -1;
    max-width: 580px;
    margin: 0 auto;
    width: 100%;
  }

  .hero-v2__device {
    transform: none;
  }

  .hero-v2__copy {
    max-width: none;
    text-align: left;
  }

  .hero-v2__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .hero-v2__actions .btn-lg {
    flex: 1;
    min-width: 9rem;
  }

  .hero-v2__title {
    font-size: clamp(2rem, 9vw, 2.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-v2__fx .hero-reveal {
    animation: none;
    opacity: 1;
  }

  .hero-v2__shot {
    transition: opacity 0.2s ease;
  }
}
