/* 响应式设计样式 */

/* 平板设备 (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-container {
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .product-showcase {
        gap: 2rem;
    }
    
    .dev-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 手机设备 (max-width: 768px) */
@media screen and (max-width: 768px) {
    /* 导航栏响应式 */
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    /* Hero区域响应式 */
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 200px;
    }
    
    /* 功能卡片响应式 */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 2rem;
    }
    
    /* 产品展示响应式 */
    .product-showcase {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .product-content h2 {
        font-size: 2rem;
    }
    
    .product-features {
        text-align: left;
        display: inline-block;
        margin: 1.5rem auto;
    }
    
    /* 开发者区域响应式 */
    .dev-features {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* 页脚响应式 */
    .footer {
        padding: 1.5rem 0;
    }
}

/* 小屏手机 (max-width: 480px) */
@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .container {
        padding: 0 1rem;
    }
}

/* 横屏模式 */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 120vh;
    }
    
    .hero-container {
        padding-top: 100px;
    }
}

/* 高分辨率屏幕 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-placeholder,
    .demo-placeholder {
        /* 为Retina屏幕优化图片 */
        background-size: cover;
    }
}

/* 打印样式 */
@media print {
    .navbar,
    .hero-buttons,
    .nav-toggle {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .hero {
        background: white !important;
        color: black !important;
        min-height: auto;
        padding: 2rem 0;
    }
}