/**
 * CloudCDN响应式样式
 * 针对不同屏幕尺寸的样式调整
 */

/* 大型设备（桌面，1200px及以上） */
@media (max-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .footer-top {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

/* 中型设备（平板电脑，992px及以上） */
@media (max-width: 992px) {
    .container {
        max-width: 960px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .solution-content {
        flex-direction: column;
    }
    
    .solution-text,
    .solution-image {
        max-width: 100%;
    }
    
    .pricing-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .pricing-card {
        width: 100%;
        max-width: 400px;
        margin-bottom: 30px;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

/* 小型设备（横向手机，768px及以上） */
@media (max-width: 768px) {
    .container {
        max-width: 720px;
        padding: 0 20px;
    }
    
    .header .logo span {
        display: none;
    }
    
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: var(--shadow-md);
        padding: 20px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 100;
    }
    
    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-item {
        margin: 10px 0;
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 10px 0;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .hero {
        padding: 100px 0;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .tabs-nav {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        margin-bottom: 10px;
    }
    
    .cases-showcase {
        flex-direction: column;
    }
    
    .case-card {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .copyright {
        margin-bottom: 15px;
    }
}

/* 超小设备（竖向手机，576px及以上） */
@media (max-width: 576px) {
    .container {
        max-width: 540px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin: 10px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .pricing-toggle-container {
        flex-direction: column;
        align-items: center;
    }
    
    .toggle-label {
        margin: 10px 0;
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 25px;
    }
}