* { box-sizing: border-box; }
:root {
  --bg: #f8f3f5;
  --panel: rgba(255,255,255,.72);
  --ink: #51464a;
  --muted: #938087;
  --line: rgba(102,78,87,.15);
  --accent: #a67787;
  --accent-soft: #f0e4e8;
  --danger: #a75b65;
}
html,body { margin:0; min-height:100%; }
body {
  color: var(--ink);
  font-family: "PingFang SC","Microsoft YaHei",sans-serif;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,218,229,.45), transparent 30%),
    radial-gradient(circle at 88% 16%, rgba(223,219,244,.38), transparent 27%),
    linear-gradient(135deg,#fbf7f8,#f7f2f5 52%,#f9f5f2);
  background-attachment: fixed;
}
a { color: inherit; }
.admin-shell { width:min(1180px, calc(100% - 36px)); margin:0 auto; padding:28px 0 60px; }
.admin-topbar { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:28px; }
.brand { text-decoration:none; }
.brand strong { display:block; font-family:"Songti SC","SimSun",serif; font-size:24px; font-weight:400; letter-spacing:.12em; }
.brand span { display:block; margin-top:5px; color:var(--muted); font-size:12px; }
.top-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.btn {
  appearance:none; border:1px solid var(--line); border-radius:10px; background:rgba(255,255,255,.62);
  color:var(--ink); text-decoration:none; padding:10px 14px; font:inherit; font-size:13px; cursor:pointer;
}
.btn:hover { border-color:rgba(120,86,98,.30); background:#fff; }
.btn-primary { background:var(--accent); border-color:var(--accent); color:#fff; }
.btn-primary:hover { background:#956878; border-color:#956878; }
.btn-danger { color:var(--danger); }
.panel { background:var(--panel); border:1px solid var(--line); border-radius:18px; backdrop-filter:blur(12px); }
.panel-head { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:20px 22px; border-bottom:1px solid var(--line); }
.panel-head h1,.panel-head h2 { margin:0; font-size:18px; font-weight:500; }
.panel-body { padding:22px; }
.notice { margin-bottom:18px; padding:12px 14px; border-radius:10px; background:var(--accent-soft); color:#735a63; font-size:13px; }
.error { background:#f7e6e8; color:#8a4b55; }
.post-row { display:grid; grid-template-columns:minmax(0,1fr) 120px 150px 140px; gap:18px; align-items:center; padding:17px 22px; border-bottom:1px solid var(--line); }
.post-row:last-child { border-bottom:0; }
.post-title { min-width:0; }
.post-title a { text-decoration:none; font-family:"Songti SC","SimSun",serif; font-size:18px; }
.post-title small { display:block; margin-top:5px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.status { display:inline-flex; width:max-content; padding:4px 8px; border-radius:999px; background:#eee6e9; color:#79636b; font-size:12px; }
.status.published { background:#e8eee9; color:#58705f; }
.row-muted { color:var(--muted); font-size:12px; }
.row-actions { display:flex; justify-content:flex-end; gap:8px; }
.row-actions form { margin:0; }
.form-grid { display:grid; grid-template-columns:minmax(0,1fr) 260px; gap:20px; }
.field { margin-bottom:18px; }
.field:last-child { margin-bottom:0; }
.field label { display:block; margin-bottom:7px; font-size:13px; color:#755f67; }
.input,.textarea,.select {
  width:100%; border:1px solid rgba(104,79,88,.18); border-radius:10px; background:rgba(255,255,255,.8); color:var(--ink);
  padding:11px 12px; outline:none; font:inherit; font-size:14px;
}
.input:focus,.textarea:focus,.select:focus { border-color:rgba(151,105,121,.55); box-shadow:0 0 0 3px rgba(166,119,135,.08); }
.textarea { min-height:118px; resize:vertical; line-height:1.7; }
.help { margin-top:7px; color:var(--muted); font-size:12px; line-height:1.7; }
.editor-panel { overflow:hidden; }
#editor { background:#fff; }
.fallback-wrap { display:none; padding:18px; background:#fff; }
.fallback-wrap textarea { width:100%; min-height:520px; resize:vertical; border:0; outline:0; font:15px/1.8 Consolas,"Microsoft YaHei",sans-serif; }
.savebar { position:static; margin-top:26px; display:flex; justify-content:flex-end; gap:10px; padding:14px 0 0; border-top:1px solid var(--line); background:transparent; }

.publish-actions {
  margin-top:22px;
  padding-top:18px;
  border-top:1px solid var(--line);
  display:grid;
  gap:9px;
}
.publish-actions .btn { width:100%; text-align:center; }
.publish-actions .publish-save-btn { padding-top:11px; padding-bottom:11px; }
.login-shell { min-height:100vh; display:flex; align-items:center; justify-content:center; padding:24px; }
.login-card { width:min(410px,100%); padding:34px; background:rgba(255,255,255,.68); border:1px solid var(--line); border-radius:20px; backdrop-filter:blur(14px); }
.login-logo { text-align:center; margin-bottom:28px; }
.login-logo .mark {
  width:68px;
  height:68px;
  margin:0 auto 16px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  border:2px solid rgba(255,255,255,.9);
  border-radius:50%;
  background:rgba(255,250,252,.92) url(../images/jiuwei-fox-logo.png) center/82% auto no-repeat;
  box-shadow:0 8px 24px rgba(119,82,96,.12),0 0 0 1px rgba(151,113,126,.13);
}
.login-logo .mark img { width:100%; height:100%; display:block; }
.login-logo .mark.is-custom img { object-fit:cover; }
.login-logo .mark.is-default img { object-fit:contain; padding:5px; }
.login-logo h1 { margin:0; font-family:"Songti SC","SimSun",serif; font-size:30px; font-weight:400; letter-spacing:.16em; padding-left:.16em; }
.login-logo p { color:var(--muted); font-size:12px; }
.empty-admin { padding:50px 22px; text-align:center; color:var(--muted); }
@media(max-width:800px){
  .form-grid{grid-template-columns:1fr}
  .post-row{grid-template-columns:1fr auto; gap:10px}
  .post-row .row-muted:nth-of-type(1), .post-row .row-muted:nth-of-type(2){display:none}
  .admin-topbar{align-items:flex-start;flex-direction:column}
}


/* 音乐插入 */
.jiuwei-music-toolbar {
  display:flex !important;
  align-items:center;
  justify-content:center;
  background-image:none !important;
  color:#8f6675 !important;
  font-family:Georgia,"Times New Roman",serif !important;
  font-size:20px !important;
  line-height:1 !important;
}
.jiuwei-music-toolbar:hover { color:#6f4f5a !important; }
body.music-modal-open { overflow:hidden; }
.music-modal[hidden] { display:none !important; }
.music-modal { position:fixed; inset:0; z-index:10000; display:flex; align-items:center; justify-content:center; padding:24px; }
.music-modal-backdrop { position:absolute; inset:0; background:rgba(59,45,50,.32); backdrop-filter:blur(5px); }
.music-dialog { position:relative; z-index:1; width:min(620px,100%); max-height:calc(100vh - 48px); overflow:auto; padding:24px; border:1px solid rgba(104,79,88,.16); border-radius:20px; background:#fffafc; box-shadow:0 24px 70px rgba(81,58,67,.16); }
.music-dialog-head { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin-bottom:18px; }
.music-dialog-head h3 { margin:0 0 6px; font-family:"Songti SC","SimSun",serif; font-size:22px; font-weight:400; }
.music-dialog-head p { margin:0; color:var(--muted); font-size:12px; line-height:1.6; }
.music-dialog-close { width:34px; height:34px; flex:0 0 auto; border:0; border-radius:50%; background:#f3e9ed; color:#806872; font-size:22px; cursor:pointer; }
.music-tabs { display:flex; gap:8px; margin-bottom:20px; padding:4px; border-radius:12px; background:#f4ecef; }
.music-tab { flex:1; border:0; border-radius:9px; background:transparent; color:#836f76; padding:9px 12px; cursor:pointer; font:inherit; font-size:13px; }
.music-tab.active { background:#fff; color:#654f58; box-shadow:0 2px 10px rgba(75,52,61,.06); }
.music-tab-panel[hidden] { display:none; }
.music-two-cols { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.music-search-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; align-items:center; }
.music-dialog-status { min-height:20px; margin-top:14px; color:#7d6870; font-size:12px; }
.music-dialog-status.error-text { color:#a54f5c; }
#fallback-wrap > .btn { margin:0 0 12px; }
@media(max-width:640px){
  .music-modal{padding:12px}
  .music-dialog{padding:18px;border-radius:16px}
  .music-two-cols{grid-template-columns:1fr}
  .music-search-row{grid-template-columns:1fr}
}

/* =========================================================
   小九尾内置可视化 Markdown 编辑器
   不依赖外部 CDN，避免编辑器工具栏加载失败。
   ========================================================= */
.editor-panel-head > div:first-child { min-width:0; }
.editor-panel-head .row-muted { display:block; margin-top:6px; line-height:1.6; }
.editor-mode-switch {
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:3px;
  padding:4px;
  border:1px solid var(--line);
  border-radius:11px;
  background:rgba(246,238,241,.72);
}
.editor-mode-btn {
  border:0;
  border-radius:8px;
  background:transparent;
  color:#8b757d;
  padding:7px 11px;
  font:inherit;
  font-size:12px;
  cursor:pointer;
}
.editor-mode-btn.active {
  background:#fff;
  color:#604f55;
  box-shadow:0 1px 8px rgba(81,58,67,.07);
}
.jiuwei-editor { background:#fff; }
.editor-toolbar {
  position:sticky;
  top:0;
  z-index:20;
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
  min-height:54px;
  padding:8px 12px;
  border-bottom:1px solid #eadfe3;
  background:rgba(255,252,253,.96);
  backdrop-filter:blur(10px);
}
.editor-tool-group {
  display:flex;
  align-items:center;
  gap:3px;
  padding-right:7px;
  margin-right:1px;
  border-right:1px solid #eee4e7;
}
.editor-tool-group:last-child { border-right:0; padding-right:0; }
.editor-tool {
  min-width:34px;
  height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid transparent;
  border-radius:7px;
  background:transparent;
  color:#65565b;
  padding:0 8px;
  font:inherit;
  font-size:15px;
  line-height:1;
  cursor:pointer;
  white-space:nowrap;
}
.editor-tool:hover {
  border-color:#eadde2;
  background:#f8eff2;
  color:#845f6c;
}
.editor-tool:active { transform:translateY(1px); }
.editor-tool-text { font-size:12px; }
.editor-tool-bold { font-weight:700; font-family:Arial,sans-serif; }
.editor-tool-italic { font-style:italic; font-family:Georgia,serif; }
.editor-tool-strike { text-decoration:line-through; font-family:Arial,sans-serif; }
.editor-tool-code { font-size:11px; font-family:Consolas,monospace; }
.editor-tool-image,.editor-tool-music { color:#8f6675; }
.visual-editor,
.markdown-editor {
  width:100%;
  min-height:620px;
  border:0;
  outline:0;
  background:#fff;
  color:#4f4549;
  padding:32px 42px 90px;
}
.visual-editor {
  overflow-wrap:anywhere;
  font-family:"Songti SC","STSong","SimSun",serif;
  font-size:17px;
  line-height:2;
  caret-color:#9a6a7b;
}
.visual-editor:empty::before {
  content:attr(data-placeholder);
  display:block;
  color:#b3a4a9;
  white-space:pre-line;
  pointer-events:none;
}
.visual-editor p { margin:0 0 1.25em; min-height:1em; }
.visual-editor h1,.visual-editor h2,.visual-editor h3 {
  margin:1.8em 0 .8em;
  font-family:"Songti SC","STSong","SimSun",serif;
  font-weight:500;
  line-height:1.45;
}
.visual-editor h1 { font-size:30px; }
.visual-editor h2 { font-size:25px; }
.visual-editor h3 { font-size:21px; }
.visual-editor blockquote {
  margin:24px 0;
  padding:3px 0 3px 18px;
  border-left:3px solid #e1cbd3;
  color:#7d6a71;
}
.visual-editor ul,.visual-editor ol { padding-left:2em; }
.visual-editor img {
  display:block;
  max-width:100%;
  height:auto;
  margin:22px auto;
  border-radius:5px;
}
.visual-editor hr { border:0; border-top:1px solid #eadde2; margin:32px 0; }
.visual-editor a { color:#9b6e7d; text-underline-offset:3px; }
.visual-editor code {
  padding:.12em .35em;
  border-radius:5px;
  background:#f6eff1;
  font-family:Consolas,Monaco,monospace;
  font-size:.88em;
}
.visual-editor pre {
  overflow:auto;
  padding:17px;
  border-radius:9px;
  background:#f5f0f2;
  line-height:1.7;
}
.visual-editor pre code { padding:0; background:transparent; }
.visual-editor.is-dragging-image {
  box-shadow:inset 0 0 0 3px rgba(166,119,135,.23);
  background:#fffafd;
}
.editor-image-uploading {
  display:inline-flex;
  align-items:center;
  min-height:34px;
  margin:8px 3px;
  padding:6px 11px;
  border:1px dashed #d8bcc6;
  border-radius:7px;
  background:#fff7fa;
  color:#9a7884;
  font-family:"PingFang SC","Microsoft YaHei",sans-serif;
  font-size:12px;
}
.editor-image-uploading.error { border-color:#ddb0b6; color:#a34f5a; background:#fff2f3; }
.editor-music-token,
.visual-editor a[href^="#jiuwei-music-"] {
  display:flex;
  align-items:center;
  width:min(520px,100%);
  margin:18px 0;
  padding:13px 16px;
  border:1px solid #eadce1;
  border-radius:12px;
  background:#fcf6f8;
  color:#7c606a;
  text-decoration:none;
  font-family:"PingFang SC","Microsoft YaHei",sans-serif;
  font-size:13px;
}
.markdown-editor {
  display:block;
  resize:vertical;
  font:15px/1.85 Consolas,"SFMono-Regular","Microsoft YaHei",monospace;
  tab-size:2;
}
.markdown-editor[hidden],.visual-editor[hidden] { display:none !important; }
.editor-footer {
  min-height:42px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:8px 14px;
  border-top:1px solid #eee4e7;
  background:#fffafb;
  color:#a08d94;
  font-size:11px;
}
#editor-status.error-text { color:#a54f5c; }

@media(max-width:760px) {
  .editor-panel-head { align-items:flex-start; flex-direction:column; }
  .editor-mode-switch { align-self:flex-start; }
  .editor-toolbar { gap:5px; padding:8px; }
  .editor-tool-group { padding-right:4px; }
  .editor-tool { min-width:32px; height:32px; padding:0 6px; }
  .visual-editor,.markdown-editor { min-height:520px; padding:24px 18px 70px; }
  .editor-footer { align-items:flex-start; flex-direction:column; gap:4px; }
}

/* 2026-08 editor toolbar polish */
.editor-toolbar {
  box-shadow: 0 6px 18px rgba(81,58,67,.035);
}
.editor-tool-group {
  min-height: 34px;
}
.editor-tool {
  transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.editor-tool:hover {
  box-shadow: 0 1px 5px rgba(83,61,69,.06);
}
.editor-tool:focus-visible,
.editor-mode-btn:focus-visible {
  outline: 2px solid rgba(166,119,135,.38);
  outline-offset: 2px;
}
.visual-editor:focus,
.markdown-editor:focus {
  box-shadow: inset 0 0 0 1px rgba(166,119,135,.10);
}


/* 2026-08-14：空行与段落对齐工具 */
.editor-align-group .editor-align-tool {
  position: relative;
  width: 34px;
  min-width: 34px;
  padding: 0;
  overflow: hidden;
  color: #77666d;
  font-size: 18px;
  line-height: 1;
}
.editor-align-group .editor-align-tool:nth-child(1) { text-align: left; padding-left: 7px; }
.editor-align-group .editor-align-tool:nth-child(2) { text-align: center; }
.editor-align-group .editor-align-tool:nth-child(3) { text-align: right; padding-right: 7px; }
.editor-align-group .editor-align-tool.active {
  border-color: #c8a6b2;
  background: #f4e7ec;
  color: #8f6272;
  box-shadow: inset 0 0 0 1px rgba(166,119,135,.06);
}
.editor-tool-blank {
  min-width: 58px;
}
.visual-editor .jiuwei-blank-line {
  position: relative;
  min-height: 1.65em;
  margin: 0 !important;
  padding: 0;
  border-radius: 5px;
}
.visual-editor .jiuwei-blank-line:hover {
  background: rgba(166,119,135,.045);
}
.visual-editor .jiuwei-align-left { text-align: left; }
.visual-editor .jiuwei-align-center { text-align: center; }
.visual-editor .jiuwei-align-right { text-align: right; }
.visual-editor .jiuwei-align-center img,
.visual-editor .jiuwei-align-right img,
.visual-editor .jiuwei-align-left img {
  display: inline-block;
}

/* 2026-08-14：图片 / 音乐媒体块拖拽排序 */
.editor-media-block {
  position: relative;
  margin: 22px 0;
  border: 1px solid #eadde2;
  border-radius: 14px;
  background: #fffafb;
  overflow: hidden;
  user-select: text;
  transition: border-color .16s ease, box-shadow .16s ease, opacity .16s ease;
}
.editor-media-block:hover {
  border-color: #d8bec7;
  box-shadow: 0 7px 22px rgba(88, 62, 72, .055);
}
.editor-media-block.is-selected {
  border-color:#c79eac;
  box-shadow:0 0 0 3px rgba(183,134,151,.12), 0 8px 24px rgba(88,62,72,.06);
}
.editor-media-block:focus { outline:none; }
.editor-media-block.is-media-dragging {
  opacity: .42;
  border-color: #c9a6b2;
}
.editor-media-handle {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 11px;
  border-bottom: 1px solid #f0e6e9;
  background: #fcf6f8;
  color: #9b818a;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 11px;
  cursor: grab;
}
.editor-media-handle:active { cursor: grabbing; }
.editor-media-handle-label { min-width:0; flex:1; }
.editor-media-delete-btn {
  flex:0 0 auto;
  border:1px solid transparent;
  border-radius:7px;
  background:transparent;
  color:#aa6673;
  padding:4px 8px;
  font:inherit;
  font-size:11px;
  line-height:1.2;
  cursor:pointer;
}
.editor-media-delete-btn:hover {
  border-color:#ead2d7;
  background:#fff0f3;
  color:#994f5d;
}
.editor-media-grip {
  font-size: 16px;
  line-height: 1;
  letter-spacing: -5px;
  transform: translateX(-2px);
  color: #b7929f;
}
.editor-media-preview {
  padding: 12px;
  background: #fff;
}
.editor-media-image .editor-media-preview {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 74px;
}
.editor-media-image .editor-media-preview img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 7px;
}
.editor-media-music .editor-media-preview {
  padding: 10px 12px 12px;
}
.editor-media-music .editor-music-token,
.editor-media-music a[href^="#jiuwei-music-"] {
  width: 100%;
  margin: 0;
  box-sizing: border-box;
  pointer-events: none;
}
.editor-media-block.is-uploading .editor-media-preview {
  background: #fff9fb;
}
.editor-media-block.has-error {
  border-color: #ddb0b6;
}
.editor-media-block.has-error .editor-media-preview {
  color: #a34f5a;
  background: #fff2f3;
  font-size: 12px;
}
.editor-media-drop-indicator {
  position: relative;
  height: 12px;
  margin: 3px 0;
  pointer-events: none;
}
.editor-media-drop-indicator::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 5px;
  height: 2px;
  border-radius: 999px;
  background: #b78697;
}
.editor-media-drop-indicator::after {
  content: "";
  position: absolute;
  left: -1px;
  top: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b78697;
}
.visual-editor.is-reordering-media {
  cursor: grabbing;
}
.visual-editor .editor-media-caret {
  min-height: 1em;
  margin: 0;
}
.editor-media-block.jiuwei-align-left .editor-media-preview { text-align: left; }
.editor-media-block.jiuwei-align-center .editor-media-preview { text-align: center; }
.editor-media-block.jiuwei-align-right .editor-media-preview { text-align: right; }
.editor-media-block.jiuwei-align-left .editor-media-preview img { margin-left: 0; margin-right: auto; }
.editor-media-block.jiuwei-align-center .editor-media-preview img { margin-left: auto; margin-right: auto; }
.editor-media-block.jiuwei-align-right .editor-media-preview img { margin-left: auto; margin-right: 0; }

@media(max-width:760px) {
  .editor-media-block { margin: 18px 0; border-radius: 11px; }
  .editor-media-preview { padding: 9px; }
  .editor-media-handle { min-height: 32px; }
}

/* =========================================================
   摘要所见即所得编辑器 / 固定工具栏
   ========================================================= */
.editor-panel { overflow: visible !important; }
.jiuwei-editor { overflow: visible; border-radius: 0 0 18px 18px; }
.editor-toolbar {
  top: 10px !important;
  z-index: 80 !important;
  border: 1px solid rgba(104,79,88,.14);
  border-left: 0;
  border-right: 0;
  box-shadow: 0 8px 22px rgba(77,55,64,.06);
}

.field-label-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:7px;
}
.field-label-row label { margin-bottom:0; }
.mini-btn {
  border:1px solid rgba(104,79,88,.16);
  border-radius:8px;
  background:#fff;
  color:#846a74;
  padding:5px 9px;
  font:inherit;
  font-size:12px;
  cursor:pointer;
}
.mini-btn:hover { background:#f8eff2; border-color:#dcc7cf; }
.summary-editor {
  width:100%;
  min-height:128px;
  max-height:420px;
  overflow:auto;
  border:1px solid rgba(104,79,88,.18);
  border-radius:10px;
  background:rgba(255,255,255,.86);
  color:var(--ink);
  padding:12px 14px;
  outline:none;
  font-family:"Songti SC","STSong","SimSun",serif;
  font-size:15px;
  line-height:1.9;
  text-align:left;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}
.summary-editor:focus { border-color:rgba(151,105,121,.55); box-shadow:0 0 0 3px rgba(166,119,135,.08); }
.summary-editor:empty::before {
  content:attr(data-placeholder);
  color:#b3a4a9;
  pointer-events:none;
  white-space:pre-line;
}
.summary-editor p,
.summary-editor div { margin:0 0 .45em; text-align:left; }
.summary-editor img {
  display:block;
  max-width:min(500px,100%);
  max-height:800px;
  width:auto;
  height:auto;
  margin:14px auto;
  border-radius:6px;
  object-fit:contain;
}
.summary-editor.is-dragging-image { box-shadow:inset 0 0 0 3px rgba(166,119,135,.20); background:#fffafd; }
.summary-image-uploading {
  display:inline-flex;
  align-items:center;
  padding:5px 9px;
  border:1px dashed #d8bcc6;
  border-radius:7px;
  background:#fff7fa;
  color:#9a7884;
  font:12px/1.4 "PingFang SC","Microsoft YaHei",sans-serif;
}
.summary-image-uploading.error { border-color:#ddb0b6; color:#a34f5a; background:#fff2f3; }

.settings-grid { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:20px; }
.setting-preview {
  min-height:220px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:26px;
}
.setting-preview img { width:min(100%, 260px); height:auto; max-height:160px; object-fit:contain; opacity:.9; margin-bottom:14px; filter:drop-shadow(0 10px 24px rgba(188,135,158,.12)); }
.setting-preview strong { font:400 28px/1.2 "Songti SC","SimSun",serif; letter-spacing:.16em; padding-left:.16em; }
.setting-preview span { margin-top:12px; color:var(--muted); font-size:12px; letter-spacing:.12em; }

@media(max-width:800px){
  .settings-grid{grid-template-columns:1fr}
  .editor-toolbar{top:4px !important}
}

/* 图片标题与图片本地化 */
.editor-tool-localize { min-width: 94px; }
.editor-image-caption-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 12px;
  border-top: 1px solid #f0e6e9;
  background: #fdf8fa;
  color: #947b84;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  user-select: none;
}
.editor-image-caption-input {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #e4d5db;
  border-radius: 8px;
  outline: none;
  background: #fff;
  color: #5c4f54;
  font: inherit;
  user-select: text;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.editor-image-caption-input:focus {
  border-color: #c6a3af;
  box-shadow: 0 0 0 3px rgba(182, 139, 154, .09);
}
.editor-image-caption-input::placeholder { color: #b7a6ac; }
.editor-image-caption-tools {
  display:flex;
  align-items:center;
  gap:8px;
  margin-left:auto;
}
.editor-image-copy-btn {
  height:34px;
  padding:0 10px;
  border:1px solid #e4d5db;
  border-radius:8px;
  background:#fff;
  color:#7e6870;
  font:inherit;
  font-size:12px;
  cursor:pointer;
}
.editor-image-copy-btn:hover { background:#faf2f5; border-color:#d9c2ca; }
.editor-media-resize-handle {
  position:absolute;
  right:10px;
  bottom:52px;
  width:18px;
  height:18px;
  border-radius:6px;
  border:1px solid #d9c4cc;
  background:rgba(255,255,255,.95);
  box-shadow:0 6px 18px rgba(83,61,69,.08);
  cursor:nwse-resize;
}
.editor-media-resize-handle::before {
  content:"";
  position:absolute;
  right:3px;
  bottom:3px;
  width:9px;
  height:9px;
  border-right:2px solid #b58b99;
  border-bottom:2px solid #b58b99;
}
.editor-media-size-badge {
  position:absolute;
  right:36px;
  bottom:52px;
  min-width:46px;
  height:18px;
  padding:0 6px;
  border-radius:999px;
  background:rgba(87,64,73,.72);
  color:#fff;
  font:11px/18px "PingFang SC","Microsoft YaHei",sans-serif;
  text-align:center;
  pointer-events:none;
}
.editor-media-image.is-resizing { user-select:none; }
.editor-media-image.is-resizing .editor-media-preview img { pointer-events:none; }
@media(max-width:760px) {
  .editor-tool-localize { min-width: 82px; }
  .editor-image-caption-row { grid-template-columns: 1fr; gap: 6px; }
  .editor-image-caption-tools { margin-left:0; justify-content:flex-start; }
}

/* 图片本地化：执行时立即给出明确反馈，并阻止重复提交 */
.editor-tool-localize.is-busy,
.editor-tool-localize:disabled {
  min-width: 104px;
  cursor: wait;
  opacity: .72;
  background: #f3e8ec;
  border-color: #ddc8d0;
  color: #896d77;
}
.editor-tool-localize:disabled:hover {
  background: #f3e8ec;
  border-color: #ddc8d0;
  color: #896d77;
}


/* =========================================================
   V7：编辑器限制高度，正文内部滚动；工具栏与状态栏始终可见
   ========================================================= */
.jiuwei-editor {
  display:flex;
  flex-direction:column;
  height:min(720px, calc(100vh - 235px));
  min-height:430px;
  overflow:hidden !important;
  background:#fff;
}
.jiuwei-editor .editor-toolbar {
  position:relative !important;
  top:auto !important;
  flex:0 0 auto;
  z-index:3;
}
.jiuwei-editor .visual-editor,
.jiuwei-editor .markdown-editor {
  flex:1 1 auto;
  min-height:0 !important;
  height:auto !important;
  max-height:none !important;
  overflow:auto !important;
  resize:none;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  padding-bottom:40px;
}
.jiuwei-editor .editor-footer {
  flex:0 0 auto;
  position:relative;
  z-index:2;
  background:#fffafb;
}
@media (max-width:760px) {
  .jiuwei-editor {
    height:min(680px, calc(100vh - 190px));
    min-height:390px;
  }
}

/* =========================================================
   V8：正文编辑器全屏模式
   ========================================================= */
.editor-head-actions {
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:9px;
}
.editor-fullscreen-btn {
  height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:0 11px;
  border:1px solid var(--line);
  border-radius:11px;
  background:rgba(255,255,255,.72);
  color:#79636b;
  font:inherit;
  font-size:12px;
  cursor:pointer;
  transition:background .16s ease,border-color .16s ease,color .16s ease;
}
.editor-fullscreen-btn:hover {
  background:#fff;
  border-color:rgba(120,86,98,.28);
  color:#604f55;
}
.editor-fullscreen-icon {
  font-size:17px;
  line-height:1;
  transform:translateY(-1px);
}
body.editor-fullscreen-open {
  overflow:hidden !important;
}
.editor-panel.is-fullscreen {
  position:fixed !important;
  inset:0 !important;
  z-index:12000 !important;
  margin:0 !important;
  width:100vw !important;
  height:100vh !important;
  max-width:none !important;
  display:flex !important;
  flex-direction:column !important;
  border-radius:0 !important;
  border:0 !important;
  background:#f9f5f7 !important;
  overflow:hidden !important;
  backdrop-filter:none !important;
}
.editor-panel.is-fullscreen .editor-panel-head {
  flex:0 0 auto;
  min-height:70px;
  padding:14px 22px;
  background:rgba(252,248,250,.97);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(12px);
}
.editor-panel.is-fullscreen .jiuwei-editor {
  flex:1 1 auto !important;
  min-height:0 !important;
  height:auto !important;
  max-height:none !important;
  border-radius:0 !important;
}
.editor-panel.is-fullscreen .visual-editor,
.editor-panel.is-fullscreen .markdown-editor {
  padding-left:max(34px, calc((100vw - 980px) / 2));
  padding-right:max(34px, calc((100vw - 980px) / 2));
}
.editor-panel.is-fullscreen .editor-fullscreen-btn {
  background:var(--accent);
  border-color:var(--accent);
  color:#fff;
}
.editor-panel.is-fullscreen .editor-fullscreen-btn:hover {
  background:#956878;
  border-color:#956878;
}
@media(max-width:800px) {
  .editor-head-actions { width:100%; justify-content:space-between; }
  .editor-fullscreen-btn { margin-left:auto; }
  .editor-panel.is-fullscreen .editor-panel-head { min-height:62px; padding:10px 12px; }
  .editor-panel.is-fullscreen .editor-panel-head > div:first-child { display:none; }
  .editor-panel.is-fullscreen .visual-editor,
  .editor-panel.is-fullscreen .markdown-editor { padding-left:18px; padding-right:18px; }
}

/* V22：文章列表按创建时间默认排序 + 拖拽自定义排序 */
.post-list-head > div:first-child { min-width:0; }
.post-list-head > div:first-child .row-muted { display:block; margin-top:6px; line-height:1.55; }
.post-list-head-meta { display:flex; align-items:center; gap:14px; flex:0 0 auto; }
.sort-save-status { min-width:76px; color:var(--muted); font-size:12px; text-align:right; transition:color .16s ease; }
.sort-save-status.is-saving { color:#8c7580; }
.sort-save-status.is-success { color:#5d7865; }
.sort-save-status.is-error { color:var(--danger); }
.post-list-sortable { position:relative; }
.post-list-sortable .post-row {
  grid-template-columns:34px minmax(0,1fr) 120px 150px 140px;
  transition:background .14s ease, opacity .14s ease, box-shadow .14s ease;
}
.post-drag-cell { display:flex; align-items:center; justify-content:center; }
.post-drag-handle {
  width:30px;
  height:36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:9px;
  background:transparent;
  color:#b39da5;
  font:700 18px/1 "PingFang SC","Microsoft YaHei",sans-serif;
  letter-spacing:-5px;
  padding:0 5px 0 0;
  cursor:grab;
  user-select:none;
  touch-action:none;
}
.post-drag-handle:hover { background:var(--accent-soft); color:#8f6977; }
.post-drag-handle:active { cursor:grabbing; }
.post-drag-handle:focus-visible { outline:2px solid rgba(166,119,135,.38); outline-offset:2px; }
.post-row.is-dragging {
  opacity:.48;
  background:rgba(240,228,232,.72);
  box-shadow:0 10px 28px rgba(81,58,67,.08);
}
.post-date-meta { white-space:nowrap; display:flex; flex-direction:column; gap:3px; line-height:1.35; }

@media(max-width:800px){
  .post-list-head { align-items:flex-start; }
  .post-list-head-meta { align-items:flex-end; flex-direction:column; gap:4px; }
  .post-list-sortable .post-row { grid-template-columns:34px minmax(0,1fr) auto; gap:10px; }
  .post-list-sortable .post-status-cell,
  .post-list-sortable .post-date-meta { display:none; }
  .post-drag-handle { touch-action:auto; }
}

/* V23 首页头像设置 */
.home-avatar-setting-row {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid #eadde2;
  border-radius: 16px;
  background: #fffafb;
}
.home-avatar-admin-preview-wrap {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
}
.home-avatar-admin-preview,
.setting-preview .setting-preview-avatar {
  width: 96px;
  height: 96px;
  max-width: none;
  max-height: none;
  margin: 0;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  border: 4px solid rgba(255,255,255,.98);
  box-shadow:
    0 14px 32px rgba(161,112,131,.16),
    0 0 0 1px rgba(190,151,166,.16),
    0 0 34px rgba(214,160,181,.16);
  filter: none;
  background: #f8eef2;
}
.home-avatar-setting-actions {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}
.home-avatar-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
.home-avatar-upload-btn { cursor: pointer; }
.home-avatar-reset-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #9c7a87;
  font-size: 12px;
  cursor: pointer;
}
.home-avatar-reset-check input { accent-color: #aa7d8d; }
.home-setting-live-preview .setting-preview-avatar { margin-bottom: 18px; }

@media(max-width:560px){
  .home-avatar-setting-row { grid-template-columns: 1fr; }
  .home-avatar-admin-preview-wrap { width:100%; }
  .home-avatar-setting-actions { align-items:center; text-align:center; }
}

/* V28 头像历史库 */
.home-avatar-library {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #eadde2;
  border-radius: 16px;
  background: rgba(255,250,251,.72);
}
.home-avatar-library-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.home-avatar-library-head strong {
  display: block;
  margin-bottom: 4px;
  color: #66545b;
  font-size: 14px;
}
.home-avatar-library-head span,
.home-avatar-library-empty {
  color: #a18791;
  font-size: 12px;
  line-height: 1.65;
}
.home-avatar-history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 11px;
}
.home-avatar-history-item {
  position: relative;
  min-width: 0;
}
.home-avatar-history-select {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 78px;
  padding: 7px;
  border: 1px solid #eadde2;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.home-avatar-history-select:hover {
  transform: translateY(-1px);
  border-color: #d7b8c3;
  background: #fffafb;
  box-shadow: 0 7px 18px rgba(103,72,84,.08);
}
.home-avatar-history-item.is-current .home-avatar-history-select {
  border-color: #c99fac;
  box-shadow: inset 0 0 0 1px rgba(169,113,133,.12), 0 7px 18px rgba(103,72,84,.07);
}
.home-avatar-history-select img {
  width: 58px;
  height: 58px;
  max-width: none;
  max-height: none;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,.98);
  background: #f8eef2;
  box-shadow: 0 6px 15px rgba(151,103,121,.13), 0 0 0 1px rgba(190,151,166,.13);
}
.home-avatar-history-name {
  margin-top: 5px;
  color: #8f7580;
  font-size: 11px;
}
.home-avatar-current-mark {
  position: absolute;
  right: 7px;
  bottom: 7px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #a97486;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  box-shadow: 0 2px 7px rgba(110,75,88,.18);
}
.home-avatar-history-delete {
  position: absolute;
  z-index: 3;
  top: -6px;
  right: -6px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid #e6ced6;
  border-radius: 50%;
  background: #fff;
  color: #a77787;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(92,61,73,.10);
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.home-avatar-history-delete:hover {
  transform: scale(1.05);
  background: #ad7386;
  color: #fff;
}
.home-avatar-library-empty {
  margin-top: 10px;
}

@media(max-width:560px){
  .home-avatar-history-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-avatar-history-select { min-height: 70px; padding: 6px; }
  .home-avatar-history-select img { width: 52px; height: 52px; }
}

/* =========================================================
   V29 头像历史统一尺寸 + 上传裁切
   ========================================================= */
.home-avatar-history-grid {
  align-items: stretch;
}
.home-avatar-history-item {
  height: 102px;
}
.home-avatar-history-select {
  height: 102px;
  min-height: 102px;
  grid-template-rows: 60px 18px;
  align-content: center;
  row-gap: 4px;
}
.home-avatar-history-select img {
  width: 58px;
  height: 58px;
}
.home-avatar-history-name {
  height: 18px;
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 18px;
}

html.avatar-crop-open,
html.avatar-crop-open body {
  overflow: hidden;
}
.avatar-crop-modal[hidden] { display: none !important; }
.avatar-crop-modal {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(48, 34, 40, .58);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}
.avatar-crop-dialog {
  width: min(540px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid #ead9df;
  border-radius: 22px;
  background: #fffafb;
  box-shadow: 0 24px 70px rgba(53, 35, 43, .22);
}
.avatar-crop-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid #eee1e5;
}
.avatar-crop-head strong {
  display: block;
  margin-bottom: 6px;
  color: #5f4d54;
  font-size: 17px;
}
.avatar-crop-head span {
  display: block;
  color: #9b818b;
  font-size: 12px;
  line-height: 1.65;
}
.avatar-crop-close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #e8d7dd;
  border-radius: 50%;
  background: #fff;
  color: #a07987;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.avatar-crop-body {
  padding: 22px;
}
.avatar-crop-stage {
  position: relative;
  width: min(360px, 76vw);
  aspect-ratio: 1;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(45deg, #f0e8eb 25%, transparent 25%) 0 0/18px 18px,
    linear-gradient(45deg, transparent 75%, #f0e8eb 75%) 0 0/18px 18px,
    linear-gradient(45deg, transparent 75%, #f0e8eb 75%) 9px -9px/18px 18px,
    linear-gradient(45deg, #f0e8eb 25%, #f8f2f4 25%) 9px 9px/18px 18px;
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.avatar-crop-stage.is-dragging { cursor: grabbing; }
.avatar-crop-stage img {
  position: absolute;
  display: block;
  max-width: none;
  max-height: none;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.avatar-crop-mask {
  position: absolute;
  z-index: 2;
  inset: 7%;
  border: 3px solid rgba(255,255,255,.96);
  border-radius: 50%;
  box-shadow:
    0 0 0 999px rgba(53, 38, 44, .48),
    0 0 0 1px rgba(117, 81, 94, .22) inset,
    0 6px 24px rgba(57, 37, 45, .18);
  pointer-events: none;
}
.avatar-crop-tools {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: min(400px, 100%);
  margin: 20px auto 0;
  color: #9b818b;
  font-size: 12px;
}
.avatar-crop-tools input[type="range"] {
  width: 100%;
  accent-color: #ac7c8d;
}
.avatar-crop-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

@media (max-width: 560px) {
  .home-avatar-history-item,
  .home-avatar-history-select {
    height: 88px;
    min-height: 88px;
  }
  .home-avatar-history-select {
    grid-template-rows: 54px 16px;
  }
  .home-avatar-history-select img {
    width: 52px;
    height: 52px;
  }
  .home-avatar-history-name {
    height: 16px;
    line-height: 16px;
  }
  .avatar-crop-modal { padding: 12px; }
  .avatar-crop-dialog { max-height: calc(100vh - 24px); }
  .avatar-crop-head { padding: 16px; }
  .avatar-crop-body { padding: 16px; }
  .avatar-crop-stage { width: min(330px, 82vw); }
  .avatar-crop-actions .btn { flex: 1; }
}

/* =========================================================
   V39 评论管理
   ========================================================= */
.comment-admin-head { align-items:flex-start; }
.comment-admin-tabs { display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end; }
.comment-admin-tabs .btn.is-active { border-color:#cda8b5;background:#f6eaee;color:#8a6371; }
.admin-comment-list { padding:4px 22px 24px; }
.admin-comment-card {
  position:relative;
  margin-top:16px;
  padding:20px;
  border:1px solid #eadde2;
  border-radius:18px;
  background:rgba(255,252,253,.82);
  box-shadow:0 9px 28px rgba(89,60,72,.04);
}
.admin-comment-meta { display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:12px; }
.admin-comment-meta > div { display:flex;gap:9px;align-items:baseline;flex-wrap:wrap; }
.admin-comment-meta strong { color:#655159;font-size:14px; }
.admin-comment-meta span { color:#a48a94;font-size:11px; }
.admin-comment-meta a { max-width:52%;color:#a27484;font-size:11px;text-decoration:none;text-align:right; }
.admin-comment-meta a:hover { text-decoration:underline;text-underline-offset:3px; }
.admin-comment-content { padding:14px;border-radius:13px;background:#fbf5f7;color:#6d5860;font-size:13px;line-height:1.8;word-break:break-word; }
.admin-comment-private { display:flex;gap:20px;flex-wrap:wrap;margin:12px 0 0; }
.admin-comment-private > div { display:flex;gap:7px;align-items:baseline; }
.admin-comment-private dt { color:#a78e97;font-size:10px; }
.admin-comment-private dd { margin:0;color:#79636b;font-size:11px;word-break:break-all; }
.admin-comment-reply { margin-top:15px;padding-top:14px;border-top:1px dashed #eadde2; }
.admin-comment-reply label { display:block;margin-bottom:7px;color:#806873;font-size:12px;font-weight:600; }
.admin-comment-reply textarea { width:100%;box-sizing:border-box;min-height:90px;padding:11px 12px;border:1px solid #e5d5db;border-radius:12px;background:#fff;color:#604d54;font:13px/1.7 "PingFang SC","Microsoft YaHei",sans-serif;resize:vertical;outline:none; }
.admin-comment-reply textarea:focus { border-color:#caa3b1;box-shadow:0 0 0 3px rgba(168,116,135,.07); }
.admin-comment-actions { display:flex;justify-content:flex-end;margin-top:9px; }
.admin-comment-delete { position:absolute;right:20px;bottom:20px; }
.btn-danger { border-color:#e9cfd3!important;color:#aa636d!important;background:#fff8f9!important; }
.btn-danger:hover { background:#a96670!important;border-color:#a96670!important;color:#fff!important; }
@media(max-width:700px){
  .comment-admin-head { flex-direction:column;gap:12px; }
  .comment-admin-tabs { justify-content:flex-start; }
  .admin-comment-list { padding:3px 14px 18px; }
  .admin-comment-card { padding:16px; }
  .admin-comment-meta { flex-direction:column;gap:7px; }
  .admin-comment-meta a { max-width:100%;text-align:left; }
  .admin-comment-private { flex-direction:column;gap:5px; }
  .admin-comment-actions { padding-right:92px; }
  .admin-comment-delete { right:16px;bottom:16px; }
}

/* V41 评论管理：让回复动作始终明确可见 */
.admin-comment-actions {
  display:flex;
  justify-content:flex-start;
  align-items:center;
  gap:10px;
  margin-top:10px;
  padding-right:0;
}
.admin-comment-save-reply {
  min-width:112px;
  font-weight:600;
}
@media (max-width: 720px) {
  .admin-comment-actions { padding-right:0; }
  .admin-comment-save-reply { width:100%; }
  .admin-comment-delete { position:static;margin-top:10px;text-align:right; }
}

/* =========================================================
   V43 后台文章搜索
   ========================================================= */
.post-search-wrap {
  padding:16px 22px;
  border-bottom:1px solid var(--line);
  background:rgba(255,255,255,.20);
}
.post-search-form {
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto auto;
  align-items:center;
  gap:10px;
}
.post-search-icon {
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  color:#a88e98;
  font-size:20px;
  line-height:1;
}
.post-search-input {
  width:100%;
  height:42px;
  border:1px solid rgba(104,79,88,.18);
  border-radius:12px;
  background:rgba(255,255,255,.78);
  color:var(--ink);
  padding:0 14px;
  outline:0;
  font:13px/1.2 "PingFang SC","Microsoft YaHei",sans-serif;
}
.post-search-input:focus {
  border-color:rgba(151,105,121,.55);
  box-shadow:0 0 0 3px rgba(166,119,135,.08);
  background:#fff;
}
.post-search-submit,
.post-search-clear { height:42px;display:inline-flex;align-items:center;justify-content:center; }
.post-drag-handle:disabled {
  opacity:.28;
  cursor:not-allowed;
  background:transparent!important;
}
.empty-admin a { color:#8c6876;text-underline-offset:3px; }

@media(max-width:700px) {
  .post-search-wrap { padding:14px 16px; }
  .post-search-form { grid-template-columns:minmax(0,1fr) auto; }
  .post-search-icon { display:none; }
  .post-search-clear { grid-column:1 / -1; width:100%; }
}

/* =========================================================
   V44 · 文章管理中心重构
   状态分栏 / 搜索 / 排序 / 分页 / 批量 / 回收站 / 手动前台顺序
   ========================================================= */
.posts-manager { overflow:hidden; }
.posts-manager-head { padding:24px 26px; }
.posts-manager-head > div { min-width:0; }
.manager-eyebrow {
  display:block;
  margin-bottom:5px;
  color:#b0919d;
  font:600 10px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace;
  letter-spacing:.2em;
}
.posts-manager-head h1 {
  font-family:"Songti SC","STSong","SimSun",serif;
  font-size:24px;
  font-weight:400;
  letter-spacing:.06em;
}
.posts-manager-head .row-muted { display:block; margin-top:7px; line-height:1.55; }
.manager-new-post { flex:0 0 auto; }
.manager-notice-wrap { padding:16px 24px 0; }
.manager-notice-wrap .notice { margin:0; }

.post-status-tabs {
  display:flex;
  align-items:stretch;
  gap:4px;
  padding:14px 20px 0;
  border-bottom:1px solid var(--line);
  overflow-x:auto;
  scrollbar-width:none;
}
.post-status-tabs::-webkit-scrollbar { display:none; }
.post-status-tab {
  min-width:92px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:11px 14px 13px;
  border-bottom:2px solid transparent;
  color:#8f7a82;
  text-decoration:none;
  white-space:nowrap;
  transition:.16s ease;
}
.post-status-tab span { font-size:13px; }
.post-status-tab strong {
  min-width:22px;
  height:22px;
  display:grid;
  place-items:center;
  padding:0 6px;
  border-radius:999px;
  background:rgba(234,221,226,.68);
  color:#8a6e79;
  font-size:11px;
  font-weight:600;
}
.post-status-tab:hover { color:#755b65; background:rgba(255,255,255,.32); }
.post-status-tab.is-active { color:#795a66; border-bottom-color:#ad7d8f; }
.post-status-tab.is-active strong { background:#ae7f90; color:#fff; }
.post-status-tab-trash.is-active { color:#925c65; border-bottom-color:#b66c77; }
.post-status-tab-trash.is-active strong { background:#b66c77; }

.post-manager-toolbar {
  display:grid;
  grid-template-columns:minmax(260px,1fr) auto auto auto;
  gap:10px;
  align-items:center;
  padding:18px 22px 12px;
}
.manager-search-box {
  min-width:0;
  height:43px;
  display:grid;
  grid-template-columns:30px minmax(0,1fr) auto;
  align-items:center;
  border:1px solid rgba(104,79,88,.16);
  border-radius:12px;
  background:rgba(255,255,255,.7);
  overflow:hidden;
  transition:border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.manager-search-box:focus-within {
  border-color:rgba(151,105,121,.5);
  box-shadow:0 0 0 3px rgba(166,119,135,.08);
  background:#fff;
}
.manager-search-box > span { text-align:right; color:#b39ba4; font-size:17px; }
.manager-search-box input {
  min-width:0;
  height:41px;
  padding:0 10px;
  border:0;
  outline:0;
  background:transparent;
  color:var(--ink);
  font:inherit;
  font-size:13px;
}
.manager-search-clear {
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  margin-right:4px;
  border-radius:50%;
  color:#a58e97;
  text-decoration:none;
  font-size:18px;
}
.manager-search-clear:hover { background:#f2e8ec; color:#785d67; }
.manager-search-button { height:43px; }
.manager-select-wrap {
  height:43px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 11px;
  border:1px solid rgba(104,79,88,.14);
  border-radius:12px;
  background:rgba(255,255,255,.58);
  color:var(--muted);
  white-space:nowrap;
  font-size:11px;
}
.manager-select-wrap select {
  max-width:205px;
  border:0;
  outline:0;
  background:transparent;
  color:#6f5b63;
  font:inherit;
  font-size:12px;
  cursor:pointer;
}
.manager-per-page select { max-width:58px; }

.manager-context-line {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:3px 22px 16px;
  color:#9b8790;
  font-size:11px;
  line-height:1.6;
}
.manager-context-line strong { color:#755f68; font-weight:500; }
.manager-context-count { flex:0 0 auto; white-space:nowrap; }
.manager-context-count .sort-save-status { margin-left:9px; }

.post-bulk-bar {
  position:sticky;
  top:8px;
  z-index:45;
  display:flex;
  align-items:center;
  gap:10px;
  min-height:50px;
  padding:8px 20px;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background:rgba(250,246,248,.92);
  backdrop-filter:blur(14px);
  transition:background .16s ease, box-shadow .16s ease;
}
body.has-post-selection .post-bulk-bar {
  background:rgba(246,235,240,.97);
  box-shadow:0 8px 26px rgba(91,62,73,.07);
}
.bulk-check-all { display:flex; align-items:center; gap:7px; color:#77636b; font-size:12px; cursor:pointer; }
.bulk-check-all input,
.post-select-checkbox { accent-color:#a87789; width:16px; height:16px; cursor:pointer; }
.bulk-selected-count { min-width:68px; color:var(--muted); font-size:11px; }
.post-bulk-bar select {
  min-width:132px;
  height:34px;
  border:1px solid rgba(104,79,88,.16);
  border-radius:9px;
  background:#fff;
  color:#6f5b63;
  padding:0 9px;
  font:inherit;
  font-size:12px;
}
.post-bulk-bar .btn { padding:7px 12px; }

.post-manager-list { position:relative; }
.post-manager-row {
  display:grid;
  grid-template-columns:28px 34px minmax(0,1fr) minmax(310px,auto);
  gap:10px;
  align-items:center;
  min-height:116px;
  padding:18px 20px;
  border-bottom:1px solid var(--line);
  background:transparent;
  transition:background .15s ease, opacity .15s ease, box-shadow .15s ease;
}
.post-manager-row:last-child { border-bottom:0; }
.post-manager-row:hover { background:rgba(255,255,255,.38); }
.post-manager-row.is-trash { background:rgba(249,244,245,.32); }
.post-manager-select { display:flex; justify-content:center; }
.post-manager-drag { display:flex; justify-content:center; }
.post-manager-list .post-drag-handle {
  width:30px;
  height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:9px;
  background:transparent;
  color:#baa5ad;
  font:700 18px/1 "PingFang SC","Microsoft YaHei",sans-serif;
  letter-spacing:-5px;
  padding:0 5px 0 0;
  cursor:grab;
  user-select:none;
}
.post-manager-list .post-drag-handle:hover:not(:disabled) { background:#f0e6ea; color:#8f6977; }
.post-manager-list .post-drag-handle:disabled { cursor:default; opacity:.23; }
.post-manager-row.is-dragging {
  opacity:.42;
  background:#f3e7eb;
  box-shadow:0 14px 34px rgba(81,58,67,.08);
}
.post-manager-main { min-width:0; }
.post-manager-title-line { display:flex; align-items:center; gap:9px; min-width:0; }
.post-manager-title {
  min-width:0;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#57474d;
  text-decoration:none;
  font-family:"Songti SC","STSong","SimSun",serif;
  font-size:18px;
  line-height:1.45;
  letter-spacing:.025em;
}
a.post-manager-title:hover { color:#9b6e7e; }
.post-manager-slug {
  max-width:580px;
  margin-top:5px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#b09da4;
  font:11px/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}
.post-manager-meta {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px 14px;
  margin-top:11px;
  color:#9d8991;
  font-size:11px;
}
.post-manager-meta span { display:inline-flex; align-items:center; gap:5px; }
.post-manager-meta b { color:#b29ca4; font-weight:400; }
.status {
  display:inline-flex;
  align-items:center;
  gap:5px;
  width:max-content;
  padding:4px 8px;
  border-radius:999px;
  background:#eee6e9;
  color:#79636b;
  font-size:11px;
  white-space:nowrap;
}
.status i { width:6px; height:6px; border-radius:50%; background:currentColor; opacity:.75; }
.status.published { background:#e9f0eb; color:#5d7664; }
.status.draft { background:#f2ebed; color:#8c727c; }
.status-trash { background:#f4e8ea; color:#9f616a; }

.post-manager-actions {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:7px;
}
.post-manager-actions form { margin:0; }
.post-manager-actions .btn {
  min-width:56px;
  padding:8px 10px;
  border-radius:9px;
  text-align:center;
  font-size:12px;
}
.btn-soft-primary {
  border-color:rgba(166,119,135,.24);
  background:#f1e6ea;
  color:#825e6b;
}
.btn-soft-primary:hover { background:#e9d9df; border-color:rgba(166,119,135,.34); }
.post-row-delete { color:#a75b65; }

.manager-empty { border-top:1px solid var(--line); }
.admin-pagination {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:22px;
  border-top:1px solid var(--line);
}
.admin-page-link {
  min-width:34px;
  height:34px;
  display:grid;
  place-items:center;
  padding:0 8px;
  border:1px solid rgba(104,79,88,.13);
  border-radius:9px;
  background:rgba(255,255,255,.52);
  color:#816d75;
  text-decoration:none;
  font-size:12px;
}
.admin-page-link:hover { background:#fff; border-color:rgba(151,105,121,.28); }
.admin-page-link.is-active { background:#a67787; border-color:#a67787; color:#fff; }
.admin-page-link.is-disabled { pointer-events:none; opacity:.28; }
.admin-page-ellipsis { color:#b3a0a7; padding:0 2px; }

@media(max-width:1040px) {
  .post-manager-toolbar { grid-template-columns:minmax(220px,1fr) auto auto; }
  .manager-per-page { grid-column:auto; }
  .manager-search-button { display:none; }
  .post-manager-row { grid-template-columns:28px 34px minmax(0,1fr); }
  .post-manager-actions { grid-column:3; justify-content:flex-start; margin-top:2px; }
}
@media(max-width:760px) {
  .posts-manager-head { align-items:flex-start; }
  .posts-manager-head .row-muted { display:none; }
  .manager-new-post { padding:9px 11px; }
  .post-status-tabs { padding-left:10px; padding-right:10px; }
  .post-status-tab { min-width:80px; padding-left:10px; padding-right:10px; }
  .post-manager-toolbar { grid-template-columns:1fr 1fr; padding:14px 14px 10px; }
  .manager-search-box { grid-column:1 / -1; }
  .manager-select-wrap { justify-content:space-between; }
  .manager-select-wrap select { max-width:150px; }
  .manager-context-line { align-items:flex-start; flex-direction:column; gap:4px; padding:3px 15px 13px; }
  .manager-context-count { white-space:normal; }
  .post-bulk-bar { top:0; padding:8px 12px; overflow-x:auto; }
  .bulk-selected-count { display:none; }
  .post-manager-row { grid-template-columns:26px minmax(0,1fr); gap:9px; padding:16px 14px; }
  .post-manager-drag { grid-column:1; grid-row:2; align-self:start; }
  .post-manager-main { grid-column:2; grid-row:1 / span 2; }
  .post-manager-actions { grid-column:2; grid-row:3; justify-content:flex-start; margin-top:3px; }
  .post-manager-title { white-space:normal; font-size:17px; }
  .post-manager-slug { max-width:100%; }
  .post-manager-meta { gap:6px 10px; }
  .post-manager-meta span:nth-child(3) { display:none; }
  .post-manager-actions .btn { min-width:auto; padding:7px 9px; }
  .admin-pagination { padding:18px 10px; gap:4px; }
  .admin-page-link { min-width:32px; height:32px; }
}
@media(max-width:480px) {
  .manager-select-wrap > span { display:none; }
  .manager-select-wrap select { width:100%; max-width:none; }
  .post-status-tab strong { display:none; }
  .post-status-tab { min-width:70px; }
  .post-manager-meta span:nth-child(2),
  .post-manager-meta span:nth-child(4) { display:none; }
}

/* V45 本地音乐库 / 音源可视化 */
.music-library-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}
.music-library-list{display:grid;gap:10px;max-height:420px;overflow:auto;padding-right:4px}
.music-library-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;padding:14px 16px;border:1px solid rgba(158,116,132,.18);border-radius:16px;background:rgba(255,255,255,.48)}
.music-library-main{min-width:0;display:flex;flex-direction:column;gap:4px}
.music-library-main strong{font-size:15px;color:#5f4e56;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.music-library-main span{font-size:12px;color:#9c8790;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.music-library-actions{display:flex;align-items:center;gap:8px}
.music-library-actions audio{width:220px;height:34px}
.music-library-actions .btn{padding:8px 12px;white-space:nowrap}
.music-library-empty{padding:24px;text-align:center;color:#9c8790;border:1px dashed rgba(158,116,132,.2);border-radius:16px}
.music-library-empty.error{color:#b4535a}
.editor-music-token[data-music-source="本地上传"]{text-decoration-color:rgba(108,145,122,.45)}
@media(max-width:760px){.music-library-item{grid-template-columns:1fr}.music-library-actions{flex-wrap:wrap}.music-library-actions audio{width:100%}}

/* V46 已上传音乐重命名 */
.music-library-rename-panel{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:9px;align-items:center;padding-top:12px;border-top:1px dashed rgba(158,116,132,.18)}
.music-library-rename-panel[hidden]{display:none!important}
.music-library-rename-panel .input{min-width:0;height:38px;padding:8px 11px;font-size:13px}
.music-library-rename-buttons{display:flex;gap:7px;align-items:center}
.music-library-rename-buttons .btn,.music-library-rename-buttons .mini-btn{white-space:nowrap}
.music-library-rename{white-space:nowrap}
@media(max-width:760px){.music-library-rename-panel{grid-template-columns:1fr}.music-library-rename-buttons{justify-content:flex-end}}

/* =========================================================
   V55：编辑器所见即所得、紧凑工具栏、特殊工具、页内前台预览
   ========================================================= */
.editor-tool-underline {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-family: Arial, sans-serif;
  font-weight: 600;
}

/* 正文排版尽量贴近前台；真正的段落留白由 Enter 自动插入的空白段承担。 */
.visual-editor {
  font-size: 18px;
  line-height: 1.90;
  letter-spacing: .044em;
  word-spacing: .045em;
}
.visual-editor p { margin: 0 0 .2em; min-height: 1em; }
.visual-editor .jiuwei-blank-line {
  min-height: 1.55em;
  margin: 0 !important;
  padding: 0;
}
.visual-editor h1,
.visual-editor h2,
.visual-editor h3 {
  margin-top: 2.65em;
  margin-bottom: 1.05em;
  letter-spacing: .025em;
}
.visual-editor h2 { font-size: 27px; }
.visual-editor h3 { font-size: 22px; }
.visual-editor blockquote {
  margin: 36px 0;
  padding: 5px 0 5px 23px;
  line-height: 1.92;
}
.visual-editor hr { margin: 38px 0; }
.visual-editor u {
  text-underline-offset: .16em;
  text-decoration-thickness: .065em;
}

/* 桌面端不再因为“工具组”整体换行而浪费右侧空间。 */
@media (min-width: 900px) {
  .jiuwei-editor .editor-toolbar {
    flex-wrap: nowrap;
    gap: 3px;
    padding: 8px 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
  }
  .jiuwei-editor .editor-tool-group {
    flex: 0 0 auto;
    gap: 2px;
    padding-right: 5px;
    margin-right: 0;
  }
  .jiuwei-editor .editor-tool {
    min-width: 32px;
    height: 32px;
    padding: 0 6px;
  }
  .jiuwei-editor .editor-align-group .editor-align-tool {
    width: 32px;
    min-width: 32px;
  }
}

.editor-preview-btn {
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid rgba(166,119,135,.25);
  border-radius: 11px;
  background: rgba(250,240,244,.72);
  color: #8a6070;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.editor-preview-btn:hover {
  background: #f7e9ee;
  border-color: rgba(166,119,135,.42);
  transform: translateY(-1px);
}

.editor-special-tools .panel-head { min-height: 54px; }
.editor-special-tools-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.editor-special-tool-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.editor-special-tool-copy strong { color: #66545b; font-size: 14px; }
.editor-special-tool-copy span { color: #9a858d; font-size: 12px; line-height: 1.65; }
.editor-localize-button { flex: 0 0 auto; white-space: nowrap; }
.editor-localize-button.is-busy,
.editor-localize-button:disabled {
  cursor: wait;
  opacity: .68;
}
.editor-localize-button:disabled { cursor: not-allowed; }

body.editor-preview-open { overflow: hidden; }
.editor-preview-modal[hidden] { display: none !important; }
.editor-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 2600;
  display: grid;
  place-items: center;
  padding: 22px;
}
.editor-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(38,29,33,.62);
  backdrop-filter: blur(5px);
}
.editor-preview-dialog {
  position: relative;
  z-index: 1;
  width: min(1240px, 96vw);
  height: min(900px, 94vh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.56);
  border-radius: 20px;
  background: #f9f4f6;
  box-shadow: 0 28px 90px rgba(42,29,34,.28);
}
.editor-preview-head {
  flex: 0 0 auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 14px 11px 20px;
  border-bottom: 1px solid rgba(118,89,100,.14);
  background: rgba(255,252,253,.96);
}
.editor-preview-head h3 { margin: 0; color: #5e4d54; font-size: 15px; font-weight: 600; }
.editor-preview-head p { margin: 4px 0 0; color: #a08d94; font-size: 11px; }
.editor-preview-controls { display: flex; align-items: center; gap: 9px; }
.editor-preview-segment {
  display: inline-flex;
  padding: 3px;
  border: 1px solid rgba(120,91,102,.14);
  border-radius: 10px;
  background: #f7eff2;
}
.editor-preview-segment button {
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #927984;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.editor-preview-segment button.active {
  background: #fff;
  color: #795b67;
  box-shadow: 0 2px 9px rgba(83,57,68,.08);
}
.editor-preview-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #8e7680;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.editor-preview-close:hover { background: #f4e8ed; }
.editor-preview-stage {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: auto;
  padding: 18px;
  background:
    linear-gradient(45deg, rgba(133,108,118,.045) 25%, transparent 25%) 0 0/20px 20px,
    linear-gradient(-45deg, rgba(133,108,118,.045) 25%, transparent 25%) 0 10px/20px 20px,
    #eee8eb;
}
.editor-preview-frame-wrap {
  width: min(1180px, 100%);
  min-height: 100%;
  overflow: hidden;
  border-radius: 14px;
  background: #1b171a;
  box-shadow: 0 14px 48px rgba(44,31,36,.16);
  transition: width .22s ease;
}
.editor-preview-frame-wrap.is-mobile { width: 390px; max-width: 100%; }
.editor-preview-frame-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 620px;
  border: 0;
  background: #1b171a;
}
.editor-preview-foot {
  flex: 0 0 auto;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 18px;
  border-top: 1px solid rgba(118,89,100,.12);
  background: #fffafb;
  color: #a18d95;
  font-size: 11px;
}
.editor-preview-foot .error-text { color: #b14f60; }

@media (max-width: 760px) {
  .editor-special-tools-body { align-items: flex-start; flex-direction: column; gap: 12px; }
  .editor-preview-modal { padding: 0; }
  .editor-preview-dialog { width: 100vw; height: 100vh; max-height: none; border-radius: 0; }
  .editor-preview-head { align-items: flex-start; padding: 10px 10px 10px 14px; }
  .editor-preview-head > div:first-child { display: none; }
  .editor-preview-controls { width: 100%; justify-content: space-between; gap: 5px; }
  .editor-preview-segment button { padding: 0 8px; }
  .editor-preview-stage { padding: 8px; }
  .editor-preview-frame-wrap iframe { min-height: 720px; }
  .editor-preview-foot { padding: 0 10px; }
}

/* =========================================================
   V56 音乐管理
   ========================================================= */
.music-manager { overflow:hidden; }
.music-manager-head .manager-eyebrow {
  display:block;
  margin-bottom:7px;
  color:#ad8895;
  font-size:10px;
  font-weight:700;
  letter-spacing:.18em;
}
.music-manager-head .row-muted { display:block; margin-top:6px; line-height:1.6; }
.music-upload-progress { flex:1 1 auto; min-width:0; color:var(--muted); font-size:12px; }
.music-upload-progress-track {
  height:4px;
  margin-top:8px;
  overflow:hidden;
  border-radius:999px;
  background:rgba(135,103,115,.10);
}
.music-upload-progress-track i {
  display:block;
  width:0;
  height:100%;
  border-radius:inherit;
  background:var(--accent);
  transition:width .18s ease;
}
.music-manager-tabs {
  display:flex;
  gap:8px;
  padding:16px 22px 0;
  overflow-x:auto;
}
.music-manager-tab {
  display:inline-flex;
  align-items:center;
  gap:8px;
  flex:0 0 auto;
  padding:9px 12px;
  border:1px solid transparent;
  border-radius:10px;
  color:#8e7880;
  text-decoration:none;
  font-size:13px;
}
.music-manager-tab strong {
  min-width:22px;
  padding:2px 6px;
  border-radius:999px;
  background:rgba(132,101,112,.08);
  color:#9d858e;
  text-align:center;
  font-size:11px;
}
.music-manager-tab:hover { background:rgba(255,255,255,.58); }
.music-manager-tab.is-active {
  border-color:rgba(146,107,121,.17);
  background:#fff;
  color:#68545c;
  box-shadow:0 3px 14px rgba(82,58,68,.055);
}
.music-manager-search {
  display:flex;
  align-items:center;
  gap:9px;
  margin:15px 22px 0;
  padding:7px 8px 7px 12px;
  border:1px solid rgba(109,82,92,.14);
  border-radius:12px;
  background:rgba(255,255,255,.64);
}
.music-manager-search > span { color:#a68f98; }
.music-manager-search input {
  flex:1 1 auto;
  min-width:0;
  border:0;
  outline:0;
  background:transparent;
  color:var(--ink);
  font:inherit;
  font-size:13px;
}
.music-manager-search > a {
  display:grid;
  width:28px;
  height:28px;
  place-items:center;
  border-radius:8px;
  color:#9e8790;
  text-decoration:none;
}
.music-manager-summary {
  display:flex;
  gap:7px;
  padding:12px 22px 16px;
  color:var(--muted);
  font-size:11px;
}
.music-manager-list { border-top:1px solid var(--line); }
.music-manager-card { padding:20px 22px; border-bottom:1px solid var(--line); }
.music-manager-card:last-child { border-bottom:0; }
.music-manager-main {
  display:grid;
  grid-template-columns:54px minmax(0,1fr);
  gap:15px;
  align-items:start;
}
.music-manager-cover {
  display:grid;
  width:54px;
  height:54px;
  place-items:center;
  border:1px solid rgba(135,99,112,.14);
  border-radius:15px;
  background:linear-gradient(145deg,#f5e8ed,#eee8f1);
  color:#a57c8b;
  box-shadow:inset 0 1px rgba(255,255,255,.7);
}
.music-manager-cover span { font:26px/1 Georgia,serif; transform:translateY(-1px); }
.music-manager-info { min-width:0; }
.music-manager-title-row {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}
.music-manager-title-row h2 {
  margin:0;
  color:#5d4b52;
  font-family:"Songti SC","SimSun",serif;
  font-size:19px;
  font-weight:500;
  letter-spacing:.02em;
}
.music-manager-title-row p { margin:5px 0 0; color:#9c8790; font-size:12px; }
.music-manager-badges { display:flex; justify-content:flex-end; gap:6px; flex-wrap:wrap; }
.music-badge {
  display:inline-flex;
  align-items:center;
  min-height:25px;
  padding:4px 8px;
  border-radius:999px;
  background:#f3ebee;
  color:#856c75;
  font-size:10px;
  white-space:nowrap;
}
.music-badge.is-used { background:#e9f0eb; color:#607665; }
.music-badge.is-unused { background:#f5eee3; color:#917350; }
.music-badge.is-danger { background:#f8e6e8; color:#a35360; }
.music-manager-meta {
  display:flex;
  align-items:center;
  gap:8px 12px;
  flex-wrap:wrap;
  margin-top:11px;
  color:#a18c94;
  font-size:11px;
}
.music-manager-meta > span:not(:last-child)::after {
  content:"·";
  margin-left:12px;
  color:#cab9bf;
}
.music-manager-src {
  min-width:0;
  max-width:min(580px,100%);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.music-manager-audio {
  width:min(520px,100%);
  height:34px;
  margin-top:12px;
  opacity:.88;
}
.music-manager-source-link {
  display:inline-flex;
  margin-top:12px;
  color:#8f6978;
  font-size:12px;
  text-decoration:none;
}
.music-manager-source-link:hover { text-decoration:underline; }
.music-manager-tools {
  margin:16px 0 0 69px;
  padding-top:14px;
  border-top:1px dashed rgba(112,84,94,.12);
}
.music-manager-detail { border-top:1px solid rgba(112,84,94,.09); }
.music-manager-detail:first-child { border-top:0; }
.music-manager-detail > summary {
  display:flex;
  align-items:center;
  gap:7px;
  padding:10px 0;
  color:#78626b;
  font-size:12px;
  cursor:pointer;
  list-style:none;
  user-select:none;
}
.music-manager-detail > summary::-webkit-details-marker { display:none; }
.music-manager-detail > summary::before { content:"＋"; color:#ae929c; font-size:13px; }
.music-manager-detail[open] > summary::before { content:"−"; }
.music-manager-detail > summary strong {
  display:inline-grid;
  min-width:20px;
  height:20px;
  place-items:center;
  border-radius:999px;
  background:#f1e8eb;
  color:#90747e;
  font-size:10px;
}
.music-manager-action-form,
.music-ref-list,
.music-manager-no-refs {
  margin:0 0 14px;
  padding:14px;
  border-radius:12px;
  background:rgba(250,246,247,.76);
}
.music-manager-edit-fields { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.music-manager-edit-fields label { color:#806a72; font-size:11px; }
.music-manager-edit-fields .input { margin-top:6px; }
.music-manager-form-actions { display:flex; justify-content:flex-end; margin-top:12px; }
.music-ref-list { padding:0 14px; }
.music-ref-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:12px 0;
  border-bottom:1px solid rgba(112,84,94,.09);
}
.music-ref-row:last-child { border-bottom:0; }
.music-ref-copy { min-width:0; }
.music-ref-copy strong {
  display:block;
  overflow:hidden;
  color:#66535b;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12px;
  font-weight:500;
}
.music-ref-copy span { display:block; margin-top:4px; color:#9d8991; font-size:10px; }
.music-ref-actions { display:flex; flex:0 0 auto; gap:6px; }
.mini-btn.danger-text { color:var(--danger); }
.music-manager-no-refs { color:#9c8990; font-size:11px; line-height:1.7; }
.music-manager-danger-actions {
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:8px;
}
.music-delete-file { border-color:rgba(166,77,91,.18); background:rgba(255,247,248,.72); }
.music-manager-toast {
  position:fixed;
  z-index:20000;
  right:24px;
  bottom:24px;
  max-width:min(420px,calc(100vw - 48px));
  padding:12px 16px;
  border:1px solid rgba(112,84,94,.14);
  border-radius:12px;
  background:rgba(255,252,253,.97);
  color:#735c65;
  box-shadow:0 12px 38px rgba(68,45,54,.13);
  font-size:12px;
}
.music-manager-toast.is-error { background:#fff5f6; color:#a14f5b; }

@media(max-width:800px){
  .music-manager-title-row{flex-direction:column;gap:10px}
  .music-manager-badges{justify-content:flex-start}
  .music-manager-tools{margin-left:0}
  .music-manager-edit-fields{grid-template-columns:1fr}
  .music-ref-row{align-items:flex-start;flex-direction:column}
  .music-ref-actions{width:100%;flex-wrap:wrap}
  .music-manager-danger-actions{align-items:stretch;flex-direction:column}
}
@media(max-width:520px){
  .music-manager-card{padding:17px 16px}
  .music-manager-main{grid-template-columns:42px minmax(0,1fr);gap:11px}
  .music-manager-cover{width:42px;height:42px;border-radius:12px}
  .music-manager-cover span{font-size:21px}
  .music-manager-tabs{padding-left:16px;padding-right:16px}
  .music-manager-search{margin-left:16px;margin-right:16px}
  .music-manager-summary{padding-left:16px;padding-right:16px}
  .music-manager-meta>span:not(:last-child)::after{display:none}
}

/* =========================================================
   V57 后台架构 / Dashboard / 移动编辑
   ========================================================= */
:root { --mobile-keyboard-offset: 0px; }
.top-actions .btn.is-active {
  border-color: rgba(166,119,135,.36);
  background: rgba(244,231,236,.82);
  color: #7e5b68;
}
.admin-mobile-nav,
.admin-mobile-more,
.mobile-editor-topbar,
.mobile-editor-toolbar,
.mobile-editor-more { display:none; }

.dashboard-page { display:flex; flex-direction:column; gap:18px; }
.dashboard-hero {
  display:flex; align-items:flex-end; justify-content:space-between; gap:28px;
  padding:18px 4px 6px;
}
.dashboard-kicker,.manager-eyebrow {
  display:block; margin-bottom:7px; color:#ad8895; font-size:10px; font-weight:700; letter-spacing:.18em;
}
.dashboard-hero h1 { margin:0; font:400 30px/1.2 "Songti SC","STSong","SimSun",serif; letter-spacing:.08em; }
.dashboard-hero p { margin:8px 0 0; color:var(--muted); font-size:13px; }
.dashboard-quick-actions { display:flex; gap:9px; flex-wrap:wrap; justify-content:flex-end; }
.dashboard-notice { margin:0; }
.dashboard-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.dashboard-stat {
  min-width:0; padding:19px 20px; border:1px solid var(--line); border-radius:17px;
  background:rgba(255,255,255,.68); text-decoration:none; backdrop-filter:blur(10px);
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.dashboard-stat:hover { transform:translateY(-2px); border-color:rgba(166,119,135,.28); box-shadow:0 12px 30px rgba(72,48,57,.06); }
.dashboard-stat>span { display:block; color:#907984; font-size:12px; }
.dashboard-stat>strong { display:block; margin:6px 0 3px; color:#66545b; font:400 30px/1.1 Georgia,"Times New Roman",serif; }
.dashboard-stat>small { display:block; color:#a18d94; font-size:11px; line-height:1.55; }
.dashboard-main-grid { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr); gap:18px; }
.dashboard-recent-panel { overflow:hidden; }
.dashboard-recent-panel .panel-head>div { min-width:0; }
.dashboard-recent-list,.dashboard-comment-list { padding:4px 0; }
.dashboard-recent-row {
  display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 20px;
  border-bottom:1px solid rgba(102,78,87,.10); text-decoration:none;
}
.dashboard-recent-row:last-child,.dashboard-comment-row:last-child { border-bottom:0; }
.dashboard-recent-row:hover,.dashboard-comment-row:hover { background:rgba(255,255,255,.48); }
.dashboard-recent-row>div:first-child { min-width:0; }
.dashboard-recent-row strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-family:"Songti SC","STSong","SimSun",serif; font-size:16px; font-weight:400; }
.dashboard-recent-row div>span:not(.status) { display:block; margin-top:4px; color:var(--muted); font-size:11px; }
.dashboard-recent-meta { flex:0 0 auto; display:flex; align-items:flex-end; flex-direction:column; gap:5px; }
.dashboard-recent-meta time,.dashboard-comment-row time { color:#aa959d; font-size:10px; }
.dashboard-comment-row { display:grid; grid-template-columns:34px minmax(0,1fr); gap:11px; padding:13px 18px; border-bottom:1px solid rgba(102,78,87,.10); text-decoration:none; }
.dashboard-comment-avatar { width:34px; height:34px; display:grid; place-items:center; border-radius:50%; background:#f0e3e8; color:#8e6876; font-family:"Songti SC",serif; }
.dashboard-comment-row strong { display:block; color:#6d5860; font-size:12px; }
.dashboard-comment-row strong span { color:#a18c94; font-weight:400; }
.dashboard-comment-row p { margin:4px 0; color:#7f6d74; font-size:12px; line-height:1.55; }
.dashboard-empty { padding:28px 20px; color:var(--muted); font-size:12px; }

.dashboard-home-settings { overflow:hidden; scroll-margin-top:16px; }
.dashboard-settings-head .row-muted { display:block; margin-top:5px; }
.dashboard-settings-form { padding:20px 22px 22px; }
.dashboard-settings-fields { display:grid; grid-template-columns:minmax(180px,.75fr) minmax(320px,1.6fr) minmax(140px,.55fr); gap:14px; align-items:end; }
.dashboard-settings-fields .field { margin:0; }
.dashboard-avatar-editor { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-top:19px; padding:16px; border:1px solid rgba(102,78,87,.10); border-radius:14px; background:rgba(255,255,255,.38); }
.dashboard-avatar-current { display:flex; align-items:center; gap:14px; min-width:0; }
.dashboard-avatar-current img { width:66px; height:66px; flex:0 0 auto; object-fit:cover; border-radius:50%; border:3px solid #fff; box-shadow:0 7px 20px rgba(84,57,67,.12); }
.dashboard-avatar-current strong,.dashboard-avatar-current span { display:block; }
.dashboard-avatar-current strong { color:#66545b; font-size:13px; }
.dashboard-avatar-current span { margin-top:5px; color:var(--muted); font-size:11px; line-height:1.55; }
.dashboard-avatar-actions { display:flex; align-items:center; gap:12px; flex-wrap:wrap; justify-content:flex-end; }
.home-avatar-file-input { position:absolute !important; width:1px !important; height:1px !important; overflow:hidden !important; opacity:0 !important; pointer-events:none; }
.dashboard-avatar-history { margin-top:14px; border:1px solid rgba(102,78,87,.10); border-radius:13px; overflow:hidden; }
.dashboard-avatar-history summary { padding:12px 14px; cursor:pointer; color:#725e66; font-size:12px; background:rgba(255,255,255,.35); }
.dashboard-avatar-history summary span { margin-left:7px; color:#a08b93; font-weight:400; }
.dashboard-avatar-history-grid { padding:14px; }
.dashboard-settings-save { display:flex; align-items:center; gap:12px; margin-top:16px; }
.dashboard-settings-save span { color:var(--muted); font-size:11px; }

.autosave-recovery {
  display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:16px; padding:13px 15px;
  border:1px solid rgba(166,119,135,.20); border-radius:12px; background:#f6eaee; color:#735a64;
}
.autosave-recovery>div:first-child { min-width:0; }
.autosave-recovery strong,.autosave-recovery span { display:block; }
.autosave-recovery strong { font-size:13px; }
.autosave-recovery span { margin-top:4px; color:#967d86; font-size:11px; }
.autosave-recovery>div:last-child { display:flex; gap:7px; flex:0 0 auto; }
.autosave-status { display:flex; align-items:center; gap:7px; margin-bottom:11px; color:#9b858d; font-size:11px; }
.autosave-dot { width:7px; height:7px; border-radius:50%; background:#b7a4ab; transition:background .18s ease,box-shadow .18s ease; }
.autosave-status[data-state="saving"] .autosave-dot { background:#bd8a9c; box-shadow:0 0 0 4px rgba(189,138,156,.10); }
.autosave-status[data-state="saved"] { color:#7c8c78; }
.autosave-status[data-state="saved"] .autosave-dot { background:#8daa85; }
.autosave-status[data-state="error"] { color:#a55460; }
.autosave-status[data-state="error"] .autosave-dot { background:#b95e6a; }

@media(max-width:980px){
  .dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dashboard-main-grid{grid-template-columns:1fr}
  .dashboard-settings-fields{grid-template-columns:1fr 1fr}.dashboard-subtitle-field{grid-column:1/-1;grid-row:1}
}

@media(max-width:760px){
  body { background-attachment:scroll; }
  .admin-shell { width:100%; padding:18px 12px calc(84px + env(safe-area-inset-bottom)); }
  .admin-topbar { margin:0 2px 18px; }
  .admin-topbar .brand strong { font-size:20px; }
  .admin-topbar .brand span { display:none; }
  .admin-topbar .top-actions { display:none; }
  .panel { border-radius:15px; backdrop-filter:none; }
  .panel-head { padding:16px 16px; }
  .panel-body { padding:16px; }

  .admin-mobile-nav {
    position:fixed; z-index:1900; left:0; right:0; bottom:0; display:grid; grid-template-columns:repeat(5,1fr);
    min-height:62px; padding:5px 8px calc(5px + env(safe-area-inset-bottom));
    border-top:1px solid rgba(93,70,79,.13); background:rgba(252,248,249,.96); box-shadow:0 -8px 28px rgba(52,35,42,.06);
  }
  .admin-mobile-nav a,.admin-mobile-nav button { appearance:none; border:0; background:none; text-decoration:none; display:flex; align-items:center; justify-content:center; flex-direction:column; gap:2px; color:#958088; font:inherit; }
  .admin-mobile-nav span { min-height:24px; font-size:20px; line-height:24px; }
  .admin-mobile-nav small { font-size:10px; }
  .admin-mobile-nav .is-active { color:#8c6171; }
  .admin-mobile-nav .admin-mobile-write span { width:34px; height:34px; display:grid; place-items:center; margin-top:-15px; border-radius:50%; background:#a67787; color:#fff; box-shadow:0 5px 15px rgba(120,78,93,.22); }
  .admin-mobile-more { position:fixed; inset:0; z-index:2100; display:block; }
  .admin-mobile-more[hidden]{display:none!important}
  .admin-mobile-more-backdrop { position:absolute; inset:0; border:0; background:rgba(43,31,36,.36); }
  .admin-mobile-more-sheet { position:absolute; left:10px; right:10px; bottom:calc(72px + env(safe-area-inset-bottom)); overflow:hidden; border:1px solid rgba(101,76,85,.12); border-radius:17px; background:#fffafb; box-shadow:0 18px 50px rgba(52,35,42,.18); }
  .admin-mobile-more-sheet a { display:block; padding:15px 17px; border-bottom:1px solid rgba(101,76,85,.09); text-decoration:none; color:#6f5d64; font-size:13px; }
  .admin-mobile-more-sheet a:last-child{border-bottom:0;color:#a45b67}

  .dashboard-hero { align-items:flex-start; flex-direction:column; gap:14px; padding:8px 2px 0; }
  .dashboard-hero h1 { font-size:26px; }
  .dashboard-quick-actions { width:100%; justify-content:flex-start; }
  .dashboard-stats { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .dashboard-stat { padding:15px 14px; border-radius:14px; backdrop-filter:none; }
  .dashboard-stat>strong { font-size:26px; }
  .dashboard-main-grid { gap:12px; }
  .dashboard-recent-row { padding:13px 15px; }
  .dashboard-recent-meta .status { display:none; }
  .dashboard-settings-form { padding:15px; }
  .dashboard-settings-fields { grid-template-columns:1fr; }
  .dashboard-subtitle-field { grid-column:auto; grid-row:auto; }
  .dashboard-avatar-editor { align-items:flex-start; flex-direction:column; gap:13px; padding:13px; }
  .dashboard-avatar-actions { width:100%; justify-content:flex-start; }
  .dashboard-settings-save { align-items:flex-start; flex-direction:column; }

  .autosave-recovery { align-items:flex-start; flex-direction:column; margin:0 0 12px; }

  body.admin-editor-page { padding-bottom:0; }
  body.admin-editor-page .admin-shell { padding:58px 0 calc(72px + var(--mobile-keyboard-offset) + env(safe-area-inset-bottom)); }
  body.admin-editor-page .admin-topbar,
  body.admin-editor-page .admin-mobile-nav { display:none !important; }
  body.admin-editor-page #post-form { padding:0 10px; }
  body.admin-editor-page>.admin-shell>.notice,
  body.admin-editor-page>.admin-shell>.autosave-recovery { margin-left:10px; margin-right:10px; }

  .mobile-editor-topbar {
    position:fixed; z-index:2050; top:0; left:0; right:0; height:52px; display:grid; grid-template-columns:44px 1fr auto; align-items:center;
    padding:0 8px 0 max(4px,env(safe-area-inset-left)); border-bottom:1px solid rgba(105,80,89,.12); background:rgba(252,249,250,.97);
  }
  .mobile-editor-topbar>a { width:40px; height:40px; display:grid; place-items:center; text-decoration:none; color:#7e6871; font-size:29px; }
  .mobile-editor-topbar>strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-align:center; color:#6a565e; font-size:13px; font-weight:500; }
  .mobile-editor-topbar>div { display:flex; gap:4px; }
  .mobile-editor-topbar button { height:34px; border:0; border-radius:9px; background:transparent; color:#8d6674; font:inherit; font-size:12px; padding:0 8px; }
  .mobile-editor-topbar button:last-child { background:#a67787; color:#fff; }

  body.admin-editor-page .form-grid { grid-template-columns:1fr; gap:10px; }
  body.admin-editor-page .form-grid .panel { border-radius:13px; }
  body.admin-editor-page .editor-panel { margin-top:10px !important; border-radius:13px; }
  body.admin-editor-page .editor-panel-head { gap:10px; }
  body.admin-editor-page .editor-panel-head>div:first-child .row-muted { display:none; }
  body.admin-editor-page .editor-head-actions { width:100%; justify-content:space-between; }
  body.admin-editor-page .editor-fullscreen-btn { display:none; }
  body.admin-editor-page .jiuwei-editor>.editor-toolbar { display:none !important; }
  body.admin-editor-page .visual-editor,
  body.admin-editor-page .markdown-editor { min-height:62dvh; padding:22px 14px 110px; font-size:17px; line-height:1.9; }
  body.admin-editor-page .editor-footer { padding:9px 12px 12px; }
  body.admin-editor-page .editor-footer span:last-child { display:none; }
  body.admin-editor-page .editor-special-tools { margin:10px 0 0 !important; }

  .mobile-editor-toolbar {
    position:fixed; z-index:2040; left:0; right:0; bottom:var(--mobile-keyboard-offset); display:flex; align-items:center; gap:3px; overflow-x:auto;
    min-height:54px; padding:5px max(7px,env(safe-area-inset-left)) calc(5px + env(safe-area-inset-bottom));
    border-top:1px solid rgba(105,80,89,.13); background:rgba(252,249,250,.98); box-shadow:0 -7px 22px rgba(52,35,42,.06); scrollbar-width:none;
  }
  .mobile-editor-toolbar::-webkit-scrollbar{display:none}
  .mobile-editor-toolbar button { flex:0 0 40px; width:40px; height:40px; border:0; border-radius:9px; background:transparent; color:#705d65; font:inherit; font-size:16px; }
  .mobile-editor-toolbar button:active { background:#f0e4e8; }
  .mobile-editor-toolbar button[data-mobile-editor-more] { font-size:13px; }

  .mobile-editor-more { position:fixed; inset:0; z-index:2200; display:block; }
  .mobile-editor-more[hidden]{display:none!important}
  .mobile-editor-more-backdrop { position:absolute; inset:0; border:0; background:rgba(43,31,36,.30); }
  .mobile-editor-more-sheet { position:absolute; left:8px; right:8px; bottom:calc(58px + var(--mobile-keyboard-offset) + env(safe-area-inset-bottom)); padding:12px; border:1px solid rgba(105,80,89,.13); border-radius:17px; background:#fffafb; box-shadow:0 18px 48px rgba(52,35,42,.17); }
  .mobile-editor-more-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:7px; }
  .mobile-editor-more-grid button { min-height:42px; border:1px solid rgba(105,80,89,.10); border-radius:10px; background:#fff; color:#715e66; font:inherit; font-size:11px; }
  .mobile-editor-more-close-button { width:100%; margin-top:10px; }

  body.admin-editor-page .editor-media-handle { min-height:40px; }
  body.admin-editor-page .editor-media-delete-btn { min-width:58px; min-height:30px; }
  body.admin-editor-page .editor-media-resize-handle { width:28px; height:28px; }
}

@media(max-width:420px){
  .dashboard-stats{grid-template-columns:1fr 1fr}
  .dashboard-stat>small{font-size:10px}
  .dashboard-comment-row{grid-template-columns:30px minmax(0,1fr);padding-left:14px;padding-right:14px}
  .dashboard-comment-avatar{width:30px;height:30px}
  .mobile-editor-more-grid{grid-template-columns:repeat(3,1fr)}
}
.editor-media-mobile-move{display:none}
@media(max-width:760px){
  .editor-media-mobile-move{display:inline-flex;gap:4px;margin-left:auto}
  .editor-media-move-btn{width:32px;height:28px;border:1px solid rgba(105,80,89,.11);border-radius:8px;background:#fff;color:#7d6670;font:inherit}
  .editor-media-handle-label{max-width:42%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .editor-media-grip{display:none}
}
@media(max-width:760px){
  body.admin-editor-page #post-form{display:flex;flex-direction:column}
  body.admin-editor-page #post-form>.form-grid{display:contents}
  body.admin-editor-page #post-form>.form-grid>section{order:10}
  body.admin-editor-page #post-form>.editor-panel{order:20}
  body.admin-editor-page #post-form>.form-grid>aside{order:30;margin-top:10px}
  body.admin-editor-page #post-form>.editor-special-tools{order:40}
  body.admin-editor-page #post-form>.mobile-editor-toolbar,
  body.admin-editor-page #post-form>.mobile-editor-more,
  body.admin-editor-page #post-form>.editor-preview-modal,
  body.admin-editor-page #post-form>.music-modal{order:50}
}

/* V66 编辑器音乐库：本地上传 + 已使用网易云音乐 */
.music-library-search-row{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 12px;
}
.music-library-search-row .input{
  flex:1;
  min-width:0;
  height:40px;
}
.music-library-search-row .row-muted{
  flex:0 0 auto;
  white-space:nowrap;
}
.music-library-title-line{
  min-width:0;
  display:flex;
  align-items:center;
  gap:8px;
}
.music-library-title-line strong{
  min-width:0;
  flex:0 1 auto;
}
.music-library-title-line em{
  flex:0 0 auto;
  padding:2px 7px;
  border-radius:999px;
  font-style:normal;
  font-size:10px;
  line-height:1.5;
  letter-spacing:.02em;
}
.music-library-title-line em.is-local{
  color:#55745f;
  background:rgba(104,151,120,.12);
  border:1px solid rgba(104,151,120,.16);
}
.music-library-title-line em.is-netease{
  color:#9b5961;
  background:rgba(198,103,113,.1);
  border:1px solid rgba(198,103,113,.15);
}
.music-library-item.is-netease{
  background:linear-gradient(135deg,rgba(255,255,255,.52),rgba(247,238,241,.58));
}
.music-library-preview-link{
  text-decoration:none;
  white-space:nowrap;
}
@media(max-width:760px){
  .music-library-search-row{align-items:stretch;flex-direction:column;gap:6px}
  .music-library-search-row .row-muted{padding-left:2px}
}

/* =========================================================
   V79：主页设置增加微博入口控制
   ========================================================= */
.dashboard-weibo-url-field { grid-column:1 / span 2; }
.dashboard-weibo-switch-field { align-self:end; }
.dashboard-inline-check {
  min-height:42px;
  display:flex;
  align-items:center;
  gap:9px;
  padding:0 12px;
  border:1px solid var(--line);
  border-radius:10px;
  background:rgba(255,255,255,.44);
  color:var(--text);
  font-size:12px;
  cursor:pointer;
}
.dashboard-inline-check input { width:16px; height:16px; accent-color:#9a6f80; }
.field-help { display:block; margin-top:6px; color:var(--muted); font-size:10.5px; line-height:1.6; }
html[data-theme="dark"] .dashboard-inline-check { background:rgba(255,255,255,.025); }
@media(max-width:900px){
  .dashboard-weibo-url-field { grid-column:1 / -1; }
}
@media(max-width:640px){
  .dashboard-weibo-url-field { grid-column:auto; }
}

/* =========================================================
   V79：摘要图片标题编辑
   ========================================================= */
.summary-editor .summary-editor-figure {
  display:block;
  width:fit-content;
  max-width:100%;
  margin:16px auto;
  padding:0;
  text-align:center;
}
.summary-editor .summary-editor-figure img {
  margin:0 auto;
}
.summary-editor .summary-editor-caption {
  min-width:180px;
  max-width:500px;
  margin:7px auto 0;
  padding:5px 8px;
  border:1px dashed rgba(151,105,121,.24);
  border-radius:7px;
  color:#8c747d;
  background:rgba(255,250,252,.76);
  outline:none;
  font:12px/1.55 "PingFang SC","Microsoft YaHei",sans-serif;
  white-space:normal;
  cursor:text;
}
.summary-editor .summary-editor-caption:empty::before {
  content:attr(data-placeholder);
  color:#b8a8ae;
  pointer-events:none;
}
.summary-editor .summary-editor-caption:focus {
  border-color:rgba(151,105,121,.52);
  box-shadow:0 0 0 3px rgba(166,119,135,.07);
  color:#725963;
  background:#fff;
}
.summary-editor .summary-editor-figure:hover .summary-editor-caption {
  border-color:rgba(151,105,121,.36);
}
html[data-theme="dark"] .summary-editor .summary-editor-caption {
  border-color:rgba(222,190,202,.18);
  background:rgba(255,255,255,.025);
  color:#cdbdc3;
}

/* =========================================================
   V81：微博同步器后台状态卡
   ========================================================= */
.dashboard-weibo-sync-card{
  grid-column:1 / -1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:4px 0 2px;
  padding:15px 16px;
  border:1px solid rgba(153,111,127,.16);
  border-radius:14px;
  background:linear-gradient(135deg,rgba(255,250,252,.72),rgba(247,238,242,.54));
}
.dashboard-weibo-sync-copy{min-width:0;display:flex;flex-direction:column;gap:3px}
.dashboard-weibo-sync-copy strong{font-size:14px;font-weight:600;color:var(--text)}
.dashboard-weibo-sync-copy small{color:var(--muted);font-size:10.5px;line-height:1.65}
.dashboard-weibo-sync-copy em{margin-top:3px;color:#a3606b;font-size:10.5px;line-height:1.55;font-style:normal;overflow-wrap:anywhere}
.dashboard-weibo-sync-button{flex:none;white-space:nowrap}
html[data-theme="dark"] .dashboard-weibo-sync-card{
  border-color:rgba(223,190,203,.10);
  background:linear-gradient(135deg,rgba(255,255,255,.035),rgba(255,255,255,.015));
}
@media(max-width:640px){
  .dashboard-weibo-sync-card{align-items:stretch;flex-direction:column;padding:13px}
  .dashboard-weibo-sync-button{width:100%;justify-content:center}
}

/* =========================================================
   V82：微博同步状态提示
   ========================================================= */
.dashboard-weibo-sync-live{
  margin-top:6px;
  color:#8e7981;
  font-size:11px;
  line-height:1.7;
}
.dashboard-weibo-sync-live.is-loading{
  color:#9a6678;
}
.dashboard-weibo-sync-live.is-error{
  color:#b75c70;
}
.dashboard-weibo-sync-live.is-success{
  color:#6e8a6f;
}
.dashboard-static-value{
  min-height:40px;
  display:flex;
  align-items:center;
  padding:0 12px;
  border:1px solid var(--line);
  border-radius:10px;
  background:rgba(255,255,255,.38);
  color:var(--text);
  font-size:13px;
}
html[data-theme="dark"] .dashboard-static-value{background:rgba(255,255,255,.025)}

/* =========================================================
   V86：微博登录态配置
   ========================================================= */
.dashboard-weibo-cookie-field{grid-column:1 / -1}
.weibo-cookie-badge{
  display:inline-flex;align-items:center;margin-left:6px;padding:2px 7px;border-radius:999px;
  background:#eee7ea;color:#9a858d;font-size:9px;font-weight:500;vertical-align:middle
}
.weibo-cookie-badge.is-ok{background:#e9f1ea;color:#6f8873}
.dashboard-weibo-cookie-clear{margin-top:8px}
html[data-theme="dark"] .weibo-cookie-badge{background:#3d3337;color:#ad99a1}
html[data-theme="dark"] .weibo-cookie-badge.is-ok{background:#303c33;color:#a9c1ad}

/* =========================================================
   V90：微博自动同步设置
   ========================================================= */
.dashboard-weibo-cron-field{grid-column:1/-1}
.dashboard-copy-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}
.dashboard-copy-row .input{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11px}
.dashboard-copy-button{white-space:nowrap}
.dashboard-regenerate-token{margin-top:8px}
.dashboard-weibo-auto-status{display:flex;flex-direction:column;gap:2px;margin-top:5px;color:#8c7780;font-size:10.5px;line-height:1.6}
.dashboard-weibo-auto-status span{color:#8b6574}
.dashboard-weibo-auto-status small{color:var(--muted);font-size:10.5px}
.dashboard-weibo-auto-status em{color:#ad626e;font-style:normal;font-size:10.5px;overflow-wrap:anywhere}
html[data-theme="dark"] .dashboard-weibo-auto-status span{color:#d0a2b3}
@media(max-width:640px){.dashboard-copy-row{grid-template-columns:1fr}.dashboard-copy-button{width:100%}}

/* =========================================================
   V92：后台首页分层 —— 日常主页设置 / 微博同步高级维护
   ========================================================= */
.dashboard-settings-master-form{display:contents}
.dashboard-settings-fields-simple{align-items:end}
.dashboard-tech-settings{margin-top:18px}
.dashboard-tech-settings .panel-head{align-items:center}
.dashboard-tech-badge{
  flex:none;
  padding:5px 10px;
  border:1px solid rgba(148,111,125,.14);
  border-radius:999px;
  background:rgba(149,112,126,.06);
  color:#9a7f89;
  font-size:10px;
  letter-spacing:.03em;
}
.dashboard-tech-settings-body{padding-top:2px}
.dashboard-tech-settings-save{border-top:1px dashed rgba(145,110,123,.14);padding-top:16px;margin-top:4px}
html[data-theme="dark"] .dashboard-tech-badge{
  border-color:rgba(224,196,206,.10);
  background:rgba(255,255,255,.025);
  color:#b9a2aa;
}
@media(max-width:640px){
  .dashboard-tech-settings{margin-top:14px}
  .dashboard-tech-settings .panel-head{align-items:flex-start}
  .dashboard-tech-badge{margin-top:2px}
}

/* =========================================================
   V97：一次性全量历史微博抓取
   ========================================================= */
.dashboard-weibo-history-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-top:14px;
  padding:16px;
  border:1px solid rgba(139,112,123,.14);
  border-radius:14px;
  background:rgba(255,255,255,.28);
}
.dashboard-weibo-history-copy{min-width:0;display:flex;flex-direction:column;gap:4px}
.dashboard-weibo-history-copy strong{color:var(--text);font-size:14px;font-weight:600}
.dashboard-weibo-history-copy small{color:var(--muted);font-size:10.5px;line-height:1.7}
.dashboard-weibo-history-copy em{color:#ad626e;font-size:10.5px;font-style:normal;line-height:1.6;overflow-wrap:anywhere}
.dashboard-weibo-history-status{margin-top:4px;color:#8b6c78;font-size:11px;line-height:1.7}
.dashboard-weibo-history-status.is-loading{color:#996478}
.dashboard-weibo-history-status.is-success{color:#6f8972}
.dashboard-weibo-history-status.is-error{color:#b35f70}
.dashboard-weibo-history-actions{display:flex;align-items:center;gap:8px;flex:none}
html[data-theme="dark"] .dashboard-weibo-history-card{border-color:rgba(224,198,208,.10);background:rgba(255,255,255,.025)}
html[data-theme="dark"] .dashboard-weibo-history-status{color:#c29dab}
@media(max-width:640px){
  .dashboard-weibo-history-card{align-items:stretch;flex-direction:column;padding:13px}
  .dashboard-weibo-history-actions{width:100%}
  .dashboard-weibo-history-actions .btn{flex:1;justify-content:center}
}


/* =========================================================
   V111：摘要 / 正文图片编辑体验
   - 图片前后自动保留一个可输入空行
   - 摘要图片支持拖拽排序与上下移动
   ========================================================= */
.summary-editor .summary-editor-figure {
  position: relative;
}
.summary-editor .summary-editor-image-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 28px;
  margin: 0 auto 7px;
  padding: 4px 8px;
  border: 1px dashed rgba(151,105,121,.20);
  border-radius: 8px;
  color: #9b7f89;
  background: rgba(255,250,252,.55);
  font: 10.5px/1.2 "PingFang SC","Microsoft YaHei",sans-serif;
  cursor: grab;
  user-select: none;
}
.summary-editor .summary-editor-image-handle:active,
.summary-editor.is-reordering-summary-image {
  cursor: grabbing;
}
.summary-editor .summary-editor-image-grip {
  letter-spacing: -2px;
  opacity: .72;
}
.summary-editor .summary-editor-image-moves {
  display: inline-flex;
  gap: 3px;
  margin-left: 3px;
}
.summary-editor .summary-editor-image-moves button {
  width: 24px;
  height: 22px;
  padding: 0;
  border: 1px solid rgba(151,105,121,.16);
  border-radius: 6px;
  background: rgba(255,255,255,.56);
  color: #8f707b;
  cursor: pointer;
}
.summary-editor .summary-editor-figure.is-summary-image-dragging {
  opacity: .52;
}
.summary-image-drop-indicator {
  height: 3px;
  margin: 8px 2px;
  border-radius: 999px;
  background: #b78697;
  box-shadow: 0 0 0 3px rgba(183,134,151,.10);
}
.summary-editor .summary-image-gap {
  min-height: 1.55em;
  margin: 0 !important;
  padding: 0;
  border-radius: 5px;
}
.summary-editor .summary-image-gap:hover {
  background: rgba(166,119,135,.05);
}
.visual-editor .editor-image-gap {
  min-height: 1.55em;
  margin: 0 !important;
  padding: 0;
}
html[data-theme="dark"] .summary-editor .summary-editor-image-handle {
  border-color: rgba(222,190,202,.14);
  background: rgba(255,255,255,.025);
  color: #bda6af;
}
html[data-theme="dark"] .summary-editor .summary-editor-image-moves button {
  border-color: rgba(222,190,202,.12);
  background: rgba(255,255,255,.03);
  color: #cdb9c1;
}
@media(max-width:640px) {
  .summary-editor .summary-editor-image-handle {
    justify-content: space-between;
    font-size: 10px;
  }
  .summary-editor .summary-editor-image-moves button {
    width: 28px;
    height: 26px;
  }
}


/* =========================================================
   V112：摘要图片删除交互
   ========================================================= */
.summary-editor .summary-editor-image-delete {
  margin-left: 3px;
  padding: 4px 8px;
  border: 1px solid rgba(175, 102, 121, .16);
  border-radius: 7px;
  background: rgba(255, 250, 252, .62);
  color: #a26979;
  font: 10.5px/1.2 "PingFang SC","Microsoft YaHei",sans-serif;
  cursor: pointer;
}
.summary-editor .summary-editor-image-delete:hover {
  border-color: rgba(175, 102, 121, .32);
  background: rgba(190, 116, 138, .09);
  color: #875564;
}
.summary-editor figure.summary-editor-figure:focus {
  outline: 2px solid rgba(177, 126, 146, .18);
  outline-offset: 5px;
  border-radius: 10px;
}
html[data-theme="dark"] .summary-editor .summary-editor-image-delete {
  border-color: rgba(220, 164, 184, .14);
  background: rgba(255,255,255,.025);
  color: #d0a7b6;
}
html[data-theme="dark"] .summary-editor .summary-editor-image-delete:hover {
  border-color: rgba(220, 164, 184, .28);
  background: rgba(192, 119, 145, .09);
  color: #e0bcc9;
}


/* =========================================================
   V118：后台统一评论 / 微博留言 / 微博点赞互动记录
   ========================================================= */
.admin-interaction-badge {
  display:inline-flex;
  align-items:center;
  min-height:20px;
  padding:2px 7px;
  border-radius:999px;
  background:#f2e8ec;
  color:#8e6c79 !important;
  font-size:10px !important;
  font-weight:600;
  line-height:1;
}
.admin-interaction-badge.is-weibo {
  background:#f5e9e6;
  color:#9d746a !important;
}
.admin-interaction-badge.is-like {
  background:#f7e8ed;
  color:#a56479 !important;
}
.admin-interaction-context {
  margin:0 0 10px;
  padding:9px 12px;
  border-left:3px solid rgba(169,119,137,.22);
  border-radius:0 9px 9px 0;
  background:rgba(248,241,244,.62);
  color:#9a828b;
  font-size:11px;
  line-height:1.65;
}
.admin-like-notice {
  min-height:116px;
}
.admin-like-notice-body {
  display:flex;
  align-items:center;
  gap:13px;
  padding:15px;
  border-radius:13px;
  background:#fbf5f7;
}
.admin-like-notice-body p {
  margin:0;
  color:#76616a;
  font-size:12px;
  line-height:1.75;
}
.admin-like-heart {
  flex:0 0 auto;
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#f1dfe6;
  color:#a9667c;
  font-size:17px;
}
.dashboard-comment-avatar.is-weibo {
  background:#f3e6e2;
  color:#9b7368;
}
.dashboard-comment-avatar.is-like {
  background:#f1dfe6;
  color:#a9667c;
  font-family:Georgia,"Times New Roman",serif;
}


/* =========================================================
   V119：微博点赞 IP / 归属地
   ========================================================= */
.admin-like-notice-copy {
  min-width: 0;
  flex: 1;
}
.admin-like-location {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px 12px;
  margin-top:8px;
  color:#927681;
  font-size:10.5px;
  line-height:1.5;
}
.admin-like-location span {
  font-weight:600;
}
.admin-like-location small {
  color:#ad99a1;
  font-size:10px;
  font-weight:400;
}


/* =========================================================
   V120：评论 / 留言 / 点赞统一显示 IP 与归属地
   ========================================================= */
.admin-comment-private dd .admin-ip-location {
  display:inline-block;
  margin-left:12px;
  padding-left:12px;
  border-left:1px solid rgba(153,121,132,.15);
  color:#9e818c;
  font-size:10.5px;
  font-weight:500;
}
.dashboard-interaction-network {
  margin-top:4px;
  color:#aa919a;
  font-size:9.5px;
  line-height:1.45;
  letter-spacing:.01em;
}


/* =========================================================
   V121：后台登录 / 退出安全与验证码
   ========================================================= */
.admin-logout-form {
  display:inline-flex;
  margin:0;
}
.admin-login-captcha-row {
  display:grid;
  grid-template-columns:minmax(0,1fr) 142px auto;
  gap:8px;
  align-items:center;
}
.admin-login-captcha-row img {
  display:block;
  width:142px;
  height:46px;
  border-radius:11px;
}
.admin-login-captcha-row a {
  color:#987986;
  font-size:11px;
  white-space:nowrap;
  text-decoration:none;
}
.admin-login-captcha-row a:hover {
  color:#765965;
}
.admin-mobile-logout-form {
  margin:0;
}
.admin-mobile-logout-form button {
  display:block;
  width:100%;
  padding:15px 17px;
  border:0;
  border-bottom:0;
  background:transparent;
  color:#a45b67;
  font:inherit;
  font-size:13px;
  text-align:left;
  cursor:pointer;
}
@media(max-width:640px) {
  .admin-login-captcha-row {
    grid-template-columns:1fr auto;
  }
  .admin-login-captcha-row img {
    width:128px;
    height:auto;
  }
  .admin-login-captcha-row a {
    grid-column:2;
    justify-self:end;
  }
}


/* =========================================================
   V130：共享“插入音乐 / 新增音乐”弹框的音乐库样式优化
   ========================================================= */
#music-insert-modal .music-library-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin:0 0 16px;
}
#music-insert-modal .music-library-head strong{
  display:block;
  font-size:18px;
  line-height:1.2;
  color:#594953;
  margin-bottom:6px;
}
#music-insert-modal .music-library-head .help{
  margin:0;
  font-size:13px;
  line-height:1.7;
  color:#938089;
}
#music-insert-modal .music-library-search-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  margin:0 0 14px;
}
#music-insert-modal .music-library-search-row .input{
  height:48px;
  padding:0 16px;
  border-radius:18px;
  font-size:15px;
  background:rgba(255,255,255,.62);
}
#music-insert-modal .music-library-search-row .row-muted{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:0 12px;
  border-radius:999px;
  background:rgba(158,116,132,.08);
  border:1px solid rgba(158,116,132,.12);
  color:#8d7882;
  white-space:nowrap;
}
#music-insert-modal .music-library-list{
  display:grid;
  gap:12px;
  max-height:430px;
  overflow:auto;
  padding-right:4px;
}
#music-insert-modal .music-library-card{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:16px;
  align-items:center;
  padding:16px 18px;
  border:1px solid rgba(158,116,132,.16);
  border-radius:20px;
  background:linear-gradient(180deg,rgba(255,255,255,.72),rgba(255,255,255,.52));
  box-shadow:0 8px 24px rgba(120,82,98,.05);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
#music-insert-modal .music-library-card:hover{
  transform:translateY(-1px);
  border-color:rgba(158,116,132,.24);
  box-shadow:0 12px 28px rgba(120,82,98,.08);
}
#music-insert-modal .music-library-card.is-netease{
  background:linear-gradient(180deg,rgba(255,255,255,.76),rgba(251,241,244,.64));
}
#music-insert-modal .music-library-card.is-link{
  background:linear-gradient(180deg,rgba(255,255,255,.76),rgba(245,244,250,.64));
}
#music-insert-modal .music-library-card-main{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:8px;
}
#music-insert-modal .music-library-card-top{
  min-width:0;
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
#music-insert-modal .music-library-title{
  min-width:0;
  font-size:17px;
  line-height:1.35;
  color:#584953;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
#music-insert-modal .music-library-provider{
  display:inline-flex;
  align-items:center;
  padding:3px 10px;
  border-radius:999px;
  font-size:11px;
  line-height:1.4;
  letter-spacing:.03em;
  white-space:nowrap;
  border:1px solid transparent;
}
#music-insert-modal .music-library-provider.is-local{
  color:#5d7866;
  background:rgba(104,151,120,.12);
  border-color:rgba(104,151,120,.18);
}
#music-insert-modal .music-library-provider.is-netease{
  color:#a15b65;
  background:rgba(198,103,113,.1);
  border-color:rgba(198,103,113,.16);
}
#music-insert-modal .music-library-provider.is-link{
  color:#6c6d97;
  background:rgba(116,123,181,.1);
  border-color:rgba(116,123,181,.16);
}
#music-insert-modal .music-library-meta{
  font-size:13px;
  line-height:1.6;
  color:#96828b;
}
#music-insert-modal .music-library-card-actions{
  display:flex;
  align-items:center;
  gap:8px;
}
#music-insert-modal .music-library-card-actions .btn{
  min-width:88px;
  padding:10px 16px;
  border-radius:14px;
  white-space:nowrap;
}
#music-insert-modal .music-library-card-actions .btn[disabled]{
  opacity:.58;
  cursor:default;
}
#music-insert-modal .music-library-empty{
  padding:30px 18px;
  text-align:center;
  color:#9b8790;
  border:1px dashed rgba(158,116,132,.18);
  border-radius:18px;
  background:rgba(255,255,255,.4);
}
#music-insert-modal .music-library-empty.error{
  color:#b4535a;
}
@media (max-width: 760px){
  #music-insert-modal .music-library-head{
    flex-direction:column;
    align-items:stretch;
  }
  #music-insert-modal .music-library-search-row{
    grid-template-columns:1fr;
    align-items:stretch;
    gap:8px;
  }
  #music-insert-modal .music-library-search-row .row-muted{
    justify-content:flex-start;
  }
  #music-insert-modal .music-library-card{
    grid-template-columns:1fr;
    align-items:flex-start;
    gap:12px;
  }
  #music-insert-modal .music-library-card-actions{
    width:100%;
  }
  #music-insert-modal .music-library-card-actions .btn{
    width:100%;
  }
}


/* =========================================================
   V131：新增音乐反馈 / 未使用音乐置顶
   ========================================================= */
.music-manager-card.is-just-added {
  position:relative;
  background:linear-gradient(90deg,rgba(250,240,244,.78),rgba(255,255,255,.58));
  box-shadow:inset 3px 0 0 rgba(173,119,139,.48);
  animation:music-manager-added-pulse 1.15s ease 2;
}
.music-manager-card.is-just-added::after {
  content:"刚刚加入";
  position:absolute;
  top:12px;
  right:22px;
  padding:3px 8px;
  border-radius:999px;
  background:rgba(173,119,139,.10);
  color:#966d7c;
  font-size:10px;
  pointer-events:none;
}
@keyframes music-manager-added-pulse {
  0%,100% { background-color:transparent; }
  50% { background-color:rgba(246,229,235,.45); }
}
@media(max-width:520px){
  .music-manager-card.is-just-added::after{right:16px;top:10px}
}


/* =========================================================
   V132：音乐管理排序 + 音乐上传进度条下方间距
   ========================================================= */
.music-manager-sort-label {
  flex:0 0 auto;
  color:#9d8790;
  font-size:11px;
  white-space:nowrap;
}
.music-manager-sort {
  flex:0 0 auto;
  height:36px;
  max-width:190px;
  padding:0 30px 0 11px;
  border:1px solid rgba(109,82,92,.14);
  border-radius:10px;
  outline:0;
  background:rgba(255,255,255,.76);
  color:#6f5b64;
  font:inherit;
  font-size:12px;
  cursor:pointer;
}
.music-manager-sort:focus {
  border-color:rgba(158,116,132,.34);
  box-shadow:0 0 0 3px rgba(158,116,132,.07);
}
.music-manager-added-at {
  color:#8f7781;
}

/* 共享“插入音乐 / 新增音乐”弹框：进度条与下面按钮之间留出呼吸空间。 */
.music-modal .music-tab-panel[data-music-panel="upload"] .music-upload-progress {
  margin-bottom:18px;
}

@media(max-width:760px){
  .music-manager-search{
    flex-wrap:wrap;
  }
  .music-manager-search input{
    flex:1 1 calc(100% - 36px);
  }
  .music-manager-sort-label{
    margin-left:28px;
  }
  .music-manager-sort{
    flex:1 1 auto;
    max-width:none;
  }
}


/* =========================================================
   V134：音乐元数据自动回填提示
   ========================================================= */
#music-insert-modal .music-meta-autofill-help {
  margin: -2px 0 12px;
  padding: 9px 12px;
  border-radius: 11px;
  background: rgba(158,116,132,.055);
  color: #927d86;
}


/* =========================================================
   V152：评论 / 微博留言的回复与删除逻辑
   ========================================================= */
.admin-comment-inline-actions {
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:8px;
  margin-top:7px;
}
.admin-comment-inline-actions form {
  margin:0;
}
.admin-inline-delete {
  padding:2px 1px;
  border:0;
  background:transparent;
  color:#b07680;
  font:11px/1.5 "PingFang SC","Microsoft YaHei",sans-serif;
  cursor:pointer;
  opacity:.76;
  text-decoration:none;
  transition:color .18s ease, opacity .18s ease;
}
.admin-inline-delete:hover {
  color:#a4515e;
  opacity:1;
  text-decoration:underline;
  text-underline-offset:3px;
}
.admin-owner-reply-display {
  margin-top:14px;
  padding:13px 14px 10px;
  border-left:3px solid rgba(169,116,136,.23);
  border-radius:0 13px 13px 0;
  background:rgba(168,116,135,.055);
}
.admin-owner-reply-head {
  display:flex;
  align-items:baseline;
  gap:9px;
  margin-bottom:7px;
}
.admin-owner-reply-head strong {
  color:#80636f;
  font-size:12px;
}
.admin-owner-reply-head time {
  color:#ad969f;
  font-size:10px;
}
.admin-owner-reply-content {
  color:#67525a;
  font-size:13px;
  line-height:1.8;
  word-break:break-word;
}
.admin-owner-reply-display .admin-comment-inline-actions {
  margin-top:4px;
}
.admin-comment-reply {
  margin-top:14px;
}
.admin-comment-reply textarea::placeholder {
  color:#b29ca4;
}
.admin-comment-delete {
  display:none !important;
}

@media(max-width:700px) {
  .admin-comment-inline-actions {
    justify-content:flex-start;
  }
  .admin-owner-reply-display {
    padding:12px 12px 9px;
  }
}


/* =========================================================
   V153：评论回复改为“删除后重回” + 紧凑层级
   ========================================================= */
.admin-comment-reply-compact {
  margin: 14px 0 0 34px;
  max-width: 760px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}
.admin-comment-reply-compact textarea {
  min-height: 64px;
  height: 64px;
  max-height: 140px;
  margin: 0;
  padding: 11px 13px;
  resize: vertical;
  border-radius: 14px;
  line-height: 1.65;
}
.admin-comment-reply-compact .admin-comment-save-reply {
  min-width: 72px;
  height: 42px;
  padding: 0 16px;
  margin: 0 0 1px;
  border-radius: 13px;
}
.admin-owner-reply-display {
  margin-left: 34px;
  max-width: 760px;
}
.admin-owner-reply-display .admin-comment-inline-actions {
  justify-content: flex-start;
}

@media(max-width:700px) {
  .admin-comment-reply-compact,
  .admin-owner-reply-display {
    margin-left: 18px;
  }
  .admin-comment-reply-compact {
    grid-template-columns: minmax(0,1fr) auto;
    gap: 8px;
  }
  .admin-comment-reply-compact textarea {
    min-height: 58px;
    height: 58px;
  }
  .admin-comment-reply-compact .admin-comment-save-reply {
    min-width: 60px;
    padding: 0 12px;
  }
}


/* =========================================================
   V154：修正 V153 回复框错位
   原因：compact form 用 grid，但隐藏 label 实际没有隐藏，
   导致 label / textarea / button 被排成两行，button 又被 grid 拉满。
   ========================================================= */
.admin-comment-reply.admin-comment-reply-compact {
  position: relative;
  margin: 14px 0 0 34px;
  padding: 0 0 0 14px;
  max-width: 720px;
  border-top: 0;
  border-left: 2px solid rgba(169,116,136,.13);
  display: flex;
  align-items: flex-end;
  gap: 9px;
}
.admin-comment-reply.admin-comment-reply-compact textarea {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  min-height: 50px;
  height: 50px;
  max-height: 120px;
  margin: 0;
  padding: 10px 12px;
  resize: vertical;
  border-radius: 13px;
  line-height: 1.55;
}
.admin-comment-reply.admin-comment-reply-compact .admin-comment-save-reply {
  flex: 0 0 auto;
  width: auto;
  min-width: 68px;
  height: 42px;
  margin: 0 0 4px;
  padding: 0 14px;
  border-radius: 12px;
  white-space: nowrap;
}

@media(max-width:720px) {
  .admin-comment-reply.admin-comment-reply-compact {
    margin-left: 18px;
    padding-left: 10px;
    max-width: none;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 7px;
  }
  .admin-comment-reply.admin-comment-reply-compact textarea {
    min-height: 48px;
    height: 48px;
  }
  .admin-comment-reply.admin-comment-reply-compact .admin-comment-save-reply {
    width: auto;
    min-width: 58px;
    height: 40px;
    padding: 0 10px;
    margin-bottom: 4px;
  }
}


/* =========================================================
   V155：后台评论线程
   ========================================================= */
.admin-comment-head-actions {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:15px;
}
.admin-comment-head-actions form { margin:0; }
.admin-comment-head-actions .admin-inline-delete {
  font-size:11px;
}

.admin-thread {
  margin-top:16px;
  padding-top:4px;
  border-top:1px dashed rgba(153,113,128,.13);
}
.admin-thread-children.is-root {
  margin:0 0 13px 34px;
}
.admin-thread-reply {
  position:relative;
  margin-top:9px;
  padding:11px 12px 10px 14px;
  border-left:3px solid rgba(169,116,136,.16);
  border-radius:0 14px 14px 0;
  background:rgba(168,116,135,.038);
}
.admin-thread-reply.is-owner {
  background:rgba(168,116,135,.065);
  border-left-color:rgba(169,116,136,.26);
}
.admin-thread-reply-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:6px;
}
.admin-thread-reply-head > div {
  display:flex;
  align-items:baseline;
  flex-wrap:wrap;
  gap:8px;
}
.admin-thread-reply-head strong {
  color:#735763;
  font-size:12px;
}
.admin-thread-reply-head time {
  color:#ac959e;
  font-size:9px;
}
.admin-thread-owner-badge {
  padding:2px 7px;
  border-radius:999px;
  background:rgba(169,116,136,.10);
  color:#976d7d;
  font-size:9px;
}
.admin-thread-reply-content {
  color:#654f58;
  font-size:13px;
  line-height:1.75;
  word-break:break-word;
}
.admin-thread-reply-private {
  margin-top:6px;
  color:#a08a93;
  font-size:9px;
}
.admin-thread-children {
  margin-left:20px;
}
.admin-thread-reply[data-thread-depth="4"] > .admin-thread-children {
  margin-left:0;
}
.admin-thread-compose {
  margin-top:7px;
}
.admin-thread-compose > summary {
  list-style:none;
  width:max-content;
  cursor:pointer;
  color:#9c7a87;
  font-size:10px;
}
.admin-thread-compose > summary::-webkit-details-marker { display:none; }
.admin-thread-compose > summary:hover { color:#7b5966; }

.admin-thread-root-compose {
  margin-left:34px;
}
.admin-thread-reply-form {
  margin-top:7px;
  max-width:650px;
  display:flex;
  align-items:flex-end;
  gap:8px;
}
.admin-thread-reply-form textarea {
  flex:1 1 auto;
  min-width:0;
  min-height:48px;
  height:48px;
  max-height:120px;
  margin:0;
  padding:9px 11px;
  resize:vertical;
  border-radius:12px;
  line-height:1.55;
}
.admin-thread-reply-form .btn {
  flex:0 0 auto;
  min-width:64px;
  height:40px;
  padding:0 13px;
  margin:0 0 3px;
  border-radius:11px;
}
.admin-thread-reply > .admin-thread-children {
  margin-top:3px;
}

@media(max-width:720px) {
  .admin-comment-meta {
    align-items:flex-start;
  }
  .admin-comment-head-actions {
    gap:9px;
    flex-wrap:wrap;
  }
  .admin-thread-children.is-root,
  .admin-thread-root-compose {
    margin-left:18px;
  }
  .admin-thread-children {
    margin-left:9px;
  }
  .admin-thread-reply {
    padding-left:10px;
  }
  .admin-thread-reply-form {
    max-width:none;
  }
}


/* =========================================================
   V156：回复框默认收起，只显示“回复”按钮
   ========================================================= */
details.admin-thread-compose:not([open]) > .admin-thread-reply-form {
  display:none !important;
}

.admin-thread-root-compose {
  margin: 10px 0 12px 34px;
}
.admin-thread-root-compose > summary,
.admin-thread-reply .admin-thread-compose > summary {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:54px;
  height:30px;
  padding:0 12px;
  border:1px solid rgba(157,112,129,.14);
  border-radius:999px;
  background:rgba(168,116,135,.055);
  color:#956f7e;
  cursor:pointer;
  font-size:10px;
  line-height:1;
  transition:background .18s ease,border-color .18s ease,color .18s ease;
}
.admin-thread-root-compose > summary:hover,
.admin-thread-reply .admin-thread-compose > summary:hover {
  background:rgba(168,116,135,.10);
  border-color:rgba(157,112,129,.22);
  color:#795664;
}
.admin-thread-root-compose[open] > summary,
.admin-thread-reply .admin-thread-compose[open] > summary {
  margin-bottom:7px;
}

@media(max-width:720px) {
  .admin-thread-root-compose {
    margin-left:18px;
  }
}


/* =========================================================
   V157：后台回复入口移动到评论/回复时间后面
   ========================================================= */
.admin-thread-head-compose {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0;
  vertical-align: middle;
}

.admin-thread-head-compose > summary {
  min-width: auto !important;
  width: auto;
  height: auto !important;
  padding: 1px 3px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #a17b89 !important;
  font-size: 10px !important;
  line-height: 1.4 !important;
  opacity: .82;
}

.admin-thread-head-compose > summary:hover {
  color: #795764 !important;
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.admin-thread-head-compose[open] > summary {
  margin-bottom: 0 !important;
}

.admin-thread-head-compose > .admin-thread-reply-form {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  left: 0;
  width: min(560px, calc(100vw - 100px));
  max-width: none;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(155,111,127,.15);
  border-radius: 14px;
  background: rgba(255,252,253,.98);
  box-shadow: 0 14px 38px rgba(82,55,66,.12);
}

.admin-thread-root-head-compose > .admin-thread-reply-form {
  left: -6px;
}

.admin-thread-reply-meta-main {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

html[data-theme="dark"] .admin-thread-head-compose > .admin-thread-reply-form {
  background: rgba(48,39,43,.98);
  border-color: rgba(224,195,206,.11);
  box-shadow: 0 16px 40px rgba(0,0,0,.22);
}

@media(max-width:720px) {
  .admin-thread-head-compose > .admin-thread-reply-form {
    position: fixed;
    z-index: 80;
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 18px;
    width: auto;
  }
}
