:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --text: #14161a;
  --muted: #5b616e;
  --border: #e3e5ea;
  --accent: #d6373d;
  --accent-hover: #bf2d33;
  --accent-text: #c9292f;
  --accent-soft: #fdecec;
  --teal: #0b7a6e;
  --on-accent: #ffffff;
  --shadow: 0 1px 2px rgba(20, 22, 26, 0.06), 0 12px 32px rgba(20, 22, 26, 0.1);
  --header-bg: rgba(255, 255, 255, 0.86);
  --radius: 8px;
  --container: 1120px;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0d0f13;
  --bg-soft: #13161b;
  --text: #edeef1;
  --muted: #9aa1ae;
  --border: #242934;
  --accent: #d6373d;
  --accent-hover: #e0484e;
  --accent-text: #ff6b70;
  --accent-soft: #2a1517;
  --teal: #2bc4b1;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px rgba(0, 0, 0, 0.5);
  --header-bg: rgba(13, 15, 19, 0.86);
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s, color 0.2s;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; border-radius: 4px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.skip { position: absolute; left: 16px; top: -48px; z-index: 100; padding: 8px 14px; background: var(--accent); color: var(--on-accent); border-radius: var(--radius); }
.skip:focus { top: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--border); }
.bar { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: 0; }
.brand img { border-radius: 8px; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { padding: 6px 12px; border-radius: var(--radius); color: var(--muted); font-size: 15px; transition: color 0.15s, background-color 0.15s; }
.nav a:hover { color: var(--text); background: var(--bg-soft); }
.bar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--border); border-radius: var(--radius); background: transparent; color: var(--text); cursor: pointer; transition: background-color 0.15s; }
.icon-btn:hover { background: var(--bg-soft); }
.icon-btn .i-moon, [data-theme="dark"] .icon-btn .i-sun { display: none; }
[data-theme="dark"] .icon-btn .i-moon { display: block; }
.menu-btn { display: none; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
.menu-btn[aria-expanded="true"] .i-menu { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: var(--radius); font: inherit; font-weight: 600; line-height: 1; cursor: pointer; white-space: nowrap; transition: background-color 0.15s, border-color 0.15s, transform 0.1s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { border-color: var(--border); color: var(--text); background: transparent; }
.btn-outline:hover { background: var(--bg-soft); border-color: var(--muted); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 15px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 17px; }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.eyebrow { color: var(--accent-text); font-size: 14px; font-weight: 600; margin-bottom: 16px; }
h1 { font-size: 52px; line-height: 1.15; font-weight: 800; letter-spacing: 0; }
h1 span { display: block; margin-top: 8px; font-size: 28px; line-height: 1.3; font-weight: 700; color: var(--accent-text); }
.lead { margin-top: 24px; max-width: 540px; color: var(--muted); font-size: 17px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; font-size: 14px; color: var(--muted); }
.badges li { display: inline-flex; align-items: center; gap: 6px; }
.badges .i { width: 18px; height: 18px; color: var(--teal); }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: flex-start; min-height: 520px; }
.phone { width: 232px; padding: 8px; background: #16181d; border-radius: 30px; box-shadow: var(--shadow); }
.phone img { width: 100%; aspect-ratio: 338 / 600; object-fit: cover; border-radius: 22px; background: #fbfbfb; }
.phone-a { position: relative; z-index: 2; margin-right: -28px; margin-top: 0; }
.phone-b { margin-top: 56px; }
[data-theme="dark"] .phone { background: #2a2e37; }

/* Specs */
.specs { border-block: 1px solid var(--border); background: var(--bg-soft); }
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.spec-grid > div { padding: 22px 20px; border-left: 1px solid var(--border); }
.spec-grid > div:first-child { border-left: 0; padding-left: 0; }
.spec-grid dt { font-size: 13px; color: var(--muted); }
.spec-grid dd { margin-top: 2px; font-weight: 600; font-size: 15px; }

/* In-page ads */
.ad-band { padding: 20px 0; border-block: 1px solid var(--border); }
.ad-band .container { min-height: 110px; }
.ad-label { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; visibility: hidden; }
.ad-band:has(.adsbygoogle:is([data-ad-status="filled"], [data-ad-status="unfill-optimized"])) .ad-label { visibility: visible; }
.ad-band:has(.adsbygoogle[data-ad-status="unfilled"]),
.ad-band .adsbygoogle[data-ad-status="unfilled"] { display: none !important; }

/* Sections */
.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.kicker { color: var(--accent-text); font-size: 14px; font-weight: 600; margin-bottom: 8px; }
h2 { font-size: 32px; line-height: 1.3; font-weight: 800; letter-spacing: 0; }
h3 { font-size: 18px; line-height: 1.4; font-weight: 700; letter-spacing: 0; }
.section-head { margin-bottom: 40px; }
.section-sub { margin-top: 12px; color: var(--muted); }
.split { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; }
.split-head { position: sticky; top: 96px; align-self: start; }
.prose p { color: var(--muted); font-size: 17px; }
.prose p + p { margin-top: 18px; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.feature-grid li { padding-top: 24px; border-top: 2px solid var(--text); }
.ico { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent-text); }
.feature-grid h3 { margin-bottom: 8px; }
.feature-grid p { color: var(--muted); font-size: 15px; }

/* Functions */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.col-title { margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.steps-list li, .check-list li { display: flex; gap: 14px; padding: 14px 0; }
.steps-list p, .check-list p { color: var(--muted); }
.num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 14px; font-weight: 700; line-height: 1; }
.check-list .i { margin-top: 2px; color: var(--teal); }

/* Tutorial */
.tutorial { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.tutorial img { width: 100%; aspect-ratio: 338 / 600; object-fit: cover; margin-bottom: 18px; border: 1px solid var(--border); border-radius: 16px; background: #fbfbfb; box-shadow: var(--shadow); }
.step-no { display: block; margin-bottom: 4px; color: var(--accent-text); font-size: 13px; font-weight: 700; }
.tutorial h3 { margin-bottom: 6px; }
.tutorial p { color: var(--muted); font-size: 15px; }

/* FAQ */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 17px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--muted); transition: transform 0.2s; }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq details p { padding: 0 40px 22px 0; color: var(--muted); }

/* CTA band */
.cta-band { padding: 64px 0; background: var(--text); color: var(--bg); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-band h2 { font-size: 28px; }
.cta-band p { margin-top: 6px; opacity: 0.75; }

/* Footer */
.site-footer { padding: 48px 0 32px; border-top: 1px solid var(--border); }
.foot { display: flex; justify-content: space-between; gap: 32px; }
.foot-brand p { margin-top: 10px; color: var(--muted); font-size: 14px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; align-content: flex-start; font-size: 15px; color: var(--muted); }
.foot-nav a:hover { color: var(--text); }
.legal { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.legal p + p { margin-top: 8px; }

.mobile-bar { display: none; }

/* Tablet */
@media (max-width: 960px) {
  h1 { font-size: 44px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-visual { min-height: 0; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .tutorial { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .split-head { position: static; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-grid > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .spec-grid > div:nth-child(n+3) { border-top: 1px solid var(--border); }
}

/* Mobile */
@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .bar { gap: 8px; height: 60px; }
  .menu-btn { display: inline-flex; }
  .bar-download { display: none; }
  .nav { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; margin: 0; padding: 8px 20px 16px; background: var(--bg); border-bottom: 1px solid var(--border); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; font-size: 16px; }
  html { scroll-padding-top: 64px; }

  .hero { padding: 40px 0 36px; }
  h1 { font-size: 36px; }
  h1 span { font-size: 22px; }
  .lead { font-size: 16px; }
  .cta-row .btn { flex: 1 1 100%; }
  .phone { width: min(168px, 43vw); border-radius: 24px; padding: 6px; }
  .phone img { border-radius: 18px; }
  .phone-a { margin-right: -20px; }
  .phone-b { margin-top: 36px; }

  .section { padding: 56px 0; }
  h2 { font-size: 26px; }
  .section-head { margin-bottom: 28px; }
  .feature-grid { grid-template-columns: 1fr; gap: 28px; }
  .tutorial { grid-template-columns: 1fr; gap: 36px; }
  .tutorial li { display: grid; grid-template-columns: 120px 1fr; column-gap: 16px; align-items: start; }
  .tutorial img { grid-row: 1 / span 3; margin: 0; border-radius: 12px; }
  .tutorial .step-no, .tutorial h3, .tutorial p { grid-column: 2; }
  .faq details p { padding-right: 0; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .cta-inner .btn { width: 100%; }
  .foot { flex-direction: column; }
  .site-footer { padding-bottom: 96px; }

  .mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: block; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--header-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--border); }
  .mobile-bar .btn { width: 100%; }
}

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