﻿/* 重置轮播组件相关样式 */
.focus-slider * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.focus-slider {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    width: 100%;
    background: #ffffff;
    isolation: isolate;
}

    .focus-slider .container {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
    }

    .focus-slider h1 {
        text-align: center;
        margin-bottom:15px;
        color: #2c3e50;
        font-weight: 600;
        font-size: 40px;
    }

    .focus-slider .slider-container {
        position: relative;
        width: 100%;
        overflow: hidden;
        border-radius: 15px;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        background: white;
        padding-bottom: 60px;
    }

    .focus-slider .slider {
        display: flex;
        transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        width: 100%;
    }

    .focus-slider .slide-frame {
        display: flex;
        width: 100%;
        flex-shrink: 0;
        padding: 20px;
        gap: 20px;
        min-width: 100%;
    }

    .focus-slider .slide-item {
        flex: 1;
        border-radius: 10px;
        overflow: hidden;
        position: relative;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        background: white;
        min-height: 0;
    }

        .focus-slider .slide-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
        }

    .focus-slider .image-container {
        position: relative;
        width: 100%;
        height: 170px !important; /* 强制设置高度为150px */
        overflow: hidden;
        flex-shrink: 0; /* 防止容器被压缩 */
    }

    .focus-slider .slide-item img {
        width: 100% !important;
        height: 170px !important; /* 强制图片高度为150px */
        object-fit: cover !important;
        display: block;
        transition: transform 0.3s ease;
    }

    .focus-slider .slide-item:hover img {
        transform: scale(1.05);
    }

    .focus-slider .hot-tag {
        position: absolute;
        top: 0;
        right: 0;
        background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 50%, #ff9900 100%);
        color: white;
        font-weight: bold;
        padding: 6px 15px;
        font-size: 12px;
        z-index: 2;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
        border-radius: 0 0 0 25px;
        padding-left: 18px;
        line-height: 1.2;
    }

    .focus-slider .slide-title {
        padding: 15px;
        background: white;
        border-radius: 0 0 10px 10px;
        flex-shrink: 0;
        min-height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .focus-slider .slide-title h3 {
            font-size: 14px;
            font-weight: 600;
            color: #2c3e50;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            width: 100%;
            text-align: center;
        }

    .focus-slider .slider-controls {
        position: absolute;
        bottom: 20px;
        left: 0;
        right: 0;
        display: flex;
        justify-content: center;
        z-index: 10;
    }

    .focus-slider .slider-dots {
        display: flex;
        gap: 15px;
        background: rgba(255, 255, 255, 0.95);
        padding: 12px 20px;
        border-radius: 25px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
        border: 1px solid #f0f0f0;
    }

    .focus-slider .dot {
        width: 30px;
        height: 4px;
        border-radius: 2px;
        background: #dddddd;
        cursor: pointer;
        transition: all 0.3s ease;
    }

        .focus-slider .dot.active {
            background: #ff416c;
            transform: scale(1.1);
        }

/* 响应式设计 - 在所有断点都保持150px高度 */
@media (max-width: 1200px) {
    .focus-slider .image-container {
        height: 170px !important;
    }

    .focus-slider .slide-item img {
        height: 170px !important;
    }
}

@media (max-width: 992px) {
    .focus-slider .slide-frame {
        flex-direction: column;
        padding: 15px;
    }

    .focus-slider .image-container {
        height: 170px !important;
    }

    .focus-slider .slide-item img {
        height: 170px !important;
    }
}

@media (max-width: 768px) {
    .focus-slider .image-container {
        height: 170px !important;
    }

    .focus-slider .slide-item img {
        height: 170px !important;
    }

    .focus-slider .slide-title {
        padding: 12px;
        min-height: 45px;
    }

        .focus-slider .slide-title h3 {
            font-size: 13px;
        }

    .focus-slider .hot-tag {
        font-size: 11px;
        padding: 5px 12px;
        padding-left: 16px;
        border-radius: 0 0 0 20px;
    }

    .focus-slider .dot {
        width: 25px;
    }
}

@media (max-width: 480px) {
    .focus-slider .image-container {
        height: 170px !important;
    }

    .focus-slider .slide-item img {
        height: 170px !important;
    }

    .focus-slider .slide-title {
        min-height: 40px;
    }

    .focus-slider .hot-tag {
        font-size: 10px;
        padding: 4px 10px;
        padding-left: 14px;
        border-radius: 0 0 0 18px;
    }

    .focus-slider .dot {
        width: 20px;
    }
}
