/* 国联天成运营管理平台：桌面工作台、移动抽屉与内容管理组件 */
:root {
  --primary: #165DFF;
  --primary-dark: #0E42C8;
  --primary-light: #E8F0FF;
  --text: #1D2129;
  --text-sub: #4E5969;
  --text-light: #6B7785;
  --border: #E2E7EE;
  --bg: #F3F5F8;
  --surface: #FFFFFF;
  --side: #0B1E4B;
  --side-text: #B9C6E4;
  --danger: #D92D20;
  --success: #16803C;
  --warning: #B54708;
  --radius: 10px;
  --shadow: 0 2px 8px rgba(15, 35, 65, .04);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6; font-size: 16px;
}
a { color: var(--primary); text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid rgba(22, 93, 255, .32); outline-offset: 2px; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 120; background: var(--surface); color: var(--primary); padding: 10px 16px; border-radius: 6px; }
.skip-link:focus { top: 12px; }

/* 登录 */
.login-page { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 32px 20px; background: #EDF2F8; }
.login-shell { width: 100%; max-width: 940px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(380px, 1.1fr); background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: 0 18px 50px rgba(15, 35, 65, .12); }
.login-intro { background: var(--side); color: #FFFFFF; padding: 48px 42px; display: flex; flex-direction: column; }
.login-intro .mark, .login-box .mark { width: 42px; height: 42px; border-radius: 9px; background: var(--primary); color: #FFFFFF; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.login-intro h2 { font-size: 25px; margin-top: 24px; line-height: 1.4; }
.login-intro > p { color: #C6D2EA; font-size: 14px; margin-top: 12px; }
.login-points { list-style: none; margin-top: auto; padding-top: 42px; display: grid; gap: 15px; color: #DCE5F5; font-size: 14px; }
.login-points li { display: flex; align-items: center; gap: 10px; }
.login-points li::before { content: ""; width: 6px; height: 6px; background: #7DA7FF; border-radius: 50%; flex: 0 0 6px; }
.login-box { width: 100%; padding: 46px 44px 38px; align-self: center; }
.login-box .logo-row { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.login-box h1 { font-size: 22px; }
.login-box .sub { color: var(--text-light); font-size: 12px; letter-spacing: .08em; margin-bottom: 25px; }
.login-box label { display: block; font-size: 14px; color: var(--text-sub); margin: 14px 0 6px; }
.login-box input { width: 100%; min-height: 44px; padding: 10px 13px; border: 1px solid #CBD3DE; border-radius: 7px; font-size: 15px; background: #FFFFFF; color: var(--text); }
.login-box input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(22, 93, 255, .12); }
.captcha-row { display: flex; gap: 10px; align-items: stretch; }
.captcha-row input { flex: 1; min-width: 0; }
.captcha-row img { width: 110px; height: 44px; border: 1px solid var(--border); border-radius: 7px; cursor: pointer; flex-shrink: 0; }
.login-box button { width: 100%; min-height: 44px; margin-top: 24px; border: none; border-radius: 7px; background: var(--primary); color: #FFFFFF; font-size: 16px; }
.login-box button:hover { background: var(--primary-dark); }
.login-msg { margin-top: 14px; font-size: 14px; color: var(--danger); line-height: 1.6; }
.login-msg.success { color: var(--success); }
.login-back { display: inline-block; margin-top: 20px; font-size: 14px; }
.login-footnote { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--text-light); font-size: 12px; }

/* 后台框架 */
.admin-wrap { display: flex; min-height: 100vh; min-height: 100dvh; }
.nav-open { overflow: hidden; }
.form-card { scroll-margin-top: 88px; }
.admin-side { width: 248px; flex: 0 0 248px; background: var(--side); color: var(--side-text); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; height: 100dvh; z-index: 90; transition: width .2s ease, flex-basis .2s ease, transform .2s ease; }
.admin-brand { height: 68px; flex: 0 0 68px; display: flex; align-items: center; padding: 0 18px; border-bottom: 1px solid rgba(255,255,255,.09); }
.brand-link { display: flex; align-items: center; gap: 11px; color: #FFFFFF; min-width: 0; }
.admin-brand .mark { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 8px; background: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
.brand-text { display: grid; line-height: 1.35; white-space: nowrap; }
.brand-text strong { font-size: 17px; }
.brand-text small { color: #94A8D1; font-size: 11px; letter-spacing: .08em; margin-top: 3px; }
.side-close { display: none; margin-left: auto; border: 0; background: transparent; color: #FFFFFF; font-size: 28px; line-height: 1; width: 44px; height: 44px; }
.admin-nav { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 15px 12px 20px; scrollbar-width: thin; scrollbar-color: #375079 transparent; }
.nav-group { margin-bottom: 16px; }
.nav-group h2 { color: #8196C1; font-size: 11px; font-weight: 500; letter-spacing: .1em; padding: 0 12px; margin-bottom: 5px; white-space: nowrap; }
.admin-nav a { position: relative; display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 9px 12px; margin: 2px 0; border-radius: 7px; color: var(--side-text); font-size: 14px; white-space: nowrap; transition: background .16s ease, color .16s ease; }
.admin-nav a:hover { background: rgba(255,255,255,.07); color: #FFFFFF; }
.admin-nav a.active { background: var(--primary); color: #FFFFFF; font-weight: 600; }
.nav-icon { width: 19px; height: 19px; flex: 0 0 19px; }
.nav-label { overflow: hidden; text-overflow: ellipsis; }
.side-foot { flex: 0 0 auto; padding: 16px 20px; border-top: 1px solid rgba(255,255,255,.09); display: grid; gap: 5px; font-size: 12px; color: #8FA3CF; white-space: nowrap; }
.side-status { display: flex; align-items: center; gap: 8px; }
.side-status i { width: 7px; height: 7px; border-radius: 50%; background: #55D98D; flex: 0 0 7px; }
.side-version { font-size: 11px; letter-spacing: .06em; }
.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-top { min-height: 68px; background: var(--surface); border-bottom: 1px solid var(--border); padding: 10px 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; position: sticky; top: 0; z-index: 30; }
.top-left, .top-actions { display: flex; align-items: center; gap: 14px; min-width: 0; }
.side-toggle, .side-collapse { width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--text-sub); display: inline-flex; align-items: center; justify-content: center; }
.side-toggle { display: none; }
.side-toggle svg, .side-collapse svg { width: 20px; height: 20px; }
.side-collapse:hover, .side-toggle:hover { color: var(--primary); border-color: var(--primary); }
.breadcrumb { min-width: 0; }
.breadcrumb ol { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; list-style: none; font-size: 13px; color: var(--text-light); }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 7px; color: #A4ADBA; }
.breadcrumb li:last-child { color: var(--text-sub); }
.top-site { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 7px 11px; border: 1px solid var(--border); border-radius: 7px; color: var(--text-sub); font-size: 13px; }
.top-site svg { width: 16px; height: 16px; }
.top-site:hover { color: var(--primary); border-color: var(--primary); }
.admin-user { display: flex; align-items: center; gap: 9px; padding-left: 14px; border-left: 1px solid var(--border); }
.user-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-light); color: var(--primary); font-weight: 700; font-size: 14px; }
.admin-user > span:last-child { display: grid; line-height: 1.35; }
.admin-user strong { font-size: 13px; }
.admin-user small { color: var(--text-light); font-size: 11px; }
.logout-form { display: inline-flex; margin: 0; }
.top-logout { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 7px 10px; border-radius: 7px; color: var(--text-sub); font-size: 13px; }
.top-logout-button { border: 0; background: transparent; font-family: inherit; cursor: pointer; }
.top-logout:hover { color: var(--danger); background: #FEF3F2; }
.admin-content { width: 100%; max-width: 1680px; margin: 0 auto; padding: 26px 28px 34px; flex: 1; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.page-heading h1 { font-size: 24px; line-height: 1.4; letter-spacing: -.02em; }
.page-heading p { color: var(--text-sub); font-size: 14px; margin-top: 6px; max-width: 850px; }
.page-context { flex: 0 0 auto; color: var(--text-light); font-size: 12px; border: 1px solid var(--border); background: var(--surface); border-radius: 6px; padding: 4px 9px; margin-top: 3px; }
.admin-footer { display: flex; justify-content: space-between; gap: 16px; padding: 16px 28px 20px; border-top: 1px solid var(--border); color: var(--text-light); font-size: 12px; }
.side-overlay { position: fixed; inset: 0; z-index: 80; border: 0; background: rgba(5, 16, 38, .48); }

/* 收起状态（桌面） */
@media (min-width: 901px) {
  .side-collapsed .admin-side { width: 76px; flex-basis: 76px; }
  .side-collapsed .admin-brand { padding: 0 20px; }
  .side-collapsed .brand-text, .side-collapsed .nav-label, .side-collapsed .nav-group h2 { display: none; }
  .side-collapsed .admin-nav { padding-left: 10px; padding-right: 10px; }
  .side-collapsed .nav-group { margin-bottom: 10px; }
  .side-collapsed .admin-nav a { justify-content: center; padding-left: 0; padding-right: 0; }
  .side-collapsed .side-foot { padding: 18px 0; place-items: center; }
  .side-collapsed .side-collapse svg { transform: rotate(180deg); }
}

/* 面板、统计与仪表盘 */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 20px; box-shadow: var(--shadow); min-width: 0; }
.panel > h2 { font-size: 16px; line-height: 1.5; margin-bottom: 16px; }
.panel > h3 { font-size: 15px; }
.panel-sub { font-size: 12px; color: var(--text-light); font-weight: normal; }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-card { position: relative; display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); color: var(--text); min-width: 0; transition: border-color .16s ease, transform .16s ease; }
a.stat-card:hover { border-color: #A9C3FA; transform: translateY(-1px); }
.stat-card .num { font-size: 29px; font-weight: 750; color: var(--text); line-height: 1.25; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat-card .label { color: var(--text-sub); font-size: 13px; margin-top: 7px; }
.stat-card .stat-link { display: block; color: var(--primary); font-size: 12px; margin-top: 12px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
.dashboard-grid .panel { margin-bottom: 0; }
.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quick-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 70px; padding: 13px 14px; border: 1px solid var(--border); border-radius: 8px; color: var(--text); background: #FAFBFD; }
.quick-link:hover { border-color: #A9C3FA; background: var(--primary-light); }
.quick-link strong { display: block; font-size: 14px; }
.quick-link small { display: block; color: var(--text-light); font-size: 12px; margin-top: 2px; }
.quick-link > span:last-child { color: var(--primary); font-size: 20px; }
.status-list { list-style: none; display: grid; }
.status-list li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.status-list li:last-child { border-bottom: 0; }
.status-list .name { color: var(--text-sub); }
.status-value { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-align: right; }
.status-value::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #27AE60; }
.status-value.off::before { background: #98A2B3; }
.status-value.warn::before { background: #F79009; }
.security-note { color: var(--text-sub); font-size: 13px; line-height: 1.9; }
.security-note strong { color: var(--text); }

/* 表格与即时筛选 */
.table-tools { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: -2px 0 14px; }
.table-search { position: relative; width: min(360px, 100%); }
.table-search input { width: 100%; min-height: 38px; padding: 8px 12px 8px 34px; border: 1px solid #CBD3DE; border-radius: 7px; background: #FFFFFF; color: var(--text); font-size: 13px; }
.table-search svg { position: absolute; left: 11px; top: 11px; width: 16px; height: 16px; color: var(--text-light); pointer-events: none; }
.table-count { color: var(--text-light); font-size: 12px; white-space: nowrap; }
.table-wrap { width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
table.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { padding: 12px 11px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; overflow-wrap: anywhere; }
.admin-table th { color: var(--text-sub); font-weight: 600; background: #F7F9FC; white-space: nowrap; }
.admin-table thead th:first-child { border-radius: 6px 0 0 6px; }
.admin-table thead th:last-child { border-radius: 0 6px 6px 0; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover td { background: #F7F9FF; }
.admin-table td form { margin: 0; }
.admin-table .filter-empty td { text-align: center; color: var(--text-light); padding: 28px 12px; }

/* 标签与文件 */
.chip { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; line-height: 20px; background: var(--primary-light); color: var(--primary-dark); white-space: nowrap; }
.chip.green { background: #E9F8EE; color: #137333; }
.chip.orange { background: #FFF3E2; color: #97420B; }
.chip.purple { background: #F3EBFF; color: #6941C6; }
.chip.red { background: #FDECEA; color: #B42318; }
.chip.gray { background: #F0F2F5; color: #4E5969; }
.file-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-sub); background: #F7F8FA; border: 1px solid var(--border); border-radius: 6px; padding: 3px 8px; max-width: 100%; }
.file-badge.none { color: var(--text-light); border-style: dashed; background: transparent; }
.file-badge .fname { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 按钮与表单 */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 7px 16px; border-radius: 7px; border: 1px solid transparent; background: var(--primary); color: #FFFFFF; font-size: 13px; line-height: 1.45; cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.btn:hover { background: var(--primary-dark); color: #FFFFFF; }
.btn-sm { min-height: 31px; padding: 5px 11px; font-size: 12px; }
.btn-ghost { background: #FFFFFF; border-color: #CBD3DE; color: var(--text-sub); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: #FFFFFF; }
.btn-danger { background: #FFFFFF; border-color: #E7A39D; color: var(--danger); }
.btn-danger:hover { background: var(--danger); border-color: var(--danger); color: #FFFFFF; }
.num-input { width: 90px; min-height: 34px; padding: 6px 9px; border: 1px solid #CBD3DE; border-radius: 6px; font-size: 13px; background: #FFFFFF; color: var(--text); }
.num-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(22,93,255,.1); }
.form-card { max-width: 1080px; }
.form-card form { max-width: 960px; }
.form-row { margin-bottom: 17px; min-width: 0; }
.form-row label { display: block; font-size: 13px; color: var(--text-sub); margin-bottom: 6px; font-weight: 500; }
.form-row label .req { color: var(--danger); margin-left: 2px; }
.form-row input[type=text], .form-row input[type=password], .form-row input[type=number], .form-row select, .form-row textarea { width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid #CBD3DE; border-radius: 7px; font-size: 14px; font-family: inherit; background: #FFFFFF; color: var(--text); }
.form-row textarea { min-height: 140px; resize: vertical; line-height: 1.7; }
.form-row textarea.tall { min-height: 230px; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(22,93,255,.11); }
.form-row input[readonly] { background: #F7F9FC; color: var(--text-sub); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.form-grid .form-row input, .form-grid .form-row select { width: 100%; }
.form-tip { font-size: 12px; color: var(--text-light); margin-top: 5px; }
.form-actions { margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--border); display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.hint { font-size: 13px; color: var(--text-sub); line-height: 1.75; }
.stat-mini { background: #F7F9FC; border: 1px solid var(--border); border-radius: 8px; padding: 15px 17px; text-align: left; min-width: 0; }
.stat-mini .n { font-size: 22px; font-weight: 700; color: var(--text); line-height: 1.3; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.stat-mini .t { font-size: 12px; color: var(--text-light); margin-top: 7px; }

/* 上传 */
.upload-tabs { display: flex; gap: 10px; margin-bottom: 16px; }
.upload-tab { flex: 1; max-width: 220px; min-height: 42px; padding: 9px 16px; border: 1px solid #CBD3DE; border-radius: 7px; background: #FFFFFF; color: var(--text-sub); font-size: 14px; transition: border-color .15s ease, background .15s ease, color .15s ease; }
.upload-tab:hover { border-color: var(--primary); color: var(--primary); }
.upload-tab.active { background: var(--primary-light); border-color: var(--primary); color: var(--primary-dark); font-weight: 600; }
.upload-pane .upload-limit-tip { font-size: 13px; color: var(--text-light); margin-bottom: 12px; }
.upload-pane .upload-limit-tip code { background: #F0F2F5; padding: 2px 6px; border-radius: 4px; font-size: 12px; color: var(--text); }
.upload-box { border: 1px dashed #A9B5C5; border-radius: 8px; padding: 20px; cursor: pointer; display: flex; align-items: center; gap: 14px; transition: border-color .16s ease, background .16s ease; background: #FAFBFC; }
.upload-box:hover { border-color: var(--primary); background: var(--primary-light); }
.upload-box .up-icon { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 8px; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; }
.upload-box .up-text { font-size: 14px; color: var(--text); }
.upload-box .up-tip { font-size: 12px; color: var(--text-light); margin-top: 3px; }
.upload-name { margin-top: 10px; font-size: 13px; color: var(--text-sub); overflow-wrap: anywhere; }
.upload-name .ok { color: var(--success); font-weight: 600; }
.upload-name .err { color: var(--danger); font-weight: 600; }
.upload-current { margin-top: 9px; font-size: 13px; color: var(--text-sub); overflow-wrap: anywhere; }

/* 操作反馈 */
.msg { position: relative; padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 18px; border: 1px solid; }
.msg.ok { background: #EDF9F0; color: #146C35; border-color: #B7E2C3; }
.msg.err { background: #FEF0EE; color: #B42318; border-color: #F2B8B2; }

/* 客户区域选择加载 */
.selection-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.selection-card { min-width: 0; border: 1px solid var(--border); border-radius: 9px; padding: 17px; background: #FAFBFD; }
.selection-card h3 { font-size: 15px; margin-bottom: 5px; }
.selection-card form { max-width: none; }
.selection-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0 11px; }
.selection-toolbar > input { width: 100%; min-width: 0; min-height: 38px; padding: 8px 11px; border: 1px solid #CBD3DE; border-radius: 7px; background: #FFFFFF; color: var(--text); font-size: 13px; }
.selection-buttons { display: flex; gap: 7px; flex: 0 0 auto; }
.selection-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; max-height: 420px; overflow-y: auto; overscroll-behavior: contain; padding-right: 3px; }
.selection-item { display: grid; grid-template-columns: 18px minmax(0, 1fr) 82px; align-items: center; gap: 7px; min-width: 0; padding: 7px 8px; border: 1px solid var(--border); border-radius: 7px; background: #FFFFFF; }
.selection-item.is-loaded { border-color: #B6CBF8; background: var(--primary-light); }
.selection-item > input[type="checkbox"] { width: 16px; height: 16px; margin: 0; accent-color: var(--primary); }
.selection-item label { min-width: 0; font-size: 12px; color: var(--text-sub); overflow-wrap: anywhere; cursor: pointer; }
.selection-item .selection-count { width: 82px; min-height: 32px; padding: 5px 6px; border: 1px solid #CBD3DE; border-radius: 6px; background: #FFFFFF; color: var(--text); font-size: 12px; }
.selection-item .selection-count[readonly] { background: #F0F2F5; color: var(--text-light); }
.legacy-city-item { grid-template-columns: minmax(0, 1fr) 100px; }
.legacy-city-item .selection-count { width: 100px; }

@media (max-width: 1200px) {
  .selection-layout { grid-template-columns: minmax(0, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-grid .panel { margin-bottom: 20px; }
}
@media (max-width: 900px) {
  .admin-side { position: fixed; left: 0; top: 0; bottom: 0; width: 248px; height: 100vh; height: 100dvh; transform: translateX(-100%); visibility: hidden; box-shadow: 12px 0 32px rgba(0,0,0,.2); }
  .admin-side.open { transform: translateX(0); visibility: visible; }
  .side-close, .side-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .side-collapse { display: none; }
  .admin-top { padding: 10px 16px; min-height: 62px; }
  .admin-content { padding: 22px 18px 30px; }
  .admin-footer { padding-left: 18px; padding-right: 18px; }
  .top-site { display: none; }
  .breadcrumb ol { font-size: 12px; }
  .breadcrumb li:first-child, .breadcrumb li:nth-child(2) { display: none; }
  .page-heading h1 { font-size: 22px; }
  .login-shell { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
  .login-intro { padding: 26px 30px; }
  .login-intro h2 { font-size: 21px; margin-top: 16px; }
  .login-points { display: none; }
}
@media (max-width: 640px) {
  .admin-top { gap: 8px; }
  .top-left, .top-actions { gap: 8px; }
  .admin-user { padding-left: 8px; }
  .admin-user > span:last-child { display: none; }
  .admin-content { padding: 18px 12px 26px; }
  .page-heading { margin-bottom: 17px; }
  .page-heading p { font-size: 13px; }
  .page-context { display: none; }
  .panel { padding: 18px 14px; border-radius: 8px; }
  .stat-grid { grid-template-columns: 1fr; gap: 10px; }
  .stat-card { padding: 16px 18px; }
  .stat-card .num { font-size: 26px; }
  .quick-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .table-tools { align-items: flex-start; flex-direction: column; gap: 7px; }
  .table-search { width: 100%; }
  .table-search input { min-height: 44px; }
  .btn { min-height: 42px; }
  .btn-sm { min-height: 36px; }
  .form-actions .btn { min-height: 44px; }
  .upload-tabs { flex-direction: column; }
  .upload-tab { max-width: none; min-height: 44px; }
  .table-wrap table.admin-table { min-width: 640px; }
  .admin-table th, .admin-table td { padding: 10px 9px; }
  .admin-footer { flex-direction: column; gap: 3px; padding: 14px 14px 18px; }
  .login-page { padding: 14px; }
  .login-intro { padding: 22px; }
  .login-intro > p { margin-top: 8px; }
  .login-box { padding: 28px 22px; }
  .login-box h1 { font-size: 20px; }
  .captcha-row img { width: 104px; }
  .selection-card { padding: 13px 11px; }
  .selection-list { grid-template-columns: minmax(0, 1fr); max-height: 360px; }
  .selection-toolbar { align-items: stretch; flex-direction: column; }
  .selection-buttons .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
