:root {
  --accent: #f52c56;
  --accent-strong: #ff004d;
  --cyan: #56ffff;
  --text: #fff;
  --muted: #ccc;
  --surface: rgba(255, 255, 255, .04);
  --border: #353535;
  color-scheme: dark;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: #0d0d0d;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: #0d0d0d; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: #0d0d0d;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p, h1, h2, h3, dl, dd { margin: 0; }

.site-shell { overflow: hidden; background: #0d0d0d; }
.section-inner, .header-inner, .hero-inner { width: min(79.1667vw, 1520px); margin: 0 auto; }

.hero {
  position: relative;
  height: min(100vh, 1080px);
  height: clamp(640px, 100svh, 1080px);
  min-height: 640px;
  overflow: hidden;
  background: #060606 url("assets/carousel-pc-01.webp") center/cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.34), transparent 56%);
}

.hero-slides,
.hero-slide,
.hero-slide picture,
.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slides { z-index: 0; }
.hero-slide { opacity: 0; transition: opacity .6s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { max-width: none; object-fit: cover; object-position: center; }

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  height: 88px;
  background: #141117;
}

.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand-logo { width: 109px; height: 62px; object-fit: contain; }

.customer-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 170px;
  height: 48px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 24px;
  font-weight: 600;
  transition: background .2s ease, color .2s ease;
}

.customer-link img { width: 33px; height: 33px; }

.hero-inner { position: relative; z-index: 2; height: 100%; }
.hero-copy {
  position: absolute;
  top: clamp(160px, 23.89%, 258px);
  left: 0;
  width: min(704px, 52vw);
}
.hero h1, .gradient-title { font-size: clamp(42px, min(4.1667vw, 7.4vh), 80px); line-height: 1.25; font-weight: 900; white-space: nowrap; }
.gradient-title { margin-top: 8px; padding: 0 .16em .04em 0; color: transparent; background: linear-gradient(90deg, var(--accent-strong), var(--cyan)); background-clip: text; -webkit-background-clip: text; }

@media (min-width: 901px) {
  .gradient-title { display: inline-block; width: max-content; max-width: none; }
}

.hero-description {
  width: min(657px, 100%);
  margin-top: clamp(6px, 1vh, 10px);
  color: var(--muted);
  font-size: clamp(16px, min(1.25vw, 2.35vh), 24px);
  line-height: 1.6667;
}

.desktop-download { --qr-size: clamp(138px, 17.6vh, 190px); display: flex; align-items: center; gap: clamp(18px, 1.25vw, 24px); margin-top: clamp(22px, 3.2vh, 35px); width: min(704px, 52vw); }
.qr-frame { flex: 0 0 var(--qr-size); width: var(--qr-size); height: var(--qr-size); padding: 9px; overflow: hidden; border: 2px solid var(--accent-strong); border-radius: 18px; background: #fffdf8; box-shadow: 0 12px 17px rgba(0,0,0,.38); }
.qr-frame canvas, .qr-frame img { width: calc(var(--qr-size) - 20px) !important; height: calc(var(--qr-size) - 20px) !important; }
.qr-copy { flex: 1; }
.qr-copy strong { display: block; margin-bottom: clamp(8px, 1.2vh, 13px); color: var(--accent-strong); font-size: clamp(18px, min(1.25vw, 2.35vh), 24px); line-height: 1.3333; }
.qr-copy p { width: min(500px, 100%); color: rgba(255,255,255,.9); font-size: clamp(13px, min(.8333vw, 1.7vh), 16px); line-height: 1.5; font-weight: 500; }

.desktop-hero-actions { display: flex; align-items: center; gap: 16px; margin-top: clamp(18px, 2.8vh, 30px); }
.desktop-hero-action { display: flex; align-items: center; justify-content: center; height: clamp(48px, 5.9259vh, 64px); padding: 8px clamp(28px, 2.0833vw, 40px); border-radius: 50px; background: #f9cc5b; color: #000; font-size: clamp(16px, min(1.0417vw, 2.1vh), 20px); line-height: 1.4; font-weight: 600; white-space: nowrap; }

.hero-thumbnails {
  --hero-width-scale: 1;
  --hero-height-scale: 1;
  position: absolute;
  top: 62.5926%;
  right: 0;
  display: flex;
  gap: 16px;
  transform: scale(min(var(--hero-width-scale), var(--hero-height-scale)));
  transform-origin: right top;
}
.hero-thumbnail { width: 126px; height: 224px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 10px; background: transparent; cursor: pointer; }
.hero-thumbnail img { width: 122px; height: 220px; max-width: none; object-fit: cover; border-radius: 8px; }
.hero-thumbnail.is-active { border-color: var(--accent-strong); }
.hero-thumbnail:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.mobile-hero-actions, .carousel-dots { display: none; }

.app-intro {
  min-height: clamp(720px, 56.25vw, 1080px);
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 85% 20%, rgba(245,44,86,.12), transparent 34%),
    #120f14;
}
.app-intro-inner { padding: clamp(80px, 7vw, 134px) 0; }
.app-intro-kicker { color: #ffc72c; font-size: 16px; line-height: 24px; letter-spacing: 3px; }
.app-intro h2 { margin-top: 20px; font-size: clamp(42px, 3.125vw, 60px); line-height: 1.4; font-weight: 900; }
.app-intro-lead { max-width: 1200px; margin-top: 20px; color: var(--muted); font-size: clamp(18px, 1.1458vw, 22px); line-height: 1.9; }
.app-intro-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 38px 64px; margin-top: clamp(40px, 3.125vw, 60px); }
.app-intro-item { padding-top: 24px; border-top: 1px solid rgba(255,199,44,.34); }
.app-intro-item h3 { color: #ffe082; font-size: clamp(22px, 1.4063vw, 27px); line-height: 1.4; }
.app-intro-item p { margin-top: 14px; color: var(--muted); font-size: clamp(16px, 1.0417vw, 20px); line-height: 1.85; }

.stories {
  position: relative;
  height: min(56.25vw, 1080px);
  min-height: 760px;
  background: #111;
}

.stories::before, .downloads::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.stories::before {
  background: url("assets/stories-bg-desktop.webp") center/cover no-repeat;
  opacity: .1;
}
.stories-inner { position: relative; z-index: 1; padding-top: min(9.375vw, 180px); }
.section-eyebrow { color: var(--accent); font-size: 32px; line-height: 40px; }
.stories h2 { margin-top: 20px; font-size: 60px; line-height: 1.4; font-weight: 900; }
.section-description { margin-top: 20px; color: var(--muted); font-size: 20px; line-height: 40px; }

.poster-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 53px; margin-top: 40px; }
.poster-card { position: relative; aspect-ratio: 340 / 476; overflow: hidden; border: 1px solid rgba(245,44,86,.44); border-radius: 24px; background: #000; }
.poster-card > img { width: 100%; height: 95.238%; object-fit: cover; object-position: top center; }
.poster-card::after { content: ""; position: absolute; inset: auto 0 0; height: 160px; background: linear-gradient(180deg, transparent, #000 56%); }
.poster-meta { position: absolute; z-index: 2; left: 0; right: 0; bottom: 17px; padding: 0 31px; text-align: center; }
.poster-meta h3 { color: var(--accent); font-size: 32px; line-height: 45px; white-space: nowrap; }
.poster-meta p { color: var(--muted); font-size: 20px; line-height: 30px; }

.downloads {
  position: relative;
  height: min(56.25vw, 1080px);
  min-height: 720px;
  background: #0d0d0d url("assets/download-bg-desktop.webp") center/cover no-repeat;
}

.downloads::before { background: rgba(0,0,0,.90); }
.download-inner { position: relative; z-index: 1; padding-top: min(6.615vw, 127px); }
.downloads h2 { font-size: 48px; line-height: 67px; font-weight: 900; }

.version-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 368px;
  margin-top: 40px;
  padding: 20px 30px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: var(--surface);
  backdrop-filter: blur(30px);
}

.version-card > div { display: flex; align-items: center; justify-content: space-between; min-height: 63px; border-bottom: 1px solid rgba(255,255,255,.12); }
.version-card > div:last-child { border-bottom: 0; }
.version-card dt { color: rgba(255,255,255,.65); font-size: 20px; line-height: 42px; font-weight: 500; }
.version-card dd { color: #fff; font-size: 24px; line-height: 42px; font-weight: 500; }

.download-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-top: 30px; }
.download-action { display: flex; align-items: center; justify-content: center; gap: 10px; height: 60px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--accent); font-size: 18px; line-height: 40px; font-weight: 600; backdrop-filter: blur(30px); }
.download-actions img { width: 30px; height: 30px; }
.safety-note { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 40px; color: #999; font-size: 18px; line-height: 40px; font-weight: 600; }
.safety-note img { width: 20px; height: 20px; }

@media (min-width: 901px) and (max-height: 1000px) {
  .hero-thumbnails { --hero-height-scale: .9; }
}

@media (min-width: 901px) and (max-height: 880px) {
  .hero-thumbnails { --hero-height-scale: .78; }
}

@media (min-width: 901px) and (max-height: 760px) {
  .hero-thumbnails { --hero-height-scale: .66; }
}

@media (min-width: 901px) and (max-height: 680px) {
  .hero-thumbnails { --hero-height-scale: .58; }
}

@media (max-width: 1500px) and (min-width: 901px) {
  .section-inner, .header-inner, .hero-inner { width: calc(100% - 80px); }
  .hero-thumbnails { --hero-width-scale: .78; }
  .poster-grid { gap: 28px; }
  .poster-meta h3 { font-size: 25px; }
  .poster-meta p { font-size: 17px; line-height: 25px; }
}

@media (max-width: 1200px) and (min-width: 901px) {
  .hero-thumbnails { --hero-width-scale: .6; }
  .poster-grid { gap: 20px; }
  .poster-meta { padding-inline: 18px; }
  .poster-meta h3 { font-size: 21px; line-height: 32px; }
  .poster-meta p { font-size: 14px; line-height: 20px; }
}

@media (max-width: 1050px) and (min-width: 901px) {
  .hero-thumbnails { --hero-width-scale: .55; }
}

@media (max-width: 900px) {
  .section-inner, .header-inner, .hero-inner { width: 100%; }

  .hero {
    height: 177.8667vw;
    min-height: 0;
    background-image: url("assets/carousel-mobile-01.webp");
    background-position: center;
  }

  .hero::after { background: linear-gradient(180deg, rgba(0,0,0,.8) 0, transparent 22%, transparent 44%, rgba(0,0,0,.84) 76%, rgba(0,0,0,.96) 100%); }
  .site-header { height: 16vw; }
  .header-inner { padding: 0 5.3333vw 0 6.6667vw; }
  .brand-logo { width: 14.4975vw; height: 8.2667vw; }
  .customer-link { gap: .2vw; width: 22.6667vw; height: 8vw; font-size: 3.4667vw; font-weight: 800; }
  .customer-link img { width: 4.3683vw; height: 4.3683vw; }

  .hero-copy { top: 35.0667vw; left: 10vw; width: 80vw; }
  .hero h1, .gradient-title { font-size: 8.5333vw; line-height: 12vw; }
  .gradient-title { margin-top: 0; }
  .hero-description { width: 80vw; margin-top: 2.6667vw; font-size: 3.4667vw; line-height: 5.3333vw; font-weight: 500; }
  .desktop-download, .desktop-hero-actions, .hero-thumbnails { display: none; }
  .mobile-hero-actions { display: block; width: 80vw; margin-top: 5.3333vw; }
  .mobile-download-stack, .mobile-social-stack { display: flex; flex-direction: column; gap: 4vw; }
  .mobile-hero-action, .mobile-social-action { display: flex; align-items: center; justify-content: center; width: 80vw; height: 13.3333vw; border-radius: 999px; color: #fff; font-size: 4.2667vw; line-height: 5.3333vw; font-weight: 900; white-space: nowrap; }
  .mobile-hero-action-android { background: var(--accent-strong); }
  .mobile-hero-action-ios { display: none; border: 1px solid var(--accent-strong); background: var(--accent-strong); }
  .mobile-social-action { border: 1px solid #fff; background: rgba(0,0,0,.5); }
  html[data-platform="ios"] .mobile-hero-action-android { display: none; }
  html[data-platform="ios"] .mobile-hero-action-ios { display: flex; }
  .mobile-download-note { width: 80vw; margin-top: 2.6667vw; color: var(--muted); font-size: 3.2vw; line-height: 5.3333vw; font-weight: 500; text-align: center; }
  .mobile-social-stack { margin-top: 5.3333vw; }
  .mobile-social-action { gap: 1.3333vw; }
  .mobile-social-action img { width: 4vw; height: 4vw; }
  .carousel-dots { position: absolute; z-index: 4; bottom: 3.6vw; left: 0; right: 0; display: flex; align-items: center; justify-content: center; gap: 2.6667vw; height: 3.2vw; }
  .carousel-dot { width: 2.4vw; height: 2.4vw; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.38); transition: width .25s ease, background .25s ease; }
  .carousel-dot.is-active { width: 6.4vw; background: #fff; }
  .carousel-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

  .app-intro { min-height: 0; }
  .app-intro-inner { padding: 14.6667vw 6.6667vw; }
  .app-intro-kicker { font-size: 3.4667vw; line-height: 5.3333vw; letter-spacing: .5333vw; }
  .app-intro h2 { margin-top: 2.6667vw; font-size: 6.4vw; line-height: 8.9333vw; }
  .app-intro-lead { margin-top: 2.6667vw; font-size: 3.4667vw; line-height: 6.4vw; }
  .app-intro-grid { grid-template-columns: 1fr; gap: 6.6667vw; margin-top: 8vw; }
  .app-intro-item { padding-top: 4vw; }
  .app-intro-item h3 { font-size: 4.8vw; line-height: 6.6667vw; }
  .app-intro-item p { margin-top: 2.1333vw; font-size: 3.4667vw; line-height: 6.1333vw; }

  .stories {
    height: 177.8667vw;
    min-height: 0;
    background: #111;
  }

  .stories::before {
    background-image: url("assets/stories-bg-mobile.webp");
    opacity: .2;
  }

  .stories-inner { padding: 5.3333vw 3.3333vw 0; }
  .section-eyebrow { font-size: 4.2667vw; line-height: 5.3333vw; }
  .stories h2 { margin-top: 1.3333vw; font-size: 6.4vw; line-height: 8.9333vw; }
  .section-description { width: 86.6667vw; margin-top: 2.6667vw; color: var(--muted); font-size: 3.4667vw; line-height: 5.3333vw; font-weight: 500; }
  .poster-grid { grid-template-columns: repeat(2, 45.3333vw); gap: 2.6667vw; margin-top: 3.3333vw; }
  .poster-card { height: auto; border-radius: 3.2461vw; }
  .poster-card > img { height: 60.4444vw; }
  .poster-card::after { height: 21.3333vw; }
  .poster-meta { bottom: 2.2667vw; padding: 0 4.1333vw; }
  .poster-meta h3 { font-size: 4.2667vw; line-height: 6vw; }
  .poster-meta p { font-size: 2.6667vw; line-height: 4vw; }

  .downloads {
    height: 177.8667vw;
    min-height: 0;
    background-image: url("assets/download-bg-mobile.webp");
    background-position: center;
  }

  .downloads::before { background: rgba(0,0,0,.86); }
  .download-inner { padding: 25.3333vw 3.3333vw 0; }
  .downloads h2 { font-size: 6.4vw; line-height: 8.9333vw; }
  .version-card { height: 49.0667vw; margin-top: 2.6667vw; padding: 2.6667vw; border-radius: 2.6667vw; }
  .version-card > div { min-height: 8.2667vw; }
  .version-card dt, .version-card dd { font-size: 3.4667vw; line-height: 5.6vw; }
  .download-actions { grid-template-columns: 1fr; gap: 2.6667vw; margin-top: 5.3333vw; }
  .download-action { height: 13.3333vw; font-size: 4vw; line-height: 5.3333vw; }
  .download-actions img { width: 6.4vw; height: 6.4vw; }
  .safety-note { justify-content: flex-start; align-items: flex-start; gap: 2.6667vw; width: 93.3333vw; margin-top: 5.3333vw; color: #999; font-size: 2.9333vw; line-height: 5.3333vw; font-weight: 400; }
  .safety-note img { flex: 0 0 auto; width: 4vw; height: 4vw; margin-top: .8vw; }
}

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

[hidden] { display: none !important; }
