/* ========== 首页主体内容区 ========== */

/* ========== 轮播区 ========== */
.carousel-section {
    margin-bottom: 20px;
}

.carousel-main {
    overflow: hidden;
    position: relative;
}

.carousel-main .carousel-item {

}

.carousel-slide {
    position: relative;
    overflow: hidden;
}

.carousel-slide img {
    width: 100%; /* 宽度设为100%，以适应容器宽度 */
    height: 100%; /* 高度设为100%，以适应容器高度 */
    object-fit: cover; /* 以最短边铺满容器，保持图片比例 */
}

.carousel-slide h4 {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #fff;
    font-size: 18px;
}

.carousel-indicators {
    bottom: 20px !important;
    margin: auto 5% !important;
    justify-content: end !important;
    z-index: 1!important;
}

.carousel-indicators li {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50%;
    margin: 0 3px;
    background: none !important;
    border: 2px solid var(--border-color) !important; /* 外部圆环颜色和宽度 */
    opacity: 1 !important;
}

.carousel-indicators .active {
    width: 13px !important;
    height: 13px !important;
    border-radius: 50%;
    margin: 0 3px;
    background: red !important;
    border: 2px solid red !important; /* 外部圆环颜色和宽度 */
}

/* ========== 右侧新闻区 ========== */
.news-section {

}

.news-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    position: relative;
    background: linear-gradient(90deg, rgb(255, 242, 242, 1) 0%, rgb(255, 242, 242, 0.1) 80%, rgb(255, 242, 242, 0.1) 100%);
}

.news-title::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(211, 39, 39, 1) 0%, rgba(211, 39, 39, 0.2) 80%, rgba(211, 39, 39, 0.1) 100%);
    pointer-events: none; /* 确保不阻挡鼠标点击事件 */
}

.news-title .name {
    color: var(--party-red);
    display: flex;
    align-items: center;
}

.news-title .name .iconfont {
    line-height: 20px;
    font-size: 24px;
    margin-right: 5px;
}
.news-title .name .text {
    font-size: 20px;
    font-weight: bold;
}

.news-title .more-link {
    color: var(--text-muted);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.news-title .more-link:hover {
    color: var(--party-red);
}

.news-card {
    margin-bottom: 25px;
    /*background: #fff;*/
    /*box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);*/
}

.card-list {
    list-style: none;
    padding: 15px;
    margin: 0;
    overflow: hidden;
}

.card-list li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
    display: flex;
    align-items: center;
}

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

.card-list li .ring-icon {
    width: 10px;
    height: 10px;
    background: none;
    border: 1px solid var(--party-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-right: 10px;
    flex-shrink: 0;
}

.card-list li a {
    color: var(--text-dark);
    text-decoration: none;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s;
}

.card-list li a:hover {
    color: var(--party-red);
}
.card-list li .date {
    color: var(--text-muted);
    margin-left: 10px;
}

/* ========== 公示公告栏 ========== */
.notice-section {
    background: rgb(255, 242, 242, 0.6);
    border-radius: 4px;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 4px solid var(--party-red);
}

.notice-title {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.notice-title .iconfont {
    color: var(--party-red);
    font-size: 24px;
    margin-right: 10px;
}

.notice-title .name {
    font-size: 20px;
    font-weight: 700;
    color: var(--party-red);
    margin: 0;
}

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

.notice-list li {
    padding: 10px;
    display: flex;
    align-items: center;
}

.notice-list li .iconfont {
    color: var(--party-red);
    font-size: 14px;
    margin-right: 10px;
}

.notice-list li a {
    color: var(--text-dark);
    text-decoration: none;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s;
}

.notice-list li a:hover {
    color: var(--party-red);
}
.notice-list li .date {
    color: var(--text-muted);
    margin-left: 10px;
}

/* ========== 党建宣传横幅区 ========== */
.zt-section {
    margin-bottom: 25px;
}

.zt-card {
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.zt-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(200, 16, 46, 0.25);
}

.zt-card a {
    display: inline-block;
    width: 100%;
}

.zt-card a img {
    width: 100%;
    /*height: 100%;*/
    object-fit: cover;
}

/* ========== tab切换栏目区 ========== */
.columns-section {

}

.tabs-section {
    background: #fff;
    border-radius: 4px;
    margin-bottom: 25px;
    position: relative;
}

.tabs-section .nav-pills {
    width: 446px;
    margin-bottom: 15px;
    border-bottom: 2px dashed #d20b0b;
}

.tabs-section .nav-pills .nav-link {
    height: 43px;
    line-height: 43px;
    padding: 0;
    margin-right: 20px;
    font-size: 20px;
    font-weight: bold;
    color: var(--text-muted-light);
    cursor: pointer;
    display: flex;
    align-items: center;
}

.tabs-section .nav-pills .nav-link.active {
    background: none !important;
    color: var(--party-red) !important;
    font-weight: bold;
}
.tabs-section .nav-pills .nav-link .iconfont {
    color: var(--text-muted-light);
    font-size: 22px;
    display: flex;
    align-items: center;
}
.tabs-section .nav-pills .nav-link.active .iconfont {
    color: var(--party-red);
}

.tabs-section .tab-pane {
    display: flex;
    justify-content: space-between;
}

.tabs-section .tab-pane.active {
    display: flex;
    justify-content: space-between;
}

.tabs-section .tab-pane .more-link {
    position: absolute;
    width: calc(100% - 446px);
    height: 45px;
    line-height: 45px;
    top: 0;
    right: 0;
    background: url('../images/right-line.png') no-repeat left bottom;
}

.tabs-section .tab-pane .more-link a {
    width: 100%;
    height: 45px;
    line-height: 45px;
    display: flex;
    justify-content: right;
    align-items: center;
}
.tabs-section .tab-pane .more-link a span {
    width: calc(100% - 35px);
}

.tabs-section .tab-pane .pic-news {
    width: 40%;
}

.tabs-section .tab-pane .text-news {
    width: 60%;
    overflow: hidden;
}

.tabs-section .tab-pane .text-news li:nth-child(n+9) { /* 从第8个子元素开始隐藏 */
    display: none;
}
.tabs-section .tab-pane .pic-news a {
    display: block;
    text-decoration: none;
    padding: 10px 0;
}

.tabs-section .tab-pane .pic-news a .news-img {
    width: 100%;
    overflow: hidden;
}

.tabs-section .tab-pane .pic-news a .news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tabs-section .tab-pane .pic-news a h4 {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
    padding: 10px 0 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tabs-section .tab-pane .pic-news a p {
    line-height: 20px;
    font-size: 14px;
    color: #999;
    margin: 0;
}

/* 新闻列表 */
.tabs-section .tab-pane .text-news {
    list-style: none;
    padding: 0 0 0 15px;
    margin: 0;
}

.tabs-section .tab-pane .text-news li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tabs-section .tab-pane .text-news li:last-child {
    border-bottom: none;
}

.tabs-section .tab-pane .text-news li a {
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    transition: color 0.2s;
}

.tabs-section .tab-pane .text-news li a::before {
    content: '›';
    color: var(--party-red);
    font-size: 18px;
    margin-right: 8px;
    flex-shrink: 0;
    font-weight: bold;
}

.tabs-section .tab-pane .text-news li a:hover {
    color: var(--party-red);
}

.tabs-section .tab-pane .text-news li .news-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tabs-section .tab-pane .text-news li .news-date {
    color: #999;
    margin-left: 10px;
}
.tabs-section .tab-pane .text-news .mobile-more-link {
    border: #f0f0f0 1px solid;
    border-radius: 5px;
    background: #f9f9f9;
}

/* ========== 党员教育资源区 ========== */
.video-section {
    background: #fff;
    border-radius: 4px;
    margin-bottom: 25px;
}

.video-title {
    margin-bottom: 15px;
}
.video-title .iconfont {
    font-size: 24px;
    color: var(--party-red);
    margin-right: 5px;
}

.video-title .name {
    width: 150px;
    height: 45px;
    line-height: 45px;
    font-size: 20px;
    color: var(--party-red) !important;
    border-bottom: 2px dashed #d20b0b;
    display: flex;
    align-items: center;
}
.video-title .name .text {
    font-weight: bold;
}

.video-title .more-link {
    width: calc(100% - 150px);
    height: 45px;
    line-height: 45px;
    background: url(../images/right-line.png) no-repeat left bottom;
}

.video-title .more-link a {
    width: 100%;
    height: 45px;
    line-height: 45px;
    display: flex;
    justify-content: right;
    align-items: center;
}
.video-title .more-link a span {
    width: calc(100% - 35px);
    height: 1px;
}

.video-container {
    width: 100%;
    height: 300px;
    border-radius: 4px;
    overflow: hidden;
    text-align: center;
    margin-bottom: 15px;
}


/* ========== 快捷入口 ========== */
.quick-entry-section {
    /*margin-bottom: 25px;*/
}

.quick-entry-card {
    width: calc((100% - 120px) / 5);
    background: #feeaeb;
    border-radius: 6px;
    padding: 20px 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: all 0.3s;
    border-top: 3px solid transparent;
}

.quick-entry-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(200, 16, 46, 0.15);
    border-top-color: var(--party-red);
}

.quick-entry-card .iconfont {
    font-size: 32px;
    color: var(--party-red);
    margin-right: 5px;
    display: flex;
    align-items: center;
}

.quick-entry-card .title {
    margin: 0;
    height: 50px;
    line-height: 50px;
    font-size: 20px;
    font-weight: bold;
    color: var(--text-dark);
}

/* ========== 联系我们 ========== */
.contact-container {
    width: 100%;
    background: url('../images/lxdh_bg.png') no-repeat center center;
    background-size: cover;
}

.contact-container .contact-section {
    margin: 0 auto;
    padding: 0 15px;
}

.contact-container .contact-section .contact-main {
    width: 100%;
}







/* ========== 友情链接 ========== */
.link-section .title {
    font-size: 20px;
    font-weight: bolder;
    height: 35px;
    line-height: 35px;
}

.link-section .link-list .item {
    height: 35px;
    line-height: 35px;
}

.link-section .link-list .item a {
    display: block;
    padding: 0 30px;
}
