/* 桌面端样式 */
/* 隐藏移动端专用元素 */
.mobile-header,
.mobile-menu-container,
.mobile-menu-btn,
.mobile-close-btn,
.mobile-menu-toggle,
.mobile-nav-menu,
.mobile-nav-item,
.mobile-submenu,
.mobile-submenu-link,
.mobile-submenu-toggle,
.mobile-title,
.mobile-menu-header,
.mobile-menu-logo,
.mobile-menu-logo-text,
.mobile-menu-title,
.mobile-menu-subtitle,
.mobile-menu-close,
.mobile-search-box,
.mobile-news-list,
.mobile-news-item,
.mobile-news-content,
.mobile-news-link,
.mobile-news-date {
    display: none !important;
}

#header .container {
    width: 1440px;
    margin: 0 auto;
}

.main-nav {
    height: 50px;
}

/* 头部样式 */
header .container {
    display: flex;
    align-items: center;
    height: 180px;
    flex-direction: column;

}

header .container span {
    color: #333;
    font-size: 14px;
}

header .container .top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px 0px;
}

header .logo {
    width: 454px;
    height: 70px;
}

header .sub-title {
    font-size: 16px;
    color: #C72226;
    display: flex;
    justify-content: center;
    align-items: center;
}

header .sub-title::before {
    content: "";
    width: 36px;
    height: 3px;
    display: inline-block;
    background-color: #C72226;
}

header .sub-title::after {
    content: "";
    width: 36px;
    height: 3px;
    display: inline-block;
    background-color: #C72226;
}

header .title_logo {
    width: 369px;
    height: 44px;
}

header .logo-container {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 30px;
}

header .logo-container>div:first-child {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
}



.site-title {
    font-size: 1.5rem;
}

.mobile-menu-toggle {
    display: none;
}

.search-box {
    width: 300px;
}

.search-box div {
    width: 50px;
    height: 40px;
    line-height: 49px;
    overflow: hidden;
    text-align: center;
}

.search-box img {
    width: 20px;
    height: 20px;
}

.nav-list {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.nav-list li a {
    height: 50px;
    line-height: 50px;
    font-size: 16px;
}

.nav-list li {
    flex: 1;
}

/* 下拉菜单样式 */
.nav-list .has-submenu {
    position: relative;
}

.nav-list .submenu {
    display: none;
    position: absolute;
    top: 100%;
    width: 100%;
    left: 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

.nav-list .has-submenu:hover .submenu {
    display: block;
}

.nav-list .submenu li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(207, 10, 10, 0.8);
    /* #CF0A0A 转换为 RGBA，透明度 50% */
}

.nav-list .submenu li:hover {
    background: rgba(175, 14, 14, 0.9);
}

.nav-list .submenu li:last-child {
    border-bottom: none;
}

.nav-list .submenu li a {
    height: 50px;
    line-height: 50px;
    font-size: 16px;
    font-weight: normal;
    display: block;
    white-space: nowrap;
}

/* 移动端新闻列表 */
.mobile-news {
    display: none;
}

/* 桌面端内容布局 */
.desktop-content {
    display: flex;
    margin: 20px 0;
}

.main-news {
    flex: 2;
    margin-right: 20px;
    background-color: #fff;
    border-radius: 4px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #c00;
    margin-bottom: 15px;
    padding-bottom: 5px;
}

.news-header h2 {
    color: #c00;
    font-size: 1.2rem;
}

.news-image {
    width: 220px;
    height: 150px;
    overflow: hidden;
    margin-right: 15px;
    border-radius: 4px;
    flex-shrink: 0;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-list .news-item.featured .news-title {
    font-size: 1.1rem;
    margin-top: 0;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}


/* 右侧边栏 */
.sidebar {
    flex: 1;
}

.widget {
    background-color: #fff;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #c00;
    margin-bottom: 15px;
    padding-bottom: 5px;
}

.widget-header h2 {
    color: #c00;
    font-size: 1.2rem;
}

.notice-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #ddd;
}

.notice-list li:last-child {
    border-bottom: none;
}

.notice-list li a {
    display: flex;
}

.notice-date {
    flex-shrink: 0;
    background-color: #eee;
    color: #666;
    width: 45px;
    height: 45px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
    font-size: 0.8rem;
}

.notice-title {
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 党建专栏 */
.icon-links {
    margin: 0 -10px;
}

.icon-link {
    width: 25%;
    padding: 0 10px;
    margin-bottom: 20px;
}

.icon-wrapper {
    padding: 20px;
}

.icon-wrapper img {
    width: 60px;
    height: 60px;
}

/* 教学资源 */
.resource-grid {
    margin: 0 -10px;
}

.resource-item {
    width: 25%;
    padding: 0 10px;
    margin-bottom: 20px;
}

.resource-icon {
    padding: 25px;
}

.resource-icon img {
    width: 50px;
    height: 50px;
}

.resource-item h3 {
    font-size: 1.1rem;
    margin-top: 10px;
}

/* 党校风采 */
.highlights-grid {
    margin: 0 -10px;
    display: flex;
}

.highlight-item {
    width: 50%;
    padding: 0 10px;
}

.highlight-caption {
    padding: 15px;
}

.highlight-caption h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.sydw {
    width: 67px;
    height: 82px;
}

.pc-footer {
    background-color: #750006;
}

.footer {
    background-color: #750006;
    width: 1440px;
    height: 170px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.footer .qrcode img {
    width: 130px;
    height: 130px;
}

.footer .footer-info {
    flex: 1;
    margin-left: 30px;
    text-align: left;
}



.location_out {
    width: 100%;
    background-color: #fff;
}

.location {
    height: 50px;
    display: flex;
    width: 1440px;
    margin: 0 auto;
    align-items: center;
    font-size: 16px;
    color: #999999;
    margin-bottom: 20px;
}

.location span:not(:first-of-type) {
    width: 30px;
    text-align: center;
}

.location img {
    margin-right: 10px;
}

.location a {
    color: #999999;
}

.location a:last-of-type {
    color: #CF0A0A;
}



/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    padding: 20px 0;
    margin-bottom: 30px;
}

   

.page-link {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 5px;
    border: 1px solid #ddd;
    color: #7A8392;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: #f5f5f5;
}

.page-link.active {
    background-color: #e60012;
    color: #fff;
    border-color: #e60012;
}

.page-ellipsis {
    margin: 0 5px;
}

.page-goto {
    margin-left: 20px;
    color: #666;
    font-size: 14px;
}

.page-input {
    width: 40px;
    height: 28px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 3px;
    margin-left: 10px;
    margin-right: 10px;
}

.mobile-footer{
    display: none !important;
}