﻿/* 轮播图样式 */
.slider-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    background-color: rgba(255, 255, 255, 0.5);
}

.slider {
    display: flex;
    transition: transform 0.5s ease;
    height: 500px;
}

.slide {
    min-width: 100%;
    position: relative;
    height: 500px;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.slide-caption {
    position: absolute;
    bottom: 20%;
    left: 10%;
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px;
    max-width: 500px;
    border-radius: 5px;
    z-index: 2;
}

.slide-caption h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.slide-caption p {
    font-size: 1rem;
}

.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 10;
    pointer-events: none;
}

.slider-dots {
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px 10px;
    border-radius: 20px;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-dots .dot.active {
    background-color: white;
}

.slider-dots-container {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.prev-btn,
.next-btn {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 50%;
    transition: all 0.3s;
    pointer-events: auto;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.prev-btn:hover,
.next-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}