/* ===== Tokens ===== */
:root {
    --primary: #22c55e;
    --primary-light: #4ade80;
    --primary-dark: #15803d;
    --primary-glow: rgba(34, 197, 94, 0.3);
    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow: 0 8px 30px rgba(15, 23, 42, 0.1);
    --shadow-lg: 0 24px 64px rgba(15, 23, 42, 0.14);
    --radius: 20px;
    --radius-sm: 12px;
    --header-h: 72px;
    --header-bg: rgba(255, 255, 255, 0.92);
    --body-bg: #f8fafc;
    --card-bg: #ffffff;
    --footer-bg: #0c1222;
    --hero-bg: #f0fdf4;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

.theme-blue {
    --primary: #3b82f6;
    --primary-light: #60a5fa;
    --primary-dark: #1d4ed8;
    --primary-glow: rgba(59, 130, 246, 0.3);
    --hero-bg: #eff6ff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--body-bg);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.nav-open { overflow: hidden; }
body.has-mobile-bar { padding-bottom: calc(68px + var(--safe-bottom)); }

a { color: var(--primary-dark); text-decoration: none; transition: color 0.2s; }
img { max-width: 100%; height: auto; display: block; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
main { flex: 1; }

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    transition: box-shadow 0.3s;
}

.site-header.scrolled { box-shadow: var(--shadow-sm); }

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
    flex-shrink: 0;
    z-index: 1001;
}

.logo-mark {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    line-height: 1;
    box-shadow: 0 2px 8px var(--primary-glow);
}

.logo-mark.sm { width: 26px; height: 26px; font-size: 0.75rem; border-radius: 7px; display: inline-flex; vertical-align: middle; }

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-secondary);
    padding: 9px 16px;
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active { color: var(--primary-dark); background: rgba(34, 197, 94, 0.1); }
.theme-blue .nav-menu a:hover,
.theme-blue .nav-menu a.active { background: rgba(59, 130, 246, 0.1); }

.nav-download,
.header-download-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.nav-download:hover,
.header-download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--primary-glow);
    color: #fff !important;
}

.header-action-btns {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 20px;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.nav-mobile-only { display: none; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: var(--border-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    z-index: 1001;
    flex-shrink: 0;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    margin: 0 auto;
    transition: 0.3s;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 999;
    backdrop-filter: blur(4px);
}

.nav-overlay.show { display: block; }

/* ===== Hero ===== */
.hero {
    position: relative;
    background: var(--hero-bg);
    padding: 56px 0 72px;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, var(--primary-glow) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.06) 0%, transparent 40%),
        linear-gradient(rgba(34,197,94,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34,197,94,0.03) 1px, transparent 1px);
    background-size: auto, auto, 40px 40px, 40px 40px;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-content { order: 1; }
.hero-phone { order: 2; display: flex; justify-content: center; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    background: #fff;
    color: var(--primary-dark);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(34, 197, 94, 0.25);
    box-shadow: var(--shadow-sm);
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.12;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    color: var(--text);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 480px;
    line-height: 1.75;
}

/* Phone Mockup */
.phone-glow { position: relative; }

.phone-glow::before {
    content: "";
    position: absolute;
    inset: 5% 0;
    background: radial-gradient(ellipse, var(--primary-glow), transparent 70%);
    filter: blur(30px);
    z-index: 0;
}

.phone-frame {
    position: relative;
    z-index: 1;
    width: min(290px, 72vw);
    background: linear-gradient(160deg, #3a3a4a, #18181f);
    border-radius: 46px;
    padding: 14px;
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.12);
}

.phone-notch {
    width: 88px;
    height: 22px;
    background: #18181f;
    border-radius: 0 0 14px 14px;
    margin: 0 auto 6px;
}

.phone-frame img { border-radius: 34px; width: 100%; }

.phone-float {
    position: absolute;
    background: #fff;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    white-space: nowrap;
    z-index: 2;
    animation: float 3s ease-in-out infinite;
}

.phone-float-1 { top: 20%; left: -20px; animation-delay: 0s; }
.phone-float-2 { bottom: 25%; right: -24px; animation-delay: 1.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Download Box */
.download-box {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    max-width: 100%;
    width: fit-content;
}

.qr-code {
    flex-shrink: 0;
    padding-right: 24px;
    border-right: 1px dashed var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.qr-code img, .qr-placeholder {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-sm);
}

.qr-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--border-light);
    border: 2px dashed var(--border);
}

.qr-label { font-size: 0.75rem; color: var(--text-muted); }

.download-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding-left: 24px;
    min-width: 180px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    font-size: 0.925rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
    white-space: nowrap;
}

.btn-lg { padding: 15px 26px; font-size: 1rem; border-radius: 14px; }
.btn-sm { padding: 10px 18px; font-size: 0.875rem; }

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-android {
    background: linear-gradient(135deg, #fb923c, #ea580c);
    color: #fff;
    box-shadow: 0 4px 16px rgba(234, 88, 12, 0.35);
}

.btn-android:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(234, 88, 12, 0.4); color: #fff; }

.btn-ios {
    background: var(--border-light);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-ios.disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

.btn-outline {
    background: transparent;
    color: var(--primary-dark);
    border: 2px solid var(--primary);
    border-radius: 999px;
    padding: 12px 32px;
}

.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-white {
    background: #fff;
    color: var(--primary-dark);
    box-shadow: var(--shadow);
}

.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--primary-dark); }

/* Stats Bar */
.stats-bar {
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 28px 0;
}

.stats-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    text-align: center;
}

.stat-item strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.02em;
}

.stat-item span { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; display: block; }

/* Features Showcase */
.features-section { background: #fff; }

.features-showcase {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--body-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: all 0.3s;
    text-align: center;
}

.feature-card:hover {
    background: #fff;
    box-shadow: var(--shadow);
    transform: translateY(-4px);
    border-color: rgba(34, 197, 94, 0.3);
}

.feature-card-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, rgba(34,197,94,0.15), rgba(34,197,94,0.05));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
}

.feature-card-icon svg { width: 18px; height: 18px; }

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.feature-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

/* Sections */
.section { padding: 72px 0; }

.section-header { text-align: center; margin-bottom: 48px; }

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-dark);
    background: rgba(34, 197, 94, 0.1);
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.section-header h2 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.section-header p { color: var(--text-secondary); font-size: 1rem; }

.page-header {
    background: var(--hero-bg);
    padding: 56px 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.page-header h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 10px; }
.page-header p { color: var(--text-secondary); }

.articles-preview { background: var(--body-bg); }
.section-more { text-align: center; margin-top: 40px; }

.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 60px 24px;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 2px dashed var(--border);
}

/* Articles */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.article-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.article-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: transparent; }

.article-card-icon {
    width: 32px;
    height: 32px;
    background: var(--border-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    line-height: 1;
    margin-bottom: 12px;
}

.article-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.45;
}

.article-card h3 a { color: var(--text); }
.article-card h3 a:hover { color: var(--primary-dark); }

.article-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
    font-size: 0.82rem;
}

.article-card-footer time { color: var(--text-muted); }
.read-more { color: var(--primary-dark); font-weight: 600; font-size: 0.85rem; }

.article-list { max-width: 760px; margin: 0 auto; }

.article-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 24px 28px;
    margin-bottom: 16px;
    transition: all 0.2s;
}

.article-item:hover { box-shadow: var(--shadow-sm); border-color: rgba(34,197,94,0.3); }

.article-item h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.article-item h2 a { color: var(--text); }
.article-item h2 a:hover { color: var(--primary-dark); }
.article-item p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 10px; }

.article-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.82rem; color: var(--text-muted); }

/* Article Detail */
.breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }

.article-detail .container { max-width: 800px; }

.article-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.article-header h1 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 12px;
}

.article-body { line-height: 1.85; font-size: 1rem; color: var(--text-secondary); }
.article-body h2 { font-size: 1.4rem; color: var(--text); margin: 32px 0 12px; font-weight: 700; }
.article-body h3 { font-size: 1.15rem; color: var(--text); margin: 24px 0 8px; }
.article-body p { margin-bottom: 16px; }

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 20px 0;
    box-shadow: var(--shadow-sm);
}

.article-body blockquote {
    border-left: 4px solid var(--primary);
    padding: 12px 20px;
    margin: 20px 0;
    background: var(--border-light);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-secondary);
}

.article-body ul,
.article-body ol {
    margin: 12px 0 16px 24px;
}

.article-body a { text-decoration: underline; }

.article-footer { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.25s;
}

.faq-item[open] { box-shadow: var(--shadow-sm); border-color: rgba(34,197,94,0.3); }

.faq-item summary {
    padding: 20px 24px;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: "";
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: rgba(34,197,94,0.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center no-repeat;
    border-radius: 10px;
    transition: transform 0.25s;
}

.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item summary:hover { background: var(--border-light); }
.faq-item h2 { font-size: 0.975rem; font-weight: 600; margin: 0; color: var(--text); }

.faq-answer {
    padding: 0 24px 22px;
    color: var(--text-secondary);
    line-height: 1.75;
    font-size: 0.925rem;
}

.faq-answer.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 12px 0;
}

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 40px; }

.pagination a {
    min-width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    background: #fff;
    transition: all 0.2s;
}

.pagination a.active,
.pagination a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* CTA */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 56px 0;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cta-text h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 800; margin-bottom: 8px; }
.cta-text p { color: rgba(255,255,255,0.85); font-size: 0.95rem; }

/* Footer */
.site-footer {
    background: var(--footer-bg);
    color: #94a3b8;
    padding: 56px 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 36px;
}

.footer-brand h3 { color: #fff; font-size: 1.15rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; margin-bottom: 20px; max-width: 340px; }

.footer-download-btn {
    display: inline-flex;
    padding: 10px 22px;
    background: var(--primary);
    color: #fff !important;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.footer-download-btn:hover { background: var(--primary-light); color: #fff !important; }

.footer-links h4, .footer-contact h4 { color: #e2e8f0; margin-bottom: 16px; font-size: 0.875rem; font-weight: 600; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #94a3b8; }
.footer-links a:hover { color: var(--primary-light); }

.footer-contact p {
    font-size: 0.875rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contact a { color: #94a3b8; }
.footer-contact a:hover { color: var(--primary-light); }

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.82rem;
}

/* Mobile Download Bar */
.mobile-download-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    padding: 10px 16px calc(10px + var(--safe-bottom));
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}

.mobile-bar-info { display: flex; align-items: center; gap: 10px; color: var(--text); }
.mobile-bar-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    line-height: 1;
    flex-shrink: 0;
}

.mobile-bar-text { display: flex; flex-direction: column; }
.mobile-bar-text strong { font-size: 0.875rem; }
.mobile-bar-text small { font-size: 0.75rem; color: var(--text-muted); }

/* ===== Responsive ===== */

/* Tablet */
@media (max-width: 1024px) {
    .hero-inner { gap: 36px; }
    .phone-float { display: none; }
    .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

/* Mobile landscape / small tablet */
@media (max-width: 768px) {
    :root { --header-h: 64px; }

    .header-action-btns { display: none; }
    .nav-toggle { display: flex; }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(320px, 85vw);
        height: 100vh;
        height: 100dvh;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: calc(var(--header-h) + 16px) 20px 24px;
        gap: 4px;
        box-shadow: -8px 0 32px rgba(0,0,0,0.12);
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-menu.open { right: 0; }
    .nav-menu a { width: 100%; padding: 14px 18px; border-radius: 12px; font-size: 1rem; }
    .nav-mobile-only { display: block; }

    .hero { padding: 40px 0 48px; }
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
    }

    .hero-content { order: 2; }
    .hero-phone { order: 1; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }

    .download-box {
        flex-direction: column;
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
        align-items: center;
    }

    .qr-code {
        border-right: none;
        border-bottom: 1px dashed var(--border);
        padding: 0 0 20px;
        width: 100%;
    }

    .download-buttons { padding-left: 0; padding-top: 16px; width: 100%; min-width: 0; }
    .download-buttons .btn { width: 100%; }

    .features-showcase { grid-template-columns: 1fr; }
    .section { padding: 52px 0; }
    .cta-inner { flex-direction: column; text-align: center; }
    .cta-inner .btn { width: 100%; max-width: 280px; }

    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .article-grid { grid-template-columns: 1fr; }

    .mobile-download-bar { display: flex; }
    body.has-mobile-bar { padding-bottom: calc(68px + var(--safe-bottom)); }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .stats-inner { grid-template-columns: repeat(2, 1fr); }
    .stat-item strong { font-size: 1.25rem; }
    .article-item { padding: 20px; }
    .faq-item summary { padding: 16px 18px; }
    .faq-answer { padding: 0 18px 18px; }
}
