/* ============================================================
   博客样式 - 现代、简洁、响应式
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #eef2ff;
    --bg: #f1f5f9;
    --card: #ffffff;
    --text: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --success: #10b981;
    --success-bg: #ecfdf5;
    --warning: #f59e0b;
    --warning-bg: #fffbeb;
    --danger: #ef4444;
    --danger-bg: #fef2f2;
    --info: #3b82f6;
    --info-bg: #eff6ff;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
    --transition: all 0.2s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}
a:hover { color: var(--primary-dark); }

img { max-width: 100%; }

/* ---------- 头部 ---------- */
.site-header {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 28px 0 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}
.site-title {
    font-size: 1.75em;
    font-weight: 700;
    margin-bottom: 2px;
    letter-spacing: -0.02em;
}
.site-title a { color: var(--text); }
.site-title a:hover { color: var(--primary); text-decoration: none; }
.site-desc {
    color: var(--text-secondary);
    font-size: 0.9em;
    margin-bottom: 18px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.site-nav > a {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.92em;
}
.site-nav > a:hover {
    color: var(--primary);
    background: var(--primary-light);
    text-decoration: none;
}
.site-nav > a i { margin-right: 5px; }

.search-form {
    display: flex;
    margin-left: auto;
    position: relative;
}
.search-form input {
    padding: 8px 14px 8px 36px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.88em;
    width: 200px;
    background: var(--bg);
    transition: var(--transition);
    outline: none;
}
.search-form input:focus {
    border-color: var(--primary);
    background: var(--card);
    box-shadow: 0 0 0 3px var(--primary-light);
    width: 240px;
}
.search-form button {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    font-size: 0.9em;
}

/* ---------- 主内容 ---------- */
main { padding: 32px 0 48px; min-height: 60vh; }

/* ---------- 文章列表卡片 ---------- */
.post-list .post-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.post-list .post-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: #cbd5e1;
}
.post-item h2 {
    font-size: 1.35em;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    letter-spacing: -0.01em;
}
.post-item h2 a { color: var(--text); }
.post-item h2 a:hover { color: var(--primary); text-decoration: none; }

.post-meta {
    color: var(--text-muted);
    font-size: 0.82em;
    margin-bottom: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}
.post-meta span { display: inline-flex; align-items: center; gap: 4px; }
.post-meta a { color: var(--text-muted); }
.post-meta a:hover { color: var(--primary); }

.post-summary {
    color: var(--text-secondary);
    font-size: 0.95em;
    line-height: 1.7;
}
.post-cover {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.78em;
    font-weight: 500;
}
.tag-pinned {
    background: var(--warning-bg);
    color: #b45309;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 14px;
    font-size: 0.9em;
    font-weight: 500;
}

/* ---------- 文章详情 ---------- */
.post-detail {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow);
}
.post-detail h1 {
    font-size: 1.9em;
    font-weight: 800;
    margin-bottom: 14px;
    line-height: 1.35;
    letter-spacing: -0.02em;
}
.post-content { margin-top: 24px; font-size: 1.02em; }
.post-content h2 {
    font-size: 1.45em;
    font-weight: 700;
    margin: 36px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
}
.post-content h3 {
    font-size: 1.2em;
    font-weight: 600;
    margin: 28px 0 12px;
}
.post-content p { margin-bottom: 18px; }
.post-content ul, .post-content ol { margin: 0 0 18px 24px; }
.post-content li { margin-bottom: 8px; }
.post-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 12px 20px;
    margin: 20px 0;
    color: var(--text-secondary);
    background: var(--primary-light);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.post-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 20px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin: 20px 0;
    font-size: 0.88em;
    line-height: 1.6;
}
.post-content code {
    background: #f1f5f9;
    color: #be185d;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.88em;
    font-family: "SFMono-Regular", "Fira Code", Consolas, monospace;
}
.post-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}
.post-content img {
    border-radius: var(--radius-sm);
    margin: 16px 0;
}
.post-content hr {
    border: none;
    border-top: 2px solid var(--border);
    margin: 36px 0;
}
.post-content a { text-decoration: underline; text-underline-offset: 2px; }

/* 上一篇 / 下一篇 */
.post-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    gap: 16px;
}
.post-nav a {
    flex: 1;
    padding: 14px 18px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    font-size: 0.92em;
    color: var(--text-secondary);
    transition: var(--transition);
}
.post-nav a:hover {
    background: var(--primary-light);
    color: var(--primary);
    text-decoration: none;
}
.post-nav .next { text-align: right; }
.post-nav .nav-label {
    display: block;
    font-size: 0.78em;
    color: var(--text-muted);
    margin-bottom: 2px;
}

/* 相关文章 */
.related-posts { margin-top: 36px; }
.related-posts h3 {
    margin-bottom: 16px;
    color: var(--text);
    font-size: 1.15em;
    font-weight: 600;
}
.related-posts ul { list-style: none; }
.related-posts li {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}
.related-posts li:hover { background: var(--bg); padding-left: 20px; }
.related-posts li a { font-weight: 500; }
.related-posts .rel-date { color: var(--text-muted); font-size: 0.82em; flex-shrink: 0; margin-left: 12px; }

/* ---------- 评论区 ---------- */
.comments-section {
    margin-top: 40px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}
.comments-section > h3 {
    margin-bottom: 20px;
    font-size: 1.2em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.comment {
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 14px;
}
.comment:last-child { border-bottom: none; }
.comment-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid var(--border);
}
.comment-body { flex: 1; min-width: 0; }
.comment-author {
    font-weight: 600;
    font-size: 0.95em;
    color: var(--text);
}
.comment-date {
    color: var(--text-muted);
    font-size: 0.8em;
    margin-left: 10px;
}
.comment-content {
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 0.95em;
    word-break: break-word;
}

.comment-form { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.comment-form h4 { margin-bottom: 16px; font-size: 1.05em; }
.comment-form input, .comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.92em;
    margin-bottom: 12px;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
    background: var(--bg);
}
.comment-form input:focus, .comment-form textarea:focus {
    border-color: var(--primary);
    background: var(--card);
    box-shadow: 0 0 0 3px var(--primary-light);
}
.comment-form textarea { min-height: 110px; resize: vertical; }
.comment-form .hp-field { position: absolute; left: -9999px; opacity: 0; }
.comment-form .form-row { display: flex; gap: 12px; }
.comment-form .form-row input { flex: 1; }

/* ---------- 按钮 ---------- */
.btn, button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-size: 0.92em;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    font-family: inherit;
}
.btn-primary, button[type="submit"] {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover, button[type="submit"]:hover {
    background: var(--primary-dark);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}
.btn-secondary {
    background: var(--bg);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    background: #e2e8f0;
    color: var(--text);
    text-decoration: none;
}
.btn-danger {
    background: var(--danger);
    color: #fff;
}
.btn-danger:hover {
    background: #dc2626;
    color: #fff;
    text-decoration: none;
}
.btn-sm { padding: 5px 12px; font-size: 0.82em; }

/* ---------- 分页 ---------- */
.pagination {
    margin-top: 36px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
}
.pagination a, .pagination .current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    background: var(--card);
    font-size: 0.9em;
    transition: var(--transition);
}
.pagination .current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    font-weight: 600;
}
.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
    text-decoration: none;
}

/* ---------- 归档 / 分类页 ---------- */
.page-title {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.page-title .count {
    font-size: 0.6em;
    color: var(--text-muted);
    font-weight: 400;
}

.archive-list .year-group {
    margin-bottom: 28px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow);
}
.archive-list h3 {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 1.1em;
    font-weight: 600;
}
.archive-list ul { list-style: none; }
.archive-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.archive-list li:last-child { border-bottom: none; }
.archive-list li a { font-weight: 500; }
.archive-list .date { color: var(--text-muted); font-size: 0.85em; }

.archive-post-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.archive-post-item:last-child { border-bottom: none; }

.category-list {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 24px;
    box-shadow: var(--shadow);
}
.category-list .cat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.category-list .cat-item:last-child { border-bottom: none; }
.category-list .cat-item a {
    font-weight: 500;
    font-size: 1.02em;
}
.category-list .cat-count {
    background: var(--bg);
    color: var(--text-secondary);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.82em;
}

/* ---------- 搜索页 ---------- */
.search-page-form {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
}
.search-page-form input {
    flex: 1;
    padding: 12px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1em;
    outline: none;
    transition: var(--transition);
    background: var(--card);
}
.search-page-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}
mark {
    background: #fef08a;
    padding: 0 3px;
    border-radius: 3px;
    color: var(--text);
}

/* ---------- 提示信息 ---------- */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    font-size: 0.92em;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.alert i { margin-top: 3px; flex-shrink: 0; }
.alert-success { background: var(--success-bg); color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: var(--danger-bg); color: #991b1b; border: 1px solid #fecaca; }
.alert-info { background: var(--info-bg); color: #1e40af; border: 1px solid #bfdbfe; }

/* ---------- 底部 ---------- */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 28px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85em;
    background: var(--card);
}
.site-footer a { color: var(--text-secondary); }
.site-footer a:hover { color: var(--primary); }

/* ---------- 404 ---------- */
.error-page {
    text-align: center;
    padding: 80px 20px;
}
.error-page .error-code {
    font-size: 6em;
    font-weight: 800;
    color: var(--primary-light);
    line-height: 1;
    margin-bottom: 10px;
}
.error-page p { color: var(--text-secondary); margin-bottom: 24px; }

/* ============================================================
   后台管理样式
   ============================================================ */
.admin-layout {
    display: flex;
    min-height: 100vh;
}
.admin-sidebar {
    width: 220px;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: #cbd5e1;
    padding: 0;
    flex-shrink: 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 50;
}
.admin-sidebar h2 {
    color: #fff;
    font-size: 1.05em;
    padding: 22px 20px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.admin-sidebar h2 i { color: var(--primary); }
.admin-sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #94a3b8;
    padding: 11px 20px;
    text-decoration: none;
    font-size: 0.9em;
    transition: var(--transition);
    border-left: 3px solid transparent;
}
.admin-sidebar a i { width: 18px; text-align: center; font-size: 0.95em; }
.admin-sidebar a:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}
.admin-sidebar a.active {
    background: rgba(99,102,241,0.15);
    color: #fff;
    border-left-color: var(--primary);
}
.admin-sidebar .logout {
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 12px;
}

.admin-content {
    flex: 1;
    padding: 32px 36px;
    margin-left: 220px;
    background: var(--bg);
    min-height: 100vh;
}
.admin-content h1 {
    margin-bottom: 24px;
    font-size: 1.5em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 统计卡片 */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-card .num {
    font-size: 2em;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}
.stat-card .label {
    color: var(--text-secondary);
    font-size: 0.85em;
    margin-top: 4px;
}
.stat-card.warning .num { color: var(--warning); }

/* 后台表格 */
.admin-content table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.admin-content th, .admin-content td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.9em;
}
.admin-content th {
    background: #f8fafc;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.82em;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.admin-content tr:last-child td { border-bottom: none; }
.admin-content tr:hover td { background: #f8fafc; }

/* 后台表单 */
.admin-content .form-group { margin-bottom: 20px; }
.admin-content .form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: 500;
    font-size: 0.92em;
    color: var(--text);
}
.admin-content .form-group input,
.admin-content .form-group textarea,
.admin-content .form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.92em;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
    background: var(--card);
}
.admin-content .form-group input:focus,
.admin-content .form-group textarea:focus,
.admin-content .form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}
.admin-content .form-group textarea { min-height: 320px; resize: vertical; line-height: 1.7; }

.status-draft { color: var(--warning); font-weight: 500; }
.status-published { color: var(--success); font-weight: 500; }
.status-pending { color: var(--warning); font-weight: 500; }
.status-approved { color: var(--success); font-weight: 500; }

.admin-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

/* 后台登录页 */
.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}
.login-box {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    width: 380px;
    max-width: 90%;
}
.login-box h1 {
    text-align: center;
    margin-bottom: 28px;
    font-size: 1.4em;
    color: var(--text);
}
.login-box h1 i { color: var(--primary); margin-right: 8px; }
.login-box input {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95em;
    outline: none;
    transition: var(--transition);
}
.login-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}
.login-box button {
    width: 100%;
    padding: 12px;
    font-size: 1em;
    border-radius: var(--radius-sm);
}
.login-error {
    background: var(--danger-bg);
    color: #991b1b;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 0.88em;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
    .admin-sidebar {
        width: 60px;
    }
    .admin-sidebar h2 span,
    .admin-sidebar a span { display: none; }
    .admin-sidebar a { justify-content: center; padding: 14px 0; }
    .admin-sidebar h2 { justify-content: center; padding: 18px 0; }
    .admin-content { margin-left: 60px; padding: 24px 20px; }
}

@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .site-header { padding: 20px 0 16px; }
    .site-title { font-size: 1.4em; }
    .site-nav { gap: 4px; }
    .site-nav > a { padding: 6px 10px; font-size: 0.85em; }
    .search-form { margin-left: 0; width: 100%; margin-top: 10px; order: 3; }
    .search-form input { flex: 1; width: 100%; }
    .search-form input:focus { width: 100%; }

    main { padding: 20px 0 32px; }
    .post-list .post-item { padding: 20px; }
    .post-item h2 { font-size: 1.15em; }
    .post-detail { padding: 22px 18px; }
    .post-detail h1 { font-size: 1.4em; }
    .comments-section { padding: 22px 18px; }
    .comment-form .form-row { flex-direction: column; gap: 0; }

    .post-nav { flex-direction: column; gap: 10px; }
    .post-nav .next { text-align: left; }

    .admin-layout { flex-direction: column; }
    .admin-sidebar {
        position: fixed;
        bottom: 0;
        top: auto;
        left: 0;
        right: 0;
        width: 100%;
        height: auto;
        display: flex;
        overflow-x: auto;
        padding: 0;
        z-index: 100;
    }
    .admin-sidebar h2 { display: none; }
    .admin-sidebar a {
        flex: 1;
        flex-direction: column;
        padding: 8px 4px;
        font-size: 0.7em;
        border-left: none;
        border-top: 3px solid transparent;
        justify-content: center;
        gap: 2px;
        min-width: 60px;
    }
    .admin-sidebar a.active {
        border-left: none;
        border-top-color: var(--primary);
    }
    .admin-sidebar a span { display: block !important; }
    .admin-sidebar .logout {
        margin-top: 0;
        border-top: none;
        padding-top: 8px;
        border-left: 1px solid rgba(255,255,255,0.1);
    }
    .admin-content {
        margin-left: 0;
        padding: 20px 16px 80px;
    }
    .admin-content h1 { font-size: 1.25em; }
    .stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-card { padding: 16px 10px; }
    .stat-card .num { font-size: 1.5em; }

    .admin-content table { font-size: 0.82em; }
    .admin-content th, .admin-content td { padding: 8px 10px; }

    .page-title { font-size: 1.25em; }
    .error-page .error-code { font-size: 4em; }
}
