/* ============================================================
 * 万元用量表 App - 全新 UI v8.0 「高级感升级」
 * 设计语言：现代轻奢 | 深青渐变 | 玻璃质感 | 精致阴影 | 微动效
 * ============================================================ */

:root {
  --bg: #F4F7F6;
  --card: #FFFFFF;
  --primary: #0D7C5F;
  --primary-dark: #085C46;
  --primary-light: #E4F3ED;
  --primary-glow: rgba(13,124,95,0.16);
  --accent: #E8913A;
  --accent-soft: #FBF0E3;
  --text: #16241E;
  --text-sub: #64796F;
  --text-light: #9DB0A6;
  --border: #E3ECE7;
  --danger: #E74C3C;
  --good: #1B9E6B;
  --warn: #E8913A;
  --bad: #D64541;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow-card: 0 2px 10px rgba(22,52,42,0.05), 0 8px 24px rgba(22,52,42,0.05);
  --shadow-float: 0 6px 20px rgba(13,124,95,0.22);
  --grad-primary: linear-gradient(135deg, #0FA377 0%, #0D7C5F 55%, #085C46 100%);
  --grad-soft: linear-gradient(160deg, #FFFFFF 0%, #F6FAF8 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(1200px 500px at 100% -10%, rgba(13,124,95,0.05), transparent 60%),
    radial-gradient(900px 420px at -20% 30%, rgba(232,145,58,0.04), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
  padding-bottom: 92px;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

/* ===== Header ===== */
.header {
  background: var(--grad-primary);
  color: #fff;
  padding: 15px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 18px rgba(13,124,95,0.28);
}
.header-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 1px;
}
.header-right {
  font-size: 12px;
  font-weight: 600;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 4px 12px;
  border-radius: 20px;
  backdrop-filter: blur(6px);
}

/* ===== Container / Page ===== */
.container { padding: 14px 14px 20px; max-width: 540px; margin: 0 auto; }
.page { display: none; }
.page.active { display: block; animation: pageIn 0.28s cubic-bezier(0.22,0.9,0.36,1); }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ===== Section head ===== */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 2px 10px;
}
.section-title { font-size: 16.5px; font-weight: 800; color: var(--text); letter-spacing: 0.3px; }
.count-badge {
  font-size: 11.5px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 12px;
  border-radius: 14px;
  font-weight: 700;
}

/* ===== Revenue Hero（玻璃质感金额卡） ===== */
.revenue-hero {
  margin-top: 16px;
  position: relative;
  background: var(--grad-primary);
  border-radius: 20px;
  padding: 20px 20px 18px;
  color: #fff;
  box-shadow: var(--shadow-float);
  overflow: hidden;
}
.revenue-hero::before {
  content: '';
  position: absolute;
  width: 210px; height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.14), transparent 70%);
  top: -90px; right: -60px;
}
.revenue-hero::after {
  content: '';
  position: absolute;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,145,58,0.22), transparent 70%);
  bottom: -70px; left: -40px;
}
.revenue-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.revenue-label { font-size: 13px; opacity: 0.92; font-weight: 500; }
.revenue-week {
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 3px 10px;
  border-radius: 14px;
  backdrop-filter: blur(6px);
}
.revenue-input-wrap {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.14);
  border-radius: 14px;
  padding: 8px 16px;
  border: 1.5px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 1;
  transition: border-color 0.2s, background 0.2s;
}
.revenue-input-wrap:focus-within { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.2); }
.currency { font-size: 22px; font-weight: 800; margin-right: 8px; }
.revenue-input {
  border: none;
  background: transparent;
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  width: 100%;
  outline: none;
  letter-spacing: 0.5px;
}
.revenue-input::placeholder { color: rgba(255,255,255,0.4); }
.revenue-meta { font-size: 11.5px; opacity: 0.85; margin-top: 10px; position: relative; z-index: 1; }

/* ===== Search ===== */
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(22,52,42,0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-bar:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.search-ico { color: var(--text-light); flex-shrink: 0; }
.search-bar input {
  border: none; outline: none; background: transparent;
  font-size: 14px; width: 100%; color: var(--text);
}

/* ===== 订货页操作按钮 ===== */
.order-actions {
  display: flex;
  gap: 10px;
  margin: 12px 0;
}
.action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px;
  border: none;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--grad-primary);
  box-shadow: 0 4px 14px rgba(13,124,95,0.25);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.action-btn:active { transform: scale(0.97); box-shadow: 0 2px 8px rgba(13,124,95,0.2); }
.action-btn .action-ico { font-size: 16px; }

/* ===== Station group（岗位分组卡） ===== */
.station-group {
  background: var(--card);
  border-radius: var(--radius);
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  border: 1px solid rgba(227,236,231,0.7);
}
.station-header {
  padding: 12px 16px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  background: var(--grad-soft);
}
.station-name {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 7px;
}
.station-name::before {
  content: '';
  width: 4px;
  height: 14px;
  border-radius: 2px;
  background: var(--grad-primary);
}

/* ===== Dish table ===== */
.dish-table-wrap { overflow-x: auto; }
.dish-table { width: 100%; border-collapse: collapse; }
.dish-table thead th {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 600;
  text-align: left;
  padding: 9px 14px 6px;
  letter-spacing: 0.5px;
}
.dish-table tbody td {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  vertical-align: middle;
}
.dish-table-row { cursor: pointer; transition: background 0.15s; }
.dish-table-row:active { background: var(--primary-light); }
.dish-name { font-weight: 600; color: var(--text); display: block; }
.dish-cost {
  display: inline-block;
  margin-top: 3px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-sub);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 1.5px 8px;
  border-radius: 10px;
}
.dish-cost.margin-good { color: #127B52; background: #E4F3ED; border-color: #C5E6D8; }
.dish-cost.margin-mid { color: #B06B1A; background: #FBF0E3; border-color: #F2DCC0; }
.dish-cost.margin-bad { color: #C0392B; background: #FCEAE8; border-color: #F5CFCB; }
.dish-sales-val { font-weight: 700; color: var(--primary); }
.col-name { width: 52%; }
.col-sales { width: 26%; }
.col-mat { width: 22%; text-align: right; }
td.col-mat { color: var(--text-sub); font-size: 12.5px; white-space: nowrap; }
.expand-arrow { display: inline-block; margin-left: 4px; color: var(--text-light); transition: transform 0.2s; }

.dish-detail-row td { background: #F8FBFA; }
.dish-detail { padding: 4px 10px 10px; }
.mat-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 10px; overflow: hidden; }
.mat-table th {
  font-size: 11px; color: var(--text-light); font-weight: 600;
  text-align: left; padding: 8px 12px 5px; letter-spacing: 0.5px;
}
.mat-table td {
  font-size: 13px;
  padding: 9px 12px;
  border-top: 1px solid var(--border);
  color: var(--text);
}
.mat-table td:nth-child(2), .mat-table td:nth-child(3) { text-align: right; white-space: nowrap; color: var(--text-sub); }

/* ===== Order list ===== */
.order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 16px;
  border-top: 1px solid var(--border);
}
.order-item:first-of-type { border-top: none; }
.order-name { font-size: 14px; color: var(--text); font-weight: 500; }
.order-value { font-size: 15px; font-weight: 800; color: var(--primary); white-space: nowrap; }

/* ===== Settings ===== */
.settings-group { margin-bottom: 18px; }
.group-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-sub);
  margin: 0 4px 8px;
  letter-spacing: 0.5px;
}
.group-desc { font-size: 12px; color: var(--text-light); margin: -4px 4px 10px; line-height: 1.5; }
.menu-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  padding: 15px 16px;
  border-radius: var(--radius);
  margin-bottom: 10px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(227,236,231,0.7);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.menu-card:active { transform: scale(0.985); }
.menu-ico {
  font-size: 20px;
  width: 42px; height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  border-radius: 12px;
  flex-shrink: 0;
}
.menu-body { flex: 1; }
.menu-name { font-size: 14.5px; font-weight: 600; color: var(--text); }
.menu-sub { font-size: 11.5px; color: var(--text-light); margin-top: 2px; }
.menu-arrow { color: var(--text-light); font-size: 20px; font-weight: 300; }

/* ===== 一周营业额预估编辑 ===== */
.week-rev-edit {
  background: var(--card);
  border-radius: var(--radius);
  padding: 6px 16px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(227,236,231,0.7);
}
.week-rev-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-top: 1px solid var(--border);
}
.week-rev-row:first-child { border-top: none; }
.week-rev-day { font-size: 14px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 6px; }
.today-tag {
  font-size: 10px;
  color: #fff;
  background: var(--grad-primary);
  padding: 1px 7px;
  border-radius: 8px;
  font-weight: 700;
}
.week-rev-input-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 6px 12px;
  transition: border-color 0.2s;
}
.week-rev-input-wrap:focus-within { border-color: var(--primary); }
.week-rev-input-wrap span { color: var(--text-sub); font-size: 13px; font-weight: 600; }
.week-rev-input-wrap input {
  border: none; outline: none; background: transparent;
  width: 90px; font-size: 14px; font-weight: 700; color: var(--text); text-align: right;
}
.week-rev-row.today { background: linear-gradient(90deg, var(--primary-light), transparent 70%); margin: 0 -16px; padding: 11px 16px; }

/* ===== Tab bar（现代底部导航） ===== */
.tab-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  display: flex;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 6px 10px calc(10px + env(safe-area-inset-bottom));
  z-index: 200;
  box-shadow: 0 -4px 20px rgba(22,52,42,0.06);
}
.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  color: var(--text-light);
  cursor: pointer;
  padding: 6px 0;
  border-radius: 12px;
  transition: color 0.2s, background 0.2s;
}
.tab-icon { font-size: 20px; line-height: 1; transition: transform 0.2s; }
.tab.active { color: var(--primary); font-weight: 700; }
.tab.active .tab-icon { transform: translateY(-1px) scale(1.12); }
.tab:active { background: var(--primary-light); }

/* ===== Modal ===== */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(10,26,20,0.5);
  backdrop-filter: blur(3px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-box {
  background: var(--card);
  border-radius: 20px;
  width: 100%;
  max-width: 400px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(10,26,20,0.3);
  animation: modalIn 0.25s cubic-bezier(0.22,0.9,0.36,1);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(0.97); } to { opacity: 1; transform: none; } }
.modal-title {
  font-size: 16px;
  font-weight: 800;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  position: sticky;
  top: 0;
  background: var(--card);
  z-index: 2;
  padding-right: 52px;
}
.modal-close-x {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 30px; height: 30px;
  border: none;
  background: var(--bg);
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.15s;
}
.modal-close-x:hover { background: var(--border); }
.modal-close-x:active { transform: scale(0.92); }
.modal-body { padding: 16px 18px; }
.modal-actions {
  display: flex;
  gap: 10px;
  padding: 12px 18px 16px;
  border-top: 1px solid var(--border);
  position: sticky;
  bottom: 0;
  background: var(--card);
}
.modal-btn {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.12s, filter 0.15s;
}
.modal-btn:active { transform: scale(0.97); }
.modal-btn.cancel { background: var(--bg); color: var(--text-sub); border: 1px solid var(--border); }
.modal-btn.ok { background: var(--grad-primary); color: #fff; box-shadow: 0 3px 10px rgba(13,124,95,0.3); }
.modal-msg { color: var(--text); font-size: 14px; line-height: 1.65; }

/* ===== Form ===== */
.form-row { margin-bottom: 12px; }
.form-row label {
  display: block;
  font-size: 12.5px;
  color: var(--text-sub);
  font-weight: 600;
  margin-bottom: 5px;
}
.form-row input, .form-row select {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--border);
  border-radius: 11px;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.form-row input:focus, .form-row select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); background: #fff; }
.help-text { font-size: 12px; color: var(--text-light); line-height: 1.5; }
.modal-msg { color: var(--text); font-size: 14px; line-height: 1.65; }

/* ===== Toast ===== */
#toastRoot {
  position: fixed;
  bottom: 110px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  z-index: 400;
  pointer-events: none;
}
.toast {
  background: rgba(22,36,30,0.92);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 22px;
  margin-top: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  backdrop-filter: blur(6px);
  animation: toastIn 0.3s cubic-bezier(0.22,0.9,0.36,1);
}
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(0.95); } to { opacity: 1; transform: none; } }

/* ===== Empty state ===== */
.empty-state {
  text-align: center;
  color: var(--text-light);
  font-size: 13.5px;
  padding: 40px 0;
  background: var(--card);
  border-radius: var(--radius);
  border: 1.5px dashed var(--border);
}

/* ===== Admin panel ===== */
.admin-panel {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 250;
  flex-direction: column;
}
.admin-header {
  background: var(--grad-primary);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(13,124,95,0.28);
}
.admin-back {
  background: rgba(255,255,255,0.16);
  border: none;
  color: #fff;
  font-size: 22px;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
}
.admin-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 3px 10px;
  border-radius: 12px;
}
.admin-body { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.admin-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.admin-tab {
  flex: 1;
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-sub);
  padding: 9px 0;
  border-radius: 11px;
  cursor: pointer;
  background: var(--bg);
  transition: all 0.2s;
}
.admin-tab.active {
  color: #fff;
  background: var(--grad-primary);
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(13,124,95,0.25);
}
.admin-content { flex: 1; overflow-y: auto; padding: 14px; }
/* 右下部「回到顶部」按钮 */
.admin-body { position: relative; }
.admin-top {
  position: absolute; right: 16px; bottom: 16px; z-index: 60;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; line-height: 1; cursor: pointer;
  background: var(--primary); color: #fff;
  border: none; box-shadow: 0 4px 14px rgba(0,0,0,0.28);
  opacity: 0; pointer-events: none; transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s, filter 0.15s;
}
.admin-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.admin-top:active { filter: brightness(0.9); }
/* 历史记录日历 */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-head { text-align: center; font-size: 12px; color: var(--text-sub); padding: 4px 0; font-weight: 600; }
.cal-cell {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 46px; border-radius: 8px; cursor: pointer;
  background: var(--card); border: 1px solid var(--border);
  transition: transform 0.1s, box-shadow 0.1s;
}
.cal-cell.empty { background: transparent; border: none; cursor: default; }
.cal-cell.has-rec { border-color: rgba(13,124,95,0.5); background: rgba(13,124,95,0.08); }
.cal-cell.today { box-shadow: inset 0 0 0 1px var(--primary); }
.cal-cell.picked { background: var(--primary); border-color: var(--primary); }
.cal-cell.picked .cal-num, .cal-cell.picked .cal-sub { color: #fff; }
.cal-num { font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.1; }
.cal-sub { font-size: 10px; color: var(--text-sub); margin-top: 1px; }
.cal-cell:active { transform: scale(0.95); }
/* 日历录入「保存」按钮：固定小宽度，不挤压金额输入框 */
.cal-save-btn {
  width: 62px; flex-shrink: 0; padding: 8px 0;
  border: none; border-radius: 8px;
  background: var(--grad-primary); color: #fff;
  font-size: 14px; font-weight: 700; cursor: pointer;
}
.cal-save-btn:active { filter: brightness(0.9); }
/* 录入页「回到顶部」按钮 */
.page-top {
  position: fixed; right: 16px; bottom: 72px; z-index: 50;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 18px; font-weight: bold;
  border: none; box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s;
}
.page-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.page-top:active { filter: brightness(0.9); }
.admin-section-title { font-size: 15px; font-weight: 800; color: var(--text); margin-bottom: 10px; }
.admin-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(227,236,231,0.7);
}
.admin-card-title { margin-bottom: 10px; }
.admin-sub-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-sub);
  margin: 12px 0 6px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}
.admin-field { margin-bottom: 9px; }
.admin-field label {
  display: block;
  font-size: 11.5px;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 4px;
}
.admin-field input, .admin-field select {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s;
}
.admin-field input:focus { border-color: var(--primary); background: #fff; }
.admin-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: var(--grad-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(13,124,95,0.25);
}
.admin-btn-sm {
  padding: 7px 14px;
  border: none;
  border-radius: 9px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 6px;
  transition: filter 0.15s;
}
.admin-btn-sm:active { filter: brightness(0.92); }
.admin-components { display: flex; flex-direction: column; gap: 6px; }
.admin-component-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
  border-radius: 9px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text);
  border: 1px solid var(--border);
}

/* ===== 滚动条 ===== */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-thumb { background: rgba(100,121,111,0.25); border-radius: 2px; }
::-webkit-scrollbar-track { background: transparent; }
