/* Fluorescence页面专用样式 */

/* 轮播图容器样式 */
.carousel-container {
    width: 50%;
    max-width: 600px;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.carousel {
    position: relative;
    width: 100%;
    height: 360px;
    overflow: hidden;
}

/* 轮播图幻灯片样式 */
.carousel-slides {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.carousel-slide {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.carousel-slide a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: white;
}

.carousel-slide img {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.5s ease;
}

.carousel-slide:hover img {
    transform: scale(1.05);
}

/* 轮播图标题覆盖层 */
.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    color: white;
    text-align: left;
}

.slide-overlay h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
}

.slide-overlay p {
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
}

/* 轮播图导航按钮 */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 10;
    color: #520049;
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* 轮播图指示点 */
.carousel-nav {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
    width: 100%;
    text-align: center;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 0 4px;
}

.carousel-dot.active {
    background: #520049;
    transform: scale(1.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .carousel-container {
        width: 100%;
    }
    
    .carousel {
        height: 280px;
    }
    
    .slide-overlay h3 {
        font-size: 18px;
    }
    
    .slide-overlay p {
        font-size: 12px;
    }
}

/* 确保图片显示正常 */
.carousel-slide img {
    min-height: 100%;
    min-width: 100%;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Core Structure 幻灯片特殊样式 */
.core-structure-slide {
    padding-bottom: 50px;
} 