/* ================= 通用页面组件 ================= */
.page { display: flex; flex-direction: column; gap: 14px; }
.page-head h2 { margin: 0 0 6px; font-size: 18px; }
.page-desc { margin: 0; font-size: 13px; color: #64748b; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; padding: 12px 14px; border: 1px solid #1c2940; border-radius: 10px; background: rgba(8,25,45,.55); }
.filter-item { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: #7aa7c7; }
.filter-item > span { letter-spacing: .5px; }
.filter-item input, .filter-item select { padding: 8px 10px; min-width: 150px; background: #0b1220; border: 1px solid #243449; border-radius: 8px; color: #e2e8f0; font-size: 13px; font-family: inherit; }
.filter-item input:focus, .filter-item select:focus { outline: none; border-color: #22d3ee; box-shadow: 0 0 0 3px rgba(34,211,238,.12); }
.filter-item input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.8); }
.filter-item.checkbox-item { flex-direction: row; align-items: center; gap: 8px; padding-bottom: 8px; color: #9dc6dd; }
.filter-item.checkbox-item input { min-width: 0; width: 16px; height: 16px; }
.search-item input { min-width: 240px; }
.btn-primary { padding: 9px 18px; border: none; border-radius: 8px; background: linear-gradient(135deg, #0891b2, #22d3ee); color: #04222b; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .18s; }
.btn-primary:hover { box-shadow: 0 0 14px rgba(34,211,238,.45); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn-ghost { padding: 9px 16px; border: 1px solid #243449; border-radius: 8px; background: rgba(34,211,238,.06); color: #9dc6dd; font-size: 13px; cursor: pointer; transition: all .18s; }
.btn-ghost:hover { border-color: #22d3ee; color: #22d3ee; }
.btn-danger { padding: 5px 12px; border: 1px solid rgba(248,113,113,.45); border-radius: 7px; background: rgba(248,113,113,.1); color: #f87171; font-size: 12px; cursor: pointer; }
.btn-danger:hover { background: rgba(248,113,113,.2); }
.btn-mini { padding: 5px 12px; border: 1px solid #243449; border-radius: 7px; background: rgba(34,211,238,.06); color: #9dc6dd; font-size: 12px; cursor: pointer; }
.btn-mini:hover { border-color: #22d3ee; color: #22d3ee; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.page .kpi-grid { grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); }
.page .kpi-value { font-size: 22px; }
.panel { padding: 14px 16px; border: 1px solid #1c2940; border-radius: 10px; background: rgba(8,25,45,.55); }
.panel-title { position: relative; padding-left: 10px; margin-bottom: 10px; font-size: 14px; font-weight: 600; color: #67e8f9; }
.panel-title::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 3px; height: 13px; border-radius: 2px; background: linear-gradient(180deg, #22d3ee, #0891b2); }
.panel-sub { margin-left: 8px; font-size: 12px; font-weight: 400; color: #64748b; }
.chart-box { width: 100%; height: 280px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.table-wrap { overflow-x: auto; }
.empty-cell { padding: 18px 0 !important; text-align: center; color: #64748b; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.form-actions { display: flex; gap: 10px; margin-top: 14px; }
.sub-tabs { display: flex; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid #1c2940; }
.sub-tab { padding: 7px 16px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #7aa7c7; font-size: 13px; cursor: pointer; transition: all .18s; }
.sub-tab:hover { color: #67e8f9; }
.sub-tab.active { background: rgba(34,211,238,.12); border-color: rgba(34,211,238,.4); color: #22d3ee; }
.info-list { display: flex; flex-direction: column; gap: 12px; font-size: 13px; }
.info-row { display: flex; gap: 12px; }
.info-row .k { flex: 0 0 88px; color: #64748b; }
.info-row .v { color: #e2e8f0; word-break: break-all; }
.hint-line { margin: 0; font-size: 12px; color: #64748b; }
.hint-line code { padding: 1px 6px; border-radius: 4px; background: rgba(34,211,238,.1); color: #67e8f9; font-family: Consolas, Monaco, monospace; }
.preview-result { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.qr-holder { flex: 0 0 220px; width: 220px; height: 220px; display: grid; place-items: center; padding: 8px; border-radius: 10px; background: #fff; }
.qr-holder canvas, .qr-holder img { width: 100% !important; height: 100% !important; }
.preview-meta { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 12px; }
.preview-url { padding: 10px; border: 1px solid #243449; border-radius: 8px; background: #0b1220; color: #7dd3fc; font-family: Consolas, Monaco, monospace; font-size: 12px; line-height: 1.6; word-break: break-all; max-height: 130px; overflow: auto; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; }
.badge-ok { background: rgba(52,211,153,.14); color: #34d399; }
.badge-off { background: rgba(248,113,113,.14); color: #f87171; }
.badge-warn { background: rgba(251,191,36,.14); color: #fbbf24; }

/* ================= 通用分页条（js/ui/pagination.js） ================= */
.pager-bar { display: flex; justify-content: flex-end; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 12px; padding: 10px 4px 0; font-size: 13px; color: #64748b; }
.pager-bar .pager-size { display: flex; align-items: center; gap: 6px; color: #64748b; }
.pager-bar .pager-select { padding: 4px 8px; border: 1px solid #243449; border-radius: 6px; background: #0f172a; color: #94a3b8; font-size: 13px; cursor: pointer; }
.pager-bar .pager-select:focus { outline: none; border-color: #22d3ee; }
.pager-bar .pager-nav { display: flex; align-items: center; gap: 8px; }
.pager-bar .pager-btn { padding: 6px 12px; border: 1px solid #243449; border-radius: 6px; background: #0f172a; color: #94a3b8; cursor: pointer; transition: all .2s; font-size: 13px; }
.pager-bar .pager-btn:hover:not(:disabled) { border-color: #22d3ee; color: #22d3ee; }
.pager-bar .pager-btn:disabled { opacity: .4; cursor: not-allowed; }
.pager-bar .pager-info { color: #94a3b8; white-space: nowrap; }
body.light .pager-bar, body.light .pager-bar .pager-size, body.light .pager-total { color: #64748b; }
body.light .pager-bar .pager-select, body.light .pager-bar .pager-btn { background: #fff; border-color: #cbd5e1; color: #475569; }
body.light .pager-bar .pager-btn:hover:not(:disabled) { border-color: #0891b2; color: #0891b2; }
body.light .pager-bar .pager-info { color: #475569; }
