/* 响应式样式 */

@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    /* Header */
    .header-top .container {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .header-main {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .logo h1 {
        font-size: 18px;
    }
    
    .logo img,
    .logo-img-placeholder {
        width: 45px !important;
        height: 45px !important;
        font-size: 18px !important;
        box-shadow: 0 2px 8px rgba(0, 102, 204, 0.2) !important;
    }
    
    /* 导航 */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 15px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        gap: 5px;
        border-radius: 0 0 12px 12px;
    }
    
    .nav-menu.show {
        display: flex;
    }
    
    .nav-menu a {
        padding: 12px 20px !important;
        border-radius: 8px;
    }
    
    .nav-menu a.active {
        background: linear-gradient(135deg, var(--primary-color) 0%, #0055aa 100%) !important;
        color: white !important;
    }
    
    .mobile-menu-btn {
        display: block;
        padding: 10px 15px;
        border-radius: 8px;
        background: rgba(0, 102, 204, 0.08);
        border: none;
        font-size: 20px;
        color: var(--primary-color);
        cursor: pointer;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
        border: none;
        margin-top: 5px;
    }
    
    .dropdown-menu li a {
        padding-left: 35px !important;
        background: #fafafa;
        border-radius: 6px;
        margin: 2px 0;
    }
    
    /* Banner */
    .banner {
        height: 400px;
    }
    
    .banner-content {
        left: 5%;
        right: 5%;
        padding: 30px;
        max-width: none;
    }
    
    .banner-content h2 {
        font-size: 28px;
    }
    
    /* Grid 响应式 */
    .advantages-grid,
    .cases-grid,
    .news-grid,
    .team-grid,
    .culture-grid,
    .certificates-grid,
    .products-sales-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid,
    .service-detail-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .service-detail-grid.reverse {
        direction: ltr;
    }
    
    .about-image {
        order: -1;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 服务流程 */
    .process-steps {
        flex-wrap: wrap;
    }
    
    .process-arrow {
        display: none;
    }
    
    .process-step {
        width: calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
        padding: 0 15px;
    }
    
    /* Section */
    .section {
        padding: 50px 0;
    }
    
    .section-title h2 {
        font-size: 26px;
    }
    
    /* Banner */
    .banner {
        height: 350px;
    }
    
    .banner-content {
        padding: 25px;
    }
    
    .banner-content h2 {
        font-size: 24px;
    }
    
    .banner-content p {
        font-size: 15px;
    }
    
    /* Grid */
    .services-grid,
    .advantages-grid,
    .cases-grid,
    .news-grid,
    .team-grid,
    .culture-grid,
    .certificates-grid,
    .products-sales-grid,
    .partners-logos {
        grid-template-columns: 1fr;
    }
    
    .partners-logos {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* About */
    .about-stats {
        gap: 20px;
        justify-content: center;
    }
    
    /* Timeline */
    .timeline-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .timeline-item::before {
        left: 15px;
    }
    
    .timeline-year {
        width: auto;
        padding-left: 40px;
    }
    
    .timeline-year::after {
        left: 15px;
        right: auto;
    }
    
    /* CTA */
    .cta-content h2 {
        font-size: 24px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-contact li {
        justify-content: center;
    }
    
    /* 页面标题 */
    .page-header h1 {
        font-size: 28px;
    }
    
    /* 联系页面 */
    .contact-social {
        flex-direction: column;
    }
    
    /* 返回顶部 */
    .back-to-top {
        right: 15px;
        bottom: 15px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 100%;
    }
    
    /* Header */
    .logo h1 {
        font-size: 18px;
    }
    
    /* Banner */
    .banner {
        height: 300px;
    }
    
    .banner-content {
        padding: 20px;
    }
    
    .banner-content h2 {
        font-size: 22px;
    }
    
    .banner-content p {
        font-size: 14px;
    }
    
    .banner-controls button {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    /* Grid 1fr */
    .services-grid,
    .cases-grid,
    .news-grid {
        gap: 20px;
    }
    
    /* Partner */
    .partners-logos {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Process */
    .process-step {
        width: 100%;
    }
    
    /* Filter Tabs */
    .filter-tabs {
        gap: 10px;
    }
    
    .filter-tab {
        padding: 8px 18px;
        font-size: 14px;
    }
    
    /* Button */
    .btn {
        padding: 10px 25px;
        font-size: 15px;
    }
}

@media (max-width: 400px) {
    /* Header */
    .logo h1 {
        font-size: 16px;
    }
    
    /* Banner */
    .banner {
        height: 280px;
    }
    
    .banner-content {
        padding: 15px;
    }
    
    .banner-content h2 {
        font-size: 20px;
    }
    
    /* Grid 1fr */
    .service-card,
    .case-card,
    .news-card {
        padding: 20px;
    }
    
    /* About Stats */
    .about-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .stat-number {
        font-size: 28px;
    }
}

/* 打印样式 */
@media print {
    .header,
    .banner,
    .cta,
    .footer,
    .back-to-top {
        display: none;
    }
    
    .section {
        page-break-inside: avoid;
    }
}
