/* 轮播容器样式 */
.banner-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

/* 图片列表样式 */
.banner-list {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

/* 单张图片样式 */
.banner-item {
    min-width: 100%;
    height: 350px;
    position: relative;
}

/* 单张图片样式 */
.banner-topmengban {
    width: 1000px;
    height: 350px;
    position: absolute;
    z-index: 10;
    top:0px;
    left:0px;
}

.banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 控制按钮 */
.control-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 15px;
    border: none;
    cursor: pointer;
    font-size: 24px;
}

.prev-btn {
    left: 0;
    border-radius: 0 5px 5px 0;
    z-index: 30;
}

.next-btn {
    right: 0;
    border-radius: 5px 0 0 5px;
    z-index: 30;
}

/* 指示器样式 */
.indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 30;
}

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

.indicator-item.active {
    background: rgba(255,255,255,0.9);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .banner-item {
        height: 300px;
    }

    .control-btn {
        padding: 10px;
        font-size: 18px;
    }
}

.pic-box-dmsy{
    display: flex;        /* 启用弹性布局 */
    gap: 10px;            /* 可选：设置子元素间距 */
    flex-wrap: wrap;
    width:100%;

}

.tiaozhuan {
    border: 1px solid #dcdcdc;
    color: #999;
    font-size: 12px;
}

.dmsy-img {
    width: 255px;

}


.h5body {
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    font-family: Arial, sans-serif;
}
.carousel {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}
.carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    border-radius: 10px; /* 添加圆角 */
}
.carousel img.active {
    opacity: 1;
}
.category-bar {
    display: flex;
    justify-content: space-around;
    padding: 10px;
    background-color: #f0f0f0;
}
.category-bar div {
    padding: 5px 10px;
    cursor: pointer;
}
.category-bar div.active {
    border-bottom: 2px solid #000;
}
.image-grid {
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
}
.image-grid .image-item {
    width: calc(50% - 10px);
    margin: 5px;
    aspect-ratio: 2 / 1;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #999;
    border-radius: 10px; /* 添加圆角 */
    overflow: hidden; /* 确保图片圆角生效 */
}
.image-grid .image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px; /* 确保图片圆角 */
}
.load-more {
    text-align: center;
    padding: 5px;
    background-color: #f0f0f0;
    cursor: pointer;
    border-radius: 10px; /* 添加圆角 */
}


/* 轮播容器样式 */
.h5-banner-container {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1;
    margin: 0 auto;
    overflow: hidden;
}

/* 图片列表样式 */
.h5-banner-list {
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease-in-out;
    white-space: nowrap; /* 防止子元素换行 */
}

/* 单张图片样式 */
.h5-banner-item {
    flex: 0 0 100%;
    width: 100%;
    width: 100%;
    height: 100%;
    box-sizing: border-box; /* 包括填充和边框在内计算宽度 */
}

/* 单张图片样式 */
.h5-banner-topmengban {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 10;
    top:0px;
    left:0px;
}

.h5-banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 控制按钮 */
.h5-control-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 15px;
    border: none;
    cursor: pointer;
    font-size: 24px;
}

.h5-prev-btn {
    left: 0;
    border-radius: 0 5px 5px 0;
    z-index: 30;
}

.h5-next-btn {
    right: 0;
    border-radius: 5px 0 0 5px;
    z-index: 30;
}

/* 导航栏样式 */
.h5-home-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1vw; /* 使用vw单位来设置内边距，使其响应式 */
    background-color: white;
    color: black;
}

/* Logo样式 */
.h5-logo img {
    height: 6vw; /* 使用vw单位来设置logo高度，使其响应式 */
    width: auto; /* 保持logo的宽高比 */
}

/* 导航栏菜单样式 */
.h5-menu {
    /* 此处可根据需求设置高度，例如：height: 60px; */
    /* 若要填满整个视口高度，可使用：height: 100vh; */
    display: flex;
    justify-content: center; /* 水平居中，若不需要可删除 */
    align-items: center; /* 垂直居中 */
}

/* 菜单样式 */
.h5-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1vw; /* 使用vw单位来设置菜单项之间的间距，使其响应式 */
}

.h5-menu li a {
    color: black;
    text-decoration: none;
    font-size: 1.5vw; /* 使用vw单位来设置字体大小，使其响应式 */
    padding: 0.5vw 1vw; /* 使用vw单位来设置内边距，增加点击区域 */
    display: block;
    border-radius: 5px; /* 可选：增加圆角 */
    transition: background-color 0.3s ease; /* 可选：添加背景色过渡效果 */
}

.h5-hover-box {
    display: block;
    color: #07237a;
    align-items: center;
    justify-content: center;

}

/* 确保在小屏幕上也能保持一行显示，如果需要的话，可以添加媒体查询来调整样式 */
@media (max-width: 1068px) {
    .h5-menu ul {
        flex-wrap: nowrap; /* 确保菜单项不换行 */
        overflow-x: auto; /* 如果菜单项过多导致溢出，则允许水平滚动 */
        white-space: nowrap; /* 防止文本换行 */
    }

    .h5-menu li a {
        font-size: 2.5vw; /* 在小屏幕上可能需要调整字体大小 */
    }
}

/* 遮罩层样式 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow: hidden;
}

.overlay-content {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.overlay-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.overlay-content::after {
    content: "DAMEISHUNYI";
    position: absolute;
    bottom: 45%;
    right: 25%;
    color: rgba(255, 255, 255, 0.7);
    font-size: 8vw;
    background: rgba(0, 0, 0, 0);
    padding: 0.5vw;
    transform: rotate(-15deg);
    opacity: 0.6; /* 50%透明度 */
}


