:root {
  --bg: #070a16;
  --bg-2: #0d1224;
  --bg-3: #141a30;
  --surface: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f4f7fb;
  --muted: #9aa6bf;
  --brand: #1ce1d4;
  --brand-2: #5ef0e6;
  --brand-dark: #0ea99f;
  --danger: #ff6b8a;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --max: 1080px;
  --header-h: 56px;
  --float-h: 68px;
  --font: "Outfit", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 480px at 10% -10%, rgba(28, 225, 212, 0.18), transparent 60%),
    radial-gradient(700px 420px at 100% 0%, rgba(88, 120, 255, 0.12), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 45%, #090d1a 100%);
  line-height: 1.65;
  min-height: 100vh;
  padding-bottom: calc(var(--float-h) + env(safe-area-inset-bottom, 0px) + 16px);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

a:hover {
  color: var(--brand-2);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  backdrop-filter: blur(16px);
  background: rgba(7, 10, 22, 0.88);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.logo img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--muted);
  font-size: 0.88rem;
  padding: 8px 10px;
  border-radius: 999px;
  transition: 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: var(--surface);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  font-size: 1.15rem;
  cursor: pointer;
}

/* Hero */
.hero {
  padding: 28px 0 20px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.app-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  flex-shrink: 0;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
}

.app-info h1 {
  margin: 0 0 4px;
  font-size: clamp(1.75rem, 5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.app-info h1 span,
.hero h1 span {
  color: var(--brand);
}

.app-sub {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.app-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(28, 225, 212, 0.12);
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 600;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 4.8vw, 2.8rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 36em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.cta-main {
  margin-bottom: 10px;
}

.cta-main .btn,
.cta-split .btn {
  flex: 1;
}

.cta-split {
  margin-bottom: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-family: inherit;
  user-select: none;
}

.btn-xl {
  min-height: 54px;
  font-size: 1.08rem;
  border-radius: 16px;
  width: 100%;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), #3ad8ff);
  color: #04131a;
  box-shadow: 0 10px 30px rgba(28, 225, 212, 0.28);
}

.btn-primary:hover {
  color: #04131a;
  box-shadow: 0 14px 36px rgba(28, 225, 212, 0.4);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(28, 225, 212, 0.45);
}

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.quick-chips a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 500;
}

.quick-chips a:active,
.quick-chips a:hover {
  border-color: rgba(28, 225, 212, 0.45);
  color: var(--brand-2);
}

.hero-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.update-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(28, 225, 212, 0.1);
  border: 1px solid rgba(28, 225, 212, 0.25);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 600;
}

.troubleshoot {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.troubleshoot details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 12px 14px;
}

.troubleshoot summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  list-style: none;
}

.troubleshoot summary::-webkit-details-marker {
  display: none;
}

.troubleshoot details p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.step-shot {
  margin-top: 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  max-width: 220px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.meta-row strong {
  color: var(--text);
  font-weight: 600;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto -8% -10% 20%;
  height: 40%;
  background: radial-gradient(circle, rgba(28, 225, 212, 0.28), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* Sections */
.section {
  padding: 36px 0;
}

.section-tight {
  padding: 24px 0;
}

.section-head {
  margin-bottom: 16px;
}

.section-head h2 {
  margin: 0 0 6px;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.shot-hint {
  display: none;
  font-size: 0.82rem !important;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.feature-grid,
.shot-grid,
.link-grid,
.faq-list {
  display: grid;
  gap: 12px;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-item {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.feature-item h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.shot-grid {
  grid-template-columns: repeat(4, 1fr);
}

.shot-grid img,
.shot-scroll img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: var(--bg-3);
}

.shot-scroll {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.link-grid {
  grid-template-columns: repeat(2, 1fr);
}

.link-card {
  display: block;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  transition: 0.2s ease;
}

.link-card:hover {
  border-color: rgba(28, 225, 212, 0.5);
  color: var(--text);
  transform: translateY(-2px);
}

.link-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
}

.link-card span {
  color: var(--muted);
  font-size: 0.86rem;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 12px;
}

.step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(28, 225, 212, 0.12);
  color: var(--brand);
  font-weight: 700;
}

.step h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 14px 16px;
}

.faq-item h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.article {
  max-width: 760px;
}

.article p,
.article li {
  color: var(--muted);
}

.article h2 {
  margin-top: 1.6em;
  font-size: 1.25rem;
}

.article ul {
  padding-left: 1.2em;
}

.disclaimer-box {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 107, 138, 0.45);
  background: rgba(255, 107, 138, 0.08);
  color: #ffc2cf;
  font-size: 0.92rem;
}

/* Footer */
.site-footer {
  margin-top: 20px;
  padding: 28px 0 24px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-weight: 700;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 14px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-stats {
  color: var(--text);
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.footer-stats span {
  color: var(--brand);
  font-weight: 700;
}

.footer-notice {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(28, 225, 212, 0.08);
  border: 1px solid rgba(28, 225, 212, 0.35);
  color: #d7fff9;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.5;
}

.footer-copy {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

/* Floating download bar */
.float-dl {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  transform: translateY(110%);
  transition: transform 0.28s ease;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(7, 10, 22, 0.94);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}

.float-dl.show {
  transform: translateY(0);
}

.float-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: flex;
  gap: 10px;
  align-items: center;
}

.float-inner .btn {
  flex: 1;
  min-height: 48px;
}

.float-text {
  display: none;
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

/* Breadcrumb */
.breadcrumb {
  padding: 14px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb span {
  color: var(--text);
}

/* Tablet */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* 下载优先：大图放到按钮后面，不再抢首屏 */
  .hero-home .hero-visual {
    order: 2;
    max-width: 100%;
  }

  .hero-home .hero-copy {
    order: 1;
  }

  .hero-visual {
    max-width: 420px;
    margin-inline: auto;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-compact {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .shot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .link-grid {
    grid-template-columns: 1fr;
  }
}

/* Phone */
@media (max-width: 720px) {
  :root {
    --header-h: 52px;
  }

  .container {
    width: min(100% - 24px, var(--max));
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    flex-direction: column;
    padding: 8px 12px 12px;
    background: rgba(7, 10, 22, 0.98);
    border-bottom: 1px solid var(--line);
    max-height: calc(100vh - var(--header-h));
    overflow: auto;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 14px 12px;
    font-size: 0.95rem;
    border-radius: 12px;
  }

  .hero {
    padding: 18px 0 8px;
  }

  .app-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }

  .app-info h1 {
    font-size: 1.65rem;
  }

  .lead {
    font-size: 0.92rem;
    margin-bottom: 14px;
  }

  .btn {
    min-height: 50px;
  }

  .btn-xl {
    min-height: 54px;
    font-size: 1.05rem;
  }

  .cta-split .btn {
    min-height: 46px;
    font-size: 0.92rem;
  }

  /* 手机上大图收成矮横幅，不占半屏 */
  .hero-home .hero-visual {
    margin-top: 4px;
  }

  .hero-home .hero-visual img {
    max-height: 160px;
    object-fit: cover;
    object-position: center top;
    border-radius: 16px;
  }

  .hero:not(.hero-home) .hero-visual img {
    max-height: 200px;
    object-fit: cover;
    object-position: center top;
    border-radius: 16px;
  }

  .hero-visual::after {
    display: none;
  }

  .section,
  .section-tight {
    padding: 22px 0;
  }

  .feature-item {
    padding: 14px 16px;
    border-radius: 14px;
  }

  /* 截图横向滑动 */
  .shot-hint {
    display: block;
  }

  .shot-scroll,
  .shot-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    margin-inline: -12px;
    padding-inline: 12px;
  }

  .shot-scroll img,
  .shot-grid img {
    flex: 0 0 42vw;
    max-width: 160px;
    scroll-snap-align: start;
  }

  .link-card {
    padding: 14px 15px;
  }

  .link-card:hover {
    transform: none;
  }

  .float-text {
    display: none;
  }

  .float-inner .btn {
    font-size: 1.02rem;
  }
}

@media (min-width: 721px) {
  .float-text {
    display: block;
    margin-right: auto;
  }

  .float-inner .btn {
    flex: 0 0 auto;
    min-width: 200px;
  }

  .cta-main .btn {
    width: auto;
    min-width: 240px;
    flex: 0 0 auto;
  }

  .cta-split .btn {
    flex: 0 0 auto;
    min-width: 140px;
  }
}

@media (min-width: 901px) {
  .feature-compact {
    grid-template-columns: repeat(3, 1fr);
  }
}
