/* 
 * 畅游大美中国 - 响应式样式文件
 * 移动优先设计，适配各种设备尺寸
 */

/* 平板端样式 (768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    
    /* Banner区域调整 */
    .banner-title {
        font-size: 3.5rem;
    }
    
    .banner-subtitle {
        font-size: 1.3rem;
    }
    
    /* 活动概况区调整 */
    .overview-content {
        gap: 40px;
    }
    
    .overview-description p {
        font-size: 1rem;
    }
    
    /* Tab按钮调整 */
    .tab-btn {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    .tab-icon {
        font-size: 1.3rem;
    }
    
    /* 内容网格调整 */
    .content-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
    
    /* 宣传推介区调整 */
    .promotion-content {
        gap: 40px;
    }
    
    .promotion-description h4 {
        font-size: 1.6rem;
    }
    
    .promotion-description p {
        font-size: 1rem;
    }
}

/* 移动端样式 (最大767px) */
@media (max-width: 767px) {
    
    /* 基础设置 */
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* 标题调整 */
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    /* Banner区域 */
    .banner-section {
        background-attachment: scroll; /* 移动端不支持fixed */
    }
    
    /* 移动端背景图优化 */
    .overview-section,
    .promotion-section {
        background-attachment: scroll; /* 移动端背景固定会有性能问题 */
        background-size: cover, auto, auto, auto;
    }
    
    .banner-title {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }
    
    .banner-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .scroll-indicator {
        bottom: 20px;
    }
    
    .scroll-arrow {
        width: 25px;
        height: 25px;
    }
    
    /* 活动概况区 */
    .overview-section {
        padding: 80px 0;
    }
    
    .overview-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .overview-image {
        order: 2;
    }
    
    .overview-text {
        order: 1;
    }
    
    .overview-description p {
        font-size: 0.95rem;
        line-height: 1.7;
        text-align: left;
    }
    
    /* Tab分类展示区 */
    .category-section {
        padding: 60px 0;
    }
    
    .tab-navigation {
        flex-direction: row;
        flex-wrap: nowrap;
        margin-bottom: 30px;
        border-bottom: none;
        gap: 12px;
        padding: 0 10px;
        justify-content: space-between;
    }
    
    .tab-btn {
        padding: 15px 20px;
        font-size: 1rem;
        border-radius: 20px;
        border: 2px solid #f0f0f0;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 8px;
        white-space: nowrap;
        flex: 1;
        min-width: 0;
    }
    
    .tab-btn.active {
        border-color: #1E88E5;
        background: rgba(30, 136, 229, 0.1);
    }
    
    
    .tab-btn.active::after {
        display: none;
    }
    
    .tab-icon {
        font-size: 1.3rem;
        margin-bottom: 0;
    }
    
    .tab-text {
        font-size: 1.1rem;
    }
    
    .tab-english {
        display: none; /* 移动端隐藏英文 */
    }
    
    /* 内容网格 */
    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
    }
    
    .content-card {
        margin-bottom: 10px;
    }
    
    .card-image {
        height: 200px;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .card-title {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .card-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    @media (max-width: 768px) {
        /* 宣传推介区：移动端激活面板纵向排列，保持原有响应式行为 */
        .promotion-content .tab-content.active {
            display: flex;
            flex-direction: column;
        }
    }
        .video-container {
            order: 1;
            border-radius: 0;
        }
        .promotion-video {
            aspect-ratio: 16/9;
            width: 100%;
            height: auto;
            min-height: auto;
        }
        .promotion-description {
            order: 2;
            text-align: left;
            padding: 30px 20px;
            background: rgba(255, 255, 255, 0.05);
        }
        .promotion-description h4 {
            font-size: 1.6rem;
            text-align: center;
            margin-bottom: 20px;
            letter-spacing: 0.5px;
        }
        .promotion-description p {
            font-size: 1rem;
            line-height: 1.7;
            text-align: justify;
            text-indent: 1.5em;
        }
    }
    
    /* 页脚 */
    .footer-section {
        padding: 30px 0;
    }
    
    .copyright-info {
        font-size: 0.8rem;
    }


/* 超小屏幕设备 (最大480px) */
@media (max-width: 480px) {
    
    /* 进一步缩小字体和间距 */
    .container {
        padding: 0 10px;
    }
    
    .overview-section .section-title {
        font-size: 1.8rem;
    }
    
    .banner-title {
        font-size: 2rem;
    }
    
    .banner-subtitle {
        font-size: 1rem;
    }
    
    .overview-section,
    .category-section,
    .promotion-section {
        padding: 60px 0;
    }
    
    .tab-navigation {
        gap: 8px;
        padding: 0 5px;
    }
    
    .tab-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
        gap: 6px;
        min-width: 0;
    }
    
    .tab-icon {
        font-size: 1.1rem;
    }
    
    .card-content {
        padding: 15px;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
    
    .card-description {
        font-size: 0.9rem;
    }
    
    .promotion-description h4 {
        font-size: 1.4rem;
        letter-spacing: 0.3px;
    }
    
    .promotion-description p {
        font-size: 0.95rem;
        text-align: justify;
        text-indent: 1.2em;
    }
}

/* 大屏幕设备优化 (最小1400px) */
@media (min-width: 1400px) {
    
    .container {
        max-width: 1400px;
    }
    
    .banner-title {
        font-size: 4.5rem;
    }
    
    .banner-subtitle {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .content-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: 40px;
    }
    
    .overview-content,
    .promotion-content {
        /* gap: 80px; */
    }
}

/* 横屏模式优化 */
@media (orientation: landscape) and (max-height: 600px) {
    
    .banner-section {
        height: 100vh;
        min-height: 500px;
    }
    
    .banner-title {
        font-size: 2.5rem;
    }
    
    .banner-subtitle {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .scroll-indicator {
        bottom: 15px;
    }
}

/* 高分辨率屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    
    /* 确保图片在高分辨率屏幕上清晰显示 */
    .banner-section {
        background-image: url('../banner_v1.jpg');
    }
    
    /* 优化文字渲染 */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* 打印样式 */
@media print {
    
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .banner-section,
    .scroll-indicator,
    .promotion-video {
        display: none;
    }
    
    .overview-section,
    .category-section,
    .promotion-section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
    
    .content-card {
        page-break-inside: avoid;
        margin-bottom: 20px;
    }
    
    .section-title {
        color: black !important;
    }
    
    .section-title::after {
        background: black !important;
    }
}

/* 无障碍访问优化 */
@media (prefers-reduced-motion: reduce) {
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-indicator {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    
    /* 暂时保持浅色主题，因为这是文旅宣传页面 */
    /* 如需要可以在此添加深色模式样式 */
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    
    /* 增大可点击区域 */
    .tab-btn {
        min-height: 48px;
        padding: 15px 25px;
    }
    
    /* 移除悬停效果，使用点击效果 */
    .content-card:hover {
        transform: none;
    }
    
    .content-card:active {
        transform: scale(0.98);
    }
    
    .tab-btn:hover {
        background: none;
        color: #666;
    }
    
    .tab-btn:active {
        background: rgba(30, 136, 229, 0.1);
        color: #1E88E5;
    }
}

/* 固定导航条移动端适配 */
@media (max-width: 767px) {
    .lmtb{
        height: auto;
        background: url(../images/lmt_b.png) no-repeat center top;
        background-size: 100% auto;
    }
    .lmta{
        height: auto;
        background: url(../images/lmt_a.png) no-repeat center top;
        background-size: 100% auto;
    }
    .sticky-navigation {
        /* background: rgba(255, 255, 255, 0.95); */
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu {
        flex-direction: row;
        justify-content: space-around;
        gap: 0;
    }
    
    .nav-item {
        flex: 1;
        max-width: none;
    }
    
    .nav-link {
        padding: 10px 8px;
        min-height: 45px;
        border-right: 1px solid rgba(0, 0, 0, 0.1);
        color: #fff;
    }
    
    .nav-item:last-child .nav-link {
        border-right: none;
    }
    
    .nav-text {
        font-size: 0.9rem;
        font-weight: 500;
        text-align: center;
        line-height: 1.2;
    }
    
    .sticky-navigation.scrolled .nav-link {
        padding: 8px 6px;
        min-height: 40px;
    }
    
    .sticky-navigation.scrolled .nav-text {
        font-size: 0.85rem;
    }
}

/* 超小屏幕适配 */
@media (max-width: 480px) {
    .sticky-navigation {
        border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    }
    
    .nav-link {
        padding: 8px 6px;
        min-height: 40px;
    }
    
    .nav-text {
        font-size: 0.8rem;
        font-weight: 500;
    }
    
    .sticky-navigation.scrolled .nav-link {
        padding: 6px 4px;
        min-height: 35px;
    }
    
    .sticky-navigation.scrolled .nav-text {
        font-size: 0.75rem;
    }
}

/* 横屏模式适配 */
@media (max-width: 767px) and (orientation: landscape) {
    .sticky-navigation {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
    }
    
    .nav-link {
        padding: 8px 6px;
        min-height: 35px;
    }
    
    .nav-text {
        font-size: 0.75rem;
    }
    
    /* 为横屏模式下的内容添加顶部间距 */
    .content-wrapper {
        padding-top: 35px;
    }
}
@media (max-width: 768px) {
    /* 宣传推介（#promotion）下的页签头与按钮样式（移动端） */
    .promotion-section .tab-navigation {
        flex-direction: row;
        flex-wrap: nowrap;
        margin-bottom: 30px;
        border-bottom: none;
        gap: 12px;
        padding: 0 10px;
        justify-content: space-between;
    }

    .promotion-section .tab-btn {
        padding: 15px 20px;
        font-size: 1rem;
        border-radius: 20px;
        border: 2px solid #f0f0f0;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 8px;
        white-space: nowrap;
        flex: 1;
        min-width: 0;
    }

    .promotion-section .tab-btn.active {
        border-color: #1E88E5;
        background: rgba(255, 255, 255, 1);
    }

    .promotion-section .tab-btn.active::after {
        display: none;
    }

    .promotion-section .tab-text {
        font-size: 1.1rem;
    }

    .promotion-section .tab-english {
        display: none;
    }
}

@media (max-width: 480px) {
    .promotion-section .tab-navigation {
        gap: 8px;
        padding: 0 5px;
    }

    .promotion-section .tab-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
        gap: 6px;
        min-width: 0;
    }
}

@media (max-width: 768px) {
    .promo-carousel .carousel-item.active {
        display: flex;
        flex-direction: column; /* 保持原移动端纵向布局 */
    }
    .promo-carousel .prev-btn,
    .promo-carousel .next-btn {
        width: 36px;
        height: 36px;
    }
    .promo-carousel .carousel-indicators {
        bottom: 8px;
    }
}