/* Mobile Navigation */
.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.mobile-menu-button:hover {
    color: var(--primary-color);
    background-color: rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .mobile-menu-button {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        align-items: center;
        backdrop-filter: blur(8px);
        z-index: 1000;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    .nav-links a {
        padding: 1rem 0;
        width: 100%;
        text-align: center;
        font-size: 1.1rem;
    }

    .nav-links a::after {
        display: none;
    }
    
    .language-selector {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .language-selector a {
        padding: 0.5rem 1rem;
        margin: 0 0.5rem;
        border-radius: 4px;
        background-color: rgba(0, 0, 0, 0.05);
        font-weight: bold;
    }
    
    .language-selector a.active {
        background-color: var(--primary-color);
        color: white;
    }

    /* Adjust hero section for mobile */
    .hero {
        padding: 120px 0 60px;
    }

    .hero h1 {
        font-size: 2.2rem;
        padding: 0 1rem;
    }

    .hero p {
        font-size: 1.1rem;
        padding: 0 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1.5rem;
    }

    .btn {
        width: 100%;
        padding: 1rem;
    }

    /* Adjust product grid for mobile */
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .product-card {
        margin: 0;
        padding: 2rem;
    }

    /* Adjust features section for mobile */
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .feature-item {
        padding: 1.5rem;
    }

    /* Adjust section padding for mobile */
    section {
        padding: 4rem 0;
    }

    section h2 {
        font-size: 2rem;
        padding: 0 1rem;
        margin-bottom: 2rem;
    }

    /* Adjust footer for mobile */
    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1.5rem;
    }

    .footer-section {
        text-align: center;
    }

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

    .footer-bottom {
        padding: 1.5rem 1rem 0;
    }
}

/* 导航栏样式 */
.header {
    transition: all 0.3s ease;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Mobile Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile-specific animations */
.product-card, .feature-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.product-card.visible, .feature-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile touch feedback */
@media (hover: none) {
    .product-card:active,
    .feature-item:active,
    .btn:active {
        transform: scale(0.98);
    }
}

/* Mobile landscape optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 100px 0 60px;
    }

    .nav-links {
        max-height: 80vh;
        overflow-y: auto;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}