/* 语信博客页面专属样式 */
.blog-page {
    background: #F8FAFC;
    min-height: 100vh;
}

/* 分类导航 */
.blog-cat-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.blog-cat-nav .cat-btn {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s;
    border: 1.5px solid #E2E8F0;
    background: #fff;
    color: #64748B;
}
.blog-cat-nav .cat-btn:hover {
    border-color: #0D9488;
    color: #0D9488;
    transform: translateY(-1px);
}
.blog-cat-nav a.cat-btn.active {
    background: linear-gradient(135deg, #0D9488, #14B8A6);
    color: #fff !important;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.25);
}

/* 子分类 */
.blog-sub-cat {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    padding: 12px 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
}
.blog-sub-cat .sub-btn {
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s;
    color: #64748B;
}
.blog-sub-cat .sub-btn:hover {
    color: #0D9488;
    background: #F0FDFA;
}
.blog-sub-cat .sub-btn.active {
    background: #F0FDFA;
    color: #0D9488;
    font-weight: 600;
}

/* 操作按钮区 */
.blog-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.blog-actions .action-btn {
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.blog-actions .action-btn.primary {
    background: linear-gradient(135deg, #0D9488, #14B8A6);
    color: #fff;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.25);
}
.blog-actions .action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.35);
}
.blog-actions .action-btn.outline {
    border: 1.5px solid #E2E8F0;
    background: #fff;
    color: #64748B;
}
.blog-actions .action-btn.outline:hover {
    border-color: #0D9488;
    color: #0D9488;
    transform: translateY(-1px);
}

/* 主内容区：文章列表 + 侧边栏 */
.blog-main {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}

/* 文章卡片 */
.article-card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}
.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(13, 148, 136, 0.12);
    border-color: rgba(13, 148, 136, 0.2);
}
.article-card.top {
    border: 1px solid rgba(212, 175, 55, 0.3);
    background: linear-gradient(135deg, #FFFEF7 0%, #fff 100%);
}
.article-card.top:hover {
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.4);
}

/* 文章封面 */
.article-cover {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #F1F5F9;
}
.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.article-card:hover .article-cover img {
    transform: scale(1.05);
}

/* 文章内容 */
.article-body {
    padding: 24px;
}
.article-title-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}
.article-badge-top {
    flex-shrink: 0;
    padding: 3px 10px;
    background: linear-gradient(135deg, #D4AF37, #E5C76B);
    color: #1A1A1A;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}
.article-title {
    font-size: 20px;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.4;
    margin: 0;
    transition: color 0.25s;
}
.article-card:hover .article-title {
    color: #0D9488;
}
.article-card.top .article-title {
    color: #92700C;
}
.article-card.top:hover .article-title {
    color: #B8860B;
}

.article-summary {
    color: #64748B;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #94A3B8;
}
.article-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.article-meta .meta-cat {
    padding: 3px 10px;
    background: #F0FDFA;
    color: #0D9488;
    border-radius: 6px;
    font-weight: 500;
}
.article-meta .meta-author {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #64748B;
    text-decoration: none;
    font-weight: 500;
}
.article-meta .meta-author:hover {
    color: #0D9488;
}
.article-meta .author-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0D9488;
}
.article-meta .author-dot.admin {
    background: #D4AF37;
}
.article-meta .badge-official {
    padding: 2px 8px;
    background: linear-gradient(135deg, #0D9488, #14B8A6);
    color: #fff;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

/* 侧边栏 */
.blog-sidebar {
    position: sticky;
    top: 100px;
}
.sidebar-widget {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}
.widget-title {
    font-size: 18px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #F0FDFA;
    position: relative;
}
.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(135deg, #0D9488, #14B8A6);
    border-radius: 2px;
}

/* 热门文章 */
.hot-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.hot-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #F1F5F9;
    cursor: pointer;
    transition: all 0.25s;
}
.hot-item:last-child {
    border-bottom: none;
}
.hot-item:hover {
    transform: translateX(4px);
}
.hot-rank {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #F1F5F9;
    color: #94A3B8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}
.hot-item:nth-child(1) .hot-rank {
    background: linear-gradient(135deg, #EF4444, #F87171);
    color: #fff;
}
.hot-item:nth-child(2) .hot-rank {
    background: linear-gradient(135deg, #F59E0B, #FBBF24);
    color: #fff;
}
.hot-item:nth-child(3) .hot-rank {
    background: linear-gradient(135deg, #10B981, #34D399);
    color: #fff;
}
.hot-title {
    font-size: 14px;
    color: #334155;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.25s;
}
.hot-item:hover .hot-title {
    color: #0D9488;
}
.hot-views {
    font-size: 12px;
    color: #94A3B8;
    margin-top: 4px;
}

/* 分类云 */
.cat-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.cat-cloud .cat-tag {
    padding: 6px 14px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 13px;
    color: #64748B;
    text-decoration: none;
    transition: all 0.25s;
}
.cat-cloud .cat-tag:hover {
    background: #F0FDFA;
    border-color: #0D9488;
    color: #0D9488;
}

/* 分页 */
.blog-pager {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.blog-pager a, .blog-pager span {
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s;
    border: 1px solid #E2E8F0;
    background: #fff;
    color: #64748B;
}
.blog-pager a:hover {
    border-color: #0D9488;
    color: #0D9488;
    transform: translateY(-1px);
}
.blog-pager .current {
    background: linear-gradient(135deg, #0D9488, #14B8A6);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.25);
}

/* ThinkPHP默认分页样式 */
.blog-pager .pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}
.blog-pager .pagination li {
    list-style: none;
}
.blog-pager .pagination li a,
.blog-pager .pagination li span {
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s;
    border: 1px solid #E2E8F0;
    background: #fff;
    color: #64748B;
}
.blog-pager .pagination li a:hover {
    border-color: #0D9488;
    color: #0D9488;
    transform: translateY(-1px);
}
.blog-pager .pagination li.active span {
    background: linear-gradient(135deg, #0D9488, #14B8A6);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.25);
}
.blog-pager .pagination li.disabled span {
    opacity: 0.4;
    cursor: not-allowed;
}
@media (max-width: 768px) {
    .blog-pager .pagination {
        gap: 6px;
    }
    .blog-pager .pagination li a,
    .blog-pager .pagination li span {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 13px;
    }
}

/* 空状态 */
.blog-empty {
    text-align: center;
    padding: 80px 20px;
    color: #94A3B8;
}
.blog-empty .empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}
.blog-empty .empty-text {
    font-size: 16px;
}

/* 响应式 */
@media (max-width: 1024px) {
    .blog-main {
        grid-template-columns: 1fr;
    }
    .blog-sidebar {
        position: static;
    }
}
@media (max-width: 768px) {
    .article-body {
        padding: 18px;
    }
    .article-title {
        font-size: 17px;
    }
    .article-summary {
        font-size: 14px;
    }
    .article-cover {
        height: 180px;
    }
    .blog-cat-nav .cat-btn {
        padding: 7px 16px;
        font-size: 13px;
    }
    .blog-actions .action-btn {
        padding: 9px 18px;
        font-size: 13px;
    }
    .sidebar-widget {
        padding: 18px;
    }
}

/* ===== 用户封禁相关 ===== */
.user-banned-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #fff5f5 0%, #fee2e2 100%);
    border: 1px solid #fecaca;
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 18px;
    box-shadow: 0 4px 16px rgba(220,38,38,0.08);
    position: relative;
    overflow: hidden;
}
.user-banned-banner::after {
    content: "";
    position: absolute;
    top: -40px;
    right: -30px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(220,38,38,0.05);
    pointer-events: none;
}
.user-banned-banner .banned-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: #fff;
    border: 1px solid #fecaca;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(220,38,38,0.12);
}
.user-banned-banner .banned-info {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}
.user-banned-banner .banned-title {
    font-size: 16px;
    font-weight: 700;
    color: #b91c1c;
    margin-bottom: 3px;
    letter-spacing: 0.5px;
}
.user-banned-banner .banned-reason {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #b91c1c;
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 20px;
    padding: 3px 12px;
    margin-bottom: 6px;
}
.user-banned-banner .banned-reason::before {
    content: "封禁原因";
    font-size: 11px;
    font-weight: 400;
    color: rgba(185,28,28,0.7);
    margin-right: 2px;
}
.user-banned-banner .banned-sub {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.65;
}
@media (max-width: 768px) {
    .user-banned-banner {
        gap: 12px;
        padding: 13px 14px;
        border-radius: 12px;
    }
    .user-banned-banner .banned-icon {
        width: 38px;
        height: 38px;
        font-size: 19px;
    }
    .user-banned-banner .banned-title {
        font-size: 15px;
    }
}
.banned-comment-tip {
    display: inline-block;
    background: #fef2f2;
    border: 1px dashed #fca5a5;
    color: #dc2626;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    line-height: 1.6;
}

/* 封禁用户头像屏蔽（大头像） */
.user-avatar-large.banned {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.28);
}
.user-avatar-large .banned-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: linear-gradient(160deg, #eef2f7, #d9e1ec);
    border: 1px dashed rgba(148,163,184,0.55);
    border-radius: 50%;
}
.user-avatar-large .banned-avatar-icon {
    position: relative;
    width: 30px;
    height: 30px;
    border: 2.5px solid #dc2626;
    border-radius: 50%;
    background: rgba(220,38,38,0.07);
    display: inline-block;
    box-sizing: border-box;
}
.user-avatar-large .banned-avatar-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 26px;
    height: 3px;
    background: #dc2626;
    border-radius: 2px;
    transform: translate(-50%, -50%) rotate(45deg);
}
.user-avatar-large .banned-avatar-text {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 1px;
    background: rgba(255,255,255,0.75);
    border-radius: 10px;
    padding: 2px 9px;
    box-shadow: 0 1px 3px rgba(15,23,42,0.08);
}

/* 评论/回复封禁头像占位（小头像） */
.blog-comment-avatar.banned-avatar-mini,
.blog-reply-avatar.banned-avatar-mini {
    background: linear-gradient(160deg, #e2e8f0, #cbd5e1);
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #64748b;
    border: 1px solid #94a3b8;
    text-indent: 0;
}
.blog-comment-avatar.banned-avatar-mini::after,
.blog-reply-avatar.banned-avatar-mini::after {
    content: "🚫";
}
