/* 响应式样式 */

/* 大屏幕设备（1200px以下） */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .product-categories,
    .news-items,
    .product-grid,
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 中等屏幕设备（992px以下） */
@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
        padding: 20px 0;
    }
    
    .navigation li {
        margin-left: 20px;
        margin-right: 20px;
    }
    
    .about-content,
    .contact-content,
    .product-content,
    .contact-form-content {
        flex-direction: column;
    }
    
    .slide-content h2 {
        font-size: 36px;
    }
    
    .slide-content p {
        font-size: 18px;
    }
    

    
    .form-row {
        flex-direction: column;
    }
}

/* 小屏幕设备（768px以下） */
@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    .banner {
        height: 400px;
    }
    
    .slide-content h2 {
        font-size: 28px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
    
    .products-section h2,
    .about-section h2,
    .news-section h2,
    .contact-section h2,
    .page-header h1,
    .faq-section h2 {
        font-size: 28px;
    }
    
    .product-categories,
    .news-items,
    .product-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .product-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .quantity {
        justify-content: space-between;
    }
}

/* 超小屏幕设备（576px以下） */
@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .banner {
        height: 300px;
    }
    
    .slide-content h2 {
        font-size: 24px;
    }
    
    .slide-content p {
        font-size: 14px;
    }
    
    .products-section h2,
    .about-section h2,
    .news-section h2,
    .contact-section h2,
    .page-header h1,
    .faq-section h2 {
        font-size: 24px;
    }
    
    .navigation ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .navigation li {
        margin: 0;
    }
    
    .search-box {
        width: 100%;
        max-width: 300px;
    }
    
    .main-image img {
        height: 300px;
    }
    
    .thumbnail-images img {
        height: 80px;
    }
    
    .map-container img {
        height: 300px;
    }
    
    .contact-info-item {
        padding: 20px;
    }
    
    .info-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .product-info h1 {
        font-size: 28px;
    }
}

/* 移动端导航菜单 */
@media (max-width: 992px) {
    .navigation {
        width: 100%;
    }
    
    .navigation ul {
        justify-content: center;
    }
}

/* 确保图片在小屏幕上正确显示 */
@media (max-width: 768px) {
    img {
        max-width: 100%;
        height: auto;
    }
    
    .about-image img {
        height: auto;
        max-height: 300px;
    }
    
    .category-item img,
    .news-item img {
        height: 180px;
    }
}

/* 确保表单在小屏幕上正确显示 */
@media (max-width: 576px) {
    .form-group input,
    .form-group textarea {
        font-size: 14px;
        padding: 10px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* 确保页脚在小屏幕上正确显示 */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-section {
        margin-bottom: 30px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .newsletter-form button {
        border-radius: 4px;
    }
}

/* 确保产品详情页在小屏幕上正确显示 */
@media (max-width: 768px) {
    .specs-table table {
        font-size: 14px;
    }
    
    .specs-table th,
    .specs-table td {
        padding: 10px;
    }
}

/* 确保面包屑导航在小屏幕上正确显示 */
@media (max-width: 576px) {
    .breadcrumb ul {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .breadcrumb li {
        margin-right: 5px;
    }
    
    .breadcrumb li:not(:last-child)::after {
        margin-left: 5px;
    }
}

/* 确保筛选按钮在小屏幕上正确显示 */
@media (max-width: 768px) {
    .filter-options {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* 确保分页在小屏幕上正确显示 */
@media (max-width: 576px) {
    .pagination a {
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* 确保宣传联系方式板块在小屏幕上正确显示 */
@media (max-width: 1200px) {
    .promotion-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .promotion-content {
        grid-template-columns: 1fr;
    }
    
    .promotion-section h2 {
        font-size: 28px;
    }
    
    .promotion-item {
        padding: 30px;
    }
    
    .promotion-item h3 {
        font-size: 20px;
    }
}

/* 确保固定联系信息板块在小屏幕上正确显示 */
@media (max-width: 768px) {
    .fixed-contact {
        right: 10px;
        gap: 10px;
    }
    
    .fixed-contact-item {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .contact-tooltip {
        right: 60px;
        padding: 8px 12px;
    }
    
    .fixed-contact-item:hover .contact-tooltip {
        right: 60px;
    }
}

@media (max-width: 576px) {
    .fixed-contact {
        right: 5px;
    }
    
    .fixed-contact-item {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .contact-tooltip {
        right: 55px;
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .fixed-contact-item:hover .contact-tooltip {
        right: 55px;
    }
}

/* 确保FAQ在小屏幕上正确显示 */
@media (max-width: 768px) {
    .faq-question {
        font-size: 16px;
        padding: 15px;
    }
    
    .faq-answer p {
        font-size: 14px;
    }
}

/* 确保客户评价在小屏幕上正确显示 */
@media (max-width: 768px) {
    .testimonials-section h2 {
        font-size: 28px;
    }
    
    .testimonial-item {
        padding: 20px;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* 确保数据统计在小屏幕上正确显示 */
@media (max-width: 768px) {
    .stats-section {
        padding: 60px 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .stat-content h3 {
        font-size: 28px;
    }
    
    .stat-content p {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* 确保联系信息在小屏幕上正确显示 */
@media (max-width: 768px) {
    .info-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .info-item i {
        margin-top: 0;
    }
}

/* 确保产品列表在小屏幕上正确显示 */
@media (max-width: 768px) {
    .product-item {
        max-width: 100%;
    }
    
    .product-image {
        height: 200px;
    }
}