/* 部门动态新闻页面样式 */

/* 新闻列表和详情页主容器 */
.department-news-main {
    background: #f5f5f5;
    padding: 10px 0;
}

.department-news-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

/* 左侧导航栏 */
.department-news-sidebar {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.department-sidebar-title {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.department-logo {
    height: 24px;
    width: auto;
}

.department-sidebar-title h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.department-sidebar-nav {
    padding: 0;
}

.department-sidebar-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.department-sidebar-nav li {
    border-bottom: 1px solid #f0f0f0;
}

.department-sidebar-nav li:last-child {
    border-bottom: none;
}

.department-nav-link {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
}

.department-nav-link:hover,
.department-nav-link.active {
    background: #f8f9fa;
    color: #1e3c72;
    padding-left: 25px;
}

.department-nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #1e3c72;
}

/* 右侧内容区域 */
.department-news-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.department-content-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 25px 30px;
    border-bottom: 1px solid #eaecef;
}

.department-content-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
}

.department-breadcrumb {
    font-size: 14px;
    opacity: 0.9;
}

.department-breadcrumb a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.department-breadcrumb a:hover {
    color: #ffd700;
}

/* 新闻列表样式 */
.department-news-list {
    padding: 0;
}

.department-news-item {
    display: flex;
    gap: 20px;
    padding: 25px 30px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.department-news-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.department-news-item:last-child {
    border-bottom: none;
}

.department-news-date {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.department-news-date .day {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.department-news-date .month {
    font-size: 12px;
    opacity: 0.9;
}

.department-news-info {
    flex: 1;
}

.department-news-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.department-news-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.department-news-title a:hover {
    color: #1e3c72;
}

.department-news-summary {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 15px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.department-news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.department-news-category {
    background: #e3f2fd;
    color: #1e3c72;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.department-news-time {
    color: #999;
    font-size: 12px;
}

/* 分页导航 */
.department-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 30px;
    border-top: 1px solid #f0f0f0;
}

.department-page-btn {
    padding: 8px 16px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.department-page-btn:hover {
    background: #1e3c72;
    color: white;
    border-color: #1e3c72;
}

.department-page-btn:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.department-page-numbers {
    display: flex;
    gap: 5px;
}

.department-page-number {
    padding: 8px 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.department-page-number:hover,
.department-page-number.active {
    background: #1e3c72;
    color: white;
    border-color: #1e3c72;
}

/* 新闻详情页样式 */
.department-news-detail {
    padding: 30px;
}

.department-detail-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.department-detail-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.department-detail-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #666;
}

.department-detail-category {
    background: #e3f2fd;
    color: #1e3c72;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
}

.department-detail-date,
.department-detail-views {
    color: #999;
}

.department-detail-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.department-detail-content h4 {
    font-size: 20px;
    font-weight: 600;
    color: #1e3c72;
    margin: 30px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e3f2fd;
}

.department-detail-content p {
    margin: 0 0 20px 0;
    text-align: justify;
}

.department-detail-content ul,
.department-detail-content ol {
    margin: 0 0 20px 0;
    padding-left: 30px;
}

.department-detail-content li {
    margin-bottom: 8px;
}

.department-detail-content strong {
    color: #1e3c72;
    font-weight: 600;
}

/* 新闻详情导航 */
.department-detail-navigation {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.department-nav-item {
    flex: 1;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.department-nav-item:hover {
    background: #e3f2fd;
    transform: translateY(-2px);
}

.department-nav-label {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.department-nav-item a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.department-nav-item a:hover {
    color: #1e3c72;
}

.department-prev-item {
    text-align: left;
}

.department-next-item {
    text-align: right;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .department-news-container {
        grid-template-columns: 200px 1fr;
        gap: 20px;
    }
    
    .department-news-item {
        padding: 20px;
    }
    
    .department-news-title {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .department-news-main {
        padding: 10px 0;
    }
    
    .department-news-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .department-news-sidebar {
        position: static;
        order: 2;
    }
    
    .department-news-content {
        order: 1;
    }
    
    .department-content-header {
        padding: 20px;
    }
    
    .department-content-header h1 {
        font-size: 20px;
    }
    
    .department-news-item {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }
    
    .department-news-date {
        align-self: flex-start;
        width: 50px;
        height: 50px;
    }
    
    .department-news-date .day {
        font-size: 16px;
    }
    
    .department-news-date .month {
        font-size: 10px;
    }
    
    .department-news-title {
        font-size: 16px;
    }
    
    .department-news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .department-news-detail {
        padding: 20px;
    }
    
    .department-detail-title {
        font-size: 22px;
    }
    
    .department-detail-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .department-detail-content {
        font-size: 14px;
    }
    
    .department-detail-content h4 {
        font-size: 18px;
    }
    
    .department-detail-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .department-prev-item,
    .department-next-item {
        text-align: left;
    }
    
    .department-pagination {
        flex-wrap: wrap;
        gap: 8px;
        padding: 20px;
    }
    
    .department-page-numbers {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .department-news-container {
        padding: 0 10px;
    }
    
    .department-content-header {
        padding: 15px;
    }
    
    .department-content-header h1 {
        font-size: 18px;
    }
    
    .department-news-item {
        padding: 15px;
    }
    
    .department-news-title {
        font-size: 15px;
    }
    
    .department-news-summary {
        font-size: 13px;
    }
    
    .department-news-detail {
        padding: 15px;
    }
    
    .department-detail-title {
        font-size: 20px;
    }
    
    .department-detail-content {
        font-size: 13px;
    }
    
    .department-detail-content h4 {
        font-size: 16px;
    }
    
    .department-pagination {
        padding: 15px;
    }
    
    .department-page-btn,
    .department-page-number {
        padding: 6px 10px;
        font-size: 12px;
    }
}
