/* 沪学门户 · 资料库管理后台样式（书卷风，与 DESIGN.md 一致） */
:root {
  --adm-line: #e6dfd2;
  --adm-head: #f3ede1;
}

.admin-body { background: var(--paper); }

/* header 右侧 */
.header-admin-right { display: flex; align-items: center; gap: 12px; }
.admin-email { font-size: 13px; color: var(--ink-soft); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 登录拦截 */
.admin-wrap { max-width: 1160px; margin: 0 auto; padding: 28px 3% 64px; }
.admin-gate { min-height: 62vh; display: flex; align-items: center; justify-content: center; }
.admin-gate-card {
  background: var(--paper-card); border: 1px solid var(--adm-line);
  border-radius: 6px; padding: 48px 56px; text-align: center;
  box-shadow: 0 10px 30px rgba(43, 42, 38, .06); max-width: 460px;
}
.admin-gate-seal { width: 60px; height: 60px; font-size: 30px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; border-radius: 6px; }
.admin-gate-card h1 { font-family: "Noto Serif SC", serif; font-size: 24px; color: var(--ink); margin: 0 0 10px; }
.admin-gate-card p { color: var(--ink-soft); font-size: 14px; line-height: 1.8; margin: 0 0 22px; }

/* 统计卡 */
.admin-stats {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 20px;
}
.stat-card {
  background: var(--paper-card); border: 1px solid var(--adm-line); border-radius: 6px;
  padding: 18px 16px; text-align: center;
}
.stat-num { font-family: "Noto Serif SC", serif; font-size: 30px; color: var(--seal); line-height: 1.1; }
.stat-num.bamboo { color: var(--bamboo); }
.stat-num.ink-soft { color: var(--ink-soft); }
.stat-label { margin-top: 6px; font-size: 13px; color: var(--ink-soft); letter-spacing: .05em; }

/* 卡片 */
.admin-card {
  background: var(--paper-card); border: 1px solid var(--adm-line); border-radius: 6px;
  padding: 22px 24px; margin-bottom: 20px;
}
.admin-h2 { font-family: "Noto Serif SC", serif; font-size: 18px; color: var(--ink); margin: 0 0 12px; }
.admin-h2::before { content: "｜"; color: var(--seal); }
.admin-hint { font-size: 13px; color: var(--ink-soft); line-height: 1.8; margin: 0 0 16px; }

/* 上传 */
.upload-form { display: flex; flex-direction: column; gap: 14px; }
.dropzone {
  display: block; border: 1.5px dashed #cdbf9f; border-radius: 6px;
  background: #fbf7ef; padding: 30px; text-align: center; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--seal); background: var(--seal-soft); }
.dz-title { font-size: 15px; color: var(--ink); }
.dz-sub { margin-top: 6px; font-size: 13px; color: var(--ink-soft); }
.upload-row { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.upload-row .adm-field { flex: 1; min-width: 200px; }
.adm-field-switch { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); }
.adm-field-switch input { width: auto; }
.progress { height: 6px; background: #ece5d8; border-radius: 4px; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: var(--seal); transition: width .2s; }

/* 表单字段 */
.adm-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-soft); }
.adm-field.block { margin-bottom: 14px; }
.adm-input {
  border: 1px solid var(--adm-line); border-radius: 4px; padding: 8px 10px; font-size: 14px;
  background: #fffdf9; color: var(--ink); font-family: inherit; width: 100%;
}
.adm-input:focus { outline: none; border-color: var(--seal); }

/* 工具条 + 表格 */
.list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.list-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.list-tools .adm-input { width: auto; }
#listSearch { min-width: 240px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--adm-line); border-radius: 6px; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 920px; }
.adm-table thead th {
  background: var(--adm-head); color: var(--ink); font-weight: 600; text-align: left;
  padding: 10px 12px; white-space: nowrap; border-bottom: 1px solid var(--adm-line);
}
.adm-table tbody td { padding: 10px 12px; border-bottom: 1px solid #efe9dd; vertical-align: top; color: var(--ink); }
.adm-table tbody tr:last-child td { border-bottom: none; }
.adm-table tbody tr:hover { background: #fbf7ef; }
.cell-title { min-width: 220px; max-width: 320px; }
.cell-meta { margin-top: 4px; font-size: 12px; color: var(--ink-soft); }
.cell-edited { margin-left: 8px; color: var(--seal); border: 1px solid var(--seal); border-radius: 3px; padding: 0 5px; font-size: 11px; }
.cell-grades { white-space: nowrap; }
.cell-num { text-align: right; font-family: "Noto Serif SC", serif; }
.col-ops { white-space: nowrap; text-align: right; }
.mini-tag { display: inline-block; background: #eceae2; color: var(--ink-soft); border-radius: 3px; padding: 1px 6px; font-size: 12px; margin: 1px 2px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.dot-bamboo { background: var(--bamboo); }
.dot-gray { background: #cfc7b6; }
.badge { border-radius: 3px; padding: 2px 8px; font-size: 12px; }
.badge-on { background: #e7ece2; color: var(--bamboo); }
.badge-off { background: #eceae2; color: var(--ink-soft); }
.btn-link { background: none; border: 0; color: var(--seal); cursor: pointer; font-size: 13px; padding: 2px 6px; font-family: inherit; }
.btn-link:hover { text-decoration: underline; }
.op-danger { color: #a23b2e; }

/* 编辑抽屉 */
.admin-edit { max-width: 640px; width: 92%; border-radius: 6px; padding: 0; overflow: hidden; }
.edit-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid var(--adm-line); background: var(--adm-head); }
.edit-head h3 { margin: 0; font-family: "Noto Serif SC", serif; font-size: 18px; color: var(--ink); }
.edit-close { background: none; border: 0; font-size: 26px; line-height: 1; color: var(--ink-soft); cursor: pointer; }
.edit-body { padding: 20px 22px; max-height: 76vh; overflow-y: auto; }
.edit-file { font-size: 12px; color: var(--ink-soft); background: #f3ede1; border-radius: 4px; padding: 8px 10px; margin-bottom: 16px; word-break: break-all; }
.edit-file-manual { color: var(--ink); background: #f4efe3; border: 1px dashed #cdbf9f; }
.cell-manual { color: #8a6d2f; border-color: #d8c28f; background: #faf3e0; }
.edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.chk-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.chk { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--ink); background: #f3ede1; border-radius: 4px; padding: 5px 10px; cursor: pointer; }
.chk input { width: auto; margin: 0; }
.disk-box { border: 1px dashed #cdbf9f; border-radius: 6px; padding: 14px 16px 4px; margin: 6px 0 16px; background: #fbf7ef; }
.disk-box h4 { margin: 0 0 12px; font-size: 14px; color: var(--ink); }
.online-chk { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); margin-bottom: 18px; }
.online-chk input { width: auto; }
.edit-actions { display: flex; justify-content: flex-end; gap: 12px; padding-top: 6px; border-top: 1px solid var(--adm-line); }

/* 响应式 */
@media (max-width: 900px) {
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .admin-gate-card { padding: 36px 26px; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .edit-grid { grid-template-columns: 1fr; }
  #listSearch { min-width: 0; width: 100%; }
}

/* ---------- 后台页签 ---------- */
.admin-tabs {
  display: flex; gap: 10px; margin-bottom: 20px; border-bottom: 1px solid var(--adm-line);
  padding-bottom: 0;
}
.admin-tab {
  border: 1px solid var(--adm-line); border-bottom: none; background: transparent;
  color: var(--ink-soft); font-size: 15px; padding: 10px 22px; cursor: pointer;
  border-radius: 6px 6px 0 0; font-family: "Noto Sans SC", sans-serif;
  transition: color .2s, background .2s;
}
.admin-tab:hover { color: var(--ink); }
.admin-tab.active {
  background: var(--paper-card); color: var(--seal); font-weight: 500;
  box-shadow: inset 0 -2px 0 var(--seal); border-color: var(--adm-line);
}

/* ---------- 资讯表单 ---------- */
.admin-edit-news { width: min(720px, 96vw); max-height: 92vh; overflow: auto; }
.news-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.news-form-grid .full { grid-column: 1 / -1; }
.adm-field-row { display: flex; flex-direction: column; gap: 5px; }
.adm-field-row > span { font-size: 13px; color: var(--ink-soft); }
.adm-input, .adm-textarea, .adm-select {
  width: 100%; box-sizing: border-box; padding: 9px 12px; border: 1px solid var(--adm-line);
  border-radius: 6px; background: #fff; font-size: 14px; color: var(--ink);
  font-family: "Noto Sans SC", sans-serif;
}
.adm-textarea { min-height: 220px; line-height: 1.9; resize: vertical; }
.adm-hint-sm { font-size: 12px; color: var(--ink-soft); margin-top: 4px; line-height: 1.6; }
.cover-row { display: flex; gap: 14px; align-items: flex-end; }
.cover-swatches { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.cover-swatch {
  width: 34px; height: 34px; border-radius: 6px; border: 2px solid transparent; cursor: pointer;
}
.cover-swatch.sel { border-color: var(--seal); box-shadow: 0 0 0 2px rgba(179,100,58,.18); }
.toggle-row { display: flex; gap: 20px; align-items: center; padding-top: 6px; }
.toggle-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); }
.toggle-check input { width: 17px; height: 17px; accent-color: var(--seal); }

/* 资讯表格徽标 */
.news-bade { font-size: 12px; padding: 2px 8px; border-radius: 4px; letter-spacing: .03em; }
.chip-channel { background: #E8E0D0; color: #6F5B3E; }
.chip-top { background: #F2DED3; color: var(--seal); }
.chip-on { background: #E3EAD9; color: #4E6B46; }
.chip-off { background: #ECE7DE; color: #8A8374; }

/* ============ 教师库 / 学校库 管理 ============ */
.vt-edit { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.vt-edit .span2 { grid-column: 1 / -1; }
.adm-field textarea { width: 100%; min-height: 84px; resize: vertical; padding: 8px 10px;
  border: 1px solid var(--adm-line); border-radius: 4px; background: var(--paper); font: inherit; font-size: 14px; color: var(--ink); }
.adm-field .hint { font-size: 12px; color: var(--ink-soft); margin-top: 4px; display: block; }
.adm-switch { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); cursor: pointer; }
.adm-switch input { width: 16px; height: 16px; accent-color: var(--seal); }
.vt-ph { width: 40px; height: 40px; border-radius: 6px; background: var(--seal-light); color: var(--seal);
  display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-weight: 600; }
.vt-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.vt-tag { font-size: 12px; padding: 2px 8px; border-radius: 4px; background: var(--bamboo-light); color: var(--bamboo); }
.vt-tag.seal { background: var(--seal-light); color: var(--seal); }
.vt-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.vt-actions .btn { font-size: 12px; padding: 3px 9px; }
.vt-summary { color: var(--ink-soft); font-size: 12px; }
.vt-prev { border: 1px dashed var(--adm-line); border-radius: 6px; padding: 12px; }
.vt-prev h4 { margin: 4px 0 10px; font-family: var(--font-serif); font-size: 15px; color: var(--ink); }
.vt-stat-line { font-size: 13px; color: var(--ink); margin: 2px 0; }
.vt-stat-line b { color: var(--seal); font-family: var(--font-serif); margin-right: 6px; }
.tooltip-cell { position: relative; }
.tooltip-cell:hover::after { content: attr(data-tip); position: absolute; z-index: 20; left: 0; top: 100%;
  background: var(--ink); color: #fff; font-size: 11px; padding: 3px 7px; border-radius: 4px; white-space: nowrap; }

/* ---- 教学视频管理（教师表单内） ---- */
.btn-sm { padding: 5px 12px; font-size: 13px; }
.news-view-link { color: #39424f; text-decoration: none; border-bottom: 1px dashed #b3a88f; transition: color .2s, border-color .2s; }
.news-view-link:hover { color: var(--seal, #B3643A); border-bottom-color: var(--seal, #B3643A); }
.docx-import-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 8px; }
.docx-hint { font-size: 12px; color: var(--muted, #8a8375); line-height: 1.5; }
.vt-videos-box { grid-column: 1 / -1; border: 1px dashed var(--adm-line); border-radius: 8px; padding: 12px 14px; background: var(--card); }
.vt-videos-title { font-weight: 600; font-size: 14px; color: var(--ink); display: block; margin-bottom: 4px; }
.vt-videos-upload { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.vt-videos-upload input[type="file"] { font-size: 13px; }
.vt-video-urlrow { display: flex; gap: 8px; flex: 1; min-width: 260px; }
.vt-video-urlrow .adm-input { flex: 1; }
.vt-video-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.vt-video-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--adm-line); border-radius: 8px; background: #fff; }
.vt-video-ph { width: 44px; height: 30px; border-radius: 5px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; flex: none; }
.vt-video-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.vt-video-name { font-weight: 600; font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vt-video-meta { font-size: 12px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vt-video-act { flex: none; }

/* ---- 写文章预览（书卷风） ---- */
.np-wrap { position: fixed; inset: 0; z-index: 300; background: rgba(43, 42, 38, 0.5); display: none;
  align-items: center; justify-content: center; padding: 24px; }
.np-wrap.open { display: flex; }
.news-preview { background: #FFFDF8; width: min(780px, 100%); max-height: 90vh; overflow: auto;
  border-radius: 6px; box-shadow: 0 18px 50px rgba(43, 42, 38, 0.25); display: flex; flex-direction: column; }
.preview-head { display: flex; justify-content: flex-end; padding: 10px 14px; border-bottom: 1px solid #EDE7DA; }
.preview-close { background: none; border: none; font-size: 22px; line-height: 1; color: var(--ink-soft, #8a8374); cursor: pointer; }
.preview-close:hover { color: var(--seal, #B3643A); }
.preview-body { padding: 28px 34px 40px; }
.art-cover { margin-bottom: 14px; }
.art-cover .chip { display: inline-block; padding: 3px 10px; border-radius: 4px; color: #fff; font-size: 12px; letter-spacing: 0.5px; }
.art-title { font-family: var(--font-serif, "Noto Serif SC", serif); font-size: 26px; color: #2B2A26; margin: 0 0 8px; line-height: 1.35; }
.art-meta { display: flex; gap: 10px; align-items: center; font-size: 12px; color: #8a8374; margin-bottom: 18px; }
.art-meta .chip-seal { background: #F2E5D8; color: #B3643A; padding: 2px 8px; border-radius: 3px; }
.art-body { border-top: 1px solid #EDE7DA; padding-top: 16px; }
.art-h { font-family: var(--font-serif, "Noto Serif SC", serif); font-size: 19px; color: #2B2A26; margin: 22px 0 10px;
  border-left: 3px solid #B3643A; padding-left: 12px; }
.art-p { color: #45413a; line-height: 2; font-size: 15px; text-align: justify; margin: 0 0 14px; }
.art-p.art-center { text-align: center; }
.art-fig { margin: 18px 0; text-align: center; }
.art-fig.art-center .art-img { margin-left: auto; margin-right: auto; }
/* 文章编辑弹层：草稿自动保存提示 */
.draft-hint { font-size: 12px; color: #a3978a; margin-left: 10px; align-self: center; }
.art-img { max-width: 100%; height: auto; border-radius: 4px; border: 1px solid #E7E0D2; box-shadow: 0 4px 16px rgba(43, 42, 38, 0.08); background: #fff; }
.art-table-wrap { margin: 18px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid #E7E0D2; border-radius: 4px; }
.art-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.7; background: #FFFDF8; }
.art-table th, .art-table td { border: 1px solid #E7E0D2; padding: 8px 12px; text-align: left; vertical-align: top; }
.art-table thead th { background: #F3EDE1; color: #2B2A26; font-family: var(--font-serif, "Noto Serif SC", serif); font-weight: 600; white-space: nowrap; }
.art-table tbody tr:nth-child(even) { background: #F8F3EA; }
.art-table td { color: #45413A; }

/* ============ RSS 采集 ============ */
.admin-tabpane > .admin-tabs-line { margin-top: -8px; }
.adm-field-wide { flex: 2; min-width: 260px; }
.rss-status { padding: 10px 12px; border-radius: 6px; font-size: 13px; margin: 14px 0 4px; line-height: 1.6; }
.rss-status.rss-ok { background: #F0F4EC; color: #3E5C3A; border: 1px solid #D5E0CC; }
.rss-status.rss-err { background: #FBF0EC; color: #9A4A32; border: 1px solid #EBD6CC; }
.rss-actions { margin: 12px 0; }
.rss-presets { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.rss-presets-label { font-size: 13px; color: var(--ink-soft); }
.rss-preset {
  padding: 5px 14px; font-size: 13px; border-radius: 20px; cursor: pointer;
  color: var(--seal); background: var(--seal-soft, #F7EBE3);
  border: 1px solid rgba(179,100,58,0.35);
  transition: background 0.2s ease, color 0.2s ease;
}
.rss-preset:hover { background: var(--seal); color: #fff; }
.rss-list { display: flex; flex-direction: column; gap: 8px; max-height: 60vh; overflow: auto; padding-right: 4px; margin-top: 8px; }
.rss-item { display: flex; gap: 10px; align-items: flex-start; background: #FFFDF8; border: 1px solid var(--adm-line); border-radius: 6px; padding: 10px 12px; }
.rss-item:hover { border-color: #d9cdba; }
.rss-ck input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--seal); cursor: pointer; }
.rss-item-main { flex: 1; min-width: 0; }
.rss-item-title { font-size: 14px; font-weight: 500; color: var(--ink); line-height: 1.5; }
.rss-item-src { color: var(--seal); font-weight: 400; font-size: 12.5px; }
.rss-item-sub { font-size: 12.5px; color: var(--ink-soft); margin: 2px 0 4px; word-break: break-all; }
.rss-item-sub a { color: var(--bamboo); text-decoration: none; }
.rss-item-desc { font-size: 13px; color: #6A645A; line-height: 1.6; }
.btn-sm { padding: 6px 12px; font-size: 13px; }

/* ---------- 每日资讯归档 ---------- */
.btn-seal { background: var(--seal); color: #fff; border: 1px solid var(--seal); }
.btn-seal:hover { background: #7d2f12; }
.nl-desc { font-size: 13.5px; line-height: 1.9; color: var(--ink-soft); margin: 4px 0 16px; }
.nl-desc b { color: var(--ink); font-weight: 600; }
.nl-setup .adm-label { display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 6px; }
.nl-subs { margin-bottom: 14px; }
.nl-sub-list { padding: 0; background: #FFFDF8; border: 1px solid #D6CBB6; border-radius: 6px; overflow: auto; max-height: 320px; }
.nl-subs-empty { padding: 16px; text-align: center; color: var(--ink-soft); font-size: 13px; }
.nl-subs-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.nl-subs-table thead th {
  position: sticky; top: 0; background: #EFE7D7; color: var(--ink); font-weight: 600;
  text-align: left; padding: 9px 12px; border-bottom: 1px solid #D6CBB6; white-space: nowrap;
}
.nl-subs-table tbody td { padding: 8px 12px; border-bottom: 1px solid #ECE3D2; color: var(--ink); line-height: 1.5; }
.nl-subs-table tbody tr:nth-child(even) td { background: #FBF8F0; }
.nl-subs-table tbody tr:hover td { background: #F4EBDD; }
.nl-subs-table tbody tr:last-child td { border-bottom: 0; }
.nl-subs-table .nl-t-no { width: 72px; text-align: center; color: var(--seal); font-variant-numeric: tabular-nums; }
.nl-subs-table .nl-t-name { font-weight: 500; white-space: nowrap; }
.nl-subs-table thead .nl-t-no { text-align: center; }
.nl-src { width: 100%; min-height: 96px; resize: vertical; font-family: "Noto Sans SC", sans-serif; line-height: 1.7; font-size: 13px; }
.nl-ops { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.nl-ops .btn { min-width: 132px; }
.nl-date-lab { font-size: 13px; color: var(--ink-soft); }
.nl-date { width: 156px; }
.nl-log { margin-top: 12px; padding: 10px 12px; background: #F6F1E6; border-left: 3px solid var(--seal); border-radius: 4px; font-size: 13px; line-height: 1.8; color: var(--ink); white-space: pre-wrap; word-break: break-all; }
.nl-archive { display: flex; flex-direction: column; }
.nl-empty { padding: 26px; text-align: center; color: var(--ink-soft); font-size: 13.5px; background: #FBF8F0; border-radius: 6px; }
.nl-day { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 4px; border-bottom: 1px dashed rgba(43,42,38,.12); flex-wrap: wrap; }
.nl-day:last-child { border-bottom: 0; }
.nl-day-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.nl-date-ico { width: 34px; height: 38px; background: linear-gradient(180deg, #FFF6E8 0%, #F1E2C6 100%); border: 1px solid #E2CFA8; border-radius: 4px; position: relative; flex: 0 0 auto; }
.nl-date-ico::before { content: ""; position: absolute; top: 6px; left: 0; right: 0; height: 2px; background: #E2CFA8; box-shadow: 0 7px 0 #E2CFA8, 0 14px 0 #E2CFA8; }
.nl-day-t { font-family: "Noto Serif SC", serif; font-size: 15px; color: var(--ink); font-weight: 600; line-height: 1.5; }
.nl-day-sub { display: block; font-family: "Noto Sans SC", sans-serif; font-size: 12px; color: var(--ink-soft); font-weight: 400; margin-top: 2px; }
.nl-err { color: #b03a2e; margin-left: 2px; }
.nl-day-ops { display: flex; gap: 8px; flex-wrap: wrap; }
.nl-dl { text-decoration: none; }
.nl-sz { font-weight: 400; opacity: .85; margin-left: 3px; }

/* ---------- 管理员名单 ---------- */
.mg-head { margin-bottom: 10px; }
.mg-hint { font-size: 12.5px; color: var(--ink-soft); margin-top: 4px; line-height: 1.6; }
.mg-add { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.mg-add .adm-input { flex: 0 1 320px; }
.mg-list { border: 1px solid rgba(60,50,40,.12); border-radius: 6px; background: #FDFBF5; overflow: hidden; }
.mg-row { display: grid; grid-template-columns: 1fr 120px 130px; gap: 10px; align-items: center; padding: 10px 14px; border-top: 1px solid rgba(60,50,40,.08); font-size: 13.5px; }
.mg-row.mg-head-row { border-top: 0; background: #F5EFE2; color: var(--ink-soft); font-size: 12px; font-weight: 600; }
.mg-row.mg-head-row + .mg-row { border-top: 0; }
.mg-mail { font-family: "Noto Sans SC", sans-serif; color: var(--ink); word-break: break-all; }
.mg-src { color: var(--ink-soft); }
.mg-op { text-align: right; }
.mg-readonly { font-size: 12px; color: var(--ink-soft); }
.mg-empty { padding: 24px; text-align: center; color: var(--ink-soft); font-size: 13px; }
@media (max-width: 720px) {
  .mg-row { grid-template-columns: 1fr 90px 90px; }
}

/* ========== 资讯富文本编辑器（wangEditor）书卷风适配 ========== */
/* 注意：wrap 不能设 overflow:hidden，否则内部工具栏的 sticky 吸顶会失效；圆角改由工具栏/编辑区各自承担 */
.nw-editor-wrap { border: 1px solid #d9cdb8; border-radius: 8px; background: #fff; }
.nw-editor-wrap #nfEditorToolbar { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid #e8e0d0; background: #faf7f0; flex-wrap: wrap; border-radius: 8px 8px 0 0; box-shadow: 0 2px 6px rgba(60, 50, 40, .05); }
/* 吸顶时遮住上方 .edit-body 内边距缝隙（20px padding + 1px wrap 边框），避免滚动内容从工具栏上方露出 */
.nw-editor-wrap #nfEditorToolbar::before { content: ""; position: absolute; left: -1px; right: -1px; top: -21px; height: 21px; background: #faf7f0; }
.nw-editor-wrap #nfEditorBox { min-height: 340px; border-radius: 0 0 8px 8px; }
.nw-editor-wrap .w-e-text-container [data-slate-editor] { min-height: 340px; padding: 12px 16px; font-size: 15px; line-height: 1.8; }
.nw-editor-wrap .w-e-text-container [data-slate-editor] h1 { font-size: 19px; margin: 14px 0 8px; font-family: "Noto Serif SC", serif; }
.nw-editor-wrap .w-e-text-container [data-slate-editor] h2 { font-size: 17px; margin: 12px 0 6px; font-family: "Noto Serif SC", serif; }
.nw-editor-wrap .w-e-text-container [data-slate-editor] h3 { font-size: 15px; margin: 10px 0 6px; font-family: "Noto Serif SC", serif; }
.nw-editor-wrap .w-e-text-container [data-slate-editor] img { max-width: 100%; }
/* 编辑器全屏 / 弹层压过后台抽屉 */
.w-e-full-screen-container { z-index: 9999; }
.w-e-modal, .w-e-drop-panel, .w-e-toolbar-tooltip { z-index: 10000; }
