/* Responsive Styles */

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Tablet */
@media screen and (max-width: 1023px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .applications-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Mobile */
@media screen and (max-width: 767px) {
    /* Header Mobile */
    .mobile-nav-toggle {
        display: flex;
    }

    .header-actions {
        gap: var(--spacing-sm);
    }

    .search-btn,
    .phone-link {
        width: 36px;
        height: 36px;
    }

    .lang-switch {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    /* Mobile Navigation */
    .main-nav .container {
        flex-direction: column;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: var(--spacing-lg) 0;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
        z-index: 1000;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu > li {
        width: 100%;
        border-bottom: 1px solid var(--gray-light);
    }

    .nav-menu > li > a {
        padding: 15px 20px;
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
        background: var(--gray-light);
    }

    .has-dropdown.active .dropdown {
        display: block;
    }

    .has-dropdown > a::after {
        content: '+';
        font-size: 16px;
    }

    .has-dropdown.active > a::after {
        content: '-';
    }

    /* Banner */
    .banner-section {
        height: 300px;
    }

    .banner-prev,
    .banner-next {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    /* Section Title */
    .section-title .title-en {
        font-size: 1.2rem;
    }

    .section-title .title-cn {
        font-size: 1.4rem;
    }

    /* Products */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }

    /* Applications */
    .applications-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }

    .application-icon {
        height: 120px;
    }

    /* Stats */
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }

    .stat-item {
        padding: var(--spacing-md);
    }

    .stat-number {
        font-size: 1.8rem;
    }

    /* News */
    .news-tabs {
        gap: var(--spacing-sm);
    }

    .tab-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .news-item {
        flex-direction: column;
    }

    .news-image {
        width: 100%;
        height: 150px;
    }

    /* Sidebar */
    .sidebar {
        right: 10px;
    }

    .sidebar-popup {
        right: calc(100% + 5px);
        width: 160px;
    }

    .qr-code {
        width: 100px;
        height: 100px;
    }

    /* Footer */
    .footer-menu {
        gap: var(--spacing-sm);
    }

    .footer-menu li a {
        font-size: 0.85rem;
    }
}

/* Small Mobile */
@media screen and (max-width: 480px) {
    .products-grid,
    .applications-grid {
        grid-template-columns: 1fr;
    }

    .news-tabs {
        flex-direction: column;
        gap: 8px;
    }

    .tab-btn {
        width: 100%;
    }
}
