/* 导航栏样式 */
.p_navPc {
    width: 100%;
    margin-top: 32px;
}

/* 移动端导航栏在PC端隐藏 */
.m_navBox {
    display: none;
}

/* PC端显示，移动端隐藏 */
@media only screen and (max-width: 768px) {
    .p_navPc {
        display: none;
    }

    /* 移动端显示导航栏 */
    .m_navBox {
        display: block;
    }
}

.p_navPc .p_categoryBox {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.p_navPc .p_parentBox {
    position: relative;
}

.p_navPc .p_linkBox {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
}

.p_navPc .p_title {
    text-decoration: none;
    margin-right: 5px;
    color: inherit;
    font-size: 14px;
}

.p_navPc .p_title:hover {
    color: inherit;
}

.p_navPc .p_categoryBtn {
    cursor: pointer;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.p_navPc .p_parentBox.open .p_categoryBtn {
    transform: rotate(180deg);
}

/* 子菜单样式 */
.p_navPc .nav-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    min-width: 110px;
    display: none;
    z-index: 1000;
}

.p_navPc .p_parentBox.open .nav-submenu {
    display: block;
}

.p_navPc .nav-submenu li {
    margin: 0;
    padding: 0;
}

.p_navPc .nav-submenu li a {
    display: block;
    padding: 8px 15px;
    text-decoration: none;
    color: inherit;
    font-size: 14px;
}

.p_navPc .nav-submenu li a:hover {
    background-color: #f5f5f5;
}

/* 移动端导航栏样式 */
@media only screen and (max-width: 768px) {
    /* 移动端显示导航栏 */
    .m_navBox {
        display: block;
        position: relative;
    }

    .m_navBox > .m_navCategory {
        position: absolute;
        right: 0;
        top: 35px;
        margin-right: 20px;
    }

    .m_navBox .m_btnShow,
    .m_navBox .m_btnHide {
        cursor: pointer;
        padding: 5px 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        z-index: 10000;
        position: relative;
    }

    .m_navBox .m_btnShow {
        background: #007bff;
        color: #fff;
        border-radius: 4px;
        min-width: 40px;
        min-height: 40px;
    }

    .m_navBox .m_btnHide {
        position: absolute;
        top: 10px;
        right: 10px;
        background: transparent;
        color: #333;
        font-size: 24px;
        min-width: 40px;
        min-height: 40px;
        z-index: 10001;
    }

    .m_navBox .m_navSidebar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100%;
        background: #fff;
        box-shadow: -2px 0 8px rgba(0,0,0,0.15);
        z-index: 9999;
        transition: right 0.3s ease;
        overflow-y: auto;
    }

    .m_navBox .m_navSidebar.m_navShow {
        right: 0;
    }

    .m_navBox .m_navContent {
        padding: 20px;
    }

    .m_navBox .m_navParent {
        padding: 10px 0;
        border-bottom: 1px solid #eee;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .m_navBox .m_navParent .m_navBtn {
        margin-left: auto;
        font-size: 14px;
        transition: transform 0.3s ease;
    }

    .m_navBox .m_navItem.open .m_navBtn {
        transform: rotate(180deg);
    }

    .m_navBox .m_navLink {
        display: block;
        padding: 8px 0;
        text-decoration: none;
        color: inherit;
    }

    .m_navBox .m_navChild {
        padding-left: 15px;
        display: none;
    }

    .m_navBox .m_navItem.open .m_navChild {
        display: block;
    }
}

/* 新闻资讯轮播图样式 */
.news-swiper-box {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.news-swiper {
    width: 100%;
    height: 420px;
    position: relative;
}

.news-swiper .swiper-slide {
    height: auto;
}

.news-swiper .p_articles {
    width: 100%;
    height: 420px;
    position: relative;
}

.news-swiper .porTbox {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 420px;
}

.news-swiper img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.news-swiper .porBbox {
    position: absolute;
    overflow: hidden;
    width: 100%;
    padding: 20px 20px 10px;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.news-swiper .newTitle {
    font-size: 1rem;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    white-space: nowrap;
    width: 80%;
    display: block;
}

/* 新闻轮播图分页器样式 */
.news-swiper .news-pagination-bottom-right {
    position: absolute;
    bottom: 20px;
    right: 20px;
    padding-right: 10px;
    width: auto;
    text-align: right;
    z-index: 10;
}

.news-swiper .news-pagination-bottom-right .swiper-pagination-bullet {
    margin: 0 4px;
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #d3d3d3;
    opacity: 1;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.news-swiper .news-pagination-bottom-right .swiper-pagination-bullet-active {
    background: #ff0000;
}

/* 响应式设计 */
@media only screen and (max-width: 768px) {
    .news-swiper {
        height: 300px;
    }

    .news-swiper .p_articles {
        height: 300px;
    }

    .news-swiper .porTbox {
        height: 300px;
    }

    .news-swiper .swiper-button {
        width: 40px;
        height: 40px;
    }

    .news-swiper .swiper-button .iconfont {
        font-size: 20px;
    }

    .news-swiper .news-btn-prev {
        left: 10px;
    }

    .news-swiper .news-btn-next {
        right: 10px;
    }
}

