/* 页面标题样式 - 与人才招聘页面一致 */
.page-title {
    color: #0066cc;
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 25px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
    margin: 0;
}

.page-title.animated {
    animation: fadeInUp 0.8s ease-out;
}

.title-underline {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0066cc, #00aaff);
    border-radius: 2px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 新闻动态页面样式 - 与主站风格统一 */
.news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}


.news-filter {
    margin: 40px 0;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.filter-btn {
    padding: 10px 20px;
    background: #f1f8ff;
    /*background: rgba(0, 102, 204, 0.1);*/
    border: 1px solid rgba(0, 102, 204, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-color);
    font-size: 16px;
    font-weight: 500;
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 10px rgba(0, 102, 204, 0.5);
    transform: translateY(-2px);
}

.filter-btn:hover {
    background: rgba(0, 102, 204, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 102, 204, 0.2);
}

.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.news-item {
    border: none;
    border-radius: 12px;
    padding: 15px 15px 0 15px; /* 减少整体内边距 */
    cursor: pointer;
    background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-image-container {
    width: 100%;
    height: 180px;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.news-meta-container {
    margin-top: auto;
    padding-bottom: 0; /* 与上边距保持一致 */
    margin-bottom: 0;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item:hover .news-image {
    transform: scale(1.05);
}

.news-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 153, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}


.news-meta-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    
    gap: 10px;
}

.news-date {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
    
}

.clock-icon {
    color: #999;
    font-size: 0.9em;
    display: inline-block;
}

.admin-info {
    font-size: 0.8rem;
    color: #666;
    white-space: nowrap;
}

.news-date2:hover{
    color: white;
}

.news-title {
    font-size: 1.3rem;
    margin: 0 0 8px 0;
    color: black !important;
    font-weight: 600;
    line-height: 1.8em; /* 调整为精确的两行高度 */
    height: 3.6em; /* 固定高度为两行 */
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}


.news-subtitle {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.detail-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.news-item:hover .news-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

/* 详情页主标题样式 */
.news-main-title {
    font-size: 2.2rem;
    margin: 2rem 0 1.5rem;
    color: #0066cc;
    position: relative;
    padding-bottom: 15px;
}

.news-main-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0066cc, rgba(0, 153, 255, 0.5));
}

/* 详情页正文标题样式 */
.detail-content h2,
.detail-content h3,
.detail-content h4,
.detail-content h5,
.detail-content h6 {
    color: #333;
    margin: 1rem 0 0.5rem;
}

.detail-content h2 {
    font-size: 1.8rem;
}

.detail-content h3 {
    font-size: 1.6rem;
}

.detail-content h4 {
    font-size: 1.4rem;
}

.detail-content h5,
.detail-content h6 {
    font-size: 1.2rem;
}

.back-btn {
    margin-bottom: 30px;
    padding: 10px 20px;
    background: #f1f8ff;
    border: 1px solid rgba(0, 102, 204, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.back-btn:hover {
    background: rgba(0, 102, 204, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 102, 204, 0.1);
}

.detail-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    line-height: 1.8;
    border: 1px solid rgba(0, 153, 255, 0.3);
}
.detail-content p {
    text-indent: 2em;
    white-space: pre-wrap;
}

.detail-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #333;
    position: relative;
    padding-bottom: 10px;
}

.detail-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), rgba(0, 153, 255, 0.5));
}

.detail-content h3 {
    font-size: 1.7rem;
    margin: 2rem 0 1rem;
    color: #333;
}

.detail-content h4 {
    font-size: 1.5rem;
    margin: 1.8rem 0 1rem;
    color: #333;
}

.detail-content h5,
.detail-content h6 {
    font-size: 1.3rem;
    margin: 1.5rem 0 0.8rem;
    color: #333;
}

/* 分页导航样式 */
.pagination-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px auto;
    flex-wrap: wrap;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.pagination-btn {
    padding: 10px 18px;
    background: #f1f8ff;
    border: 1px solid rgba(0, 102, 204, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-color);
    font-size: 15px;
    min-width: 40px;
    text-align: center;
    font-weight: 500;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(0, 102, 204, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0, 102, 204, 0.1);
}

.pagination-btn.active {
    background: var(--primary-color);
    color: white;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

