/* 幻灯片样式 */
.slider-container {
    position: relative;
    width: 40%; /* 从30%增加到40%（增加当前宽度的1/3） */
    max-width: 800px; /* 从600px增加到800px（增加1/3） */
    height: 30vh; /* 原来15vh的2倍 */
    min-height: 240px; /* 原来120px的2倍 */
    margin: 40px auto 60px; /* 调整外边距，原来20px auto 30px的2倍 */
    overflow: hidden;
    border-radius: 20px; /* 适应新尺寸的圆角，原来10px的2倍 */
    background: linear-gradient(135deg, #111827 0%, #2a3655 100%); /* 更亮的背景色调 */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); /* 减轻阴影深度 */
    transform-style: preserve-3d;
    perspective: 2000px; /* 适应新尺寸的透视效果，原来1000px的2倍 */
    z-index: 10;
    display: flex; /* 使用flex布局 */
    align-items: center; /* 垂直居中内容 */
    justify-content: center; /* 水平居中内容 */
}

/* 在小屏幕上适当增加宽度 */
@media (max-width: 992px) {
    .slider-container {
        width: 80%; /* 从60%增加到80%（增加当前宽度的1/3） */
        height: 30vh; /* 原来15vh的2倍 */
    }
}

@media (max-width: 768px) {
    .slider-container {
        width: 100%; /* 从90%增加到100%（增加当前宽度的1/3但不超过100%） */
        height: 37.5vh !important; /* 恢复原来的高度37.5vh */
        min-height: 250px !important; /* 最小高度 */
        max-height: 37.5vh !important; /* 恢复原来的最大高度37.5vh */
        margin: 30px auto 40px; /* 减小外边距，避免占用太多空间 */
        transition: none !important; /* 禁用高度动画过渡 */
    }
    
    /* 确保track也有固定高度 */
    .slider-track {
        height: 100% !important; 
        min-height: inherit !important;
        max-height: inherit !important;
    }
    
    /* 调整幻灯片高度比例 */
    .slider-slide {
        height: 70% !important; /* 确保幻灯片高度与容器保持合适比例 */
    }
    
    .slider-slide {
        width: 35%;
    }
    
    .slider-slide.position-2,
    .slider-slide.position-minus-2 {
        display: none;
    }
    
    .slider-btn {
        width: 40px; /* 原来20px的2倍 */
        height: 40px; /* 原来20px的2倍 */
        font-size: 20px; /* 原来10px的2倍 */
    }
    
    .slider-controls {
        bottom: 10px; /* 原来5px的2倍 */
    }
}

/* 在非常小的屏幕上进一步调整 */
@media (max-width: 480px) {
    .slider-container {
        width: 100%; /* 原来60%的2倍，但最大为100% */
        height: 37.5vh !important; /* 恢复原来的高度37.5vh */
        min-height: 200px !important; /* 最小高度 */
        max-height: 37.5vh !important; /* 恢复原来的最大高度37.5vh */
        margin: 20px auto 30px; /* 进一步减小外边距 */
    }
}

/* 添加未来风格类 */
.slider-container.futuristic-slider {
    background: linear-gradient(135deg, #111827 0%, #2a3655 100%); /* 更亮的背景色调 */
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 100%); /* 降低暗色区域的不透明度从0.8到0.3 */
    z-index: 5;
    pointer-events: none;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-slide {
    position: absolute;
    width: 19.5%;
    height: 70%;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    will-change: transform, opacity;
    opacity: 0.8; /* 提高默认不透明度从0.6到0.8 */
    transform: scale(0.9) translateZ(-50px); /* 减小Z轴移动 */
    border-radius: 5px; /* 减小圆角 */
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* 减小阴影深度从0.5到0.3 */
}

.slider-slide.loaded {
    opacity: 1; /* 提高已加载幻灯片的不透明度到1 */
}

.slider-slide.error {
    background: linear-gradient(135deg, #330000 0%, #550000 100%);
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 5px; /* 确保图片有圆角 */
    filter: brightness(130%); /* 增加所有图片的亮度 */
}

/* 优化显示在小型幻灯片里的图片质量 */
.slider-slide.position-0 img {
    filter: contrast(110%) brightness(150%); /* 增加中心图片的亮度从105%到150% */
}

/* 调整幻灯片在容器中的位置，使其更紧凑 */
.slider-slide.position-0 {
    transform: scale(1.1) translateZ(60px) rotateY(0deg); /* 原来30px的2倍 */
    z-index: 10;
    opacity: 1;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.8); /* 原来0 3px 6px的2倍 */
    animation: pulse 2s infinite alternate;
}

/* 添加高亮脉冲动画 */
@keyframes pulse {
    0% {
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.8); /* 原来0 3px 6px的2倍 */
    }
    100% {
        box-shadow: 0 6px 12px rgba(50, 100, 255, 0.6); /* 原来0 3px 6px的2倍 */
    }
}

.slider-slide.position-1 {
    transform: scale(0.85) translateZ(0) rotateY(25deg) translateX(30%); /* 微调位置和角度 */
    z-index: 9;
    opacity: 0.8;
}

.slider-slide.position-2 {
    transform: scale(0.75) translateZ(-20px) rotateY(35deg) translateX(60%); /* 微调位置和角度 */
    z-index: 8;
    opacity: 0.6;
}

.slider-slide.position-minus-1 {
    transform: scale(0.85) translateZ(0) rotateY(-25deg) translateX(-30%); /* 微调位置和角度 */
    z-index: 9;
    opacity: 0.8;
}

.slider-slide.position-minus-2 {
    transform: scale(0.75) translateZ(-20px) rotateY(-35deg) translateX(-60%); /* 微调位置和角度 */
    z-index: 8;
    opacity: 0.6;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3px; /* 减小内边距 */
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom-left-radius: 5px; /* 减小圆角 */
    border-bottom-right-radius: 5px; /* 减小圆角 */
    font-size: 4px; /* 减小字体 */
    display: none; /* 隐藏幻灯片内容 */
}

.slider-slide.position-0 .slide-content {
    opacity: 1;
    transform: translateY(0);
    display: none; /* 隐藏活动幻灯片内容 */
}

/* 增加按钮显示度 */
.slider-controls {
    position: absolute;
    bottom: 14px; /* 原来7px的2倍 */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px; /* 原来5px的2倍 */
    z-index: 100;
}

.slider-btn {
    width: 30px; /* 原来15px的2倍 */
    height: 30px; /* 原来15px的2倍 */
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    color: white;
    font-size: 16px; /* 原来8px的2倍 */
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: buttonPulse 2s infinite alternate;
    line-height: 1;
}

@keyframes buttonPulse {
    0% {
        background: rgba(255,255,255,0.4);
    }
    100% {
        background: rgba(255,255,255,0.7);
    }
}

.slider-btn:hover {
    background: rgba(255,255,255,0.7);
    transform: scale(1.1);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.7); /* 原来0 0 3px的2倍 */
}

.slider-prev {
    left: 6px; /* 原来3px的2倍 */
}

.slider-next {
    right: 6px; /* 原来3px的2倍 */
}

.slider-dots {
    position: absolute;
    bottom: 6px; /* 原来3px的2倍 */
    left: 0;
    right: 0;
    display: none; /* 隐藏点状指示器 */
    justify-content: center;
    gap: 4px; /* 原来2px的2倍 */
    z-index: 10;
}

.slider-dot {
    width: 24px; /* 原来12px的2倍 */
    height: 24px; /* 原来12px的2倍 */
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: none; /* 隐藏单个点 */
}

.slider-dot.active {
    background: #fff;
    transform: scale(1.2);
    display: none; /* 隐藏活动点 */
}

/* 心形效果 */
.heart-shape {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.slider-slide.position-0 .heart-shape {
    opacity: 0.2;
}

.heart-shape:before,
.heart-shape:after {
    content: "";
    position: absolute;
    top: 0;
    width: 52%;
    height: 80%;
    background: rgba(255, 105, 180, 0.3);
    border-radius: 50%;
}

.heart-shape:before {
    left: 0;
    transform: rotate(-45deg);
    transform-origin: 100% 100%;
}

.heart-shape:after {
    right: 0;
    transform: rotate(45deg);
    transform-origin: 0 100%;
}

/* 幻灯片进入和离开时的3D变换效果 */
.slider-slide {
    transform-origin: center center;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 入场动画 */
@keyframes slideEnter {
    0% {
        transform: scale(0.5) translateZ(-500px);
        opacity: 0;
    }
    100% {
        transform: scale(1.2) translateZ(200px) rotateY(0deg);
        opacity: 1;
    }
}

/* 离场动画 */
@keyframes slideExit {
    0% {
        transform: scale(1.2) translateZ(200px) rotateY(0deg);
        opacity: 1;
    }
    100% {
        transform: scale(0.5) translateZ(-500px);
        opacity: 0;
    }
}

.slider-slide.entering {
    animation: slideEnter 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.slider-slide.exiting {
    animation: slideExit 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* 响应式样式 */
@media (max-width: 992px) {
    .slider-container {
        height: 70vh;
    }
    
    .slider-slide {
        width: 25%;
    }
}

@media (max-width: 576px) {
    .slider-container {
        height: 37.5vh; /* 增加四分之一，固定高度 */
    }
    
    .slider-slide {
        width: 60%;
    }
    
    .slider-slide.position-1,
    .slider-slide.position-minus-1 {
        transform: scale(0.8) translateZ(-100px) rotateY(20deg) translateX(30%); /* Z轴原来-50px的2倍 */
    }
    
    .slider-slide.position-minus-1 {
        transform: scale(0.8) translateZ(-100px) rotateY(-20deg) translateX(-30%); /* Z轴原来-50px的2倍 */
    }
    
    .slider-btn {
        width: 80px; /* 原来40px的2倍 */
        height: 80px; /* 原来40px的2倍 */
        font-size: 36px; /* 原来18px的2倍 */
    }
} 