/* 平板设备 (768px - 1024px) */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 手机设备 (小于768px) */
@media (max-width: 768px) {
    /* 导航栏调整 */
    .navbar {
        padding: 0.75rem 0;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .lang-switch,
    .theme-switch {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .nav-menu {
        gap: 0.5rem;
    }
    
    /* Hero区域调整 */
    .hero {
        padding: 3rem 0 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    /* 输入区域调整 */
    .text-input {
        font-size: 1.2rem;
        min-height: 50px;
    }
    
    /* 样式选项调整 */
    .style-options {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .style-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    /* 预览区域调整 */
    .preview-section {
        padding: 1rem;
        min-height: 300px;
    }
    
    #previewCanvas {
        max-width: 100%;
        width: 300px;
        height: 300px;
    }
    
    /* 操作按钮调整 */
    .action-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* 特色展示调整 */
    .features {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .feature-title {
        font-size: 1.1rem;
    }
    
    /* 教程部分调整 */
    .tutorial {
        padding: 3rem 0;
    }
    
    .steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* 页脚调整 */
    .footer {
        padding: 1.5rem 0;
        margin-top: 3rem;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .footer-link {
        font-size: 0.85rem;
    }
}

/* 小屏手机 (小于480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .text-input {
        font-size: 1rem;
        padding: 0.75rem;
    }
    
    .style-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .action-btn {
        padding: 0.85rem 1.5rem;
        font-size: 0.9rem;
    }
    
    #previewCanvas {
        width: 250px;
        height: 250px;
    }
}

/* 横屏模式优化 */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        padding: 2rem 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .preview-section {
        min-height: 250px;
    }
    
    #previewCanvas {
        width: 250px;
        height: 250px;
    }
}

/* 高分辨率屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .navbar {
        border-bottom-width: 0.5px;
    }
    
    .text-input,
    .style-btn,
    .action-btn.secondary {
        border-width: 1px;
    }
}

/* 打印样式 */
@media print {
    .navbar,
    .features,
    .tutorial,
    .footer,
    .action-buttons {
        display: none;
    }
    
    .hero {
        padding: 1rem 0;
    }
    
    .preview-section {
        background: none;
        padding: 0;
    }
    
    #previewCanvas {
        box-shadow: none;
        max-width: 100%;
    }
} 