/* 响应式样式 */

/* 大屏幕端 - 确保汉堡菜单隐藏 */
@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: 1200px;
        padding: 0 clamp(20px, 3vw, 40px);
    }
    
    .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;
    }

    /* 欢迎卡片平板端适配 */
    .welcome-card {
        max-width: 350px;
    }

    .welcome-card-content {
        padding: 25px;
    }

    .welcome-icon {
        width: 70px;
        height: 70px;
    }

    .welcome-icon i {
        font-size: 32px;
    }

    .welcome-text h3 {
        font-size: 1.3rem;
    }

    .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: 15px;
    }

    .features {
        padding: 30px 0;
    }
    
    .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%;
    }

    /* 欢迎卡片移动端适配 */
    .welcome-card {
        max-width: 300px;
        margin: 20px auto 0;
    }

    .welcome-card-content {
        padding: 20px;
    }

    .welcome-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }

    .welcome-icon i {
        font-size: 28px;
    }

    .welcome-text h3 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }

    .welcome-text p {
        font-size: 0.9rem;
    }

    .welcome-card-details-item {
        padding: 10px 12px;
        margin-bottom: 8px;
    }

    .welcome-card-details-item i {
        font-size: 18px;
        margin-right: 10px;
        width: 20px;
    }

    .welcome-card-details-item span {
        font-size: 0.85rem;
    }

    .feature-card {
        padding: 20px;
    }

    .download-card {
        padding: 20px;
    }
}

/* 小型手机 */
@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }

    section {
        padding: 35px 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;
    }
    
    .btn-annual {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        font-size: 0.9rem;
        font-weight: 600;
        padding: 12px 20px;
        border-radius: var(--button-radius);
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
    }
    
    .btn-annual:hover {
        transform: translateY(-1px);
        box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    }
    
    .btn-annual i {
        margin-right: 6px;
        font-size: 0.9rem;
    }
    
    /* 年度总结横幅移动端优化 */
    .annual-banner {
        padding: 50px 0;
    }
    
    .annual-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .annual-banner-text {
        order: 2;
    }
    
    .annual-banner-image {
        order: 1;
    }
    
    .annual-banner h2 {
        font-size: 1.8rem;
    }
    
    .annual-banner p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .annual-stats {
        justify-content: center;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .annual-icon {
        width: 80px;
        height: 80px;
    }
    
    .annual-icon i {
        font-size: 2rem;
    }
    
    .btn-large {
        padding: 12px 25px;
        font-size: 1rem;
        font-size: 0.9rem;
    }
    
    .section-header {
        margin-bottom: 35px;
    }

    .section-header h2 {
        font-size: 1.5rem;
        font-weight: 700;
        color: #0066CC;
        position: relative;
        display: inline-block;
    }

    .section-header h2::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 3px;
        background: linear-gradient(90deg, #0066CC, #FF6B00);
        border-radius: 2px;
    }

    .section-header p {
        font-size: 0.9rem;
        color: #666;
        margin-top: 15px;
    }
    
    /* 优化移动端截图显示 */
    .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: 25px 20px;
        margin: 0;
        background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
        border: 1px solid #e8f0fe;
    }

    .feature-card {
        box-shadow: 0 8px 30px rgba(0, 102, 204, 0.08);
        transition: box-shadow 0.3s ease;
    }

    .feature-card:hover {
        box-shadow: 0 15px 40px rgba(0, 102, 204, 0.15);
    }

    .feature-icon,
    .download-icon {
        width: 70px;
        height: 70px;
        margin: 0 auto 18px;
        background: linear-gradient(135deg, #0066CC 0%, #0088FF 100%);
        box-shadow: 0 6px 20px rgba(0, 102, 204, 0.25);
        position: relative;
    }

    .feature-icon i,
    .download-icon i {
        font-size: 32px;
        color: white;
        position: relative;
        z-index: 1;
    }

    .feature-card h3,
    .download-card h3 {
        font-size: 1.3rem;
        font-weight: 700;
        color: #1a1a2e;
        margin-bottom: 12px;
        letter-spacing: 0.3px;
    }

    .feature-card p {
        color: #555;
        font-size: 0.95rem;
        line-height: 1.8;
        margin: 0;
    }

    /* 为不同功能卡片添加独特的渐变边框 */
    .feature-card:nth-child(1) {
        border-color: #FF6B6B;
    }
    .feature-card:nth-child(1) .feature-icon {
        background: linear-gradient(135deg, #FF6B6B 0%, #FF8E8E 100%);
    }

    .feature-card:nth-child(2) {
        border-color: #4ECDC4;
    }
    .feature-card:nth-child(2) .feature-icon {
        background: linear-gradient(135deg, #4ECDC4 0%, #7ED9D2 100%);
    }

    .feature-card:nth-child(3) {
        border-color: #FF6B00;
    }
    .feature-card:nth-child(3) .feature-icon {
        background: linear-gradient(135deg, #FF6B00 0%, #FF9500 100%);
    }

    .feature-card:nth-child(4) {
        border-color: #34C759;
    }
    .feature-card:nth-child(4) .feature-icon {
        background: linear-gradient(135deg, #34C759 0%, #58D46E 100%);
    }

    .feature-card:nth-child(5) {
        border-color: #AF52DE;
    }
    .feature-card:nth-child(5) .feature-icon {
        background: linear-gradient(135deg, #AF52DE 0%, #C771E8 100%);
    }

    .feature-card:nth-child(6) {
        border-color: #007AFF;
    }
    .feature-card:nth-child(6) .feature-icon {
        background: linear-gradient(135deg, #007AFF 0%, #34A3FF 100%);
    }

    .feature-card:nth-child(7) {
        border-color: #FF9500;
    }
    .feature-card:nth-child(7) .feature-icon {
        background: linear-gradient(135deg, #FF9500 0%, #FFB340 100%);
    }
    
    /* 导航菜单优化 */
    .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%;
    }
}