/* 响应式样式 */

/* 大屏幕端 - 确保汉堡菜单隐藏 */
@media (min-width: 769px) {
    .fa-bars, .fa-times {
        display: none !important;
    }
    
    /* 确保导航菜单在大屏幕上正确显示 */
    .nav-links {
        position: static !important;
        width: auto !important;
        height: auto !important;
        background-color: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        z-index: auto !important;
        right: auto !important;
    }
    
    .nav-links ul {
        flex-direction: row !important;
        align-items: center !important;
        padding: 0 !important;
    }
    
    .nav-links ul li {
        margin: 0 0 0 30px !important;
        width: auto !important;
        text-align: left !important;
    }
    
    .nav-links ul li a {
        padding: 5px 0 !important;
        border-radius: 0 !important;
        transition: all 0.3s ease !important;
    }
    
    .nav-links ul li a:hover {
        background-color: transparent !important;
    }
}

/* 平板设备特定优化 (769px - 991px) */
@media (min-width: 769px) and (max-width: 991px) {
    .nav-links ul li {
        margin-left: 20px;
    }
    
    .nav-links ul li a {
        font-size: 0.9rem;
    }
}

/* 超大屏幕 (1400px+) */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
        padding: 0 30px;
    }
    
    .hero-content h1 {
        font-size: 4rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
    
    .download-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .screenshot img {
        max-height: 700px;
        max-width: 500px;
    }
}

/* 大型平板电脑和小型笔记本电脑 */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: var(--font-size-h1-tablet);
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    
    .download-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .screenshot img {
        max-height: 500px;
    }
}

/* 平板电脑 */
@media (max-width: 992px) {
    section {
        padding: 60px 0;
    }
    
    .hero {
        min-height: 70vh;
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-text {
        margin-bottom: 40px;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-links {
        margin-top: 30px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .screenshot img {
        max-height: 400px;
    }
}

/* 大型手机和小型平板电脑 */
@media (max-width: 768px) {
    section {
        padding: 40px 0;
    }
    
    .hero {
        min-height: 60vh;
        padding-top: 100px;
        padding-bottom: 40px;
    }
    
    .section-header h2 {
        font-size: var(--font-size-h2-mobile);
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.3rem;
    }
    
    .hero-content p {
        font-size: var(--font-size-body-mobile);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .download-options {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 20px;
    }
    
    /* 移动端导航菜单 */
    .nav-links {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background-color: white;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding-top: 80px;
        transition: var(--transition);
        z-index: 1001;
    }
    
    /* 移动端导航栏优化 */
    .navbar {
        padding: 12px 0;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    /* 移动端Logo优化 */
    .logo img {
        height: 32px;
        margin-right: 8px;
    }
    
    .logo h1 {
        font-size: 1.4rem;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links ul {
        flex-direction: column;
        align-items: center;
        padding: 0 20px;
    }
    
    .nav-links ul li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-links ul li a {
        display: block;
        padding: 12px;
        border-radius: 8px;
        transition: background-color 0.3s ease;
    }
    
    .nav-links ul li a:hover {
        background-color: #f0f7ff;
    }
    
    .fa-bars, .fa-times {
        display: block;
        font-size: 24px;
        padding: 10px;
    }
    
    .fa-times {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 28px;
    }
    
    /* 优化截图显示 */
    .screenshot img {
        max-height: 350px;
        max-width: 90%;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .download-card {
        padding: 20px;
    }
}

/* 小型手机 */
@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 30px 0;
    }
    
    .hero {
        min-height: 50vh;
        padding-top: 90px;
        padding-bottom: 30px;
    }
    
    .hero-content h1 {
        font-size: var(--font-size-h1-mobile);
    }
    
    .hero-content h2 {
        font-size: 1rem;
    }
    
    .hero-content p {
        font-size: 0.8rem;
        line-height: 1.5;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .section-header h2 {
        font-size: 1.3rem;
    }
    
    .section-header p {
        font-size: 0.8rem;
    }
    
    /* 优化移动端截图显示 */
    .screenshot-slider {
        position: relative;
        height: auto;
        min-height: 300px;
        overflow: visible;
    }
    
    .screenshot-tab {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        padding: 0;
        display: none;
    }
    
    .screenshot-tab.active {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        opacity: 1;
    }
    
    .screenshot {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .screenshot img {
        max-height: none;
        width: 100%;
        max-width: 320px;
        height: 280px;
        object-fit: contain;
        border-radius: 12px;
        margin: 0 auto;
    }
    
    .screenshot p {
        margin-top: 10px;
        font-size: 0.8rem;
        white-space: normal;
        text-align: center;
    }
    
    /* 移动端卡片优化 */
    .feature-card,
    .download-card {
        padding: 20px 15px;
        margin: 0 5px;
    }
    
    .feature-icon,
    .download-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon i,
    .download-icon i {
        font-size: 28px;
    }
    
    .feature-card h3,
    .download-card h3 {
        font-size: 1.2rem;
    }
    
    /* 导航菜单优化 */
    .nav-links {
        width: 250px;
        right: -250px;
        padding-top: 60px;
    }
    
    .nav-links ul {
        padding: 0 15px;
    }
    
    /* 页脚优化 */
    footer {
        padding: 40px 0 15px;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .footer-column {
        width: 100%;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* 按钮控制优化 */
    .slider-controls {
        padding: 20px 0;
    }
    
    .slider-btn {
        width: 35px;
        height: 35px;
        margin: 0 10px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}

/* 超小屏幕 (iPhone SE 等) */
@media (max-width: 375px) {
    .hero-content h1 {
        font-size: 1.4rem;
    }
    
    .hero-content h2 {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.8rem;
    }
    
    .screenshot img {
        max-width: 280px;
        height: 240px;
    }
}

/* 横屏模式优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding-top: 100px;
        padding-bottom: 20px;
    }
    
    .hero .container {
        flex-direction: row;
        align-items: center;
    }
    
    .hero-content {
        margin-bottom: 0;
        max-width: 50%;
    }
    
    .hero-image {
        max-width: 40%;
    }
}