/* 通用样式 */
.energy-union-logo {
    width: auto !important;
}

.energy-menu-item {
    width: 200px;
}

/* 宣传服务中心样式 */
.main-container {
    width: 1200px;
    margin: 20px auto;
    padding: 0;
}

/* 标题部分样式 */
.section-header {
	border-bottom: 1px solid #999999;
    padding-bottom: 40px;
    position: relative;
}

.section-header::after {
    display: block;
    content: "";
    width: 174px;
    height: 4px;
    background: #00b373;
    position: absolute;
    left: 0;
    bottom: 0;
}

.header-left {
    float: left;
}

.header-title-box {
    display: flex;
    align-items: center;
}

.header-title-box img {
    width: 22px;
    height: 22px;
    margin-right: 8px;
}

.header-title {
    margin-left: 8px;
    font-family: PingFangSC, PingFang SC;
    font-weight: 500;
    font-size: 24px;
    color: #2f2e2e;
    line-height: 33px;
    text-align: left;
    font-style: normal;
}

.header-line {
    width: 284px;
    height: 3px;
    background-color: #04ba44;
    margin-left: 10px;
}

.header-more {
    font-size: 16px;
    color: #666;
    cursor: pointer;
    float: right;
}

.header-more a{
    font-size: 16px;
    color: #000000;
    cursor: pointer;
}

.header-more:hover {
    color: #04ba44;
}

/* 轮播图样式 */
.news-carousel {
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    height: 380px;
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-item {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-item.active {
    display: block;
    opacity: 1;
    z-index: 1;
}

.carousel-content {
    display: flex;
    height: 100%;
    align-items: center;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.carousel-image {
    width: 700px;
    height: 380px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.carousel-item:hover .carousel-image img {
    transform: scale(1.03);
}

.carousel-text {
    width: 470px;
    padding: 30px;
    background-color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.carousel-title {
    font-size: 30px;
    font-weight: 500;
    color: #302e2e;
    margin-bottom: 20px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.carousel-description {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    right: 50%;
    transform: translateX(40%);
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 2;
}

.carousel-indicators li {
    width: 30px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.6);
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicators li.active {
    background-color: #ffffff;
    width: 40px;
}

/* 公告部分 */
.announcement-section {
    margin-bottom: 30px;
}

.announcement-content {
    min-height: 50px;
    background-color: #f8f8f8;
    padding: 15px;
    border-radius: 4px;
}

/* 内容部分 */
.content-section {
    display: flex;
    justify-content: space-between;
}

/* 左侧导航 */
.sidebar {
    width: 250px;
    background-color: #f8f8f8;
    min-height: 700px;
}

.sidebar-item {
    padding: 24px;
    border-bottom: 1px solid #d8d8d8;
    cursor: pointer;
    transition: background-color 0.3s;
}

.sidebar-item:hover,
.sidebar-item.active {
    background-color: #00b373;
}

.sidebar-item:hover .sidebar-title {
    color: #fff !important;
}

.sidebar-item.active .sidebar-title {
    color: #04ba44;
    font-weight: 500;
    color: #fff !important;

}

.sidebar-title {
    font-size: 21px;
    color: #333;
    text-align: center;
}

/* 右侧内容 */
.main-content {
    width: 900px;
    margin-left: 20px;
}

.content-header {
    padding-bottom: 21px;
    color: #00b373;
    font-weight: 500;
    font-size: 23px;
    border-bottom: 1px solid #d8d8d8;
	margin-bottom: 5px;
}

.content-header span {
    padding-bottom: 21px;
    color: #00b373;
    font-weight: 500;
    font-size: 23px;
    border-bottom: 1px solid #d8d8d8;
    /* border-left: 4px solid #04ba44; */
}

/* 新闻列表 */
.news-list {
    margin-bottom: 20px;
}
.news-list a {
    color: #000000;
}

.news-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-bottom: 10px;
}

.news-item:hover .news-title {
    color: #00b373;
}

.news-item:hover  .news-date {
    color: #00b373;
}

.news-title {
    position: relative;
    font-size: 16px;
    cursor: pointer;
    padding: 8px 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
	width: 78%;
}
.news-title::before {
    position: absolute;
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #ff7300;
    top: 50%;
    left: -3px;
    transform: translateY(-50%);
}
.news-date {
    color: #000;
    font-size: 14px;
    margin-left: 20px;
}

/* 分页 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    font-size: 14px;
}

.total-count {
    color: #666;
    margin-right: 15px;
}

.page-size-select {
    position: relative;
    margin-right: 15px;
}

.page-size-select select {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    padding: 0 25px 0 10px;
    height: 32px;
    line-height: 32px;
    color: #606266;
    cursor: pointer;
}

.page-size-select:after {
    content: '';
    position: absolute;
    right: 10px;
    top: 14px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #c0c4cc;
    pointer-events: none;
}

.page-nav {
    display: flex;
    align-items: center;
}

.page-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 32px;
    height: 32px;
    padding: 0 4px;
    margin: 0 5px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background-color: #fff;
    color: #606266;
    text-decoration: none;
    font-size: 14px;
}

.page-btn.prev,
.page-btn.next {
    font-size: 12px;
}

.page-btn.current {
    background-color: #00b373;
    border-color: #00b373;
    color: #fff;
}

.page-btn:hover:not(.current) {
    color: #00b373;
    border-color: #00b373;
}

.iframe{
    width: 100%;
    height: 100%;
    min-height: 1200px;
}


@media screen and (max-width:768px) {
    .energy-union-logo{
        width: 100% !important;
    }
    .main-container{
        width: 95%;
        margin: 0 auto;
    }
    .carousel-content{
        flex-direction: column;
    }
    .carousel-image{
        width: 100%;
        height: auto;
    }
    .carousel-text{
        width: 100%;
        display: block;
    }
    .carousel-indicators li{
        background-color: #666;
    }
    .content-section{
        flex-direction: column;
    }
    .sidebar{
        min-height: auto;
        display: flex;
        justify-content: space-between;
        width: 100%;
    }
    .sidebar-item{
        width: 33% !important;
    }
    .main-content{
        width: 100%;
    }
    .news-item{
        flex-direction: column;
        /* text-align: left !important; */
        align-items: flex-start;
    }
    .content-header{
        margin-top: 20px;
    }
    
    .news-carousel{
        height: 300px;
    }
	
	.carousel-title {
		font-size: 24px;
	}
	
	.carousel-text {
		padding: 0;
		height: auto;
	}
}