/* 118图库 - 响应式样式 */

/* 大屏幕设备 (大于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-content p {
        font-size: 1.1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

/* 平板设备 (768px - 991px) */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-xl);
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .community-showcase {
        flex-direction: column;
    }
    
    .community-image {
        margin-bottom: var(--spacing-lg);
    }
    
    .community-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    .footer-links {
        width: 100%;
    }
    
    /* APP下载区域响应式 */
    .download-content {
        flex-direction: column;
        text-align: center;
    }
    
    .app-preview {
        margin-bottom: var(--spacing-lg);
    }
    
    .download-buttons {
        justify-content: center;
    }
}

/* 手机设备 (576px - 767px) */
@media (max-width: 767px) {
    html {
        font-size: 15px;
    }
    
    .container {
        max-width: 540px;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--spacing-xl);
        padding: var(--spacing-xl);
        transition: right var(--transition-normal);
        box-shadow: var(--shadow-lg);
        z-index: 99;
    }
    
    .nav-list.active {
        right: 0;
    }
    
    .nav-list a {
        font-size: 1.2rem;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .data-tabs {
        border-radius: var(--border-radius-md);
    }
    
    .tab-buttons {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1 0 50%;
        text-align: center;
        font-size: 0.9rem;
        padding: var(--spacing-sm);
    }
    
    .trends-showcase {
        grid-template-columns: 1fr;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .community-features {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    /* APP下载区域响应式 */
    .app-features {
        grid-template-columns: 1fr;
    }
    
    .download-buttons {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .download-button {
        width: 100%;
        justify-content: center;
    }
}

/* 小手机设备 (小于576px) */
@media (max-width: 575px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .hero {
        padding-top: calc(var(--spacing-xxl) * 1.5);
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .ball-container {
        gap: var(--spacing-xs);
    }
    
    .ball {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    .footer-links-column {
        width: 100%;
    }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --neutral-light: #2f3640;
        --neutral-medium: #353b48;
        --neutral-dark: #f5f6fa;
    }
    
    body {
        background-color: #1e272e;
        color: #f5f6fa;
    }
    
    .header {
        background-color: rgba(30, 39, 46, 0.95);
    }
    
    .feature-card,
    .resource-card,
    .data-tabs,
    .tab-btn.active,
    .news-card,
    .trend-item {
        background-color: #2f3640;
    }
    
    .tab-buttons {
        background-color: #353b48;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: var(--primary-light);
    }
    
    section:nth-child(even) {
        background-color: #1e272e;
    }
    
    section:nth-child(odd) {
        background-color: #2f3640;
    }
    
    .hero {
        background: linear-gradient(135deg, rgba(249, 202, 36, 0.2) 0%, #1e272e 100%);
    }
}

/* 打印样式优化 */
@media print {
    .header,
    .footer,
    .btn,
    .hero-buttons {
        display: none;
    }
    
    body {
        color: black;
        background: white;
    }
    
    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .container {
        max-width: 100%;
    }
}

/* 可访问性增强 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
} 