/* ==========================================================================
   浮光手记 · 后台样式
   复用 style.css 的设计令牌，只加后台特有的部分
   ========================================================================== */

.adm { padding: clamp(32px, 5vw, 64px) 0 110px; min-height: 58vh; }

.adm__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 26px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  padding: clamp(22px, 3vw, 42px);
}

.panel + .panel { margin-top: 22px; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 22px; }
.field > .label { display: block; margin-bottom: 11px; }

.inp, .ta {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  transition: border-color .3s var(--ease);
}
.inp::placeholder, .ta::placeholder { color: var(--faint); }
.inp:focus, .ta:focus { outline: none; border-color: var(--accent); }
.ta { resize: vertical; min-height: 94px; }

.row2, .row3 { display: grid; gap: 20px; }
.row2 { grid-template-columns: 1fr 1fr; }
.row3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) {
  .row2, .row3 { grid-template-columns: 1fr; }
}

.chk {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
  margin: 4px 0 6px;
}
.chk input { accent-color: var(--accent); width: 15px; height: 15px; }

.note { font-size: 12px; color: var(--muted); line-height: 1.7; margin: 8px 0 0; }
.err  { font-size: 13px; color: #A32D2D; margin: 10px 0 0; }
.ok   { font-size: 13px; color: #3B6D11; margin: 10px 0 0; }
:root[data-theme='dark'] .err { color: #F09595; }
:root[data-theme='dark'] .ok  { color: #97C459; }

.uid {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--ink);
  background: var(--bg-sunk);
  border: 1px dashed var(--line);
  border-radius: var(--r);
  padding: 13px 16px;
  margin: 16px 0 4px;
  word-break: break-all;
  user-select: all;
}

/* ---------- 按钮补充 ---------- */
.btn--ghost {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 12px 20px;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--ink-2);
  transition: all .35s var(--ease);
}
.btn--ghost:hover { border-color: var(--muted); color: var(--ink); }
.btn--ghost[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- 文章列表 ---------- */
.plist { display: flex; flex-direction: column; }
.plist__empty { padding: 34px 0; font-size: 13px; color: var(--muted); }

.plist__i {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px 20px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}
.plist__i:first-child { border-top: 1px solid var(--line-soft); }
.plist__info { min-width: 0; }
.plist__t {
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 6px;
}
.plist__m { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

.badge {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  line-height: 1;
}
.badge--live { color: var(--accent); border-color: var(--accent); }
.badge--local { color: var(--accent-2); border-color: var(--accent-2); }

.acts { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.acts button:not(.btn):not(.btn--ghost), .acts a {
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 7px 12px;
  border-radius: var(--r);
  transition: all .3s var(--ease);
  white-space: nowrap;
}
.acts button:not(.btn):not(.btn--ghost):hover, .acts a:hover { color: var(--ink); border-color: var(--muted); }
.acts button.danger:hover { color: #A32D2D; border-color: #A32D2D; }

/* ---------- 富文本编辑器 ---------- */
.rt { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.rt:focus-within { border-color: var(--accent); }

.rt__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-sunk);
}
.rt__btn {
  font-size: 11px;
  letter-spacing: .08em;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: var(--r);
  color: var(--muted);
  transition: all .25s var(--ease);
}
.rt__btn:hover { border-color: var(--line); color: var(--ink); background: var(--surface); }
.rt__hint { font-size: 11px; color: var(--faint); margin-left: auto; padding-right: 6px; }

.rt__area {
  min-height: 430px;
  padding: 28px clamp(20px, 3vw, 34px);
  outline: none;
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink-2);
  overflow-y: auto;
  max-height: 720px;
}
.rt__area:empty::before { content: attr(data-ph); color: var(--faint); }
.rt__area p { margin: 0 0 1.5em; }
.rt__area h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
  margin: 1.7em 0 .7em;
}
.rt__area blockquote {
  margin: 1.6em 0;
  padding: 2px 0 2px 22px;
  border-left: 1px solid var(--accent);
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.55;
  color: var(--ink);
}
.rt__area figure { margin: 1.7em 0; }
.rt__area img { width: 100%; border-radius: var(--r); display: block; }
.rt__area a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 封面预览 ---------- */
.coverPrev {
  margin-top: 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  overflow: hidden;
  max-width: 420px;
}
.coverPrev img { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- 页脚精简 ---------- */
.adm-ftr {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}
