/* 管理端后台布局（同会员中心设计语言，独立于 /console） */
body.adm { background: var(--mc-bg); }
.adm-shell { display: flex; min-height: 100vh; }
.adm-side { width: 232px; flex: 0 0 232px; background: #fff; border-right: 1px solid var(--mc-line);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; z-index: 40; transition: width .18s; }
.adm-side .brand { height: 64px; display: flex; align-items: center; gap: 10px; padding: 0 18px; border-bottom: 1px solid var(--mc-line); }
.adm-side .brand i { width: 32px; height: 32px; border-radius: 9px; background: var(--mc-primary); color: #fff;
  display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 13px; }
.adm-side .brand b { font-size: 15px; white-space: nowrap; }
.adm-side .brand span { font-size: 10.5px; color: var(--mc-ink-3); display: block; font-weight: 400; margin-top: -2px; white-space: nowrap; }
.adm-nav { padding: 14px 10px; overflow-y: auto; flex: 1; }
.adm-nav .grp { margin: 12px 0 5px; padding: 0 10px; font-size: 11px; color: var(--mc-ink-3); letter-spacing: .4px; white-space: nowrap; }
.adm-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--mc-ink-2);
  font-size: 13.5px; margin: 2px 0; white-space: nowrap; }
.adm-nav a .ic { width: 20px; text-align: center; font-size: 14px; }
.adm-nav a:hover { background: var(--mc-soft); color: var(--mc-ink); }
.adm-nav a.on { background: #EEF4FF; color: var(--mc-primary); font-weight: 600; }
.adm-nav a .cnt { margin-left: auto; background: #FEF3F2; color: #B42318; border-radius: 999px;
  font-size: 10.5px; padding: 0 6px; font-weight: 600; }
.adm-side .foot { border-top: 1px solid var(--mc-line); padding: 10px; }
.adm-side .foot button { width: 100%; display: flex; align-items: center; gap: 9px; padding: 9px 10px; border: 0;
  background: transparent; border-radius: 8px; color: var(--mc-ink-2); cursor: pointer; font-family: inherit; font-size: 13px; }
.adm-side .foot button:hover { background: var(--mc-soft); }
.adm-side.collapsed { width: 64px; flex-basis: 64px; }
.adm-side.collapsed .brand b, .adm-side.collapsed .brand span, .adm-side.collapsed .grp,
.adm-side.collapsed .adm-nav a span.txt, .adm-side.collapsed .adm-nav a .cnt, .adm-side.collapsed .foot button span { display: none; }
.adm-side.collapsed .brand { justify-content: center; padding: 0; }
.adm-side.collapsed .adm-nav a { justify-content: center; padding: 10px 0; }
.adm-side.collapsed .adm-nav a .ic { font-size: 16px; }
.adm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.adm-top { height: 64px; background: #fff; border-bottom: 1px solid var(--mc-line); display: flex; align-items: center;
  gap: 14px; padding: 0 22px; position: sticky; top: 0; z-index: 30; }
.adm-top .hamb { border: 0; background: transparent; font-size: 18px; cursor: pointer; color: var(--mc-ink-2); }
.adm-crumb h1 { margin: 0; font-size: 16px; line-height: 1.2; }
.adm-crumb .bc { font-size: 11.5px; color: var(--mc-ink-3); margin-top: 2px; }
.adm-top .grow { flex: 1; }
.adm-search { display: flex; align-items: center; gap: 6px; height: 34px; border: 1px solid var(--mc-line);
  border-radius: 9px; padding: 0 10px; color: var(--mc-ink-3); background: #FAFBFD; }
.adm-search input { border: 0; background: transparent; outline: none; width: 150px; font-family: inherit; font-size: 12.5px; }
.adm-top select { height: 34px; border: 1px solid var(--mc-line); border-radius: 9px; padding: 0 8px;
  font-family: inherit; font-size: 12.5px; background: #fff; color: var(--mc-ink-2); }
.adm-bell { position: relative; border: 0; background: transparent; font-size: 17px; cursor: pointer; color: var(--mc-ink-2); }
.adm-bell .dot { position: absolute; right: -2px; top: 0; width: 7px; height: 7px; background: var(--mc-danger); border-radius: 50%; }
.adm-user { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 5px 8px; border-radius: 9px; position: relative; }
.adm-user:hover { background: var(--mc-soft); }
.adm-user .av { width: 30px; height: 30px; border-radius: 50%; background: #EEF4FF; color: var(--mc-primary);
  display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.adm-user .nm { font-size: 12.5px; color: var(--mc-ink); }
.adm-menu { position: absolute; top: 44px; right: 0; background: #fff; border: 1px solid var(--mc-line); border-radius: 11px;
  box-shadow: var(--mc-shadow); min-width: 160px; padding: 5px; display: none; z-index: 50; }
.adm-menu.on { display: block; }
.adm-menu button { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 8px 10px;
  border-radius: 7px; cursor: pointer; font-family: inherit; font-size: 12.5px; color: var(--mc-ink); }
.adm-menu button:hover { background: var(--mc-soft); }
main.adm-content { display: block; padding: 22px; max-width: 1280px; width: 100%; margin: 0 auto; }
.adm-content { padding: 22px; max-width: 1280px; width: 100%; margin: 0 auto; }
.adm-page { display: none; }
.adm-page.on { display: block; }
.adm-head { display: flex; align-items: baseline; gap: 12px; margin: 0 0 16px; }
.adm-head h2 { margin: 0; font-size: 20px; }
.adm-head .sub { color: var(--mc-ink-3); font-size: 12.5px; }
.adm-head .grow { flex: 1; }
.adm-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.adm-kpi { background: #fff; border: 1px solid var(--mc-line); border-radius: 14px; padding: 16px; position: relative; overflow: hidden; }
.adm-kpi .k { font-size: 12.5px; color: var(--mc-ink-3); }
.adm-kpi .v { font-size: 27px; font-weight: 800; margin-top: 3px; font-variant-numeric: tabular-nums; }
.adm-kpi .s { font-size: 12px; color: var(--mc-ink-3); margin-top: 2px; }
.adm-kpi .spark { position: absolute; right: 12px; bottom: 12px; opacity: .9; }
.adm-grid3 { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 14px; margin-top: 14px; }
.adm-grid2 { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; margin-top: 14px; }
.adm-card { background: #fff; border: 1px solid var(--mc-line); border-radius: 14px; padding: 18px; min-width: 0; }
.adm-card h3 { margin: 0 0 4px; font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.adm-card h3 .more { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--mc-primary); cursor: pointer; }
.adm-card .sub { font-size: 12px; color: var(--mc-ink-3); margin-bottom: 10px; }
.adm-chart { width: 100%; height: 180px; }
.adm-donut-wrap { display: flex; align-items: center; gap: 20px; }
.adm-donut { width: 150px; height: 150px; flex: 0 0 150px; }
.adm-legend { font-size: 12.5px; color: var(--mc-ink-2); display: grid; gap: 8px; }
.adm-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; }
.adm-todo { display: grid; gap: 9px; }
.adm-todo .it { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; background: #FAFBFD;
  border: 1px solid var(--mc-line); font-size: 13px; }
.adm-todo .it b { margin-left: auto; }
.adm-filters { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.adm-filters .grow { flex: 1; }
.adm-table-card { background: #fff; border: 1px solid var(--mc-line); border-radius: 14px; overflow: hidden; }
.adm-table-card .hd { padding: 16px 18px 10px; }
.adm-table-card .hd h3 { margin: 0; font-size: 15px; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 620px; }
.adm-table th { position: sticky; top: 0; background: #F8FAFD; text-align: left; color: var(--mc-ink-3);
  font-size: 11.5px; font-weight: 500; padding: 10px 14px; border-bottom: 1px solid var(--mc-line); white-space: nowrap; z-index: 1; }
.adm-table td { padding: 12px 14px; border-bottom: 1px solid #F2F4F7; vertical-align: middle; }
.adm-table tbody tr:nth-child(even) { background: #FCFDFE; }
.adm-table tbody tr:hover { background: #F7FAFF; }
.adm-table .right { text-align: right; }
.adm-table .small { font-size: 11.5px; color: var(--mc-ink-3); }
.adm-table-wrap { overflow: auto; max-height: 520px; }
.adm-pager { display: flex; justify-content: flex-end; align-items: center; gap: 6px; padding: 12px 16px; font-size: 12px; color: var(--mc-ink-3); }
.adm-pager button { min-width: 28px; height: 28px; border: 1px solid var(--mc-line); background: #fff; border-radius: 7px; cursor: pointer; }
.adm-pager button.on { border-color: var(--mc-primary); color: var(--mc-primary); font-weight: 700; }
.adm-pager button:disabled { opacity: .4; cursor: not-allowed; }
.adm-skel { background: linear-gradient(90deg, #EEF1F6 25%, #F7F9FC 37%, #EEF1F6 63%);
  background-size: 400% 100%; animation: mc-skel 1.2s ease infinite; border-radius: 8px; height: 14px; margin: 10px 0; }
.adm-empty { text-align: center; color: var(--mc-ink-3); padding: 38px 10px; font-size: 13px; }
.adm-drawer-mask { position: fixed; inset: 0; background: rgba(16,24,40,.4); z-index: 900; display: none; }
.adm-drawer-mask.on { display: block; }
.adm-drawer { position: fixed; right: 0; top: 0; bottom: 0; width: 430px; max-width: 92vw; background: #fff; z-index: 901;
  transform: translateX(100%); transition: .2s; display: flex; flex-direction: column; }
.adm-drawer.on { transform: translateX(0); }
.adm-drawer .dh { padding: 18px 20px; border-bottom: 1px solid var(--mc-line); display: flex; align-items: center; gap: 10px; }
.adm-drawer .dh h3 { margin: 0; font-size: 16px; }
.adm-drawer .dh button { margin-left: auto; border: 0; background: transparent; font-size: 18px; cursor: pointer; }
.adm-drawer .db { padding: 16px 20px; overflow: auto; }
.adm-drawer .sec { margin-bottom: 18px; }
.adm-drawer .sec h4 { margin: 0 0 8px; font-size: 13px; color: var(--mc-ink-2); }
.adm-kv2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; font-size: 12.5px; }
.adm-kv2 .k { color: var(--mc-ink-3); font-size: 11.5px; }
.adm-kv2 .v { font-weight: 600; margin-top: 1px; }
.adm-side-mask { display: none; }
.adm-mobile-bar { display: none; }
#page-jobs .adm-grid2 { grid-template-columns: 1fr; }
@media (max-width: 1100px) {
  .adm-grid3 { grid-template-columns: 1fr 1fr; }
  .adm-kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .adm-side { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%); width: 232px; flex-basis: 232px; }
  .adm-side.open { transform: translateX(0); }
  .adm-side-mask.on { display: block; position: fixed; inset: 0; background: rgba(16,24,40,.4); z-index: 39; }
  .adm-content { padding: 14px; }
  .adm-grid2, .adm-grid3 { grid-template-columns: 1fr; }
  .adm-kpis { grid-template-columns: 1fr 1fr; }
  .adm-search { display: none; }
  .adm-top { padding: 0 12px; gap: 6px; }
  .adm-bell { display: none; }
  .adm-top select { display: none; }
  .adm-crumb { flex: 1 1 auto; min-width: 0; }
  .adm-crumb h1 { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
  .adm-crumb .bc { display: none; }
  .adm-user .nm { display: none; }
  .adm-drawer { width: 100%; }
}

/* 2026-12 后台排版：更宽的内容区、统一的卡片/表格节奏、可编辑套餐卡 */
main.adm-content{max-width:1440px;padding:28px 32px 48px}
.adm-top{box-shadow:0 1px 0 rgba(16,24,40,.04)}
.adm-side{box-shadow:1px 0 0 rgba(16,24,40,.03)}
.adm-side .brand{height:68px;padding:0 20px}
.adm-nav{padding:16px 12px}
.adm-nav a{padding:10px 12px;border-radius:10px}
.adm-nav a.on{background:#EDF4FF;box-shadow:inset 3px 0 0 var(--mc-primary)}
.adm-head{align-items:center;flex-wrap:wrap;margin-bottom:18px}
.adm-head h2{font-size:22px;letter-spacing:-.2px}
.adm-head .sub{line-height:1.6}
.adm-kpis{gap:16px}
.adm-kpi{padding:18px 20px;border-radius:16px;box-shadow:0 1px 2px rgba(16,24,40,.04)}
.adm-kpi .v{font-size:30px;margin-top:4px}
.adm-grid3,.adm-grid2{gap:16px;margin-top:16px}
.adm-card,.adm-table-card{border-radius:16px;box-shadow:0 1px 2px rgba(16,24,40,.04)}
.adm-card{padding:20px}
.adm-table th{background:#F7F9FC;padding:11px 16px}
.adm-table td{padding:13px 16px}
.adm-filters{gap:10px}

/* 订阅与计费：三档卡固定三列，输入框不再挤成两列 */
#billing-plans{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 16px}
#billing-plans .adm-card{padding:18px}
#billing-plans .adm-card h3{font-size:15px;margin-bottom:12px}
#billing-plans label.mc-small{display:flex;flex-direction:column;gap:5px;font-size:11.5px;line-height:1.4}
#billing-plans input.mc-input{width:100%;height:34px;margin-top:1px;box-sizing:border-box}
#billing-plans input[type="checkbox"]{width:auto;height:auto}
#billing-plans button{height:36px;font-weight:600}
#page-billing > .adm-card{margin-top:16px}
#page-billing > .adm-card > .adm-filters{background:#F8FAFD;border:1px solid var(--mc-line);border-radius:12px;padding:12px}
#page-billing .adm-kv2 .v{font-size:13px}
@media (max-width:1200px){#billing-plans{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:767px){main.adm-content{padding:16px 14px 36px}#billing-plans{grid-template-columns:1fr}}
