/* 党建思政页面特定样式 */
.banner {
    position: relative;
    background-image: url(images/xqbj.png);
    background-size: cover;
    background-position: center;
    height: 500px;
    margin-bottom: 0;
    overflow: hidden;
}

.banner-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.banner-content {
    position: absolute;
    top: 40%;
    left: 5%;
    transform: translateY(-50%);
    color: white;
}

.party-building-title {
    font-size: 70px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.party-building-en {
    font-size: 36px;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 2px;
    font-weight: 300;
    display: block;
    position: relative;
    padding-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.party-building-en:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: #ffffff;
}

.main-content {
    background-color: #fff;
    padding: 40px 0;
}

.main-content .row {
    display: flex;
    align-items: stretch;
    min-height: 600px;
}

.main-content .row>[class*="col-"] {
    display: flex;
    flex-direction: column;
}

/* 确保中间和右侧列表等宽等高 */
.main-content .col-md-4 {
    flex: 1;
    max-width: none;
    min-height: 600px;
}


.sidebar {
    padding: 0;
    background-color: #fff;
}

.sidebar-title {
    background-color: transparent;
    color: #333;
    padding: 0;
    margin-bottom: 30px;
}

.party-en {
    font-size: 25px;
    font-weight: 500;
    color: rgba(230, 230, 230, 1);
    margin-bottom: 10px;
}

.party-cn {
    font-size: 45px;
    font-weight: 500;
    letter-spacing: 0.6px;
    line-height: 71.34px;
    color: #333;
    text-align: left;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.blue-line {
    width: 80px;
    height: 3px;
    background-color: #0066cc;
    margin-bottom: 30px;
}

.sidebar-subtitle {
    display: none;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    padding: 0;
    margin-bottom: 20px;
    border-bottom: none;
}

.sidebar-menu li a {
    color: #333;
    display: block;
    padding: 0;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
    border-bottom: none;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    color: #0066cc;
    background-color: transparent;
}

.sidebar-menu li a.active {
    color: #0066cc;
    font-weight: bold;
    border-bottom: 2px solid #0066cc;
    display: inline-block;
    padding-bottom: 5px;
}

.news-list {
    padding: 0 20px 20px 20px;
    height: 100%;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
}

.news-list-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0066cc;
    display: flex;
    justify-content: space-between;
}

.news-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9e9e9;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.news-date {
    width: 90px;
    color: #666;
    font-size: 14px;
    line-height: 1.2;
    margin-right: 15px;
    flex-shrink: 0;
}

.news-date .day {
    font-size: 24px;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.news-date .year {
    display: block;
}

.news-title {
    font-size: 18px;
    margin: 0;
    line-height: 1.4;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-title a {
    color: #333;
    text-decoration: none;
}

.news-title a:hover {
    color: #0066cc;
}

.news-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.huabiao-img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    border: none;
    box-shadow: none;
}

.featured-news {
    margin-bottom: 20px;
    text-align: left;
}

.featured-news img {
    width: 100%;
    height: auto;
    border: none;
    box-shadow: none;
    margin-bottom: 10px;
}

.right-news-list {
    padding: 0;
    height: 90%;
    min-height: 550px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
    margin-top: 50px;
}

.right-news-card {
    /*添加边框阴影*/
    background-color: #fff;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.05);
    border: none;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;

}

.right-news-card:hover {
    background-color: #f8f9fa;
}

.right-news-card a {
    display: block;
    color: #333;
    text-decoration: none;
}

.right-news-card a:hover {
    color: #0066cc;
    text-decoration: none;
}

.right-news-card:hover .right-news-card-body {
    background-color: #0066cc;
    color: white;
}

.right-news-card:hover .right-news-title,
.right-news-card:hover .right-news-date {
    color: white;
}

.right-news-card-body {
    padding: 15px;
    transition: all 0.3s ease;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
}

.right-news-title {
    font-size: 16px;
    margin: 0 0 10px 0;
    line-height: 1.4;
    color: #333;
    transition: all 0.3s ease;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.right-news-date {
    color: #666;
    font-size: 14px;
    margin-bottom: 0;
    transition: all 0.3s ease;
}

.more-link {
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.more-link:hover {
    text-decoration: underline;
}

.more-link i {
    margin-left: 5px;
}

.featured-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #0066cc;
    color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.featured-title a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.featured-title a:hover {
    text-decoration: underline;
}

.news-content {
    flex-grow: 1;
}

.right-featured-link {
    background-color: #0066cc;
    color: white;
    padding: 15px 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.right-featured-link:hover {
    background-color: #0052cc;
    color: white;
    text-decoration: none;
}

.right-featured-link .title {
    font-size: 16px;
    font-weight: bold;
}

.right-featured-link .icon {
    font-size: 18px;
}

/* 响应式设计 - 确保内容不溢出 */
@media (max-width: 768px) {
    .main-content .row {
        flex-direction: column;
        min-height: auto;
    }

    .main-content .col-md-4 {
        min-height: auto;
        margin-bottom: 20px;
    }

    .news-list {
        min-height: auto;
        padding: 0 15px 15px 15px;
    }

    .right-news-list {
        min-height: auto;
        padding: 0;
    }

    .news-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-date {
        width: auto;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .news-date .day {
        display: inline;
        margin-right: 5px;
    }

    .news-date .year {
        display: inline;
    }

    .news-title {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .right-news-title {
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* ==================== 无内容提示样式 ==================== */
.no-content-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    width: 100%;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.no-content-message {
    text-align: center;
    max-width: 400px;
    padding: 40px 20px;
}

.no-content-icon {
    margin-bottom: 24px;
    opacity: 0.6;
}

.no-content-icon svg {
    display: block;
    margin: 0 auto;
    opacity: 0.5;
}

.no-content-title {
    font-size: 24px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
}

.no-content-description {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 32px;
}

.back-home-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #3b82f6;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.back-home-btn:hover {
    background-color: #2563eb;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* 右侧无数据提示样式 */
.right-no-data-message {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.right-no-data-content {
    text-align: center;
    color: #666;
}

.right-no-data-icon {
    margin-bottom: 15px;
    opacity: 0.6;
}

.right-no-data-icon svg {
    display: block;
    margin: 0 auto;
    opacity: 0.5;
}

.right-no-data-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.right-no-data-text {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

/* 分页样式 */
.pagination-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    gap: 2px;
}

.page-item {
    margin: 0;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
    background-color: #fff;
}

.page-item.active .page-link {
    background-color: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

.page-item:not(.active) .page-link:hover {
    background-color: #f8f9fa;
    color: #0066cc;
    border-color: #0066cc;
}

.page-item.disabled .page-link {
    color: #adb5bd;
    pointer-events: none;
    cursor: default;
    background-color: #fff;
}

.pagination-info {
    color: #6b7280;
    font-size: 14px;
    text-align: center;
}

/* 右侧无数据提示样式 */
.right-no-data-message {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.right-no-data-content {
    text-align: center;
    color: #666;
}

.right-no-data-icon {
    font-size: 40px;
    color: #ccc;
    margin-bottom: 15px;
}

.right-no-data-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.right-no-data-text {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

/* 新闻项目点击效果 */
.news-item {
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.news-item:hover {
    background-color: #f8f9fa;
}

.right-news-card {
    cursor: pointer;
}