/* ==========================================================================
   PDF 资料库管理后台样式
   单文件、无构建、无外部依赖 —— 内网/ECS 环境可离线运行
   ========================================================================== */

:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #1e293b;
  --text-muted: #64748b;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #eff6ff;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --ok: #16a34a;
  --ok-soft: #f0fdf4;
  --warn: #d97706;
  --warn-soft: #fffbeb;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 4px 16px rgba(15, 23, 42, .08);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.muted { color: var(--text-muted); font-size: 12.5px; }
.mono { font-family: var(--mono); font-size: 12px; }
.ellipsis { display: inline-block; max-width: 100%; overflow: hidden;
            text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

/* ---------------------------- 登录页 ---------------------------- */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .28);
  padding: 36px 32px 28px;
}

.login-head { text-align: center; margin-bottom: 26px; }
.login-head h1 { font-size: 20px; margin: 14px 0 4px; }
.login-head p { margin: 0; }

.login-logo {
  width: 56px; height: 56px; margin: 0 auto;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .5px;
  display: flex; align-items: center; justify-content: center;
}

.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }

input[type="text"], input[type="password"], input[type="search"],
input[type="file"], select, .input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  font-size: 13.5px;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}

input:focus, select:focus, .input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .14);
}

.login-feedback { margin-top: 14px; }

/* ---------------------------- 按钮 ---------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  font-size: 13.5px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, opacity .15s;
}
.btn:hover:not(:disabled) { background: var(--surface-2); border-color: var(--text-muted); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); border-color: var(--primary-hover); }

.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #b91c1c; border-color: #b91c1c; }

.btn-ghost { background: transparent; border-color: transparent; color: var(--text-muted); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }

.btn-link { background: none; border: none; color: var(--primary); padding: 2px 4px; }
.btn-link:hover { text-decoration: underline; background: none; }

.btn-sm { padding: 5px 12px; font-size: 12.5px; }
.btn-xs { padding: 3px 8px; font-size: 12px; }
.btn-lg { padding: 11px 22px; font-size: 15px; font-weight: 600; }
.btn-block { width: 100%; margin-top: 6px; padding: 11px; font-size: 15px; }

/* ---------------------------- 布局 ---------------------------- */
.topbar {
  height: 58px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.brand-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.version { font-size: 11.5px; color: var(--text-muted); background: var(--surface-2);
           padding: 1px 7px; border-radius: 10px; border: 1px solid var(--border); }
.topbar-right { display: flex; align-items: center; gap: 14px; }

.container { max-width: 1360px; margin: 0 auto; padding: 22px 24px 60px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  margin-bottom: 18px;
}
.card-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 16px; flex-wrap: wrap;
}
.card-head h2 { font-size: 15.5px; margin: 0; }

/* ---------------------------- 上传区 ---------------------------- */
.upload-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.upload-row .file-picker { flex: 1 1 320px; min-width: 260px; }
.upload-row .tags-input { flex: 0 1 280px; }

.file-picker { position: relative; display: block; }
.file-picker input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.file-picker-btn {
  display: block; padding: 9px 14px; text-align: center;
  border: 1px dashed var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--text-muted); font-size: 13.5px;
  transition: border-color .15s, background .15s, color .15s;
}
.file-picker:hover .file-picker-btn {
  border-color: var(--primary); background: var(--primary-soft); color: var(--primary);
}

.hint { margin: 10px 0 0; font-size: 12.5px; color: var(--text-muted); }
.hint strong { color: var(--warn); }
/* 同名覆盖提示：弱化的琥珀底提示条，与正文 hint 区分 */
.hint-overwrite {
  padding: 8px 12px; border-radius: var(--radius-sm);
  background: #fffbeb; border: 1px solid #fde68a; color: #92400e;
}
.hint-overwrite strong { color: #b45309; }

/* ---------------------------- 提示 ---------------------------- */
.alert {
  padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: 13px; margin: 12px 0; border: 1px solid transparent;
}
.alert-info { background: var(--primary-soft); border-color: #bfdbfe; color: #1e40af; }
.alert-error { background: var(--danger-soft); border-color: #fecaca; color: #991b1b; }
.alert-warn { background: var(--warn-soft); border-color: #fde68a; color: #92400e; }
.alert-ok { background: var(--ok-soft); border-color: #bbf7d0; color: #166534; }

.badge {
  display: inline-block; padding: 1px 8px; border-radius: 10px;
  font-size: 11.5px; font-weight: 600; margin-right: 6px;
}
.badge-ok { background: var(--ok-soft); color: var(--ok); border: 1px solid #bbf7d0; }
.badge-fail { background: var(--danger-soft); color: var(--danger); border: 1px solid #fecaca; }
/* 覆盖同名旧文件：用琥珀色区分于「新增成功」的绿色 */
.badge-overwrite { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }

.spinner {
  width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff;
  animation: spin .7s linear infinite; display: inline-block;
}
.btn:not(.btn-primary):not(.btn-danger) .spinner { border-color: rgba(0,0,0,.2); border-top-color: #333; }
@keyframes spin { to { transform: rotate(360deg); } }

.htmx-indicator { display: none; }
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator { display: inline-block; }

/* ---------------------------- 上传结果 ---------------------------- */
.upload-report { margin-top: 14px; }
.upload-summary { margin-bottom: 8px; }
.upload-list {
  list-style: none; margin: 0; padding: 0;
  max-height: 240px; overflow-y: auto;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.upload-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 12px; font-size: 13px; border-bottom: 1px solid var(--border);
}
.upload-list li:last-child { border-bottom: none; }
.upload-list li.ok { background: #fafffb; }
.upload-list li.fail { background: #fffafa; }
/* 覆盖同名：琥珀底，提醒用户旧文件已被替换 */
.upload-list li.overwrite { background: #fffdf5; }
.status-icon { font-weight: 700; width: 14px; }
.upload-list li.ok .status-icon { color: var(--ok); }
.upload-list li.fail .status-icon { color: var(--danger); }
.upload-list li.overwrite .status-icon { color: #b45309; }

/* ---------------------------- 筛选行 ---------------------------- */
.filter-row {
  display: flex; gap: 10px; align-items: center;
  margin-bottom: 14px; flex-wrap: wrap;
}
.filter-row input[type="search"] { flex: 1 1 280px; min-width: 200px; }
.filter-row .select { flex: 0 1 200px; }

.select { appearance: none; background-image:
  url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; padding-right: 30px; }

/* ---------------------------- 表格 ---------------------------- */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th, .data-table td {
  padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table thead th {
  background: var(--surface-2); font-size: 12.5px; font-weight: 600;
  color: var(--text-muted); white-space: nowrap; position: sticky; top: 58px; z-index: 5;
}
.data-table tbody tr:hover { background: #fbfdff; }
.data-table tbody tr:has(.row-check:checked) { background: var(--primary-soft); }

.col-check { width: 36px; text-align: center; }
.col-id { width: 52px; }
.col-tags { width: 240px; }
.col-key { width: 260px; max-width: 260px; }
.col-time { width: 150px; white-space: nowrap; }
.col-ops { width: 170px; }

.col-name .name-label { cursor: pointer; }
input[type="checkbox"] { width: 15px; height: 15px; cursor: pointer; accent-color: var(--primary); }

.tag { display: inline-block; padding: 1px 8px; margin: 1px 4px 1px 0;
  border-radius: 10px; font-size: 11.5px;
  background: #eef2ff; color: #4338ca; border: 1px solid #e0e7ff;
}
.tag-view { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.tag-view .btn-link { margin-left: auto; }

/* 注意：.tag-edit 使用 display:flex，会覆盖浏览器对 [hidden] 的默认
   display:none，因此必须显式声明，否则"编辑/取消"切换会失效。 */
[hidden] { display: none !important; }

.tag-edit { display: flex; flex-direction: column; gap: 6px; }
.tag-edit-btns { display: flex; gap: 6px; }
.input-sm { padding: 5px 9px; font-size: 12.5px; }

.delete-controls { display: flex; align-items: center; gap: 8px; }
.checkbox-inline {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; color: var(--text-muted); white-space: nowrap; cursor: pointer;
}

.empty-cell { text-align: center; padding: 40px 0; color: var(--text-muted); }
.empty-hint { margin: 0; }

/* ---------------------------- 分页 ---------------------------- */
.pager {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 14px; flex-wrap: wrap;
}
.pager-btns { display: flex; gap: 8px; }

/* ---------------------------- 预设面板 ---------------------------- */
.preset-grid {
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
  margin-bottom: 16px;
}
.preset-save { display: flex; gap: 10px; flex: 1 1 420px; }
.preset-save input { flex: 1 1 auto; }
.preset-load { display: flex; align-items: center; gap: 10px; flex: 0 1 380px; }

.preset-list { display: flex; flex-direction: column; gap: 8px; }
.preset-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface-2); flex-wrap: wrap;
}
.preset-meta { display: flex; flex-direction: column; }
.preset-ops { display: flex; gap: 8px; align-items: center; }

/* ---------------------------- 底部操作栏 ---------------------------- */
/* sticky 跟随视口底部，便于长列表下随时导出。
   必须留出足够的下边距，否则会遮挡表格最后一行的复选框与操作按钮。
   配合下方 padding-bottom 一起避免遮挡。 */
.action-bar-card {
  position: sticky;
  bottom: 0;
  z-index: 10;
  margin-bottom: 0;
  box-shadow: 0 -6px 16px rgba(15, 23, 42, .07);
}
/* 页面底部留白：保证最后一行滚到底时也不会被 sticky 栏压住 */
.container { padding-bottom: 120px; }
.action-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.action-info { display: flex; flex-direction: column; }
.action-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.zip-name-input { width: 190px; }

/* ---------------------------- Toast ---------------------------- */
.toast-box {
  position: fixed; right: 22px; bottom: 22px; z-index: 999;
  display: flex; flex-direction: column; gap: 8px; max-width: 360px;
}
.toast-box .alert { margin: 0; box-shadow: var(--shadow); animation: slide-in .22s ease; }
@keyframes slide-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------------------------- 顶部导航 ---------------------------- */
.topnav { display: flex; align-items: center; gap: 6px; margin-left: 24px; }
.topnav-link {
  padding: 6px 14px; border-radius: var(--radius-sm);
  color: var(--text-muted); text-decoration: none; font-size: 14px;
  transition: background .15s, color .15s;
}
.topnav-link:hover { background: var(--surface-2); color: var(--text); }
.topnav-link.is-active { background: var(--primary-soft, rgba(37,99,235,.12)); color: var(--primary); font-weight: 600; }

/* 上传页用较窄的容器，聚焦单一任务 */
.container.narrow { max-width: 880px; }
.center-hint { text-align: center; }
.center-hint a { color: var(--primary); }
.picked-hint {
  margin-top: 10px; padding: 8px 12px; font-size: 12.5px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-muted);
  word-break: break-all;
}

/* ---------------------------- 搜索模式切换 ---------------------------- */
.search-tabs {
  display: flex; align-items: center; gap: 8px; margin: 4px 0 14px;
  border-bottom: 1px solid var(--border); padding-bottom: 10px;
}
.search-tab {
  padding: 6px 16px; font-size: 13.5px; cursor: pointer;
  background: transparent; border: 1px solid transparent;
  border-radius: var(--radius-sm); color: var(--text-muted);
  transition: background .15s, color .15s;
}
.search-tab:hover { background: var(--surface-2); color: var(--text); }
.search-tab.is-active {
  background: var(--surface-2); color: var(--primary);
  border-color: var(--border); font-weight: 600;
}
.nav-upload-link { margin-left: auto; text-decoration: none; }

.filter-exact { flex-direction: column; align-items: stretch; gap: 10px; }
.exact-input {
  width: 100%; resize: vertical; min-height: 66px;
  font-family: inherit; line-height: 1.6;
}
.exact-actions { display: flex; align-items: center; gap: 10px; }

/* ---------------------------- 已选文件清单 ---------------------------- */
.picklist-card { border-left: 3px solid var(--primary); }
.picklist-body { margin: 4px 0 0; }
.picklist-items {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.pick-chip {
  display: inline-flex; align-items: center; gap: 6px;
  max-width: 320px; padding: 5px 6px 5px 12px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 999px; font-size: 12.5px;
}
.pick-chip-name { max-width: 250px; }
.pick-chip-x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  border: none; cursor: pointer; font-size: 14px; line-height: 1;
  background: transparent; color: var(--text-muted);
  transition: background .15s, color .15s;
}
.pick-chip-x:hover { background: rgba(220,38,38,.14); color: #dc2626; }
.picklist-actions {
  display: flex; align-items: center; gap: 12px;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border);
}

/* ---------------------------- 响应式 ---------------------------- */
@media (max-width: 900px) {
  .col-key { display: none; }
  .preset-save, .preset-load { flex: 1 1 100%; }
  .container { padding: 16px 14px 50px; }
  .data-table thead th { position: static; }
  .topnav { margin-left: 10px; }
  .topnav-link { padding: 6px 9px; font-size: 13px; }
}

/* ==========================================================================
   管理员模式
   ========================================================================== */

/* 进入管理员模式的按钮：与普通按钮区分开，暗示"这是权限入口" */
.btn-mode {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff; border: none;
  box-shadow: 0 1px 3px rgba(79, 70, 229, .35);
}
.btn-mode:hover { filter: brightness(1.08); }

/* 已解锁状态徽标 */
.mode-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px;
  background: var(--ok-soft); color: var(--ok);
  border: 1px solid rgba(22, 163, 74, .3);
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.mode-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok);
  animation: mode-pulse 1.8s ease-in-out infinite;
}
@keyframes mode-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(22, 163, 74, .5); }
  50%      { opacity: .75; box-shadow: 0 0 0 4px rgba(22, 163, 74, 0); }
}

.topbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.inline-form { display: inline; margin: 0; }

/* ---------------------------- 对话框 ---------------------------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(15, 23, 42, .5);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  backdrop-filter: blur(2px);
}
/* [hidden] 必须显式声明，否则会被上面的 display:flex 覆盖 —— 老坑 */
.modal-mask[hidden] { display: none !important; }

.modal {
  width: 100%; max-width: 440px;
  background: var(--surface); border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(15, 23, 42, .28);
  padding: 20px 22px 18px;
  animation: modal-in .16s ease-out;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(-8px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.modal-head h3 { margin: 0; font-size: 16px; }
.modal-x {
  border: none; background: transparent; cursor: pointer;
  font-size: 22px; line-height: 1; color: var(--text-muted);
  padding: 0 4px; border-radius: var(--radius-sm);
}
.modal-x:hover { background: var(--surface-2); color: var(--text); }
.modal-desc { margin: 0 0 14px; color: var(--text-muted); font-size: 13px; }
.modal-msg { margin-top: 10px; }
.modal-actions {
  display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px;
}
.modal .input { width: 100%; }
.modal textarea.input { resize: vertical; font-family: var(--mono); }

.form-error { color: var(--danger); font-size: 13px; margin: 6px 0 0; }
.form-ok { color: var(--ok); font-size: 13px; margin: 6px 0 0; }

/* ---------------------------- 上锁界面 ---------------------------- */
.lock-card { text-align: center; padding: 44px 24px; }
.lock-icon { font-size: 42px; line-height: 1; margin-bottom: 10px; }
.lock-card h2 { margin: 0 0 10px; font-size: 19px; }
.lock-card > .muted { max-width: 520px; margin: 0 auto 22px; }
.lock-form {
  display: flex; gap: 10px; justify-content: center;
  max-width: 420px; margin: 0 auto;
}
.lock-form .input { flex: 1; }
.lock-msg { margin-top: 10px; }

/* ---------------------------- 日志概览 ---------------------------- */
.stat-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; margin-bottom: 18px;
}
.stat {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 14px;
  display: flex; flex-direction: column; gap: 2px;
}
.stat-num { font-size: 22px; font-weight: 700; line-height: 1.2; }
.stat-label { font-size: 12.5px; color: var(--text-muted); }
.stat-upload .stat-num { color: var(--ok); }
.stat-delete .stat-num { color: var(--danger); }
.stat-warn { border-color: rgba(217, 119, 6, .45); background: var(--warn-soft); }
.stat-warn .stat-num { color: var(--warn); }

/* ---------------------------- 危险操作区 ---------------------------- */
.danger-zone {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
  padding: 14px 16px; margin-bottom: 18px;
  background: var(--danger-soft);
  border: 1px solid rgba(220, 38, 38, .22);
  border-radius: var(--radius);
}
.danger-zone p { margin: 4px 0 0; font-size: 13px; }
.danger-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.danger-text { color: var(--danger); }

/* ---------------------------- 日志表格 ---------------------------- */
.log-table td { vertical-align: top; }
.log-name { display: block; word-break: break-all; }
.log-detail { display: block; font-size: 12px; }
.log-time {
  font-family: var(--mono); font-size: 12.5px;
  white-space: nowrap; color: var(--text);
}
.col-action { width: 72px; }
.col-fileid { width: 68px; }
.col-result { width: 64px; }
.col-op { width: 72px; }
.col-time { width: 158px; }

.action-tag {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
}
.action-upload { background: var(--ok-soft); color: var(--ok); }
.action-delete { background: var(--danger-soft); color: var(--danger); }

.row-failed { background: rgba(217, 119, 6, .05); }

.badge-err {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  background: var(--danger-soft); color: var(--danger);
}

.toast-inline {
  padding: 9px 13px; margin-bottom: 12px;
  background: var(--ok-soft); color: var(--ok);
  border: 1px solid rgba(22, 163, 74, .28);
  border-radius: var(--radius-sm); font-size: 13px;
}

/* 响应式 */
@media (max-width: 900px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .lock-form { flex-direction: column; }
  .log-table .col-fileid, .log-table .col-op { display: none; }
}

/* 筛选区下方的说明文字（多关键词提示等） */
.filter-hint {
  margin: -6px 0 14px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.filter-hint strong { color: var(--text); }

/* ==========================================================================
   列表锁定占位（未进入管理员模式、且未搜索时）
   ========================================================================== */
.list-locked {
  text-align: center;
  padding: 40px 24px 44px;
}
.list-locked-icon { font-size: 34px; line-height: 1; margin-bottom: 12px; }
.list-locked h3 { margin: 0 0 10px; font-size: 16px; }
.list-locked p {
  max-width: 480px; margin: 0 auto;
  font-size: 13.5px;
}
.list-locked-note {
  margin-top: 14px !important;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}
