/* 响应式设计 */

/* 平板设备 (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .feature-item {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-item.reverse {
        direction: ltr;
    }

    .download-content {
        grid-template-columns: 1fr;
    }
}

/* 手机设备 (最大 768px) */
@media screen and (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    /* 导航栏 */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: white;
        width: 100%;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Hero 区域 */
    .hero {
        margin-top: 70px;
        padding: 2rem 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-compatibility {
        margin-bottom: 1.5rem;
    }

    .compatibility-label {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .compatibility-badges {
        gap: 0.5rem;
    }

    .compatibility-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        text-align: center;
    }

    .hero-requirements {
        font-size: 0.75rem;
        text-align: center;
    }

    /* 移动设备上减少动画效果 */
    .hero-img {
        animation: heroFloat 8s ease-in-out infinite;
    }

    .hero-img:hover {
        transform: translateY(-5px) scale(1.01);
    }

    .hero-image::before {
        animation: none;
        opacity: 0.2;
    }

    /* 章节标题 */
    .section-header h2 {
        font-size: 1.75rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    /* 游戏引擎兼容性 */
    .compatibility {
        padding: 2rem 0;
    }

    .compatibility-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .compatibility-item {
        padding: 1.5rem;
    }

    .compatibility-icon {
        font-size: 2.5rem;
    }

    /* 产品介绍 */
    .intro {
        padding: 2rem 0;
    }

    .intro-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .intro-card {
        padding: 1.5rem;
    }

    /* 功能特性 */
    .features {
        padding: 2rem 0;
    }

    .features-list {
        gap: 2rem;
    }

    .feature-content h3 {
        font-size: 1.5rem;
    }

    .feature-image {
        padding: 2rem;
        min-height: 200px;
    }

    /* 界面展示 */
    .screenshots {
        padding: 2rem 0;
    }

    .screenshot-gallery {
        grid-template-columns: 1fr;
    }

    /* 下载区域 */
    .download {
        padding: 2rem 0;
    }

    .download-buttons {
        margin-top: 1rem;
    }

    .btn-download {
        width: 100%;
        justify-content: center;
    }

    /* 联系区域 */
    .contact {
        padding: 2rem 0;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    /* 返回顶部按钮 */
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 1rem;
        right: 1rem;
        font-size: 1.25rem;
    }
}

/* 小屏手机 (最大 480px) */
@media screen and (max-width: 480px) {
    .nav-brand h1 {
        font-size: 1.25rem;
    }

    .nav-brand .subtitle {
        font-size: 0.75rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.875rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.875rem;
    }

    .btn-download {
        font-size: 1rem;
        padding: 0.875rem 2rem;
    }

    .intro-icon,
    .contact-icon {
        font-size: 2.5rem;
    }

    .version-number {
        font-size: 1.5rem;
    }

    .footer p {
        font-size: 0.75rem;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 0.25rem;
    }

    .footer-separator {
        margin: 0 0.25rem;
    }

    .icp-link {
        font-size: 0.75rem;
    }
}

/* 横屏手机优化 */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 1.5rem 0;
    }

    .hero-content {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }

    .hero-buttons {
        flex-direction: row;
    }
}

/* 高分辨率屏幕优化 */
@media screen and (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .section-header h2 {
        font-size: 3rem;
    }
}

/* 打印样式 */
@media print {
    .navbar,
    .back-to-top,
    .download-buttons {
        display: none;
    }

    .hero {
        margin-top: 0;
    }
}
