/* styles.css */

.carousel-container {
    width: 100%;
    height: 500px;
    overflow: hidden;
    position: relative;
    display: flex; /* 使用flex布局来定位指示器 */
}

.carousel-track {
    display: flex;
    flex-direction: column;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    /* 关键修改：强制轨道高度与容器相同 */
    min-height: 500px;
    max-height: 500px;
    height: 100%;
}

.carousel-track img {
    width: 100%;
    height: 500px; /* 保持图片高度为屏幕的50% */
    object-fit: cover;
    display: block;
    flex-shrink: 0; /* 防止图片被压缩 */
}

.carousel-indicators-container {
    position: absolute;
    right: 20px; /* 距离右边20px */
    top: 50%; /* 垂直居中 */
    margin-right: 5px;
    transform: translateY(-50%); /* 垂直居中矫正 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.carousel-indicators {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.carousel-indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5); /* 半透明白色 */
    cursor: pointer;
    transition: background-color 0.3s;
    border: 2px solid transparent; /* 为选中状态预留边框空间 */
}

.carousel-indicator-dot.active {
    background-color: white; /* 选中时为纯白色 */
    border-color: #007cba; /* 添加蓝色边框 */
    transform: scale(1.2); /* 选中时稍微放大 */
}

.carousel-indicator-dot:hover {
    background-color: white;
    transform: scale(1.1);
}