/* ============================================================
   tsjy.qxym.top 图书借阅登记系统 · 样式表
   浅色主题 / 响应式 / 移动端优先（同学多用手机填表）
   ============================================================ */

:root {
  --bg:           #f4f6fb;
  --panel:        #ffffff;
  --panel-2:      #fafbfe;
  --border:       #e5e9f2;
  --border-soft:  #eef1f8;
  --text:         #1f2937;
  --text-2:       #4b5563;
  --muted:        #8b95a7;

  --primary:      #2563eb;
  --primary-d:    #1d4ed8;
  --primary-soft: #eef4ff;
  --accent:       #0d9488;
  --accent-soft:  #e6f7f4;
  --ok:           #16a34a;
  --ok-soft:      #eaf7ef;
  --danger:       #dc2626;
  --danger-soft:  #fdeeee;
  --warn:         #d97706;
  --warn-soft:    #fef4e6;

  --radius:       14px;
  --radius-sm:    9px;
  --shadow:       0 1px 2px rgba(16,24,40,.04), 0 8px 24px -12px rgba(16,24,40,.10);
  --shadow-sm:    0 1px 2px rgba(16,24,40,.05);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", 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", "Source Han Sans SC", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-d); }
h1,h2,h3,h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: .01em; }

/* ------------------------------------------------------------
   顶部导航
   ------------------------------------------------------------ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); min-width: 0; }
.brand:hover { color: var(--text); }
.brand-dot {
  width: 10px; height: 10px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 0 4px var(--primary-soft);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-text strong { font-size: 15px; }
.brand-text em { font-style: normal; font-size: 11.5px; color: var(--muted); }

.topnav { display: flex; align-items: center; gap: 4px; flex: none; }
.topnav a {
  padding: 7px 13px; border-radius: 999px; color: var(--text-2);
  font-size: 13.5px; transition: .15s; white-space: nowrap;
}
.topnav a:hover { background: var(--primary-soft); color: var(--primary); }
.topnav a.on { background: var(--primary); color: #fff; }
.topnav a.muted { color: var(--muted); }
.btn-mini { border: 1px solid var(--border); background: #fff; color: var(--text-2) !important; }

.main { padding: 24px 20px 60px; min-height: 60vh; }

/* ------------------------------------------------------------
   页脚
   ------------------------------------------------------------ */
.foot {
  border-top: 1px solid var(--border);
  background: var(--panel);
  padding: 22px 0; color: var(--muted); font-size: 12.5px; text-align: center;
}
.foot-dim { color: #a9b1c0; margin-top: 4px; }

/* 备案信息（工信部 / 公安部要求展示于首页底部）
   备案号为法定公示信息，需保证清晰可读：
   #4b5563 在白底上对比度 ≈ 7.1:1（WCAG AA 要求 ≥4.5:1）
   原 #8b95a7 仅 3.1:1，偏淡，已弃用 */
.beian {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 6px 10px; margin-bottom: 9px;
}
.beian-link {
  display: inline-flex; align-items: center; gap: 5px;
  color: #4b5563; font-size: 13px; line-height: 1;
  transition: color .15s;
}
.beian-link:hover { color: var(--primary); }
.beian-icon { display: block; flex: none; }
.beian-link img.beian-icon { height: 16px; width: auto; }
.beian-sep { color: #b6c0d0; font-size: 12px; }

/* ------------------------------------------------------------
   首屏标题
   ------------------------------------------------------------ */
.hero { margin-bottom: 20px; }
.hero h2 { font-size: 24px; margin-bottom: 6px; letter-spacing: -.02em; }
.hero p { margin: 0; color: var(--muted); font-size: 13.5px; }
.hero p strong { color: var(--primary); font-size: 15px; }

/* ------------------------------------------------------------
   卡片
   ------------------------------------------------------------ */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
  overflow: hidden;
}
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 18px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--panel-2);
  flex-wrap: wrap;
}
.card-head h3 { font-size: 14.5px; }
.card-head .sub { font-size: 12px; color: var(--muted); font-weight: 400; }
.card-body { padding: 18px; }
.card-body.tight { padding: 0; }

/* ------------------------------------------------------------
   【版面约定】卡片一律「上下堆叠」，不要左右分栏
   ------------------------------------------------------------
   本站在窄屏/笔记本上左右分栏会把表格挤到换行（如姓名竖排）。
   因此后台页面统一单列：提示/预览类卡片在上，主内容（表格/表单）在下。
   .grid-2 / .grid-3 保留仅为兼容旧写法，新页面请勿使用。
   ------------------------------------------------------------ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 > .card, .grid-3 > .card { margin-bottom: 0; }

/* ------------------------------------------------------------
   KPI
   ------------------------------------------------------------ */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px; margin-bottom: 18px;
}
.kpi {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px;
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.kpi::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--primary); opacity: .85;
}
.kpi.k-a::after { background: var(--primary); }
.kpi.k-b::after { background: var(--accent); }
.kpi.k-c::after { background: #8b5cf6; }
.kpi.k-d::after { background: var(--warn); }
.kpi-label { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.kpi-value {
  font-size: 25px; font-weight: 650; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; line-height: 1.25;
}
.kpi-value .unit { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.kpi-sub { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ------------------------------------------------------------
   填报行动态行
   ------------------------------------------------------------ */
#rows { display: flex; flex-direction: column; gap: 12px; }
.brow {
  display: flex; gap: 12px; align-items: flex-end;
  padding: 14px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  position: relative;
}
.brow-idx {
  flex: none; width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary);
  font-size: 12.5px; font-weight: 600; margin-bottom: 9px;
}
.brow .field { gap: 5px; }
.brow .field label { font-size: 12px; }
.brow-del {
  flex: none; width: 32px; height: 36px; margin-bottom: 0;
  border: 1px solid var(--border); background: #fff; color: var(--muted);
  border-radius: var(--radius-sm); cursor: pointer; font-size: 18px; line-height: 1;
  transition: .15s;
}
.brow-del:hover { color: var(--danger); border-color: #f3d4d4; background: var(--danger-soft); }
.grow  { flex: 1 1 0; min-width: 0; }
.grow2 { flex: 2 1 0; min-width: 0; }
.w100  { flex: 0 0 96px; }
.w150  { flex: 0 0 150px; }

/* ------------------------------------------------------------
   表单
   ------------------------------------------------------------ */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 15px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; color: var(--text-2); font-weight: 500; }
.field .req { color: var(--danger); }
.field .hint { font-size: 12px; color: var(--muted); }
.field .hint-warn { color: var(--warn); }

input[type=text], input[type=password], input[type=number],
input[type=date], input[type=month], select, textarea {
  width: 100%; padding: 9px 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; color: var(--text); font-size: 13.5px; font-family: inherit;
  transition: .15s; outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
input[readonly] { background: #f7f9fc; color: var(--text-2); cursor: default; }
textarea { resize: vertical; min-height: 76px; }
select { appearance: none; cursor: pointer; }

/* ------------------------------------------------------------
   可搜索下拉（姓名搜索）
   ------------------------------------------------------------ */
/* 含下拉的卡片不能裁切子元素，否则列表被 overflow:hidden 截断 */
.card.flush { overflow: visible; position: relative; z-index: 20; }
.card.flush > .card-head { border-radius: var(--radius) var(--radius) 0 0; }

.sel-hidden { display: none; }

.combo { position: relative; }
.combo-input { padding-right: 34px; }
.combo-input.picked {
  border-color: #a7dcc0;
  background: #f6fdf9;
  font-weight: 500;
}
.combo-clear {
  position: absolute; top: 0; right: 6px;
  width: 26px; height: 38px; line-height: 1;
  border: none; background: none; cursor: pointer;
  color: var(--muted); font-size: 18px; padding: 0;
  border-radius: 7px;
}
.combo-clear:hover { color: var(--danger); background: var(--danger-soft); }

.combo-drop {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  z-index: 60;
  max-height: 264px; overflow-y: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px -8px rgba(16,24,40,.18), 0 2px 6px rgba(16,24,40,.06);
  padding: 5px;
  -webkit-overflow-scrolling: touch;
}
.combo-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 11px; min-height: 40px;
  border-radius: 7px; cursor: pointer;
  transition: background .12s;
}
.combo-item:hover { background: #f7f9fd; }
.combo-item.on { background: var(--primary-soft); }
.ci-name { font-size: 14px; color: var(--text); }
.ci-no {
  font-family: var(--mono); font-size: 11.5px; color: var(--muted);
  flex: none; letter-spacing: .01em;
}
.combo-item.on .ci-name { font-weight: 600; color: var(--primary); }
.combo-item mark {
  background: #fff2c2; color: #8a5a00;
  padding: 0 1px; border-radius: 3px;
}
.combo-empty {
  padding: 18px 14px; text-align: center;
  color: var(--muted); font-size: 13px; line-height: 1.7;
}

.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end;
  padding: 14px 18px; background: var(--panel);
  border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 18px;
}
.filter-bar .field { min-width: 140px; }
.filter-bar .field.grow { flex: 1 1 180px; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-tabs a {
  padding: 6px 13px; border-radius: 999px; font-size: 13px;
  border: 1px solid var(--border); background: #fff; color: var(--text-2);
}
.filter-tabs a:hover { border-color: #cfd7e6; color: var(--text); }
.filter-tabs a.on { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ------------------------------------------------------------
   提示
   ------------------------------------------------------------ */
.flash {
  padding: 11px 16px; border-radius: var(--radius-sm);
  margin-bottom: 16px; font-size: 13.5px; border: 1px solid transparent;
}
.flash-success { background: var(--ok-soft);     color: #10693a; border-color: #cceadb; }
.flash-error   { background: var(--danger-soft); color: #a51e22; border-color: #f6d5d6; }
.flash-warn    { background: var(--warn-soft);   color: #92500a; border-color: #f7e2c4; }

.notice {
  background: var(--primary-soft);
  border: 1px solid #dbe6fb;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 13.5px;
  color: #1e3a8a;
}
.notice-sm {
  background: #f7f9fc; border: 1px dashed var(--border);
  border-radius: var(--radius-sm); padding: 10px 14px;
  font-size: 12.5px; color: var(--text-2); margin-bottom: 14px;
}
/* 警示提示（如「请勿修改备案信息」）——用警示色，避免被忽略 */
.notice.notice-warn {
  background: var(--warn-soft);
  border-color: #f2dcb8;
  color: #7c4408;
}
.notice.notice-warn strong { color: #6b3a05; }
.title-preview {
  font-size: 19px; font-weight: 650; letter-spacing: -.01em;
  color: var(--text); margin: 4px 0 2px;
}

/* ------------------------------------------------------------
   成功页
   ------------------------------------------------------------ */
.done-box { text-align: center; padding: 34px 20px; }
.done-icon {
  width: 54px; height: 54px; margin: 0 auto 14px;
  border-radius: 50%; display: grid; place-items: center;
  background: var(--ok-soft); color: var(--ok);
  font-size: 26px; font-weight: 700;
}
.done-box h3 { font-size: 19px; margin-bottom: 6px; }
.done-box p { margin: 0; font-size: 13.5px; }

/* ------------------------------------------------------------
   表格
   ------------------------------------------------------------ */
.table-scroll { overflow-x: auto; }
table.tb { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.tb th {
  text-align: left; font-weight: 600; color: var(--text-2);
  background: var(--panel-2); padding: 11px 14px;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
table.tb td { padding: 11px 14px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
table.tb tbody tr:hover { background: #fbfcfe; }
table.tb tbody tr:last-child td { border-bottom: none; }
table.tb th.xlsx-title {
  text-align: center; font-size: 16px; color: var(--text);
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 14px; letter-spacing: .01em;
}
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.small { font-size: 12.5px; }
.muted { color: var(--muted); }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }

/* ------------------------------------------------------------
   标签
   ------------------------------------------------------------ */
.badge {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: 12px; line-height: 1.7; white-space: nowrap;
}
.badge.ok     { background: var(--ok-soft);     color: var(--ok); }
.badge.off    { background: #f1f3f8;            color: var(--muted); }
.badge.gray   { background: #f1f3f8;            color: var(--text-2); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.export { background: var(--accent-soft); color: var(--accent); }
.badge.primary { background: var(--primary-soft); color: var(--primary); }

.tag-inline {
  font-family: var(--mono); font-size: 12px;
  background: #f4f6fb; border: 1px solid var(--border-soft);
  padding: 1px 7px; border-radius: 6px; color: var(--text-2);
}
.tag-warn {
  display: inline-block; margin: 0 6px 4px 0; padding: 1px 8px;
  background: #fff; border: 1px solid #f0dcbb; border-radius: 6px;
  font-family: var(--mono); font-size: 12px; color: #92500a;
}
.warn-dot {
  display: inline-block; width: 15px; height: 15px; line-height: 15px;
  text-align: center; border-radius: 50%;
  background: var(--warn); color: #fff; font-size: 11px; font-weight: 700;
  margin-left: 4px; cursor: help;
}
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  padding: 4px 12px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--border);
  font-size: 13px; color: var(--text-2);
}

/* ------------------------------------------------------------
   按钮
   ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: #fff;
  color: var(--text-2); font-size: 13.5px; font-family: inherit;
  cursor: pointer; transition: .15s; text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: #cfd7e6; background: #fbfcfe; color: var(--text); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-d); border-color: var(--primary-d); color: #fff; }
.btn-danger { color: var(--danger); border-color: #f3d4d4; background: var(--danger-soft); }
.btn-danger:hover { background: #fbe0e0; color: #b01d1d; }
.btn-sm { padding: 5px 11px; font-size: 12.5px; }
.btn-lg { padding: 12px 26px; font-size: 15px; border-radius: 11px; }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ------------------------------------------------------------
   柱状图（纯 CSS）
   ------------------------------------------------------------ */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 190px; padding-top: 18px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; }
.bar-num { font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.bar-wrap { flex: 1; width: 100%; max-width: 62px; display: flex; align-items: flex-end; justify-content: center; }
.bar-fill {
  width: 100%; border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, #60a5fa, var(--primary));
  min-height: 3px; transition: .3s;
}
.bar-lbl { font-size: 12px; color: var(--muted); margin-top: 7px; }

/* ------------------------------------------------------------
   排行
   ------------------------------------------------------------ */
.rank { list-style: none; margin: 0; padding: 0; }
.rank li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px dashed var(--border-soft);
}
.rank li:last-child { border-bottom: none; }
.rank .idx {
  width: 22px; height: 22px; flex: none; border-radius: 6px;
  display: grid; place-items: center;
  background: #f1f3f8; color: var(--text-2);
  font-size: 11.5px; font-weight: 600; font-family: var(--mono);
}
.rank li:nth-child(1) .idx { background: var(--primary-soft); color: var(--primary); }
.rank li:nth-child(2) .idx { background: var(--accent-soft); color: var(--accent); }
.rank li:nth-child(3) .idx { background: var(--warn-soft); color: var(--warn); }
.rank .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.rank .vl { font-variant-numeric: tabular-nums; font-weight: 600; flex: none; }
.bar-track { display: block; height: 4px; background: #f1f3f8; border-radius: 999px; margin-top: 5px; overflow: hidden; }
.bar-fill-bar { display: block; height: 100%; border-radius: 999px; background: var(--primary); }

/* ------------------------------------------------------------
   分页
   ------------------------------------------------------------ */
.pager { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--border-soft); }
.pager-info { color: var(--muted); font-size: 12.5px; margin-right: auto; }
.pg {
  min-width: 32px; text-align: center; padding: 5px 10px; border-radius: 7px;
  border: 1px solid var(--border); background: #fff; color: var(--text-2); font-size: 12.5px;
}
.pg:hover { border-color: #cfd7e6; }
.pg.on { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ------------------------------------------------------------
   后台布局
   ------------------------------------------------------------ */
.admin-body { display: flex; min-height: 100vh; background: var(--bg); }
.sidebar {
  width: 216px; flex: none; background: #fff;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.side-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 18px 16px; font-weight: 600; font-size: 14px;
  border-bottom: 1px solid var(--border-soft);
}
.side-nav { padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.side-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  color: var(--text-2); font-size: 13.5px; transition: .15s;
}
.side-nav a i { font-style: normal; font-size: 13px; opacity: .6; width: 16px; text-align: center; }
.side-nav a:hover { background: #f7f9fd; color: var(--text); }
.side-nav a.on { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.side-nav a.on i { opacity: 1; }
/* 菜单分组小标题 */
.side-nav .nav-group {
  padding: 12px 12px 5px;
  font-size: 11.5px;
  color: #a9b1c0;
  letter-spacing: .04em;
}
.side-foot {
  padding: 14px 16px; border-top: 1px solid var(--border-soft);
  font-size: 12.5px; color: var(--muted);
  display: flex; flex-direction: column; gap: 8px;
}
.side-user { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.content-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 20px 26px 16px; border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.75); position: sticky; top: 0; z-index: 30;
  backdrop-filter: saturate(180%) blur(10px);
}
.content-head h1 { font-size: 19px; }
.content-head-right { color: var(--muted); font-size: 12.5px; }
.content-body { padding: 22px 26px 50px; }

/* ------------------------------------------------------------
   登录页
   ------------------------------------------------------------ */
.login-body {
  min-height: 100vh; display: grid; place-items: center;
  background:
    radial-gradient(900px 500px at 12% -10%, #e6efff 0%, transparent 60%),
    radial-gradient(800px 480px at 92% 108%, #e6f7f4 0%, transparent 62%),
    var(--bg);
  padding: 26px;
}
.login-card {
  width: 100%; max-width: 396px; background: #fff;
  border: 1px solid var(--border); border-radius: 18px;
  box-shadow: var(--shadow); padding: 32px 30px 26px;
}
.login-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 6px; }
.login-brand strong { font-size: 17px; }
.login-sub { color: var(--muted); font-size: 12.5px; margin-bottom: 22px; }
.login-card .field { margin-bottom: 14px; }
.login-foot { margin-top: 18px; text-align: center; font-size: 12.5px; color: var(--muted); }

/* ------------------------------------------------------------
   通用小工具
   ------------------------------------------------------------ */
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.mb16 { margin-bottom: 16px; } .mb24 { margin-bottom: 24px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ------------------------------------------------------------
   响应式
   ------------------------------------------------------------ */
@media (max-width: 1000px) {
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .admin-body { flex-direction: column; }
  .sidebar {
    width: 100%; height: auto; position: static;
    border-right: none; border-bottom: 1px solid var(--border);
  }
  .side-nav { flex-direction: row; overflow-x: auto; padding: 8px; }
  .side-nav a { white-space: nowrap; }
  .side-nav a i { display: none; }
  .side-nav .nav-group { display: none; }   /* 横向滚动时不显示分组标题 */
  .content-head { padding: 16px 16px 12px; }
  .content-body { padding: 16px 16px 40px; }

  .wrap { padding: 0 14px; }
  .main { padding: 18px 14px 44px; }
  .brand-text em { display: none; }
  .topnav a { padding: 6px 10px; }

  /* 填报行在手机上竖排 */
  .brow { flex-wrap: wrap; align-items: stretch; }
  .brow-idx { margin-bottom: 0; }
  .brow .grow, .brow .grow2 { flex: 1 1 100%; }
  .brow .w100, .brow .w150 { flex: 1 1 calc(50% - 8px); }
  .brow-del { position: absolute; top: 8px; right: 8px; }
  .brow { padding-top: 16px; }
  .hero h2 { font-size: 20px; }
  .bars { height: 160px; gap: 6px; }
  .title-preview { font-size: 16px; }
}
