﻿/* 轮播容器 - 添加ds-前缀避免冲突 */
.ds-slider-container {
    --ds-primary-color: #ff6600; /* 使用CSS变量方便修改主题色 */
    --ds-bg-color: #fff;
    width: 100%;
    margin: 0 auto;
    background: var(--ds-bg-color);
    padding: 20px;
}

/* 主轮播区域 */
.ds-main-slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-bottom: 15px;
}

/* 轮播轨道 */
.ds-slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

/* 单个幻灯片 */
.ds-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

/* 幻灯片图片 */
.ds-slide-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 保持比例完整显示图片 */
    display: block;
}

/* 缩略图导航 */
.ds-thumbnail-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
    overflow-x: auto;
}

/* 单个缩略图 */
.ds-thumbnail {
    width: 80px;
    height: 60px;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

    /* 激活状态的缩略图 */
    .ds-thumbnail.ds-active {
        border-color: var(--ds-primary-color);
    }

/* 缩略图图片 */
.ds-thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 轮播控制按钮 */
.ds-slider-controls {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none; /* 允许点击穿透 */
}

/* 轮播按钮基础样式 */
.ds-slider-btn {
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    pointer-events: all; /* 恢复点击事件 */
    transition: background 0.3s;
    margin: 0 10px;
}

    /* 按钮悬停效果 */
    .ds-slider-btn:hover {
        background: rgba(0,0,0,0.8);
    }

/* 图片放大模态框样式 */
.ds-modal {
    display: none;
    position: fixed;
    z-index: 9999; /* 提高层级确保在最前 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

.ds-modal-content {
    display: block;
    max-width: 95%;
    max-height: 95%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: contain;
}

.ds-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000; /* 确保关闭按钮在最上层 */
}

    .ds-modal-close:hover {
        color: #ddd;
    }