/* ===== 威聚 全局样式：浅灰背景 + 墨绿主色调（仿 GitHub 简洁风）===== */
:root {
  --bg: #f6f8fa;
  --bg-card: #ffffff;
  --border: #d0d7de;
  --border-light: #e4e9ee;
  --text: #24292f;
  --text-muted: #6e7781;
  --green-900: #16302a;
  --green-700: #1f4a3d;
  --green-600: #2d6a4f;
  --green-500: #388e6a;
  --green-100: #e6f2ec;
  --amber: #b45309;
  --amber-100: #fef3c7;
  --red: #d1242f;
  --red-100: #fdecea;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(31, 35, 40, 0.06);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: var(--green-600); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: 1060px; margin: 0 auto; padding: 0 20px; }
.main-wrap { flex: 1; padding: 24px 20px 60px; }

/* ===== 头部 ===== */
.site-header {
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  display: flex; align-items: center; gap: 20px;
  padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; font-size: 18px; }
.brand:hover { text-decoration: none; opacity: .9; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 6px;
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.25);
  font-weight: 700; color: #cfe8db;
}
.main-nav { display: flex; gap: 16px; }
.nav-link { color: #d5e6dd; font-size: 14px; }
.nav-link:hover { color: #fff; text-decoration: none; }
.nav-search { flex: 1; display: flex; gap: 6px; max-width: 360px; }
.nav-search input {
  flex: 1; padding: 6px 12px; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.12);
  color: #fff; font-size: 13px; outline: none;
}
.nav-search input::placeholder { color: rgba(255,255,255,0.6); }
.nav-search button {
  padding: 6px 14px; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.35); background: transparent; color: #fff; cursor: pointer;
}
.nav-search button:hover { background: rgba(255,255,255,0.15); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nav-actions form { margin: 0; }

/* ===== 按钮 ===== */
.btn {
  display: inline-block; padding: 6px 14px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer; font-size: 13px;
  text-decoration: none !important; line-height: 1.5; white-space: nowrap;
}
.btn-primary { background: var(--green-600); color: #fff; border-color: var(--green-600); }
.btn-primary:hover { background: var(--green-500); }
.btn-ghost { background: transparent; color: var(--green-700); border-color: var(--border); }
.btn-ghost:hover { background: var(--green-100); border-color: var(--green-500); }
.btn-danger { background: transparent; color: var(--red); border-color: var(--border); }
.btn-danger:hover { background: var(--red-100); border-color: var(--red); }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-xs { padding: 2px 8px; font-size: 12px; }
.btn-block { width: 100%; }
.site-header .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.35); }
.site-header .btn-ghost:hover { background: rgba(255,255,255,0.15); }

/* ===== 标签 ===== */
.tag {
  display: inline-block; padding: 2px 8px; border-radius: 20px;
  font-size: 12px; line-height: 1.6; border: 1px solid transparent;
}
.tag-green { background: var(--green-100); color: var(--green-700); border-color: #cfe4d8; }
.tag-lang { background: #eef1f4; color: var(--text-muted); border-color: var(--border-light); }
.tag-human { background: var(--green-100); color: var(--green-700); border-color: #cfe4d8; font-weight: 500; }
.tag-ai { background: var(--amber-100); color: var(--amber); border-color: #f2e0b3; font-weight: 500; }

/* ===== 列表页 ===== */
.index-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 16px; }
.index-title h1 { font-size: 22px; font-weight: 600; }
.muted { color: var(--text-muted); }
.small { font-size: 12px; }
.stat-chip {
  display: inline-block; padding: 4px 12px; border-radius: 20px;
  background: var(--bg-card); border: 1px solid var(--border); font-size: 13px;
}
.filter-bar { margin-bottom: 16px; }
.filter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-form select {
  padding: 6px 10px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--bg-card); font-size: 13px; color: var(--text);
}

.project-list { display: flex; flex-direction: column; gap: 12px; }
.project-card {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow);
}
.project-card:hover { border-color: var(--green-500); }
.project-card-main { flex: 1; min-width: 0; }
.cmp-check { padding-top: 3px; cursor: pointer; }
.cmp-toggle { width: 16px; height: 16px; accent-color: var(--green-600); cursor: pointer; }
.project-name { font-size: 17px; font-weight: 600; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.project-name a { color: var(--green-700); }
.rec-inline {
  font-size: 12px; font-weight: 600; color: var(--amber);
  border: 1px solid #f2e0b3; background: var(--amber-100);
  border-radius: 20px; padding: 1px 8px;
}
.project-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; align-items: center; }
.project-summary { color: var(--text); margin-bottom: 10px; }
.project-foot { display: flex; gap: 16px; align-items: center; font-size: 13px; }
.repo-link { color: var(--green-600); }
.stars { color: var(--amber); font-weight: 600; }
.empty-state {
  background: var(--bg-card); border: 1px dashed var(--border);
  border-radius: var(--radius); padding: 40px; text-align: center; color: var(--text-muted);
}

/* ===== 对比浮动栏 ===== */
.cmp-bar {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 90; background: var(--green-900); color: #fff;
  border-radius: 10px; box-shadow: 0 6px 24px rgba(13,17,23,0.35);
  padding: 10px 18px;
}
.cmp-bar.hidden { display: none; }
.cmp-bar-inner { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.cmp-bar .btn-ghost { color: #d5e6dd; border-color: rgba(255,255,255,0.35); }
.cmp-bar .btn-ghost:hover { background: rgba(255,255,255,0.15); }

/* ===== 对比页 ===== */
.table-scroll { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 640px; }
.compare-table th, .compare-table td {
  border: 1px solid var(--border-light); padding: 10px 12px; vertical-align: top;
  text-align: left; word-break: break-word;
}
.compare-table thead th { background: var(--green-100); font-weight: 600; }
.cmp-label-col { background: #f2f4f7; color: var(--text-muted); font-weight: 600; white-space: nowrap; width: 110px; }
.cmp-desc { color: var(--text); }
.cmp-section { border-top: 1px solid var(--border-light); padding-top: 16px; margin-top: 16px; }
.cmp-section h4 { font-size: 16px; margin-bottom: 8px; }
.rec-stars { color: var(--amber); }

/* ===== 详情页 ===== */
.breadcrumb { margin-bottom: 16px; font-size: 13px; color: var(--text-muted); }
.breadcrumb a { color: var(--green-600); }
.detail-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.detail-main { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.detail-head { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border-light); }
.detail-head h1 { font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.detail-side { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 20px; }
.side-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
}
.side-card h4 { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.side-list { list-style: none; }
.side-list li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--border-light); font-size: 13px; }
.side-list li:last-child { border-bottom: none; }
.side-label { color: var(--text-muted); flex-shrink: 0; }
.side-list a { word-break: break-all; }
.side-actions { display: flex; gap: 8px; align-items: center; }

/* Markdown 正文 */
.markdown-body { color: var(--text); font-size: 15px; line-height: 1.75; word-wrap: break-word; }
.markdown-body h1, .markdown-body h2 { border-bottom: 1px solid var(--border-light); padding-bottom: 6px; margin: 20px 0 12px; }
.markdown-body h1 { font-size: 22px; }
.markdown-body h2 { font-size: 19px; }
.markdown-body h3 { font-size: 16px; margin: 16px 0 8px; }
.markdown-body p { margin: 8px 0; }
.markdown-body ul, .markdown-body ol { margin: 8px 0 8px 24px; }
.markdown-body blockquote { border-left: 4px solid var(--green-500); background: var(--green-100); padding: 8px 14px; margin: 10px 0; color: var(--text); border-radius: 0 var(--radius) var(--radius) 0; }
.markdown-body code { background: #eff1f3; padding: 2px 6px; border-radius: 4px; font-size: 13px; font-family: "SFMono-Regular", Consolas, monospace; }
.markdown-body pre { background: #0d1117; border-radius: var(--radius); padding: 14px; overflow-x: auto; margin: 12px 0; }
.markdown-body pre code { background: transparent; color: #e6edf3; padding: 0; font-size: 13px; }
.markdown-body table { border-collapse: collapse; margin: 12px 0; width: 100%; }
.markdown-body th, .markdown-body td { border: 1px solid var(--border); padding: 6px 12px; }
.markdown-body th { background: #f2f4f7; }
.markdown-body img { max-width: 100%; border-radius: var(--radius); }
.markdown-body a { color: var(--green-600); }

/* ===== 登录页 ===== */
.login-wrap { display: flex; justify-content: center; padding-top: 8vh; }
.login-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 32px; width: 100%; max-width: 380px; box-shadow: var(--shadow);
}
.login-card h1 { font-size: 20px; margin-bottom: 4px; }
.login-card .muted { margin-bottom: 16px; }
.alert { padding: 10px 14px; border-radius: var(--radius); margin-bottom: 14px; font-size: 13px; }
.alert-error { background: var(--red-100); color: var(--red); border: 1px solid #f3c1c4; }
.alert-success { background: var(--green-100); color: var(--green-700); border: 1px solid #cfe4d8; }

/* ===== 表单 ===== */
.field-label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 6px; }
.text-input {
  width: 100%; padding: 8px 12px; border-radius: var(--radius);
  border: 1px solid var(--border); font-size: 14px; background: var(--bg-card);
  color: var(--text); outline: none;
}
.text-input:focus { border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(45,106,79,0.12); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.md-textarea {
  width: 100%; padding: 12px; border-radius: var(--radius); border: 1px solid var(--border);
  font-family: "SFMono-Regular", Consolas, monospace; font-size: 13px; line-height: 1.6;
  background: var(--bg-card); color: var(--text); resize: vertical; outline: none;
}
.md-textarea:focus { border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(45,106,79,0.12); }
.check-label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); margin-left: 8px; }
.field-check { margin: 16px 0 0; color: var(--text); }

/* ===== 后台 ===== */
.admin-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 12px; flex-wrap: wrap; }
.admin-head h1 { font-size: 22px; }
.admin-head-actions { display: flex; gap: 8px; align-items: center; }
.sync-settings { margin-top: 8px; padding: 10px 12px; border: 1px solid var(--border-light); border-radius: var(--radius); background: #fafbfc; }
.admin-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; margin-bottom: 20px; }
.panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.panel-title { font-size: 15px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border-light); }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { text-align: left; color: var(--text-muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.data-table td { padding: 8px 10px; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.data-table tr:hover td { background: #f8faf9; }
.row-actions { white-space: nowrap; }
.row-actions form { display: inline; }
.key-row { display: flex; align-items: center; }
.code-block {
  background: #0d1117; color: #e6edf3; border-radius: var(--radius);
  padding: 14px; overflow-x: auto; font-size: 12.5px; line-height: 1.6; margin-top: 10px;
  font-family: "SFMono-Regular", Consolas, monospace;
}
.code-block code { background: transparent; }
.edit-form .panel { margin-bottom: 20px; }
.edit-actions { display: flex; gap: 10px; align-items: center; margin-top: 14px; }

/* ===== 模态框 ===== */
.modal { position: fixed; inset: 0; background: rgba(13,17,23,0.55); display: flex; align-items: flex-start; justify-content: center; z-index: 100; padding: 60px 20px; overflow-y: auto; }
.modal.hidden { display: none; }
.modal-box { background: var(--bg-card); border-radius: 10px; max-width: 760px; width: 100%; padding: 24px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.modal-head h3 { font-size: 16px; }

/* ===== 页脚 ===== */
.site-footer { border-top: 1px solid var(--border); padding: 18px 0; color: var(--text-muted); font-size: 13px; }

/* ===== 版本徽标 ===== */
.version-badge {
  display: inline-block; vertical-align: middle; margin-left: 8px;
  padding: 1px 10px; border-radius: 20px; font-size: 12px; font-weight: 600;
  color: var(--primary); background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.3);
}

/* ===== 后台：左侧导航布局 ===== */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 64px); }
.admin-sidebar {
  background: var(--bg-card); border-right: 1px solid var(--border);
  padding: 18px 14px; position: sticky; top: 64px; align-self: start; height: calc(100vh - 64px);
  overflow-y: auto;
}
.admin-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; margin-bottom: 18px; }
.admin-logo {
  width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--green-600); color: #fff; font-weight: 800;
}
.admin-nav { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.admin-nav-link {
  display: block; padding: 9px 12px; border-radius: 8px; color: var(--text-muted); text-decoration: none; font-size: 14px;
}
.admin-nav-link:hover { background: rgba(37,99,235,0.08); color: var(--primary); }
.admin-main { padding: 24px 28px; min-width: 0; }

/* ===== 项目卡片（同类/相关项目） ===== */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 14px; }
.proj-card {
  display: block; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s;
}
.proj-card:hover { border-color: var(--green-500); box-shadow: var(--shadow); }
.proj-card-head { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.cat-tag { font-size: 11px; padding: 2px 8px; border-radius: 20px; font-weight: 600; }
.cat-func { background: rgba(34,197,94,0.12); color: var(--green-600); }
.cat-lang { background: rgba(37,99,235,0.1); color: var(--primary); }
.proj-card-title { font-size: 15px; margin: 0 0 6px; }
.proj-card-summary { font-size: 13px; color: var(--text-muted); margin: 0 0 10px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.proj-card-meta { display: flex; gap: 10px; font-size: 12px; color: var(--text-muted); align-items: center; }
.proj-card-meta .stars { color: #d97706; font-weight: 600; }
.related-section { margin-top: 32px; }
.section-title { font-size: 18px; margin-bottom: 4px; padding-bottom: 8px; border-bottom: 2px solid var(--border); }

/* ===== 广告位 / 自定义代码 / 页脚 ===== */
.ad-slot { margin: 16px 0; padding: 12px; border: 1px dashed var(--border); border-radius: var(--radius); text-align: center; }
.custom-body { margin: 0; }
.footer-custom { font-size: 13px; line-height: 1.7; }
.footer-custom a { color: var(--primary); text-decoration: none; }
.footer-custom a:hover { text-decoration: underline; }
.footer-links { margin-bottom: 6px; }
.footer-links a { color: var(--primary); text-decoration: none; font-weight: 500; }
.footer-links a:hover { text-decoration: underline; }
.footer-copy { margin: 0; color: var(--text-muted); }
.text-area {
  width: 100%; font-family: "SFMono-Regular", Consolas, monospace; font-size: 12.5px; line-height: 1.5;
  padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text);
  resize: vertical; box-sizing: border-box; margin-bottom: 4px;
}

/* ===== 列表页分页 ===== */
.pagination { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.page-btn {
  padding: 4px 12px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-card); color: var(--green-700); font-size: 13px; line-height: 1.5;
}
.page-btn:hover { background: var(--green-100); border-color: var(--green-500); text-decoration: none; }
.page-btn.disabled { color: var(--text-muted); border-color: var(--border-light); background: #f6f8fa; cursor: not-allowed; }
.page-nums { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.page-num {
  min-width: 32px; text-align: center; padding: 4px 8px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--bg-card); color: var(--text); font-size: 13px; line-height: 1.5;
}
.page-num:hover { border-color: var(--green-500); color: var(--green-700); text-decoration: none; }
.page-num.active { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.page-num.active:hover { color: #fff; }
.page-gap { color: var(--text-muted); padding: 0 2px; }
.page-jump { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.jump-label { font-size: 13px; color: var(--text-muted); }
.jump-input {
  width: 68px; padding: 4px 8px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 13px; background: var(--bg-card); color: var(--text);
}
.jump-input:focus { border-color: var(--green-500); outline: none; box-shadow: 0 0 0 3px rgba(45,106,79,0.12); }

/* ===== 详情页：上一篇 / 下一篇 ===== */
.post-nav-hint { margin: 26px 0 8px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.post-nav-item {
  display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 66px;
  padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-card); box-shadow: var(--shadow);
}
a.post-nav-item:hover { border-color: var(--green-500); text-decoration: none; }
.post-nav-item.next { text-align: right; align-items: flex-end; }
.pn-label { font-size: 12px; color: var(--green-600); }
.pn-title { font-size: 14px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.pn-meta { font-size: 12px; color: var(--text-muted); }
.post-nav-item.empty {
  color: var(--text-muted); font-size: 13px; background: #fafbfc;
  border-style: dashed; box-shadow: none; align-items: flex-start; text-align: left;
}

/* 编辑推荐徽标（填充绿，与「推荐指数」区分） */
.tag-featured { background: var(--green-600); color: #fff; border-color: var(--green-600); font-weight: 500; }

/* ===== 项目推荐页 ===== */
.rec-hint { margin-top: 10px; }
.rec-section { margin-top: 20px; }
.rec-section .proj-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.topview-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.topview-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-card); box-shadow: var(--shadow); color: inherit;
}
.topview-item:hover { border-color: var(--green-500); text-decoration: none; }
.topview-rank {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--green-100); color: var(--green-700); font-weight: 700; font-size: 14px;
}
.topview-item:first-child .topview-rank { background: var(--green-600); color: #fff; }
.topview-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.topview-name { font-size: 14px; font-weight: 600; color: var(--text); }
.topview-summary {
  font-size: 12.5px; color: var(--text-muted);
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.topview-meta { display: flex; align-items: center; gap: 10px; flex: none; font-size: 12px; }
.topview-meta .stars { color: #d97706; font-weight: 600; }

/* 微信收录引导卡片 */
.wx-card {
  display: flex; gap: 24px; align-items: center;
  background: linear-gradient(135deg, var(--green-100), #f2f7f4);
  border: 1px solid #cfe4d8; border-radius: 10px; padding: 24px 28px;
}
.wx-info { flex: 1; min-width: 0; }
.wx-info .section-title { border-bottom: none; padding-bottom: 0; }
.wx-lead { margin: 10px 0 12px; line-height: 1.8; }
.wx-lead b { color: var(--green-700); }
.wx-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.wx-points li { position: relative; padding-left: 18px; font-size: 13px; color: var(--text); line-height: 1.7; }
.wx-points li::before {
  content: ""; position: absolute; left: 2px; top: 9px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--green-500);
}
.wx-qr {
  flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px; box-shadow: var(--shadow); text-align: center;
}
.wx-qr img { width: 220px; height: auto; border-radius: 8px; display: block; }
.wx-qr figcaption { line-height: 1.6; }

/* ===== 后台：数据库备份 ===== */
.backup-note { margin-bottom: 12px; line-height: 1.8; }
.backup-note code { background: #eff1f3; padding: 1px 6px; border-radius: 4px; font-size: 12.5px; }
.backup-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }

/* ===== 响应式 ===== */
@media (max-width: 860px) {
  .post-nav { grid-template-columns: 1fr; }
  .page-jump { margin-left: 0; }
  .wx-card { flex-direction: column; align-items: stretch; text-align: left; }
  .wx-qr { align-self: center; }
  .topview-meta .tag { display: none; }
  .detail-layout, .admin-grid { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .nav-search { order: 3; max-width: 100%; flex-basis: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--border); }
  .admin-main { padding: 18px 16px; }
}
