/* 响应式样式 */

/* 平板设备 */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--space-md);
    }

    .header .container {
        height: 64px;
    }

    .nav-list {
        gap: var(--space-lg);
    }

    .nav-list a {
        font-size: 0.875rem;
    }

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

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

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

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

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

    .news-card.featured {
        grid-row: span 1;
        flex-direction: row;
    }

    .solution-panel {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .solution-visual {
        order: -1;
    }

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

/* 手机设备 */
@media (max-width: 768px) {
    .header {
        position: relative;
    }

    .header .container {
        height: 60px;
    }

    .nav {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: white;
        padding: var(--space-lg);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        gap: var(--space-md);
    }

    .nav-list a {
        font-size: 1rem;
        padding: var(--space-md) 0;
        display: block;
    }

    .header-actions {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding: var(--space-2xl) 0;
    }

    .hero-content {
        padding: var(--space-xl) 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-stats {
        padding: var(--space-lg) 0;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.875rem;
    }

    section {
        padding: var(--space-2xl) 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-header {
        margin-bottom: var(--space-2xl);
    }

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

    .feature-card {
        padding: var(--space-lg);
    }

    .solutions-tabs {
        flex-wrap: wrap;
        gap: var(--space-sm);
    }

    .tab-btn {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.875rem;
    }

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

    .advantage-item {
        padding: var(--space-lg);
    }

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

    .case-image {
        height: 160px;
    }

    .news-card {
        flex-direction: column;
    }

    .news-date {
        flex-direction: row;
        gap: var(--space-sm);
        width: 100%;
        justify-content: center;
    }

    .cta-content h2 {
        font-size: 1.75rem;
    }

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

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

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

    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: var(--space-md);
        right: var(--space-md);
    }
}

/* 小屏手机 */
@media (max-width: 480px) {
    .logo-text {
        font-size: 1rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

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

    .stat-number {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .feature-icon {
        width: 48px;
        height: 48px;
    }

    .feature-icon svg {
        width: 24px;
        height: 24px;
    }

    .phone-mockup {
        max-width: 240px;
    }

    .phone-screen {
        min-height: 400px;
    }

    .btn-large {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }

    .case-stats {
        flex-direction: column;
        gap: var(--space-sm);
    }
}

/* 打印样式 */
@media print {
    .header,
    .hero-stats,
    .back-to-top,
    .footer-social {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: var(--space-xl) 0;
    }

    .hero-bg {
        background: white;
    }

    .hero-title,
    .hero-subtitle,
    .hero-desc {
        color: var(--text-primary);
    }

    section {
        padding: var(--space-xl) 0;
    }
}

/* 高分辨率屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    /* 可根据需要添加深色模式样式 */
}
