/* ================================
   響應式設計
   ================================ */

/* Tablet & Below */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .detail-wrapper {
        grid-template-columns: 1fr;
    }
    
    /* Office Section */
    .office-section {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px;
    }
    
    .office-info {
        padding-right: 0;
        margin-bottom: 20px;
    }
}

/* Mobile & Below */
@media (max-width: 768px) {
    /* Header */
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 90px;
        left: -100%;
        width: 100%;
        background: #fff;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        transition: 0.3s;
        z-index: 999;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }
    
    .main-nav li {
        border-bottom: 1px solid #eee;
    }
    
    .main-nav a {
        display: block;
        padding: 15px 10px;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: #f9f9f9;
        display: none;
        visibility: hidden;
        opacity: 0;
        transition: none;
    }
    
    .has-dropdown.active .dropdown-menu {
        display: block;
        visibility: visible;
        opacity: 1;
    }
    
    /* Hero Slider */
    .slider-container {
        height: 350px;
    }
    
    .slide-title {
        font-size: 32px;
    }
    
    .slide-description {
        font-size: 16px;
    }
    
    /* Sections */
    .welcome-section,
    .product-categories,
    .featured-products,
    .contact-cta {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .page-header h1 {
        font-size: 32px;
    }
    
    /* Grids */
    .categories-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    /* Product Detail */
    .product-info h1 {
        font-size: 26px;
    }
    
    /* Tabs */
    .tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    
    .tab-btn {
        white-space: nowrap;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    /* Filter Buttons */
    .filter-buttons {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    
    .filter-btn {
        white-space: nowrap;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Buttons */
    .btn-large {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    /* Slider Controls */
    .slider-prev,
    .slider-next {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .logo img {
        height: 45px;
    }
    
    .slider-container {
        height: 250px;
    }
    
    .slide-title {
        font-size: 24px;
    }
    
    .slide-description {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    /* Contact Page Mobile */
    .contact-page {
        padding: 40px 0 !important;
    }
    
    .contact-content {
        padding: 40px 0;
    }
    
    .contact-info-section {
        margin-bottom: 80px;
    }
    
    .contact-info-section h2,
    .contact-form-section h2 {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .office-section {
        padding: 30px 20px;
        margin-bottom: 60px;
    }
    
    .office-section h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .map-container iframe {
        height: 250px;
    }
    
    .contact-form-section {
        padding: 40px 20px;
        margin-top: 30px;
    }
    
    .page-header h1 {
        font-size: 26px;
    }
    
    .category-content h3,
    .product-content h3 {
        font-size: 18px;
    }
    
    .cta-content h2 {
        font-size: 26px;
    }
    
    .cta-content p {
        font-size: 16px;
    }
}
