@font-face{font-family:"Hui-iconfont";src:url('/admin/assets/fonts/hui-iconfont.woff') format('woff');font-weight:normal;font-style:normal;font-display:block}
.Hui-iconfont{font-family:"Hui-iconfont"!important;font-style:normal;font-weight:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --ink: #303133;
  --muted: #73777a;
  --line: #e5e5e5;
  --primary: #409eff;
  --primary-dark: #337ecc;
  --success: #18794e;
  --danger: #b42318;
  --warning: #a15c00;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif; color: var(--ink); background: var(--bg); font-size: 14px; }
a { color: var(--primary); text-decoration: none; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 240px minmax(0, 1fr); }
.admin-workspace { --admin-sidebar-width: 220px; --admin-workspace-top: 60px; overflow: hidden; }
.admin-frame { min-height: 100vh; display: grid; grid-template-columns: var(--admin-sidebar-width) minmax(0, 1fr); }
.workspace-sidebar { position: relative; z-index: 60; height: 100vh; display: grid; grid-template-rows: 60px 50px minmax(0,1fr); overflow: hidden; border-right: 1px solid #e5e5e5; background: #f9f9f9; }
.workspace-brand { height: 60px; display: flex; align-items: center; gap: 10px; padding: 0 22px; border-bottom: 1px solid #e5e5e5; background:#fff; color: #1f4173; }
.workspace-brand-mark { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 5px; background: var(--primary); color: #fff; font-weight: 700; }
.workspace-brand strong { font-size: 15px; }
.workspace-search { height: 50px; display: flex; align-items: center; gap: 7px; padding: 0 14px; color: #909399; background:#f9f9f9; }
.workspace-search input { width: 100%; min-height: 30px; padding: 5px 10px; border-radius: 16px; font-size: 12px; }
.workspace-nav { min-height:0; padding: 0 8px 24px; overflow-y:auto; overflow-x:hidden; background:#f9f9f9; scrollbar-width:thin; scrollbar-color:#b6b6b6 transparent; }
.workspace-nav::-webkit-scrollbar{width:6px}.workspace-nav::-webkit-scrollbar-thumb{border-radius:6px;background:#b6b6b6}.workspace-nav::-webkit-scrollbar-track{background:transparent}
.workspace-nav-group { margin-bottom: 2px; }
.workspace-nav-title { width: 100%; min-height: 40px; display: flex; align-items: center; justify-content: space-between; padding: 8px 8px; border: 0; background: transparent; color: #333; cursor: pointer; font: inherit; font-size: 14px; text-align: left; }
.workspace-nav-title:hover { color: #409eff; background: transparent; }
.workspace-nav-label{display:flex;align-items:center;gap:7px;min-width:0}.workspace-nav-icon{width:18px;text-align:center;color:#27313b;font-size:16px}.workspace-nav-title:hover .workspace-nav-icon{color:#409eff}
.workspace-nav-group[data-group="dashboard_group"] .workspace-nav-icon:before{content:"\e618"}.workspace-nav-group[data-group="users_group"] .workspace-nav-icon:before{content:"\e62b"}.workspace-nav-group[data-group="leaders_group"] .workspace-nav-icon:before{content:"\e62c"}.workspace-nav-group[data-group="merchants_group"] .workspace-nav-icon:before{content:"\e66a"}.workspace-nav-group[data-group="content_group"] .workspace-nav-icon:before{content:"\e626"}.workspace-nav-group[data-group="schools_group"] .workspace-nav-icon:before{content:"\e643"}.workspace-nav-group[data-group="operations_group"] .workspace-nav-icon:before{content:"\e61d"}.workspace-nav-group[data-group="ads_group"] .workspace-nav-icon:before{content:"\e635"}.workspace-nav-group[data-group="finance_group"] .workspace-nav-icon:before{content:"\e63a"}.workspace-nav-group[data-group="system_group"] .workspace-nav-icon:before{content:"\e62e"}.workspace-nav-group[data-group="permissions_group"] .workspace-nav-icon:before{content:"\e63f"}
.workspace-nav-arrow { color: #a7adb4; transition: transform .16s ease; }
.workspace-nav-group.open .workspace-nav-arrow { transform: rotate(180deg); }
.workspace-nav-items { display: none; padding: 0 0 4px; }
.workspace-nav-group.open .workspace-nav-items { display: grid; }
.workspace-nav-item { min-height: 35px; display: flex; align-items: center; margin:0; padding: 7px 12px 7px 26px; border-right: 3px solid transparent; color: #333; font-size: 13px; }
.workspace-nav-item:hover { color: #409eff; background: rgba(255,255,255,.55); }
.workspace-nav-item.active { border-right-color: #409eff; background: #e6f4ff; color: #409eff; }
.sidebar { position: sticky; top: 0; height: 100vh; background: #fff; color: var(--ink); padding: 12px; overflow-y: auto; border-right: 1px solid var(--line); }
.brand { height: 48px; display: flex; align-items: center; gap: 10px; color: #1f4173; font-size: 16px; font-weight: 700; padding: 0 10px; }
.brand-mark { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; border-radius: 7px; box-shadow: 0 6px 16px rgba(73,129,250,.24); }
.nav-list { display: grid; gap: 10px; margin-top: 18px; }
.nav-group { display: grid; gap: 5px; }
.nav-group-title { padding: 8px 10px 4px; color: #909399; font-size: 12px; font-weight: 700; letter-spacing: .04em; cursor: pointer; user-select: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nav-group-title::after { content: "›"; font-size: 16px; transform: rotate(0deg); transition: transform .16s ease; }
.nav-group.open .nav-group-title::after { transform: rotate(90deg); }
.nav-sub-list { display: grid; gap: 3px; }
.nav-group:not(.open) .nav-sub-list { display: none; }
.nav-item { color: #606266; padding: 10px 12px; border-radius: 4px; font-size: 13px; }
.nav-item:hover { color: var(--primary); background: #f5f8ff; }
.nav-item.active { color: var(--primary); background: #edf4ff; }
.main-content { min-width: 0; }
.frame-main { min-width: 0; display: grid; grid-template-rows: var(--admin-workspace-top) minmax(0, 1fr); height: 100vh; overflow: hidden; }
.workspace-topbar { position: relative; z-index: 50; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; overflow: hidden; border-bottom: 1px solid var(--line); background: #fff; box-shadow: 0 2px 7px rgba(31,65,115,.06); }
.frame-tabs { min-width: 0; display: flex; align-items: stretch; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; scrollbar-color: #cfd6e3 transparent; }
.frame-tabs::-webkit-scrollbar { height: 4px; }
.frame-tabs::-webkit-scrollbar-thumb { background: #cfd6e3; border-radius: 4px; }
.workspace-actions { position: relative; z-index: 2; display: flex; align-items: center; gap: 4px; padding: 0 14px; white-space: nowrap; border-left: 1px solid var(--line); background: #fff; box-shadow: -8px 0 14px rgba(31,65,115,.05); }
.workspace-icon-action,.workspace-text-action { min-height: 32px; border: 1px solid transparent; border-radius: 3px; background: transparent; color: #4e5969; cursor: pointer; font: inherit; }
.workspace-icon-action { width: 36px; font-size: 23px; }
.workspace-text-action { padding: 5px 8px; font-size: 12px; }
.workspace-icon-action:hover,.workspace-text-action:hover { background: #f3f6fa; color: var(--primary); }
.workspace-text-action.danger:hover { color: var(--danger); }
.workspace-user { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; color: #606266; font-size: 12px; }
.workspace-user i { width: 7px; height: 7px; border-radius: 50%; background: #35b85a; }
.workspace-logout { padding: 7px 4px 7px 8px; color: #4e5969; font-size: 12px; }
.frame-tab { flex: 0 0 auto; height: 59px; display: inline-flex; align-items: center; gap: 7px; padding: 0 16px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: #fff; color: var(--muted); cursor: pointer; white-space: nowrap; font: inherit; font-size: 13px; position: relative; }
.frame-tab:hover { background: #f5f8ff; color: var(--primary); }
.frame-tab.active { background: #fff; color: var(--primary); }
.frame-tab.active::after { content: ""; position: absolute; right: 10px; bottom: 0; left: 10px; height: 2px; background: var(--primary); border-radius: 2px 2px 0 0; }
.frame-tab-title { max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
.frame-tab-close { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 3px; color: #8c98a1; line-height: 1; }
.frame-tab-close:hover { background: #dfe8ed; color: var(--primary-dark); }
.content-frame { width: 100%; height: 100%; border: 0; background: var(--bg); }
.admin-embed { background: var(--bg); }
.admin-embed .page-content { padding-top: 20px; }
.admin-embed { background: #fff; }
.admin-embed .page-content { padding: 10px 12px 36px; }
.admin-embed .panel { margin-bottom: 12px; border-color: #e2e6ec; border-radius: 2px; box-shadow: none; }
.admin-embed .panel-header { min-height: 46px; padding: 10px 14px; }
.admin-embed .panel-header h2 { font-size: 15px; }
.admin-embed .panel-body { padding: 12px 14px; }
.admin-embed input,.admin-embed select,.admin-embed textarea { border-color: #cfd6df; border-radius: 3px; }
.admin-embed th,.admin-embed td { padding: 10px 9px; border-color: #e5e9ef; }
.admin-embed th { background: #f8fafc; color: #4e5969; }
.admin-embed .btn { border-radius: 3px; }
.topbar { min-height: 66px; background: var(--surface); border-bottom: 1px solid var(--line); padding: 13px 24px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 2px 2px rgba(0,0,0,.03); }
.topbar h1 { margin: 0; font-size: 21px; }
.topbar p { margin: 5px 0 0; color: var(--muted); }
.admin-meta { display: flex; align-items: center; gap: 16px; }
.page-content { padding: 20px 24px 48px; }
.alert { margin: 18px 28px 0; padding: 12px 14px; border-radius: 4px; }
.alert-success { background: #e9f7ef; color: var(--success); border: 1px solid #b7dfc7; }
.alert-error { background: #fff0ee; color: var(--danger); border: 1px solid #f4c7c2; }
.admin-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(420px, calc(100vw - 48px));
  min-width: 180px;
  padding: 14px 18px;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  box-shadow: 0 14px 42px rgba(22, 34, 51, .24);
  transform: translate(-50%, -50%);
  opacity: 1;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}
.admin-toast.is-leaving {
  visibility: hidden;
  opacity: 0;
  transform: translate(-50%, calc(-50% - 8px));
}
.admin-toast-success { background: rgba(24, 121, 78, .94); }
.admin-toast-error { background: rgba(180, 35, 24, .94); }
.admin-toast-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  font-size: 13px;
  font-weight: 800;
}
.stats-grid { display: grid; grid-template-columns: repeat(5, minmax(140px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stats-grid-wide { grid-template-columns: repeat(5, minmax(150px, 1fr)); }
.stat-card, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; }
.stat-card { padding: 18px; transition: transform .18s ease, box-shadow .18s ease; }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(31,65,115,.08); }
.stat-card span { display: block; color: var(--muted); margin-bottom: 8px; }
.stat-card strong { font-size: 26px; }
.stat-card small { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }
.mini-chart-grid { display: grid; grid-template-columns: repeat(6, minmax(130px, 1fr)); gap: 14px; }
.mini-chart { min-height: 150px; padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: linear-gradient(180deg, #fff, #f8fbfd); }
.mini-chart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; color: var(--ink); }
.bars { height: 96px; display: flex; align-items: flex-end; gap: 8px; padding-top: 8px; border-bottom: 1px solid #dbe5ea; }
.bar { flex: 1; min-width: 8px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #3f8bb4, #245b78); box-shadow: 0 4px 10px rgba(36, 91, 120, .22); }
.trend-summary-grid { grid-template-columns: repeat(3, minmax(180px, 1fr)); }
.trend-chart-panel > .panel-header { min-height: 64px; flex-wrap: wrap; }
.trend-chart-body { position: relative; width: 100%; min-width: 0; padding: 14px 16px 8px; overflow: hidden; }
.trend-canvas { display: block; width: 100%; max-width: 100%; cursor: crosshair; }
.trend-tooltip { position: absolute; z-index: 5; display: none; min-width: 160px; padding: 10px 12px; border: 1px solid #dfe5ef; border-radius: 5px; background: rgba(255,255,255,.97); color: var(--ink); box-shadow: 0 8px 24px rgba(31,65,115,.14); pointer-events: none; }
.trend-tooltip.visible { display: grid; gap: 7px; }
.trend-tooltip strong { font-size: 13px; color: #1f4173; }
.trend-tooltip span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.chart-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 12px; }
.chart-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 9px; height: 9px; display: inline-block; border-radius: 50%; }
.legend-users { background: #4981fa; }
.legend-active { background: #8b5cf6; }
.legend-posts { background: #25b7a5; }
.legend-comments { background: #ec4899; }
.legend-likes { background: #ef4444; }
.legend-paid { background: #f59e0b; }
.core-chart-legend { justify-content: flex-end; }
.core-trend-tooltip { min-width: 190px; }
.core-chart-grid { display: grid; grid-template-columns: repeat(3, minmax(260px, 1fr)); gap: 14px; }
.core-chart-card { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 5px; background: linear-gradient(180deg, #fff, #fbfcff); }
.core-chart-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.core-chart-card-head strong { color: var(--ink); font-size: 14px; }
.core-chart-card-head > span { color: var(--primary); font-size: 17px; font-weight: 700; text-align: right; }
.core-chart-card-head small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; font-weight: 400; }
.core-chart-canvas-wrap { position: relative; min-width: 0; overflow: hidden; }
.core-trend-canvas { min-width: 0; }
.core-single-tooltip { min-width: 145px; }
.operation-record-toolbar > input[name="q"] { min-width: min(440px, 100%); flex: 1; }
.filter-date { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.filterable-table { min-width: 1320px; }
.table-filter-row th { padding: 7px 5px; background: #f7f9fc; }
.table-filter-row input, .table-filter-row select { width: 100%; min-width: 92px; min-height: 31px; padding: 5px 7px; font-size: 12px; font-weight: 400; }
.table-filter-row th:nth-child(1) input { min-width: 66px; }
.table-filter-row th:nth-child(2) input { min-width: 76px; }
.operation-content-cell { max-width: 320px; }
.panel { margin-bottom: 18px; overflow: hidden; }
.section-anchor { scroll-margin-top: 76px; }
.panel-header { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.panel-header h2 { margin: 0; font-size: 16px; }
.panel-body { padding: 16px; }
.toolbar, .form-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.toolbar { margin-bottom: 16px; }
input, select, textarea { min-height: 36px; border: 1px solid #cbd3d9; border-radius: 4px; background: #fff; color: var(--ink); padding: 7px 10px; font: inherit; }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid #b8d5e4; border-color: var(--primary); }
.field { display: grid; gap: 6px; min-width: 180px; }
.field label { color: var(--muted); font-size: 13px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; border: 1px solid transparent; border-radius: 4px; padding: 7px 12px; background: var(--primary); color: #fff; cursor: pointer; font: inherit; }
.btn:hover { background: var(--primary-dark); }
.btn-secondary { background: #fff; border-color: #bfc8ce; color: var(--ink); }
.btn-danger { background: #fff; border-color: #e1a9a4; color: var(--danger); }
.btn-danger:hover { background: #fff0ee; color: var(--danger); border-color: #d98b84; }
.btn-warning { background: #fff; border-color: #e0bd8c; color: var(--warning); }
.btn-small { min-height: 28px; padding: 4px 8px; font-size: 12px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; white-space: nowrap; }
th { color: var(--muted); font-size: 12px; font-weight: 600; background: #fff; }
.resizable-table { table-layout: fixed; min-width: 100%; }
.resizable-table th { position: relative; }
.resizable-table th, .resizable-table td { overflow: hidden; text-overflow: ellipsis; }
.resizable-table td.wrap { overflow: visible; text-overflow: clip; }
.column-resizer { position: absolute; top: 0; right: -3px; bottom: 0; z-index: 3; width: 7px; cursor: col-resize; user-select: none; }
.column-resizer::after { content: ""; position: absolute; top: 8px; right: 3px; bottom: 8px; width: 1px; background: #cfd6df; }
.column-resizer:hover::after, body.is-resizing-column .column-resizer::after { background: var(--primary); }
body.is-resizing-column { cursor: col-resize; user-select: none; }
tbody tr:hover { background: #ecf5ff; }
td.wrap { white-space: normal; min-width: 260px; line-height: 1.5; }
.avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #edf1f3; }
.badge { display: inline-flex; align-items: center; min-height: 22px; padding: 2px 7px; border-radius: 3px; background: #edf1f3; color: #4d5963; font-size: 12px; }
.badge-success { background: #e7f5ed; color: var(--success); }
.badge-danger { background: #fff0ee; color: var(--danger); }
.badge-warning { background: #fff4e5; color: var(--warning); }
.actions { display: flex; flex-wrap: wrap; gap: 6px; }
.inline-form { display: inline; }
details { position: static; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
.drawer-mask { display: none; }
details[open] .drawer-mask {
  display: block;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(15, 23, 42, 0.48);
  z-index: 70;
}
.edit-popover {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 80vw;
  min-width: 640px;
  max-width: calc(100vw - 24px);
  padding: 16px;
  background: #fff;
  border-left: 1px solid var(--line);
  border-radius: 0;
  box-shadow: -10px 0 24px rgba(22,32,42,.16);
  display: grid;
  gap: 10px;
  overflow-y: auto;
  z-index: 80;
}
.edit-popover.wide-popover { width: 88vw; }
.edit-popover.wide-popover textarea { width: 100%; min-height: 260px; }
.admin-embed .edit-popover { grid-template-columns: repeat(4,minmax(0,1fr)); grid-auto-rows: max-content; gap: 0; padding: 54px 0 18px; border-left: 1px solid #dfe4ea; box-shadow: -8px 0 18px rgba(31,45,61,.12); }
.admin-embed .edit-popover > .drawer-heading { position: absolute; top: 0; right: 0; left: 0; min-height: 54px; padding: 10px 14px; background: #fff; z-index: 2; }
.admin-embed .edit-popover > label { min-width: 0; min-height: 68px; display: grid; grid-template-columns: minmax(80px,32%) minmax(0,1fr); align-content: center; align-items: center; gap: 7px; padding: 9px 12px; border-right: 1px solid #e5e9ef; border-bottom: 1px solid #e5e9ef; color: #303133; }
.admin-embed .edit-popover > label > input,.admin-embed .edit-popover > label > select,.admin-embed .edit-popover > label > textarea { width: 100%; min-width: 0; }
.admin-embed .edit-popover > label > .field-help,.admin-embed .edit-popover > label > small,.admin-embed .edit-popover > label > .muted { grid-column: 2; }
.admin-embed .edit-popover > .btn:last-child { grid-column: 1/-1; justify-self: end; min-width: 92px; margin: 14px; }
.admin-embed .edit-popover > .lottery-check,.admin-embed .edit-popover > .checkbox-line { display: flex!important; grid-template-columns: none; align-items: center; padding: 9px 12px; }
.admin-embed .edit-popover > .drawer-heading + input[type="hidden"] { display: none; }
.admin-embed .post-detail-popover { grid-template-columns: 1fr; padding-right: 16px; padding-left: 16px; }
.admin-embed .post-detail-popover > * { grid-column: 1/-1; }
.post-detail-popover { align-content: start; gap: 16px; }
.post-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.post-detail-head strong { color: var(--ink); font-size: 17px; }
.post-detail-content { min-height: 88px; padding: 15px; border-radius: 4px; background: #f7f9fc; color: var(--ink); line-height: 1.75; white-space: normal; word-break: break-word; }
.post-detail-metrics { padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); background: #fff; }
.post-comments-head { display: flex; align-items: center; justify-content: space-between; padding-top: 2px; }
.post-comments-list { display: grid; gap: 10px; }
.post-comment { padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.post-comment.is-hidden-comment { background: #fafafa; opacity: .76; }
.post-comment-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.post-comment-meta span, .post-comment-reply { color: var(--muted); font-size: 12px; }
.post-comment-reply { margin-top: 5px; }
.post-comment-content { padding: 9px 0; line-height: 1.65; color: var(--ink); word-break: break-word; }
.post-comment-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.post-comments-empty { padding: 28px; border: 1px dashed var(--line); border-radius: 4px; }
.header-drawer > summary { list-style: none; }
.header-drawer > summary::-webkit-details-marker { display: none; }
.school-add-drawer { align-content: start; gap: 14px; }
.drawer-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.drawer-heading > div { display: grid; gap: 4px; }
.drawer-heading strong { color: var(--ink); font-size: 17px; }
.drawer-close { width: 30px; height: 30px; border: 0; border-radius: 4px; background: #f0f2f5; color: var(--muted); cursor: pointer; font-size: 20px; line-height: 1; }
.drawer-close:hover { background: #e7ebf0; color: var(--ink); }
.school-search-toolbar input[name="q"] { width: min(460px, 100%); }
.school-with-logo { display: flex; align-items: center; gap: 10px; }
.school-logo { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 6px; object-fit: cover; border: 1px solid var(--line); background: #fff; }
.school-logo-placeholder { display: inline-flex; align-items: center; justify-content: center; background: #edf4ff; color: var(--primary); font-size: 13px; font-weight: 700; }
.edit-popover label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; }
.edit-popover .checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}
.edit-popover .checkbox-line input {
  width: auto;
}
.image-preview-modal {
  position: fixed;
  inset: 43px 0 0;
  background: rgba(15, 23, 42, 0.75);
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.image-preview-modal.is-visible { display: flex; }
.image-preview-dialog {
  position: relative;
  max-width: min(1200px, 92vw);
  max-height: calc(100vh - 100px);
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 22px 36px rgba(2, 6, 23, 0.35);
}
.image-preview-dialog img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 150px);
  object-fit: contain;
}
.image-preview-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.image-preview-close:hover { background: rgba(15, 23, 42, 0.92); }
.link-button {
  border: 0;
  background: none;
  color: var(--primary);
  cursor: pointer;
  padding: 0;
  font: inherit;
}
.link-button:hover { color: var(--primary-dark); text-decoration: underline; }
.empty { padding: 42px; text-align: center; color: var(--muted); }
.login-page { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(circle at 20% 15%, #edf4ff 0, transparent 34%), linear-gradient(135deg, #f7faff, #eef2f7); }
.login-box { width: min(420px, calc(100vw - 32px)); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 34px; box-shadow: 0 20px 60px rgba(31,65,115,.12); }
.login-brand { display: flex; align-items: center; gap: 10px; color: #1f4173; font-size: 17px; font-weight: 700; margin-bottom: 28px; }
.login-box h1 { margin: 0 0 6px; }
.login-box p { color: var(--muted); margin: 0 0 22px; }
.login-box form { display: grid; gap: 15px; }
.login-box .btn { width: 100%; }
.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; }
.muted { color: var(--muted); }
.number-positive { color: var(--success); }
.number-negative { color: var(--danger); }

/* ysxy-style two-level administration shell */
.module-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: #fff;
  border-right: 1px solid var(--line);
  z-index: 60;
}
.module-brand {
  height: 66px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  color: #1f4173;
  font-size: 14px;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}
.module-list { padding: 12px; display: grid; gap: 7px; }
.module-item {
  width: 64px;
  min-height: 44px;
  padding: 7px 4px;
  border: 0;
  border-radius: 6px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: transparent;
  color: #969696;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}
.module-item:hover { color: var(--primary); background: #f5f8ff; }
.module-item.active { color: #fff; background: #3a7ef5; box-shadow: 0 7px 16px rgba(58,126,245,.22); }
.submenu-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: #f9f9f9;
  border-right: 1px solid var(--line);
  z-index: 55;
}
.submenu-panel { display: none; padding: 0 12px 24px; }
.submenu-panel.active { display: block; }
.submenu-title {
  height: 66px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: #333;
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid #eee;
}
.submenu-list { padding-top: 12px; display: grid; gap: 4px; }
.submenu-list .nav-item { display: flex; align-items: center; justify-content: space-between; min-height: 40px; }
.submenu-list .nav-arrow { color: #c0c4cc; font-size: 17px; opacity: 0; transform: translateX(-4px); transition: all .16s ease; }
.submenu-list .nav-item:hover .nav-arrow,
.submenu-list .nav-item.active .nav-arrow { opacity: 1; transform: translateX(0); color: var(--primary); }
.workspace-header {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 2px rgba(0,0,0,.03);
  z-index: 52;
}
.workspace-product { display: flex; align-items: center; gap: 10px; color: #1f4173; }
.workspace-product strong { font-size: 15px; }
.workspace-product span { color: #c0c4cc; }
.workspace-product em { padding: 5px 10px; border-radius: 4px; background: #f0f2f5; color: #1f4173; font-style: normal; }
.workspace-actions { display: flex; align-items: center; gap: 8px; }
.header-action {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #1f4173;
  cursor: pointer;
  font: inherit;
}
.header-action:hover { background: #f0f2f5; color: var(--primary); }
.header-user { padding: 5px 9px; color: #606266; }
.header-user::first-letter { color: #67c23a; }

@media (max-width: 960px) {
  .app-shell { grid-template-columns: 1fr; }
  .admin-workspace { --admin-sidebar-width: 190px; }
  .admin-frame { grid-template-columns: var(--admin-sidebar-width) minmax(620px, 1fr); }
  .frame-main { height: 100vh; }
  .workspace-text-action { display: none; }
  .sidebar { position: static; height: auto; }
  .nav-list { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .trend-summary-grid { grid-template-columns: repeat(3, minmax(160px, 1fr)); }
  .core-chart-grid { grid-template-columns: repeat(2, minmax(250px, 1fr)); }
  .two-col { grid-template-columns: 1fr; }
  details[open] .drawer-mask { top: 0; }
  .edit-popover {
    top: 0;
    width: min(720px, 100vw);
    min-width: 0;
    max-width: 100vw;
  }
  .image-preview-modal { inset: 0; }
}
@media (max-width: 560px) {
  .admin-workspace { --admin-sidebar-width: 160px; }
  .admin-frame { grid-template-columns: var(--admin-sidebar-width) minmax(560px, 1fr); }
  .workspace-brand { padding: 0 14px; }
  .workspace-search { margin: 0 8px; }
  .workspace-user { display: none; }
  .topbar, .page-content { padding-left: 16px; padding-right: 16px; }
  .nav-list { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr; }
  .trend-summary-grid { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
  .core-chart-grid { grid-template-columns: 1fr; }
}
.pagination{display:flex;justify-content:flex-end;align-items:center;gap:12px;padding:16px 20px;color:#64748b;font-size:13px}
.promotion-review-actions{display:grid;gap:8px;min-width:260px}.promotion-review-actions .inline-form{display:flex;gap:6px;align-items:center}.promotion-review-actions input{min-width:150px}
