/**
 * 轮播弹窗样式
 * 作者：百家
 */

/* 轮播容器 */
.tcm-carousel-popup-wrapper {
    position: relative;
    width: 100%;
}

.tcm-carousel-popup-wrapper .swiper {
    width: 100%;
    padding: 40px 50px;
}

/* 轮播项目 */
.carousel-item {
    background: #fff;
    padding: 30px;
    cursor: pointer;
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* 竖线分割 */
.carousel-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 70%;
    background: #e0e0e0;
}

.swiper-slide:last-child .carousel-item::after {
    display: none;
}

/* 悬停效果（已移除上浮和阴影） */
.carousel-item:hover {
    /* 移除了 transform 和 box-shadow */
}

.carousel-item-title {
    font-size: 24px;
    font-weight: 600;
    color: #000;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.carousel-item-description {
    font-size: 16px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* Swiper 导航按钮 */
.tcm-carousel-popup-wrapper .swiper-button-next,
.tcm-carousel-popup-wrapper .swiper-button-prev {
    color: #b5ae92;
    width: 44px;
    height: 44px;
    transition: opacity 0.3s;
}

.tcm-carousel-popup-wrapper .swiper-button-next:after,
.tcm-carousel-popup-wrapper .swiper-button-prev:after {
    font-size: 24px;
    font-weight: bold;
}

.tcm-carousel-popup-wrapper .swiper-button-next:hover,
.tcm-carousel-popup-wrapper .swiper-button-prev:hover {
    color: #a59d82;
}

/* 隐藏导航按钮选项 */
.tcm-carousel-popup-wrapper.hide-navigation .swiper-button-next,
.tcm-carousel-popup-wrapper.hide-navigation .swiper-button-prev {
    display: none;
}

/* 隐藏分页器选项 */
.tcm-carousel-popup-wrapper.hide-pagination .swiper-pagination {
    display: none;
}

/* Swiper 分页器 */
.tcm-carousel-popup-wrapper .swiper-pagination {
    bottom: 10px;
}

.tcm-carousel-popup-wrapper .swiper-pagination-bullet {
    background: #b5ae92;
    opacity: 0.5;
    width: 10px;
    height: 10px;
}

.tcm-carousel-popup-wrapper .swiper-pagination-bullet-active {
    opacity: 1;
    width: 30px;
    border-radius: 5px;
}

/* 弹窗遮罩 */
.carousel-popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    padding: 20px;
}

.carousel-popup-modal.active {
    opacity: 1;
    visibility: visible;
}

/* 弹窗内容 */
.carousel-popup-modal-content {
    background: #fff;
    width: 800px;
    max-width: 100%;
    max-height: 80vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.carousel-popup-modal.active .carousel-popup-modal-content {
    transform: scale(1);
}

/* 弹窗关闭按钮 */
.carousel-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #000;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    padding: 0;
}

.carousel-popup-close:hover {
    color: #b5ae92;
    transform: rotate(90deg);
}

.carousel-popup-close i {
    font-size: 24px !important;
}

/* 弹窗主体 */
.carousel-popup-modal-body {
    padding: 40px;
    overflow-y: auto;
    flex: 1;
}

/* 弹窗标题 */
.carousel-popup-title {
    font-size: 32px;
    font-weight: 600;
    color: #000;
    margin: 0 0 30px 0;
    line-height: 1.3;
    padding-right: 40px;
}

/* 弹窗内容 */
.carousel-popup-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.carousel-popup-content p {
    margin: 0 0 20px 0;
}

.carousel-popup-content h1,
.carousel-popup-content h2,
.carousel-popup-content h3,
.carousel-popup-content h4,
.carousel-popup-content h5,
.carousel-popup-content h6 {
    margin: 30px 0 15px 0;
    line-height: 1.4;
}

.carousel-popup-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

.carousel-popup-content ul,
.carousel-popup-content ol {
    margin: 0 0 20px 20px;
    padding: 0;
}

.carousel-popup-content li {
    margin-bottom: 10px;
}

/* 响应式 */
@media (max-width: 768px) {
    .tcm-carousel-popup-wrapper .swiper {
        padding: 30px 40px;
    }
    
    .carousel-item {
        padding: 20px;
    }
    
    .carousel-item-title {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .carousel-item-description {
        font-size: 14px;
    }
    
    .carousel-popup-modal {
        padding: 10px;
    }
    
    .carousel-popup-modal-content {
        max-height: 90vh;
    }
    
    .carousel-popup-modal-body {
        padding: 30px 20px;
    }
    
    .carousel-popup-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .carousel-popup-content {
        font-size: 14px;
    }
    
    .tcm-carousel-popup-wrapper .swiper-button-next,
    .tcm-carousel-popup-wrapper .swiper-button-prev {
        width: 30px;
        height: 30px;
    }
    
    .tcm-carousel-popup-wrapper .swiper-button-next:after,
    .tcm-carousel-popup-wrapper .swiper-button-prev:after {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .tcm-carousel-popup-wrapper .swiper {
        padding: 20px 30px;
    }
    
    .carousel-item {
        padding: 15px;
    }
    
    .carousel-item-title {
        font-size: 18px;
    }
    
    .carousel-item-description {
        font-size: 13px;
    }
    
    .carousel-popup-modal-body {
        padding: 20px 15px;
    }
    
    .carousel-popup-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
}

/* 禁用body滚动 */
body.carousel-popup-open {
    overflow: hidden;
}

