/* 图片画廊样式 - 完全允许页面滚动版本 */
.image-carousel-section {
    position: relative;
    height: 100vh;
    width: 100%;
    background: linear-gradient(45deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    /* 关键：允许所有触摸操作 */
    touch-action: pan-y pan-x;
    pointer-events: auto;
}

.carousel-container {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    /* 关键：允许所有触摸操作 */
    touch-action: pan-y pan-x;
    pointer-events: none; /* 容器不拦截事件 */
}

.carousel-track {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 0.5s ease;
    will-change: transform;
    pointer-events: none; /* 轨道不拦截事件 */
}

/* 桌面端：三张并排显示 */
.carousel-slide {
    flex: 0 0 33.333%;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    pointer-events: none; /* 幻灯片不拦截事件 */
}

/* 确保图片完全填充容器 */
.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    pointer-events: none; /* 图片不拦截事件 */
}

.carousel-slide:hover .carousel-image {
    transform: scale(1.02);
}

.no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.2rem;
    pointer-events: none;
}

.no-image-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

/* 控制按钮 */
.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    pointer-events: none; /* 容器不拦截，但内部按钮可以 */
    z-index: 10;
}

.carousel-btn {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.8) 100%);
    border: 3px solid rgba(255,255,255,0.3);
    color: #667eea;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.4s ease;
    pointer-events: auto; /* 只有按钮可以点击 */
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
}

.carousel-container:hover .carousel-btn {
    opacity: 1;
    transform: scale(1);
}

.carousel-btn:hover {
    transform: scale(1.15);
    background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.95) 100%);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

/* 图片计数器 */
.image-counter {
    position: absolute;
    top: 40px;
    right: 40px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 25px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: bold;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255,255,255,0.1);
    z-index: 10;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    pointer-events: none;
}

/* 全屏按钮 */
.fullscreen-btn {
    position: absolute;
    top: 40px;
    left: 40px;
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255,255,255,0.1);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto; /* 全屏按钮可以点击 */
}

.fullscreen-btn:hover {
    background: rgba(102, 126, 234, 0.8);
    transform: scale(1.1);
}

/* 手机端样式 - 单张全屏显示 */
@media (max-width: 768px) {
    .carousel-slide {
        flex: 0 0 100%; /* 每张图片占满整个视口宽度 */
    }

    .carousel-controls {
        padding: 0 20px;
    }

    .carousel-btn {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        opacity: 1; /* 手机端按钮始终显示 */
        transform: scale(1);
    }

    .image-counter,
    .fullscreen-btn {
        top: 20px;
        padding: 10px 20px;
        font-size: 1rem;
    }

    .image-counter {
        right: 20px;
    }

    .fullscreen-btn {
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* 平板端样式 */
@media (min-width: 769px) and (max-width: 1024px) {
    .carousel-slide {
        flex: 0 0 50%; /* 平板端显示两张 */
    }
}

/* 桌面端样式 */
@media (min-width: 1025px) {
    .carousel-slide {
        flex: 0 0 33.333%; /* 桌面端显示三张 */
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .carousel-container .carousel-btn {
        opacity: 1;
        transform: scale(1);
    }
}

/* 确保body和html可以正常滚动 */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: auto;
    overflow-x: hidden;
}

/* 内容区域样式 */
.content-sections {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    background: white;
}