@charset "gb2312";

/* ==================== TAB组件优化样式 ==================== */


/* 卡片悬停效果 */
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.deansecondnav{height:90px;}
.news-card:hover .hover-bg {
    opacity: 1;
}

/* 图片特效 */
.img-container:hover img {
    transform: scale(1.08) rotate(0.5deg);
    filter: brightness(1.05) contrast(1.1);
}

.img-container:hover .img-overlay {
    opacity: 0.3;
}

.img-container:hover .img-hover-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

/* 链接特效 */
.title-link:hover {
    color: #FF5722 !important;
}

.title-link:hover .link-underline {
    width: 100%;
}

/* 摘要区域特效 */
.summary-container:hover .summary-text {
    color: #555;
}

.news-card:hover .read-more {
    opacity: 1;
}

.news-card:hover .hover-info {
    opacity: 1;
}

/* 点击效果 */
.news-card:active {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 图片加载动画 */
.img-container {
    animation: imgFadeIn 0.6s ease-out;
}

@keyframes imgFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 卡片进入动画 */
.news-card {
    animation: cardSlideIn 0.5s ease-out;
    animation-fill-mode: both;
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 延迟动画，让卡片依次出现 */
.layui-col-md6:nth-child(1) .news-card { animation-delay: 0.1s; }
.layui-col-md6:nth-child(2) .news-card { animation-delay: 0.2s; }
.layui-col-md6:nth-child(3) .news-card { animation-delay: 0.3s; }
.layui-col-md6:nth-child(4) .news-card { animation-delay: 0.4s; }

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .news-card {
        height: 120px;
        padding: 12px;
    }
    
    .img-container {
        height: 90px;
    }
    
    .title-link {
        font-size: 15px !important;
    }
    
    .summary-text {
        font-size: 13px !important;
        -webkit-line-clamp: 2 !important;
    }
    
    .read-more {
        display: none;
    }
}
/* 响应式新闻列表 */
.layui-row {
    margin-bottom: 10px;
}

/* 普通新闻项 */
.news-item {
    background: #fff;
    padding: 12px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: all 0.3s;
    min-height: 140px;
    margin-bottom: 15px;
}

.news-item:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

/* 奇数项新闻 */
.news-item-odd {
    background: #f9f9f9;
    padding: 12px;
    border-radius: 4px;
    border-left: 3px solid #FF5722;
    transition: all 0.3s;
    min-height: 150px;
    margin-bottom: 15px;
}

.news-item-odd:hover {
    background: #fff5f5;
    box-shadow: 0 3px 10px rgba(255,87,34,0.1);
}

/* 图片容器 */
.news-img {
    overflow: hidden;
    border-radius: 3px;
}

.news-img img {
    transition: transform 0.5s;
}

.news-item:hover .news-img img {
    transform: scale(1.05);
}

/* 新闻信息 */
.news-info h3 a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}

.news-info h3 a:hover {
    color: #FF5722 !important;
}

.news-info p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .news-item, .news-item-odd {
        min-height: 120px;
    }
    
    .news-img {
        width: 35% !important;
    }
    
    .news-img img {
        height: 100px !important;
    }
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .newsbox {
        padding: 12px;
        margin-bottom: 10px;
    }
    
    .xspic img {
        height: 100px;
    }
    
    .xstit a {
        font-size: 15px;
    }
    
    .xszy {
        font-size: 13px;
    }
}


#deanhfbottom,.hnmesfooter{background:#c00}

.deannav ul li a:hover, .deannav ul li.a a {
    background: #580000;
    color: #fff;
}

/* 外框优化 - 去除边框，改用阴影 */
.layui-tab.layui-tab-brief {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    margin-bottom: 20px;
}

.slideshow span.title, .slidebar li{color:#fff;}
/* Tab标题栏优化 */
.layui-tab-title {
    border-bottom: 2px solid var(--party-border-red) !important;
    background: linear-gradient(to right, #fff9f9, #fff) !important;
    border-radius: 8px 8px 0 0 !important;
    padding: 0 15px !important;
    margin-bottom: 0 !important;
}

.layui-tab-title li {
    font-size: 15px !important;
    padding: 0 28px !important;
    height: 48px !important;
    line-height: 48px !important;
    color: #666 !important;
    font-weight: 500 !important;
    letter-spacing: 0.3px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
}

.layui-tab-title li:hover {
    color: var(--party-red) !important;
    background: rgba(194, 12, 12, 0.05) !important;
}

.layui-tab-title .layui-this {
    color: var(--party-red) !important;
    font-weight: 600 !important;
    background: #fff !important;
}

.layui-tab-title .layui-this:after {
    border-bottom: 3px solid var(--party-red) !important;
    height: 3px !important;
    border-radius: 2px !important;
    bottom: -2px !important;
}

/* Tab内容区域优化 */
.layui-tab-content {
    border: 1px solid #f0f0f0 !important;
    border-top: none !important;
    border-radius: 0 0 8px 8px !important;
    padding: 0 !important;
    background: #fff !important;
    box-shadow: 0 4px 12px rgb(0 0 0 / 5%) !important;
    min-height: 380px;}

/* 文章列表优化 */
.layui-tab-content .infoList {
    padding: 20px 24px !important;
    margin: 0 !important;
}

.layui-tab-content .infoList li {
    display: flex !important;
    align-items: center !important;
    padding: 14px 0 !important;
    border-bottom: 1px solid #f5f5f5 !important;
    line-height: 1.6 !important;
    transition: all 0.3s ease !important;
    position: relative !important;
}

.layui-tab-content .infoList li:last-child {
    border-bottom: none !important;
}

.layui-tab-content .infoList li:hover {
    background: linear-gradient(90deg, #fff9f9 0%, #fff 100%) !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    border-radius: 6px !important;
    transform: translateX(5px) !important;
}

/* 文章标题样式优化 */
.layui-tab-content .infoList li a {
    font-size: 15px !important;
    color: #333 !important;
    flex: 1 !important;
    line-height: 1.6 !important;
    letter-spacing: 0.2px !important;
    padding-right: 20px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    transition: color 0.3s ease !important;
    text-decoration: none !important;
    font-weight: 400 !important;
}

.layui-tab-content .infoList li:hover a {
    color: var(--party-red) !important;
    font-weight: 500 !important;
}

/* 日期样式优化 */
.layui-tab-content .infoList li .date {
    color: #888 !important;
    font-size: 16px !important;
    min-width: 85px !important;
    text-align: right !important;
    line-height: 1.4 !important;
    letter-spacing: 0.1px !important;
    padding: 4px 8px !important;
    background: #f9f9f9 !important;
    border-radius: 4px !important;
    border-left: 2px solid var(--party-border-red) !important;
    transition: all 0.3s ease !important;
    font-family: 'Microsoft YaHei', sans-serif !important;
}

.layui-tab-content .infoList li:hover .date {
    background: var(--party-bg-red) !important;
    color: var(--party-red) !important;
    transform: translateX(-4px) !important;
    font-weight: 500 !important;
}

/* 列表图标优化 */
.layui-tab-content .infoList li:before {
   
    color: var(--party-red) !important;
    font-size: 11px !important;
    margin-right: 12px !important;
    opacity: 0.6 !important;

    transition: all 0.3s ease !important;
}

.layui-tab-content .infoList li:hover:before {
    opacity: 1 !important;
    transform: translateX(3px) !important;
}

/* 无数据提示样式 */
.layui-tab-item .area > div[style*="padding: 30px"] {
    padding: 60px 30px !important;
    background: #fafafa !important;
    border-radius: 6px !important;
    margin: 20px !important;
    border: 1px dashed #e0e0e0 !important;
}

.layui-tab-item .area > div[style*="padding: 30px"] i {
    font-size: 48px !important;
    color: #ccc !important;
    margin-bottom: 15px !important;
    display: block !important;
}
.deanartice ul.deanarticec{width:100%;}
.newsctitle{width:100%}

/* ==================== 响应式优化 ==================== */
@media (max-width: 768px) {
    .layui-tab-title li {
        padding: 0 18px !important;
        font-size: 14px !important;
        height: 44px !important;
        line-height: 44px !important;
    }
    
    .layui-tab-content {
        min-height: 280px !important;
    }
    
    .layui-tab-content .infoList {
        padding: 16px 18px !important;
    }
    
    .layui-tab-content .infoList li {
        padding: 12px 0 !important;
        flex-wrap: wrap !important;
    }
    
    .layui-tab-content .infoList li a {
        font-size: 10px !important;
        line-height: 1.5 !important;
        padding-right: 0 !important;
        margin-bottom: 6px !important;
        width: 100% !important;
    }
    
    .layui-tab-content .infoList li .date {
        width: 100% !important;
        text-align: left !important;
        margin-top: 2px !important;
        font-size: 12px !important;
        min-width: auto !important;
    }
    
    .layui-tab-content .infoList li:hover {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
}
.deannstr1 {

    margin-right: 20px;
}
.newsctitle i{color:#c00;}
.newsctitle {
    width: 100%;
    font-size: 18px;
    font-weight: 600;
}
/* ==================== 保留原有的党建红色主题样式 ==================== */
:root {
    --party-red: #c20c0c;
    --party-dark-red: #9a0a0a;
    --party-light-red: #e64a4a;
    --party-bg-red: #fff5f5;
    --party-border-red: #ffcccc;
}

