/* ========== 响应式适配（完整优化版） ========== */

/* 大屏幕（992px-1200px） */
@media (max-width: 1200px) {
    .container {
        max-width: 970px;
    }
    
    .slide img {
        height: 400px;
    }
    
    .slide-content h2 {
        font-size: 40px;
    }
    
    .slide-content p {
        font-size: 20px;
    }
    
    .product-categories {
        gap: 15px;
    }
    
    .product-showcase {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 平板端（768px-992px） */
@media (max-width: 992px) {
    .container {
        max-width: 750px;
    }
    
    .header-top .container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .header-contact {
        flex-direction: column;
        gap: 10px;
    }
    
    .header-contact .address {
        display: none;
    }
    
    /* 隐藏PC导航，显示移动菜单按钮 */
    .main-nav .container {
        justify-content: center;
        height: 50px;
    }
    
    .nav-list {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
        right: 15px;
        left: auto;
    }
    
    .slide img {
        height: 300px;
    }
    
    .slide-content h2 {
        font-size: 32px;
    }
    
    .slide-content p {
        font-size: 18px;
    }
    
    .search-section .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .hot-keys {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .hot-keys span {
        display: none;
    }
    
    .hot-keys a {
        margin: 0;
        padding: 4px 8px;
        background: #eee;
        border-radius: 4px;
    }
    
    .product-categories {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .product-showcase {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-image {
        text-align: center;
    }
    
    .about-image img {
        max-height: 300px;
        width: 100%;
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .cases-slider {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .copyright {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
}

/* 移动端（480px-768px） */
@media (max-width: 768px) {
    .section-header h2 {
        font-size: 28px;
    }
    
    .section-header p {
        font-size: 14px;
    }
    
    .slide img {
        height: 200px;
    }
    
    .slide-content h2 {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .slide-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    .search-form {
        width: 100%;
        max-width: 300px;
    }
    
    .search-form input {
        flex: 1;
        width: auto;
    }
    
    .product-categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .category-item {
        padding: 20px 15px;
    }
    
    .category-icon {
        width: 40px;
        height: 40px;
    }
    
    .category-item h3 {
        font-size: 14px;
    }
    
    /* 产品卡片：手机屏幕下固定宽度并居中 */
    .product-showcase {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        justify-content: center;
    }
    
    .product-card {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .product-image img {
        height: 150px;
        width: 100%;
        object-fit: cover;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-info h3 {
        font-size: 16px;
    }
    
    .about-text h2 {
        font-size: 28px;
    }
    
    .about-desc p {
        font-size: 14px;
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .advantage-item {
        padding: 25px 15px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-image img {
        height: 180px;
    }
    
    .cases-slider {
        grid-template-columns: 1fr;
    }
    
    .cta-section h2 {
        font-size: 24px;
    }
    
    .cta-section p {
        font-size: 16px;
    }
    
    .cta-phone strong {
        font-size: 20px;
    }
    
    /* 移动端页脚：2列网格布局，占用更少空间 */
    .footer-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        text-align: center;
    }
    
    .footer-col {
        width: 100%;
        text-align: center;
    }
    
    .footer-about {
        grid-column: 1 / -1;
        text-align: center;
        padding-bottom: 20px;
        border-bottom: 1px solid #333;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .contact-info li {
        justify-content: center;
        text-align: center;
    }
}

/* 小屏手机（< 480px） */
@media (max-width: 480px) {
    .header-top {
        padding: 10px 0;
    }
    
    .logo img {
        max-width: 150px;
        height: 40px;
    }
	.logotext {
		margin-left: 0px;
		font-size: 26px;
	}
    
    .header-contact .hotline strong {
        font-size: 20px;
    }
    
    .slide img {
        height: 150px;
    }
    
    .slide-content h2 {
        font-size: 20px;
    }
    
    .slide-content p {
        font-size: 12px;
    }
    
    .products-section,
    .about-section,
    .advantages-section,
    .news-section,
    .cases-section {
        padding: 50px 0;
    }
    
    .product-categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    /* 小屏手机：产品卡片单列显示 */
/*     .product-showcase {
        grid-template-columns: 1fr;
    } */
    
    .product-card {
        max-width: 300px;
        width: 100%;
        margin: 0 auto;
    }
    
    .product-image img {
        height: 180px;
        width: 100%;
        object-fit: cover;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .advantage-item {
        padding: 20px 15px;
    }
    
    /* 小屏手机：页脚保持2列但更紧凑 */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .footer-col h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .footer-links li {
        margin-bottom: 6px;
    }
    
    .footer-links li a {
        font-size: 13px;
    }
    
    .footer-about {
        padding-bottom: 15px;
    }
    
    .contact-info li {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .cta-section {
        padding: 50px 15px;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 16px;
        bottom: 20px;
        right: 20px;
    }
}

/* 打印样式 */
@media print {
    .header,
    .back-to-top,
    .mobile-menu-btn,
    .mobile-nav,
    .mobile-nav-overlay,
    .search-section {
        display: none !important;
    }
    
    .slide-content {
        position: relative;
        color: #000;
        background: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}