/* Base Theme */
:root {
  --bg: #0f1320;
  --surface: #121826;
  --text: #e6e8ee;
  --muted: #aab0c0;
  --primary: #4f78ff;
  --primary-ink: #0a1a4f;
  --accent: #22d3ee;
  --border: #1f2536;
  --ok: #10b981;
  --warn: #f59e0b;
}

html.theme-light {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --text: #1b1f2a;
  --muted: #566179;
  --primary: #3056ff;
  --primary-ink: #e9edff;
  --accent: #06b6d4;
  --border: #e6e8ef;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'MiSans', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 500px at 15% -10%, #1c2240 0%, var(--bg) 60%), var(--bg);
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; backdrop-filter: saturate(140%) blur(8px); background: color-mix(in oklab, var(--surface) 84%, transparent); border-bottom: 1px solid var(--border); }
.header-wrap { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 600; }
.brand-logo { width: 28px; height: 28px; }
.nav-toggle { display: none; }
.nav-list { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.nav-list a { color: var(--muted); text-decoration: none; padding: 8px 6px; border-radius: 8px; }
.nav-list a:hover { color: var(--text); background: color-mix(in oklab, var(--surface) 92%, transparent); }
.header-actions { display: flex; gap: 10px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--border); color: var(--text); text-decoration: none; transition: all .2s ease; cursor: pointer; }
.btn.primary { background: linear-gradient(180deg, color-mix(in oklab, var(--primary) 92%, white), var(--primary)); border-color: color-mix(in oklab, var(--primary) 70%, black 10%); color: white; box-shadow: 0 6px 16px color-mix(in oklab, var(--primary) 30%, black 40%); }
.btn.primary:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn.secondary { background: color-mix(in oklab, var(--accent) 12%, var(--surface)); color: var(--text); }
.btn.ghost { background: color-mix(in oklab, var(--surface) 94%, transparent); color: var(--muted); }
.btn.large { height: 44px; padding: 0 20px; font-weight: 600; }
.btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; }

/* Hero */
.hero { padding: 64px 0 48px; background: linear-gradient(180deg, color-mix(in oklab, var(--surface) 92%, transparent), transparent 50%); }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; }
.hero-copy h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.15; margin: 0 0 14px; letter-spacing: 0.2px; }
.hero-copy p { margin: 0 0 18px; color: var(--muted); }
.cta { display: flex; gap: 12px; margin-top: 6px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 999px; background: color-mix(in oklab, var(--surface) 90%, transparent); color: var(--muted); border: 1px solid var(--border); font-size: 13px; }

.hero-media { display: grid; place-items: center; }
.qr-card { display: grid; gap: 10px; padding: 18px; border-radius: 16px; border: 1px solid var(--border); background: linear-gradient(180deg, color-mix(in oklab, var(--surface) 92%, transparent), transparent); box-shadow: 0 12px 28px rgba(0,0,0,.25); }
.qr-card img { width: 200px; height: 200px; }
.qr-tip { text-align: center; color: var(--muted); font-size: 14px; }

/* Sections */
.section { padding: 56px 0; }
.section.alt { background: color-mix(in oklab, var(--surface) 94%, transparent); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { font-size: clamp(22px, 3vw, 30px); margin: 0 0 10px; }
.section-desc { margin: 0 0 24px; color: var(--muted); }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { border: 1px solid var(--border); border-radius: 14px; padding: 18px; background: color-mix(in oklab, var(--surface) 92%, transparent); transition: transform .2s ease, box-shadow .2s ease; }
.feature-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.feature-card .icon { font-size: 22px; margin-bottom: 8px; }
.feature-card h3 { margin: 4px 0 8px; font-size: 18px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* Screens */
.screens-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.screen-card { display: grid; place-items: center; border: 1px solid var(--border); border-radius: 16px; padding: 18px; background: color-mix(in oklab, var(--surface) 92%, transparent); }
.device { width: 100%; max-width: 300px; aspect-ratio: 9/19.5; border-radius: 30px; background: linear-gradient(180deg, #1b223c, #0f1320); border: 10px solid #0a0f1f; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 16px 36px rgba(0,0,0,.45); display: grid; place-items: center; }
.device-screen { width: 86%; height: 86%; border-radius: 22px; background: linear-gradient(135deg, color-mix(in oklab, var(--primary) 30%, #0f1320), color-mix(in oklab, var(--accent) 20%, #0f1320)); color: rgba(255,255,255,.88); display: grid; place-items: center; font-weight: 600; letter-spacing: .6px; }
/* 设备屏幕中的真实截图适配 */
.device-screen img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }

/* Download */
.download-wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: center; }
.download-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0 14px; }
.dl-notes { margin: 0; padding-left: 18px; color: var(--muted); }
.download-qr { display: grid; place-items: center; }

/* Docs links */
.doc-links { display: flex; gap: 14px; flex-wrap: wrap; }
.link { color: var(--accent); text-decoration: none; border-bottom: 1px dashed color-mix(in oklab, var(--accent) 40%, transparent); padding-bottom: 2px; }
.link:hover { filter: brightness(1.1); }

/* Contact */
.contact-card { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border: 1px solid var(--border); border-radius: 14px; padding: 16px; background: color-mix(in oklab, var(--surface) 92%, transparent); }
.contact-card .icon { font-size: 18px; margin-bottom: 6px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: color-mix(in oklab, var(--surface) 92%, transparent); }
.footer-wrap { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; align-items: center; min-height: 92px; }
.brand-line { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.brand-line img { width: 24px; height: 24px; }
.footer-links { list-style: none; display: flex; justify-content: center; gap: 18px; padding: 0; margin: 0; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.copyright { text-align: right; color: var(--muted); font-size: 14px; }

/* Responsive */
@media (max-width: 1024px) {
  .features-grid, .screens-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .download-wrap, .footer-wrap { grid-template-columns: 1fr; }
  .copyright { text-align: left; }
}

@media (max-width: 640px) {
  .nav-toggle { display: inline-flex; height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border); background: color-mix(in oklab, var(--surface) 94%, transparent); color: var(--muted); }
  .nav-list { display: none; position: absolute; top: 64px; right: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px; }
  .nav-list.show { display: flex; flex-direction: column; }
  .features-grid, .screens-grid { grid-template-columns: 1fr; }
  .cta { flex-wrap: wrap; }
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.hero, .section { animation: fadeUp .36s ease both; }