/* 前端样式 - 支持箭头显示/隐藏 */
.smart-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 30px 0 60px 0;
}

.smart-slider-container {
    position: relative;
    width: 100%;
    height: var(--slide-height, 480px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.smart-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.smart-slide {
    position: absolute;
    width: var(--slide-width, 780px);
    height: var(--slide-height, 480px);
    border-radius: 0;
    overflow: hidden;
    /*box-shadow: 0 18px 35px -8px rgba(0, 0, 0, 0.15);*/
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease;
    opacity: 1;
    will-change: transform, opacity;
    background: #fff;
}

.smart-slide.active {
    opacity: 1;
    z-index: 30;
    box-shadow: 0 25px 45px -8px rgba(0, 0, 0, 0);
}

.slide-background {
    width: 100%;
    height: 100%;
}

.slide-background img {
    width: 100%;
    margin-left:10px;
    margin-right:10px;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.smart-slide:hover img {
    /*transform: scale(1.03);*/
}

.slide-content {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 70%;
    /*background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);*/
    padding: clamp(25px, 5vw, 45px) clamp(20px, 4vw, 40px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
    z-index: 10;
    border-radius: 0;
    backdrop-filter: blur(1px);
}

.slide-title {
    font-size: clamp(22px, 5vw, 36px);
    font-weight: 700;
    line-height: 1.2;
    color: white;
    margin-bottom: clamp(8px, 2vw, 16px);
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.slide-description {
    font-size: clamp(13px, 2vw, 15px);
    line-height: 1.6;
    max-width: min(80%, 500px);
    margin-bottom: clamp(15px, 3vw, 28px);
    opacity: 0.9;
    font-weight: 400;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.slide-button a {
    display: inline-block;
    padding: clamp(10px, 2vw, 14px) clamp(20px, 4vw, 34px);
    background: var(--button-color, #10d479);
    color: var(--button-text-color, #ffffff);
    border-radius: 60px;
    font-weight: 600;
    font-size: clamp(14px, 2vw, 16px);
    text-decoration: none;
    box-shadow: 0 12px 25px -8px rgba(16, 212, 121, 0.4);
    transition: all 0.2s ease;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(2px);
    white-space: nowrap;
}

.slide-button a:hover {
    background: var(--button-hover-color, #0fb96b);
    color: var(--button-text-hover-color, #ffffff);
    transform: translateY(-2px);
    /*box-shadow: 0 18px 30px -6px rgba(16, 212, 121, 0.5);*/
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(42px, 6vw, 56px);
    height: clamp(42px, 6vw, 56px);
    background: var(--arrow-bg-color, rgba(0,0,0,0.3));
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--arrow-color, #ffffff);
    font-size: clamp(20px, 3vw, 28px);
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    z-index: 100;
    border: 1px solid rgba(255,255,255,0.1);
}

.slider-arrow.prev {
    left: clamp(15px, 4vw, 35px);
}

.slider-arrow.next {
    right: clamp(15px, 4vw, 35px);
}

.slider-arrow:hover {
    background: var(--button-color, #10d479);
    color: white;
    transform: translateY(-50%) scale(1.07);
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: clamp(6px, 1.2vw, 10px);
    z-index: 10;
    background: transparent;
    padding: clamp(4px, 1.2vw, 8px) clamp(12px, 3vw, 20px);
}

.slider-dots .dot {
    width: clamp(5px, 1vw, 7px);
    height: clamp(5px, 1vw, 7px);
    background: var(--dot-color, #999999);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.slider-dots .dot:hover {
    background: #ccc;
    transform: scale(1.4);
    box-shadow: 0 0 10px rgba(153, 153, 153, 0.5);
}

.slider-dots .dot.active {
    background: var(--dot-active-color, #10d479);
    width: clamp(16px, 3.5vw, 22px);
    box-shadow: 0 0 15px var(--dot-active-color, #10d479);
    border-radius: 20px;
    transform: scale(1);
}

.slider-dots .dot.active:hover {
    background: var(--dot-active-color, #10d479);
    box-shadow: 0 0 20px var(--dot-active-color, #10d479);
}

.slider-dots .dot.active::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: radial-gradient(circle at center, rgba(16, 212, 121, 0.4) 0%, transparent 70%);
    border-radius: 20px;
    opacity: 0.5;
    z-index: -1;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
    100% { opacity: 0.2; transform: scale(1); }
}

.slider-play-pause {
    position: absolute;
    bottom: 15px;
    right: clamp(15px, 4vw, 35px);
    width: clamp(24px, 4vw, 30px);
    height: clamp(24px, 4vw, 30px);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: clamp(12px, 2vw, 15px);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 110;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.slider-play-pause:hover {
    background: #224e4f;
    border-color: #224e4f;
    transform: scale(1.15);
    box-shadow: 0 0 15px rgba(34, 78, 79, 0.6);
}

/* 箭头隐藏时的样式调整 */
.smart-slider-wrapper:not(:has(.slider-arrow)) .slider-dots {
    bottom: 20px;
}

@media (max-width: 768px) {
    .smart-slide {
        width: 85vw;
        height: auto;
        aspect-ratio: 780 / 480;
    }
    
    .smart-slider-container {
        height: 60vw;
    }
}

@media (max-width: 480px) {
    .slide-content {
        padding: 15px;
    }
    
    .slide-title {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .slide-description {
        font-size: 12px;
        margin-bottom: 12px;
        max-width: 100%;
    }
    
    .slide-button a {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .slider-dots {
        bottom: 10px;
    }
    
    .slider-play-pause {
        bottom: 12px;
    }
}