:root {
  --bg1: #070c11;
  --bg2: #0f1824;
  --fg: #e7f1fb;
  --fg-muted: rgba(231, 241, 251, 0.78);
  --fg-subtle: rgba(231, 241, 251, 0.55);
  --glass-bg: rgba(17, 25, 40, 0.52);
  --brand-1: #5cc8ff;
  --brand-2: #7a8cff;
  --warn: #ffcf66;

  --page-padding: clamp(20px, 4vw, 56px);
  --section-gap: clamp(28px, 6vh, 72px);
  --card-gap: clamp(18px, 4vw, 32px);
  --pane-padding: clamp(18px, 3.6vw, 42px);

  --font-title: clamp(22px, 3.8vw, 36px);
  --font-h2: clamp(22px, 3.4vw, 32px);
  --font-body: clamp(16px, 1.6vw, 18px);
  --font-small: clamp(13px, 1.2vw, 14px);
}

html {
  scroll-behavior: smooth;
  background-color: #070c11;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: var(--font-body);
  color: var(--fg);
  background:
    radial-gradient(1400px 720px at 10% -15%, rgba(32, 80, 149, 0.35), transparent 65%),
    radial-gradient(980px 520px at 90% -5%, rgba(80, 45, 149, 0.32), transparent 65%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  padding: 0 var(--page-padding) var(--page-padding);
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
  align-items: center;
}

.glass {
  background: var(--glass-bg);
  border-radius: clamp(18px, 2.5vw, 28px);
  box-shadow: 0 24px 60px rgba(3, 8, 20, 0.45);
  backdrop-filter: blur(14px) saturate(1.35);
}

.topbar {
  width: 95%;
  padding: 0;
  display: block;
}

.topbar-inner {
  /* 顶部栏内部 下面是导航栏 */
  width: min(1200px, 94vw);
  padding: clamp(8px, 1.2vw, 12px) 0 clamp(16px, 2.4vw, 24px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 18px);
  margin: 0 auto;
  /* opaque background for navbar */
  background: var(--bg1);
}

.topbar-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(14px, 2.4vw, 22px);
}

.brand {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 20px);
}

.logo {
  width: clamp(30px, 4vw, 36px);
  height: clamp(30px, 4vw, 36px);
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(2, 8, 23, 0.45);
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo.mini {
  width: clamp(36px, 4vw, 42px);
  height: clamp(36px, 4vw, 42px);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: clamp(2px, 0.4vw, 6px);
}

.brand-title {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-tagline {
  color: var(--fg-subtle);
  font-size: var(--font-small);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(12px, 2.2vw, 20px);
}

.nav a {
  font-size: var(--font-small);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: clamp(8px, 1.4vw, 12px) clamp(12px, 2vw, 18px);
  border-radius: clamp(12px, 1.8vw, 16px);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav a:not(.primary):hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(2, 8, 23, 0.35);
}

.nav a.primary {
  background: linear-gradient(120deg, var(--brand-1), var(--brand-2));
  color: #080b13;
  box-shadow: 0 12px 30px rgba(86, 164, 255, 0.35);
}

.nav a.primary:hover {
  transform: translateY(-1px) scale(1.01);
}

.lang-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(32px, 3.2vw, 38px);
  height: clamp(32px, 3.2vw, 38px);
  border-radius: 8px;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.lang-trigger:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.lang-trigger i {
  font-size: clamp(14px, 1.6vw, 16px);
  color: var(--fg);
  pointer-events: none;
}

.lang-trigger i:before {
  content: "🌐";
  font-size: clamp(16px, 1.8vw, 18px);
}

.lang-trigger select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  appearance: none;
  cursor: pointer;
}

.lang-trigger select:focus {
  outline: none;
}

.main {
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
  align-items: center;
  width: 100%;
}

.hero {
  width: min(1200px, 94vw);
  padding: clamp(32px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 3vw, 32px);
}

.eyebrow {
  font-size: var(--font-small);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

h1 {
  font-size: var(--font-title);
  margin: 0;
  line-height: 1.15;
}

h2 {
  font-size: var(--font-h2);
  margin: 0;
}

h3 {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 24px);
}

p {
  margin: 0;
  color: var(--fg-muted);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 2vw, 20px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.4vw, 12px);
  padding: clamp(12px, 2.4vw, 16px) clamp(18px, 3vw, 24px);
  border-radius: clamp(16px, 2vw, 20px);
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn.primary {
  background: linear-gradient(120deg, var(--brand-1), var(--brand-2));
  color: #080b13;
  box-shadow: 0 16px 34px rgba(86, 164, 255, 0.35);
}

.btn.primary:hover {
  transform: translateY(-1px);
}

.btn.nav {
  padding: clamp(6px, 1.2vw, 8px) clamp(12px, 2vw, 16px);
  font-size: clamp(12px, 1.4vw, 14px);
  border-radius: clamp(12px, 1.6vw, 16px);
  box-shadow: 0 8px 20px rgba(86, 164, 255, 0.25);
}

.btn.nav:hover {
  transform: translateY(-1px) scale(1.02);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--fg);
  border: none;
}

.btn.ghost:hover {
  opacity: 0.8;
}

.btn.small {
  padding: clamp(8px, 1.4vw, 12px) clamp(16px, 2.4vw, 20px);
  font-size: var(--font-small);
}

.btn.ghost.small {
  background: transparent;
}

.store-inline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 2.2vw, 18px);
  max-width: clamp(400px, 70vw, 480px);
}

@media (max-width: 640px) {
  .store-inline {
    grid-template-columns: 1fr;
    max-width: clamp(280px, 80vw, 320px);
  }
}

.store {
  display: inline-flex;
  align-items: center;
  gap: clamp(12px, 2vw, 18px);
  padding: clamp(12px, 2.6vw, 18px) clamp(16px, 3vw, 24px);
  border-radius: clamp(16px, 2vw, 20px);
  background: rgba(255, 255, 255, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.store:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(5, 14, 28, 0.35);
}

.store.web {
  background: linear-gradient(120deg, var(--brand-1), var(--brand-2));
  color: #070c11;
}

.store.web .store-text small {
  color: #000000;
}

.store.web:hover {
  background: linear-gradient(120deg, var(--brand-1), var(--brand-2));
  opacity: 0.9;
}

.store i {
  font-size: clamp(20px, 2.6vw, 28px);
}

.store .store-text {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  font-size: clamp(13px, 1.6vw, 14px);
  line-height: 1.2;
}

.store .store-text small {
  font-size: clamp(11px, 1.2vw, 12px);
  color: var(--fg-subtle);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-slider-section {
  width: min(1200px, 94vw);
  padding: clamp(20px, 4vw, 30px);
  display: flex;
  justify-content: center;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  /* 顶部留白，避免幻灯片贴顶（已加大） */
  margin-top: clamp(60px, 8vw, 100px);
  padding-top: clamp(8px, 1.6vw, 12px);
}

.hero-slider {
  position: relative;
  width: min(1024px, 94vw);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
}

/* sticky navbar styles */
.topbar.sticky {
  position: fixed;
  top: 0;
  left: 0;
  transform: none;
  width: 100%;
  z-index: 120;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.topbar.sticky .topbar-inner {
  background: var(--bg1);
  box-shadow: 0 14px 40px rgba(3, 8, 20, 0.45);
  padding-top: clamp(8px, 1.2vw, 12px);
  padding-bottom: clamp(8px, 1.2vw, 12px);
}

/* ensure the page content doesn't jump when navbar becomes fixed */
.sticky-spacer {
  display: none;
  height: 0;
}

.hero-slider.visual-card {
  padding: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* hidden state when navbar is sticky */
.hero-slider-section.hidden-when-sticky {
  display: none;
}

.visual-card {
  width: min(880px, 60vw);
  padding: clamp(18px, 3vw, 28px);
  border-radius: clamp(14px, 1.8vw, 18px);
  position: relative;
}

.visual-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: clamp(12px, 1.4vw, 14px);
  box-shadow: 0 18px 48px rgba(2, 8, 20, 0.5);
}

.visual-card-secondary {
  position: absolute;
  bottom: clamp(20px, 3vw, 30px);
  left: 50%;
  transform: translateX(-50%);
  width: clamp(160px, 30vw, 280px);
  height: auto;
  border-radius: clamp(12px, 1.4vw, 16px);
  box-shadow: 0 14px 36px rgba(2, 8, 20, 0.6);
  z-index: 2;
}

.section {
  width: min(1200px, 94vw);
  padding: clamp(32px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 4vw, 36px);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2vw, 18px);
  max-width: clamp(520px, 70vw, 640px);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(220px, 32vw, 320px), 1fr));
  gap: var(--card-gap);
}

.feature-card {
  padding: clamp(20px, 3.6vw, 30px);
  border-radius: clamp(18px, 2.2vw, 22px);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2vw, 18px);
  box-shadow: 0 18px 38px rgba(3, 8, 20, 0.4);
}

.feature-card img {
  width: clamp(48px, 8vw, 72px);
  height: clamp(48px, 8vw, 72px);
}

.store-grid {
  /* inline row on desktop, stacked on small screens */
  display: flex;
  gap: var(--card-gap);
  flex-wrap: nowrap;
  align-items: stretch;
}

.store-card {
  padding: clamp(18px, 2.6vw, 26px);
  border-radius: clamp(14px, 1.8vw, 18px);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  gap: clamp(14px, 2.4vw, 20px);
  align-items: flex-start;
  box-shadow: 0 18px 38px rgba(3, 8, 20, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  flex: 1 1 0;
  min-width: 220px;
}

.store-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 24px 46px rgba(3, 8, 20, 0.45);
}

.store-card i {
  font-size: clamp(24px, 3vw, 36px);
  color: var(--brand-1);
}

/* smaller text for store cards */
.store-card h3 {
  font-size: clamp(16px, 1.6vw, 20px);
  margin: 0;
}

.store-card p {
  font-size: clamp(13px, 1.1vw, 14px);
  margin: 0;
  color: var(--fg-muted);
}

@media (max-width: 960px) {
  .store-grid {
    flex-wrap: wrap;
  }

  .store-card {
    flex: 1 1 100%;
    min-width: 0;
  }
}

.steps {
  margin: 0;
  padding-left: clamp(18px, 3vw, 24px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(220px, 32vw, 320px), 1fr));
  gap: var(--card-gap);
  counter-reset: step;
}

.steps li {
  list-style: none;
  padding: clamp(20px, 3.6vw, 30px);
  border-radius: clamp(18px, 2.2vw, 22px);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 18px 38px rgba(3, 8, 20, 0.4);
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2vw, 18px);
  position: relative;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: clamp(16px, 2.4vw, 20px);
  left: clamp(16px, 2.4vw, 20px);
  width: clamp(32px, 4vw, 42px);
  height: clamp(32px, 4vw, 42px);
  border-radius: 12px;
  background: linear-gradient(120deg, var(--brand-1), var(--brand-2));
  color: #070c11;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 30px rgba(5, 14, 28, 0.35);
}

.steps li h3 {
  padding-top: clamp(24px, 4vw, 36px);
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(220px, 32vw, 360px), 1fr));
  gap: var(--card-gap);
}

.faq-item {
  padding: clamp(20px, 3.6vw, 30px);
  border-radius: clamp(18px, 2.2vw, 22px);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 18px 38px rgba(3, 8, 20, 0.4);
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.6vw, 16px);
}

.footer {
  width: min(1200px, 94vw);
  padding: clamp(20px, 3.2vw, 28px) clamp(24px, 4vw, 32px);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 3vw, 24px);
  border-radius: clamp(18px, 2vw, 22px);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 18px);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 18px);
  font-size: var(--font-small);
}

.footer-copy {
  grid-column: 1 / -1;
  margin: 0;
  font-size: var(--font-small);
  color: var(--fg-subtle);
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .topbar {
    justify-content: flex-start;
  }

  .topbar-right {
    width: 100%;
    justify-content: space-between;
  }

  .nav {
    flex: 1;
  }
}

@media (max-width: 720px) {
  .topbar {
    padding: clamp(16px, 4vw, 24px);
  }

  .topbar-right {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    gap: clamp(10px, 4vw, 16px);
  }

  .footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}