:root {
  --bg: #0b1020;
  --bg2: #0a122a;
  --card: rgba(255, 255, 255, 0.06);
  --card2: rgba(255, 255, 255, 0.08);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.68);
  --muted2: rgba(255, 255, 255, 0.55);
  --stroke: rgba(255, 255, 255, 0.12);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --radius2: 22px;
  --brandA: #01c6a6;
  --brandB: #33d7bc;
  --brandC: #7de8d7;
  --focus: rgba(1, 198, 166, 0.5);
}

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

html,
body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--brandA);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  overflow: visible;
}

.noscript {
  margin: 0;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  background:
    radial-gradient(1100px 700px at 20% 20%, rgba(1, 198, 166, 0.35), transparent 60%),
    radial-gradient(900px 650px at 75% 18%, rgba(1, 198, 166, 0.22), transparent 55%),
    radial-gradient(700px 500px at 68% 72%, rgba(1, 198, 166, 0.14), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.container {
  width: min(1120px, calc(100% - clamp(20px, 5vw, 40px)));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(7, 10, 20, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

.header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-top: max(14px, env(safe-area-inset-top, 0px));
  padding-bottom: 14px;
  gap: 12px 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand__logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: block;
  object-fit: cover;
  box-shadow: 0 16px 40px rgba(1, 198, 166, 0.24);
}

.brand__name {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav__link {
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
  transition:
    background 0.2s ease,
    color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.nav__link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav__link:active {
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle {
  display: none;
  flex-shrink: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.88);
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.header--nav-open .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header--nav-open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.header--nav-open .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  padding: 64px 0 28px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
}

.hero__title {
  margin: 14px 0 10px;
  font-size: clamp(40px, 4.8vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero__subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  max-width: 52ch;
}

.cta {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* 应用商店式下载条：主色底、左图标、右文案，纵向排列 */
.cta--stores {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  max-width: 360px;
  gap: 14px;
}

.store-badge {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-appearance: none;
  appearance: none;
  /* 纯色垫底：避免 iOS/WebKit 在渐变 + filter 时背景不绘制 */
  background-color: var(--brandA);
  background-image: linear-gradient(135deg, var(--brandA) 0%, var(--brandB) 100%);
  color: rgba(255, 255, 255, 0.98);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 12px 40px rgba(1, 198, 166, 0.32);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    background-image 0.2s ease;
  user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
  .store-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 48px rgba(1, 198, 166, 0.4);
    background-image: linear-gradient(135deg, #0eceb0 0%, #3fe6cc 100%);
  }
}

.store-badge:active {
  transform: translateY(0);
  background-color: #018f7a;
  background-image: linear-gradient(135deg, #018f7a 0%, #26a893 100%);
}

.store-badge:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.store-badge__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.store-badge__img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.store-badge__label {
  flex: 1;
  min-width: 0;
}

.hint {
  margin: 12px 0 0;
  color: var(--muted2);
  font-size: 13px;
}

.hero__highlights {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.pill__k {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 650;
}

.pill__v {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
}

.hero__media {
  position: relative;
  /* 须 ≥ 手机 mockup 高度，否则 absolute 手机会压住下方「页面截图」区块 */
  min-height: min(680px, 78vh);
  display: grid;
  place-items: center;
}

.hero__glow {
  position: absolute;
  inset: -40px;
  background:
    radial-gradient(260px 260px at 48% 25%, rgba(1, 198, 166, 0.35), transparent 65%),
    radial-gradient(280px 280px at 60% 70%, rgba(1, 198, 166, 0.22), transparent 68%),
    radial-gradient(280px 280px at 30% 78%, rgba(1, 198, 166, 0.12), transparent 66%);
  filter: blur(26px);
  pointer-events: none;
}

.phone {
  width: min(320px, 78vw);
  height: 640px;
  border-radius: 44px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)),
    rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
  position: absolute;
}

.phone--front {
  transform: translate(12px, 0) rotate(2deg);
  z-index: 2;
}

.phone--back {
  transform: translate(-84px, 28px) rotate(-7deg);
  opacity: 0.95;
  z-index: 1;
}

.phone__screen {
  position: absolute;
  inset: 14px;
  border-radius: 34px;
  background: #0c121f;
  overflow: hidden;
}

.phone__shot {
  width: 100%;
  height: 100%;
  display: block;
  max-width: none;
  object-fit: cover;
  object-position: top center;
}

.section {
  padding: 54px 0;
}

.section--alt {
  background: rgba(0, 0, 0, 0.14);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.section__head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.section__title {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.section__desc {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

.screens {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}

.screens__nav {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.86);
  font-size: 22px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.screens__nav:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
}

.screens__nav:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.screens__viewport {
  overflow: hidden;
  border-radius: var(--radius2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.screens__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

/* 未执行 JS 时仍展示全部截图，满足爬虫与无脚本环境（必应准则 §8） */
@media (scripting: none) {
  .screens__track {
    transform: none !important;
    grid-auto-flow: row;
    grid-auto-columns: unset;
    grid-auto-rows: auto;
    gap: 16px;
  }

  .screens__viewport {
    overflow: visible;
  }

  .screens__nav {
    display: none;
  }
}

.faq {
  display: grid;
  gap: 12px;
  max-width: 72ch;
}

.faq__item {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  padding: 0 16px;
}

.faq__q {
  cursor: pointer;
  font-weight: 650;
  padding: 14px 0;
  list-style: none;
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__a {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.faq__a a {
  color: var(--brandC);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.shot {
  margin: 0;
  padding: 18px;
  display: grid;
  gap: 10px;
}

.shot__img {
  height: 360px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  background: rgba(10, 16, 32, 0.96);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shot__img img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.shot__cap {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.card {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  padding: 16px 16px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
}

.card__title {
  margin: 0 0 6px;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.card__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.footer {
  padding: 26px 0 max(30px, calc(16px + env(safe-area-inset-bottom, 0px)));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer__brand {
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer__logo {
  border-radius: 10px;
  display: block;
  flex-shrink: 0;
  object-fit: cover;
}

.footer__meta {
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

.footer__meta span {
  overflow-wrap: anywhere;
}

.footer__copy {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  text-align: right;
}

.footer__beian {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 12px;
}

.footer__beian a {
  color: rgba(255, 255, 255, 0.58);
  text-decoration: none;
  transition: color 160ms ease;
}

.footer__beian a:hover {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: underline;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  max-width: min(560px, calc(100% - 28px));
  background: rgba(10, 16, 32, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.toast--show {
  opacity: 1;
}

@media (min-width: 721px) {
  .nav-toggle {
    display: none !important;
  }
}

@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .hero__media {
    /* 横屏时 vh 很小，须保证不低于手机 mockup 高度，避免压住「页面截图」 */
    min-height: max(640px, min(700px, 90vh));
  }
  .phone--back {
    transform: translate(-92px, 24px) rotate(-8deg);
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer__copy {
    text-align: left;
  }
  .screens__viewport {
    min-width: 0;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
    order: 2;
  }

  .nav {
    display: none;
    order: 3;
    flex-basis: 100%;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 0 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .header--nav-open .nav {
    display: flex;
  }

  .nav__link {
    padding: 12px 12px;
    border-radius: 12px;
    font-size: 15px;
  }

  .hero__title {
    font-size: clamp(30px, 8.5vw, 44px);
  }

  .hero__subtitle {
    font-size: 15px;
    max-width: none;
  }

  .section__title {
    font-size: 22px;
  }

  .section {
    padding: 42px 0;
  }
}

@media (max-width: 640px) {
  .screens {
    display: grid;
    grid-template-columns: 1fr auto auto 1fr;
    grid-template-rows: auto auto;
    gap: 12px;
    align-items: center;
  }

  .screens__viewport {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .screens__nav--prev {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    margin-right: 6px;
  }

  .screens__nav--next {
    grid-column: 3;
    grid-row: 2;
    justify-self: start;
    margin-left: 6px;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 48px 0 36px;
  }

  .hero__media {
    /* 与 .phone 高度（含 max-height:70vh）对齐，避免轮播区与首屏重叠 */
    min-height: calc(min(580px, 70vh, 88vw * 844 / 390) + 48px);
  }

  .phone {
    width: min(268px, 88vw);
    height: min(580px, calc(88vw * 844 / 390));
    max-height: 70vh;
  }

  .phone--back {
    display: none;
  }

  .phone--front {
    transform: translate(0, 0) rotate(0deg);
  }

  .cta--stores {
    max-width: none;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .shot {
    padding: 12px;
  }

  .shot__img {
    height: min(320px, 48vh);
  }

  .pill {
    flex: 1 1 auto;
    min-width: 0;
  }
}

@media (min-width: 981px) {
  .hero__grid {
    align-items: center;
  }

  .hero__content {
    padding-right: clamp(0px, 2vw, 24px);
  }
}
