:root {
  --bg: #0a1018;
  --bg-2: #121a26;
  --surface: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.12);
  --text: #eef3f8;
  --muted: #9aabbd;
  --brand: #3dd6c6;
  --brand-2: #2bb8a9;
  --accent: #ff6b5b;
  --accent-2: #ff8f5c;
  --android: #3ddc84;
  --ios: #5ac8fa;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --header-h: 56px;
  --float-h: 96px;
  --tap: 48px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 480px at 85% -8%, rgba(61, 214, 198, 0.16), transparent 55%),
    radial-gradient(700px 420px at -8% 18%, rgba(255, 107, 91, 0.12), transparent 50%),
    linear-gradient(180deg, #0a1018 0%, #0d1520 42%, #0a1018 100%);
  line-height: 1.65;
  padding-bottom: calc(var(--float-h) + var(--safe-bottom) + 8px);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: contain;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(1080px, calc(100% - 28px));
  margin: 0 auto;
}

/* ===== Header / Mobile menu ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: var(--safe-top);
  backdrop-filter: blur(14px);
  background: rgba(10, 16, 24, 0.88);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: 0.02em;
  min-height: var(--tap);
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
}

.brand span {
  font-size: 1.08rem;
}

.brand em {
  font-style: normal;
  color: var(--brand);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(255, 107, 91, 0.28);
}

.menu-toggle {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.menu-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 20px; }
.menu-toggle span:nth-child(3) { top: 26px; }

.menu-toggle.is-open span:nth-child(1) {
  top: 20px;
  transform: rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  top: 20px;
  transform: rotate(-45deg);
}

.nav-drawer-mask {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.nav-drawer-mask.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 70;
  width: min(82vw, 320px);
  height: 100%;
  padding: calc(18px + var(--safe-top)) 18px calc(24px + var(--safe-bottom));
  background: #101823;
  border-left: 1px solid var(--line);
  transform: translateX(104%);
  transition: transform 0.26s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-drawer.is-open {
  transform: translateX(0);
}

.nav-drawer h2 {
  margin: 8px 0 16px;
  font-size: 1rem;
}

.nav-drawer a {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 12px;
  margin-bottom: 6px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid transparent;
  font-size: 0.95rem;
}

.nav-drawer a:active {
  border-color: rgba(61, 214, 198, 0.35);
  background: rgba(61, 214, 198, 0.1);
}

.desktop-nav {
  display: none;
  gap: 16px;
  font-size: 0.92rem;
  color: var(--muted);
}

.desktop-nav a:hover {
  color: var(--text);
}

body.is-locked {
  overflow: hidden;
}

/* ===== Hero ===== */
.hero {
  padding: 22px 0 18px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 18px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 7vw, 2.7rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.hero h1 .hl {
  background: linear-gradient(120deg, var(--brand), #7ee8dc 40%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.94rem;
  max-width: 36em;
}

.platform-tip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(61, 214, 198, 0.12);
  border: 1px solid rgba(61, 214, 198, 0.28);
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 600;
}

.cta-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease, border-color 0.15s ease;
  touch-action: manipulation;
  user-select: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary,
.btn-android {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 107, 91, 0.28);
}

.btn-secondary,
.btn-ios {
  background: rgba(61, 214, 198, 0.12);
  border-color: rgba(61, 214, 198, 0.35);
  color: var(--brand);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}

.btn .ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-rec {
  position: relative;
  box-shadow: 0 12px 28px rgba(61, 214, 198, 0.28);
  border-color: rgba(61, 214, 198, 0.5);
}

.btn-rec::after {
  content: "推荐";
  position: absolute;
  top: -8px;
  right: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--brand);
  color: #06211e;
  font-size: 0.68rem;
  font-weight: 800;
}

body.is-android .btn[data-platform="android"],
body.is-ios .btn[data-platform="ios"] {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(255, 107, 91, 0.3);
}

body.is-android .btn[data-platform="android"]::after,
body.is-ios .btn[data-platform="ios"]::after {
  content: "当前设备推荐";
  position: absolute;
  top: -8px;
  right: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--brand);
  color: #06211e;
  font-size: 0.68rem;
  font-weight: 800;
}

body.is-android .btn[data-platform="android"],
body.is-ios .btn[data-platform="ios"] {
  position: relative;
}

body.is-android .btn[data-platform="ios"],
body.is-ios .btn[data-platform="android"] {
  opacity: 0.78;
}

.meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-size: 0.76rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 11px;
}

.hero-visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  min-height: 210px;
  background: #152033;
}

.hero-visual img {
  width: 100%;
  min-height: 210px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  animation: kenburns 18s ease-in-out infinite alternate;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(10, 16, 24, 0.5));
  pointer-events: none;
}

@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

/* ===== Sections ===== */
.section {
  padding: 34px 0;
}

.section-head {
  margin-bottom: 16px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 4.5vw, 1.85rem);
  letter-spacing: -0.01em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 40em;
}

.feature-grid,
.role-grid,
.show-grid,
.keyword-grid {
  display: grid;
  gap: 12px;
}

.feature-card,
.role-card,
.show-card,
.keyword-card,
.step-card,
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.feature-card h3,
.role-card h3,
.keyword-card h3,
.step-card h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.feature-card p,
.role-card p,
.keyword-card p,
.step-card p,
.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  background: linear-gradient(135deg, rgba(61, 214, 198, 0.2), rgba(255, 107, 91, 0.15));
  color: var(--brand);
  font-weight: 800;
}

.role-grid {
  grid-template-columns: 1fr 1fr;
}

.role-card {
  padding: 0;
  overflow: hidden;
}

.role-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.role-card .role-body {
  padding: 10px 12px 12px;
}

.role-tag {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--brand);
  margin-bottom: 4px;
}

.show-grid {
  grid-template-columns: 1fr 1fr;
}

.show-card {
  padding: 0;
  overflow: hidden;
}

.show-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.steps {
  display: grid;
  gap: 10px;
  counter-reset: step;
}

.step-card {
  position: relative;
  padding-left: 58px;
}

.step-card::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #06211e;
  font-weight: 800;
}

.download-panel {
  background:
    linear-gradient(135deg, rgba(61, 214, 198, 0.12), rgba(255, 107, 91, 0.1)),
    var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 14px;
  text-align: center;
}

.download-panel h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.download-panel p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.platform-row {
  display: grid;
  gap: 10px;
}

.platform-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 14px 14px 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  text-align: left;
  transition: border-color 0.15s ease, transform 0.15s ease;
  touch-action: manipulation;
}

.platform-btn:active {
  transform: scale(0.985);
}

.platform-btn .p-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 800;
  margin-right: 2px;
}

.platform-btn[data-platform="android"] .p-ico {
  background: rgba(61, 220, 132, 0.18);
  color: var(--android);
}

.platform-btn[data-platform="ios"] .p-ico {
  background: rgba(90, 200, 250, 0.18);
  color: var(--ios);
}

.platform-btn .p-text {
  flex: 1;
  min-width: 0;
}

.platform-btn strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 2px;
}

.platform-btn .sub {
  color: var(--muted);
  font-size: 0.78rem;
}

.platform-btn .go {
  flex-shrink: 0;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}

body.is-android .platform-btn[data-platform="android"],
body.is-ios .platform-btn[data-platform="ios"] {
  border-color: rgba(61, 214, 198, 0.55);
  background: rgba(61, 214, 198, 0.1);
  box-shadow: 0 0 0 1px rgba(61, 214, 198, 0.15);
}

body.is-android .platform-btn[data-platform="android"] .go,
body.is-ios .platform-btn[data-platform="ios"] .go {
  content: "推荐下载";
}

.faq-item + .faq-item {
  margin-top: 10px;
}

.faq-item h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
}

.seo-block {
  color: var(--muted);
  font-size: 0.9rem;
}

.seo-block p {
  margin: 0 0 12px;
}

.keyword-grid a {
  display: block;
  height: 100%;
  min-height: var(--tap);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.keyword-grid a:active {
  border-color: rgba(61, 214, 198, 0.45);
  transform: scale(0.99);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 16px;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-grid {
  display: grid;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.footer-links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.footer-stats {
  margin: 14px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.footer-stats strong {
  color: var(--text);
  font-weight: 700;
}

.copyright {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* ===== Float bar ===== */
.float-download {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  transform: translateY(110%);
  transition: transform 0.26s ease;
  padding: 8px 10px calc(8px + var(--safe-bottom));
  background: rgba(10, 16, 24, 0.94);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.35);
}

.float-download.is-visible {
  transform: translateY(0);
}

.float-tip {
  text-align: center;
  font-size: 0.72rem;
  color: var(--brand);
  margin-bottom: 6px;
  font-weight: 600;
}

.float-inner {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.float-inner .btn {
  min-height: 46px;
  width: 100%;
  font-size: 0.9rem;
  padding: 10px 8px;
  position: relative;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--float-h) + var(--safe-bottom) + 12px);
  z-index: 80;
  transform: translateX(-50%) translateY(12px);
  max-width: calc(100% - 32px);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(20, 28, 40, 0.96);
  border: 1px solid rgba(61, 214, 198, 0.35);
  color: var(--text);
  font-size: 0.84rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: var(--shadow);
}

.toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.breadcrumb {
  padding: 12px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.page-hero {
  padding: 14px 0 4px;
}

.page-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 5.5vw, 2.1rem);
  line-height: 1.25;
  font-weight: 800;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (min-width: 480px) {
  .cta-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 720px) {
  .menu-toggle,
  .nav-drawer,
  .nav-drawer-mask {
    display: none !important;
  }

  .desktop-nav {
    display: flex;
  }

  .hero {
    padding: 36px 0 28px;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 36px;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 300px;
  }

  .cta-row {
    display: flex;
    flex-wrap: wrap;
  }

  .cta-row .btn {
    min-width: 168px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .role-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .show-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .keyword-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .platform-row {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr;
  }

  .float-inner {
    max-width: 520px;
  }

  .keyword-grid a:hover {
    border-color: rgba(61, 214, 198, 0.45);
    transform: translateY(-2px);
  }
}

@media (min-width: 980px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .keyword-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-visual img,
  .btn,
  .float-download,
  .nav-drawer,
  .toast { animation: none; transition: none; }
}
