:root {
  --accent: #0f766e;
  --accent-light: #0d9488;
  --accent-dim: rgba(15, 118, 110, 0.12);
  --accent-shadow: rgba(15, 118, 110, 0.32);
  --bg: #f2f2f6;
  --surface: #ffffff;
  --surface-muted: #efede8;
  --text: #1c1c1e;
  --text-secondary: #48484a;
  --text-tertiary: #8e8e93;
  --border: rgba(60, 60, 67, 0.12);
  --radius: 14px;
  --max-width: 1040px;
  --phone-media-max: 268px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

html.lang-en .lang-zh {
  display: none !important;
}

html.lang-zh .lang-en {
  display: none !important;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(242, 242, 246, 0.88);
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.9rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--accent);
  text-decoration: none;
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.lang-switch button {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.lang-switch button.is-active {
  background: var(--accent);
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.94rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px var(--accent-shadow);
}

.btn-primary:hover {
  background: var(--accent-light);
}

.btn-secondary {
  background: var(--surface);
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

.btn-secondary:hover {
  background: var(--surface-muted);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.86rem;
}

.btn[aria-disabled="true"] {
  cursor: default;
  opacity: 0.55;
  box-shadow: none;
  pointer-events: none;
}

.btn[aria-disabled="true"]:hover {
  transform: none;
  background: var(--surface);
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 20px;
}

.section-title {
  font-size: clamp(1.6rem, 3.8vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 12px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.02rem;
  max-width: 620px;
  margin: 0 0 36px;
  line-height: 1.65;
}

.section-flow-example {
  margin-top: -20px;
  margin-bottom: 28px;
  font-size: 0.94rem;
  color: var(--text-tertiary);
  font-style: italic;
}

.section-title-centered {
  text-align: center;
}

.section-desc-centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 20px 72px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.12;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.hero-lead {
  color: var(--text-secondary);
  font-size: 1.08rem;
  line-height: 1.65;
  margin: 0 0 24px;
  max-width: 34em;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.badge {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hero-caption {
  margin: 0;
  max-width: 22em;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.tool-card-note {
  margin: 8px 0 0;
  color: var(--text-tertiary);
  font-size: 0.78rem;
  line-height: 1.45;
}

.site-header .cta-android,
.mobile-anchor-bar .cta-android {
  display: none;
}

html.device-android .site-header .cta-ios,
html.device-android .mobile-anchor-bar .cta-ios {
  display: none;
}

html.device-android .site-header .cta-android {
  display: inline-flex;
}

html.device-android .mobile-anchor-bar .cta-android {
  display: block;
}

html.device-android .hero-actions .cta-android,
html.device-android .download-actions .cta-android {
  order: -1;
  background: var(--accent);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px var(--accent-shadow);
}

html.device-android .hero-actions .cta-ios,
html.device-android .download-actions .cta-ios {
  background: var(--surface);
  color: var(--accent);
  border: 1.5px solid var(--accent);
  box-shadow: none;
}

.phone-frame {
  width: min(72vw, var(--phone-media-max));
  margin: 0 auto;
  aspect-ratio: 9 / 19.5;
  background: #171717;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(15, 118, 110, 0.12), 0 16px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border);
}

.phone-frame img,
.phone-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.phone-frame-demo {
  position: relative;
  width: min(78vw, 320px);
}

.phone-frame-demo .phone-demo {
  display: block;
}

.phone-frame-demo .phone-demo-static {
  display: none;
}

/* Prefer a still frame when the visitor asks for less motion. */
@media (prefers-reduced-motion: reduce) {
  .phone-frame-demo .phone-demo {
    display: none;
  }
  .phone-frame-demo .phone-demo-static {
    display: block;
  }
}

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

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-card h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.step-card p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-tertiary);
  line-height: 1.5;
}

.diff-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}

.diff-pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
}

.diff-pillar-icon {
  font-size: 1.35rem;
  margin-bottom: 8px;
  line-height: 1;
}

.diff-pillar h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.diff-pillar p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.feature-showcase {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 20px;
  box-shadow: 0 12px 40px rgba(15, 118, 110, 0.06);
}

.feature-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.feature-tabs button {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.feature-tabs button:hover {
  border-color: var(--accent-light);
  color: var(--accent);
}

.feature-tabs button.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.feature-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  animation: feature-fade 0.2s ease;
}

.feature-panel.is-active {
  display: grid;
}

@keyframes feature-fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-panel-copy h3 {
  margin: 0 0 10px;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  line-height: 1.25;
}

.feature-panel-copy p {
  margin: 0 0 10px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.feature-panel-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

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

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
}

.tool-card .emoji {
  font-size: 1.45rem;
  line-height: 1;
  margin-bottom: 10px;
}

.tool-card h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
}

.tool-card p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.more-features {
  margin-top: 28px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.more-features h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.more-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.more-list li::before {
  content: "·";
  margin-right: 8px;
  color: var(--accent);
  font-weight: 700;
}

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

.privacy-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
}

.privacy-card h3 {
  margin: 0 0 8px;
  font-size: 0.98rem;
}

.privacy-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
}

.credits-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
}

.credits-card h3 {
  margin: 0 0 8px;
}

.credits-card p {
  margin: 0 0 10px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.credits-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.credits-card li {
  position: relative;
  padding: 5px 0 5px 18px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.credits-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.section-download {
  text-align: center;
  padding-bottom: 72px;
}

.section-download .hero-actions {
  justify-content: center;
}

.ai-disclaimer {
  margin: 24px auto 0;
  max-width: 560px;
  font-size: 0.8rem;
  color: var(--text-tertiary);
  line-height: 1.5;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 20px;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.84rem;
}

.site-footer p {
  margin: 4px 0;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-bottom: 10px !important;
}

.site-footer-links a {
  color: var(--text-secondary);
}

.mobile-anchor-bar {
  display: none;
}

.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 72px;
}

.legal-page h1 {
  margin-top: 0;
}

.legal-page h2 {
  margin-top: 2em;
}

.legal-meta {
  color: var(--text-tertiary);
  font-size: 0.92rem;
}

@media (min-width: 901px) {
  :root {
    --phone-media-max: 300px;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 36px;
    padding-bottom: 56px;
  }

  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-badges,
  .hero-actions {
    justify-content: center;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .diff-pillars,
  .tools-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-panel,
  .feature-panel.is-active {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .feature-panel-copy {
    order: 2;
  }

  .feature-panel .phone-frame {
    order: 1;
  }

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

@media (max-width: 640px) {
  :root {
    --phone-media-max: 232px;
  }

  .nav-links {
    display: none;
  }

  .steps,
  .diff-pillars,
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .feature-tabs button {
    font-size: 0.78rem;
    padding: 7px 11px;
  }
}
