/* ========= 响应式样式 ========= */
@media (max-width: 1200px) {
    .ecosystem-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1100px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .platform-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 900px) {
    .ecosystem-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    .container {
        overflow-x: hidden;
    }
    
    /* 移动端菜单 */
    .nav-container {
        position: relative;
    }
    .nav-links {
        position: fixed;
        top: -400px;
        right: 20px;
        width: 85%;
        max-width: 300px;
        height: auto;
        max-height: 80vh;
        background: white;
        flex-direction: column;
        align-items: stretch;
        padding: 20px 20px;
        gap: 16px;
        border-radius: 24px;
        box-shadow: 0 20px 35px -10px rgba(0,0,0,0.15);
        transition: top 0.3s ease;
        z-index: 199;
        display: flex;
        border: 1px solid #E8E2FF;
        pointer-events: none;
        overflow-y: auto;
    }
    .nav-links.show {
        top: 70px;
        pointer-events: auto;
    }
    .nav-links > a, .dropdown > a {
        width: 100%;
        justify-content: flex-start;
        padding: 10px 0;
        font-size: 1rem;
    }
    .dropdown {
        width: 100%;
    }
    .dropdown > a {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }
    .dropdown > a i.fa-chevron-down {
        margin-left: auto;
        top: 0;
    }
    .dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0;
        margin: 8px 0 0 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        white-space: normal;
        overflow-y: visible;
        max-height: none;
    }
    .dropdown-menu.show {
        display: block;
    }
    .dropdown-menu a {
        white-space: normal;
        word-break: break-word;
        font-size: 0.85rem;
        padding: 10px 12px;
        margin: 0;
        border-radius: 12px;
        line-height: 1.4;
    }
    .dropdown.active > a,
    .dropdown.active > a i,
    .dropdown.active > a i.fa-chevron-down,
    .dropdown.active .dropdown-menu a {
        color: #3B22E9;
    }
    .menu-toggle {
        display: block;
        font-size: 1.6rem;
        cursor: pointer;
        color: #3B22E9;
        background: none;
        border: none;
        z-index: 200;
        position: relative;
    }
    
    /* 移动端响应式调整 */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .platform-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .ecosystem-grid {
        grid-template-columns: 1fr;
    }
    .feature-card,
    .platform-card {
        padding: 32px 24px;
    }
    .section {
        padding: 60px 0;
    }
    .section-header {
        margin-bottom: 40px;
    }
    .section-header h2 {
        font-size: 2.5rem;
    }
    .section-header p {
        font-size: 0.95rem;
    }
    .btn-primary {
        font-weight: 700;
    }
    .footer-grid {
        flex-direction: column;
        gap: 32px;
    }
    .logo {
        font-size: 1.2rem;
    }
    .logo i {
        font-size: 1.4rem;
    }
    .logo img {
        height: 32px;
    }
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        z-index: 9999;
    }
    .about-brand .about-desc {
        font-size: 0.9rem;
    }
}