/* 额外的响应式设计优化 */

/* 大屏幕设备 (1200px以上) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero h1 {
        font-size: 48px;
    }
    
    .hero .subtitle {
        font-size: 20px;
    }
    
    .feature {
        padding: 20px;
    }
    
    .stat-item h2 {
        font-size: 42px;
    }
}

/* 平板设备 (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        max-width: 95%;
    }
    
    .hero {
        padding: 50px 0;
    }
    
    .hero h1 {
        font-size: 38px;
    }
    
    .feature {
        width: calc(50% - 15px);
    }
    
    .stats {
        flex-wrap: wrap;
    }
    
    .stat-item {
        width: 50%;
        margin-bottom: 30px;
    }
    
    .api-feature {
        width: calc(50% - 15px);
    }
    
    .model-logo {
        width: 100px;
        height: 50px;
    }
    
    .contact-content {
        align-items: flex-start;
    }
}

/* 移动设备 (小于768px) */
@media (max-width: 767px) {
    .container {
        padding: 0 20px;
    }
    
    .header .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .hero h1 {
        font-size: 32px;
        margin-bottom: 10px;
    }
    
    .hero .subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .features {
        flex-direction: column;
        gap: 15px;
    }
    
    .feature {
        width: 100%;
    }
    
    .stats {
        flex-wrap: wrap;
    }
    
    .stat-item {
        width: 50%;
        margin-bottom: 20px;
    }
    
    .stat-item h2 {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .section-desc {
        font-size: 14px;
        margin-bottom: 30px;
    }
    
    .api-features {
        flex-direction: column;
    }
    
    .api-feature {
        width: 100%;
    }
    
    .model-row {
        justify-content: center;
        gap: 10px;
    }
    
    .model-logo {
        width: 80px;
        height: 40px;
    }
    
    .comparison {
        flex-direction: column;
    }
    
    .comparison-left,
    .comparison-right {
        width: 100%;
    }
    
    .vs {
        margin: 20px 0;
    }
    
    .team-member {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .member-avatar {
        margin: 0 auto 15px;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .contact-left,
    .contact-right {
        width: 100%;
        text-align: center;
    }
    
    .contact-left {
        margin-bottom: 30px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* 小型移动设备 (小于480px) */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .hero .subtitle {
        font-size: 14px;
    }
    
    .stat-item {
        width: 100%;
    }
    
    .section-title::before,
    .section-title::after {
        display: none;
    }
    
    .model-logo {
        width: 70px;
        height: 35px;
    }
    
    .comparison-item {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .contact-left h2 {
        font-size: 26px;
    }
}

/* 修复特定元素的响应式问题 */
@media (max-width: 1024px) {
    .nav ul {
        gap: 15px;
    }
    
    .nav a {
        font-size: 13px;
    }
}

/* 确保图片在小屏幕上正确显示 */
@media (max-width: 767px) {
    .feature-icon {
        width: 40px;
        height: 40px;
    }
    
    .feature-icon i,
    .feature-icon img {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }
    
    .api-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 10px;
    }
    
    .api-icon i {
        font-size: 24px;
    }
}

/* 优化按钮在小屏幕上的显示 */
@media (max-width: 480px) {
    .btn {
        padding: 8px 20px;
        font-size: 14px;
    }
}

/* 优化导航栏在不同设备上的显示 */
@media (max-width: 1024px) and (min-width: 769px) {
    .header-right {
        margin-left: 15px;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .logo-img {
        height: 25px;
    }
}
