/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    background-color: #f5f5f5;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

/* 顶部图片样式 */
.banner {
    width: 100%;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    display: block;
}

/* 导航栏样式 */
.nav-bar {
    display: flex;
    width: 100%;
    background-color: #ffa726; /* 橙色导航栏，与图片中的色调保持一致 */
}
.nav-bar div{
    width: 1200px;
    margin: 0 auto;
    height: 80px;
    display: flex;
    justify-content: space-between;
}
.nav-item {
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s;
    width: 300px;
    line-height:80px;
    display: block;
    font-family: PingFangSC, PingFang SC;
    font-weight: 500;
    font-size: 24px;
    color: #fff;
    text-align: center;
    font-style: normal;
    cursor: pointer;
}

.nav-item:hover {
    background-color: #ff9800; /* 鼠标悬停时稍微深一点的颜色 */
}

.nav-item.active {
    background-color: #eb7200; /* 当前选中的导航项背景色 */
    position: relative;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #fff9e6; /* 箭头颜色与内容区背景色相同 */
}

/* 内容区域样式 */
.legislation {
    background-color: #fff9e6;
    padding: 30px 0;
    /* min-height: 100vh; */
}

.legislation_box {
    width: 1200px;
    margin: 0 auto;
    border-radius: 8px;
}

.legislation_intro {
    font-family: PingFangSC, PingFang SC;
    font-weight: 500;
    font-size: 22px;
    color: #2f2e2e;
    line-height: 30px;
    text-align: center;
    font-style: normal;
    /* padding: 20px; */
    /* border-bottom: 1px solid #eee; */
    margin-bottom: 20px;
}

.legislation_activity {
    text-align: center;
    margin: 30px 0;
}

.legislation_activity_img {
    max-width: 100%;
}

.legislation_text {
    font-family: PingFangSC, PingFang SC;
    font-weight: 400;
    font-size: 20px;
    color: #2f2e2e;
    line-height: 28px;
    text-align: center;
    font-style: normal;
    margin-bottom: 40px;
}

.legislation_bottom {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    padding-bottom: 100px;
}

.legislation_bottom_left,
.legislation_bottom_right {
    width:490px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    background-position: center;
    background-size: cover;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    font-family: PingFangSC, PingFang SC;
    font-weight: 500;
    font-size: 24px;
    color: #ce0101;
    font-style: normal;
    cursor: pointer;
    transition: all 0.3s ease;
}

.legislation_bottom_left {
    background-image: url('bjhover.png');
}

.legislation_bottom_right {
    background-image: url('bjhover.png');
}

.legislation_bottom_left:hover,
.legislation_bottom_right:hover {
    background-image: url('bj.png');
    font-size: 20px;

}

/* 响应式布局 */
@media screen and (max-width: 1200px) {
    .legislation_box {
        width: 95%;
    }
    
    .nav-bar div {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .nav-bar div {
        flex-direction: column;
        height: auto;
    }
    
    .nav-item {
        width: 100%;
        padding: 10px 0;
        line-height: normal;
    }
    
    .legislation_bottom {
        flex-direction: column;
        gap: 20px;
    }
    
    .legislation_bottom_left,
    .legislation_bottom_right {
        width: 100%;
    }
}

/* 内容区域通用样式 */
.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

/* 政策宣传样式 */
.policy-container {
    background-color: #fff9e6;
    padding: 30px 0;
    min-height: 100vh;
}

.policy-box {
    width: 1200px;
    margin: 0 auto;

}

.policy-title {
    font-family: PingFangSC, PingFang SC;
    font-weight: 600;
    font-size: 28px;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

.policy-content {
    display: flex;
    margin-top: 20px;
    justify-content: space-between;
    margin-bottom: 60px;
}

.policy-left {
    width: 300px;
    padding-right: 20px;
    display: flex;
    align-items: center;
}

.policy-tabs {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.policy-tab {
    background-color: #ffa726;
    color: white;
    height: 82px;
    line-height: 82px;
    font-family: PingFangSC, PingFang SC;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    width: 300px;
    transition: all 0.3s ease;
    margin-bottom: 60px;
}

.policy-tab.active {
    background-color: #eb7200;
    transform: scale(1.05);
}

.policy-right {
    width: 840px;
    /* height: 600px; */
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.policy-swiper {
    width: 100%;
    height: 100%;
}

.policy-swiper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 20px;
}

.swiper-button-prev,
.swiper-button-next {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 75px !important;
    height: 250px !important;
}

.swiper-button-prev {
    background-image: url('left.png');
    left: 10px;
}

.swiper-button-next {
    background-image: url('right.png');
    right: 10px;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    display: none;
}

/* 手机模拟界面样式 */
.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    width: 600px;
    height: 1200px;
    max-width: 600px;
    max-height: 1200px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
}
.policy-text{
    padding-top: 40px;
    font-family: PingFangSC, PingFang SC;
    font-weight: 500;
    font-size: 22px;
    color: #2f2e2e;
    line-height: 30px;
    text-align: center;
    font-style: normal;
    margin-bottom: 40px;
}
/* 移动端样式调整 */
@media screen and (max-width: 1200px) {
    .policy-box {
        width: 95%;
    }
}

@media screen and (max-width: 768px) {
    .policy-content {
        flex-direction: column;
    }
    
    .policy-left {
        width: 100%;
        padding-right: 0;
        margin-bottom: 20px;
    }
    
    .policy-tabs {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .policy-tab {
        flex: 1 0 45%;
        font-size: 16px;
        padding: 10px;
    }
    
    .policy-right {
        height: 400px;
    }
}

/* 活动摄影样式 */
.photos-container {
    background-color: #fffeea;
    padding: 30px 0;
}

.photos-box {
    width: 1200px;
    margin: 0 auto;
}

.photos-text {
    font-family: PingFangSC, PingFang SC;
    font-weight: 500;
    font-size: 22px;
    color: #2f2e2e;
    line-height: 30px;
    text-align: center;
    font-style: normal;
    margin-bottom: 40px;
}

.photos-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.title-line {
    height: 2px;
    background-color: #ffa726;
    flex: 1;
    max-width: 400px;
}

.photos-title {
    padding: 0 20px;
    text-align: center;
}

.cn-title {
    font-family: PingFangSC, PingFang SC;
    font-weight: 600;
    font-size: 36px;
    color: #333;
    margin-bottom: 5px;
}

.en-title {
    font-family: 'Times New Roman', Times, serif;
    font-size: 24px;
    color: #777;
    font-style: normal;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.photos-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.photos-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.photos-img-wrapper {
    height: 240px;
    overflow: hidden;
}

.photos-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photos-item:hover .photos-img-wrapper img {
    transform: scale(1.05);
}

.photos-caption {
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    position: relative;
}

@media screen and (max-width: 1200px) {
    .photos-box {
        width: 95%;
    }
}

@media screen and (max-width: 768px) {
    .photos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .photos-img-wrapper {
        height: 180px;
    }
    
    .cn-title {
        font-size: 30px;
    }
    
    .en-title {
        font-size: 20px;
    }
}

@media screen and (max-width: 480px) {
    .photos-grid {
        grid-template-columns: 1fr;
    }
}

/* 图片查看弹窗样式 */
.photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
}

.photo-modal.active {
    display: block;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
}

.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 30px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.modal-gallery {
    width: 90%;
    max-width: 1200px;
    height: 80%;
    position: relative;
}

.gallery-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery-main {
    width: 100%;
    height: calc(100% - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#modal-image {
    max-width: 100%;
    max-height: 100%;
    transition: transform 0.3s ease;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 10;
}

.gallery-prev,
.gallery-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-prev:hover,
.gallery-next:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.nav-arrow {
    color: #fff;
    font-size: 24px;
    line-height: 1;
    font-weight: bold;
}

.gallery-tools {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    padding: 10px;
}

.tool-item {
    width: 40px;
    height: 40px;
    margin: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tool-item:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.icon {
    color: #fff;
    font-size: 20px;
    font-style: normal;
}

.gallery-caption {
    text-align: center;
    color: #fff;
    font-size: 16px;
    margin-top: 15px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
}

@media screen and (max-width: 768px) {
    .gallery-nav {
        padding: 0;
    }
    
    .gallery-prev,
    .gallery-next {
        width: 50px;
        height: 120px;
    }
    
    .gallery-prev img,
    .gallery-next img {
        width: 50px;
        height: 120px;
    }
    
    .tool-item {
        width: 30px;
        height: 30px;
        margin: 0 5px;
    }
    
    .icon {
        font-size: 16px;
    }
}

/* 底部样式 */
.footer {
    background-color: #ff9c38;
    padding: 30px 0;
}

.footer_box {
    width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer_left {
    display: flex;
    gap: 50px;
}

.footer_qr {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer_qr_box {
    width: 180px;
    height: 180px;
    background-color: #fff;
    padding: 10px;
    margin-bottom: 10px;
}

.footer_qr_img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer_qr_title {
    font-family: PingFangSC, PingFang SC;
    font-weight: 400;
    font-size: 18px;
    color: #333;
    text-align: center;
}

.footer_right {
    font-family: PingFangSC, PingFang SC;
    font-weight: 500;
    font-size: 36px;
    color: #333;
}

@media screen and (max-width: 1200px) {
    .footer_box {
        width: 95%;
        flex-direction: column;
    }
    
    .footer_right {
        margin-top: 30px;
    }
}

@media screen and (max-width: 768px) {
    .footer_left {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer_right {
        font-size: 28px;
    }
}
