:root {
  --bg0: #ffffff;
  --bg1: #f7faff;
  --ink: #121826;
  --muted: #5d6b82;
  --faint: #8a97ab;
  --line: #e4ebf5;
  --accent: #2f7cf6;
  --accent-2: #4d8dff;
  --glass: rgba(255, 255, 255, 0.72);
  --font: "Noto Sans SC", "Plus Jakarta Sans", sans-serif;
  --display: "Plus Jakarta Sans", "Noto Sans SC", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --safe: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: #ffffff;
  overflow-x: hidden;
}

.mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(900px 560px at 18% -8%, rgba(47, 124, 246, 0.12), transparent 58%),
    radial-gradient(760px 520px at 88% 12%, rgba(120, 200, 255, 0.1), transparent 52%),
    radial-gradient(700px 480px at 50% 110%, rgba(47, 124, 246, 0.08), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 52%, #ffffff 100%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.trail-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: multiply;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: #4d8dff;
}

.cursor-ring {
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  border: 1px solid rgba(47, 124, 246, 0.35);
  transition: width 180ms ease, height 180ms ease, margin 180ms ease, border-color 180ms ease;
}

body.has-trail {
  cursor: none;
}

body.has-trail .cursor-dot,
body.has-trail .cursor-ring {
  opacity: 1;
}

body.has-trail a,
body.has-trail button,
body.has-trail .promo-card,
body.has-trail .chip {
  cursor: none;
}

body.is-pointer-down .cursor-ring {
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-color: rgba(47, 124, 246, 0.55);
}

body.is-hover-clickable .cursor-ring {
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-color: rgba(18, 24, 38, 0.35);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(10, 16, 28, 0.55);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox[hidden] {
  display: none;
}

.lightbox.is-open[hidden] {
  display: grid;
}

.lightbox img {
  max-width: min(880px, 92vw);
  max-height: min(78vh, 920px);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  transform: translateY(16px) scale(0.96);
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox.is-open img {
  transform: none;
}

.lightbox-cap {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #121826;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #121826;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(88px + var(--safe));
  z-index: 45;
  transform: translate(-50%, 12px);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(18, 24, 38, 0.92);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms var(--ease);
  white-space: nowrap;
}

.toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(56px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  transition: transform 180ms linear;
}

.orb-1 {
  width: 42vw;
  height: 42vw;
  top: -12%;
  left: -10%;
  background: rgba(79, 148, 255, 0.18);
  animation: floatSoft 14s var(--ease) infinite alternate;
}

.orb-2 {
  width: 28vw;
  height: 28vw;
  right: -8%;
  top: 28%;
  background: rgba(126, 200, 255, 0.14);
  animation: floatSoft 11s var(--ease) infinite alternate-reverse;
}

.orb-3 {
  width: 34vw;
  height: 34vw;
  left: 30%;
  bottom: -18%;
  background: rgba(100, 220, 200, 0.1);
  animation: floatSoft 16s var(--ease) infinite alternate;
}

@keyframes floatSoft {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(20px, 28px, 0) scale(1.08); }
}

.rise {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(28px);
  animation: riseBlur 900ms var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 90ms + 80ms);
}

@keyframes riseBlur {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(40px) scale(0.97);
  transition:
    opacity 800ms var(--ease),
    transform 800ms var(--ease),
    filter 800ms var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}

.reveal.is-in {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

.hero-screen {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  min-height: 100dvh;
  width: min(880px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 28px 0 calc(20px + var(--safe));
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow:
    0 10px 24px rgba(47, 124, 246, 0.18),
    0 0 0 1px rgba(47, 124, 246, 0.08);
  animation: iconFloat 5.5s var(--ease) infinite;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.brand-name {
  margin: 0;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-tag {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.nav-pill {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(47, 124, 246, 0.08);
  border: 1px solid rgba(47, 124, 246, 0.16);
  backdrop-filter: blur(10px);
}

.hero-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 0;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 22px;
}

.chip {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  box-shadow: 0 6px 16px rgba(30, 60, 110, 0.04);
  transition: transform 220ms var(--ease), color 220ms ease, border-color 220ms ease;
}

.chip:hover {
  color: var(--ink);
  border-color: #bfd4f5;
  transform: translateY(-2px);
}

.title {
  margin: 0;
  max-width: 12em;
  font-family: var(--display);
  font-size: clamp(40px, 8vw, 64px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.08;
  background: linear-gradient(180deg, #101828 10%, #2a4a8a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin: 16px auto 0;
  max-width: 24em;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.cta {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 200px;
  padding: 15px 28px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  background: #121826;
  border: 1px solid #121826;
  box-shadow: none;
  transition: background 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.btn:hover {
  background: #000;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
  opacity: 0.92;
}

.btn[aria-disabled="true"] {
  background: #c5ccd8;
  border-color: #c5ccd8;
  pointer-events: none;
}

.btn-label {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.btn-meta {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.01em;
}

.btn[aria-disabled="true"] .btn-meta {
  color: rgba(255, 255, 255, 0.7);
}

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

.scroll-hint {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
  color: var(--faint);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.scroll-line {
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, rgba(47, 124, 246, 0.05), rgba(47, 124, 246, 0.75));
  border-radius: 99px;
  animation: lineDrop 1.8s var(--ease) infinite;
  transform-origin: top;
}

@keyframes lineDrop {
  0% { transform: scaleY(0.35); opacity: 0.3; }
  50% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0.35); opacity: 0.3; }
}

.preview-screen {
  position: relative;
  z-index: 1;
  padding: 64px 0 calc(28px + var(--safe));
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(247, 250, 255, 0.9), #ffffff 160px);
}

.shell {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 36px;
}

.section-kicker {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.promo-card {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(30, 60, 110, 0.07);
  transform-style: preserve-3d;
  cursor: zoom-in;
  transition:
    transform 280ms var(--ease),
    box-shadow 280ms var(--ease),
    border-color 280ms ease;
  will-change: transform;
}

.promo-card:hover {
  border-color: #bfd4f5;
  box-shadow: 0 22px 48px rgba(30, 60, 110, 0.12);
}

.promo-frame {
  overflow: hidden;
  background: #fff;
}

.promo-card img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 700ms var(--ease);
}

.promo-card:hover img {
  transform: scale(1.045);
}

.promo-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px 16px;
}

.promo-card strong {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.promo-card span {
  color: var(--muted);
  font-size: 12px;
}

.promo-wide {
  grid-column: 1 / -1;
}

.glass {
  backdrop-filter: blur(16px) saturate(1.1);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
}

.howto {
  margin: 40px 0 10px;
  padding: 22px 20px;
  border-radius: 22px;
  background: #f3f8ff;
}

.howto h3 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
}

.howto-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.howto-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.step-num {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: #121826;
}

.step-text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  padding-top: 3px;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  padding: 28px 0 8px;
  color: var(--faint);
  font-size: 12px;
}

.sep { opacity: 0.45; }

/* —— 下滑后悬浮下载条 —— */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  z-index: 40;
  background: linear-gradient(90deg, #6aa0ff, #2f7cf6);
  box-shadow: 0 0 12px rgba(47, 124, 246, 0.45);
  pointer-events: none;
  transform-origin: left center;
}

.dock {
  position: fixed;
  left: 50%;
  bottom: calc(18px + var(--safe));
  z-index: 30;
  width: min(420px, calc(100% - 28px));
  transform: translate(-50%, 120%);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 520ms var(--ease),
    opacity 420ms ease;
}

.dock.is-show {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.dock-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px 10px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(228, 235, 245, 0.95);
  box-shadow:
    0 16px 40px rgba(30, 60, 110, 0.14),
    0 2px 0 rgba(255, 255, 255, 0.8) inset;
  backdrop-filter: blur(18px) saturate(1.2);
}

.dock-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.dock-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  flex: 0 0 auto;
}

.dock-title {
  margin: 0;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.dock-meta {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.dock-btn {
  flex: 0 0 auto;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  background: #121826;
  border: 1px solid #121826;
  box-shadow: none;
  transition: background 160ms ease, transform 160ms ease;
}

.dock-btn:hover {
  background: #000;
  transform: translateY(-1px);
}

.dock-btn[aria-disabled="true"] {
  background: #c5ccd8;
  border-color: #c5ccd8;
  pointer-events: none;
}

.chip {
  animation: chipFloat 4.8s ease-in-out infinite;
}

.chip:nth-child(2) { animation-delay: -0.6s; }
.chip:nth-child(3) { animation-delay: -1.2s; }
.chip:nth-child(4) { animation-delay: -1.8s; }
.chip:nth-child(5) { animation-delay: -2.4s; }

@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@media (min-width: 900px) {
  .promo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .promo-wide {
    grid-column: span 3;
  }
}

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

  .promo-wide {
    grid-column: auto;
  }

  .chip-row {
    gap: 6px;
  }

  .dock-meta {
    max-width: 120px;
  }

  .lightbox-nav {
    width: 38px;
    height: 38px;
    font-size: 24px;
  }

  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }

  .toast {
    bottom: calc(96px + var(--safe));
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb,
  .scroll-line,
  .chip,
  .brand-icon { animation: none; }
  .trail-canvas,
  .cursor-dot,
  .cursor-ring { display: none !important; }
  .rise,
  .reveal {
    opacity: 1;
    filter: none;
    transform: none;
    animation: none;
    transition: none;
  }
  .dock {
    transition: none;
  }
}
