/* 博客卡片样式 */
.blog-wrap {
    background: linear-gradient(135deg, #e9ecef 0%, #ffffff 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    position: relative;
    padding: 20px;
    z-index: 1;
}

.blog-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: shimmer 2s infinite;
    z-index: 2;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.blog-wrap:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 30px rgba(52, 58, 64, 0.15);
    border-color: #dee2e6;
}

/* 增强博客卡片 */
.blog-card-enhanced {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card-enhanced.hover-effect {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.blog-card-enhanced.hover-effect::before {
    animation-duration: 1s;
}

/* 移除了博客图片相关样式 */

/* 博客内容 */
.blog-content {
    position: relative;
    z-index: 2;
    padding: 24px 28px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 博客标题 */
.blog-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.blog-title a {
    background: linear-gradient(135deg, #212529 0%, #495057 50%, #6c757d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    letter-spacing: -0.5px;
}

.blog-title a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #495057, #6c757d);
    transition: width 0.3s ease;
}

.blog-title a:hover::after {
    width: 100%;
}

.blog-title a:hover {
    background: linear-gradient(135deg, #000000 0%, #343a40 50%, #495057 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 博客元数据 */
.blog-meta {
    background: rgba(248, 249, 250, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-meta::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: linear-gradient(180deg, #495057, #6c757d);
    border-radius: 2px;
}

.blog-meta:hover {
    background: rgba(233, 236, 239, 0.9);
    transform: translateX(4px);
}

.blog-meta .author,
.blog-meta .date {
    font-weight: 600;
    letter-spacing: 0.3px;
}

.blog-meta .author,
.blog-meta .date,
.blog-meta .read-count {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.blog-meta .author:hover,
.blog-meta .date:hover,
.blog-meta .read-count:hover {
    color: #495057;
}

.blog-meta i {
    font-size: 12px;
    opacity: 0.8;
}

/* 博客摘要 */
.blog-excerpt {
    color: #495057;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 博客底部 */
.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(222, 226, 230, 0.5);
}

/* 博客按钮 */
.blog-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #343a40 0%, #495057 100%);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(52, 58, 64, 0.2);
}

.blog-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.blog-btn:hover::before {
    left: 100%;
}

.blog-btn:hover {
    background: linear-gradient(135deg, #212529 0%, #343a40 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 58, 64, 0.3);
    color: #ffffff;
    text-decoration: none;
}

.blog-btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.blog-btn:hover i {
    transform: translateX(3px);
}

/* 博客分类 */
.blog-category {
    display: flex;
    align-items: center;
}

.category-tag {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.category-tag:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(52, 58, 64, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .blog-wrap {
        padding: 24px 20px;
        border-radius: 16px;
        box-shadow: 0 3px 15px rgba(52, 58, 64, 0.1);
    }

    .blog-wrap:hover {
        transform: translateY(-4px) scale(1.01);
        box-shadow: 0 6px 20px rgba(52, 58, 64, 0.12);
    }

    .blog-title {
        font-size: 18px;
        margin-bottom: 12px;
        letter-spacing: -0.3px;
    }

    .blog-meta {
        padding: 10px 14px;
        margin-bottom: 16px;
        border-radius: 10px;
        font-size: 12px;
    }

    .blog-excerpt {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .blog-btn {
        padding: 12px 24px;
        font-size: 13px;
        border-radius: 20px;
    }

    .blog-btn:hover {
        transform: translateY(-1px);
    }
}

@media (max-width: 480px) {
    .blog-wrap {
        padding: 20px 16px;
        border-radius: 14px;
    }

    .blog-title {
        font-size: 16px;
        font-weight: 600;
        letter-spacing: -0.2px;
    }

    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 8px 12px;
    }

    .blog-excerpt {
        font-size: 13px;
        line-height: 1.5;
    }

    .blog-btn {
        padding: 10px 20px;
        font-size: 12px;
        border-radius: 18px;
    }
}

/* 加载状态 */
#blog-loading {
    color: #495057;
    font-size: 16px;
    font-weight: 500;
    padding: 40px 0;
}

/* 无博客提示 */
.no-blogs-message {
    text-align: center;
    padding: 60px 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(52, 58, 64, 0.08);
    margin: 40px 0;
}

.no-blogs-icon {
    font-size: 60px;
    color: #adb5bd;
    margin-bottom: 20px;
    display: block;
}

.no-blogs-message h4 {
    font-size: 24px;
    font-weight: 700;
    color: #495057;
    margin-bottom: 15px;
}

.no-blogs-message p {
    font-size: 16px;
    color: #6c757d;
    max-width: 500px;
    margin: 0 auto;
}

/* 分页样式优化 */
.page-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding: 0;
    list-style: none;
}

.page-pagination li {
    margin: 0;
}

.page-pagination li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    color: #495057;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(52, 58, 64, 0.05);
}

.page-pagination li a:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 58, 64, 0.1);
}

.page-pagination li.active a {
    background: linear-gradient(135deg, #495057 0%, #6c757d 100%);
    border-color: #495057;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(73, 80, 87, 0.2);
}

.page-pagination li.active a:hover {
    background: linear-gradient(135deg, #343a40 0%, #495057 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 58, 64, 0.25);
}
