/* AI Blog Main CSS */

/* 全局 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}

/* 封面图样式 */
.article-cover {
    max-height: 400px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
}

.article-cover img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: fill;
    border-radius: 8px;
}

/* 卡片悬停效果 */
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.12) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* 文章卡片 */
.post-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.post-card .card-text {
    color: #6c757d;
    font-size: 0.9rem;
}

/* 分类页面 */
.category-header {
    border-bottom: 3px solid var(--bs-primary);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

/* 标签样式 */
.badge {
    font-weight: 400;
    font-size: 0.75rem;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}
