.energy-menu{
    background-color: rgb(39, 126, 218);
}
.energy-menu-item .active{
    background-color: rgb(13, 102, 194) !important;
}
.energy-menu-item a:hover, .energy-menu-item a.active{
    background-color: rgb(13, 102, 194) !important;
}

/* 区县首页布局样式 */
.qx-content-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px; /* 移动端左右留白 */
    box-sizing: border-box;
}

.qx-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.qx-col-full {
    width: 100%;
    max-width: 1200px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.qx-col-8 {
    width: 33.333%;
    padding: 0 15px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.qx-col-16 {
    width: 66.666%;
    padding: 0 15px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.qx-col-12 {
    width: 50%;
    padding: 0 15px;
    box-sizing: border-box;
}

/* 新闻模块通用样式 */
.qx-section {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 4px #00000026;
    height: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.qx-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: PingFangSC, PingFang SC;
    font-weight: 500;
    font-size: 30px;
    color: #333;
    line-height: 42px;
    text-align: left;
    font-style: normal;
    border-bottom: 1px solid #277eda;
    width: 90%;
    margin: 0 auto;
    padding: 10px 0 20px 0;
    box-sizing: border-box;
}

.qx-section-title {
    color: #333;
    line-height: 42px;
    position: relative;
    font-weight: bold;
}

.qx-section-more {
    font-weight: 500;
    font-size: 16px;
    color: #666;
    line-height: 22px;
    text-align: left;
    cursor: pointer;
}

.qx-section-more:hover {
    color: #0d66c2;
}

.qx-section-divider {
    width: 200px;
    border-bottom: 5px solid #277eda;
    margin-top: -5px;
    margin-left: 19px;
}

/* 工会要闻样式 - 上下结构 */
.qx-news-container-vertical {
    padding: 15px;
    box-sizing: border-box;
}

.qx-news-img-container {
    width: 100%;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.qx-news-img-full {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.qx-news-list {
    margin-top: 10px;
}

.qx-news-item {
    padding: 12px 0;
    line-height: 1.5;
    cursor: pointer;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-bottom: 1px dashed #eee;
    position: relative;
    padding-left: 15px;
    box-sizing: border-box;
}

.qx-news-item:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #ff6600;
}

.qx-news-item:hover {
    color: #0d66c2;
}

/* 工会要闻 - 左右结构样式 */
.qx-news-section {
    display: flex;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.qx-news-left {
    width: 50%;
    flex-shrink: 0;
}

.qx-news-left-img {
    width: 100%;
    height:285px;
    object-fit: cover;
    display: block;
}

.qx-news-right {
    width: 50%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px #00000026;
    box-sizing: border-box;
}
.qx-news-right>div{
    width: 90%;
    margin: 0 auto;
    box-sizing: border-box;
}
.qx-news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 20px;
    line-height: 50px;
    height: 50px;
    border-bottom: 1px solid #eee;
    box-sizing: border-box;
}

.qx-news-title {
    font-family: PingFangSC, PingFang SC;
    font-weight: 500;
    font-size: 30px;
    color: #333;
    line-height: 42px;
    text-align: left;
    font-style: normal;
}

.qx-news-more {
    font-weight: 500;
    font-size: 16px;
    color: #666;
    line-height: 22px;
    text-align: left;
    cursor: pointer;
}

.qx-news-more:hover {
    color: #0d66c2;
}

.qx-news-divider {
    width: 200px;
    border-bottom: 5px solid #277eda;
    margin-top: 15px;
}

.qx-news-items {

}

.qx-news-item-horizontal {
   height: 70px;
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    font-family: PingFangSC, PingFang SC;
    font-weight: 500;
    font-size: 18px;
    color: #333;
    line-height:70px;
    display: block;
    box-sizing: border-box;
}
.qx-news-item-horizontal:last-child{
    border: none;
}

/* 公示公告样式 */
.qx-notice-box {
    padding: 15px 20px;
	display: flex;
    flex-direction: column;
    height: 80%;
    box-sizing: border-box;
}

.qx-notice-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    padding-bottom: 8px;
    box-sizing: border-box;
}

.qx-notice-dot {
    width: 8px;
    height: 8px;
    border-radius: 8%;
    background-color: #ff6600;
    margin-top: 8px;
    margin-right: 10px;
    flex-shrink: 0;
}

.qx-notice-text {
	overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #2f2e2e;
    font-family: PingFangSC, PingFang SC;
    font-weight: 400;
    font-size: 18px;
    box-sizing: border-box;
}

/* 基层动态样式 */
.qx-dynamic-box {
    padding: 15px 20px;
    box-sizing: border-box;
}

.qx-dynamic-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    box-sizing: border-box;
}

.qx-dynamic-left {
    display: flex;
    align-items: flex-start;
    flex: 1;
    overflow: hidden;
    box-sizing: border-box;
}

.qx-dynamic-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #333;
    font-family: PingFangSC, PingFang SC;
    font-weight: 400;
    font-size: 18px;
    color: #333;
    width: 90%;
    box-sizing: border-box;
}

.qx-dynamic-date {
    font-family: PingFangSC, PingFang SC;
    font-weight: 400;
    font-size: 14px;
    color: #999;
    line-height: 20px;
    text-align: right;
    font-style: normal;
    flex-shrink: 0;
    box-sizing: border-box;
}

/* 劳模风采样式 */
.qx-model-box {
    display: flex;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.qx-model-img-container {
    width: 120px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.qx-model-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    box-sizing: border-box;
}

.qx-model-content {
    flex: 1;
    padding: 20px;
    box-sizing: border-box;
}

/* 渝工创新和工会风采样式 */
.qx-showcase {
    margin-bottom: 30px;
    box-sizing: border-box;
}

.qx-showcase-content {
    display: flex;
    flex-wrap: wrap;
    padding: 10px 20px;
	justify-content: space-between;
    box-sizing: border-box;
}
.qx-showcase .qx-section-header{
    width: 100%;
}

.qx-showcase .qx-section-divider{
    margin-left: 0;
}
.qx-showcase-item {
    width: 25%;
    padding: 10px;
    box-sizing: border-box;
}

.qx-showcase-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
    box-sizing: border-box;
}
.ldmf{
    box-shadow: none;
    box-sizing: border-box;
}
.ldmf .qx-section-divider{
    margin-bottom: 20px;
}
.ldmf .qx-model-box{
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
    height: 320px;
    box-sizing: border-box;
}
.qx-showcase-title {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    box-sizing: border-box;
}

.qx-showcase-date {
    font-size: 12px;
    color: #999;
    box-sizing: border-box;
}

/* 公示公告和基层动态 - 左右结构 */
.qx-notice-dynamic-row {
    display: flex;
    justify-content: space-between;
    margin: 0;
    box-sizing: border-box;
}

.qx-notice-col {
    width: 380px;
    padding: 0 15px 0 0;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.qx-dynamic-col {
    width: 790px;
    padding: 0 0 0 15px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

/* 劳动模范风采 - 网格布局 */
.qx-model-grid {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
    padding: 20px;
    justify-content: center;
    max-width: 1000px;
    box-sizing: border-box;
}

.qx-model-item {
    width: 25%;
    padding: 0 10px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.qx-model-grid-img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: transform 0.3s ease;
    box-sizing: border-box;
}

.qx-model-grid-img:hover {
    transform: scale(1.05);
}

.qx-model-title:hover {
    color: #277eda;
}

/* 劳动模范风采 - 左右布局 */
.qx-model-layout {
    display: flex;
    box-shadow: 0 -2px 4px #00000026,0 2px 4px #00000026;
    height: 320px;
    width: 99.8%;
    box-sizing: border-box;
}

.qx-model-left {
    width: 120px;
    flex-shrink: 0;
    margin-right: 20px;
    box-sizing: border-box;
}

.qx-model-vertical-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 4px;
    box-sizing: border-box;
}

.qx-model-right {
    flex: 1;
    max-width: 86%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    box-sizing: border-box;
}

.qx-model-item {
    width: 25%;
    padding: 0 10px;
    margin-bottom: 20px;
    box-sizing: border-box;
    text-decoration: none;
    display: block;
    transition: transform 0.2s ease;
}

.qx-model-item:hover {
    transform: translateY(-5px);
}

.qx-model-img-wrapper {
    width: 100%;
    height: 180px;
    overflow: hidden;
    margin-bottom: 10px;
    border-radius: 4px;
    box-sizing: border-box;
}

.qx-model-title {
    font-size: 16px;
    color: #333;
    line-height: 1.4;
    margin-top: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    margin-top: 20px;
    font-family: PingFangSC, PingFang SC;
    font-weight: 400;
    font-size: 16px;
    color: #333;
    line-height: 28px;
    text-align: center;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    -webkit-line-clamp: 1;
    box-sizing: border-box;
}

.qx-model-item:hover .qx-model-title {
    color: #277eda;
}

/* 劳模工作样式 */
.qx-work-list {
    padding: 10px 20px;
    box-sizing: border-box;
}

.qx-work-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px dashed #eee;
    box-sizing: border-box;
}

.qx-work-title {
    font-family: PingFangSC, PingFang SC;
    font-weight: 400;
    font-size: 16px;
    color: #333;
    line-height: 28px;
    text-align: left;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    -webkit-line-clamp: 1;
    position: relative;
    text-indent: 1em;
    max-width: 75%;
    box-sizing: border-box;
}

.qx-work-title:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: #ff6600;
}

.qx-work-date {
    color: #999;
    font-size: 14px;
    margin-left: 15px;
    white-space: nowrap;
    box-sizing: border-box;
}

.qx-work-item:hover .qx-work-title {
    color: #277eda;
}

.ldmf .qx-model-right {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.ldmf .qx-model-grid {
    justify-content: flex-start;
    box-sizing: border-box;
}
.lmgz{
    height: 320px;
    box-sizing: border-box;
}
/* 劳模工作专用样式 */
.lmgz .qx-model-layout {
    padding: 0;
    box-shadow: none;
    box-sizing: border-box;
}

.lmgz .qx-work-list {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.lmgz .qx-model-right {
    padding: 0;
    box-sizing: border-box;
}

.lmgz .qx-work-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

 /* 强制隐藏所有下拉菜单 */
 .energy-dropdown {
    display: none !important;
    box-sizing: border-box;
}

.energy-dropdown.show {
    display: block !important;
    box-sizing: border-box;
}

/* 移动端菜单样式 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    padding: 5px;
    box-sizing: border-box;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(39, 126, 218);
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-sizing: border-box;
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav-content {
    position: absolute;
    top: 9%;
    width: 100%;
    box-sizing: border-box;
}

.mobile-nav-content a {
    display: block;
    color: #fff;
    font-size: 18px;
    padding: 15px 0;
    text-decoration: none;
    border-bottom: 1px solid #fff;
    box-sizing: border-box;
}

.mobile-nav-content a.active {
    color: #333;
	background-color: #fff;
}

/* 关闭按钮样式 */
.mobile-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 1001;
    box-sizing: border-box;
}

.mobile-close-btn::before,
.mobile-close-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #fff;
    box-sizing: border-box;
}

.mobile-close-btn::before {
    transform: rotate(45deg);
}

.mobile-close-btn::after {
    transform: rotate(-45deg);
}

/* 工会风采专用样式 */
.qx-elegance-item{
	width:22%;
    box-sizing: border-box;
}

.qx-elegance-img-wrapper{
	width: 100%;
    height: 189px;
    overflow: hidden;
    box-sizing: border-box;
}

.qx-elegance-grid-img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: transform 0.3s ease;
    box-sizing: border-box;
}

.qx-elegance-title{
	font-family: PingFangSC, PingFang SC;
    font-weight: 400;
    font-size: 20px;
    color: #2f2e2e;
    text-align: left;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    -webkit-line-clamp: 1;
    box-sizing: border-box;
}

.qx-elegance-date{
	margin-top: 10px;
    font-family: PingFangSC, PingFang SC;
    font-weight: 400;
    font-size: 16px;
    color: #999;
    text-align: left;
    font-style: normal;
    box-sizing: border-box;
}

.qx-elegance-content{
	padding: 20px 10px;
    box-shadow: 0 2px 4px #00000026;
    box-sizing: border-box;
}

/* 移动端适配优化 - 覆盖全尺寸断点 */
@media screen and (max-width: 1200px) {
    .qx-content-container {
        max-width: 95%;
        margin: 15px auto;
    }
    .qx-col-8, .qx-col-16 {
        width: 50%;
    }
    .qx-notice-col {
        width: 35%;
    }
    .qx-dynamic-col {
        width: 65%;
    }
    .qx-model-layout {
        height: 300px;
    }
    .qx-model-img-wrapper {
        height: 160px;
    }
}

@media screen and (max-width: 992px) {
    .qx-col-8, .qx-col-16, .qx-col-12 {
        width: 100%;
        padding: 0 10px;
        margin-bottom: 15px;
    }
    .qx-model-item {
        width: 33.333%;
    }
    .qx-elegance-item {
        width: 33.333%;
    }
    .qx-notice-col, .qx-dynamic-col {
        width: 100%;
        padding: 0 10px;
    }
    .qx-notice-dynamic-row {
        flex-direction: column;
    }
    .qx-news-left-img {
        height: 220px;
    }
}

@media screen and (max-width: 768px) {
    .energy-menu-body {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-nav {
        display: block;
    }
    .top-bar{
        align-items: center;
    }
    .top-bar-body{
        text-indent: 10px;
    }
    .qx-row{
        width: 95%;
        margin: 0 auto;
    }
    .qx-news-section{
        flex-direction: column;
    }
    .qx-news-left{
        width: 100%;
    }
    .qx-news-right{
        width: 100%;
    }
    .qx-news-left-img{
        width: 100%;
        font-size: 16px;
    }
    .qx-news-item-horizontal{
        height: 40px;
        line-height: 40px;
        font-size: 16px;
    }
    .qx-news-title{
        font-size: 24px;
    }
    .qx-notice-col{
        width: 100%;
        padding: 0;
    }
    .qx-section-header{
        font-size: 24px;
        padding: 5px 0 10px 0;
        width: 95%;
    }
    .qx-section-divider {
        width: 150px;
        margin-left: 0;
    }
    .qx-notice-item{
        padding: 0;
    }
    .qx-dynamic-col{
        width: 100%;
        padding: 0;
    }
    .qx-model-left{
        display: none;
    }
    .qx-model-item{
        width: 49%;
    }
    .qx-model-layout{
        height: auto;
        padding: 10px 0;
        width: 100%;
        box-shadow: none;
    }
    .qx-work-item{
        display: block;
        flex-direction: column;
        width: 95%;
        margin: 0 auto;
        padding: 8px 0;
    }
    .qx-work-list{
        padding: 0 15px;
    }
    .lmgz .qx-work-list{
        padding: 0 15px;
    }
    .qx-work-title{
        text-indent: 0;
        max-width: 100%;
        font-size: 16px;
    }
    .qx-work-title:before{
        display: none;
    }
    .qx-work-date{
        margin-left: 0;
        margin-top: 5px;
        display: block;
        text-align: left;
    }
    /* 补充移动端工会风采适配 */
    .qx-elegance-item {
        width: 49%;
    }
    .qx-elegance-img-wrapper {
        height: 120px;
    }
    .qx-elegance-title {
        font-size: 16px;
    }
    .qx-elegance-date {
        font-size: 14px;
    }
    /* 移动端展示项适配 */
    .qx-showcase-item {
        width: 49%;
    }
    .qx-showcase-img {
        height: 120px;
    }
    .qx-showcase-content {
        padding: 10px 15px;
    }
    /* 移动端劳模布局适配 */
    .qx-model-img-wrapper {
        height: 120px;
    }
    .qx-model-right {
        max-width: 100%;
        padding: 10px;
    }
    .lmgz {
        height: auto;
        padding: 10px 0;
    }
    /* 移动端公示公告/基层动态文字适配 */
    .qx-notice-text, .qx-dynamic-text {
        font-size: 16px;
    }
    .qx-notice-box, .qx-dynamic-box {
        height: auto;
        padding: 10px 15px;
    }
    .qx-notice-dot {
        width: 6px;
        height: 6px;
        margin-top: 7px;
    }
    /* 工会要闻上下结构适配 */
    .qx-news-img-full {
        max-height: 200px;
    }
    .qx-news-container-vertical {
        padding: 10px 15px;
    }
    .qx-news-item {
        padding: 8px 0;
        font-size: 16px;
    }
    /* 劳模风采盒子适配 */
    .ldmf .qx-model-box {
        height: auto;
        flex-direction: column;
        box-shadow: none;
    }
    .qx-model-img-container {
        width: 100%;
        margin-bottom: 15px;
    }
    .qx-model-img {
        height: 200px;
    }
    .qx-model-content {
        padding: 0 15px;
    }
}

@media screen and (max-width: 480px) {
    .qx-model-item, .qx-showcase-item, .qx-elegance-item {
        width: 100%;
        margin-bottom: 15px;
    }
    .qx-section-header {
        font-size: 20px;
        line-height: 30px;
    }
    .qx-news-title {
        font-size: 20px;
        line-height: 30px;
    }
    .qx-notice-box, .qx-dynamic-box {
        padding: 10px 15px;
    }
    .qx-model-layout {
        padding: 5px;
    }
    .qx-showcase-img, .qx-elegance-img-wrapper, .qx-model-img-wrapper {
        height: 140px;
    }
    .qx-showcase-title, .qx-elegance-title, .qx-model-title {
        font-size: 15px;
    }
    .qx-notice-text, .qx-dynamic-text, .qx-news-item {
        font-size: 15px;
    }
    .mobile-nav-content a {
        font-size: 16px;
        padding: 15px;
    }
}

