/* ==========================================================
   中国艺术品交易中心 · 后台管理样式
   风格：中国红 × 深色侧栏 商务管理风
   ========================================================== */

:root {
  --red: #a41e2c;
  --red-dark: #7d1420;
  --red-light: #c0392b;
  --gold: #c9a063;
  --ink: #232324;
  --text: #3d3d3f;
  --text-soft: #6b6b6f;
  --line: #e4e2dd;
  --bg: #f4f3f0;
  --white: #fff;
  --ok: #2e7d32;
  --warn: #b8860b;
  --serif: "Noto Serif SC", "STZhongsong", "SimSun", serif;
  --sans: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { overflow-x: clip; } /* 禁止页面级横向滚动条（clip 不破坏 sticky） */
body {
  font-family: var(--sans); font-size: 14px;
  color: var(--text); background: var(--bg); line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; }
button { font-family: var(--sans); }

/* ---------- 滚动条 · 与整体风格统一 ---------- */
html { scrollbar-width: thin; scrollbar-color: #c9a063 #e9e6e0; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: #e9e6e0; }
::-webkit-scrollbar-thumb { background: #c9a063; border-radius: 8px; border: 2px solid #e9e6e0; }
::-webkit-scrollbar-thumb:hover { background: #a41e2c; }
::-webkit-scrollbar-corner { background: #e9e6e0; }

/* ---------- 整体布局 ---------- */
.admin-wrap { display: flex; min-height: 100vh; }
.admin-side {
  width: 232px; flex: 0 0 auto;
  background: linear-gradient(180deg, #1d1d1f, #26262a);
  color: #c9c7c0; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.a-logo {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 16px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.a-logo svg { flex: 0 0 auto; }
.a-logo b { color: #f0e6ce; font-family: var(--serif); font-size: 16px; letter-spacing: 2px; display: block; }
.a-logo span { font-size: 10px; color: #8d8b85; letter-spacing: 1px; }

.a-nav { flex: 1; overflow-y: auto; padding: 12px 0; }
.a-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 20px; font-size: 14px; color: #b5b3ac;
  transition: background .2s, color .2s; position: relative;
}
.a-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.a-nav a.on { background: var(--red); color: #fff; }
.a-nav a.on::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--gold);
}
.a-nav .ic { width: 20px; text-align: center; font-size: 15px; }

/* ---------- 侧边栏分组导航（一级类目展开/收起） ---------- */
.a-nav-group { position: relative; }
.a-nav-g-head {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 11px 20px; font-size: 14px; color: #b5b3ac;
  background: none; border: 0; cursor: pointer; text-align: left;
  font-family: inherit; transition: background .2s, color .2s;
}
.a-nav-g-head:hover { background: rgba(255,255,255,.06); color: #fff; }
.a-nav-g-head .gn { flex: 1; }
.a-nav-g-head .arrow { font-size: 11px; color: #8d8b85; transition: transform .2s; }
.a-nav-group.open .a-nav-g-head { color: #f0e6ce; }
.a-nav-group.open .a-nav-g-head .arrow { transform: rotate(180deg); }
.a-nav-g-body { display: none; }
.a-nav-group.open .a-nav-g-body { display: block; padding-bottom: 6px; }
.a-nav-g-body a {
  display: flex; align-items: center; gap: 8px; position: relative;
  padding: 9px 20px 9px 50px; font-size: 13px; color: #9c9a93;
  transition: background .2s, color .2s;
}
.a-nav-g-body a::before { content: "└"; color: #5a5852; font-size: 11px; }
.a-nav-g-body a:hover { background: rgba(255,255,255,.05); color: #fff; }
.a-nav-g-body a.on { background: var(--red); color: #fff; }
.a-nav-g-body a.on::before { color: #fff; }
.a-nav-g-body a.on::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--gold);
}

.a-side-foot { border-top: 1px solid rgba(255,255,255,.08); padding: 10px 0; }
.a-side-foot a {
  display: block; padding: 9px 20px; font-size: 13px; color: #9c9a93;
}
.a-side-foot a:hover { color: var(--gold); }

.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.a-topbar {
  background: var(--white); border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 24px; height: 60px; position: sticky; top: 0; z-index: 20;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.a-topbar .at-title { font-family: var(--serif); font-size: 18px; color: var(--red); letter-spacing: 2px; }
.a-topbar .at-user { font-size: 13px; color: var(--text-soft); }

.a-body { padding: 22px 24px; max-width: 1280px; width: 100%; }

/* ---------- 提示条 ---------- */
.a-flash {
  padding: 11px 16px; margin-bottom: 16px; font-size: 13.5px;
  border-radius: 4px; border: 1px solid;
}
.a-flash.ok { background: #eef7ee; border-color: #bcdcbc; color: var(--ok); }
.a-flash.err { background: #fdf0ef; border-color: #e8bcb8; color: var(--red); }

/* ---------- 仪表盘 ---------- */
.a-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.a-card {
  background: var(--white); border: 1px solid var(--line);
  border-top: 3px solid var(--red); padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between; min-width: 0;
  transition: transform .25s, box-shadow .25s;
}
.a-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.a-card .ac-num { font-family: Georgia, serif; font-size: 30px; font-weight: 700; color: var(--red); }
.a-card .ac-label { font-size: 13px; color: var(--text-soft); letter-spacing: 1px; }

.a-todos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.a-todo {
  background: var(--white); border: 1px solid var(--line); padding: 16px 18px;
  display: flex; align-items: center; gap: 14px; min-width: 0;
}
.a-todo .at-t { font-size: 13px; color: var(--text-soft); flex: 1; }
.a-todo b { font-family: Georgia, serif; font-size: 24px; color: var(--red); }
.a-todo a { font-size: 12.5px; color: var(--red); }
.a-todo a:hover { text-decoration: underline; }

.a-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.a-panel { background: var(--white); border: 1px solid var(--line); padding: 16px 18px; min-width: 0; }
.a-panel + .a-panel { margin-top: 0; }
.a-form .a-panel { margin-bottom: 18px; }
.ap-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 12px; }
.ap-head b { font-family: var(--serif); font-size: 15px; color: var(--ink); letter-spacing: 1px; }
.ap-head a { font-size: 12.5px; color: var(--red); }
.ap-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.ap-list li:last-child { border-bottom: none; }
.ap-list li a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.ap-list li a:hover { color: var(--red); }
.ap-list li span { flex: 0 0 auto; font-size: 12px; color: var(--text-soft); }

/* ---------- 工具栏 ---------- */
.a-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.a-h3 { font-family: var(--serif); font-size: 17px; color: var(--red); margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--red-light, #f0d9d0); letter-spacing: 1px; }
.at-info { font-size: 13.5px; color: var(--text-soft); }
.a-filter { display: flex; gap: 8px; align-items: center; }
.a-filter select, .a-filter input {
  border: 1px solid var(--line); background: var(--white);
  padding: 7px 10px; font-size: 13px; font-family: var(--sans); color: var(--text);
  outline: none; border-radius: 3px;
}
.a-filter button {
  border: none; background: var(--red); color: #fff;
  padding: 7px 18px; font-size: 13px; cursor: pointer; border-radius: 3px;
}
.a-filter button:hover { background: var(--red-dark); }

/* ---------- 表格 ---------- */
.a-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); }
.a-table th {
  background: var(--ink); color: #f0e6ce; font-weight: 400; letter-spacing: 2px;
  padding: 10px 12px; font-size: 13px; text-align: left; font-family: var(--serif);
}
.a-table td { border-bottom: 1px solid var(--line); padding: 9px 12px; font-size: 13.5px; color: var(--text); vertical-align: middle; overflow-wrap: break-word; }
.a-table tr:nth-child(even) td { background: #faf9f6; }
.a-table tr:hover td { background: #fdf6ef; }
.a-thumb { width: 52px; height: 52px; object-fit: cover; border: 1px solid var(--line); border-radius: 4px; background: #f6f4ef; }
.a-thumb.round { border-radius: 50%; }
.a-ops { white-space: nowrap; }
.a-ops a { color: var(--red); font-size: 13px; margin-right: 10px; }
.a-ops a:hover { text-decoration: underline; }
.a-ops form { display: inline; }
.a-ops form button {
  border: none; background: none; color: var(--red); font-size: 13px;
  cursor: pointer; padding: 0; font-family: var(--sans);
}
.a-ops form button:hover { text-decoration: underline; }

.a-pages { display: flex; justify-content: center; margin-top: 18px; }
.a-pages .pagination { display: flex; gap: 6px; }
.a-pages .pagination a, .a-pages .pagination span {
  min-width: 32px; height: 32px; line-height: 30px; text-align: center;
  border: 1px solid var(--line); background: var(--white);
  color: var(--text-soft); font-size: 13px; padding: 0 9px; display: inline-block;
}
.a-pages .pagination a:hover { border-color: var(--red); color: var(--red); }
.a-pages .pagination .on, .a-pages .pagination .cur { background: var(--red); color: #fff !important; border-color: var(--red); }
.a-pages .pagination .disabled { color: #c8c1b4; background: #f6f2ea; }

/* ---------- 表单 ---------- */
.a-form { background: var(--white); border: 1px solid var(--line); padding: 22px 24px; max-width: 960px; }
.af-row { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.af-row > label {
  width: 110px; flex: 0 0 auto; text-align: right;
  color: var(--text-soft); font-size: 13.5px; line-height: 38px;
}
.af-row > label i { color: var(--red); font-style: normal; margin-left: 2px; }
.af-row > input[type="text"], .af-row > input[type="password"],
.af-row > select, .af-row > textarea,
.af-inline input, .af-inline select {
  flex: 1; min-width: 0;
  border: 1px solid var(--line); background: var(--white);
  padding: 8px 12px; font-size: 13.5px; font-family: var(--sans);
  color: var(--text); outline: none; border-radius: 3px;
  transition: border-color .2s, box-shadow .2s;
}
.af-row > textarea { resize: vertical; min-height: 90px; }
.af-row > input[type="text"]:focus, .af-row > input[type="password"]:focus,
.af-row > select:focus, .af-row > textarea:focus,
.af-inline input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(164,30,44,.08); }
.af-inline { display: flex; gap: 10px; flex: 1; min-width: 0; }
.af-inline input { flex: 1; min-width: 0; }
.af-img-row { display: flex; gap: 14px; align-items: flex-start; flex: 1; min-width: 0; }
.af-img-row .af-preview {
  width: 120px; height: 84px; object-fit: cover; flex: 0 0 auto;
  border: 1px solid var(--line); border-radius: 4px; background: #f6f4ef;
}
.af-img-row .af-preview.round { width: 84px; height: 84px; border-radius: 50%; }
.af-img-row > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.af-img-row input[type="text"] {
  border: 1px solid var(--line); background: var(--white);
  padding: 8px 12px; font-size: 13px; font-family: var(--sans);
  color: var(--text); outline: none; border-radius: 3px;
}
.af-img-row input[type="file"] { font-size: 12.5px; color: var(--text-soft); }

/* 作品图管理 */
.af-works-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.af-works-wrap textarea {
  width: 100%; box-sizing: border-box; resize: vertical; min-height: 96px;
  border: 1px solid var(--line); background: var(--white);
  padding: 8px 12px; font-size: 12.5px; font-family: Consolas, "Courier New", monospace;
  color: var(--text); outline: none; border-radius: 3px; line-height: 1.7;
}
.af-works-wrap textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(164,30,44,.08); }
.af-works-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.af-works-meta input[type="file"] { font-size: 12.5px; color: var(--text-soft); }
.af-hint { font-size: 12px; color: var(--text-soft); line-height: 1.6; }
.aw-thumbs { display: flex; flex-wrap: wrap; gap: 12px; }
.aw-thumb { position: relative; width: 72px; height: 72px; }
.aw-thumb img { width: 72px; height: 72px; object-fit: cover; border: 1px solid var(--line); border-radius: 4px; background: #f6f4ef; display: block; }
.aw-thumb button {
  position: absolute; top: -7px; right: -7px; width: 19px; height: 19px; line-height: 1;
  border-radius: 50%; border: 1px solid var(--line); background: var(--white);
  color: var(--red); font-size: 13px; cursor: pointer; padding: 0;
}
.aw-thumb button:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* 鉴定案例动态行编辑 */
.af-cases-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.af-case-row { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line); border-radius: 6px; padding: 12px; background: #fdfcfa; }
.af-case-row + .af-case-row { margin-top: 10px; }
.af-case-img { width: 160px; flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; }
.af-case-prev { width: 160px; height: 110px; border: 1px dashed var(--line); border-radius: 4px; background: #f6f4ef; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.af-case-prev img { max-width: 100%; max-height: 100%; object-fit: cover; display: none; }
.af-case-ctrl { display: flex; flex-direction: column; gap: 6px; }
.af-case-ctrl input[type="file"] { font-size: 12px; color: var(--text-soft); }
.af-case-ctrl input[type="text"] {
  width: 100%; border: 1px solid var(--line); border-radius: 3px;
  padding: 6px 8px; font-size: 12.5px; color: var(--text); font-family: var(--sans);
  box-sizing: border-box;
}
.af-case-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.af-case-body input[type="text"], .af-case-body textarea {
  width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 3px;
  padding: 7px 10px; font-size: 13px; color: var(--text); font-family: var(--sans); background: var(--white);
}
.af-case-body input[type="text"]:focus, .af-case-body textarea:focus,
.af-case-ctrl input[type="text"]:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(164,30,44,.08); outline: none; }
.af-case-body textarea { resize: vertical; min-height: 62px; line-height: 1.6; }
.af-case-row .case_del { flex-shrink: 0; width: 30px; height: 30px; line-height: 1; padding: 0; font-size: 15px; border-radius: 50%; }
.af-cases-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
/* 鉴定评估设置：流程步骤序号 */
.step-row { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 6px; padding: 12px; background: #fdfcfa; }
.step-no {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
  background: var(--red); color: #fff; font-size: 14px; line-height: 28px; text-align: center;
}
.step-row .step-del { flex-shrink: 0; width: 30px; height: 30px; line-height: 1; padding: 0; font-size: 15px; border-radius: 50%; }
/* 鉴定评估设置：动作按钮/提示行与左侧 label 对齐 */
.appr-settings .af-actions-row { margin-left: 122px; }
@media (max-width: 900px) {
  .step-row { flex-direction: column; }
  .appr-settings .af-row { flex-wrap: wrap; }
  .appr-settings .af-row > label { width: 100%; flex: 0 0 auto; text-align: left; line-height: 1.5; margin-bottom: 4px; }
  .appr-settings .af-actions-row { margin-left: 0; }
}
@media (max-width: 900px) {
  .af-case-row { flex-direction: column; }
  .af-case-img { width: 100%; }
  .af-case-prev { width: 100%; height: 160px; }
}
.a-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--text); margin-right: 18px; cursor: pointer; }
.a-check input { accent-color: var(--red); }

/* 按钮 */
.a-btn {
  display: inline-block; border: 1px solid var(--line);
  background: var(--white); color: var(--text);
  padding: 8px 22px; font-size: 13.5px; cursor: pointer;
  font-family: var(--sans); border-radius: 3px; transition: all .2s;
  text-align: center;
}
.a-btn:hover { border-color: var(--red); color: var(--red); }
.a-btn.solid { background: var(--red); border-color: var(--red); color: #fff; }
.a-btn.solid:hover { background: var(--red-dark); color: #fff; }
.a-btn.mini { padding: 4px 12px; font-size: 12.5px; }
.a-btn.danger:hover { border-color: var(--red); color: var(--red); background: #fdf0ef; }

/* ---------- 留言/委托/会员卡片 ---------- */
.a-msg {
  background: var(--white); border: 1px solid var(--line);
  margin-bottom: 14px; padding: 14px 18px;
  border-left: 3px solid var(--gold);
}
.a-msg.unread { border-left-color: var(--red); background: #fdfbf7; }
.am-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.am-head b { font-family: var(--serif); font-size: 15px; color: var(--ink); }
.am-sub { font-size: 13px; color: var(--red); }
.am-date { font-size: 12px; color: var(--text-soft); margin-left: auto; }
.am-status { font-size: 12px; color: var(--text-soft); border: 1px solid var(--line); padding: 0 8px; border-radius: 2px; }
.am-status.s0 { color: var(--red); border-color: var(--red); }
.am-status.s1 { color: var(--warn); border-color: var(--warn); }
.am-status.s2 { color: var(--ok); border-color: var(--ok); }
.am-body { font-size: 13.5px; color: var(--text); line-height: 1.8; }
.am-body p { margin: 2px 0; }
.am-reply {
  margin-top: 10px; padding: 10px 14px; background: #f6f4ef;
  border-left: 3px solid var(--gold); font-size: 13px; color: var(--text);
}
.am-ops { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.a-inline { display: inline-flex; gap: 8px; align-items: center; }
.a-inline select, .a-inline .a-inp {
  border: 1px solid var(--line); background: var(--white);
  padding: 6px 10px; font-size: 12.5px; font-family: var(--sans);
  color: var(--text); outline: none; border-radius: 3px;
}
.a-inline select:focus, .a-inline .a-inp:focus { border-color: var(--red); }

.a-empty { text-align: center; padding: 44px 0; color: var(--text-soft); background: var(--white); border: 1px dashed var(--line); }

/* ---------- 登录页 ---------- */
body.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(164,30,44,.14) 0, transparent 46%),
    radial-gradient(circle at 85% 80%, rgba(201,160,99,.16) 0, transparent 44%),
    linear-gradient(160deg, #f7f4ee, #efe8da);
  padding: 20px;
}
.login-box {
  width: 420px; max-width: 100%;
  background: var(--white); border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  box-shadow: 0 18px 50px rgba(94,66,28,.14);
  padding: 38px 40px 30px;
}
.login-logo { text-align: center; margin-bottom: 26px; }
.login-logo h1 { font-family: var(--serif); font-size: 22px; color: var(--red); letter-spacing: 3px; margin-top: 12px; }
.login-logo p { font-size: 12px; color: var(--text-soft); letter-spacing: 2px; margin-top: 4px; }
.login-box .f-row { margin-bottom: 16px; }
.login-box .f-row label { display: block; font-size: 13px; color: var(--text-soft); margin-bottom: 6px; }
.login-box .f-row input {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--line); background: var(--white);
  font-size: 14px; font-family: var(--sans); color: var(--text);
  outline: none; border-radius: 3px; transition: border-color .2s, box-shadow .2s;
}
.login-box .f-row input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(164,30,44,.08); }
.login-btn {
  width: 100%; margin-top: 8px;
  background: var(--red); border: none; color: #fff;
  font-family: var(--serif); font-size: 16px; letter-spacing: 8px;
  padding: 11px 0; cursor: pointer; border-radius: 3px; transition: background .25s;
}
.login-btn:hover { background: var(--red-dark); }
.login-tip { margin-top: 18px; font-size: 12px; color: var(--text-soft); text-align: center; line-height: 1.8; }
.login-back { margin-top: 8px; text-align: center; font-size: 13px; }
.login-back a { color: var(--red); }
.login-back a:hover { text-decoration: underline; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .admin-side { width: 64px; }
  .a-logo b, .a-logo span, .a-nav a span:not(.ic), .a-nav a { font-size: 0; }
  .a-nav a { justify-content: center; padding: 13px 0; }
  .a-nav a .ic { font-size: 18px; }
  .a-nav-g-head { justify-content: center; padding: 13px 0; }
  .a-nav-g-head .gn, .a-nav-g-head .arrow { display: none; }
  .a-nav-g-head .ic { font-size: 18px; }
  .a-nav-group.open .a-nav-g-body {
    position: absolute; left: 64px; top: 0; z-index: 50;
    min-width: 168px; padding: 8px 0; border-radius: 0 6px 6px 0;
    background: #2a2a2f; box-shadow: 0 8px 24px rgba(0,0,0,.35);
  }
  .a-nav-g-body a { padding: 10px 18px 10px 24px; white-space: nowrap; }
  .a-nav-g-body a::before { content: ""; }
  .a-side-foot a { text-align: center; padding: 9px 0; font-size: 0; }
  .a-side-foot a::after { font-size: 14px; }
  .a-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a-grid2, .a-todos { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 内联表单与排序/开关控件 ---------- */
.a-inline-form { display: inline-block; margin: 0; }
.a-toggle {
  min-width: 34px; padding: 3px 8px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line); background: #f4f2ed; color: var(--text-soft); font-size: 12px;
}
.a-toggle.on { background: var(--red); border-color: var(--red); color: #fff; }
.a-toggle:hover { opacity: .85; }
.a-move {
  width: 26px; height: 26px; margin: 0 2px; border-radius: 4px; cursor: pointer;
  border: 1px solid var(--line); background: var(--white); color: var(--text-soft); font-size: 13px; line-height: 1;
}
.a-move:hover { border-color: var(--red); color: var(--red); }

/* ---------- 章节/内容编辑 ---------- */
.a-editor { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.a-editor textarea { width: 100%; border: none; border-top: 1px solid var(--line); padding: 12px 14px; min-height: 260px; font-family: var(--mono, Consolas, monospace); font-size: 13px; line-height: 1.8; resize: vertical; }
.a-editor .ae-hint { padding: 8px 14px; background: var(--bg, #faf9f6); color: var(--text-soft); font-size: 12px; border-bottom: 1px solid var(--line); }

/* ---------- 角色徽标 ---------- */
.a-tag { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; margin-left: 6px; vertical-align: 1px; }
.a-tag.super { background: #fdf0ef; color: var(--red); border: 1px solid #e8bcb8; }
.a-tag.admin { background: #f4f2ed; color: var(--text-soft); border: 1px solid var(--line); }
.a-tag.self { background: #eef7ee; color: var(--ok, #3a7d3a); border: 1px solid #bcdcbc; }
.a-role { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 11px; margin-left: 8px; }
.a-role.super { background: #fdf0ef; color: var(--red); border: 1px solid #e8bcb8; }
.a-role.admin { background: #f4f2ed; color: var(--text-soft); border: 1px solid var(--line); }

/* ---------- 委托多图 ---------- */
.am-imgs { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 2px; }
.am-imgs a { width: 84px; height: 84px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; display: block; background: #fff; }
.am-imgs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.am-imgs a:hover { border-color: var(--red); box-shadow: 0 2px 8px rgba(158, 43, 37, .18); }
