/* Enword 官方网站 - 响应式样式文件 */

/* ========== 平板端 (768px - 1024px) ========== */
@media (max-width: 1024px) {
    .container {
        max-width: 960px;
        padding: 0 20px;
    }
    
    /* Hero 区域 */
    .hero-content {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 40px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    /* 功能区域 */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    /* 屏幕截图 */
    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    /* 下载区域 */
    .download-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    /* 词库区域 */
    .libraries-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* 页脚 */
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-section:first-child {
        grid-column: 1 / -1;
    }
}

/* ========== 移动端 (< 768px) ========== */
@media (max-width: 768px) {
    /* 导航 */
    .navbar {
        height: 64px;
    }
    
    .nav-menu {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--surface);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid var(--divider);
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-actions {
        display: none;
    }
    
    /* Hero */
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    .hero-text h1 {
        font-size: 32px;
    }
    
    .hero-text p {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .hero-phone {
        width: 220px;
        height: 440px;
    }
    
    /* 通用区域 */
    .section-header h2 {
        font-size: 28px;
    }
    
    .section-header p {
        font-size: 16px;
    }
    
    /* 功能卡片 */
    .features {
        padding: 60px 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card {
        padding: 32px 24px;
    }
    
    .feature-icon {
        width: 64px;
        height: 64px;
        font-size: 28px;
    }
    
    .feature-card h3 {
        font-size: 18px;
    }
    
    /* 屏幕截图 */
    .screenshots {
        padding: 60px 0;
    }
    
    .screenshots-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    /* 下载区域 */
    .download-section {
        padding: 60px 0;
    }
    
    .download-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .download-card {
        padding: 24px 20px;
    }
    
    /* 词库区域 */
    .libraries-section {
        padding: 60px 0;
    }
    
    .library-card {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }
    
    .library-meta {
        justify-content: center;
    }
    
    /* CTA */
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-content h2 {
        font-size: 28px;
    }
    
    .cta-content p {
        font-size: 16px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    /* 页脚 */
    .site-footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    /* 页面头部 */
    .page-header {
        padding: 100px 0 40px;
    }
    
    .page-header h1 {
        font-size: 32px;
    }
    
    .page-header p {
        font-size: 16px;
    }
    
    /* 内容区域 */
    .content-section {
        padding: 60px 0;
    }
    
    .content-block {
        margin-bottom: 60px;
    }
    
    .content-block h2 {
        font-size: 26px;
    }
    
    /* 认证页面 */
    .auth-page {
        padding: 100px 20px 40px;
    }
    
    .auth-card {
        padding: 32px 24px;
    }
    
    .auth-header h1 {
        font-size: 24px;
    }
    
    /* 词库列表 */
    .library-list {
        margin-top: 24px;
    }
    
    .library-item {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }
    
    .library-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .library-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .library-actions .btn {
        width: 100%;
    }
    
    /* 模态框 */
    .modal-content {
        padding: 24px;
        margin: 20px;
    }
    
    .update-key-display .key {
        font-size: 18px;
    }
}

/* ========== 小屏移动端 (< 480px) ========== */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    /* Hero */
    .hero-text h1 {
        font-size: 28px;
    }
    
    .hero-phone {
        width: 180px;
        height: 360px;
    }
    
    .phone-screen {
        padding: 32px 16px;
    }
    
    .phone-screen .app-logo {
        font-size: 48px;
    }
    
    .phone-screen h3 {
        font-size: 16px;
    }
    
    .phone-screen p {
        font-size: 12px;
    }
    
    /* 功能卡片 */
    .feature-card {
        padding: 24px 20px;
    }
    
    /* 下载卡片 */
    .download-card {
        padding: 20px 16px;
    }
    
    .download-icon {
        font-size: 40px;
    }
    
    /* 表单 */
    .form-input,
    .form-textarea,
    .form-select {
        padding: 10px 14px;
    }
    
    /* 按钮 */
    .btn {
        padding: 10px 18px;
    }
    
    .btn-lg {
        padding: 12px 24px;
        font-size: 15px;
    }
}

/* ========== 横屏模式 ========== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px 0 40px;
    }
    
    .hero-phone {
        max-width: 200px;
        height: 400px;
    }
}

/* ========== 打印样式 ========== */
@media print {
    .site-header,
    .site-footer,
    .hero-buttons,
    .download-section,
    .cta-section {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        padding: 40px 0;
    }
    
    body {
        background: white;
        color: black;
    }
}
