/* 全局样式 */
body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* 导航栏 */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* 文章卡片 */
.article-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.article-card img {
    height: 200px;
    object-fit: cover;
}

/* 文章详情页 */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 1rem 0;
}

.article-content p {
    margin-bottom: 1.5rem;
}

/* 侧边栏 */
.card-header {
    font-weight: bold;
}

.list-group-item {
    border: none;
    border-bottom: 1px solid #eee;
}

.list-group-item:last-child {
    border-bottom: none;
}

/* 页脚 */
footer {
    margin-top: 3rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .article-card img {
        height: 150px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    /* 主题支持 */
.theme-green .navbar,
.theme-green .card-header.bg-primary,
.theme-green .btn-primary,
.theme-green .badge.bg-primary {
    background-color: #198754 !important;
    border-color: #198754 !important;
}

.theme-green .btn-primary:hover {
    background-color: #157347 !important;
    border-color: #146c43 !important;
}

.theme-red .navbar,
.theme-red .card-header.bg-primary,
.theme-red .btn-primary,
.theme-red .badge.bg-primary {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
}

.theme-red .btn-primary:hover {
    background-color: #bb2d3b !important;
    border-color: #b02a37 !important;
}

.theme-dark .navbar,
.theme-dark .card-header.bg-primary,
.theme-dark .btn-primary,
.theme-dark .badge.bg-primary {
    background-color: #212529 !important;
    border-color: #212529 !important;
}

.theme-dark .btn-primary:hover {
    background-color: #1c1f23 !important;
    border-color: #1a1e21 !important;
}

.theme-dark body {
    background-color: #f8f9fa;
}
}