/* 官网 · 操作演示：对齐功能介绍 feature-panel 分屏 */

:root {
  --bg: #050505;
  --ink: #fff;
  --hero-ease: cubic-bezier(.22, .72, 0, 1);
  --homepage-media-ratio: 16 / 9;
  --homepage-layout-max: 1680px;
  --homepage-gutter: clamp(32px, 4.6vw, 70px);
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: "Satoshi", "Aptos Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow-x: hidden;
}

html.page-paging,
body.page-paging {
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html.page-paging::-webkit-scrollbar,
body.page-paging::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.demo-page-shell {
  min-height: 100vh;
  background: #030303;
  position: relative;
  isolation: isolate;
}

.demo-feature-scroll {
  position: relative;
  z-index: 3;
  background: #030303;
}

.snap-section {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.feature-panel {
  min-height: 100dvh;
  height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(0, 1.26fr);
  align-items: center;
  gap: clamp(42px, 7vw, 120px);
  padding:
    clamp(112px, 13vh, 150px)
    max(var(--homepage-gutter), calc((100vw - var(--homepage-layout-max)) / 2))
    clamp(58px, 8vh, 94px);
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: #fff;
  overflow: hidden;
}

.feature-panel:nth-child(even) {
  grid-template-columns: minmax(0, 1.24fr) minmax(0, 0.76fr);
}

.feature-panel:nth-child(even) .feature-copy {
  order: 2;
}

.feature-panel:nth-child(even) .feature-visual {
  order: 1;
}

.feature-kicker {
  color: rgba(255, 255, 255, .44);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.feature-title {
  margin: 0;
  max-width: 620px;
  font-size: clamp(42px, 4vw, 74px);
  line-height: .92;
  letter-spacing: -.06em;
  font-weight: 900;
  text-wrap: balance;
}

.feature-text {
  max-width: 560px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .66);
  font-size: clamp(16px, 1.2vw, 21px);
  line-height: 1.62;
  font-weight: 620;
  text-wrap: pretty;
}

.feature-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 38px;
}

.hero-login-cta,
.hero-secondary-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 28px;
  font-size: 17px;
  font-weight: 760;
  letter-spacing: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform .36s var(--hero-ease), color .36s var(--hero-ease), border-color .36s var(--hero-ease), box-shadow .36s var(--hero-ease);
}

.hero-login-cta::before,
.hero-secondary-cta::before {
  content: "";
  position: absolute;
  left: var(--fill-x, 50%);
  top: var(--fill-y, 50%);
  width: 168%;
  max-width: 220px;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.78s cubic-bezier(.2, .78, .22, 1);
  z-index: -1;
}

.hero-login-cta::after,
.hero-secondary-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -2;
}

.hero-login-cta {
  min-width: 138px;
  border: 0;
  background: #fff;
  color: #060606;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .42), 0 12px 34px rgba(0, 0, 0, .28);
}

.hero-login-cta::after { background: #fff; }
.hero-login-cta::before { background: #89e53d; }

.hero-secondary-cta {
  min-width: 170px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .025);
  color: rgba(255, 255, 255, .70);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .055);
}

.hero-secondary-cta::after { background: rgba(255, 255, 255, .025); }
.hero-secondary-cta::before { background: #fff; }

.hero-login-cta:hover,
.hero-secondary-cta:hover {
  transform: translateY(-1px);
}

.hero-login-cta.is-pointer-fill {
  color: #060606;
}

.hero-login-cta.is-pointer-fill::before,
.hero-secondary-cta.is-pointer-fill::before {
  transform: translate(-50%, -50%) scale(1);
}

.hero-secondary-cta.is-pointer-fill {
  color: #060606;
  border-color: rgba(255, 255, 255, .42);
}

.feature-visual {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 14px;
}

.feature-video-shell {
  position: relative;
  width: 100%;
  aspect-ratio: var(--homepage-media-ratio);
  overflow: hidden;
  background: #000;
  box-shadow: 0 34px 120px rgba(0, 0, 0, .58);
}

.feature-video-shell video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.demo-video-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.demo-video-tab {
  min-height: 42px;
  padding: 0.65rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  color: rgba(255, 255, 255, .55);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .02em;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.demo-video-tab:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .06);
}

.demo-video-tab.is-active {
  color: #0a0a0a;
  border-color: #89e53d;
  background: #89e53d;
  box-shadow: 0 0 22px rgba(137, 229, 61, .18);
}

.section-dots {
  position: fixed;
  right: clamp(16px, 2.2vw, 28px);
  top: 50%;
  z-index: 18;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: translateY(-50%);
}

.section-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  cursor: pointer;
  transition: transform .28s var(--hero-ease), background .28s var(--hero-ease), box-shadow .28s var(--hero-ease);
}

.section-dots button.is-active {
  transform: scale(1.28);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .12);
}

@media (max-width: 960px) and (min-width: 721px) {
  .feature-panel,
  .feature-panel:nth-child(even) {
    gap: clamp(28px, 5vw, 48px);
    padding-top: clamp(96px, 11vh, 120px);
    padding-bottom: clamp(48px, 7vh, 72px);
  }
  .feature-title {
    font-size: clamp(36px, 5.2vw, 52px);
  }
  .feature-text {
    font-size: clamp(15px, 1.6vw, 18px);
  }
}

@media (max-width: 720px) {
  .section-dots { display: none; }

  .feature-panel,
  .feature-panel:nth-child(even) {
    height: auto;
    min-height: 100dvh;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 104px 22px 42px;
  }

  .feature-panel:nth-child(even) .feature-copy,
  .feature-panel:nth-child(even) .feature-visual {
    order: initial;
  }

  .feature-title {
    font-size: clamp(36px, 12vw, 52px);
  }

  .feature-text {
    font-size: 15px;
    margin-top: 16px;
  }

  .feature-actions {
    margin-top: 22px;
  }

  .hero-login-cta,
  .hero-secondary-cta {
    height: 48px;
    font-size: 15px;
    padding: 0 22px;
  }

  .hero-secondary-cta {
    min-width: 132px;
  }

  .demo-video-tabs {
    grid-template-columns: 1fr 1fr;
  }
}
