/* 轮播图样式 */
.carousel {
    margin-bottom: 2rem;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.carousel-slide {
    display: none;
    width: 100%;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    z-index: 10;
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
}

/*----------------------------*/

/* activity.css */
/* 主内容区域样式 */
/* 新增自定义样式 */
.section-title {
    font-family: 'MaShanZheng', cursive;
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #8b0000;
    margin-top: 3rem;
}

.main-title {
    font-family: 'STXingkai', cursive;
    font-size: 2.8rem;
    text-align: center;
    margin: 2rem 0;
    position: relative;
    padding-bottom: 1rem;
}

.main-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: #8b0000;
}

.image-group {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.main-image {
    flex: 0 1 50%;
    max-width: 600px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.side-images {
    flex: 0 1 25%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.side-image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.desc-container {
    text-align: center;
    margin: 2rem auto;
    max-width: 800px;
    padding: 1.5rem;
    background: #fff9f9;
    border-radius: 8px;
}

/* 新增图片布局样式 */
.image-layout {
    display: flex;
    gap: 20px;
    margin: 2rem 0;
}

.main-image-container {
    flex: 2;
    cursor: pointer;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.side-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.side-image-container {
    height: calc(50% - 10px);
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.fixed-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

/* 点击放大相关样式 */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 999;
    justify-content: center;
    align-items: center;
}
.modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}
.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}
/* 新增图片尺寸控制 */
.main-image-container {
    width: 1200px;
    height: 600px;
    margin: 0 auto;
}

.side-image-container {
    width: 500px;
    height: 300px;
}

/* 调整图片布局 */
.image-layout {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.side-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 响应式调整 */
@media (max-width: 1300px) {
    .main-image-container {
        width: 100%;
        height: 50vw;
    }

    .side-image-container {
        width: calc(50% - 10px);
        height: 30vw;
    }
}

@media (max-width: 768px) {
    .main-image-container {
        height: 60vw;
    }

    .side-image-container {
        height: 40vw;
    }
}
/* 更新悬停效果 */
.main-image-container:hover img,
.side-image-container:hover img {
    transform: scale(1.05);
}

.fixed-image {
    transition: transform 0.3s ease;
}
/* 基础重置 */
.activity-card {
    margin: 4rem 0;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.feature-list li {
    padding: 0.8rem;
    margin: 0.5rem 0;
    background: #fff5f5;
    border-left: 4px solid #8b0000;
    font-size: 1.1rem;
}

.feature-img {
    width: 80%;
    margin: 2rem auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 图片布局样式 */
.image-layout {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.main-image-container {
    flex: 2;
    cursor: pointer;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    height: 50vw;
    max-height: 600px;
}

.side-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 50%;
    max-width: 300px;
}

.side-image-container {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    height: calc((50vw - 10px) / 2);
    max-height: 295px;
}

.fixed-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

/* 悬停效果 */
.main-image-container:hover .fixed-image,
.side-image-container:hover .fixed-image {
    transform: scale(1.05);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .image-layout {
        flex-direction: column;
        width: 90%;
    }

    .main-image-container {
        order: 0;
        height: 60vw;
        max-height: none;
    }

    .side-column {
        flex-direction: row;
        order: 1;
        width: 100%;
        justify-content: space-around;
        margin-top: 20px;
    }

    .side-image-container {
        width: 45%;
        height: 30vw;
        max-height: none;
    }
}