/* ================= 核心样式 ================= */
.slide-container {
    position: relative;
    width: 100%;
    height: 210px;
    margin: 0 auto 15px;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    background: #f0f2f5;
}

/* ================= 链接层修正 ================= */
.slide-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* 在图片上层但低于内容层 */
    cursor: pointer;
}

.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.slide-item.active {
    opacity: 1;
    z-index: 2;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.95);
    transition: filter 0.8s ease;
}

.slide-item.active .slide-image {
    filter: brightness(1);
}

/* ================= 内容区域 ================= */
.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s ease 0.3s;
    z-index: 3; /* 确保内容在链接层之上 */
}

.slide-item.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.slide-content h3 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* ================= 导航元素 ================= */
/* ================= 箭头导航 - 精准居中磨砂效果 ================= */
.slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%); /* 确保垂直居中 */
    width: 50px;
    height: 50px;
    margin: 0; /* 清除默认边距 */
    padding: 0;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center; /* 内容垂直居中 */
    justify-content: center; /* 内容水平居中 */
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    outline: none; /* 移除焦点轮廓 */
}

/* 悬停状态 */
.slide-arrow:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}

/* 左右箭头定位 */
.slide-arrow.prev {
    left: 30px;
}

.slide-arrow.next {
    right: 30px;
}

/* 容器悬停时显示箭头 */
.slide-container:hover .slide-arrow {
    opacity: 1;
}

/* ================= 磨砂玻璃效果增强 ================= */
.slide-arrow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    backdrop-filter: inherit;
    border-radius: inherit;
    z-index: -1;
}

/* ================= 响应式调整 ================= */
@media (max-width: 768px) {
    .slide-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
        opacity: 1 !important; /* 移动端始终显示 */
    }
    
    .slide-arrow.prev {
        left: 15px;
    }
    
    .slide-arrow.next {
        right: 15px;
    }
}


/* ================= 分页指示器 ================= */
.slide-pagination {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 3;
}

.slide-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slide-dot.active {
    background: white;
    transform: scale(1.3);
}

/* ================= 过渡效果 ================= */
/* 淡入淡出 */
.fade-effect {
    opacity: 0;
}
.fade-effect.active {
    opacity: 1;
}

/* 滑动效果 */
.slide-effect {
    transform: translateX(100%);
    opacity: 1;
}
.slide-effect.active {
    transform: translateX(0);
}
.slide-effect.prev {
    transform: translateX(-100%);
}

/* ================= 响应式设计 ================= */
@media (max-width: 768px) {
    .slide-container {
        height: 350px;
        border-radius: 12px;
    }
    
    .slide-content {
        padding: 1.5rem;
    }
    
    .slide-content h3 {
        font-size: 1.8rem;
    }
    
    .slide-arrow {
        width: 40px;
        height: 40px;
        opacity: 1;
    }
}

/* ==================== 超小屏幕适配（如 iPhone SE） ==================== */
@media (max-width: 480px) {
    .slide-container {
        height: 110px !important; /* 进一步降低高度 */
    }
    .slide-content h3 {
        font-size: 1em !important; /* 标题更小 */
        margin-bottom: 5px;
    }
    .slide-content {
        padding: 15px !important;
    }
    .slide-arrow {
        width: 25px !important;
        height: 25px !important;
        font-size: 0.8em; /* 箭头符号缩小 */
    }