/* 响应式样式 */

/* 平板 */
@media (max-width: 1024px) {
    .container {
        max-width: 960px;
    }
    
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .product-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 手机横屏 */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
    }
    
    .top-bar .welcome {
        display: none;
    }
    
    .top-bar .contact-top span {
        margin-left: 10px;
        font-size: 11px;
    }
    
    .header .container {
        height: 60px;
    }
    
    .logo img {
        max-height: 45px;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    
    .nav.active {
        display: block;
    }
    
    .nav ul {
        flex-direction: column;
        padding: 10px 0;
    }
    
    .nav li {
        margin: 0;
    }
    
    .nav li a {
        padding: 12px 20px;
        border-bottom: 1px solid #f5f5f5;
    }
    
    .mobile-menu {
        display: flex;
    }
    
    .banner-item img {
        height: 300px;
    }
    
    .banner-text h2 {
        font-size: 28px;
    }
    
    .banner-text p {
        font-size: 14px;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-info h3 {
        font-size: 14px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-image {
        width: 100%;
        height: 200px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .product-detail {
        flex-direction: column;
    }
    
    .product-list {
        grid-template-columns: 1fr;
    }
    
    .news-list-item {
        flex-direction: column;
    }
    
    .news-list-image {
        width: 100%;
        height: 200px;
    }
}

/* 小手机 */
@media (max-width: 480px) {
    .banner-item img {
        height: 200px;
    }
    
    .banner-text h2 {
        font-size: 22px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .about-text h3 {
        font-size: 22px;
    }
    
    .section-title h2 {
        font-size: 20px;
    }
    
    .page-title {
        font-size: 22px;
    }
}
