/* 党建页面样式 */
body {
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f5f5f5;
}

/* 轮播图样式 */
.dj-banner {
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.dj-swiper {
    width: 100%;
    position: relative;
}

.dj-swiper-container {
    width: 100%;
    height: 500px;
    overflow: hidden;
    position: relative;
}

.dj-swiper-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease;
}

.dj-swiper-slide {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    position: relative;
}

.dj-swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 分页器样式 */
.dj-swiper-pagination {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.dj-swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    margin: 0 8px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.dj-swiper-pagination-bullet-active {
    background-color: #fff;
}

/* 导航按钮样式 */
.dj-swiper-button-prev,
.dj-swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dj-swiper-button-prev {
    left: 20px;
}

.dj-swiper-button-next {
    right: 20px;
}

.dj-swiper-button-prev::after,
.dj-swiper-button-next::after {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
}

.dj-swiper-button-prev::after {
    transform: rotate(-45deg);
    margin-left: 5px;
}

.dj-swiper-button-next::after {
    transform: rotate(135deg);
    margin-right: 5px;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .dj-swiper-container {
        height: 300px;
    }
    
    .dj-swiper-button-prev,
    .dj-swiper-button-next {
        width: 30px;
        height: 30px;
    }
    
    .dj-swiper-pagination {
        bottom: 15px;
    }
}

/* 内容区域通用样式 */
.dj-content, .dj-history, .dj-bottom, .dj-resources {
    width: 80%;
    margin: 20px auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.dj-content {
    display: flex;
    background-color: #fff;
    min-height: 520px; /* 确保左右两侧高度一致 */
}

.dj-left, .dj-right {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

/* 立达要闻和上级精神区块样式 */
.dj-news, .dj-spirit {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dj-news h2, .dj-spirit h2, .dj-read h2, .dj-study h2, .dj-resources h2 {
    background-color: #c12c1f;
    color: #ffffff;
    margin: 0;
    padding: 12px 20px;
    font-size: 18px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dj-more {
    font-size: 14px;
    font-weight: normal;
}

.dj-more a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dj-more a:hover {
    color: #ffcc00;
}

.dj-news h2:after, .dj-spirit h2:after, .dj-read h2:after, .dj-study h2:after, .dj-resources h2:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 20px;
    width: 40px;
    height: 3px;
    background-color: #fff;
}

.dj-news-content, .dj-spirit-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 新闻项目样式 */
.dj-news-item {
    display: flex;
    margin-bottom: 15px; /* 减小间距 */
    background-color: #ffffff;
    border: 1px solid #eee;
    padding: 12px; /* 减小内边距 */
    border-radius: 5px;
    transition: all 0.3s ease;
    height: 110px; /* 固定高度 */
    box-sizing: border-box;
}

.dj-news-item:last-child {
    margin-bottom: 0;
}

.dj-news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 新闻图片样式 */
.dj-news-img {
    width: 100px; /* 减小图片宽度 */
    height: 65px; /* 减小图片高度 */
    margin-right: 15px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.dj-news-img a {
    display: block;
    width: 100%;
    height: 100%;
}

.dj-news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.dj-news-img:hover img {
    transform: scale(1.1);
}

/* 新闻列表和描述样式 */
.dj-news-list {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.dj-news-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dj-news-title a {
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dj-news-title a:hover {
    color: #c12c1f;
}

.dj-news-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dj-news-time {
    position: absolute;
    right: 0;
    bottom: 0;
    color: #ffffff;
    font-size: 13px;
    background-color: #c12c1f;
    padding: 2px 8px;
    border-radius: 3px;
}

/* 年份列表样式 */
.dj-year-list {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    gap: 10px;
}

.dj-year {
    background-color: #5fb0e5;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.dj-year:hover {
    background-color: #4a8cbf;
}

.dj-year.active {
    background-color: #c12c1f;
    font-weight: bold;
}

/* 精神列表样式 */
.dj-spirit-list {
    background-color: #ffffff;
    border: 1px solid #eee;
    padding: 12px; /* 减小内边距 */
    border-radius: 5px;
    height: 100%;
    display: flex;
    flex-direction: column;
    /*justify-content: space-between;*/
}

.dj-spirit-item {
    padding: 8px 12px; /* 减小内边距 */
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    height: 68px; /* 调整高度 */
    box-sizing: border-box;
}

.dj-spirit-item:last-child {
    border-bottom: none;
}

.dj-spirit-item:hover {
    background-color: #f9f9f9;
}

.dj-spirit-item:hover .dj-spirit-date {
    background-color: #c12c1f;
    color: #fff;
    border-color: #c12c1f;
}

.dj-spirit-date {
    min-width: 90px;
    font-size: 13px;
    margin-right: 15px;
    text-align: center;
    padding: 5px 10px;
    border-radius: 4px;
    background-color: #c12c1f;
    color: #f5f5f5;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* 精神标题样式 */
.dj-spirit-title {
    font-size: 15px;
    color: #333;
    flex: 1;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dj-spirit-title a {
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dj-spirit-title a:hover {
    color: #c12c1f;
}

/* 历史标语样式 */
.dj-history {
    background-color: #c12c1f;
    color: #ffffff;
    padding: 20px;
    text-align: center;
    position: relative;
}

.dj-history:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, #c12c1f, #f9e9c3);
}

.dj-history h2 {
    margin: 0;
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 1px;
}

/* 底部内容区域样式 */
.dj-bottom {
    display: flex;
    background-color: #fff;
}

.dj-read, .dj-study {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.dj-read-list, .dj-study-list {
    padding: 20px;
    background-color: #ffffff;
}

.dj-read-item, .dj-study-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dj-read-item:last-child, .dj-study-item:last-child {
    border-bottom: none;
}

.dj-read-item:hover, .dj-study-item:hover {
    background-color: #f9f9f9;
}

.dj-read-title, .dj-study-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
    color: #333;
}

.dj-read-date, .dj-study-date {
    color: #333;
    font-size: 13px;
    margin-left: 15px;
    white-space: nowrap;
}

/* 资源推荐区域样式 */
.dj-resources {
    background-color: #fff;
}

.dj-resources h2 {
    background-color: #c12c1f;
}

.dj-resources-list {
    padding: 25px;
    background-color: #ffffff;
}

.dj-resources-row {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.dj-resource-item {
    background-color: #f5f5f5;
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    color: #c12c1f;
    transition: all 0.3s ease;
    font-size: 15px;
    min-width: 100px;
    text-align: center;
    border: 1px solid #e0e0e0;
    font-weight: 500;
}

.dj-resource-item:hover {
    background-color: #c12c1f;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 响应式样式 */
@media screen and (max-width: 992px) {
    .dj-content, .dj-bottom, .dj-history, .dj-resources {
        width: 90%;
    }
}

@media screen and (max-width: 768px) {
    .dj-content, .dj-bottom {
        flex-direction: column;
    }
    
    .dj-left, .dj-right {
        padding: 10px;
        margin-bottom: 20px;
    }
    
    .dj-news-item {
        flex-direction: column;
    }
    
    .dj-news-img {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .dj-resources-row {
        flex-direction: column;
    }
    
    .dj-resource-item {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .dj-content, .dj-bottom, .dj-history, .dj-resources {
        width: 95%;
    }
}

/* 权威解读和学习同地区块样式 */
.dj-read-title a, .dj-study-title a {
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.dj-read-title a:hover, .dj-study-title a:hover {
    color: #c12c1f;
}

.dj-read-item, .dj-study-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dj-read-item:last-child, .dj-study-item:last-child {
    border-bottom: none;
}

.dj-read-item:hover, .dj-study-item:hover {
    background-color: #f9f9f9;
}

.dj-read-title, .dj-study-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
    color: #333;
}

.dj-read-date, .dj-study-date {
    color: #333;
    font-size: 13px;
    margin-left: 15px;
    white-space: nowrap;
} 





