/* 全局样式 */
body {
    font-family: 'Microsoft YaHei', sans-serif;
    color: #333;
    background-color: #f8f9fa;
}

a {
    transition: all 0.3s ease;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
}

/* 卡片样式 */
.card {
    margin-bottom: 20px;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
    font-weight: bold;
}

/* 新闻卡片 */
.news-card {
    height: 100%;
}

.news-card .card-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.news-card .card-text {
    font-size: 0.9rem;
}

/* 标签样式 */
.badge {
    font-weight: normal;
    padding: 0.4rem 0.6rem;
    margin-right: 5px;
}

/* 评论样式 */
.media {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.media:last-child {
    border-bottom: none;
}

.media-body h5 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.replies {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #eee;
}

/* 分页样式 */
.pagination {
    margin-top: 30px;
}

/* 新闻内容页样式 */
.news-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.news-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

.news-content p {
    margin-bottom: 1.5rem;
}

/* 侧边栏样式 */
.list-group-item {
    border-left: none;
    border-right: none;
    padding: 0.75rem 1.25rem;
}

.list-group-item:first-child {
    border-top: none;
}

.list-group-item:last-child {
    border-bottom: none;
}

/* 用户头像 */
.avatar-preview {
    object-fit: cover;
    width: 150px;
    height: 150px;
}

/* 统计图表样式 */
.chart-container {
    height: 300px;
    margin-bottom: 30px;
}

/* 响应式调整 */
@media (max-width: 767.98px) {
    .card-title {
        font-size: 1rem;
    }
    
    .news-content {
        font-size: 1rem;
    }
    
    .avatar-preview {
        width: 100px;
        height: 100px;
    }
}

/* 导航激活状态 */
.nav-link.active {
    font-weight: bold;
    color: #007bff !important;
}

/* 页脚样式 */
footer {
    margin-top: 50px;
} 