/* 确保Swiper容器可见 */
.esg-swiper-container {
    position: relative;
    width: 100%;
    padding: 20px 0 50px;
    margin: 0 auto;
    box-sizing: border-box;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

.esg-swiper-slider {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.esg-swiper-slider .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    transition: transform 0.3s ease;
}

/* 图片样式 - 确保显示 */
.esg-swiper-image {
    width: 100%;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.esg-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.esg-slide-link:hover .esg-swiper-image {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

/* 导航按钮 - 确保显示 */
.esg-swiper-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    width: 44px;
    height: 44px;
    /*background: rgba(255, 255, 255, 0.95);*/
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    opacity: 0.8;
    visibility: visible !important;
    /*border: 1px solid rgba(0,0,0,0.1);*/
}

/* 确保按钮在初始化前也可点击 */
.esg-swiper-container:not(.esg-initialized) .esg-swiper-button {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.esg-swiper-container:not(.esg-initialized) .esg-swiper-button:hover {
    opacity: 0.8;
}

.esg-swiper-button:hover {
    /*background: white;*/
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.esg-swiper-button svg {
    width: 40px !important;
    height: 40px !important;
    color: hsla(0,0%,93%,.9);
    fill:hsla(0,0%,93%,.9);
}

.esg-swiper-button-prev {
    left: 10px;
    color: hsla(0,0%,93%,.9) !important;
}

.esg-swiper-button-next {
    right: 10px;
    color: hsla(0,0%,93%,.9) !important;
}

.esg-swiper-button.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: translateY(-50%);
}

/* 分页点 - 确保显示 */
.esg-swiper-pagination {
    position: absolute !important;
    bottom: 10px !important;
    left: 0 !important;
    width: 100% !important;
    text-align: center !important;
    z-index: 10 !important;
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
}

.esg-swiper-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    display: inline-block;
    border-radius: 50%;
    background: #ccc;
    opacity: 0.6;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 3px;
}

.esg-swiper-pagination .swiper-pagination-bullet:hover {
    opacity: 0.8;
}

.esg-swiper-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    background-color: #000 !important;
    transform: scale(1.2);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .esg-swiper-container {
        padding: 15px 0 40px;
    }

    .esg-swiper-button {
        width: 38px;
        height: 38px;
    }

    .esg-swiper-button svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 768px) {
    .esg-swiper-container {
        padding: 10px 0 35px;
    }

    .esg-swiper-button {
        width: 32px;
        height: 32px;
        opacity: 0.7;
    }

    .esg-swiper-button svg {
        width: 16px;
        height: 16px;
    }

    .esg-swiper-button-prev {
        left: 5px;
    }

    .esg-swiper-button-next {
        right: 5px;
    }

    .esg-swiper-pagination {
        bottom: 5px !important;
    }

    .esg-swiper-pagination .swiper-pagination-bullet {
        width: 6px !important;
        height: 6px !important;
    }
}
/* 按钮加载动画 */
.esg-swiper-container.esg-initializing .esg-swiper-button {
    opacity: 0.5;
    cursor: wait;
}

/* 确保分页点在初始化前也可见 */
.esg-swiper-container:not(.esg-initialized) .esg-swiper-pagination {
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
}

.esg-swiper-container:not(.esg-initialized) .esg-swiper-pagination::before {
    content: '● ● ●';
    color: #ccc;
    font-size: 20px;
    letter-spacing: 8px;
}

/* 初始化完成后的过渡效果 */
.esg-swiper-container.esg-initialized {
    transition: opacity 0.5s ease;
}

.esg-swiper-container.esg-initialized .esg-swiper-button {
    animation: esgButtonAppear 0.3s ease;
}

@keyframes esgButtonAppear {
    from {
        opacity: 0;
        transform: translateY(-50%) scale(0.8);
    }
    to {
        opacity: 0.8;
        transform: translateY(-50%) scale(1);
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .esg-swiper-button {
        width: 48px;
        height: 48px;
        opacity: 0.9;
    }

    .esg-swiper-button svg {
        width: 24px;
        height: 24px;
    }
}

/* 打印优化 */
@media print {
    .esg-swiper-button,
    .esg-swiper-pagination {
        display: none !important;
    }
}

/* 空状态提示 */
.esg-empty-message {
    padding: 30px;
    text-align: center;
    background: #f5f5f5;
    border-radius: 8px;
    color: #666;
    font-style: italic;
}

/* 确保在打印模式下隐藏导航 */
@media print {
    .esg-swiper-button,
    .esg-swiper-pagination {
        display: none !important;
    }
}