/* slider.css - 杞挱鍥炬牱寮 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #f5f7fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 涓昏鍐呭鍖哄煙 - 纭繚杞挱鍥惧瀭鐩村拰姘村钩灞呬腑 */
.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    width: 100%;
}

/* 杞挱瀹瑰櫒 - 姘村钩灞呬腑涓斾繚鎸佹渶澶у搴 */
.slider-container {
    position: relative;
    width: 100%;
    max-width: 1280px;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin: 0 auto; /* 纭繚鍦ㄥ鍣ㄥ唴姘村钩灞呬腑 */
}

/* 杞挱鍥惧鍣 */
.slider {
    position: relative;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

/* 鍗曚釜杞挱椤 */
.slide {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
    width: 100%;
}

/* 杞挱鍥鹃摼鎺 */
.slide-link {
    display: block;
    width: 100%;
    height: 100%;
}

/* 杞挱鍥剧墖 */
.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* 鍥剧墖鎮仠鏁堟灉 */
.slide-link:hover .slide-img {
    transform: scale(1.02);
}

/* 杞挱鎸夐挳鏍峰紡 */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 60px;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* 涓婁竴寮犳寜閽 */
.prev-btn {
    left: 0;
    border-radius: 0 4px 4px 0;
}

/* 涓嬩竴寮犳寜閽 */
.next-btn {
    right: 0;
    border-radius: 4px 0 0 4px;
}

/* 鎸囩ず鍣ㄥ鍣 */
.indicators {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

/* 鍗曚釜鎸囩ず鐐 */
.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: #fff;
    transform: scale(1.2);
}

.indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* 鍝嶅簲寮忚璁 */
@media (max-width: 1700px) {
    .slider-container {
        max-width: 95%;
    }
}

@media (max-width: 1200px) {
    .slider-container {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .slider-container {
        height: 350px;
    }
    
    .slider-btn {
        width: 40px;
        height: 50px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .slider-container {
        height: 250px;
    }
    
    .slider-btn {
        width: 35px;
        height: 45px;
        font-size: 20px;
    }
    
    .indicators {
        bottom: 10px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}

/* 鐗瑰埆涓鸿秴澶у睆骞曚紭鍖 */
@media (min-width: 2000px) {
    .slider-container {
        max-width: 1620px;
    }
}