/* 轮播容器 */
.carousel-container {
    position: relative;
    width: 100%;
    height: 300px;  /* 从380px降低到300px */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    margin-left: 30px;  /* 添加这行，让轮播区向右移动 */
}

/* 轮播项目容器 */
.carousel-items {
    display: flex;
    width: 400%;  /* 4张图片 */
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    width: 25%;  /* 4张图片，每张占25% */
    height: 100%;
    position: relative;
}

/* 轮播项目内容样式 */
.carousel-image {
    width: 100%;
    height: 100%;
}

.carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 轮播控制按钮 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(139, 69, 19, 0.6);
    border: none;
    border-radius: 50%;
    color: #FFF;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(139, 69, 19, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #8B4513;
    transform: scale(1.2);
}

/* 图片标题和描述 */
.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #FFF;
    text-align: center;
}

.carousel-caption h3 {
    margin: 0;
    font-size: 1.5rem;
    font-family: "FangSong", "STFangsong", serif;
    margin-bottom: 8px;
}

.carousel-caption p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
}

/* 适配移动端的响应式高度 */
@media screen and (max-width: 768px) {
    .carousel-container {
        height: 220px;  /* 从280px降低到220px */
    }
    
    .carousel-caption h3 {
        font-size: 1.2rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    .carousel-container {
        height: 180px;  /* 从220px降低到180px */
    }
} 