/* ========== 响应式样式 ========== */

/* 平板设备 */
@media (max-width: 992px) {
    .section-title {
        font-size: 32px;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .features-grid,
    .download-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
}

/* 手机设备 */
@media (max-width: 768px) {
    /* 导航栏 */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        gap: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.3s;
    }

    .nav-menu.active {
        max-height: 400px;
        opacity: 1;
    }

    .nav-menu li {
        margin: 10px 0;
    }

    .nav-menu a {
        display: block;
        padding: 12px;
        text-align: center;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* 英雄区域 */
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    /* 区块 */
    section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    /* 功能卡片 */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 30px 20px;
    }

    .feature-icon {
        font-size: 40px;
    }

    .feature-title {
        font-size: 20px;
    }

    /* 截图 */
    .screenshots-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* 下载卡片 */
    .download-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .download-card {
        padding: 30px 20px;
    }

    .download-icon {
        font-size: 50px;
    }

    /* 版本历史 */
    .versions-timeline {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .version-item {
        padding: 25px 20px;
    }

    .version-number {
        font-size: 26px;
    }

    /* 联系卡片 */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-card {
        padding: 30px 20px;
    }

    .contact-value {
        font-size: 20px;
        word-break: break-all;
    }

    /* 页脚 */
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    /* 回到顶部 */
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 20px;
    }
}

/* 小屏手机 */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-description {
        font-size: 14px;
    }

    .btn {
        padding: 12px 25px;
        font-size: 14px;
    }

    .section-title {
        font-size: 24px;
    }

    .feature-card,
    .download-card,
    .contact-card {
        padding: 25px 15px;
    }

    .version-content {
        font-size: 14px;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* 超大屏幕 */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    .hero-title {
        font-size: 64px;
    }

    .section-title {
        font-size: 48px;
    }
}

/* 打印样式 */
@media print {
    .navbar,
    .hero-buttons,
    .back-to-top,
    .download-card button {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 40px 0;
    }

    section {
        page-break-inside: avoid;
    }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    /* 可选：如果需要暗色模式支持，可以在这里添加 */
}

/* 减弱动画效果（用户偏好） */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }

    .feature-card,
    .download-card,
    .contact-card {
        border: 1px solid var(--border-color);
    }
}

