:root {
    --primary: #2f6df6;
    --primary-d: #1f54d6;
    --bg: #f5f7fb;
    --card: #ffffff;
    --text: #1f2430;
    --muted: #8a93a6;
    --border: #e7ebf2;
    --danger: #e5484d;
    --radius: 12px;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 960px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: var(--text); flex: none; }
.logo:hover { text-decoration: none; }
.logo-img {
    width: 40px; height: 40px; border-radius: 10px; object-fit: cover; display: block;
    box-shadow: 0 2px 8px rgba(47, 109, 246, .18);
}
.logo-text { letter-spacing: .3px; white-space: nowrap; }
.nav { display: flex; gap: 16px; flex: 1; }
.nav a { color: var(--text); font-weight: 500; }
.user-box { display: flex; align-items: center; gap: 8px; }
.uname { font-size: 14px; }

/* 三条杠菜单按钮（仅移动端显示） */
.menu-btn {
    display: none; margin-left: auto; flex: none;
    width: 42px; height: 42px; padding: 0;
    border: 1px solid var(--border); border-radius: 10px; background: #fff;
    cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-btn i { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; }
.menu-btn:active { background: #f2f6ff; }

/* 侧边栏（抽屉） */
.drawer-mask {
    position: fixed; top: 0; right: 0; bottom: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(17, 24, 39, .45); z-index: 90;
}
.drawer-mask[hidden] { display: none !important; }
.drawer {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: 78%; max-width: 300px;
    background: #fff; z-index: 91;
    display: flex; flex-direction: column;
    transform: translateX(100%);
    transition: transform .26s ease;
    box-shadow: -8px 0 30px rgba(17, 24, 39, .12);
    overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.drawer.open { transform: translateX(0); }
.drawer-head { position: relative; display: flex; align-items: center; gap: 10px; padding: 16px 16px 14px; border-bottom: 1px solid var(--border); }
.drawer-logo { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; display: block; flex: none; }
.drawer-title { font-weight: 700; font-size: 15px; }
.drawer-close {
    position: absolute; right: 8px; top: 10px; width: 36px; height: 36px; padding: 0;
    border: none; background: transparent; color: var(--muted);
    font-size: 26px; line-height: 1; border-radius: 9px; cursor: pointer;
}
.drawer-close:hover { background: #f1f5f9; color: var(--text); }
.drawer-user { display: flex; align-items: center; gap: 10px; padding: 14px 16px; color: var(--text); }
a.drawer-user:hover { text-decoration: none; background: #f8fafd; }
.drawer-user-info { display: flex; flex-direction: column; min-width: 0; }
.drawer-user-info b { font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer-user-info i { font-style: normal; font-size: 12px; color: var(--muted); }
.avatar-guest { background: #cbd5e1; }
.drawer-nav { display: flex; flex-direction: column; gap: 2px; padding: 6px 8px; }
.drawer-nav a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; color: var(--text); font-size: 15px; font-weight: 500; }
.drawer-nav a:hover { background: #f2f6ff; color: var(--primary); text-decoration: none; }
.ico { width: 19px; height: 19px; flex: none; }
.drawer-foot {
    margin-top: auto; padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--border);
}
.btn-block { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 11px 16px; text-align: center; }
.btn-block:hover { text-decoration: none; }

.btn {
    display: inline-block; border: none; cursor: pointer; border-radius: 8px;
    padding: 8px 16px; font-size: 14px; font-weight: 600; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-d); }
.btn-ghost { background: #eef2fb; color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn.sm { padding: 4px 10px; font-size: 12px; }
.inline { display: inline; }

.main { padding: 24px 16px 60px; min-height: 60vh; }

/* Avatar */
.avatar {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%; background: var(--primary);
    color: #fff; font-weight: 700; flex: none;
}
.avatar.sm { width: 24px; height: 24px; font-size: 12px; }
.avatar.lg { width: 56px; height: 56px; font-size: 22px; }

/* Cards / list */
.card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
}
.article-list { display: flex; flex-direction: column; gap: 14px; }
.post-card { display: flex; color: var(--text); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.post-card:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(47, 109, 246, .13); }
.post-cover { width: 180px; flex: none; background: #eef; overflow: hidden; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-body { padding: 16px; flex: 1; min-width: 0; }
.post-title { margin: 0 0 8px; font-size: 18px; }
.post-title a { color: var(--text); }
.post-excerpt { color: var(--muted); margin: 0 0 10px; font-size: 14px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.post-meta .dot { opacity: .5; }
.meta-ico { display: inline-flex; align-items: center; gap: 4px; }
.meta-ico .ico { width: 15px; height: 15px; flex: none; }
.home-head { margin-bottom: 20px; }
.home-head h1 { margin: 0 0 4px; }
.muted { color: var(--muted); }

.empty { padding: 40px; text-align: center; color: var(--muted); background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); }

.alert { background: #fff7e6; border: 1px solid #ffd591; color: #a8650b; padding: 10px 14px; border-radius: 8px; margin: 12px 0; }
.alert-error { background: #fff1f0; border-color: #ffccc7; color: #cf1322; }

/* Article view */
.article-view { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.article-title { font-size: 26px; margin: 0 0 12px; }
.article-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.article-content { font-size: 16px; line-height: 1.85; word-break: break-word; -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
.article-content p { margin: 0 0 14px; }
.article-content div { margin: 0 0 8px; }
.article-content h1 { font-size: 22px; margin: 22px 0 10px; }
.article-content h2 { font-size: 20px; margin: 18px 0 10px; }
.article-content h3 { font-size: 18px; margin: 16px 0 8px; }
.article-content ul, .article-content ol { padding-left: 22px; margin: 0 0 14px; }
.article-content a { color: var(--primary); word-break: break-all; }
.article-content img { max-width: 100%; height: auto; border-radius: 8px; }
.article-content pre { background: #1e2330; color: #e6e6e6; padding: 14px; border-radius: 8px; overflow: auto; }
.article-content code { background: #f0f2f5; padding: 2px 6px; border-radius: 4px; font-size: 14px; }
.article-content pre code { background: none; padding: 0; }
.article-content blockquote { border-left: 4px solid var(--primary); margin: 12px 0; padding: 4px 16px; color: var(--muted); background: #f7f9ff; }
.article-actions { margin: 24px 0; }
.like-btn { background: #eef2fb; border: none; border-radius: 24px; padding: 8px 18px; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--text); display: inline-flex; align-items: center; gap: 6px; }
.like-btn .ico { width: 17px; height: 17px; flex: none; }
.like-btn.liked { background: var(--primary); color: #fff; }
.edit-link { margin-left: auto; font-size: 13px; }

/* Comments */
.comments { border-top: 1px solid var(--border); padding-top: 20px; }
.comments h3 { margin: 0 0 14px; }
.comment-form { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.comment-form textarea { width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 10px; font: inherit; resize: vertical; }
.comment-form .btn { align-self: flex-start; }
.form-msg { font-size: 13px; color: var(--danger); }
.comment-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.comment-item { display: flex; gap: 10px; }
.comment-main { background: #f7f9fc; border-radius: 10px; padding: 10px 14px; flex: 1; }
.comment-head { font-size: 13px; margin-bottom: 2px; }
.comment-head strong { margin-right: 8px; }
.comment-text { white-space: pre-wrap; word-break: break-word; }

/* Auth */
.auth-wrap { max-width: 380px; margin: 40px auto; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.auth-wrap h1 { margin: 0 0 18px; font-size: 22px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.auth-form input { border: 1px solid var(--border); border-radius: 8px; padding: 10px; font: inherit; }

/* Write */
.write-wrap { max-width: 820px; margin: 0 auto; }
.write-wrap h1 { margin: 0 0 16px; }
.title-input { width: 100%; font-size: 22px; font-weight: 700; border: 1px solid var(--border); border-radius: 8px; padding: 12px; margin-bottom: 12px; }
.edit-img-toolbar { display: flex; gap: 6px; }

/* 标题与正文之间：仅保留一个「插入图片」按钮 */
.editor-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.tool-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 16px; border: 1px solid var(--border); border-radius: 8px;
    background: var(--card); color: var(--text); cursor: pointer;
    font-size: 14px; font-weight: 600; line-height: 1;
}
.tool-btn:hover { border-color: var(--primary); color: var(--primary); background: #f5f8ff; }
.tool-btn .ico { width: 18px; height: 18px; flex: none; }
.tool-btn:active { background: #eef3ff; }
.editor-tools-tip { font-size: 13px; color: var(--muted); }

/* 可视化编辑器 */
.editor-wrap { border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.editor {
    width: 100%; min-height: 380px; padding: 14px; font: inherit; line-height: 1.8;
    outline: none; overflow-wrap: break-word; word-break: break-word;
    -webkit-user-select: text; user-select: text;
    /* 关掉系统长按气泡：国产内核的原生菜单经常缺项，
       统一用自带的 .editor-ctx-menu，避免两个菜单打架 */
    -webkit-touch-callout: none;
}
/* 长按/右键菜单：复制、剪切、粘贴、全选 */
.editor-ctx-menu {
    position: fixed; z-index: 9900; min-width: 116px;
    background: var(--card); border: 1px solid var(--border); border-radius: 10px;
    box-shadow: 0 8px 28px rgba(17, 24, 39, .18); padding: 4px; display: flex; flex-direction: column;
    /* 菜单自身不能被选中，否则长按会选到菜单文字 */
    -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.editor-ctx-menu[hidden] { display: none !important; }
.editor-ctx-menu button {
    display: block; width: 100%; text-align: left; padding: 9px 14px;
    border: none; background: transparent; color: var(--text); font: inherit; font-size: 14px;
    border-radius: 7px; cursor: pointer;
    /* 手机上加大点击区域，并去掉 300ms 延迟 */
    min-height: 40px; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.editor-ctx-menu button:hover:not(:disabled) { background: #eef2fb; color: var(--primary); }
.editor-ctx-menu button:active:not(:disabled) { background: #e3ebfb; color: var(--primary); }
.editor-ctx-menu button:disabled { color: #c3c9d4; cursor: default; }

/* 粘贴兜底面板：浏览器不让网页读剪贴板时，让用户长按可见输入框走系统粘贴 */
.paste-fallback { position: fixed; left: 0; top: 0; width: 100%; height: 100%; background: rgba(17, 24, 39, .45); z-index: 9850; display: flex; align-items: center; justify-content: center; padding: 20px; }
.paste-fallback[hidden] { display: none !important; }
.paste-fallback-box { width: 100%; max-width: 420px; background: var(--card); border-radius: 14px; padding: 18px 16px 16px; box-shadow: 0 12px 40px rgba(0, 0, 0, .22); }
.paste-fallback-box h4 { margin: 0 0 8px; font-size: 16px; color: var(--text); }
.paste-fallback-tip { margin: 0 0 12px; font-size: 13px; line-height: 1.7; color: #6b7684; }
.paste-fallback-input { display: block; width: 100%; min-height: 92px; padding: 10px 12px; font: inherit; font-size: 15px; line-height: 1.7; color: var(--text); background: #f7f9fc; border: 1px solid var(--border); border-radius: 10px; resize: vertical; -webkit-user-select: text; user-select: text; }
.paste-fallback-input:focus { outline: none; border-color: var(--primary); background: #fff; }
.paste-fallback-actions { display: flex; gap: 10px; margin-top: 12px; }
.pf-btn { flex: 1; padding: 11px 12px; border: 1px solid var(--border); background: #f3f5f9; color: #475569; font: inherit; font-size: 14px; border-radius: 9px; cursor: pointer; touch-action: manipulation; }
.pf-btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.editor.is-empty::before { content: attr(data-ph); color: #9aa3b2; white-space: pre-wrap; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.editor p { margin: 0 0 12px; }
.editor div { margin: 0 0 4px; }
.editor h2 { font-size: 19px; margin: 18px 0 10px; }
.editor h3 { font-size: 17px; margin: 16px 0 8px; }
.editor blockquote { border-left: 3px solid #d7dee9; margin: 0 0 12px; padding: 4px 0 4px 12px; color: #55606f; }
.editor pre { background: #f5f7fb; border-radius: 8px; padding: 12px; overflow-x: auto; font-size: 13px; }
.editor code { background: #f1f5f9; padding: 2px 5px; border-radius: 4px; font-size: 92%; }
.editor ul, .editor ol { padding-left: 22px; margin: 0 0 12px; }
.editor img { max-width: 100%; height: auto; border-radius: 8px; display: block; margin: 10px 0; }
.editor-busy { display: inline-block; padding: 6px 12px; background: #eef2ff; color: #4a5b8c; border-radius: 6px; font-size: 13px; }

.cover-row { display: flex; align-items: center; gap: 10px; margin: 14px 0; flex-wrap: wrap; }
.cover-preview img { max-height: 48px; border-radius: 6px; border: 1px solid var(--border); }
.write-actions { display: flex; gap: 10px; }

/* 图片选择：label 包住 input，手机上直接点就是原生选择器 */
.img-pick { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; }
.img-pick > input[type=file] { position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0; font-size: 200px; cursor: pointer; }

.img-sheet-mask { position: fixed; left: 0; top: 0; width: 100%; height: 100%; background: rgba(17, 24, 39, .45); z-index: 9800; display: flex; align-items: flex-end; justify-content: center; }
.img-sheet-mask[hidden] { display: none !important; }
.img-sheet { width: 100%; max-width: 460px; background: #fff; border-radius: 16px 16px 0 0; padding: 6px 14px calc(14px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 30px rgba(0, 0, 0, .18); }
.img-sheet h4 { margin: 12px 2px 10px; font-size: 15px; color: #374151; }
.img-sheet .pick-row { display: flex; gap: 10px; }
.img-sheet .pick-row .img-pick { flex: 1; }
.img-sheet .pick-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px 6px; text-align: center; background: #f3f5f9; border-radius: 10px; font-weight: 600; font-size: 15px; color: #1f2430; }
.img-sheet .pick-btn .ico { width: 19px; height: 19px; flex: none; color: var(--primary); }
.img-sheet .pick-tip { margin: 12px 2px 0; font-size: 12px; color: #94a3b8; text-align: center; }
.img-sheet .pick-cancel { display: block; width: 100%; margin-top: 12px; padding: 12px; border: none; background: #fff; border-top: 1px solid #eef2f7; color: #64748b; font-size: 15px; border-radius: 10px; cursor: pointer; }

/* Profile */
.profile-head { display: flex; gap: 16px; align-items: center; margin-bottom: 24px; }
.profile-head h1 { margin: 0 0 4px; font-size: 22px; }
.section-title { margin: 8px 0 14px; }

/* Admin */
.admin-layout { display: flex; gap: 20px; align-items: flex-start; }
.admin-side { width: 160px; flex: none; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; }
.admin-side a { padding: 10px 12px; border-radius: 8px; color: var(--text); font-weight: 500; }
.admin-side a.active { background: var(--primary); color: #fff; }
.admin-main { flex: 1; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; min-width: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { background: #f7f9fc; border-radius: 10px; padding: 18px; text-align: center; }
.stat b { display: block; font-size: 26px; color: var(--primary); }
.stat span { color: var(--muted); font-size: 13px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); }
.admin-table th { color: var(--muted); font-weight: 600; }
.admin-table .ops { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-table select { padding: 4px 6px; border-radius: 6px; border: 1px solid var(--border); }

/* Pagination */
.pagination { display: flex; gap: 8px; justify-content: center; margin: 24px 0; flex-wrap: wrap; }
.pagination a, .pagination .current { padding: 6px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--card); padding: 20px 0; color: var(--muted); font-size: 13px; }
.site-footer .container { display: flex; gap: 12px; }

@media (max-width: 640px) {
    .post-card { flex-direction: column; }
    .post-cover { width: 100%; height: 160px; }
    .admin-layout { flex-direction: column; }
    .admin-side { width: 100%; flex-direction: row; overflow-x: auto; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 图形验证码 */
.cap-row { display: flex; gap: 10px; align-items: center; }
.cap-row input { flex: 1; }
.cap-row img { height: 48px; width: 128px; border-radius: 8px; cursor: pointer; border: 1px solid var(--border); background: #fff; flex: none; }

/* 拼图滑块弹层（兼容写法：不用 inset / aspect-ratio，兼容微信 X5 与老安卓内核） */
.slider-mask {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(17, 24, 39, .55);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999; padding: 16px;
    box-sizing: border-box;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
}
.slider-mask[hidden] { display: none !important; }
.slider-box { position: relative; background: #fff; border-radius: 16px; padding: 20px 18px 18px; width: 100%; max-width: 400px; max-height: 100%; overflow-y: auto; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); box-sizing: border-box; -webkit-overflow-scrolling: touch; }
.slider-close { position: absolute; right: 8px; top: 8px; width: 34px; height: 34px; border: none; background: transparent; color: #94a3b8; font-size: 24px; line-height: 1; border-radius: 8px; cursor: pointer; padding: 0; }
.slider-close:hover { background: #f1f5f9; color: #475569; }
.slider-title { font-size: 15px; font-weight: 600; color: #1f2430; margin-bottom: 4px; padding-right: 38px; }
.slider-sub { font-size: 12px; color: #94a3b8; margin-bottom: 12px; }
/* 用 padding-bottom 占位（340:190 = 55.882%），不依赖 aspect-ratio */
.slider-stage { position: relative; width: 100%; height: 0; padding-bottom: 55.882%; border-radius: 10px; overflow: hidden; background: #eef2f7; }
.slider-target { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: block; }
.slider-piece { position: absolute; left: 0; top: 0; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .45)); }
.slider-track { position: relative; margin-top: 14px; height: 44px; background: #eef2f7; border-radius: 22px; overflow: hidden; user-select: none; }
.slider-fill { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: linear-gradient(90deg, #dbeafe, #bfdbfe); }
.slider-tip { position: absolute; left: 0; right: 0; top: 0; height: 44px; display: flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 13px; pointer-events: none; }
.slider-handle { position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 22px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; cursor: grab; font-size: 18px; touch-action: none; box-shadow: 0 2px 8px rgba(47, 109, 246, .4); }
.slider-handle .ico { width: 20px; height: 20px; flex: none; }
.slider-msg { margin-top: 10px; font-size: 13px; min-height: 18px; color: #64748b; }
.slider-msg.ok { color: #16a34a; }
.slider-msg.err { color: #dc2626; }

/* 邮箱验证码 */
.code-row { display: flex; gap: 10px; align-items: stretch; }
.code-row input { flex: 1; min-width: 0; letter-spacing: 2px; font-variant-numeric: tabular-nums; }
.btn-code { flex: none; white-space: nowrap; padding: 0 16px; background: #eef4ff; color: var(--primary); border: 1px solid #d3e2ff; border-radius: 10px; font-size: 14px; cursor: pointer; transition: background .15s, opacity .15s; }
.btn-code:hover:not(:disabled) { background: #e2ecff; }
.btn-code:disabled { opacity: .6; cursor: not-allowed; }
.code-msg { font-size: 13px; min-height: 18px; margin: -6px 0 6px; color: #64748b; }
.code-msg.ok { color: #16a34a; }
.code-msg.err { color: #dc2626; }

/* 移动端：隐藏桌面导航，显示三条杠 + 侧边栏 */
@media (max-width: 768px) {
    .nav-desktop, .user-desktop { display: none; }
    .menu-btn { display: flex; }
    .header-inner { height: 56px; gap: 10px; }
    .logo-img { width: 34px; height: 34px; border-radius: 9px; }
    .logo-text { font-size: 15px; }
    .container { padding: 0 14px; }
    .main { padding: 16px 14px 48px; }
    .editor { min-height: 300px; padding: 12px; font-size: 16px; }
    .editor-tools { gap: 8px; }
    .tool-btn { padding: 10px 14px; }
    .title-input { font-size: 19px; }
    .img-sheet .pick-btn { padding: 16px 6px; font-size: 16px; }
}
