/* 党群工作二级页面样式 */

.dangqun-modules  {
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
/* 党群工作模块样式 */
.dangqun-section {
    width: calc(50% - 15px); /* 增加宽度，减小间距至30px */
    margin-bottom: 25px;  /* 减小模块之间的间距 */
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;

}

/* 模块标题样式 */
.dangqun-title {
    position: relative;
    padding: 15px 20px;
    border-left: 4px solid #e60012;
    /* background-color: #f8f0f0; */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dangqun-title h2 {
    font-size: 18px;
    color: #333;
    margin: 0;
    font-weight: bold;
}

/* 添加标题下方的红色分割线 */
.dangqun-title:after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background-color: #e60012;
    position: absolute;
    bottom: 0;
    left: 0;
}

.dangqun-title .more {
    color: #999;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s;
}

.dangqun-title .more:hover {
    color: #e60012;
}

/* 模块内容样式 */
.dangqun-content {
    padding: 15px;
}

/*  hadronic project and corruption construction module */
.dangqun-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dangqun-list li {
    border-bottom: 1px dashed #eee;
    padding: 12px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dangqun-list li:last-child {
    border-bottom: none;
}

.dangqun-list li:before {
    content: '•';
    color: #e60012;
    margin-right: 10px;
    font-weight: bold;
}

.dangqun-list li a {
    flex: 1;
    color: #333;
    text-decoration: none;
    transition: color 0.3s, padding-left 0.3s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dangqun-list li a:hover {
    color: #e60012;
    padding-left: 5px;
}

.dangqun-list li .date {
    color: #999;
    font-size: 14px;
    margin-left: 15px;
}

/* 科研项目和关键技术模块 */
.dangqun-intro {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.dangqun-intro-icon {
    width: 60px;
    height: 60px;
    background-color: #f5f5f5;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.dangqun-intro-icon img {
    width: 30px;
    height: 30px;
}

.dangqun-intro-text {
    flex: 1;
    color: #666;
    line-height: 1.6;
    font-size: 16px;
    /* 默认最多显示4行，超出省略 */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4; /* 限制为4行 */
    overflow: hidden;
    text-overflow: ellipsis;
    /* 高度兜底与占位：4行 * 1.6em = 6.4em */
    max-height: 6.4em;
    min-height: 6.4em; /* 不足4行也保留空间 */
}
/* 悬浮提示冒泡样式（仅用于显示，不改变原区域高度）*/
.dangqun-intro-tooltip {
    position: fixed;
    background: #fff;
    color: #333;
    border: 1px solid rgba(0,0,0,0.12);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    padding: 12px 14px;
    border-radius: 6px;
    max-width: 520px;
    max-height: 60vh;
    overflow: auto;
    z-index: 9999;
    font-size: 16px;
    line-height: 1.6;
}
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 15px;
    padding-left: 15px;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .dangqun-section {
        width: 100%;
    }
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .dangqun-intro {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .dangqun-intro-icon {
        margin-bottom: 15px;
    }
    
    .dangqun-list li {
        display: flex;
        justify-content: space-between;
        padding: 12px 0;
        border-bottom: 1px dashed #e0e0e0;
        position: relative;
        padding-left: 15px;
    }
    
    .dangqun-list li .date {
        margin-left: 0;
        margin-top: 5px;
    }
}