﻿.layui-carousel-container {
    position: relative;
    width: 100%;
    height: 500px; /* 占屏幕高度的三分之一 */
    overflow: hidden;
}

    .layui-carousel-container img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* 保证填满同时不变形 */
    }

.carousel-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: rgb(49 47 47 / 46%);
    border: 0px solid #D5D5D5;
    padding: 10px 20px;
    z-index: 10;
    width: 70%;
}

@media screen and (max-width: 1600px) {
    .carousel-menu {
        width: 80%;
    }
}

.menu-item {
    flex: 1;
    text-align: center;
    font-size: 16px;
    font-weight: normal;
    color: white;
    cursor: pointer;
}

    .menu-item:hover {
        font-weight: bold;
        color: #ee4c0c;
        font-size: 16px;
    }

.section-container {
    margin: 40px auto;
    width: 1000px;
}

@media (min-width: 1600px) {
    .section-container {
        width: 1200px;
    }
}

.section-title {
    color: #ffcc00;
    font-size: 24px;
    margin-bottom: 20px;
}

/* 第一部分：左右结构 */
.section-one-content {
    display: flex;
    gap: 20px;
}

.left-block {
    width: 25%;
}

.right-block {
    width: 75%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.left-block img {
    width: 100%;
    object-fit: cover;
    height: 440px;
}

.right-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
}

.img-title {
    font-size: 16px;
    margin: 5px 0 2px;
    color: #333;
}

.img-desc {
    font-size: 14px;
    color: #666;
}

/* 第二部分：整图加悬浮箭头 */
.section-two-content {
    position: relative;
}

    .section-two-content img {
        width: 100%;
        object-fit: cover;
    }

.overlay-box {
    position: absolute;
    top: 40%;
    right: 0;
    width: 35%;
    height: 100px;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明灰色 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    color: white;
    cursor: pointer;
}

.overlay-title {
    font-size: 1.5rem;
    white-space: nowrap;
    overflow: hidden;
    padding: 15px;
    text-overflow: ellipsis;
}

.overlay-img {
    width: auto !important;
    object-fit: cover;
    padding: 15px;
    border-radius: 4px;
}

/* 第三部分：横向滚动容器 */
.swiper-slide {
    box-sizing: border-box;
}

.item {
    background: #fff;
    overflow: hidden;
    transition: transform 0.3s;
}

    .item:hover {
        transform: scale(1.05);
    }

    .item img {
        width: 100%;
        object-fit: cover;
    }

.img-title {
    font-size: 16px;
    font-weight: bold;
    margin: 10px;
}

.img-desc {
    font-size: 14px;
    color: #666;
    margin: 0 10px 10px;
}

/* 自定义箭头样式（替换默认） */
.swiper-button-next,
.swiper-button-prev {
    width: 48px !important;
    height: 48px !important;
    background-color: rgba(0, 0, 0, 0.4);
    background-size: 20px 20px;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%; /* 圆形 */
    font-size: 12px !important;
    position: absolute;
    top: 40% !important;
    color: white !important;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    cursor: pointer;
}

.swiper-button-prev {
    left: -20px;
}

.swiper-button-next {
    right: -20px;
}

/* 鼠标移入容器才显示箭头 */
.swiper:hover .swiper-button-next,
.swiper:hover .swiper-button-prev {
    opacity: 1;
}
