/* ===================================
   VantaViz Mobile Optimizations
   移动端专属优化样式
   =================================== */

/* Mobile Menu Styles */
@media (max-width: 767px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        transform: translateX(-100%);
        transition: transform var(--transition-base);
        z-index: 999;
    }
    
    .nav-menu.active {
        display: flex;
        transform: translateX(0);
    }
    
    .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    /* Mobile Hero Adjustments */
    .hero {
        min-height: auto;
        padding: 6rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-item {
        text-align: center;
    }
    
    /* Mobile Button Adjustments */
    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    /* Mobile Section Spacing */
    .value-props,
    .features,
    .platforms,
    .pricing,
    .about,
    .cta {
        padding: var(--spacing-xl) 0;
    }
    
    /* Mobile Typography */
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    /* Mobile Feature Items */
    .feature-showcase {
        gap: var(--spacing-xl);
    }
    
    .feature-item {
        gap: 2rem;
    }
    
    .mockup-window {
        max-width: 100%;
    }
    
    /* Mobile Pricing Cards */
    .pricing-card {
        padding: var(--spacing-lg);
    }
    
    .price-amount {
        font-size: 2.5rem;
    }
    
    /* Mobile Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Mobile CTA */
    .cta-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-actions .btn {
        width: 100%;
    }
    
    /* Touch Optimization */
    .btn,
    .nav-link,
    a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    
    /* Prevent Text Selection on Double Tap */
    .btn,
    .nav-link {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
}

/* Tablet Optimizations */
@media (min-width: 768px) and (max-width: 967px) {
    .hero .container {
        grid-template-columns: 1fr;
    }
    
    .hero-visual {
        display: none;
    }
    
    .platforms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Small Mobile Devices */
@media (max-width: 374px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .value-grid {
        gap: 1rem;
    }
    
    .chart-gallery {
        grid-template-columns: 1fr;
    }
}

/* Landscape Mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 5rem 0 2rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for retina displays */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Uncomment to enable dark mode
    :root {
        --text-primary: #f7fafc;
        --text-secondary: #e2e8f0;
        --text-light: #cbd5e0;
        --bg-primary: #1a202c;
        --bg-secondary: #2d3748;
        --bg-dark: #f7fafc;
        --border-color: #4a5568;
    }
    
    .navbar {
        background: rgba(26, 32, 44, 0.95);
    }
    
    .hero-background {
        opacity: 0.1;
    }
    */
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .visual-card {
        animation: none;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .mobile-menu-toggle,
    .hero-actions,
    .cta,
    .footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    h1 {
        font-size: 24pt;
    }
    
    h2 {
        font-size: 18pt;
    }
    
    h3 {
        font-size: 14pt;
    }
    
    a {
        text-decoration: underline;
    }
    
    .container {
        max-width: 100%;
    }
}

