/* 一言堂 · 简洁现代 · 响应式 */
:root {
  --bg: #faf9f6;
  --card: #ffffff;
  --ink: #1f2328;
  --sub: #6b7280;
  --line: #e8e5df;
  --accent: #c0392b;      /* 印章朱红 */
  --accent-soft: #fdf0ee;
  --link: #1a5fb4;
  --radius: 14px;
  --shadow: 0 2px 12px rgba(31, 35, 40, .06);
  --font-serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --font-sans: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-sans); line-height: 1.75; }
a { color: var(--link); text-decoration: none; }
a:hover { opacity: .85; }
img { max-width: 100%; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 249, 246, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.seal {
  width: 40px; height: 40px; border-radius: 8px; background: var(--accent); color: #fff;
  font-family: var(--font-serif); font-weight: 700; font-size: 11px; line-height: 1.1;
  display: grid; grid-template-columns: 1fr 1fr; place-items: center; padding: 3px;
}
.seal span:first-child { grid-row: span 2; font-size: 15px; }
.brand-name { font-family: var(--font-serif); font-size: 20px; font-weight: 700; letter-spacing: 2px; }
.brand-sub { font-size: 11px; color: var(--sub); letter-spacing: 1px; }
nav.menu { display: flex; gap: 4px; }
nav.menu a {
  color: var(--sub); padding: 7px 14px; border-radius: 8px; font-size: 15px;
}
nav.menu a.on, nav.menu a:hover { color: var(--accent); background: var(--accent-soft); opacity: 1; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 16px; cursor: pointer; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; text-align: center; }
.hero .big {
  font-family: var(--font-serif); font-size: clamp(38px, 7vw, 64px);
  font-weight: 900; letter-spacing: 8px;
}
.hero .big em { color: var(--accent); font-style: normal; }
.hero .say { color: var(--sub); margin-top: 14px; font-size: 16px; }
.hero .say b { color: var(--ink); }
.hero-tags { margin-top: 22px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero-tags span {
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 16px; font-size: 13px; color: var(--sub);
}
.hero-actions { margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 10px 26px; border-radius: 999px; font-size: 15px;
  border: 1px solid var(--accent); cursor: pointer; transition: .2s;
}
.btn-solid { background: var(--accent); color: #fff; }
.btn-ghost { color: var(--accent); background: transparent; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); opacity: 1; }

/* ---------- 区块 ---------- */
.section { padding: 34px 0 10px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.sec-title { font-family: var(--font-serif); font-size: 24px; font-weight: 700; }
.sec-title::before { content: "」"; color: var(--accent); margin-right: 6px; font-weight: 900; }
.sec-more { font-size: 14px; color: var(--sub); }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); transition: .2s; display: block; color: var(--ink);
}
.card:hover { transform: translateY(-3px); border-color: #d8d2c6; opacity: 1; }
.p-cover { font-size: 34px; }
.p-name { font-size: 17px; font-weight: 700; margin: 10px 0 6px; }
.p-sum { color: var(--sub); font-size: 14px; min-height: 44px; }
.chip {
  display: inline-block; font-size: 12px; color: var(--accent); background: var(--accent-soft);
  border-radius: 6px; padding: 2px 8px; margin: 10px 6px 0 0;
}
.chip.gray { color: var(--sub); background: #f1efe9; }

/* ---------- 文章列表 ---------- */
.art-item {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 24px; margin-bottom: 14px;
  box-shadow: var(--shadow); color: var(--ink); transition: .2s;
}
.art-item:hover { transform: translateY(-2px); opacity: 1; }
.art-title { font-size: 18px; font-weight: 700; }
.art-sum { color: var(--sub); font-size: 14px; margin-top: 6px; }
.meta { color: #9aa0a6; font-size: 12.5px; margin-top: 10px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 筛选条 ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.filters button {
  border: 1px solid var(--line); background: var(--card); border-radius: 999px;
  padding: 6px 16px; font-size: 13.5px; color: var(--sub); cursor: pointer;
}
.filters button.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- 详情页 ---------- */
.detail { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.detail h1 { font-family: var(--font-serif); font-size: 28px; margin-bottom: 8px; }
.detail .body { margin-top: 22px; font-size: 15.5px; }
.detail .body h3 { font-family: var(--font-serif); margin: 22px 0 8px; font-size: 19px; }
.detail .body p, .detail .body ul, .detail .body ol { margin: 10px 0; }
.detail .body ul, .detail .body ol { padding-left: 24px; }
.detail .body blockquote { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 8px 14px; border-radius: 0 8px 8px 0; margin: 12px 0; }
.back { display: inline-block; margin-bottom: 16px; color: var(--sub); font-size: 14px; }

/* ---------- 简介页 ---------- */
.about-grid { display: grid; grid-template-columns: 300px 1fr; gap: 18px; }
.avatar-seal {
  width: 96px; height: 96px; border-radius: 18px; background: var(--accent); color: #fff;
  font-family: var(--font-serif); font-size: 44px; font-weight: 900;
  display: flex; align-items: center; justify-content: center; margin: 0 auto;
}
.about-side { text-align: center; }
.about-side .nm { font-family: var(--font-serif); font-size: 22px; font-weight: 700; margin-top: 14px; }
.about-side .tt { color: var(--sub); font-size: 14px; margin-top: 4px; }
.about-side .motto { margin-top: 16px; color: var(--accent); font-size: 13.5px; font-family: var(--font-serif); }
.info-line { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding: 8px 2px; font-size: 14px; }
.info-line b { color: var(--sub); font-weight: 400; }
.tl { position: relative; padding-left: 22px; }
.tl::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 8px 0 14px; }
.tl-item::before { content: ""; position: absolute; left: -20px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; }
.tl-item .t { font-size: 12.5px; color: var(--sub); }
.tl-item .n { font-weight: 700; margin: 2px 0; }
.tl-item .d { color: var(--sub); font-size: 14px; }
.hobby { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.hobby .ic { font-size: 26px; }
.hobby .hn { font-weight: 700; font-size: 15px; }
.hobby .hd { color: var(--sub); font-size: 13.5px; }

/* ---------- 评论 ---------- */
.cmt-box { margin-top: 26px; }
.cmt-box h3 { font-family: var(--font-serif); font-size: 19px; margin-bottom: 12px; }
.cmt-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.cmt-form input, .cmt-form textarea, .field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px;
  font-size: 14px; font-family: inherit; background: #fcfbf9; color: var(--ink);
}
.cmt-form input:focus, .cmt-form textarea:focus, .field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.cmt-form textarea { min-height: 88px; margin-top: 10px; resize: vertical; }
.cmt-form .row { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 10px; flex-wrap: wrap; }
.cmt-tip { font-size: 12px; color: #9aa0a6; }
.cmt-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-top: 12px; }
.cmt-item .who { font-weight: 700; font-size: 14px; }
.cmt-item .txt { font-size: 14.5px; margin-top: 4px; white-space: pre-wrap; }
.cmt-item .meta { margin-top: 6px; }

.empty { text-align: center; color: #9aa0a6; padding: 40px 0; font-size: 14px; }

/* ---------- 页脚 ---------- */
footer.site { border-top: 1px solid var(--line); margin-top: 60px; padding: 26px 0 40px; text-align: center; color: #9aa0a6; font-size: 13px; }
footer.site a { color: #9aa0a6; text-decoration: underline; }

/* ---------- 后台 ---------- */
.admin-layout { display: grid; grid-template-columns: 210px 1fr; min-height: 100vh; }
.admin-side { background: #22262b; color: #cbd2d9; padding: 20px 0; }
.admin-side .logo { padding: 0 20px 18px; font-family: var(--font-serif); font-size: 19px; color: #fff; letter-spacing: 2px; border-bottom: 1px solid #33383e; margin-bottom: 12px; }
.admin-side .logo small { display: block; font-size: 11px; color: #8b949e; letter-spacing: 0; margin-top: 3px; }
.admin-side button.navbtn {
  display: block; width: 100%; text-align: left; background: none; border: none; color: #cbd2d9;
  padding: 11px 22px; font-size: 14.5px; cursor: pointer;
}
.admin-side button.navbtn.on { background: var(--accent); color: #fff; }
.admin-side button.navbtn:hover { background: #2d3238; }
.admin-side .back-site { margin: 18px 20px 0; display: inline-block; font-size: 13px; color: #8b949e; }
.admin-main { padding: 26px 30px; background: var(--bg); }
.admin-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.admin-head h2 { font-family: var(--font-serif); font-size: 22px; }
.table-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
table.list th { text-align: left; color: var(--sub); font-weight: 500; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fcfbf9; white-space: nowrap; }
table.list td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list tr:last-child td { border-bottom: none; }
.op { color: var(--link); background: none; border: none; cursor: pointer; font-size: 13.5px; margin-right: 10px; padding: 0; }
.op.danger { color: var(--accent); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13.5px; color: var(--sub); margin-bottom: 5px; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); max-width: 760px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rte-bar { display: flex; gap: 6px; flex-wrap: wrap; border: 1px solid var(--line); border-bottom: none; border-radius: 8px 8px 0 0; padding: 8px; background: #fcfbf9; }
.rte-bar button { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 4px 10px; font-size: 13px; cursor: pointer; }
.rte-bar button:hover { border-color: var(--accent); color: var(--accent); }
.rte {
  border: 1px solid var(--line); border-radius: 0 0 8px 8px; min-height: 220px;
  padding: 14px; background: #fff; font-size: 14.5px; outline: none;
}
.toast {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
  background: #22262b; color: #fff; padding: 9px 22px; border-radius: 999px; font-size: 14px;
  z-index: 99; opacity: 0; transition: .3s; pointer-events: none;
}
.toast.show { opacity: 1; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-side { display: flex; flex-wrap: wrap; align-items: center; padding: 10px; gap: 4px; }
  .admin-side .logo { border: none; padding: 6px 12px; margin: 0; }
  .admin-side button.navbtn { width: auto; padding: 8px 14px; border-radius: 8px; }
  .admin-side .back-site { margin: 0 0 0 auto; }
  .admin-main { padding: 18px 14px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  nav.menu {
    display: none; position: absolute; top: 62px; right: 12px; flex-direction: column;
    background: var(--card); border: 1px solid var(--line); border-radius: 12px;
    padding: 8px; box-shadow: var(--shadow); min-width: 140px;
  }
  nav.menu.open { display: flex; }
  .nav-toggle { display: block; }
  .hero { padding: 48px 0 36px; }
  .detail { padding: 22px 18px; }
  .nav-search { display: none; }
}

/* ---------- 暗色模式 ---------- */
:root[data-theme="dark"] {
  --bg: #15171a;
  --card: #1e2126;
  --ink: #e8eaed;
  --sub: #9aa0a6;
  --line: #2c3036;
  --accent: #e0584a;
  --accent-soft: #2a1f1d;
  --link: #6db3f2;
  --shadow: 0 2px 12px rgba(0, 0, 0, .4);
}
:root[data-theme="dark"] body { background: var(--bg); color: var(--ink); }
:root[data-theme="dark"] .topbar { background: rgba(21, 23, 26, .92); }
:root[data-theme="dark"] nav.menu.open { background: var(--card); }
:root[data-theme="dark"] table.list th { background: #23272d; }
:root[data-theme="dark"] .cmt-form input, :root[data-theme="dark"] .cmt-form textarea,
:root[data-theme="dark"] .field input, :root[data-theme="dark"] .field textarea, :root[data-theme="dark"] .field select,
:root[data-theme="dark"] .rte, :root[data-theme="dark"] .search-input, :root[data-theme="dark"] .nav-search {
  background: #23272d; color: var(--ink);
}
:root[data-theme="dark"] .detail .body blockquote { background: var(--accent-soft); }

/* 顶栏搜索 / 图标按钮 */
.nav-search {
  width: 150px; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-size: 13px; font-family: inherit; background: var(--card); color: var(--ink);
}
.nav-search:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.icon-btn {
  background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: 6px 10px; font-size: 15px; cursor: pointer; color: var(--ink); margin-left: 6px;
}

/* Hero 渐显动效 */
.fade-in { animation: fadeUp .7s ease both; }
.fade-in.d1 { animation-delay: .15s; }
.fade-in.d2 { animation-delay: .3s; }
.fade-in.d3 { animation-delay: .45s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* 标签云 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 8px 0; }
.tag-cloud .tag {
  display: inline-block; color: var(--accent); background: var(--accent-soft);
  border-radius: 999px; padding: 4px 14px; line-height: 1.6; transition: .2s;
}
.tag-cloud .tag:hover { background: var(--accent); color: #fff; opacity: 1; }

/* 搜索页 */
.search-bar { display: flex; gap: 10px; margin-bottom: 18px; }
.search-bar .search-input {
  flex: 1; border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 16px; font-size: 15px; font-family: inherit; background: var(--card); color: var(--ink);
}
.search-bar .search-input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }

/* 评论嵌套回复 */
.cmt-reply-btn { background: none; border: none; color: var(--sub); font-size: 12.5px; cursor: pointer; margin-top: 8px; padding: 0; }
.cmt-reply-btn:hover { color: var(--accent); }
.cmt-reply-box { margin-top: 10px; border-left: 2px solid var(--line); padding-left: 12px; }
.cmt-reply-box input, .cmt-reply-box textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px;
  font-size: 13.5px; font-family: inherit; background: var(--card); color: var(--ink); margin-top: 8px;
}
.cmt-reply-box textarea { min-height: 64px; resize: vertical; }
.cmt-reply-box .row { margin-top: 8px; }
.cmt-item.reply { margin-left: 28px; border-left: 3px solid var(--accent-soft); background: var(--accent-soft); }
.cmt-item.reply .rep-tag { font-size: 11px; color: var(--accent); background: var(--card); border-radius: 4px; padding: 1px 6px; }

@media (max-width: 720px) {
  .nav-search { display: none; }
}

/* 列表视图切换 */
.view-switch { display: flex; gap: 6px; }
.view-switch button {
  border: 1px solid var(--line); background: var(--card); border-radius: 999px;
  padding: 5px 14px; font-size: 13px; color: var(--sub); cursor: pointer; white-space: nowrap;
}
.view-switch button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.view-switch button:hover { opacity: 1; }

/* 单行列表（标题 + 摘要） */
.row-item {
  display: flex; align-items: center; gap: 16px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 22px;
  margin-bottom: 12px; box-shadow: var(--shadow); color: var(--ink); transition: .2s;
}
.row-item:hover { transform: translateY(-2px); opacity: 1; border-color: #d8d2c6; }
.row-item .ri-cover { font-size: 30px; flex: 0 0 auto; }
.row-item .ri-main { flex: 1; min-width: 0; }
.row-item .ri-name { font-size: 17px; font-weight: 700; display: block; }
.row-item .ri-sum {
  color: var(--sub); font-size: 13.5px; display: block; margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.row-item .ri-meta { flex: 0 0 auto; color: #9aa0a6; font-size: 12.5px; text-align: right; }

/* 长文目录（文章详情内联） */
.toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin: 18px 0; box-shadow: var(--shadow); }
.toc-title { font-family: var(--font-serif); font-weight: 700; font-size: 15px; color: var(--accent); margin-bottom: 8px; }
.toc ul { list-style: none; }
.toc li { margin: 4px 0; }
.toc li.sub { padding-left: 18px; }
.toc a { color: var(--sub); font-size: 14px; }
.toc a:hover { color: var(--accent); opacity: 1; }

/* 热门文章榜 */
.hot-list { list-style: none; }
.hot-list a {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 18px; margin-bottom: 10px; box-shadow: var(--shadow); color: var(--ink); transition: .2s;
}
.hot-list a:hover { transform: translateY(-2px); opacity: 1; border-color: #d8d2c6; }
.hot-list .rank {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.hot-list li:nth-child(1) .rank { background: var(--accent); color: #fff; }
.hot-list li:nth-child(2) .rank { background: #e0922f; color: #fff; }
.hot-list li:nth-child(3) .rank { background: #c9a227; color: #fff; }
.hot-list .ht {
  flex: 1; min-width: 0; font-weight: 600; font-size: 15px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hot-list .hv { flex: 0 0 auto; color: #9aa0a6; font-size: 12.5px; white-space: nowrap; }

/* Markdown 编辑器（双栏） */
.md-editor { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.md-bar { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px; background: #fcfbf9; border-bottom: 1px solid var(--line); }
.md-bar button { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 4px 10px; font-size: 13px; cursor: pointer; }
.md-bar button:hover { border-color: var(--accent); color: var(--accent); }
.md-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 340px; }
.md-input {
  border: none; border-right: 1px solid var(--line); padding: 16px; resize: vertical;
  font-family: "SFMono-Regular", Consolas, monospace; font-size: 13.5px; line-height: 1.7;
  background: #fff; color: var(--ink); outline: none;
}
.md-preview { padding: 16px 20px; overflow-y: auto; background: #fff; }

/* Markdown 渲染正文 */
.md-body { font-size: 15.5px; color: var(--ink); line-height: 1.85; }
.md-body h1, .md-body h2, .md-body h3 { font-family: var(--font-serif); margin: 22px 0 10px; line-height: 1.35; }
.md-body h1 { font-size: 26px; }
.md-body h2 { font-size: 22px; }
.md-body h3 { font-size: 18px; }
.md-body p { margin: 12px 0; }
.md-body ul, .md-body ol { margin: 12px 0; padding-left: 26px; }
.md-body li { margin: 5px 0; }
.md-body a { color: var(--link); }
.md-body code { background: #f2f0ea; border-radius: 4px; padding: 1px 6px; font-family: "SFMono-Regular", Consolas, monospace; font-size: 13px; }
.md-body pre { background: #1e2126; color: #e8eaed; border-radius: 10px; padding: 14px 16px; overflow-x: auto; margin: 14px 0; }
.md-body pre code { background: none; color: inherit; padding: 0; }
.md-body blockquote { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 8px 14px; border-radius: 0 8px 8px 0; margin: 14px 0; color: var(--sub); }
.md-body hr { border: none; border-top: 1px solid var(--line); margin: 22px 0; }
.md-body mark { background: #fff3a8; color: inherit; padding: 0 3px; border-radius: 3px; }
.md-body .callout { border-radius: 10px; padding: 12px 16px; margin: 14px 0; border-left: 4px solid; }
.md-body .callout.note { background: #eef4fb; border-color: #1a5fb4; }
.md-body .callout.tip { background: #eaf7ee; border-color: #2e9e54; }
.md-body .callout.warning { background: #fdf3e7; border-color: #d98324; }
.md-body .callout.important { background: #fdeef0; border-color: var(--accent); }
.md-body .callout::before { font-weight: 700; display: block; margin-bottom: 4px; }
.md-body .callout.note::before { content: "📝 注释"; }
.md-body .callout.tip::before { content: "💡 提示"; }
.md-body .callout.warning::before { content: "⚠ 警告"; }
.md-body .callout.important::before { content: "❗ 重要"; }

/* 暗色模式补充 */
:root[data-theme="dark"] .md-bar, :root[data-theme="dark"] .md-input, :root[data-theme="dark"] .md-preview { background: #1e2126; color: var(--ink); }
:root[data-theme="dark"] .md-body code { background: #2a2f36; }
:root[data-theme="dark"] .md-body mark { background: #5a5320; color: #fff; }

@media (max-width: 640px) {
  .md-split { grid-template-columns: 1fr; }
  .md-input { border-right: none; border-bottom: 1px solid var(--line); }
  .row-item .ri-cover { display: none; }
}
