/**
 * 轮播图样式
 * 包含所有轮播图相关的样式定义
 */

/* 轮播图容器和相关元素 */
.photo-gallery {
    margin: 20px 0;
}

.gallery-category {
    margin-bottom: 40px;
}

.gallery-category h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    border-left: 4px solid #6e57e0;
    padding-left: 10px;
}

.gallery-category h3 span {
    font-size: 14px;
    color: #888;
    margin-left: 10px;
    font-weight: normal;
}

/* 轮播图容器 */
.carousel-container {
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.carousel-wrapper {
    overflow: hidden;
}

/* 轮播图主体 */
.carousel {
    display: flex;
    transition: transform 0.5s ease;
    touch-action: pan-y;
}

.carousel-item {
    min-width: 100%;
    box-sizing: border-box;
}

/* 照片卡片 */
.photo-card {
    width: 100%;
    cursor: pointer;
}

.photo-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-card:hover .photo-container img {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 15px;
    color: white;
}

.photo-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.photo-desc {
    font-size: 14px;
    opacity: 0.9;
}

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

.carousel-control:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.carousel-control.prev {
    left: 10px;
}

.carousel-control.next {
    right: 10px;
}

.arrow {
    border: solid #333;
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 3px;
}

.right {
    transform: rotate(-45deg);
}

.left {
    transform: rotate(135deg);
}

/* 轮播指示点 */
.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

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

.dot.active {
    background-color: white;
    transform: scale(1.2);
}

/* 照片弹窗样式 */
.photo-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    transition: opacity 0.3s ease;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 4px;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    text-align: center;
    color: white;
    padding: 10px 0;
    position: absolute;
    bottom: 10%;
    left: 10%;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 4px;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .carousel-control {
        width: 30px;
        height: 30px;
    }

    .photo-title {
        font-size: 16px;
    }

    .photo-desc {
        font-size: 12px;
    }

    .modal-content {
        max-width: 95%;
    }

    .modal-caption {
        width: 90%;
        left: 5%;
    }
} 