/* 全局样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

a {
  text-decoration: none;
  color: #666 ;
}
/* 文章内容样式 */
.article-content {
    line-height: 1.8;
    font-size: 1rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
}

.article-content p {
    margin-bottom: 1rem;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.article-content blockquote {
    border-left: 4px solid #0d6efd;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #6c757d;
}

.article-content pre {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.25rem;
    overflow-x: auto;
}

.article-content code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
}

/* 卡片hover效果 */
.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease-in-out;
}

/* 五星推荐卡片悬浮效果 */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.15) !important;
}

/* 分页样式 */
.pagination {
    margin-top: 2rem;
}

/* 侧边栏样式 */
.list-group-item {
    border-color: #dee2e6;
}

.list-group-item:hover {
    background-color: #f8f9fa;
}

/* 标签云样式 */
.badge {
    font-size: 0.875rem;
    padding: 0.35em 0.65em;
}

/* 图书封面样式 */
.book-cover {
    max-width: 200px;
    height: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 响应式图片 */
.img-thumbnail {
    max-width: 100%;
    height: auto;
}

/* 表格样式 */
.table {
    margin-top: 1rem;
}

/* 按钮组样式 */
.btn-group {
    margin-bottom: 1rem;
}

/* 表单样式 */
.form-label {
    font-weight: 600;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Footer样式 */
footer {
    margin-top: auto;
}

/* 评论区样式 */
.comments-section .card {
    border-left: 3px solid #0d6efd;
}

/* 管理后台样式 */
.admin-sidebar {
    background-color: #f8f9fa;
    min-height: calc(100vh - 56px);
    padding: 1rem;
}

.admin-sidebar .nav-link {
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background-color: #0d6efd;
    color: white;
}

/* 统计卡片 */
.stat-card {
    border-left: 4px solid #0d6efd;
}

.stat-card.success {
    border-left-color: #198754;
}

.stat-card.warning {
    border-left-color: #ffc107;
}

.stat-card.danger {
    border-left-color: #dc3545;
}

/* 文件上传预览 */
.upload-preview {
    max-width: 200px;
    max-height: 200px;
    margin-top: 0.5rem;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .article-content {
        font-size: 0.95rem;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
}
