/* --- 应用场景页面样式 --- */

/* Hero区域 */
.applications-hero {
    padding: 150px 0 80px;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    background: #ffffff; /* 白色背景 */
    isolation: isolate;
}

.applications-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: transparent;
}

.applications-background .applications-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    opacity: 1;
    position: absolute;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
}

.applications-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7); /* 白色半透明遮罩 */
    z-index: 1;
}

.applications-hero .container {
    position: relative;
    z-index: 2;
}

.applications-hero .hero-content {
    text-align: center;
    position: relative;
    z-index: 3;
}

.applications-hero .hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    color: #333333; /* 深色文字 */
    margin-bottom: 20px;
}

.applications-hero .hero-subtitle {
    font-size: 1.3rem;
    color: #666666; /* 深灰色文字 */
    margin-bottom: 50px;
}

/* 应用场景内容区域 */
.applications-section {
    padding: 80px 0;
    position: relative;
    min-height: 100vh;
    background: #ffffff; /* 白色背景 */
}

/* 固定背景图片（不随内容滚动） */
.earth-space-background-fixed {
    display: none !important; /* 隐藏固定背景图片 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.earth-space-bg-image-fixed {
    display: none !important; /* 隐藏背景图片 */
}

.applications-section .container {
    position: relative;
    z-index: 1;
}

/* 应用场景项目 */
.application-item {
    margin-bottom: 120px;
    padding: 60px 0;
}

.application-item:first-child {
    margin-top: 40px;
}

.application-item:last-child {
    margin-bottom: 0;
}

.application-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.application-content.reverse {
    direction: rtl;
}

.application-content.reverse > * {
    direction: ltr;
}

/* 应用场景文本 */
.application-text {
    padding: 30px;
}

.application-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333333; /* 深色文字 */
    margin-bottom: 15px;
}

.application-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: #666666; /* 深灰色文字 */
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0; /* 浅灰色边框 */
}

.application-description {
    color: #333333; /* 深色文字 */
    line-height: 1.8;
    font-size: 1rem;
}

.application-description p {
    margin-bottom: 20px;
}

.application-description p:last-child {
    margin-bottom: 0;
}

.application-description strong {
    color: #333333; /* 深色文字 */
    font-weight: 600;
}

/* 应用场景图片 */
.application-image {
    position: relative;
}

.image-placeholder {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: 15px;
    overflow: hidden;
    background: #f5f5f5; /* 浅灰色背景 */
    border: 2px solid #e0e0e0; /* 浅灰色边框 */
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.image-placeholder:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: #cccccc;
}

.application-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9); /* 白色半透明背景 */
    padding: 30px 20px 20px;
    color: #333333; /* 深色文字 */
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
}

/* 应用场景3特殊布局：文本在左，轮播图在右 */
.application-item-cities .application-content-cities {
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

.application-text-cities {
    display: flex;
    flex-direction: column;
}

/* 城市卡片网格 */
.application-cities {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.city-card {
    padding: 30px;
    background: #ffffff; /* 白色背景 */
    border: 1px solid #e0e0e0; /* 浅灰色边框 */
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 1;
    pointer-events: auto; /* 确保可以点击 */
    user-select: none; /* 防止文本选择干扰点击 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.city-card:hover {
    background: #f9f9f9;
    border-color: #cccccc;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.city-card h4 {
    font-size: 1.5rem;
    color: #333333; /* 深色文字 */
    margin-bottom: 15px;
    font-weight: 600;
    border-bottom: 2px solid #e0e0e0; /* 浅灰色边框 */
    padding-bottom: 10px;
}

.city-card p {
    color: #666666; /* 深灰色文字 */
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

.city-card.active {
    background: #f5f5f5;
    border-color: #cccccc;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* 圆柱形轮播图容器 */
.application-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 550px; /* 增加容器高度以容纳更大的图片 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 0;
    overflow: visible;
}

.cities-carousel-container {
    width: 100%;
    max-width: 700px; /* 增加容器宽度以容纳更大的图片 */
    height: 100%;
    position: relative;
    perspective: 2000px; /* 增加透视距离，增强3D效果 */
    perspective-origin: center center;
    transform-style: preserve-3d;
}

/* Swiper容器样式 */
.cities-carousel {
    width: 100%;
    height: 100%;
    padding: 30px 0 70px;
    overflow: visible;
    transform-style: preserve-3d; /* 保持3D变换 */
}

/* 城市幻灯片样式 - 3D立体效果，增加尺寸和间距 */
.cities-carousel .city-slide {
    width: 240px; /* 进一步增大尺寸 */
    height: 340px; /* 进一步增大高度 */
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* 更流畅的过渡 */
    opacity: 0.85; /* 提高非激活项的可见度 */
    transform-style: preserve-3d; /* 保持3D变换 */
}

.cities-carousel .city-slide.swiper-slide-active {
    opacity: 1;
    z-index: 10;
}

.cities-carousel .city-slide.swiper-slide-next,
.cities-carousel .city-slide.swiper-slide-prev {
    opacity: 0.9; /* 提高相邻项的可见度 */
}

.cities-carousel .city-slide.swiper-slide-next + .swiper-slide,
.cities-carousel .city-slide.swiper-slide-prev + .swiper-slide {
    opacity: 0.75; /* 提高更远项的可见度 */
}

.city-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
    background: transparent; /* 透明背景，让图片更明显 */
    border: 2px solid #e0e0e0; /* 浅灰色边框 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    transform-style: preserve-3d;
}

.city-image-wrapper::after {
    content: '🔍';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.city-image-wrapper:hover::after {
    opacity: 1;
}

.city-slide.swiper-slide-active .city-image-wrapper {
    border-color: #cccccc; /* 深灰色边框 */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: scale(1.15) translateZ(20px); /* 进一步放大激活项 */
    z-index: 10;
}

.city-slide.swiper-slide-active .city-image {
    filter: brightness(1.1) contrast(1.15); /* 增加激活项的亮度和对比度 */
}

.city-image-wrapper:hover {
    transform: scale(1.08) translateZ(15px);
    border-color: #999999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.city-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* 确保图片居中显示 */
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
    image-rendering: -webkit-optimize-contrast; /* 优化图片渲染 */
    image-rendering: crisp-edges; /* 保持图片清晰 */
    filter: brightness(1.15) contrast(1.2); /* 增加亮度和对比度，让图片更清晰 */
    opacity: 1; /* 确保图片完全不透明 */
}

.city-image-wrapper:hover .city-image {
    transform: scale(1.05) translateZ(10px);
    filter: brightness(1.2) contrast(1.25); /* 悬停时进一步增强 */
}

.city-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.75); /* 降低遮罩不透明度，让图片更明显 */
    padding: 15px 10px 10px;
    color: #333333; /* 深色文字 */
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.city-overlay h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: #333333; /* 深色文字 */
    text-align: center;
}

/* 轮播图导航按钮 */
.cities-carousel-next,
.cities-carousel-prev {
    width: 40px !important;
    height: 40px !important;
    background: #f5f5f5 !important;
    border: 2px solid #cccccc !important;
    border-radius: 50% !important;
    color: #333333 !important;
    top: 50% !important;
    margin-top: -20px !important;
    z-index: 1000 !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cities-carousel-next::after,
.cities-carousel-prev::after {
    font-size: 16px !important;
    font-weight: bold !important;
    color: #333333 !important;
}

.cities-carousel-next:hover,
.cities-carousel-prev:hover {
    background: #e5e5e5 !important;
    border-color: #999999 !important;
    transform: scale(1.15) translateZ(5px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.cities-carousel-next {
    right: -15px !important;
}

.cities-carousel-prev {
    left: -15px !important;
}

/* 轮播图点状导航 */
.cities-carousel-pagination {
    position: absolute !important;
    bottom: 10px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    z-index: 1000 !important;
}

.cities-carousel-pagination .swiper-pagination-bullet {
    width: 10px !important;
    height: 10px !important;
    background: #cccccc !important;
    opacity: 1 !important;
    margin: 0 5px !important;
    transition: all 0.3s ease !important;
}

.cities-carousel-pagination .swiper-pagination-bullet-active {
    background: #333333 !important;
    width: 25px !important;
    border-radius: 5px !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2) !important;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .application-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .application-content.reverse {
        direction: ltr;
    }

    .application-item-cities .application-content-cities {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .application-cities {
        grid-template-columns: 1fr;
    }

    .application-title {
        font-size: 2rem;
    }

    .application-subtitle {
        font-size: 1.3rem;
    }

    .application-carousel-wrapper {
        height: 500px;
    }

    .cities-carousel-container {
        max-width: 600px;
        perspective: 1800px;
    }

    .cities-carousel .city-slide {
        width: 220px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .applications-hero {
        padding: 120px 0 60px;
        min-height: 400px;
    }

    .applications-hero .hero-title {
        font-size: 2.5rem;
    }

    .applications-hero .hero-subtitle {
        font-size: 1.1rem;
    }

    .application-item {
        margin-bottom: 60px;
        padding: 40px 0;
    }

    .application-text {
        padding: 20px;
    }

    .application-title {
        font-size: 1.8rem;
    }

    .application-subtitle {
        font-size: 1.2rem;
    }

    .image-placeholder {
        height: 300px;
    }

    .application-description {
        font-size: 0.9rem;
    }

    .city-card {
        padding: 20px;
    }

    .city-card h4 {
        font-size: 1.3rem;
    }

    .city-card p {
        font-size: 0.9rem;
    }

    .application-item-cities .application-content-cities {
        grid-template-columns: 1fr;
    }

    .application-carousel-wrapper {
        height: 450px;
        padding: 20px 0 60px;
    }

    .cities-carousel-container {
        max-width: 100%;
        perspective: 1500px;
    }

    .cities-carousel {
        padding: 20px 0 60px;
    }

    .cities-carousel .city-slide {
        width: 200px;
        height: 270px;
    }

    .city-overlay h4 {
        font-size: 0.9rem;
    }

    .cities-carousel-next,
    .cities-carousel-prev {
        width: 30px !important;
        height: 30px !important;
    }

    .cities-carousel-next::after,
    .cities-carousel-prev::after {
        font-size: 12px !important;
    }

    .cities-carousel-next {
        right: -5px !important;
    }

    .cities-carousel-prev {
        left: -5px !important;
    }
}

/* 城市图片完整显示模态框 */
.city-image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.city-image-modal.active {
    display: flex;
    opacity: 1;
}

.city-image-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10001;
}

.city-image-modal .modal-content-wrapper {
    position: relative;
    z-index: 10002;
    max-width: 95%;
    max-height: 95vh;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.4s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.city-image-modal .modal-image-container {
    position: relative;
    max-width: 100%;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.city-image-modal .modal-full-image {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9),
                0 0 40px rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    cursor: zoom-in;
}

.city-image-modal .modal-image-title {
    margin-top: 20px;
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.city-image-modal .modal-close-btn {
    position: absolute;
    top: -60px;
    right: 0;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: #ffffff;
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 10003;
    backdrop-filter: blur(10px);
}

.city-image-modal .modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.8);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.4);
}

/* 响应式设计 - 模态框 */
@media (max-width: 768px) {
    .city-image-modal .modal-content-wrapper {
        max-width: 98%;
        max-height: 98vh;
    }

    .city-image-modal .modal-full-image {
        max-height: 85vh;
        padding: 10px;
    }

    .city-image-modal .modal-image-title {
        font-size: 1.4rem;
        margin-top: 15px;
        padding: 12px 20px;
    }

    .city-image-modal .modal-close-btn {
        top: -50px;
        width: 45px;
        height: 45px;
        font-size: 28px;
    }
}

