/* =========================================
   摘星星链 - 响应式样式 (responsive.css)
   ========================================= */

/* --- 小屏桌面 (769px - 1024px) --- */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-card.featured {
        grid-column: span 2;
        grid-row: span 1;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }

    .solution-layout {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- 平板 (481px - 768px) --- */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: var(--space-2xl) var(--space-lg);
        transition: right var(--transition-base);
        border-left: 1px solid var(--border-color);
        z-index: 1001;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: var(--text-body);
        padding: var(--space-sm) 0;
    }

    .nav-actions {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--space-md);
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card.featured {
        grid-column: span 1;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        min-width: 300px;
    }

    .download-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

/* --- 手机 (≤480px) --- */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }

    .hero {
        padding-top: var(--space-2xl);
        padding-bottom: var(--space-xl);
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .solutions-tabs {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
        text-align: center;
    }

    .cta-actions {
        flex-direction: column;
    }

    .cta-actions .btn {
        width: 100%;
    }

    .testimonial-card {
        min-width: 280px;
    }
}

/* --- 大屏 (≥1441px) --- */
@media (min-width: 1441px) {
    .container {
        max-width: 1400px;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
