/* 平板电脑 */
@media screen and (max-width: 1024px) {
    .nav-container {
        padding: 1rem 2rem;
    }

    .hero-slider {
        height: 400px;
    }

    .ar-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .ar-preview img {
        max-width: 100%;
        bottom: 0;
        height: 100%;
    }
}

/* 手机端 */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
        cursor: pointer;
        font-size: 1.5rem;
        color: var(--primary-color);
        background: none;
        border: none;
        padding: 0.5rem;
        transition: all 0.3s ease;
    }

    .menu-toggle:hover {
        color: var(--primary-light);
        transform: scale(1.1);
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: auto;
        background: var(--card-bg);
        flex-direction: column;
        align-items: stretch;
        padding: 0.5rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: var(--shadow-md);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--primary-color);
        z-index: 1000;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        width: 100%;
        margin: 0.2rem 0;
    }

    .nav-links a {
        width: 100%;
        padding: 0.6rem 1rem;
        border-radius: 8px;
        color: var(--text-primary);
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 0.8rem;
        font-size: 0.95rem;
        position: relative;
        overflow: hidden;
    }

    .nav-links a i {
        font-size: 1.1rem;
        width: 20px;
        text-align: center;
        color: var(--primary-color);
        transition: all 0.3s ease;
    }

    .nav-links a:hover {
        background: rgba(126, 87, 255, 0.1);
        color: var(--primary-color);
        transform: translateX(4px);
    }

    .nav-links a:hover i {
        transform: scale(1.1);
        color: var(--primary-light);
    }

    .nav-links li a.active,
    .nav-links.active li a.active {
        background: var(--gradient-primary);
        color: white;
        font-weight: 500;
        transform: translateX(4px);
    }

    .nav-links li a.active i,
    .nav-links.active li a.active i {
        color: white;
    }

    .nav-links li a.active::before,
    .nav-links.active li a.active::before {
        content: '';
        position: absolute;
        left: -0.5rem;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 70%;
        background: var(--primary-color);
        border-radius: 0 4px 4px 0;
    }

    .nav-links a::after {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
        transform: translateX(-100%);
        transition: transform 0.6s ease;
    }

    .nav-links a:hover::after {
        transform: translateX(100%);
    }

    .hero-slider {
        height: 300px;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* 小屏手机 */
@media screen and (max-width: 480px) {
    .hero-slider {
        height: 250px;
    }

    .slide-content {
        left: 1rem;
        bottom: 1rem;
    }

    .slide-content h2 {
        font-size: 1.5rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .ar-experience {
        padding: 2rem 1rem;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --light-color: #1a1a1a;
        --dark-color: #f9f9f9;
    }

    body {
        background-color: var(--light-color);
        color: var(--dark-color);
    }

    .header,
    .feature-card {
        background-color: #2d2d2d;
    }

    .nav-links a {
        color: var(--dark-color);
    }

    @media screen and (max-width: 768px) {
        .menu-toggle {
            color: var(--primary-color);
        }

        .nav-links {
            background: rgba(30, 30, 30, 0.95);
            border-bottom: 1px solid var(--primary-color);
        }

        .nav-links a {
            color: var(--text-primary);
        }

        .nav-links a i {
            color: var(--primary-color);
        }

        .nav-links a:hover {
            background: rgba(126, 87, 255, 0.15);
            color: var(--primary-color);
        }

        .nav-links a:hover i {
            color: var(--primary-light);
        }

        .nav-links a.active {
            background: var(--gradient-primary);
            color: white;
        }

        .nav-links a.active i {
            color: white;
        }
    }
} 