﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: #f5f5f5;
}

.slider-container {
    width: 100%;
    height: 50vh;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .slider-container {
        height: 40vh;
    }
}

@media (max-width: 480px) {
    .slider-container {
        height: 30vh;
    }
}

.slides {
    display: flex;
    transition: margin-left 0.5s ease;
}

.slide-item {
    position: relative;
    flex-shrink: 0;
    width: 100%;
    height: 100%;
}

.slide-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    padding: 30px 20px 20px;
    font-size: 16px;
}

.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.3s;
    border-radius: 50%;
    outline: none;
}

.slide-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slide-prev {
    left: 10px;
}

.slide-next {
    right: 10px;
}

.slide-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.dot:hover,
.dot.active {
    background: #fff;
    transform: scale(1.2);
}