/* ============================================================
   管理后台 · 样式
   ============================================================ */
:root {
  --blue: #0a8f47;
  --blue-deep: #053d1c;
  --ink: #12213b;
  --muted: #53637a;
  --sky: #ebf7ef;
  --line: #d4e7d8;
  --lime: #a8f060;
  --red: #c0392b;
  --green: #1e8e5a;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: #f4f7fb;
  line-height: 1.6;
}
button { cursor: pointer; font: inherit; }
input, select, textarea { font: inherit; }
a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; display: block; }
.hidden { display: none !important; }

/* ---------------- 登录页 ---------------- */
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--blue-deep), var(--blue) 60%, #34a85a);
  padding: 20px;
}
.login-card {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  padding: 38px 36px;
  box-shadow: 0 30px 70px rgba(0,0,0,.35);
  text-align: center;
}
.login-card .mark {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  color: var(--blue);
  background: var(--white);
  display: grid; place-items: center;
  font-size: 22px; font-weight: 800;
}
/* 后台 logo：跟随 site.images.logo 改变（与前台一致） */
.admin-logo-mark.logo-img {
  background-size: cover;
  background-position: center;
  color: transparent;
  border-color: transparent;
  text-indent: -9999px;
  overflow: hidden;
}
.login-card h1 { margin: 0 0 4px; font-size: 20px; }
.login-card .sub { margin: 0 0 24px; color: var(--muted); font-size: 13px; }
.login-card label { display: block; text-align: left; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.login-card input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 18px;
  outline: none;
  transition: border-color .2s ease;
}
.login-card input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(10, 143, 71, .12); }
.login-card .btn {
  width: 100%;
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 13px;
  font-weight: 700;
  transition: background .2s ease;
}
.login-card .btn:hover { background: var(--blue-deep); }
.login-card .err { color: var(--red); font-size: 13px; min-height: 20px; margin: 8px 0 0; }
.login-card .hint { margin: 18px 0 0; font-size: 12px; color: var(--muted); }

/* ---------------- 后台布局 ---------------- */
.admin-top {
  background: var(--blue-deep);
  color: #fff;
  padding: 0 24px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 30;
}
.admin-top .t { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 1px; }
.admin-top .t .dot {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--lime);
  color: var(--lime);
  display: grid; place-items: center;
  font-size: 12px;
}
.admin-top .actions { display: flex; gap: 10px; align-items: center; }
.admin-top .actions a, .admin-top .actions button {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 13px;
  transition: background .2s ease;
}
.admin-top .actions a:hover, .admin-top .actions button:hover { background: rgba(255,255,255,.25); }
.admin-top .actions .logout { background: rgba(192,57,43,.7); }

.admin-layout { display: grid; grid-template-columns: 190px 1fr; min-height: calc(100vh - 58px); }
.admin-side {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 16px 10px;
}
.admin-side button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: 0;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--ink);
  text-align: left;
  transition: all .15s ease;
}
.admin-side button:hover { background: var(--sky); }
.admin-side button.active { background: var(--blue); color: #fff; font-weight: 700; }

.admin-main { padding: 26px; overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.panel-head h2 { margin: 0; font-size: 20px; }
.panel-head .desc { color: var(--muted); font-size: 13px; margin-top: 4px; }

.btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  transition: all .18s ease;
}
.btn:hover { border-color: var(--blue); color: var(--blue); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-deep); }
.btn.green { background: var(--green); border-color: var(--green); color: #fff; }
.btn.green:hover { filter: brightness(.94); }
.btn.danger { background: #fff; border-color: #e0b4ad; color: var(--red); }
.btn.danger:hover { background: var(--red); color: #fff; }
.btn.sm { padding: 5px 10px; font-size: 12.5px; border-radius: 6px; }
.btn:disabled { opacity: .5; cursor: default; }

/* ---------------- 概览卡片 ---------------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
}
.stat-card strong { font-size: 30px; color: var(--blue); display: block; }
.stat-card span { color: var(--muted); font-size: 13px; }
.quick-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.quick-links a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all .2s ease;
}
.quick-links a:hover { border-color: var(--blue); box-shadow: 0 10px 24px rgba(10, 143, 71, .1); }
.quick-links small { color: var(--muted); font-weight: 400; }

/* ---------------- 表格 ---------------- */
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
table.data { width: 100%; border-collapse: collapse; }
table.data th {
  background: var(--sky);
  text-align: left;
  font-size: 12.5px;
  letter-spacing: .5px;
  color: var(--muted);
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.data td { padding: 11px 14px; border-bottom: 1px solid #eef2f7; font-size: 13.5px; vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: #fafcff; }
table.data .thumb-img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; background: var(--sky); }
table.data .row-actions { display: flex; gap: 6px; white-space: nowrap; }
.badge-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.badge-dot.on { background: var(--green); }
.badge-dot.off { background: #b8c2cf; }
.featured-yes { color: var(--green); font-weight: 700; }
.featured-no { color: #b8c2cf; }

/* ---------------- 模态表单 ---------------- */
.modal-overlay {
  position: fixed; inset: 0;
  z-index: 100;
  background: rgba(5, 61, 28, .5);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow: auto;
}
.modal-overlay.open { display: flex; }
.admin-modal {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 640px;
  padding: 26px 28px;
  position: relative;
  box-shadow: 0 30px 70px rgba(0,0,0,.3);
}
.admin-modal.wide { max-width: 860px; }
.admin-modal h3 { margin: 0 0 18px; font-size: 18px; }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  color: var(--muted);
}
.modal-close:hover { background: var(--sky); color: var(--blue); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.form-field input, .form-field select, .form-field textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13.5px;
  outline: none;
  transition: border-color .2s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(10, 143, 71, .1);
}
.form-field textarea { min-height: 84px; resize: vertical; }
.form-field .hint { font-size: 12px; color: var(--muted); font-weight: 400; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

/* 图片选择器 */
.img-pick { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.img-pick select { flex: 1; min-width: 180px; }
.img-preview { width: 64px; height: 64px; border-radius: 8px; border: 1px solid var(--line); background: var(--sky); object-fit: cover; }

/* 多图编辑器（Hero 轮播系列图） */
.multi-pick { display: flex; flex-direction: column; gap: 10px; }
.multi-thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.multi-thumb {
  position: relative;
  width: 140px; height: 88px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--sky);
}
.multi-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.multi-thumb .multi-del {
  position: absolute;
  top: 4px; right: 4px;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.multi-thumb .multi-del:hover { background: var(--red); }
.multi-empty { margin: 0; color: var(--muted); font-size: 12.5px; }
.multi-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.multi-tools select { flex: 1; min-width: 180px; }
.multi-pick .hint { margin: 0; font-size: 12px; color: var(--muted); }

/* 拖拽上传：悬停高亮 + 提示 */
.img-pick, .multi-pick, #uploadGrid { transition: outline-color .15s ease, background .15s ease; }
.img-pick.drag-over, .multi-pick.drag-over, #uploadGrid.drag-over {
  outline: 2px dashed var(--blue);
  outline-offset: 4px;
  background: var(--sky);
}
.drag-hint { font-size: 11px; color: var(--muted); }

/* 素材管理分类 Tab */
.media-tabs { display: flex; gap: 8px; margin: 18px 0 14px; flex-wrap: wrap; }
.media-tab {
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s ease;
}
.media-tab:hover { border-color: var(--blue); color: var(--blue); }
.media-tab.active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* 素材分类标签 */
.cat-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 10px;
  background: var(--sky);
  color: var(--blue);
  font-size: 10.5px;
  font-weight: 700;
}
.cat-tag.cat-common { background: #eef1f5; color: var(--muted); }

/* 产品合作模式 */
.mode-checks { display: flex; gap: 10px; flex-wrap: wrap; }
.mode-check {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.mode-check input { accent-color: var(--blue); }
.mode-check:has(input:checked) { background: var(--sky); border-color: var(--blue); color: var(--blue); }
.mode-tag {
  display: inline-block;
  margin: 1px 3px 1px 0;
  padding: 2px 9px;
  border-radius: 10px;
  background: var(--sky);
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.muted { color: var(--muted); }

/* 栏目排序列表 */
.section-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 10px;
}
.section-item.dragging { opacity: .4; }
.section-idx {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--sky);
  color: var(--blue);
  font-weight: 800;
  font-size: 13px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.section-name { font-size: 14px; font-weight: 600; flex: 1; }
.section-item .drag-handle {
  position: static;
  width: 22px;
  height: 18px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
  cursor: grab;
  border-radius: 4px;
  user-select: none;
}
.section-item .drag-handle:hover { background: var(--sky); color: var(--blue); }
.section-item.drag-follow {
  box-shadow: 0 20px 44px rgba(5, 61, 28, .28);
  transform: rotate(2deg);
  opacity: .95;
}

/* 人才招聘管理 */
.sec-title { font-size: 15px; font-weight: 800; margin-bottom: 12px; }
.cat-row, .job-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 8px;
}
.cat-row .drag-handle, .job-row .drag-handle {
  position: static;
  width: 22px;
  height: 18px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
  cursor: grab;
  border-radius: 4px;
  user-select: none;
}
.cat-row .drag-handle:hover, .job-row .drag-handle:hover { background: var(--sky); color: var(--blue); }
.cat-row.dragging, .job-row.dragging { opacity: .4; }
.cat-name { font-size: 14px; font-weight: 700; flex: 1; }
.cat-count { color: var(--muted); font-size: 12px; margin-right: 8px; }
.job-info { flex: 1; min-width: 0; }
.job-info strong { font-size: 14px; display: block; }
.job-info small { color: var(--muted); font-size: 12px; }
.inline-form { display: flex; gap: 10px; margin-top: 12px; }
.inline-form input { flex: 1; }

/* 咨询留言列表 */
.quote-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: var(--white);
}
.quote-item.unread { border-color: var(--blue); background: var(--sky); }
.q-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.q-head strong { font-size: 15px; }
.q-phone { color: var(--muted); font-size: 13px; }
.q-topic { background: var(--white); color: var(--blue); border: 1px solid var(--line); border-radius: 10px; padding: 2px 10px; font-size: 12px; }
.q-region { background: #eafbea; color: #1e8e5a; border-radius: 10px; padding: 2px 10px; font-size: 12px; font-weight: 700; }
.q-time { margin-left: auto; color: var(--muted); font-size: 12px; }
.q-msg { margin: 8px 0 0; color: var(--muted); font-size: 13.5px; }
.quote-item .ops { margin-top: 10px; }

/* 多图缩略图拖拽排序 */
.multi-thumb { cursor: grab; }
.multi-thumb:active { cursor: grabbing; }
.multi-thumb.dragging { opacity: .45; }
.multi-thumb.drop-target { outline: 2px dashed var(--blue); outline-offset: 2px; }

/* 标签编辑 */
.tag-input-wrap { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tag-chip {
  background: var(--sky);
  color: var(--blue);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tag-chip button { background: none; border: 0; color: var(--muted); font-size: 13px; padding: 0; }
.tag-chip button:hover { color: var(--red); }

/* ---------------- 图片管理 ---------------- */
.upload-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.upload-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.upload-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--sky); }
.upload-item .meta { padding: 8px 10px; font-size: 11.5px; color: var(--muted); word-break: break-all; }
.upload-item .ops { padding: 0 10px 10px; display: flex; gap: 6px; }
.upload-item .ops .btn { flex: 1; text-align: center; }
.upload-item .vid { display: grid; place-items: center; aspect-ratio: 1/1; background: var(--sky); color: var(--blue); font-size: 13px; }
.upload-item .up-video { width: 100%; height: 220px; object-fit: contain; background: #000; display: block; }

/* 视频预览（编辑弹窗）：等比缩放，竖屏视频也尽量大 */
.video-preview {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 55vh;
  width: auto;
  height: auto;
  background: #000;
  border-radius: 8px;
}

/* ---------------- Logo 圆形裁剪器 ---------------- */
.crop-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(5, 61, 28, .6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.crop-overlay.open { display: flex; }
.crop-box {
  background: #fff;
  border-radius: 14px;
  padding: 22px 24px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 30px 70px rgba(0,0,0,.3);
}
.crop-box h3 { margin: 0 0 14px; font-size: 16px; }
.crop-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 10px;
  background: #0d2b52;
  cursor: grab;
  touch-action: none;
}
.crop-viewport:active { cursor: grabbing; }
.crop-viewport img {
  position: absolute;
  top: 0; left: 0;
  max-width: none;
  user-select: none;
}
.crop-mask {
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 49%, rgba(0,0,0,.55) 50%);
}
.crop-hint { margin: 10px 0 4px; font-size: 12px; color: var(--muted); }
.crop-tools { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.crop-tools input[type="range"] { flex: 1; }

/* ---------------- 资质/实景卡片列表 ---------------- */
.list-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mini-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.mini-card .thumb { width: 100%; height: 90px; object-fit: cover; border-radius: 8px; background: var(--sky); }
.mini-card .thumb-video { width: 100%; height: 190px; object-fit: contain; background: #000; border-radius: 8px; display: block; }
.mini-card .badge { display: inline-flex; }
.mini-card h4 { margin: 0; font-size: 15px; }
.mini-card p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.mini-card .ops { display: flex; gap: 6px; margin-top: auto; padding-right: 26px; }

/* 卡片拖拽排序（右下角 6 点手柄） */
.drag-handle {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 22px;
  height: 18px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
  cursor: grab;
  border-radius: 4px;
  user-select: none;
  z-index: 2;
}
.drag-handle:hover { background: var(--sky); color: var(--blue); }
.drag-handle:active { cursor: grabbing; }
.mini-card.dragging { opacity: .5; }
.mini-card.drop-target { outline: 2px dashed var(--blue); outline-offset: 2px; }

/* 拖拽跟随副本（手机桌面式动效） */
.mini-card.drag-follow {
  box-shadow: 0 20px 44px rgba(5, 61, 28, .28);
  transform: rotate(3deg) scale(1.03);
  opacity: .94;
  pointer-events: none;
  z-index: 9999;
  cursor: grabbing;
}

/* 表格行排序（产品管理） */
.drag-cell { width: 40px; text-align: center; }
.drag-cell .drag-handle {
  position: static;
  width: 22px;
  height: 18px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
  cursor: grab;
  border-radius: 4px;
  user-select: none;
}
.drag-cell .drag-handle:hover { background: var(--sky); color: var(--blue); }
tr.dragging { opacity: .4; }
.drag-follow-row {
  position: fixed;
  margin: 0;
  pointer-events: none;
  z-index: 9999;
  display: block;
  width: auto !important; /* 宽度自适应内容，避免整张表格宽度 */
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(5, 61, 28, .25);
  transform: rotate(1.5deg);
  opacity: .95;
}
.drag-follow-row::after { content: ''; display: block; clear: both; }
.drag-follow-row td {
  display: block;
  float: left; /* 横向排列（flex 容器内 float 无效，故容器用 block） */
  border: 0;
  padding: 2px 10px;
  white-space: nowrap;
  vertical-align: middle;
}
.drag-follow-row .drag-cell { display: none; }
.drag-follow-row .row-actions, .drag-follow-row button { display: none; }
.drag-follow-row .thumb-img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }

/* ---------------- 基础信息 ---------------- */
.settings-sec { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; margin-bottom: 18px; }
.settings-sec h3 { margin: 0 0 16px; font-size: 15px; color: var(--blue); letter-spacing: 1px; }
.stat-row { display: grid; grid-template-columns: 130px 1fr 34px; gap: 10px; margin-bottom: 10px; align-items: center; }
.stat-row input { border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; outline: none; }
.stat-row .del { background: none; border: 0; color: var(--red); font-size: 18px; }

/* 提示条 */
.toast {
  position: fixed;
  top: 70px; left: 50%;
  transform: translateX(-50%) translateY(-12px);
  background: var(--blue-deep);
  color: #fff;
  padding: 12px 26px;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: 0 14px 34px rgba(0,0,0,.3);
  opacity: 0;
  pointer-events: none;
  transition: all .3s ease;
  z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--red); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 980px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-side { display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; }
  .admin-side button { width: auto; white-space: nowrap; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .list-cards { grid-template-columns: repeat(2, 1fr); }
  .upload-grid { grid-template-columns: repeat(3, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .admin-main { padding: 18px 14px; }
  .table-wrap { overflow-x: auto; }
}
