/* 响应式样式调整 */

/* 大型桌面 */
@media (max-width: 1200px) {
    .service-cards {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .service-card {
        flex: 0 0 calc(50% - 30px);
        margin-bottom: 30px;
    }
    
    .tech-features {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .service-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .container {
        max-width: 960px;
    }
}

/* 平板电脑 */
@media (max-width: 992px) {
    .empowering-content {
        flex-direction: column;
    }
    
    .empowering-image, .empowering-text {
        width: 100%;
    }
    
    .empowering-text {
        padding-top: 30px;
    }
    
    .stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stat-item {
        flex: 0 0 calc(50% - 20px);
        margin: 10px;
    }
    
    .feature {
        width: calc(50% - 20px);
        margin: 10px;
    }
    
    .service-grid {
        gap: 15px;
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .service-item {
        height: 180px;
    }
    
    .hero-content {
        width: 90%;
    }
    
    h2 {
        font-size: 1.8rem !important;
    }
    
    .stories-slider {
        padding: 0;
    }
    
    .story-card {
        min-width: 280px;
    }
    
    .container {
        max-width: 720px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    p {
        font-size: 0.95rem;
    }
    
    /* About Us 响应式调整 */
    .about-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .about-image, .about-text {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .about-image img {
        max-height: 400px;
        width: 100%;
        object-fit: cover;
        object-position: center;
    }
}

/* 移动设备 */
@media (max-width: 768px) {
    .container {
        width: 95%;
        max-width: 540px;
    }
    
    header .container {
        justify-content: space-between;
    }
    
    .menu-toggle {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 101;
    }
    
    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95);
        padding: 80px 0 20px;
        transform: translateX(-100%);
        opacity: 0;
        transition: all 0.4s ease;
        z-index: 100;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    nav.active {
        transform: translateX(0);
        opacity: 1;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    nav ul li {
        margin: 15px 0;
        text-align: center;
    }
    
    nav ul li a {
        font-size: 1.1rem;
        padding: 10px 0;
        display: inline-block;
        width: 100%;
    }
    
    .hero {
        height: 90vh;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero h2 {
        font-size: 1.4rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    .tech-content h2, .empowering-text h2, .service-header h2, 
    .seamless-header h2, .top-services h2, .success-stories h2, 
    .consultation h2 {
        font-size: 1.8rem;
    }
    
    .service-card {
        flex: 0 0 100%;
        max-width: 350px;
        margin: 15px auto;
    }
    
    .feature {
        width: 100%;
        margin: 10px 0;
    }
    
    .service-item {
        width: calc(50% - 7.5px);
        height: 160px;
    }
    
    .service-item h3 {
        font-size: 0.95rem;
        padding: 12px;
    }
    
    .stories-slider {
        flex-wrap: nowrap;
        overflow-x: hidden;
    }
    
    .story-card {
        min-width: 85%;
        margin: 0 auto;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-group {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-about, .footer-services, .footer-links, .footer-contact {
        width: 100%;
        margin-bottom: 30px;
        text-align: center;
    }
    
    footer h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .language-switcher {
        margin-right: 0;
    }
    
    .cta-button {
        display: none;
    }
    
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* About Us 响应式调整 */
    .about-us {
        padding: 70px 0;
    }
    
    .about-image img {
        max-height: 350px;
        border-radius: 10px;
    }

    /* 修复联系我们按钮 */
    .contact-btn {
        position: absolute;
        right: 60px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .contact-btn a.btn-primary {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

/* 小型移动设备 */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero h2 {
        font-size: 1.2rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .tech-content h2, .empowering-text h2, .service-header h2, 
    .seamless-header h2, .top-services h2, .success-stories h2, 
    .consultation h2 {
        font-size: 1.5rem;
    }
    
    .stat-item {
        flex: 0 0 100%;
        margin: 7px 0;
    }
    
    .service-item {
        width: 100%;
        margin-bottom: 15px;
        height: 180px;
    }
    
    .slider-controls button {
        width: 40px;
        height: 40px;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    /* 隐藏部分元素以减少视觉混乱 */
    .language-switcher i.fa-globe {
        display: none;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 20px 15px;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
    }
    
    .card-icon img {
        width: 30px;
        height: 30px;
    }

    /* 移动端更小屏幕的联系我们按钮 */
    .contact-btn {
        right: 50px;
    }
    
    .contact-btn a.btn-primary {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
}

/* 超小屏幕 */
@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    /* About Us 响应式调整 */
    .about-us {
        padding: 50px 0;
    }
    
    .about-image img {
        max-height: 280px;
        border-radius: 8px;
    }
} 