/*
 * pages/blogs.css — 日志页专属（仅 blogs.html 引用）
 * 排序/视图按钮见 components.css；侧边栏 #blogs-list / #blogs-types 见 common.css。
 */

/* ==================== 日志页面美化样式 - 与首页风格一致 ==================== */

/* 日志页面背景 */
body.blogs-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    min-height: 100vh;
    padding-bottom: 24px;
}

/* 日志页头：背景透明，见 components.css */

/* 日志页尾签名：随内容滚动，样式见 components.css */

.blogs-breadcrumb {
    background: transparent !important;
}

.blogs-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s ease;
}

.blogs-breadcrumb .breadcrumb-item a:hover {
    color: #fff;
    text-decoration: none;
}

.blogs-breadcrumb .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.9);
}

.blogs-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* 日志主卡片 */
.blogs-main-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 40px;
    margin-top: 20px;
}

/* 页面标题区域 */
.blogs-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.blogs-header-icon {
    font-size: 48px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    display: block;
}

.blogs-header-title {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.blogs-header-subtitle {
    color: #718096;
    font-size: 16px;
}

.blogs-total-count {
    font-weight: 600;
    color: #667eea;
}

/* 分类标签区域 */
.blogs-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.category-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(145deg, #f8fafc, #fff);
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: 30px;
    font-size: 14px;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.category-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    text-decoration: none;
}

.category-tag.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.category-tag .count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #667eea;
    transition: all 0.3s ease;
}

.category-tag:hover .count,
.category-tag.active .count {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* 日志列表网格 */
.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* 日志卡片 */
.blog-card {
    background: linear-gradient(145deg, #f8fafc, #fff);
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.blog-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.25);
    text-decoration: none;
}

.blog-card:hover::before {
    opacity: 1;
}

.blog-card:hover .blog-title,
.blog-card:hover .blog-category,
.blog-card:hover .blog-time,
.blog-card:hover .blog-stats {
    position: relative;
    z-index: 1;
    color: #fff;
}

.blog-card:hover .blog-category {
    background: rgba(255, 255, 255, 0.2);
}

.blog-card:hover .blog-stats span {
    color: rgba(255, 255, 255, 0.9);
}

.blog-title {
    font-size: 17px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.blog-category {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #667eea;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    width: fit-content;
}

.blog-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-time {
    font-size: 13px;
    color: #718096;
    transition: color 0.3s ease;
}

.blog-time i {
    margin-right: 6px;
}

.blog-stats {
    display: flex;
    gap: 12px;
}

.blog-stats span {
    font-size: 13px;
    color: #718096;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.3s ease;
}

.blog-stats .fa-eye {
    color: #feca57;
}

.blog-stats .fa-comment {
    color: #4ecdc4;
}

.blog-stats .fa-thumbs-up {
    color: #ff6b6b;
}

/* 日志类型标签 */
.blog-labels {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
    z-index: 2;
}

.blog-label {
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    color: #fff;
}

.blog-label.original {
    background: linear-gradient(135deg, #11998e, #38ef7d);
}

.blog-label.repost {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

/* 搜索和筛选区 */
.blogs-toolbar {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.blogs-search {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.blogs-search input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 30px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    background: #fff;
}

.blogs-search input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.blogs-search i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #718096;
}

.blogs-sort {
    display: flex;
    gap: 8px;
}

/* 空状态 */
.blogs-empty {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
}

.blogs-empty i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.blogs-empty p {
    font-size: 16px;
}

/* 日志表格样式覆盖 */
.blogs-page #blogs-table {
    border-radius: 16px;
    overflow: hidden;
}

.blogs-page .bootstrap-table .fixed-table-container {
    border-radius: 16px;
    border: none;
}

.blogs-page .bootstrap-table .table {
    margin-bottom: 0;
}

.blogs-page .bootstrap-table .table thead th {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    padding: 16px 12px;
}

.blogs-page .bootstrap-table .table tbody td {
    padding: 14px 12px;
    vertical-align: middle;
}

.blogs-page .bootstrap-table .table tbody tr:hover {
    background: rgba(102, 126, 234, 0.05);
}

/* 日志页面响应式 */
@media (max-width: 768px) {
    .blogs-main-card {
        padding: 24px 16px;
        margin: 10px;
        border-radius: 20px;
    }
    
    .blogs-header-icon {
        font-size: 36px;
    }
    
    .blogs-header-title {
        font-size: 24px;
    }
    
    .blogs-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .blog-card {
        padding: 20px;
    }
    
    .blogs-categories {
        gap: 8px;
    }
    
    .category-tag {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .blogs-toolbar {
        flex-direction: column;
    }
    
    .blogs-sort {
        justify-content: center;
    }
}
