/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0366d6;
    --text-color: #24292e;
    --border-color: #e1e4e8;
    --bg-color: #ffffff;
    --secondary-bg: #f6f8fa;
    --danger-color: #d73a49;
}

html {
    position: relative;
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--secondary-bg);
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* 页面布局 */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

.content {
    flex: 1 0 auto;
}

/* 容器 */
.blog-container,
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
}

.post-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-color);
    color: var(--text-color);
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.btn:hover {
    background: var(--secondary-bg);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: #0256c7;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
    border-color: var(--danger-color);
}

.btn-secondary {
    background: var(--secondary-bg);
}

.btn-sm {
    padding: 4px 12px;
    font-size: 12px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* 博客首页 */
.blog-header {
    padding: 40px 0 30px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

.blog-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.header-right {
    min-width: 0;
}

.header-text {
    margin-bottom: 12px;
}

.blog-header h1 {
    font-size: 32px;
    margin-bottom: 4px;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

.blog-header p {
    color: #586069;
    font-size: 15px;
    margin-bottom: 0;
    line-height: 1.5;
}

.blog-header .post-count {
    color: #586069;
    font-size: 15px;
    font-weight: 500;
}

.blog-nav {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 20px;
}

.blog-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.blog-nav a:hover {
    color: var(--primary-color);
    background: rgba(3, 102, 214, 0.08);
}

.blog-nav a.active {
    color: white;
    background: var(--primary-color);
}

/* 主内容和侧边栏布局 */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 50px;
    margin-top: 50px;
}

.posts-main {
    min-width: 0;
}

/* 侧边栏样式 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.widget {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 26px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.widget:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.widget h3 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 3px solid var(--primary-color);
    color: var(--text-color);
}

/* 最新文章列表 */
.recent-posts {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recent-posts li {
    padding-left: 0;
}

.recent-posts a {
    display: block;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.6;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.recent-posts a:hover {
    background: var(--secondary-bg);
    border-left-color: var(--primary-color);
    transform: translateX(4px);
    color: var(--primary-color);
}

/* 分类列表 */
.categories {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.categories li {
    padding-left: 0;
}

.categories a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 6px;
    background: var(--secondary-bg);
    transition: all 0.2s ease;
}

.categories a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(4px);
}

/* 标签云 */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    display: inline-block;
    padding: 6px 14px;
    background: var(--secondary-bg);
    color: var(--text-color);
    text-decoration: none;
    font-size: 13px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.tag-item:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(3, 102, 214, 0.3);
}

/* 标签链接（文章卡片中） */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-link {
    display: inline-block;
    padding: 2px 10px;
    background: var(--secondary-bg);
    color: #586069;
    text-decoration: none;
    font-size: 12px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.tag-link:hover {
    background: var(--primary-color);
    color: white;
}

.category-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.category-link:hover {
    text-decoration: underline;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.post-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.post-card h2 {
    font-size: 24px;
    margin-bottom: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.post-card h2 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.post-card h2 a:hover {
    color: var(--primary-color);
}

.post-summary {
    color: #586069;
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.7;
}

.post-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #586069;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

/* 文章详情 */
.post-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

/* 面包屑导航 */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    margin-bottom: 20px;
    font-size: 14px;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-item:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: #586069;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.breadcrumb-separator {
    color: #586069;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(3, 102, 214, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    background: #0256c7;
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(3, 102, 214, 0.4);
}

.back-to-top.show {
    display: flex;
}

/* 移动端目录按钮 - 默认隐藏 */
.mobile-toc-toggle {
    display: none;
}

.mobile-toc-overlay {
    display: none;
}

.mobile-toc-close {
    display: none;
}

/* 文章详情和目录布局 */
.post-with-toc {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 40px;
    align-items: start;
}

.post-content-wrapper {
    min-width: 0;
}

.post-detail {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 30px;
    min-width: 0;
}

/* 目录侧边栏 */
.toc-sidebar {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.toc-wrapper {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.toc-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    color: var(--text-color);
}

.toc-nav {
    font-size: 14px;
}

.toc-nav ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.toc-nav li {
    margin: 0;
}

.toc-nav a {
    display: block;
    padding: 6px 0;
    color: #586069;
    text-decoration: none;
    line-height: 1.5;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
    padding-left: 12px;
}

.toc-nav a:hover {
    color: var(--primary-color);
    padding-left: 16px;
}

.toc-nav a.active {
    color: var(--primary-color);
    font-weight: 600;
    border-left-color: var(--primary-color);
    background: rgba(3, 102, 214, 0.05);
    padding-left: 16px;
}

/* 嵌套目录缩进 */
.toc-nav ul ul {
    padding-left: 16px;
}

.toc-nav ul ul a {
    font-size: 13px;
}

/* 目录滚动条美化 */
.toc-sidebar::-webkit-scrollbar {
    width: 6px;
}

.toc-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.toc-sidebar::-webkit-scrollbar-thumb {
    background: #d1d5da;
    border-radius: 3px;
}

.toc-sidebar::-webkit-scrollbar-thumb:hover {
    background: #959da5;
}

/* 响应式：小屏幕隐藏目录 */
@media (max-width: 1024px) {
    .post-with-toc {
        grid-template-columns: 1fr;
    }
    
    .toc-sidebar {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-color);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 1001;
        overflow-y: auto;
        padding: 20px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        visibility: hidden;
    }
    
    .toc-sidebar.show {
        transform: translateX(0);
        visibility: visible;
    }
    
    .toc-wrapper {
        box-shadow: none;
        border: none;
        padding: 0;
        position: relative;
    }
    
    /* 移动端目录关闭按钮 */
    .mobile-toc-close {
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        width: 36px;
        height: 36px;
        background: transparent;
        border: none;
        color: var(--text-color);
        cursor: pointer;
        padding: 8px;
        border-radius: 6px;
        transition: all 0.2s;
    }
    
    .mobile-toc-close:hover {
        background: var(--secondary-bg);
        color: var(--primary-color);
    }
    
    /* 移动端目录标题 */
    .toc-sidebar .toc-title {
        padding-right: 40px;
    }
    
    /* 移动端目录按钮 */
    .mobile-toc-toggle {
        display: flex;
        position: fixed;
        bottom: 100px;
        right: 20px;
        width: 48px;
        height: 48px;
        background: var(--primary-color);
        color: white;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(3, 102, 214, 0.3);
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .mobile-toc-toggle:hover {
        background: #0256c7;
        transform: scale(1.1);
    }
    
    .mobile-toc-toggle.hide {
        display: none;
    }
    
    /* 移动端目录遮罩层 */
    .mobile-toc-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .mobile-toc-overlay.show {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 768px) {
    .post-container {
        padding: 10px;
    }
    
    .post-detail {
        padding: 20px;
    }
    
    /* 移动端优化元数据显示 */
    .post-meta {
        gap: 12px;
        font-size: 12px;
    }
    
    .post-meta-item svg {
        width: 12px;
        height: 12px;
    }
}

.post-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.post-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: #586069;
    margin-top: 15px;
    align-items: center;
}

.post-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.post-meta-item svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.post-meta-item:hover {
    color: var(--primary-color);
}

.post-meta-item:hover svg {
    opacity: 1;
}

.post-content {
    font-size: 16px;
    line-height: 1.7;
}

/* 评论区 */
.comments-section {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 48px;
    margin-top: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.comments-section:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.comments-section h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 36px;
    color: var(--text-color);
    padding-bottom: 20px;
    border-bottom: 3px solid transparent;
    background: linear-gradient(to right, var(--primary-color) 0%, transparent 100%) bottom no-repeat;
    background-size: 120px 3px;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.comments-section h2::before {
    content: '';
    width: 6px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary-color), #0256c7);
    border-radius: 3px;
    display: inline-block;
}

/* GitHub 登录提示 */
.github-login {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #cbd5e0;
    border-radius: 16px;
    margin-bottom: 40px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.github-login::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(3, 102, 214, 0.03) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.github-login:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #f0f4f8 0%, #e3e8ed 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(3, 102, 214, 0.08);
}

.github-login:hover::before {
    opacity: 1;
}

.github-login p {
    font-size: 17px;
    color: #4a5568;
    margin-bottom: 24px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.github-login button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(3, 102, 214, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    border-radius: 8px;
}

.github-login button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(3, 102, 214, 0.35);
}

.github-login button:active {
    transform: translateY(-1px);
}

/* 评论表单容器 */
.comment-form-container {
    margin-bottom: 40px;
}

/* 评论表单 */
.comment-form {
    background: linear-gradient(to bottom, #fafbfc, #f6f8fa);
    padding: 32px;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    margin-bottom: 35px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.comment-form:hover {
    border-color: #cbd5e0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* 当前用户信息 */
.current-user {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    box-shadow: 0 3px 10px rgba(3, 102, 214, 0.2);
    transition: all 0.3s ease;
}

.user-avatar:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 15px rgba(3, 102, 214, 0.3);
}

.current-user span {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-color);
}

/* 评论输入框 */
.comment-form textarea {
    width: 100%;
    padding: 18px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    resize: vertical;
    margin-bottom: 18px;
    background: var(--bg-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 120px;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(3, 102, 214, 0.12);
    transform: translateY(-1px);
}

.comment-form textarea::placeholder {
    color: #a0aec0;
}

/* 评论操作按钮 */
.comment-actions {
    display: flex;
    gap: 14px;
    align-items: center;
}

.comment-actions .btn {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.comment-actions .btn-primary {
    box-shadow: 0 3px 10px rgba(3, 102, 214, 0.25);
}

.comment-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(3, 102, 214, 0.35);
}

.comment-actions .btn-secondary:hover {
    background: #e2e8f0;
}

/* 评论列表 */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 评论项 */
.comment-item {
    display: flex;
    gap: 20px;
    padding: 28px;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
}

.comment-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
    border-radius: 16px 0 0 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.comment-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.comment-item:hover::before {
    opacity: 1;
}

/* 评论头像 */
.comment-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 3px solid var(--border-color);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.comment-item:hover .comment-avatar {
    border-color: var(--primary-color);
    transform: scale(1.08) rotate(3deg);
    box-shadow: 0 4px 16px rgba(3, 102, 214, 0.25);
}

/* 评论主体 */
.comment-body {
    flex: 1;
    min-width: 0;
}

/* 评论头部 */
.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    font-size: 14px;
}

.comment-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.comment-header strong {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color);
    background: linear-gradient(135deg, var(--primary-color), #0256c7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.comment-ua {
    font-size: 12px;
    color: #718096;
    font-weight: 500;
    padding: 3px 10px;
    background: var(--secondary-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.comment-ua::before {
    content: '';
    margin-right: 0;
}

.comment-header time {
    font-size: 13px;
    color: #718096;
    font-weight: 500;
    padding: 4px 12px;
    background: var(--secondary-bg);
    border-radius: 8px;
    white-space: nowrap;
}

/* 评论内容 */
.comment-content {
    font-size: 15px;
    line-height: 1.8;
    color: #2d3748;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.comment-content.markdown-body {
    background: transparent;
    padding: 0;
}

/* 被屏蔽的评论 */
.comment-blocked {
    color: #a0aec0;
    font-style: italic;
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    padding: 16px 20px;
    border-radius: 10px;
    border-left: 4px solid var(--danger-color);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-blocked::before {
    content: '⚠';
    font-size: 18px;
    font-style: normal;
}

/* 移动端响应式优化 */
@media (max-width: 768px) {
    .comments-section {
        padding: 28px 20px;
        border-radius: 12px;
    }
    
    .comments-section h2 {
        font-size: 22px;
        margin-bottom: 28px;
    }
    
    .github-login {
        padding: 40px 24px;
    }
    
    .comment-form {
        padding: 24px 20px;
    }
    
    .comment-item {
        gap: 14px;
        padding: 20px 16px;
    }
    
    .comment-avatar {
        width: 44px;
        height: 44px;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .comment-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .comment-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* 后台管理 */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.post-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
}

.post-info h3 {
    margin-bottom: 10px;
}

.post-info h3 a {
    color: var(--text-color);
    text-decoration: none;
}

.visibility-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.visibility-badge.public {
    background: #28a745;
    color: white;
}

.visibility-badge.private {
    background: #6c757d;
    color: white;
}

.visibility-badge.shareonly {
    background: #ffc107;
    color: #000;
}

.post-actions {
    display: flex;
    gap: 10px;
}

/* 表单 */
.post-form {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
}

.markdown-editor {
    font-family: 'Courier New', monospace;
    min-height: 400px;
}

#markdown-preview {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 20px;
    min-height: 200px;
    background: var(--bg-color);
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.text-danger {
    color: var(--danger-color);
    font-size: 14px;
}

/* 登录页面 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--secondary-bg);
}

.login-box {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.login-box h1 {
    text-align: center;
    margin-bottom: 30px;
}

/* 分享 */
.share-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
    color: #856404;
}

.share-result {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
}

.share-url-box {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.share-url-box input {
    flex: 1;
}

.share-hint {
    font-size: 14px;
    color: #586069;
    margin-top: 10px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #586069;
}

/* ============================================
   分类页面样式 (Category Index & Detail)
   ============================================ */

/* 分类网格布局 */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 50px;
    padding: 0 20px;
}

.category-card {
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    min-height: 180px;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.category-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.category-card h3 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.category-card h3 a:hover {
    color: var(--primary-color);
}

.category-card p {
    color: #586069;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
    flex: 1;
}

.category-card .count {
    display: inline-block;
    padding: 8px 18px;
    background: linear-gradient(135deg, var(--secondary-bg) 0%, #e9ecef 100%);
    color: #586069;
    font-size: 14px;
    border-radius: 20px;
    font-weight: 600;
    align-self: flex-start;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* ============================================
   标签页面样式 (Tag Index & Detail)
   ============================================ */

/* 标签容器 */
.tags-container {
    margin-top: 50px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 30px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.tag-item-large {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 30px;
    background: var(--bg-color);
    color: var(--text-color);
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    border: 2px solid var(--border-color);
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.tag-item-large:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 20px rgba(3, 102, 214, 0.35);
}

.tag-item-large span {
    color: #586069;
    font-size: 15px;
    font-weight: 500;
}

.tag-item-large:hover span {
    color: rgba(255, 255, 255, 0.95);
}

/* 标签详情页 - 优化文章列表 */
.posts-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-item {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.post-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
}

.post-item h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.post-item h2 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.post-item h2 a:hover {
    color: var(--primary-color);
}

.post-item p {
    color: #586069;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.post-item .post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #586069;
}

.post-item .post-meta time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.post-item .post-meta time::before {
    content: "📅";
    font-size: 12px;
}

.post-item .post-meta .tag {
    display: inline-block;
    padding: 3px 10px;
    background: var(--secondary-bg);
    color: #586069;
    text-decoration: none;
    font-size: 12px;
    border-radius: 12px;
    transition: all 0.2s;
}

.post-item .post-meta .tag:hover {
    background: var(--primary-color);
    color: white;
}

/* ============================================
   归档页面样式 (Archive)
   ============================================ */

.archive-container {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.archive-group {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 32px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.archive-group:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.archive-group h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.archive-group h2::before {
    content: "📁";
    font-size: 24px;
}

.archive-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.archive-list li {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px 16px;
    border-radius: 10px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.archive-list li:hover {
    background: var(--secondary-bg);
    transform: translateX(6px);
    border-left-color: var(--primary-color);
}

.archive-list time {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--secondary-bg) 0%, #e9ecef 100%);
    color: #586069;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    min-width: 70px;
    text-align: center;
    font-family: 'Courier New', monospace;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.archive-list a {
    flex: 1;
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    line-height: 1.5;
    transition: color 0.2s;
}

.archive-list a:hover {
    color: var(--primary-color);
    font-weight: 600;
}

/* 响应式设计 */
/* 平板设备 (768px - 1024px) */
@media (max-width: 1024px) {
    .blog-container,
    .admin-container {
        max-width: 100%;
        padding: 25px;
    }

    .post-container {
        padding: 25px;
    }

    .content-wrapper {
        grid-template-columns: 1fr 280px;
        gap: 35px;
    }

    .widget {
        padding: 20px;
    }

    .widget h3 {
        font-size: 17px;
    }

    /* 分类网格 */
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 24px;
    }
}

/* 平板和大手机 (max-width: 768px) */
@media (max-width: 768px) {
    .blog-container,
    .admin-container {
        padding: 20px;
    }

    .post-container {
        padding: 15px;
    }

    .blog-header {
        padding: 30px 0 20px;
    }

    .blog-header h1 {
        font-size: 26px;
    }

    .blog-logo {
        width: 64px;
        height: 64px;
        border-radius: 50%;
    }

    .header-content {
        gap: 20px;
    }

    .blog-nav {
        gap: 16px;
        font-size: 15px;
    }

    /* 侧边栏移到主内容下方 */
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .sidebar {
        order: 2;
    }

    .posts-main {
        order: 1;
    }

    /* 文章卡片 */
    .post-card {
        padding: 24px;
    }

    .post-card h2 {
        font-size: 20px;
    }

    /* 分类网格 */
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0;
    }

    /* 标签容器 */
    .tags-container {
        padding: 20px 0;
        gap: 14px;
    }

    .tag-item-large {
        padding: 12px 20px;
        font-size: 15px;
    }

    /* 归档容器 */
    .archive-group {
        padding: 24px;
    }

    .archive-group h2 {
        font-size: 22px;
    }

    /* 侧边栏在移动端改为水平滚动或网格布局 */
    .sidebar {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .widget {
        padding: 18px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .post-detail {
        padding: 20px;
    }

    .post-header h1 {
        font-size: 24px;
    }
    
    .post-meta {
        gap: 12px;
        font-size: 13px;
    }
    
    .post-meta-item {
        font-size: 13px;
    }

    .post-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .post-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .comment-user-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .comment-ua::before {
        content: '';
        margin-right: 0;
    }
    
    .comment-header time {
        font-size: 12px;
    }

    .form-actions,
    .comment-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    /* 标签云在移动端优化 */
    .tags-cloud {
        justify-content: flex-start;
    }

    .tag-item {
        font-size: 12px;
        padding: 5px 12px;
    }

    /* 分类网格移动端 */
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 30px;
    }

    .category-card {
        padding: 20px;
    }

    /* 标签容器移动端 */
    .tags-container {
        margin-top: 30px;
        padding: 10px;
        gap: 12px;
        justify-content: flex-start;
    }

    .tag-item-large {
        font-size: 14px;
        padding: 10px 18px;
    }

    /* 归档页面移动端 */
    .archive-container {
        gap: 24px;
    }

    .archive-group {
        padding: 20px;
    }

    .archive-group h2 {
        font-size: 18px;
    }

    .archive-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .archive-list time {
        min-width: auto;
    }

    /* 文章列表移动端 */
    .posts-list {
        margin-top: 30px;
        gap: 16px;
    }

    .post-item {
        padding: 18px;
    }

    .post-item h2 {
        font-size: 18px;
    }

    /* 分页移动端 */
    .pagination-container {
        margin-top: 30px;
        padding-top: 24px;
        gap: 12px;
    }

    .pagination {
        gap: 4px;
    }

    .page-link {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 13px;
    }

    .pagination-info {
        font-size: 12px;
    }
    
    /* 移动端返回顶部按钮位置调整 */
    .back-to-top {
        bottom: 80px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

/* 小手机 (max-width: 480px) */
@media (max-width: 480px) {
    .blog-header {
        padding: 20px 0 10px;
    }

    .blog-header h1 {
        font-size: 22px;
    }

    .blog-logo {
        width: 52px;
        height: 52px;
        border-radius: 50%;
    }

    .header-content {
        gap: 14px;
    }

    .blog-nav {
        gap: 12px;
        font-size: 13px;
    }

    .blog-nav a {
        padding: 6px 10px;
    }

    .content-wrapper {
        gap: 20px;
        margin-top: 20px;
    }

    .widget {
        padding: 15px;
        border-radius: 8px;
    }

    .widget h3 {
        font-size: 16px;
        margin-bottom: 12px;
        padding-bottom: 10px;
    }

    .recent-posts {
        gap: 10px;
    }

    .recent-posts a {
        font-size: 13px;
        padding: 6px 10px;
    }

    .categories a {
        font-size: 13px;
        padding: 8px 10px;
    }

    .post-card {
        padding: 15px;
    }

    .post-card h2 {
        font-size: 18px;
    }

    .comment-item {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }
    
    .comment-avatar {
        width: 36px;
        height: 36px;
    }
    
    .comments-section {
        padding: 24px 16px;
    }
    
    .comments-section h2 {
        font-size: 20px;
    }
    
    .github-login {
        padding: 30px 20px;
    }
    
    .comment-form {
        padding: 16px;
    }

    .login-box {
        padding: 20px;
    }

    .tag-item {
        font-size: 11px;
        padding: 4px 10px;
    }
    
    /* 小屏幕目录按钮位置 */
    .mobile-toc-toggle {
        bottom: 70px;
        right: 15px;
        width: 44px;
        height: 44px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
    
    .toc-sidebar {
        width: 85%;
        max-width: 300px;
    }
}
    }

    /* 分类卡片小手机 */
    .category-card {
        padding: 16px;
    }

    .category-card h3 {
        font-size: 18px;
    }

    .category-card p {
        font-size: 13px;
    }

    /* 标签项小手机 */
    .tag-item-large {
        font-size: 13px;
        padding: 8px 14px;
    }

    .tag-item-large span {
        font-size: 12px;
    }

    /* 归档小手机 */
    .archive-group {
        padding: 16px;
    }

    .archive-group h2 {
        font-size: 16px;
        margin-bottom: 16px;
    }

    .archive-list {
        gap: 10px;
    }

    .archive-list li {
        padding: 10px;
    }

    .archive-list time {
        font-size: 12px;
        padding: 3px 10px;
    }

    .archive-list a {
        font-size: 14px;
    }

    /* 文章项小手机 */
    .post-item {
        padding: 16px;
    }

    .post-item h2 {
        font-size: 16px;
    }

    .post-item p {
        font-size: 13px;
    }

    .post-item .post-meta {
        font-size: 12px;
    }

    /* 分页小手机 */
    .pagination-container {
        margin-top: 24px;
        padding-top: 20px;
    }
}

/* ============================================
   代码块增强样式 (Code Block Enhancement)
   ============================================ */

.code-block-wrapper {
    position: relative;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    background: #282c34 !important;
    border: 1px solid #3e4451;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.code-block-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background: #21252b;
    border-bottom: 1px solid #3e4451;
}

.code-language-label {
    font-size: 12px;
    font-weight: 600;
    color: #abb2bf;
    letter-spacing: 0.5px;
    font-family: 'Monaco', 'Menlo', 'Consolas', 'Courier New', monospace;
    white-space: nowrap;
}

.code-copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: transparent;
    border: 1px solid #3e4451;
    border-radius: 6px;
    color: #abb2bf;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.code-copy-btn:hover {
    background: #2c313a;
    border-color: #528bff;
    color: #528bff;
}

.code-copy-btn svg {
    width: 14px;
    height: 14px;
}

.code-copy-btn.copied {
    background: #98c379;
    border-color: #98c379;
    color: #282c34;
}

.code-block-wrapper pre {
    margin: 0 !important;
    padding: 16px !important;
    background: #282c34 !important;
    overflow-x: auto;
    border: none !important;
}

.code-block-wrapper pre code {
    display: block;
    color: #abb2bf !important;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Courier New', monospace;
    font-size: 14px !important;
    line-height: 1.6;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
}

/* 覆盖 GitHub Markdown CSS 的代码块样式 */
.markdown-body .code-block-wrapper pre {
    background-color: #282c34 !important;
    border: none !important;
}

.markdown-body .code-block-wrapper pre code {
    background-color: transparent !important;
    color: #abb2bf !important;
}

.code-block-wrapper pre::-webkit-scrollbar {
    height: 8px;
}

.code-block-wrapper pre::-webkit-scrollbar-track {
    background: #21252b;
}

.code-block-wrapper pre::-webkit-scrollbar-thumb {
    background: #3e4451;
    border-radius: 4px;
}

.code-block-wrapper pre::-webkit-scrollbar-thumb:hover {
    background: #528bff;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .code-block-toolbar {
        padding: 6px 12px;
    }
    
    .code-language-label {
        font-size: 11px;
    }
    
    .code-copy-btn {
        padding: 3px 8px;
        font-size: 11px;
    }
    
    .code-block-wrapper pre code {
        font-size: 13px;
    }
}

    .page-link {
        min-width: 28px;
        height: 28px;
        padding: 0 6px;
        font-size: 12px;
    }

    .pagination-info {
        font-size: 11px;
    }
}

/* 超小设备 (max-width: 360px) */
@media (max-width: 360px) {
    .blog-container,
    .post-container,
    .admin-container {
        padding: 10px;
    }

    .widget {
        padding: 12px;
    }

    .blog-nav {
        gap: 10px;
        font-size: 12px;
    }

    .post-footer {
        flex-direction: column;
        gap: 8px;
        font-size: 11px;
    }

    /* 分类和标签页面超小设备 */
    .categories-grid {
        gap: 12px;
        margin-top: 20px;
    }

    .tags-container {
        margin-top: 20px;
        gap: 10px;
    }

    .tag-item-large {
        font-size: 12px;
        padding: 6px 12px;
    }

    /* 归档超小设备 */
    .archive-container {
        gap: 16px;
        margin-top: 20px;
    }

    .archive-group {
        padding: 12px;
    }

    .archive-group h2 {
        font-size: 15px;
    }

    /* 文章列表超小设备 */
    .posts-list {
        gap: 12px;
        margin-top: 20px;
    }

    .post-item {
        padding: 12px;
    }

    .post-item:hover {
        transform: none;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Notice Box Styles */
.notice-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 1.5em 0;
    padding: 16px;
    border-left: 4px solid;
    border-radius: 4px;
    background-color: #f8f9fa;
}

.notice-box .notice-icon {
    flex-shrink: 0;
    font-size: 20px;
    line-height: 1.4;
    margin-top: 2px;
}

.notice-box .notice-content {
    flex: 1;
    line-height: 1.6;
    word-wrap: break-word;
}

.notice-box .notice-content p {
    display: inline;
    margin: 0;
}

.notice-box .notice-content p:not(:last-child)::after {
    content: '\A\A';
    white-space: pre;
}

.notice-box.notice-warning {
    background-color: #fff3cd;
    border-left-color: #ffc107;
    color: #856404;
}

.notice-box.notice-info {
    background-color: #d1ecf1;
    border-left-color: #17a2b8;
    color: #0c5460;
}

.notice-box.notice-note {
    background-color: #d1ecf1;
    border-left-color: #0366d6;
    color: #004085;
}

.notice-box.notice-tip {
    background-color: #d4edda;
    border-left-color: #28a745;
    color: #155724;
}

.notice-box.notice-danger {
    background-color: #f8d7da;
    border-left-color: #dc3545;
    color: #721c24;
}

.notice-box.notice-error {
    background-color: #f8d7da;
    border-left-color: #dc3545;
    color: #721c24;
}

.notice-box strong:first-child {
    font-weight: 600;
}



/* ============================================
   分页组件样式 (Pagination)
   ============================================ */

.pagination-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.pagination {
    display: flex;
    list-style: none;
    gap: 6px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.page-item {
    margin: 0;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.page-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(3, 102, 214, 0.3);
}

.page-item.active .page-link {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    cursor: default;
}

.page-item.active .page-link:hover {
    transform: none;
}

.page-item.disabled .page-link {
    background: var(--secondary-bg);
    color: #959da5;
    border-color: var(--border-color);
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-info {
    font-size: 13px;
    color: #586069;
    text-align: center;
}

/* ============================================
   页脚样式 (Site Footer)
   ============================================ */

.site-footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 2px solid var(--border-color);
    padding: 15px 30px 12px;
    margin-top: auto;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

/* 关于部分 */
.footer-about h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
}

.footer-about p {
    color: #586069;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.footer-social {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    color: #586069;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a svg {
    width: 16px;
    height: 16px;
}

.footer-social a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(3, 102, 214, 0.3);
}

/* 底部栏 */
.footer-bottom {
    margin-top: 12px;
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom p {
    margin: 0;
    font-size: 12px;
    color: #586069;
}

.copyright {
    font-weight: 600;
    color: var(--text-color);
}

.footer-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-meta .separator {
    color: var(--border-color);
}

.footer-meta a {
    color: #586069;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-meta a:hover {
    color: var(--primary-color);
}

/* 页脚响应式 */
@media (max-width: 768px) {
    .site-footer {
        padding: 12px 20px 10px;
    }
    
    .footer-top {
        padding-bottom: 10px;
    }
    
    .footer-social {
        gap: 8px;
    }
    
    .footer-social a {
        width: 30px;
        height: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        margin-top: 10px;
        padding-top: 10px;
    }
    
    .footer-bottom p {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 10px 15px 8px;
    }
    
    .footer-social a {
        width: 28px;
        height: 28px;
    }
    
    .footer-social a svg {
        width: 14px;
        height: 14px;
    }
    
    .footer-bottom p {
        font-size: 10px;
    }
    
    .footer-meta {
        flex-direction: column;
        gap: 4px;
    }
}
        padding: 20px 20px 15px;
    }
    
    .footer-top {
        padding-bottom: 15px;
    }
    
    .footer-about h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .footer-about p {
        font-size: 13px;
        margin-bottom: 14px;
    }
    
    .footer-social {
        gap: 10px;
    }
    
    .footer-social a {
        width: 36px;
        height: 36px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        margin-top: 15px;
        padding-top: 15px;
    }
    
    .footer-bottom p {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 18px 15px 12px;
    }
    
    .footer-about h3 {
        font-size: 17px;
    }
    
    .footer-about p {
        font-size: 12px;
        margin-bottom: 12px;
    }
    
    .footer-social {
        gap: 10px;
    }
    
    .footer-social a {
        width: 34px;
        height: 34px;
    }
    
    .footer-bottom p {
        font-size: 11px;
    }
    
    .footer-meta {
        flex-direction: column;
        gap: 5px;
    }
}