/* 幻灯片样式 */
.slide-section {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.slide-container {
    position: relative;
    width: 100%;
    height: 650px;
    max-height: 650px;
    overflow: hidden;
}

/* 基础触摸友好样式 */
.nav-dot {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.slide-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

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

.slide-content {
    position: absolute;
    bottom: 20%;
    left: 10%;
    max-width: 50%;
    color: #fff;
    text-align: left;
    z-index: 3;
}

.slide-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-nav {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 4;
}

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

.nav-dot:hover,
.nav-dot.active {
    background-color: #fff;
    transform: scale(1.2);
}

/* 响应式设计 - 平板和大屏手机 */
@media (max-width: 768px) {
    .slide-container {
        height: 400px;
        max-height: 400px;
    }
    
    .slide-content {
        bottom: 15%;
        left: 5%;
        right: 5%;
        max-width: 90%;
        text-align: center;
        padding: 0 1rem;
    }
    
    .slide-title {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 0.8rem;
    }
    
    .slide-description {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1.2rem;
    }
    
    /* 增大导航点尺寸，提高触摸友好性 */
    .nav-dot {
        width: 14px;
        height: 14px;
    }
}

/* 响应式设计 - 手机 */
@media (max-width: 480px) {
    .slide-container {
        height: 300px;
        max-height: 300px;
    }
    
    .slide-content {
        bottom: 12%;
        left: 4%;
        right: 4%;
        max-width: 92%;
    }
    
    .slide-title {
        font-size: 1.5rem;
        margin-bottom: 0.6rem;
    }
    
    .slide-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* 进一步增大导航点 */
    .nav-dot {
        width: 16px;
        height: 16px;
    }
    
    /* 优化按钮样式 */
    .btn.btn-primary {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* 响应式设计 - 小屏幕手机 */
@media (max-width: 360px) {
    .slide-container {
        height: 250px;
        max-height: 250px;
    }
    
    .slide-title {
        font-size: 1.3rem;
    }
    
    .slide-description {
        font-size: 0.85rem;
    }
}