/* 能源工会委员会页面样式 */
body{
    margin: 0;
}
/* 页面容器 */
.energy-container {
    width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}
.header_todays {
    margin-right: 30px;
}
.energy-info{
    width: 1200px;
    margin: 0 auto;
    color: #fff;
}
.position{
    position: relative;
}
/* 头部样式 */
.energy-header {
    background-image: url('../energy/haed2bj.png');
    background-size: 100% 100%;
    background-position: center;
    padding: 20px 0;
}

.energy-logo-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    margin-bottom: 50px;
    margin-top: 20px;
}

.energy-logo-container {
    display: flex;
}

.energy-union-logo {
    width: 489px;
    /* height: 60px; */
    margin-right: 15px;
}

.energy-title {
    font-family: PingFangSC, PingFang SC;
    font-weight: 500;
    font-size: 36px;
    color: #fff;
    line-height: 60px;
    font-style: normal;
    white-space: nowrap;
}

.energy-subtitle {
    font-size: 16px;
    color: white;
    font-weight: normal;
    margin-top: 5px;
}

/* 导航菜单 */
.energy-menu {
    background-color: rgb(0, 109, 70);
    height: 80px;
}

.energy-menu-body {
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.energy-menu-item {
    position: relative;
    float: left;
    height: 80px;
    line-height: 80px;
    width: 20%;
    text-align: center;
}

.energy-menu-item a {
    text-decoration: none;
    color: white;
    font-size: 22px;
    display: block;
    width: 100%;
    /* padding: 1.25rem 0px; */
    font-family: PingFangSC, PingFang SC;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
}

.energy-menu-item a:hover,
.energy-menu-item a.active {
    background-color: rgb(0, 179, 115);
}

/* 搜索框 */
.energy-search {
    display: flex;
    align-items: center;
    position: absolute;
    right: 3%;
    top: 30%;
    transform: translateY(-50%);
}

.energy-search input {
    height: 35px;
    border: 1px solid #ddd;
    border-right: none;
    padding: 0 10px;
    width: 200px;
    outline: none;
}

.energy-search button {
    height: 35px;
    width: 60px;
    background-color: #ff6600;
    border: none;
    color: white;
    cursor: pointer;
}

.energy-wechat {
    /* margin-left: 15px; */
}

.energy-wechat img {
    width: 32px;
    height: 32px;
}


/* 底部 */
.energy-footer {
    background-color: #231915;
    color: #fff;
    padding: 30px 0;
    text-align: center;
    margin-top: 30px;
}

.energy-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    line-height: 1.8;
}

.energy-footer-content p {
    margin: 5px 0;
    font-size: 14px;
}

.energy-dropdown {
    position: absolute;
    z-index: 100;
    display: none !important;
    background-color: #fff;
    border: 1px solid #ddd;
    border-top: none;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
}

.energy-dropdown.dropdown-up {
    bottom: 100%;
    top: auto;
    border-top: 1px solid #ddd;
    border-bottom: none;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
}

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

/* 友情链接样式优化 */
.energy-links-container {
    position: relative;
    z-index: 50;
    margin-bottom: 40px; /* 增加底部空间，防止遮挡 */
}

#union-dropdown {
    max-height: 400px; /* 增加工会网站链接的最大高度 */
}

.energy-links-container .energy-dropdown.dropdown-up {
    bottom: calc(100% + 1px); /* 确保向上展开时不遮挡选择框 */
    max-height: 400px; /* 增加高度限制 */
}

/* 强制工会网站链接向上展开 */
#union-dropdown.dropdown-up {
    bottom: calc(100% + 1px);
}

/* 隐藏checkbox */
.mobile-toggle {
    display: none;
}
.top-bar {
	background: #f5f5f5;
	color: #666;
	font-size: 14px;
	height: 40px;
	line-height: 40px;
	display: flex;
	justify-content: space-between;
	min-width: 1200px;
}

.top-bar-body {
	max-width: 1200px;
	width: 100%;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	line-height: 40px;
}

/* 移动端搜索图标 */
.mobile-search-icon {
    display: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

/* 汉堡菜单样式 */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 15px;
    cursor: pointer;
    padding: 5px;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #00b373;
    transition: all 0.3s ease;
}

/* 移动端搜索容器动画和样式 */
.mobile-search-container {
    position: fixed;
    top: 0px;
    left: 0;
    width: 100%;
    background-color: #fff;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: auto;
    max-height: 0;
    /* overflow: hidden; */
    transition: max-height 0.35s cubic-bezier(.4,0,.2,1);
    /* height: 60px; */
    display: none;
}
.mobile-search-container.show {
    max-height: 120px;
    display: block;
}
.show{
    display: block !important;
}
/* 移动端搜索框样式统一 */
.mobile-search {
    padding: 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
    background: #fff;
}
.mobile-search input {
    flex: 1;
    height: 36px;
    border: 1px solid #ddd;
    border-right: none;
    padding: 0 10px;
    outline: none;
    border-radius: 18px 0 0 18px;
    font-size: 16px;
    background: #fff;
}
.mobile-search button {
    height: 36px;
    width: 46px;
    background-color: #ff6600;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 0 18px 18px 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mobile-search button i {
    margin: 0;
}

/* 移动端菜单容器 */
.mobile-menu-container {
    display: none;
    position: fixed;
    top: 0px;
    left: 0;
    width: 100%;
    background-color: #fff;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 100vh;
}

/* 移动端菜单头部 */
.mobile-menu-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
}

.mobile-menu-close {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: #666;
}

.mobile-menu-close:hover {
    color: #ff6600;
}

/* 移动端菜单 */
.mobile-menu {
    padding: 10px 0;
}

.mobile-menu-item {
    display: block;
    padding: 15px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    border-bottom: 1px solid #eee;
}

.mobile-menu-item.active {
    color: #ff6600;
    background-color: #f9f9f9;
}

/* 移动端搜索头部和关闭按钮 */
.mobile-search-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    background: #fff;
}
.mobile-search-close {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: #666;
}
.mobile-search-close:hover {
    color: #ff6600;
}

@media screen and (max-width: 768px) {
    .energy-info{
        font-size: 14px;
        width: 95%;
        margin: 0 auto;
    }
    .mobile-controls {
        display: flex;
        margin-right: 10px;
        align-items: center;
    }
    /* 顶部栏移动样式 */
    .top-bar {
        min-width: auto;
        height: auto;
        width: 100%;
    }
    
    .top-bar-body {
        flex-direction: column;
        align-items: left;
        line-height: 24px;
        width: 95%;
    }
    .mobile-search-icon {
        display: block;
        color: #00b373;
        margin-right: 10px;
    }

    .hamburger-menu {
        display: flex;
    }

    .energy-search-container {
        display: none;
    }

    .energy-menu {
        display: none;
    }

    .energy-logo-section {
        margin-bottom: 20px;
        justify-content: space-between;
    }

    .energy-title {
        font-size: 18px;
    }

    .energy-union-logo {
        width: 180px;
    }
   
}

.energy-links-title .mobile-link-title {
    display: none;
}
.energy-links-title .pc-link-title {
    display: inline;
}

@media screen and (max-width: 768px) {
    .energy-links-title .mobile-link-title {
        display: inline;
    }
    .energy-links-title .pc-link-title {
        display: none;
    }
}