/* ===================================
   响应式设计 - 移动端适配
   =================================== */

/* 平板和小屏幕笔记本 (< 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .language-switcher {
        margin-left: 15px;
    }
}

/* 平板 (< 768px) */
@media (max-width: 768px) {
    /* 导航栏 */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        padding: 20px;
        transition: left 0.3s ease;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 15px 0;
        border-bottom: 1px solid var(--bg-light);
    }
    
    /* 语言切换器移动端样式 */
    .language-switcher {
        position: fixed;
        top: 15px;
        right: 80px;
        margin-left: 0;
        z-index: 1001;
    }
    
    .lang-btn {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
    
    .lang-text {
        display: none; /* 移动端隐藏文字，只显示图标 */
    }
    
    .lang-icon {
        font-size: 1.2rem;
    }
    
    /* 下载按钮 */
    .download-btn {
        width: 40px;
        height: auto;
    }
    
    /* Hero区域 */
    .hero {
        padding-top: 100px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-features {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .feature-tag {
        font-size: 0.85rem;
        padding: 8px 15px;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        text-align: center;
    }
    
    /* 游戏卡片 */
    .games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* 工具卡片 */
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    /* 学习区域 */
    .learning-content {
        flex-direction: column;
    }
    
    .learning-text,
    .learning-visual {
        width: 100%;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
}

/* 手机 (< 480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .feature-tag {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
    
    .language-switcher {
        right: 70px;
        gap: 2px;
    }
    
    .lang-btn {
        padding: 3px 6px;
    }
    
    .lang-icon {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .game-card h3 {
        font-size: 1.3rem;
    }
}

/* 导航栏切换按钮显示控制 */
@media (min-width: 769px) {
    .nav-toggle {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        z-index: 1001;
    }
    
    .nav-toggle span {
        width: 25px;
        height: 3px;
        background: var(--text-dark);
        transition: var(--transition);
        border-radius: 2px;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

