/* 响应式设计 */

/* 平板设备 (最大宽度 1024px) */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-content p {
        font-size: 1.3rem;
    }
    
    .services h2,
    .about-preview .about-text h2,
    .news-preview h2 {
        font-size: 2.2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-image img {
        max-width: 100%;
    }
    
    .news-main .container {
        grid-template-columns: 1fr; /* 在平板上新闻页面变为单列 */
    }
    
    .contact-grid {
        grid-template-columns: 1fr; /* 联系页面在平板上也变为单列 */
        gap: 30px;
    }
    
    .news-item-full {
        grid-template-columns: 1fr; /* 新闻项目在平板上垂直排列 */
    }
    
    .news-image {
        height: 250px;
    }

    /* 新闻详情页面响应式 */
    .news-detail .container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .news-content-detail {
        margin-bottom: 0;
    }

    .news-header {
        padding: 30px 25px 20px;
    }

    .news-header h1 {
        font-size: 1.8rem;
    }

    .news-body {
        padding: 25px 25px 30px;
    }

    .news-image {
        height: 280px;
    }

    #detail-content {
        font-size: 1rem;
    }

    #detail-content h3 {
        font-size: 1.2rem;
    }

    .sidebar-widget {
        padding: 20px;
    }
    /* 轮播图响应式调整 */
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .cta-button {
        padding: 14px 30px;
        font-size: 1.1rem;
    }
    
    .slider-controls button {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}
    
    /* 小型平板和大型手机 (最大宽度 768px) */
    @media screen and (max-width: 768px) {
        .hero-content h1 {
            font-size: 2.2rem;
        }
        
        .hero-content p {
            font-size: 1.1rem;
        }
        
        .cta-button {
            padding: 12px 25px;
            font-size: 1rem;
        }
        
        .slider-controls {
            padding: 0 10px;
        }
        
        .slider-controls button {
            width: 45px;
            height: 45px;
            font-size: 1.3rem;
        }
        
        .slide-indicators {
            bottom: 20px;
        }
        
        .indicator {
            width: 12px;
            height: 12px;
        }
    }
    
    /* 手机设备 (最大宽度 576px) */
    @media screen and (max-width: 576px) {
        .hero {
            height: 80vh;
        }
        
        .hero-content h1 {
            font-size: 1.8rem;
            margin-bottom: 15px;
        }
        
        .hero-content p {
            font-size: 1rem;
            margin-bottom: 30px;
        }
        
        .cta-button {
            padding: 12px 20px;
            font-size: 0.9rem;
        }
        
        .slider-controls {
            padding: 0 5px;
        }
        
        .slider-controls button {
            width: 40px;
            height: 40px;
            font-size: 1.2rem;
        }
        
        .slide-indicators {
            bottom: 15px;
        }
        
        .indicator {
            width: 10px;
            height: 10px;
        }
    }
    
    /* 超小屏幕 (最大宽度 400px) */
    @media screen and (max-width: 400px) {
        .hero-content h1 {
            font-size: 1.6rem;
        }
        
        .hero-content p {
            font-size: 0.9rem;
        }
        
        .cta-button {
            padding: 10px 18px;
            font-size: 0.85rem;
        }
        
        .slider-controls button {
            width: 35px;
            height: 35px;
            font-size: 1rem;
        }
    }

/* 小型平板和大型手机 (最大宽度 768px) */
@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .hero-content h1 {
        font-size: 2.3rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .services h2,
    .about-preview .about-text h2,
    .news-preview h2,
    .research-main .research-intro h2,
    .innovation-highlights h2,
    .patents-publications h2,
    .contact-info h2,
    .contact-form h2,
    .map-section h2 {
        font-size: 1.8rem;
    }
    
    .service-grid,
    .platform-grid,
    .highlight-grid,
    .news-grid {
        grid-template-columns: 1fr; /* 在小屏幕上变为单列 */
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr; /* 团队成员在小屏幕上变为单列 */
    }
    
    .product-grid {
        grid-template-columns: 1fr; /* 产品在小屏幕上变为单列 */
    }
    
    .stats-container {
        grid-template-columns: 1fr; /* 统计数据在小屏幕上变为单列 */
    }
    
    .news-item-full {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }
    
    .news-image {
        height: 200px;
    }
}

/* 手机设备 (最大宽度 576px) */
@media screen and (max-width: 576px) {
    .container {
        padding: 0 10px;
    }
    
    .nav-container {
        padding: 0 10px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .hero {
        height: 80vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .services,
    .about-preview,
    .news-preview {
        padding: 60px 0;
    }
    
    .services h2,
    .about-preview .about-text h2,
    .news-preview h2,
    .research-main .research-intro h2,
    .innovation-highlights h2,
    .patents-publications h2,
    .contact-info h2,
    .contact-form h2,
    .map-section h2 {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }
    
    .service-item,
    .platform-item,
    .highlight-item,
    .news-item,
    .team-member {
        padding: 25px 20px;
    }
    
    .service-icon,
    .platform-icon {
        font-size: 2.5rem;
    }
    
    .service-item h3,
    .service-item p,
    .platform-item h3,
    .platform-item p,
    .highlight-item h3,
    .team-member h4,
    .team-member p {
        font-size: 1rem;
    }
    
    .about-main .about-intro p {
        font-size: 1rem;
    }
    
    .mission, .vision {
        padding: 20px;
    }
    
    .mission h3, .vision h3 {
        font-size: 1.3rem;
    }
    
    .product-info h3 {
        font-size: 1.2rem;
    }
    
    .news-item-full {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: 0;
    }
    
    .news-content {
        padding: 20px 15px;
    }
    
    .news-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .news-item-full h2 {
        font-size: 1.2rem;
    }
    
    .news-item-full p {
        font-size: 0.95rem;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .info-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .contact-info h2,
    .contact-form h2 {
        font-size: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px;
    }
    
    .submit-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr; /* 页脚在手机上变为单列 */
        padding: 0 10px;
    }

    .map-container iframe,
    .amap-container {
        height: 300px;
    }
}

/* 超小屏幕 (最大宽度 400px) */
@media screen and (max-width: 400px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .services h2,
    .about-preview .about-text h2,
    .news-preview h2,
    .research-main .research-intro h2,
    .innovation-highlights h2,
    .patents-publications h2,
    .contact-info h2,
    .contact-form h2,
    .map-section h2 {
        font-size: 1.4rem;
    }
    
    .service-item,
    .platform-item,
    .highlight-item,
    .news-item,
    .team-member,
    .product-item {
        padding: 20px 15px;
    }
    
    .service-item h3,
    .platform-item h3,
    .highlight-item h3,
    .news-item h3,
    .team-member h4,
    .product-info h3 {
        font-size: 1.1rem;
    }
    
    .service-item p,
    .platform-item p,
    .highlight-item p,
    .team-member p:nth-of-type(2),
    .product-info p {
        font-size: 0.9rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
    
    .news-item-full h2 {
        font-size: 1.1rem;
    }
    
    .news-item-full p {
        font-size: 0.9rem;
    }
    
    .page-header {
        height: 100vh;
        min-height: 400px;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .page-header p {
        font-size: 0.9rem;
    }
    
    .about-main .about-intro h2 {
        font-size: 1.6rem;
    }
    
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    .news-image {
        height: 180px;
    }

    /* 新闻详情页面手机响应式 */
    .news-detail {
        padding: 80px 0 60px;
    }

    .news-detail .container {
        gap: 25px;
    }

    .news-header {
        padding: 25px 20px 15px;
    }

    .news-header h1 {
        font-size: 1.5rem;
        line-height: 1.4;
    }

    .news-meta {
        flex-direction: column;
        gap: 8px;
    }

    .news-meta .date,
    .news-meta .category {
        padding-left: 0;
    }

    .news-meta .date::before,
    .news-meta .category::before {
        display: none;
    }

    .news-body {
        padding: 20px 20px 25px;
    }

    .news-image {
        height: 220px;
    }

    #detail-content {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    #detail-content h3 {
        font-size: 1.1rem;
        margin: 25px 0 15px;
    }

    #detail-content p {
        margin-bottom: 15px;
    }

    .sidebar-widget {
        padding: 20px 15px;
    }

    .sidebar-widget h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }

    .related-news a {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

/* 横屏手机 (高度小于宽度且最大高度 500px) */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: 60vh;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}