:root {
    --bg-deep: #080918;
    --bg-card: rgba(18, 20, 40, 0.75);
    --bg-card-hover: rgba(25, 28, 55, 0.88);
    --text-primary: #e8e6f0;
    --text-secondary: #b8b5cc;
    --text-muted: #8a87a0;
    --accent-1: #a855f7;
    --accent-2: #ec4899;
    --accent-3: #06b6d4;
    --accent-4: #f59e0b;
    --gradient-1: linear-gradient(135deg, #a855f7, #6366f1, #3b82f6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-strong: rgba(255, 255, 255, 0.15);
    --glow-purple: 0 0 30px rgba(168, 85, 247, 0.3);
    --glow-pink: 0 0 30px rgba(236, 72, 153, 0.3);
    --glow-cyan: 0 0 30px rgba(6, 182, 212, 0.3);
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 22px;
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
    --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(255, 255, 255, 0.06) inset;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
    --font-body: 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    background-image:
        radial-gradient(ellipse at 15% 10%, rgba(168, 85, 247, 0.07) 0%, transparent 60%),
        radial-gradient(ellipse at 75% 20%, rgba(236, 72, 153, 0.06) 0%, transparent 55%),
        radial-gradient(ellipse at 40% 70%, rgba(6, 182, 212, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 80%, rgba(245, 158, 11, 0.04) 0%, transparent 45%);
    background-attachment: fixed;
}

.container { max-width: 1320px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* 导航栏 */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(10, 11, 26, 0.82);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-heading); font-weight: 800; font-size: 1.5rem; color: #fff; flex-shrink: 0; }
.logo-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--gradient-1); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; box-shadow: var(--glow-purple); position: relative; }
.logo-icon::before { content: "⭐"; }
.main-nav { display: flex; align-items: center; gap: 10px; list-style: none; }
.main-nav a { padding: 8px 18px; border-radius: 30px; text-decoration: none; color: var(--text-secondary); font-weight: 600; font-size: 0.95rem; transition: var(--transition-fast); }
.main-nav a:hover, .main-nav a.active { color: #fff; background: rgba(255, 255, 255, 0.06); }
.main-nav a.active { background: rgba(168, 85, 247, 0.2); color: #c084fc; box-shadow: 0 0 20px rgba(168, 85, 247, 0.15); }
.mobile-menu-btn {
    display: none; background: none; border: 1px solid rgba(168,85,247,0.4);
    color: var(--accent-1); font-size: 1.6rem; padding: 6px 12px; border-radius: 8px;
    cursor: pointer; transition: var(--transition-fast); margin-left: auto;
}
.mobile-menu-btn:hover { background: rgba(168,85,247,0.15); box-shadow: var(--glow-purple); }

/* 面包屑 */
.breadcrumb { padding: 14px 0; font-size: 0.85rem; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; white-space: normal; word-break: break-word; }
.breadcrumb a { color: var(--text-secondary); text-decoration: none; white-space: nowrap; }
.breadcrumb a:hover { color: #c084fc; }
.breadcrumb .current { color: #c084fc; font-weight: 600; white-space: normal; word-break: break-word; }

/* 文章页布局 */
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; padding: 10px 0 40px; }

/* 文章主体 - Grid布局下必须加min-width:0防止内容撑破列宽 */
.article-main {
    background: var(--bg-card); border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border); padding: 30px 28px;
    backdrop-filter: blur(10px); box-shadow: var(--shadow-card);
    min-width: 0; max-width: 100%;
    margin-bottom: 24px; position: relative;
}
.article-main::before { content: ''; position: absolute; top:0; left:0; right:0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent-1), transparent); opacity: 0.6; }

/* 文章头部缩略图区域 */
.article-header-inner { display: flex; gap: 16px; align-items: flex-start; }
.article-thumb {
    width: 199px; height: 120px; border-radius: 6px; overflow: hidden;
    flex-shrink: 0; background: var(--gradient-1);
    display: flex; align-items: center; justify-content: center;
    position: relative; border: 1px solid rgba(168,85,247,0.3);
}
.article-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-header-text { flex: 1; min-width: 0; }

.article-header { margin-bottom: 24px; }
.article-header h1 {
    font-family: var(--font-heading); font-size: 1.8rem; font-weight: 900; line-height: 1.35;
    margin-bottom: 12px; color: var(--accent-1); text-shadow: 0 0 15px rgba(168,85,247,0.4);
    word-break: break-word;
}
.article-meta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; font-size: 0.85rem; color: var(--text-muted); padding-bottom: 16px; border-bottom: 1px solid var(--glass-border); }
.article-meta span { display: flex; align-items: center; gap: 4px; }
.meta-date::before { content: "📅"; font-size: 0.85rem; }
.meta-views::before { content: "👁"; font-size: 0.85rem; }
.meta-author::before { content: "✍️"; font-size: 0.85rem; }

/* ========== 文章内容扩展样式 ========== */

/* --- 基础文章内容 --- */
.article-content {
    font-size: 1rem; line-height: 1.9; color: var(--text-primary); padding-top: 20px;
    max-width: 100%;
}
.article-content h2 { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 800; margin: 28px 0 12px; padding-left: 14px; border-left: 3px solid var(--accent-1); color: var(--accent-1); }
.article-content p { margin-bottom: 14px; }
.article-content .highlight-box { background: rgba(168,85,247,0.1); border-left: 4px solid var(--accent-1); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 16px 20px; margin: 18px 0; font-size: 0.95rem; line-height: 1.7; }
.article-img-wrap { position: relative; display: block; margin: 16px 0; border-radius: var(--radius-sm); overflow: hidden; background: rgba(0,0,0,0.3); }
.article-img-wrap img { width: 100%; display: block; }
.article-img-wrap .img-fallback { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; font-size: 3rem; background: var(--gradient-1); }
.article-img-wrap img.error-fallback { display: none; }
.article-img-wrap img.error-fallback + .img-fallback { display: flex; }

/* --- 无序列表 --- */
.article-content ul {
    list-style: none;
    padding-left: 0;
    margin: 18px 0;
}

.article-content ul li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 8px;
    line-height: 1.8;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.article-content ul li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-1);
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.5);
    transition: var(--transition-fast);
}

.article-content ul li:hover::before {
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.8);
    transform: scale(1.3);
}

/* 嵌套无序列表 */
.article-content ul ul {
    margin: 6px 0 6px 10px;
}

.article-content ul ul li::before {
    background: transparent;
    border: 2px solid var(--accent-2);
    box-shadow: 0 0 8px rgba(236, 72, 153, 0.4);
    width: 6px;
    height: 6px;
}

.article-content ul ul ul li::before {
    background: var(--accent-3);
    border: none;
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.4);
    border-radius: 2px;
    width: 6px;
    height: 6px;
}

/* --- 有序列表 --- */
.article-content ol {
    list-style: none;
    padding-left: 0;
    margin: 18px 0;
    counter-reset: article-ol;
}

.article-content ol li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 8px;
    line-height: 1.8;
    counter-increment: article-ol;
}

.article-content ol li::before {
    content: counter(article-ol);
    position: absolute;
    left: 0;
    top: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gradient-1);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.3);
}

/* 嵌套有序列表 */
.article-content ol ol {
    counter-reset: article-ol-sub;
    margin: 6px 0 6px 10px;
}

.article-content ol ol li {
    counter-increment: article-ol-sub;
}

.article-content ol ol li::before {
    content: counter(article-ol) "." counter(article-ol-sub);
    background: rgba(236, 72, 153, 0.3);
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.25);
    font-size: 0.7rem;
    width: auto;
    padding: 0 7px;
    border-radius: 11px;
}

/* --- 引用块 --- */
.article-content blockquote {
    margin: 20px 0;
    padding: 18px 22px;
    background: rgba(168, 85, 247, 0.06);
    border-left: 4px solid var(--accent-1);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-secondary);
    font-style: italic;
    position: relative;
    overflow: hidden;
}

.article-content blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 12px;
    font-size: 4rem;
    color: rgba(168, 85, 247, 0.12);
    font-family: Georgia, serif;
    line-height: 1;
    pointer-events: none;
}

.article-content blockquote p {
    margin-bottom: 6px;
}

.article-content blockquote p:last-child {
    margin-bottom: 0;
}

/* --- 行内代码 --- */
.article-content code {
    background: rgba(168, 85, 247, 0.15);
    color: #e2b0ff;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', 'Monaco', monospace;
    font-size: 0.88em;
    border: 1px solid rgba(168, 85, 247, 0.2);
    white-space: nowrap;
}

/* --- 代码块（pre） --- */
.article-content pre {
    background: rgba(10, 11, 26, 0.9);
    border: 1px solid var(--glass-border-strong);
    border-radius: var(--radius-sm);
    padding: 20px 22px;
    margin: 18px 0;
    overflow-x: auto;
    font-size: 0.88rem;
    line-height: 1.7;
    position: relative;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.4);
}

.article-content pre code {
    background: transparent;
    color: var(--text-primary);
    padding: 0;
    border: none;
    white-space: pre;
    font-size: inherit;
}

/* 代码块顶部装饰条 */
.article-content pre::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-1);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

/* --- 加粗 --- */
.article-content strong {
    color: #fff;
    font-weight: 800;
    background: linear-gradient(180deg, transparent 60%, rgba(168, 85, 247, 0.25) 60%);
    padding: 0 2px;
}

/* --- 斜体 --- */
.article-content em {
    color: var(--accent-2);
    font-style: italic;
}

/* --- 文章内链接 --- */
.article-content a {
    color: var(--accent-3);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed rgba(6, 182, 212, 0.4);
    transition: var(--transition-fast);
    padding: 0 2px;
}

.article-content a:hover {
    color: #22d3ee;
    border-bottom-style: solid;
    border-bottom-color: rgba(34, 211, 238, 0.7);
    text-shadow: 0 0 12px rgba(6, 182, 212, 0.4);
}

/* --- 水平分割线 --- */
.article-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border-strong), transparent);
    margin: 28px 0;
}

/* --- 表格：强制宽度自适应 + 内容换行（核心修复） --- */
.article-content table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin: 18px 0;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.article-content thead {
    background: rgba(168, 85, 247, 0.15);
}

.article-content thead th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
    color: #fff;
    border-bottom: 2px solid var(--accent-1);
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    word-break: break-word;
    vertical-align: top;
}

.article-content tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: var(--transition-fast);
}

.article-content tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.article-content tbody td {
    padding: 10px 16px;
    color: var(--text-secondary);
    word-break: break-word;
    vertical-align: top;
}

/* --- 图片样式增强 --- */
.article-content img {
    max-width: 100%;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.article-content img:hover {
    border-color: var(--accent-1);
    box-shadow: var(--glow-purple);
}

/* --- 键盘按键样式 --- */
.article-content kbd {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border-strong);
    border-radius: 4px;
    padding: 2px 7px;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.82em;
    color: var(--text-secondary);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}

/* --- 标记高亮 --- */
.article-content mark {
    background: rgba(245, 158, 11, 0.3);
    color: #fcd34d;
    padding: 1px 5px;
    border-radius: 3px;
}

/* --- 删除线 --- */
.article-content del {
    color: var(--text-muted);
    text-decoration: line-through;
    opacity: 0.7;
}

/* --- 上标/下标 --- */
.article-content sup,
.article-content sub {
    font-size: 0.75em;
    color: var(--accent-3);
}

/* --- 定义列表 --- */
.article-content dl {
    margin: 16px 0;
}

.article-content dt {
    font-weight: 700;
    color: var(--accent-1);
    margin-top: 10px;
}

.article-content dd {
    margin-left: 20px;
    color: var(--text-secondary);
    padding: 6px 0 6px 12px;
    border-left: 2px solid rgba(168, 85, 247, 0.25);
}

/* --- 任务列表（checkbox风格） --- */
.article-content ul.task-list {
    list-style: none;
    padding-left: 0;
}

.article-content ul.task-list li {
    padding-left: 30px;
}

.article-content ul.task-list li::before {
    content: '';
    width: 16px;
    height: 16px;
    border-radius: 3px;
    background: transparent;
    border: 2px solid var(--accent-1);
    top: 7px;
    left: 0;
    box-shadow: none;
}

.article-content ul.task-list li.checked::before {
    content: '✓';
    background: var(--accent-1);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 3px;
    width: 16px;
    height: 16px;
}

/* --- 了解更多引导行 --- */
.read-more-line { margin-top: 24px; margin-bottom: 20px; padding: 12px 0; font-size: 0.9rem; color: var(--text-secondary); border-bottom: 1px solid var(--glass-border); }
.read-more-line a { color: var(--accent-1); text-decoration: none; font-weight: 600; }
.read-more-line a:hover { text-decoration: underline; }

/* 相关文章区域 */
.related-section { background: rgba(0,0,0,0.2); border-radius: var(--radius); border: 1px solid var(--glass-border); padding: 20px; margin-bottom: 24px; }
.related-title { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 6px; letter-spacing: 1px; }
.related-title::before { content: "📌"; }
.related-list { list-style: none; counter-reset: related-counter; }
.related-list li { border-bottom: 1px solid rgba(255,255,255,0.04); counter-increment: related-counter; }
.related-list li a { display: flex; align-items: center; gap: 10px; padding: 10px 8px; text-decoration: none; color: var(--text-primary); border-radius: 6px; transition: var(--transition-fast); min-width: 0; overflow: hidden; width: 100%; }
.related-list li a:hover { background: rgba(168,85,247,0.08); }
.related-num { flex-shrink: 0; width: 20px; text-align: center; font-weight: 700; color: var(--accent-1); }
.related-num::before { content: counter(related-counter, decimal-leading-zero); }
.related-item-title { flex: 1 1 0%; min-width: 0; width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.related-date { font-size: 0.75rem; color: var(--text-muted); flex-shrink: 0; white-space: nowrap; }

/* 上一篇/下一篇导航 */
.article-prev-next {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    padding: 0;
}

.prev-link,
.next-link {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 16px 20px;
    transition: var(--transition-smooth);
    min-width: 0;
}

.prev-link:hover,
.next-link:hover {
    border-color: var(--accent-1);
    box-shadow: var(--glow-purple);
    background: rgba(168, 85, 247, 0.06);
}

.next-link {
    text-align: right;
}

.pn-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.article-prev-next a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--transition-fast);
}

.article-prev-next a:hover {
    color: var(--accent-1);
    text-shadow: 0 0 12px rgba(168, 85, 247, 0.3);
}

/* 标签区域 */
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--glass-border); }
.article-tags a { padding: 5px 14px; border-radius: 16px; font-size: 0.8rem; text-decoration: none; background: rgba(255,255,255,0.05); color: var(--text-secondary); transition: var(--transition-fast); }
.article-tags a:hover { background: rgba(168,85,247,0.2); color: #fff; }

/* 右侧边栏 */
.sidebar-widget { background: var(--bg-card); border-radius: var(--radius-lg); border: 1px solid var(--glass-border); padding: 18px; margin-bottom: 16px; backdrop-filter: blur(10px); box-shadow: var(--shadow-card); }
.sidebar-widget h4 { font-family: var(--font-heading); font-weight: 700; margin-bottom: 12px; font-size: 1rem; display: flex; align-items: center; gap: 6px; letter-spacing: 1px; }
.widget-title-latest::before { content: "📌"; }
.widget-title-hot::before { content: "🔥"; }
.widget-title-rec::before { content: "⭐"; }
.sidebar-mini-list { list-style: none; counter-reset: side-list; }
.sidebar-mini-list li { border-bottom: 1px solid rgba(255,255,255,0.04); counter-increment: side-list; }
.sidebar-mini-list li a { display: flex; align-items: center; gap: 10px; padding: 9px 8px; text-decoration: none; color: var(--text-primary); border-radius: 6px; transition: var(--transition-fast); font-size: 0.9rem; min-width: 0; overflow: hidden; }
.sidebar-mini-list li a:hover { background: rgba(255,255,255,0.04); }
.side-num { flex-shrink: 0; width: 22px; text-align: center; font-weight: 700; color: var(--accent-1); }
.side-num::before { content: counter(side-list, decimal-leading-zero); }
.side-title { flex: 1 1 0%; min-width: 0; width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 页脚 */
.site-footer {
    border-top:1px solid var(--glass-border);
    padding:24px 0;
    text-align:center;
    color:var(--text-muted);
    margin-top: 10px;
}
.site-footer .container a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.25s, text-shadow 0.25s, transform 0.25s;
    position: relative;
    display: inline-block;
}
.site-footer .container a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: var(--accent-1);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}
.site-footer .container a:hover {
    color: #c084fc;
    text-shadow: 0 0 12px var(--glow-purple);
    transform: translateY(-1px);
}
.site-footer .container a:hover::after {
    transform: scaleX(1);
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 12px;
}
.footer-copy {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ========== 响应式 ========== */
@media (max-width:1100px) {
    .article-layout { grid-template-columns: 1fr; }
}
@media (max-width:768px) {
    .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: rgba(10,11,26,0.96); backdrop-filter: blur(20px); flex-direction: column; padding: 16px; border-bottom: 1px solid var(--glass-border); z-index: 999; gap: 14px; }
    .main-nav.active { display: flex; }
    .mobile-menu-btn { display: block; }
    .article-main { padding: 20px 16px; }
    .article-header h1 { white-space: normal; word-break: break-word; }
    .article-header-inner { flex-direction: column; align-items: center; }
    .article-thumb { margin-bottom: 12px; }
    .related-item-title { white-space: normal !important; word-break: break-word; width: auto !important; flex: 1 1 auto !important; }
    .related-date { display: none; }
    .side-title { white-space: normal !important; word-break: break-word; width: auto !important; flex: 1 1 auto !important; }

    .article-content pre {
        padding: 14px 16px;
        font-size: 0.8rem;
    }

    .article-content blockquote {
        padding: 14px 16px;
    }
    .article-content ul li,
    .article-content ol li {
        padding-left: 24px;
    }

    .article-prev-next {
        flex-direction: column;
        gap: 12px;
    }
    .next-link {
        text-align: left;
    }
}
@media (max-width:480px) {
    .article-meta { font-size: 0.8rem; }
    .article-header h1 { font-size: 1.5rem; }

    .article-content pre {
        font-size: 0.72rem;
        padding: 10px 12px;
    }

    /* 小屏表格字号内边距优化 */
    .article-content table {
        font-size: 0.78rem;
    }
    .article-content thead th,
    .article-content tbody td {
        padding: 8px 10px;
    }
}