/* 响应式样式设置 */

/* 大屏幕（桌面电脑，1200px 及以上） */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* 中等屏幕（笔记本电脑，992px 至 1199px） */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .hero-image {
        width: 40%;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
}

/* 小屏幕（平板电脑，768px 至 991px） */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    .hero-section {
        padding: 130px 0 80px;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
        margin-bottom: var(--spacing-xl);
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 70%;
        margin: 0 auto;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .download-content {
        flex-direction: column;
    }
    
    .download-info {
        padding-right: 0;
        margin-bottom: var(--spacing-lg);
        text-align: center;
    }
    
    .download-benefits li {
        justify-content: center;
    }
    
    .download-buttons {
        justify-content: center;
    }
    
    .download-steps {
        flex-wrap: wrap;
    }
    
    .step {
        flex: 0 0 50%;
        margin-bottom: var(--spacing-md);
    }
    
    .testimonials-slider {
        flex-direction: column;
    }
    
    .testimonial-item {
        margin-bottom: var(--spacing-md);
    }
    
    .footer-top {
        flex-direction: column;
    }
    
    .footer-logo {
        text-align: center;
        margin-bottom: var(--spacing-lg);
    }
    
    .footer-logo p {
        max-width: 100%;
    }
    
    .footer-links {
        justify-content: space-around;
    }
}

/* 超小屏幕（手机，767px 及以下） */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
    }
    
    #header {
        padding: var(--spacing-sm) 0;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background-color: var(--light-color);
        transition: var(--transition);
        box-shadow: var(--shadow);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        padding: var(--spacing-md);
    }
    
    .nav-menu ul li {
        margin: 0 0 var(--spacing-sm) 0;
    }
    
    .nav-menu ul li a {
        display: block;
        padding: var(--spacing-sm);
        font-size: 1.1rem;
    }
    
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .hero-image {
        width: 90%;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: var(--spacing-md);
    }
    
    .download-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .step {
        flex: 0 0 100%;
    }
    
    .testimonial-stats {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .footer-links {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
}

/* 手机横屏 */
@media (max-height: 500px) and (orientation: landscape) {
    .nav-menu {
        overflow-y: auto;
    }
    
    .hero-section {
        padding: 80px 0 40px;
    }
}

/* 触摸屏特定样式 */
@media (hover: none) {
    .nav-menu ul li a:hover::after {
        width: 0;
    }
    
    .nav-menu ul li a.active::after {
        width: 100%;
    }
}

/* 动画效果在移动设备上禁用 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}