/* ========================================
   云雀极简仓 - 官网样式
   麻雀虽小，五脏俱全
   ======================================== */

/* === Reset & Variables === */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --accent: #f59e0b;
    --bg: #f8fafc;
    --bg-alt: #f1f5f9;
    --text: #1e293b;
    --text-light: #64748b;
    --text-lighter: #94a3b8;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.1);
    --radius: 12px;
    --radius-lg: 20px;
    --max-width: 1100px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* === Nav === */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
}
.nav.scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 20px;
    color: var(--text);
}
.logo-icon { font-size: 28px; line-height: 1; }

.nav-links {
    display: flex;
    gap: 32px;
}
.nav-links a {
    font-size: 15px;
    color: var(--text-light);
    transition: color var(--transition);
    font-weight: 500;
}
.nav-links a:hover { color: var(--primary); }

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* === Hero === */
.hero {
    padding: 120px 24px 80px;
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.hero-dot {
    position: absolute;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.06;
}
.dot-1 { width: 300px; height: 300px; top: -80px; right: -60px; }
.dot-2 { width: 180px; height: 180px; bottom: 40px; left: 10%; opacity: 0.04; }
.dot-3 { width: 80px; height: 80px; top: 30%; left: 5%; opacity: 0.08; }
.dot-4 { width: 120px; height: 120px; bottom: 20%; right: 30%; opacity: 0.05; }
.dot-5 { width: 60px; height: 60px; top: 20%; right: 40%; opacity: 0.07; }

.hero-content { position: relative; z-index: 2; }

.hero-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}
.highlight {
    color: var(--primary);
    position: relative;
}
.highlight::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 0; right: 0;
    height: 10px;
    background: var(--primary-light);
    z-index: -1;
    border-radius: 4px;
}

.hero-desc {
    font-size: 17px;
    color: var(--text-light);
    margin-bottom: 32px;
    max-width: 440px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius);
    transition: all var(--transition);
    box-shadow: 0 4px 14px rgba(37,99,235,0.3);
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,99,235,0.4);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    background: var(--white);
    color: var(--text);
    font-size: 16px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    transition: all var(--transition);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-lg { padding: 16px 36px; font-size: 18px; }

.hero-stats {
    display: flex;
    gap: 36px;
}
.stat-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.stat-num {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}
.stat-label {
    font-size: 13px;
    color: var(--text-lighter);
}

/* Hero Mockup */
.hero-mockup {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}
.mockup-frame {
    width: 280px;
    background: #1e293b;
    border-radius: 32px;
    padding: 12px;
    box-shadow: var(--shadow-xl);
    position: relative;
}
.mockup-notch {
    width: 80px;
    height: 6px;
    background: #0f172a;
    border-radius: 3px;
    margin: 0 auto 12px;
}
.mockup-screen {
    background: var(--white);
    border-radius: 22px;
    padding: 20px 16px;
    min-height: 380px;
}
.mockup-header {
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 18px;
    color: var(--text);
}
.mockup-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}
.mockup-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 14px;
    text-align: center;
}
.mockup-card-label {
    font-size: 11px;
    color: var(--text-lighter);
    margin-bottom: 4px;
}
.mockup-card-num {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
}
.mockup-card-num.in { color: #16a34a; }
.mockup-card-num.out { color: #dc2626; }

.mockup-scan-btn {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 12px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
}

/* === Sections === */
.section {
    padding: 80px 24px;
    max-width: var(--max-width);
    margin: 0 auto;
}
.section-alt {
    background: var(--bg-alt);
    max-width: 100%;
    padding: 80px 24px;
}
.section-alt > .section-header,
.section-alt > .compare-table,
.section-alt > .scene-grid {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}
.section-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
}
.section-header h2 {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
}
.section-header p {
    font-size: 16px;
    color: var(--text-light);
}

/* === Features === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    transition: all var(--transition);
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}
.feature-icon {
    font-size: 40px;
    margin-bottom: 16px;
    line-height: 1;
}
.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}
.feature-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

/* === Compare Table === */
.compare-table {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
}
.compare-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    padding: 16px 24px;
    align-items: center;
    font-size: 15px;
    border-bottom: 1px solid var(--border);
}
.compare-row:last-child { border-bottom: none; }
.compare-head {
    background: var(--bg-alt);
    font-weight: 700;
    font-size: 16px;
}
.compare-head div:first-child { font-weight: 600; color: var(--text-light); }
.win {
    color: var(--primary);
    font-weight: 700;
}
.highlight-cell {
    color: #16a34a !important;
    font-weight: 800 !important;
    font-size: 16px;
}

/* === Scene === */
.scene-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.scene-card {
    text-align: center;
    padding: 28px 18px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}
.scene-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.scene-icon { font-size: 44px; margin-bottom: 12px; line-height: 1; }
.scene-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}
.scene-card p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

/* === CTA === */
.section-cta {
    text-align: center;
    padding: 100px 24px;
}
.cta-content {
    max-width: 560px;
    margin: 0 auto;
}
.cta-content h2 {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 14px;
}
.cta-content p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 32px;
}
.cta-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.cta-note {
    font-size: 14px;
    color: var(--text-lighter);
}

/* === Download Modal === */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.open {
    display: flex;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    position: relative;
    animation: modalIn 0.3s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(24px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg-alt);
    font-size: 22px;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 1;
}
.modal-close:hover {
    background: #fee2e2;
    color: #dc2626;
}

.modal-header {
    text-align: center;
    padding: 36px 28px 20px;
}
.modal-icon { font-size: 48px; display: block; margin-bottom: 10px; }
.modal-header h2 { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.modal-header p { font-size: 14px; color: var(--text-light); }

.modal-body {
    padding: 0 28px 28px;
}


/* PC: QR Code Grid */
.download-pc { display: block; }
.download-mobile { display: none; }

.pan-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.pan-card {
    text-align: center;
    background: var(--bg);
    border-radius: var(--radius);
    padding: 24px 16px;
    border: 1px solid var(--border);
}
.pan-logo {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}
.pan-baidu { color: #2468e0; }
.pan-quark { color: #f5502c; }

.qr-placeholder {
    width: 140px;
    height: 140px;
    margin: 0 auto 12px;
    background: var(--white);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.qr-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.qr-hint {
    text-align: center;
    color: var(--text-lighter);
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.pan-tip {
    font-size: 12px;
    color: var(--text-lighter);
}

/* Mobile: Download Links */
.pan-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.pan-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid var(--border);
}
.pan-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.pan-baidu-link:hover { border-color: #2468e0; background: #eff6ff; }
.pan-quark-link:hover { border-color: #f5502c; background: #fff7ed; }

.pan-link-icon { font-size: 28px; flex-shrink: 0; }
.pan-link-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.pan-link-text strong { font-size: 16px; color: var(--text); }
.pan-link-text small { font-size: 12px; color: var(--text-lighter); }
.pan-link svg { flex-shrink: 0; color: var(--text-lighter); }

/* === Footer === */
.footer {
    background: #1e293b;
    color: #cbd5e1;
    padding: 48px 24px 32px;
    text-align: center;
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}
.footer-desc {
    font-size: 14px;
    margin-bottom: 20px;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-bottom: 24px;
}
.footer-links a {
    font-size: 14px;
    color: #94a3b8;
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }
.footer-copy {
    font-size: 13px;
    color: #64748b;
}

/* === Animations === */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.15s; }
.feature-card:nth-child(5) { animation-delay: 0.25s; }
.feature-card:nth-child(6) { animation-delay: 0.35s; }

.hero-mockup {
    animation: float 4s ease-in-out infinite;
}

/* === Responsive: Mobile shows download links, PC shows QR === */
@media (max-width: 768px) {
    .download-pc { display: none; }
    .download-mobile { display: block; }
}

/* === Responsive === */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 100px 20px 48px;
        gap: 40px;
    }
    .hero-desc { max-width: 100%; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-title { font-size: 34px; }
    .mockup-frame { width: 240px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .scene-grid { grid-template-columns: repeat(2, 1fr); }
    .compare-row { padding: 14px 16px; font-size: 13px; }
    .compare-head { font-size: 14px; }
}

@media (max-width: 600px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0; right: 0;
        background: var(--white);
        padding: 16px 24px;
        gap: 14px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }
    .hero-title { font-size: 28px; }
    .hero-stats { gap: 20px; }
    .stat-num { font-size: 20px; }
    .features-grid { grid-template-columns: 1fr; }
    .scene-grid { grid-template-columns: 1fr 1fr; }
    .compare-row { grid-template-columns: 1fr 1fr 1fr; padding: 10px 12px; font-size: 12px; }
    .compare-head { font-size: 12px; }
    .section-header h2 { font-size: 26px; }
    .cta-content h2 { font-size: 26px; }
    .mobile-br { display: none; }
    .section { padding: 56px 16px; }
    .section-alt { padding: 56px 16px; }
}
