﻿:root {
    --bg: #eef2f6;
    --panel: #ffffff;
    --sidebar: #f7f9fc;
    --sidebar-border: #e5eaf0;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --brand: #2563eb;
    --brand2: #1d4ed8;
    --brand-soft: #dbeafe;
    --accent: #0f766e;
    --ok: #059669;
    --warn: #d97706;
    --danger: #dc2626;
    --info: #2563eb;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    --radius: 14px;
    --sidebar-width: 268px;
    /* 字号标度：由「系统设置 → 系统参数 → 界面字号」覆盖（见 theme_style()） */
    --fs: 13px;
    --fs-sm: 12px;
    --fs-xs: 11px;
    --fs-title: 20px;
    --fs-kpi: 22px;
    --fs-h: 15px;
    --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
    font-family: var(--font);
    font-size: var(--fs);
    line-height: 1.5;
    color: var(--text);
    background:
        radial-gradient(1200px 500px at 10% -10%, #dbeafe 0%, transparent 55%),
        radial-gradient(900px 400px at 100% 0%, #ccfbf1 0%, transparent 45%),
        var(--bg);
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

/* ==================== 滚动条（统一细窄圆角，去除系统默认粗条与箭头） ====================
 * 说明：Chrome 121+ / Firefox 走 scrollbar-width + scrollbar-color；
 *      其余内核回退到 ::-webkit-scrollbar 伪元素，两套都写以保证一致观感。
 *      仅设伪元素在某些浏览器会被 scrollbar-color 覆盖，因此颜色必须两处同写。
 */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 116, 139, .34) transparent;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track,
::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, .34);
    border: 3px solid transparent;
    border-radius: 999px;
    background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(71, 85, 105, .55); background-clip: padding-box; }
::-webkit-scrollbar-thumb:active { background: rgba(51, 65, 85, .7); background-clip: padding-box; }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
/* 侧栏：常驻一条极细淡色滑轨，指针进入后加深，既不抢视线也保持可发现性 */
.sidebar {
    scrollbar-gutter: stable;
    scrollbar-color: rgba(100, 116, 139, .22) transparent;
}
.sidebar:hover { scrollbar-color: rgba(71, 85, 105, .5) transparent; }
.sidebar::-webkit-scrollbar { width: 8px; }
.sidebar::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, .22);
    background-clip: padding-box;
    border-width: 2px;
    transition: background .2s ease;
}
.sidebar:hover::-webkit-scrollbar-thumb { background: rgba(71, 85, 105, .5); background-clip: padding-box; }
/* 表格横向滚动：滚动条贴着面板底部，避免大片空白感 */
.table-wrap, .dict-types, .dropdown-panel, .help-body { scrollbar-gutter: stable; }

.app {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    min-height: 100vh;
}

.sidebar {
    background: linear-gradient(180deg, #fbfdff 0%, var(--sidebar) 100%);
    border-right: 1px solid var(--sidebar-border);
    padding: 14px 12px 24px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 16px;
}

.brand-badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(145deg, #fb7185, #e11d48);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 18px;
    box-shadow: 0 8px 18px rgba(225, 29, 72, 0.28);
}

.brand h1 {
    margin: 0;
    font-size: var(--fs-h);
    font-weight: 700;
    letter-spacing: 0.2px;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-top: 2px;
}

.side-user {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 4px 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #eef2ff;
    border: 1px solid #e0e7ff;
}
.side-user strong { display: block; font-size: 13px; }
.side-user span { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }

.cell-link {
    color: var(--brand);
    font-weight: 600;
    border-bottom: 1px dashed rgba(37, 99, 235, .35);
}
.cell-link:hover { color: #1d4ed8; }

.side-search {
    display: flex;
    gap: 8px;
    padding: 0 4px 14px;
}

.side-search input {
    flex: 1;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    padding: 9px 12px;
    outline: none;
    font-size: var(--fs);
}

.side-search input:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.side-search .add-btn {
    width: 38px;
    border: none;
    border-radius: 10px;
    background: var(--brand);
    color: #fff;
    cursor: pointer;
}

.nav-item, .nav-folder-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    color: #334155;
    font-size: var(--fs);
    margin-bottom: 3px;
}

.nav-item:hover, .nav-folder-title:hover {
    background: #eef2ff;
}

.nav-item.active {
    background: linear-gradient(135deg, var(--brand), var(--brand2));
    color: #fff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

.nav-item .dot-menu {
    margin-left: auto;
    opacity: 0.7;
}

.nav-icon {
    width: 18px;
    text-align: center;
    opacity: 0.9;
}

.nav-folder {
    margin-top: 6px;
}

.nav-folder-title {
    cursor: pointer;
    user-select: none;
    font-weight: 600;
}

.nav-folder-title .folder {
    color: #eab308;
}

.nav-folder-title .count {
    color: var(--muted);
    font-weight: 500;
}

.nav-folder-title .chev {
    margin-left: auto;
    transition: transform .2s ease;
    color: #94a3b8;
}

.nav-folder.open .nav-folder-title .chev {
    transform: rotate(180deg);
}

.nav-children {
    display: none;
    padding: 2px 0 8px 12px;
}

.nav-folder.open .nav-children {
    display: block;
}

.nav-children a {
    display: block;
    padding: 6px 12px;
    border-radius: 8px;
    color: #475569;
    font-size: var(--fs-sm);
    margin-bottom: 1px;
}

.nav-children a:hover {
    background: #f1f5f9;
}

.nav-children a.active {
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 600;
}

.main {
    padding: 22px 26px 40px;
    min-width: 0;
}

/* 移动端遮罩在桌面端不参与布局（否则会挤占 grid 的第二个单元格） */
.nav-mask { display: none; }

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.crumb {
    color: var(--muted);
    font-size: var(--fs-sm);
    margin-bottom: 4px;
}

.page-title {
    margin: 0;
    font-size: var(--fs-title);
    letter-spacing: 0.2px;
}

.page-desc {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: var(--fs);
}

.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    border-radius: 10px;
    padding: 7px 13px;
    font-size: var(--fs);
    cursor: pointer;
    transition: .15s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--brand2));
    border-color: transparent;
    color: #fff;
}
.btn-ghost { background: transparent; }

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.stat-card {
    background: var(--panel);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius);
    padding: 16px 18px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
a.stat-card-link { display: block; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
a.stat-card-link:hover { transform: translateY(-2px); border-color: #bfdbfe; box-shadow: 0 14px 34px rgba(37, 99, 235, 0.12); }

.stat-card::after {
    content: "";
    position: absolute;
    right: -20px;
    top: -20px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(15,118,110,.08));
}

.stat-label { color: var(--muted); font-size: var(--fs-sm); }
.stat-value { font-size: var(--fs-kpi); font-weight: 700; margin-top: 6px; }
.stat-foot { margin-top: 6px; font-size: var(--fs-xs); color: var(--accent); }

.grid-2 {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 14px;
    margin-bottom: 16px;
}

.panel {
    background: var(--panel);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
}

.panel-head h3 {
    margin: 0;
    font-size: var(--fs-h);
}

.panel-body { padding: 0; }

.table-wrap { overflow: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

th, td {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
    text-align: left;
    font-size: var(--fs-sm);
    white-space: nowrap;
}

th {
    color: #64748b;
    font-weight: 600;
    background: #f8fafc;
    position: sticky;
    top: 0;
}

tr:hover td { background: #f8fbff; }

.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.badge-ok { background: #d1fae5; color: #047857; }
.badge-warn { background: #ffedd5; color: #c2410c; }
.badge-danger { background: #fee2e2; color: #b91c1c; }
.badge-info { background: #dbeafe; color: #1d4ed8; }
.badge-muted { background: #f1f5f9; color: #64748b; }

.timeline {
    list-style: none;
    margin: 0;
    padding: 16px 18px 8px;
}

.timeline li {
    display: grid;
    grid-template-columns: 16px 1fr;
    gap: 12px;
    padding-bottom: 16px;
}

.timeline .dot {
    width: 10px;
    height: 10px;
    margin-top: 5px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}

.timeline .meta {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 3px;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
}

.toolbar .filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.toolbar input, .toolbar select {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px 12px;
    background: #fff;
    min-width: 160px;
}

.empty {
    padding: 48px 20px;
    text-align: center;
    color: var(--muted);
}

.demo-tip {
    margin-top: 14px;
    color: var(--muted);
    font-size: 12px;
}

.form-alert {
    margin-bottom: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
}
.form-alert-ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.form-alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

.form-panel .panel-head a { color: var(--brand); font-size: 13px; }
.biz-form { padding: 18px; }
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
}
.form-item-full { grid-column: 1 / -1; }
.form-item label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #334155;
}
.form-item .req { color: #dc2626; margin-left: 2px; }
.form-item .hint { color: var(--muted); font-weight: 400; font-size: 12px; margin-left: 8px; }
.form-item input,
.form-item select,
.form-item textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 9px 12px;
    background: #fff;
    outline: none;
}
.form-item input:focus,
.form-item select:focus,
.form-item textarea:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.check-line {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    font-weight: 500 !important;
}
.form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}
.btn-danger {
    background: #fff;
    border-color: #fecaca;
    color: #b91c1c;
    margin-left: auto;
}
.btn-danger:hover { background: #fef2f2; }
.btn-sm {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 8px;
}
.ops { white-space: nowrap; }

@media (max-width: 860px) {
    .form-grid { grid-template-columns: 1fr; }
}

.related-panel { margin-top: 14px; }
/* 业务闭环全景 */
.flow-map-panel { margin-bottom: 16px; }
.flow-map {
    display: flex;
    align-items: stretch;
    gap: 2px;
    padding: 6px 14px 18px;
    overflow-x: auto;
}
.flow-node {
    flex: 1 1 0;
    min-width: 88px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: linear-gradient(180deg, #f8fafc, #fff);
    text-decoration: none;
    color: inherit;
    transition: box-shadow .15s, transform .15s, border-color .15s;
}
.flow-node:hover {
    border-color: #93c5fd;
    box-shadow: 0 6px 18px rgba(37, 99, 235, .12);
    transform: translateY(-2px);
}
.flow-node-icon { font-size: 16px; line-height: 1; }
.flow-node-name { font-weight: 700; color: #0f172a; font-size: 12px; white-space: nowrap; }
.flow-node-count { font-size: 20px; font-weight: 700; color: #1d4ed8; line-height: 1.15; }
.flow-node-desc { font-size: 10px; color: #64748b; white-space: nowrap; }
.flow-node-amount { margin-top: 2px; font-size: 10px; color: #334155; white-space: nowrap; }
.flow-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    color: #94a3b8;
    font-size: 10px;
}
.flow-arrow em { font-style: normal; font-size: 14px; color: #cbd5e1; }
.flow-summary { margin: 4px 18px 16px; font-size: 12px; color: #475569; }
.flow-summary strong { color: #1d4ed8; }
.reverse-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 6px 18px 18px;
}
.reverse-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 12px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s, box-shadow .15s;
}
.reverse-card:hover { border-color: #fca5a5; box-shadow: 0 4px 14px rgba(220, 38, 38, .1); }
.reverse-count { font-size: 20px; font-weight: 700; color: #b91c1c; line-height: 1.2; }
.reverse-name { font-size: 12px; font-weight: 600; color: #0f172a; }
.reverse-note { font-size: 11px; color: #64748b; margin-top: 2px; }
.latest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    padding: 6px 18px 18px;
}
.latest-block h4 { margin: 0 0 6px; font-size: 13px; color: #0f172a; }
.latest-link {
    display: block;
    padding: 4px 8px;
    border-radius: 8px;
    background: #f8fafc;
    margin-bottom: 4px;
    font-size: 12px;
    text-decoration: none;
    color: #1d4ed8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.latest-link:hover { background: #eff6ff; }
.latest-more { font-size: 11px; color: #64748b; text-decoration: none; }
@media (max-width: 900px) {
    .reverse-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .flow-node { min-width: 104px; }
}
@media (max-width: 700px) {
    .flow-map {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        overflow: visible;
        padding: 4px 12px 14px;
    }
    .flow-arrow { display: none; }
    .flow-node { min-width: 0; padding: 10px 8px; }
    .flow-node-desc { white-space: normal; }
    .flow-node-amount { white-space: normal; }
    .latest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.flow-panel { margin-bottom: 14px; }
.flow-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 4px 18px 12px; }
.flow-actions .btn { font-weight: 600; }
.flow-note {
    margin: 0 18px 14px;
    font-size: 12px;
    color: #64748b;
}
.related-panel .panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.related-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 4px 18px 18px;
}
.related-block {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8fafc;
    padding: 12px 14px;
    min-height: 120px;
}
.related-block-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}
.related-block-head h4 {
    margin: 0;
    font-size: var(--fs-h);
    font-weight: 600;
    color: #0f172a;
}
.related-block-head h4 span {
    display: inline-block;
    margin-left: 6px;
    min-width: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}
.related-block-head a {
    font-size: 12px;
    color: var(--brand);
    white-space: nowrap;
}
.related-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}
.related-list li {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    align-items: center;
    font-size: 13px;
}
.related-list li span {
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.related-empty {
    margin: 8px 0 0;
    color: #94a3b8;
    font-size: 13px;
}
@media (max-width: 960px) {
    .related-grid { grid-template-columns: 1fr; }
}

.bars {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.bar-row { display: grid; grid-template-columns: 72px 1fr 40px; gap: 10px; align-items: center; }
.bar-track {
    height: 10px;
    background: #eef2ff;
    border-radius: 999px;
    overflow: hidden;
}
.bar-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #14b8a6);
}

@media (max-width: 1100px) {
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .app { grid-template-columns: 1fr; }
    .sidebar {
        position: relative;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--sidebar-border);
    }
    .main { padding: 16px; }
}

/* 页面引导提示条 */
.page-guide {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: linear-gradient(90deg, #eff6ff, #f0fdfa);
    border: 1px solid #dbeafe;
}
.guide-icon {
    flex: 0 0 20px;
    height: 20px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.guide-body { margin: 0; color: #475569; font-size: 13px; line-height: 1.7; }
.guide-body p { margin: 0; }
.guide-body p + p { margin-top: 4px; }

/* 穿透横幅 */
.drill-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #fdf2f8;
    border: 1px solid #fbcfe8;
    color: #9d174d;
    font-size: 13px;
}
.drill-icon {
    width: 22px; height: 22px;
    border-radius: 6px;
    background: #ec4899;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}
.drill-actions { margin-left: auto; display: flex; gap: 8px; }

/* 分页器 */
.pager {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 18px;
    border-top: 1px solid var(--line);
    color: #64748b;
    font-size: 13px;
}

/* 表单流程步骤条 */
.form-steps {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 12px 18px;
    border-bottom: 1px solid var(--line);
    background: #f8fafc;
}
.form-step {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #475569;
    font-size: 12px;
}
.form-step.on { background: var(--brand); color: #fff; }
.step-no {
    width: 18px; height: 18px;
    border-radius: 999px;
    background: rgba(255,255,255,.85);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}
.form-step.on .step-no { background: rgba(255,255,255,.25); color: #fff; }
.step-arrow { color: #cbd5e1; font-size: 12px; }

/* 字段帮助说明 */
.field-help {
    margin: 6px 0 0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.6;
    background: #f8fafc;
    border-left: 3px solid #bfdbfe;
    padding: 6px 10px;
    border-radius: 0 8px 8px 0;
}

/* 详情页 */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 6px 18px 18px;
}
.detail-item {
    padding: 12px 14px;
    border-bottom: 1px dashed #eef2f6;
}
.detail-label {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 4px;
}
.detail-value {
    font-size: var(--fs);
    color: #0f172a;
    font-weight: 500;
    word-break: break-all;
}
.rel-count {
    display: inline-block;
    margin-left: 6px;
    min-width: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}
@media (max-width: 960px) {
    .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .detail-grid { grid-template-columns: 1fr; }
}

/* ==================== 顶栏 / 侧栏折叠 / 说明抽屉（易用性增强） ==================== */
.app.nav-collapsed { grid-template-columns: 0 1fr; }
.app.nav-collapsed .sidebar { width: 0; padding: 0; overflow: hidden; border-right: none; }

.icon-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
    font-size: var(--fs-h);
    color: #334155;
    text-decoration: none;
    position: relative;
    transition: .15s ease;
}
.icon-btn:hover { border-color: #bfdbfe; color: var(--brand); background: #f8fbff; }
.icon-btn.has-badge { overflow: visible; }
.badge-dot {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    box-shadow: 0 0 0 2px #fff;
}
.nav-hide { width: 26px; height: 26px; font-size: 16px; margin-left: auto; flex: 0 0 auto; }
.brand { position: relative; }
.brand-text { min-width: 0; }

.topbar { align-items: center; }
.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar-left > div { min-width: 0; }
.crumb i { margin: 0 6px; color: #cbd5e1; font-style: normal; }
.crumb span { color: #94a3b8; }
.crumb span:last-child { color: #475569; font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.role-switch select {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 6px 10px;
    background: #fff;
    font-size: var(--fs-sm);
    color: #334155;
    max-width: 200px;
    cursor: pointer;
}
.role-switch select:hover { border-color: #bfdbfe; }

.dropdown { position: relative; }
.dropdown-panel {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 320px;
    max-height: 400px;
    overflow: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .16);
    z-index: 60;
}
.dropdown.open .dropdown-panel { display: block; }
.dropdown-head, .dropdown-foot {
    padding: 10px 14px;
    font-size: 12px;
    color: #64748b;
    background: #f8fafc;
}
.dropdown-head { font-weight: 600; color: #0f172a; border-bottom: 1px solid var(--line); }
.dropdown-foot { border-top: 1px solid var(--line); }
.dropdown-loading { padding: 22px 14px; text-align: center; color: #94a3b8; font-size: var(--fs-sm); }
.todo-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-bottom: 1px solid #f1f5f9;
    font-size: var(--fs-sm);
}
.todo-row:hover { background: #f8fbff; }
.todo-dot { width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; flex: 0 0 8px; }
.todo-danger .todo-dot { background: #ef4444; }
.todo-warn .todo-dot { background: #f59e0b; }
.todo-info .todo-dot { background: #3b82f6; }
.todo-title { flex: 1; color: #334155; }
.todo-count {
    min-width: 24px;
    padding: 1px 8px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-weight: 700;
    font-size: 12px;
    text-align: center;
}

.quickbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: -6px 0 16px;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(226, 232, 240, .9);
}
.quickbar-label { font-size: var(--fs-sm); color: #94a3b8; font-weight: 600; }
.quickbar-tip { margin-left: auto; font-size: var(--fs-xs); color: #b6c0cd; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: var(--fs-sm);
    transition: .15s ease;
}
.chip:hover { background: #e0e7ff; color: #3730a3; }
.chip-on { background: var(--brand); color: #fff; }
.chip-on:hover { background: var(--brand2); color: #fff; }

.help-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 360px;
    max-width: 88vw;
    height: 100vh;
    background: #fff;
    border-left: 1px solid var(--line);
    box-shadow: -18px 0 40px rgba(15, 23, 42, .12);
    transform: translateX(102%);
    transition: transform .22s ease;
    z-index: 70;
    display: flex;
    flex-direction: column;
}
.help-drawer.open { transform: translateX(0); }
.help-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(90deg, #eff6ff, #f0fdfa);
}
.help-head h3 { margin: 0; font-size: var(--fs-h); }
.help-head span { font-size: var(--fs-xs); color: #64748b; }
.help-body { padding: 14px 16px 24px; overflow: auto; font-size: var(--fs-sm); color: #334155; line-height: 1.7; }
.help-body h4 { margin: 14px 0 6px; font-size: var(--fs); color: #0f172a; }
.help-lead { margin: 0; padding: 10px 12px; border-radius: 10px; background: #f0f9ff; border: 1px solid #dbeafe; color: #1e40af; }
.help-body ul { margin: 0; padding-left: 18px; }
.help-body li + li { margin-top: 6px; }
.drawer-mask {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .28);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    z-index: 65;
}
.drawer-mask.show { opacity: 1; pointer-events: auto; }

/* ==================== 批量操作条 ==================== */
.bulk-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 18px;
    background: #f8fafc;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
}
.bulk-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.muted-note { color: #64748b; font-size: 12.5px; }
.col-check { width: 42px; }
.col-ops { width: 140px; }
.quick-panel { margin-bottom: 14px; }
.quick-links { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 18px; }
.pager-size select { border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; }
.pager-size { margin-right: auto; color: #64748b; font-size: 13px; }
.empty-actions { display: flex; gap: 10px; justify-content: center; margin-top: 14px; }

/* ==================== 导入页 ==================== */
.import-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 18px;
}
.import-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 16px;
    background: #f8fafc;
}
.import-card h4 { margin: 0 0 8px; font-size: var(--fs); display: flex; align-items: center; gap: 8px; }
.import-card h4 .step-no { background: var(--brand); color: #fff; }
.import-form { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 8px; }
.import-form input[type="file"] { flex: 1; min-width: 0; font-size: 12px; }
.import-preview { padding: 0 18px 18px; }
.import-preview h4 { margin: 12px 0 8px; font-size: var(--fs); }
.error-list { margin: 0 18px 16px; padding: 12px 16px; border-radius: 12px; background: #fef2f2; border: 1px solid #fecaca; }
.error-list h4 { margin: 0 0 8px; font-size: 13px; color: #b91c1c; }
.error-list ul { margin: 0; padding-left: 18px; max-height: 260px; overflow: auto; font-size: 12.5px; color: #991b1b; }

/* ==================== 手机填报 ==================== */
.mobile-hero {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 22px;
    padding: 20px;
}
.qr-box {
    text-align: center;
    padding: 14px;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    background: #f8fafc;
}
.qr-box img { border-radius: 8px; background: #fff; }
.qr-canvas { display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 8px; overflow: hidden; }
.qr-canvas svg { width: 100%; height: 100%; display: block; }
.qr-box .qr-canvas { width: 240px; height: 240px; max-width: 100%; margin: 0 auto; }
.mini-qr.qr-canvas { width: 120px; height: 120px; }
.mobile-info h4 { margin: 4px 0 8px; font-size: var(--fs-h); }
.mobile-info p { margin: 0 0 12px; color: #64748b; font-size: var(--fs-sm); line-height: 1.7; }
.copy-line { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.copy-line input {
    flex: 1;
    min-width: 220px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 12.5px;
    color: #475569;
    background: #fff;
}
.mobile-points { margin: 14px 0 0; padding-left: 18px; color: #475569; font-size: 13px; line-height: 1.8; }
.mobile-sub { margin: 4px 20px 10px; font-size: var(--fs); }
.mobile-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 0 20px 20px;
}
.mobile-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
    background: #fff;
    display: grid;
    gap: 10px;
    justify-items: start;
}
.mobile-card-head { display: flex; gap: 10px; align-items: flex-start; }
.mobile-ico {
    width: 30px; height: 30px; flex: 0 0 30px;
    border-radius: 9px;
    background: #eef2ff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 15px;
}
.mobile-card h5 { margin: 0 0 4px; font-size: var(--fs); }
.mobile-card p { margin: 0; font-size: 12.5px; color: #64748b; line-height: 1.6; }
.mini-qr { border: 1px solid var(--line); border-radius: 8px; background: #fff; }

/* ==================== 系统设置 ==================== */
.dict-layout { display: grid; grid-template-columns: 300px 1fr; gap: 14px; align-items: start; margin-bottom: 14px; }
.dict-types { list-style: none; margin: 0; padding: 10px 12px; max-height: 620px; overflow: auto; }
.dict-types li {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 10px;
    padding: 8px 10px;
    margin-bottom: 4px;
}
.dict-types li:hover { background: #f1f5f9; }
.dict-types li.on { background: var(--brand-soft); }
.dict-types li a { flex: 1; min-width: 0; }
.dict-types li strong { display: block; font-size: 13px; color: #0f172a; }
.dict-types li code { font-size: 11px; color: #94a3b8; }
.dict-tag {
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4f46e5;
}
.dict-hint { margin: 0; padding: 10px 16px 14px; font-size: 12px; color: #94a3b8; line-height: 1.7; }
.dict-item-form { background: #f8fafc; border-bottom: 1px solid var(--line); }
.perm-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.perm-group { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #f8fafc; }
.perm-group h4 { margin: 0 0 8px; font-size: 13px; color: #0f172a; }
.perm-items { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; }
.theme-preview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 18px; }
.theme-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    background: #fff;
    display: grid;
    gap: 6px;
    font-size: 13px;
}
.theme-card.on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.theme-card code { font-size: 11px; color: #94a3b8; }
.theme-swatch { height: 44px; border-radius: 9px; }
.std-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 18px; }
.std-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #f8fafc; }
.std-card h4 { margin: 0 0 8px; font-size: 13.5px; color: #0f172a; }
.std-card ul { margin: 0; padding-left: 18px; color: #475569; font-size: 13px; line-height: 1.8; }
.about-hero { display: flex; gap: 16px; align-items: center; padding: 18px; }
.about-logo {
    width: 62px; height: 62px; flex: 0 0 62px;
    border-radius: 16px;
    background: linear-gradient(145deg, var(--brand), var(--accent));
    color: #fff;
    font-size: 28px;
    display: grid; place-items: center;
    box-shadow: 0 12px 26px rgba(37, 99, 235, .28);
}
.about-hero h4 { margin: 0 0 6px; font-size: var(--fs-title); }
.about-hero p { margin: 0 0 4px; }
.kpi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0 18px 18px; }
.about-kpis .kpi a { display: block; }
.kpi {
    display: block;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    background: #f8fafc;
    transition: .15s ease;
}
a.kpi:hover { border-color: #bfdbfe; background: #f8fbff; transform: translateY(-1px); }
.kpi span { display: block; font-size: var(--fs-xs); color: #64748b; }
.kpi strong { display: block; font-size: calc(var(--fs-kpi) - 2px); margin: 4px 0 2px; color: #0f172a; }
.kpi em { font-style: normal; font-size: var(--fs-xs); color: #94a3b8; }
.field-error { margin: 6px 0 0; font-size: var(--fs-xs); color: #b91c1c; }
.input-error { border-color: #fca5a5 !important; background: #fef2f2 !important; }

/* 表单控件统一跟随界面字号，避免各浏览器默认 16px 显得突兀 */
.form-item label,
.form-item input,
.form-item select,
.form-item textarea {
    font-size: var(--fs);
}

@media (max-width: 1100px) {
    .import-grid, .mobile-grid, .theme-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dict-layout { grid-template-columns: 1fr; }
    .std-grid, .perm-groups { grid-template-columns: 1fr; }
    .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mobile-hero { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .app.nav-collapsed { grid-template-columns: 1fr; }
    .import-grid, .mobile-grid, .theme-preview { grid-template-columns: 1fr; }
    .help-drawer { width: 100%; }
    .topbar { flex-direction: column; align-items: stretch; }
    .topbar-right { justify-content: flex-start; }
    .quickbar-tip { display: none; }
}

/* 紧凑密度（系统设置 → 布局密度） */
:root { --row-pad: 12px 14px; }
th, td { padding: var(--row-pad); }

/* ==================== 页面切换进度 / 返回按钮 ==================== */
.nav-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2.5px;
    width: 0;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    z-index: 200;
    opacity: 0;
    transition: width .25s ease, opacity .2s ease;
}
.nav-progress.on { opacity: 1; width: 78%; }
.nav-progress.done { opacity: 0; width: 100%; transition: width .18s ease, opacity .3s ease .1s; }

.back-btn {
    background: #f8fafc;
    font-size: 17px;
    font-weight: 700;
}
.back-btn:hover { background: #eef2ff; }

/* ==================== 业务分析页 ==================== */
.stats { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.an-panel .panel-head h3 { display: flex; align-items: center; gap: 8px; }
.an-note {
    padding: 8px 18px 0;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.6;
}
.an-panel .bars { padding: 14px 18px 18px; gap: 10px; }
.an-panel .bar-row {
    grid-template-columns: 92px 1fr auto;
    gap: 12px;
    color: #334155;
    font-size: var(--fs-sm);
    text-decoration: none;
}
.an-panel .bar-row:hover .bar-fill { filter: brightness(1.06); }
.an-panel .bar-row:hover > div:first-child { color: var(--brand); font-weight: 600; }
.an-panel .bar-track { height: 9px; background: #eef2f7; }
.an-panel .bar-value { color: #0f172a; font-weight: 600; white-space: nowrap; text-align: right; }
.an-panel .bar-note { display: block; color: #94a3b8; font-size: 11px; font-weight: 400; }
.an-table { min-width: 520px; }
.an-table td { font-size: var(--fs-sm); }
.an-tips { margin: 0; padding: 14px 18px 18px 34px; color: #475569; font-size: var(--fs-sm); line-height: 1.9; }
.an-tips strong { color: #0f172a; }
.an-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 4px 0 18px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px dashed #e2e8f0;
}
.an-footer code {
    background: #eef2ff;
    color: #4338ca;
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 11.5px;
}
.empty-note { padding: 22px 18px; text-align: center; color: #94a3b8; font-size: var(--fs-sm); }
.text-danger { color: #dc2626; }

/* 账期柱状图 */
.an-chart {
    display: flex;
    align-items: stretch;
    gap: 14px;
    height: 210px;
    padding: 18px 18px 8px;
}
.an-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: inherit;
    text-decoration: none;
}
.an-col-total { font-size: 11.5px; color: #475569; font-weight: 700; white-space: nowrap; }
.an-col-stack {
    flex: 1;
    width: 100%;
    max-width: 54px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: #f1f5f9;
    border-radius: 8px 8px 4px 4px;
    overflow: hidden;
    transition: .15s ease;
}
.an-col:hover .an-col-stack { box-shadow: 0 0 0 2px #bfdbfe; }
.an-col-rent { background: linear-gradient(180deg, #60a5fa, #2563eb); }
.an-col-meter { background: linear-gradient(180deg, #5eead4, #0d9488); }
.an-col-label { font-size: 11.5px; color: #64748b; white-space: nowrap; }
.an-col:hover .an-col-label { color: var(--brand); font-weight: 600; }
.an-legend {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 18px 16px;
    font-size: 12px;
    color: #64748b;
}
.an-legend span { display: inline-flex; align-items: center; gap: 6px; }
.an-legend .lg-rent::before,
.an-legend .lg-meter::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 3px;
    display: inline-block;
}
.an-legend .lg-rent::before { background: #2563eb; }
.an-legend .lg-meter::before { background: #0d9488; }
.an-legend .muted-note { margin-left: auto; }

/* ==================== 通用弹层（速览 / 最大化） ==================== */
.modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
    z-index: 90;
}
.modal-mask.show { opacity: 1; pointer-events: auto; }
.modal {
    position: fixed;
    top: 6vh;
    left: 50%;
    transform: translate(-50%, 12px);
    width: min(980px, 92vw);
    max-height: 88vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, .28);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 95;
}
.modal.open { display: flex; animation: modal-in .2s ease forwards; }
@keyframes modal-in {
    from { opacity: 0; transform: translate(-50%, 18px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}
.modal.is-max {
    top: 0;
    left: 0;
    transform: none;
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
}
.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(90deg, #eff6ff, #f0fdfa);
    flex: 0 0 auto;
}
.modal-head h3 { margin: 0; font-size: var(--fs-h); }
.modal-actions { display: flex; align-items: center; gap: 6px; }
.modal-body {
    padding: 14px 16px 18px;
    overflow: auto;
    flex: 1 1 auto;
    background: #f8fafc;
}
.modal-body > .panel,
.modal-body > .related-panel > .panel { margin-bottom: 12px; box-shadow: none; }
.modal-body .detail-grid { padding: 6px 12px 12px; }
.modal-loading { padding: 46px 0; text-align: center; color: #94a3b8; font-size: var(--fs-sm); }
.modal-body .panel-head .related-actions { display: none; }

.help-drawer.is-max { width: 100vw; max-width: 100vw; }
.help-head-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }

/* ==================== 移动端（H5） ==================== */
.mobile-tabbar { display: none; }

@media (max-width: 860px) {
    .app { grid-template-columns: 1fr; }
    .main {
        padding: 12px 12px calc(74px + env(safe-area-inset-bottom));
    }
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 282px;
        max-width: 84vw;
        height: 100vh;
        z-index: 80;
        transform: translateX(-104%);
        transition: transform .22s ease;
        border-right: 1px solid var(--sidebar-border);
        box-shadow: 18px 0 40px rgba(15, 23, 42, .16);
        padding-bottom: 20px;
    }
    .app.nav-open .sidebar { transform: translateX(0); }
    .app.nav-collapsed { grid-template-columns: 1fr; }
    .app.nav-collapsed .sidebar { width: 282px; padding: 14px 12px 20px; overflow: auto; border-right: 1px solid var(--sidebar-border); }
    .app.nav-collapsed.nav-open .sidebar { transform: translateX(0); }
    .nav-mask {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, .38);
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease;
        z-index: 75;
    }
    .app.nav-open ~ .nav-mask,
    .nav-mask.show { opacity: 1; pointer-events: auto; }

    .mobile-tabbar {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 60;
        background: rgba(255, 255, 255, .97);
        border-top: 1px solid var(--line);
        box-shadow: 0 -8px 24px rgba(15, 23, 42, .07);
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
        backdrop-filter: blur(8px);
    }
    .mtab {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        padding: 4px 2px;
        border: 0;
        background: none;
        color: #64748b;
        font-size: 11px;
        text-decoration: none;
        cursor: pointer;
        position: relative;
        border-radius: 10px;
    }
    .mtab .mtab-ico { font-size: 18px; line-height: 1.2; }
    .mtab.on { color: var(--brand); font-weight: 700; background: var(--brand-soft); }
    .mtab-dot {
        position: absolute;
        top: 0;
        right: 50%;
        transform: translateX(24px);
        min-width: 15px;
        height: 15px;
        padding: 0 4px;
        border-radius: 999px;
        background: #ef4444;
        color: #fff;
        font-size: 9.5px;
        font-style: normal;
        line-height: 15px;
        text-align: center;
    }

    .topbar { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 10px; }
    .topbar-left { flex: 1 1 auto; }
    .topbar-right { flex: 0 0 auto; gap: 6px; }
    .topbar-right .role-switch select { max-width: 130px; font-size: 12px; padding: 5px 6px; }
    .page-title { font-size: calc(var(--fs-title) - 2px); }
    .crumb { display: none; }
    .quickbar { display: none; }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .stat-card { padding: 12px 13px; }
    .stat-value { font-size: calc(var(--fs-kpi) - 2px); }
    .stat-foot { font-size: 11px; }
    .grid-2 { grid-template-columns: 1fr; gap: 12px; }
    .panel-head { padding: 10px 13px; }
    .an-panel .bar-row { grid-template-columns: 80px 1fr auto; }
    .an-chart { height: 176px; gap: 8px; padding: 12px 12px 6px; }
    .an-col-total { font-size: 10px; }
    .an-col-label { font-size: 10px; }
    .an-footer { align-items: flex-start; }
    .modal { top: 0; left: 0; transform: none; width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; }
    .modal.open { display: flex; }
    .modal.is-max { border-radius: 0; }
    .modal-body { padding: 10px; }
    .help-drawer { width: 100%; max-width: 100%; }
    .drill-banner { font-size: 12px; }
    .drill-actions { width: 100%; margin-left: 0; }
    .toolbar { padding: 10px 12px; }
    .toolbar .filters { width: 100%; }
    .toolbar .filters input[type="search"] { flex: 1 1 130px; min-width: 0; }
    .toolbar .actions { width: 100%; justify-content: flex-start; }
    .pager { flex-wrap: wrap; justify-content: center; gap: 6px; padding: 10px; }
    .pager-size { margin-right: 0; width: 100%; text-align: center; }
    .pager-info { width: 100%; text-align: center; }
}

@media (max-width: 480px) {
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat-value { font-size: 19px; }
    .table-wrap { -webkit-overflow-scrolling: touch; }
    table { min-width: 640px; }
    .an-table { min-width: 480px; }
    .form-actions { position: sticky; bottom: 68px; background: #fff; padding: 10px 0; }
}

/* 移动端触控目标：按钮 / 输入框不小于 38px，减少误触 */
@media (max-width: 860px) {
    .btn { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 13px; }
    .btn-sm { min-height: 34px; padding: 6px 11px; }
    .icon-btn { width: 38px; height: 38px; }
    .toolbar .filters input,
    .toolbar .filters select,
    .form-item input,
    .form-item select,
    .form-item textarea { min-height: 38px; }
    a, button, .mtab { -webkit-tap-highlight-color: rgba(37, 99, 235, .12); }
}

/* 表格横向滚动提示（移动端）：放在容器外，避免被横向滚动带走 */
.table-wrap { position: relative; }
.scroll-hint { display: none; }
@media (max-width: 860px) {
    .scroll-hint {
        display: block;
        padding: 6px 12px;
        font-size: 11px;
        color: #94a3b8;
        text-align: center;
        background: #f8fafc;
        border-bottom: 1px dashed #e2e8f0;
    }
}




/* ================= 脚手架租赁：仪表盘 / 数据总览 / 闭环全景 ================= */
.dash-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}
.dash-grid .panel { margin: 0; }
.panel-span2 { grid-column: span 2; }
.kpi-warn { border-color: #fcd34d; background: #fffbeb; }
.kpi-danger { border-color: #fca5a5; background: #fef2f2; }
.danger-text { color: #b91c1c !important; }
.ok-text { color: #047857 !important; }

.donut-wrap { display: flex; align-items: center; gap: 22px; padding: 8px 18px 20px; flex-wrap: wrap; }
.donut {
    width: 150px; height: 150px; border-radius: 50%;
    display: grid; place-items: center; flex: 0 0 150px;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .04);
}
.donut-hole {
    width: 92px; height: 92px; border-radius: 50%; background: #fff;
    display: grid; place-items: center; text-align: center;
    box-shadow: 0 2px 10px rgba(15, 23, 42, .06);
}
.donut-hole strong { font-size: 18px; color: #0f172a; }
.donut-hole span { font-size: 11px; color: #64748b; }
.legend { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 180px; }
.legend li {
    display: flex; align-items: center; gap: 8px;
    padding: 5px 0; font-size: 12.5px; color: #334155;
    border-bottom: 1px dashed #eef2f7;
}
.legend li:last-child { border-bottom: none; }
.legend i { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 10px; }
.legend b { margin-left: auto; font-weight: 700; color: #0f172a; }
.legend em { font-style: normal; color: #94a3b8; font-size: 11px; width: 46px; text-align: right; }

.vbar-chart {
    display: flex; align-items: flex-end; justify-content: space-around;
    gap: 10px; height: 170px; padding: 18px 18px 6px;
}
.vbar-group { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.vbar-pair { display: flex; align-items: flex-end; gap: 4px; height: 100%; width: 100%; justify-content: center; }
.vbar { width: 12px; min-height: 2px; border-radius: 4px 4px 0 0; transition: height .3s ease; }
.vbar-in { background: linear-gradient(180deg, #60a5fa, #2563eb); }
.vbar-out { background: linear-gradient(180deg, #fbbf24, #f59e0b); }
.vbar-label { font-size: 11px; color: #64748b; }
.vbar-value { font-size: 10px; color: #94a3b8; }
.vbar-wide { height: 210px; }

.todo-list { list-style: none; margin: 0; padding: 6px 18px 16px; }
.todo-list li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px dashed #eef2f7; }
.todo-list li:last-child { border-bottom: none; }
.todo-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.todo-main strong { font-size: 12.5px; color: #0f172a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.todo-main small { font-size: 11px; color: #94a3b8; }
.tag { display: inline-block; padding: 2px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.tag-danger { background: #fee2e2; color: #b91c1c; }
.tag-warn { background: #fef3c7; color: #b45309; }

.mini-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.mini-table th, .mini-table td { padding: 8px 12px; border-bottom: 1px solid #eef2f7; text-align: left; }
.mini-table th { font-size: 11.5px; color: #64748b; font-weight: 600; background: #f8fafc; }
.mini-table td.num, .mini-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.mini-table a { color: #1d4ed8; text-decoration: none; }
.mini-table a:hover { text-decoration: underline; }
.mini-table tbody tr:hover { background: #f8fbff; }

.hbar-list { list-style: none; margin: 0; padding: 10px 18px 16px; }
.hbar-list li { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.hbar-name { width: 96px; flex: 0 0 96px; font-size: 12.5px; color: #334155; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-track { flex: 1; height: 10px; background: #eef2ff; border-radius: 999px; overflow: hidden; }
.hbar-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f59e0b, #dc2626); }
.hbar-track i.alt { background: linear-gradient(90deg, #2563eb, #14b8a6); }
.hbar-value { width: 84px; text-align: right; font-size: 12px; color: #0f172a; font-variant-numeric: tabular-nums; }

.flow-side { list-style: none; margin: 0; padding: 8px 18px 16px; }
.flow-side li { display: flex; align-items: baseline; gap: 8px; padding: 8px 0; border-bottom: 1px dashed #eef2f7; font-size: 12.5px; }
.flow-side li:last-child { border-bottom: none; }
.flow-side span { color: #475569; }
.flow-side b { margin-left: auto; color: #0f172a; }
.flow-side em { font-style: normal; font-size: 11px; color: #94a3b8; width: 130px; text-align: right; }

@media (max-width: 1100px) {
    .dash-grid { grid-template-columns: 1fr; }
    .panel-span2 { grid-column: span 1; }
}
@media (max-width: 700px) {
    .donut-wrap { gap: 14px; }
    .donut { width: 128px; height: 128px; flex-basis: 128px; }
    .donut-hole { width: 78px; height: 78px; }
    .hbar-name { width: 72px; flex-basis: 72px; }
    .flow-side em { width: auto; }
    .vbar-value { display: none; }
}

/* 工具栏内联表单（如「扫描提醒」） */
.inline-form { display: inline-flex; margin: 0; }
.actions { flex-wrap: wrap; }

/* =========================================================================
   2026-11 体验升级：右侧工具条 / 大屏模式 / 板块看板 / 移动端卡片化
   约定：新增样式统一放本段，选择器前缀明确，避免与历史样式互相覆盖。
   ========================================================================= */

/* ---------- 字体与字号：中文优先，数字等宽，层级统一 ---------- */
:root {
    --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC",
            "Noto Sans SC", "Segoe UI", system-ui, -apple-system, sans-serif;
    --rail-width: 56px;
    --mono: "SF Mono", "Cascadia Mono", Consolas, "JetBrains Mono", monospace;
}
body { font-family: var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, h5 { font-weight: 600; letter-spacing: .2px; }
.page-title { font-size: var(--fs-title); line-height: 1.25; }
.panel-head h3 { font-size: var(--fs-h); font-weight: 600; }
.muted-note, .field-help, .demo-tip { font-size: var(--fs-xs); }
.money, .num, .kpi-value, .hbar-value, .vbar-value { font-variant-numeric: tabular-nums; }

/* ---------- 侧栏：工具行、外链标记 ---------- */
.nav-tools {
    display: flex; align-items: center; gap: 6px;
    padding: 0 14px 8px; color: var(--muted); font-size: 11.5px;
}
.nav-tools i { font-style: normal; opacity: .5; }
.link-btn {
    border: 0; background: none; padding: 2px 0; cursor: pointer;
    color: var(--muted); font-size: 11.5px;
}
.link-btn:hover { color: var(--brand); }
.nav-ext { margin-left: auto; font-size: 10px; color: #94a3b8; }
.nav-children a { display: flex; align-items: center; }

/* ---------- 右侧工具条（本页说明 / 待办 / 回到顶部） ---------- */
.rail {
    position: fixed; right: 10px; top: 50%; transform: translateY(-50%);
    display: flex; flex-direction: column; gap: 8px; z-index: 60;
}
.rail-btn {
    width: var(--rail-width); height: 52px; border-radius: 12px; cursor: pointer;
    background: rgba(255, 255, 255, .92); border: 1px solid var(--line);
    box-shadow: 0 6px 18px rgba(15, 23, 42, .07);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    color: #475569; transition: .15s ease;
}
.rail-btn span { font-size: 15px; line-height: 1; }
.rail-btn em { font-style: normal; font-size: 10.5px; }
.rail-btn:hover { color: var(--brand); border-color: var(--brand); background: #fff; transform: translateY(-1px); }
@media (min-width: 861px) { .main { padding-right: calc(26px + var(--rail-width)); } }

/* ---------- 大屏模式（新窗口全屏展示，无侧栏） ---------- */
body.is-screen { background: #eef2f6; }
.app.screen-mode { display: block; }
body.is-screen { overflow: hidden; }
body.is-screen .app.screen-mode { height: 100vh; overflow: hidden; }
body.is-screen .app.screen-mode .main { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
body.is-screen .app.screen-mode .screen-bar { flex: 0 0 auto; }
body.is-screen .app.screen-mode .kpi-grid { flex: 0 0 auto; }
body.is-screen .app.screen-mode .dash-grid { flex: 1 1 auto; min-height: 0; overflow: hidden; grid-auto-rows: minmax(0, 1fr); }
body.is-screen .app.screen-mode .panel { min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
body.is-screen .app.screen-mode .panel > .table-wrap,
body.is-screen .app.screen-mode .panel > .hbar-list { overflow: auto; }
body.is-screen .app.screen-mode .screen-foot { flex: 0 0 auto; }
.app.screen-mode .main { padding: 12px 20px 24px; }
.screen-bar {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 10px 18px; margin-bottom: 12px; border-radius: 14px;
    background: linear-gradient(120deg, #0f2f52, #16406c);
    color: #e2e8f0; box-shadow: 0 12px 30px rgba(15, 47, 82, .25);
}
.screen-bar-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.screen-bar-left strong { font-size: 17px; letter-spacing: .4px; }
.screen-bar .screen-sub { font-size: 12px; color: #9fb3c8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.screen-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); }
.screen-bar-right { display: flex; align-items: center; gap: 12px; font-size: 12.5px; }
.screen-bar-right #screen-time { font-family: var(--mono); color: #cbd5e1; }
.screen-bar .btn-ghost { color: #e2e8f0; border-color: rgba(226, 232, 240, .35); }
.screen-foot {
    margin: 14px 0 0; text-align: center; font-size: 11.5px; color: #7b8ea3;
    display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
}
.app.screen-mode .kpi-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.app.screen-mode .kpi { padding: 14px 12px; }
.app.screen-mode .kpi-value { font-size: 24px; }
.app.screen-mode .dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1200px) {
    .app.screen-mode .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- 板块看板 ---------- */
.board-head {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
    flex-wrap: wrap; margin-bottom: 12px;
}
.board-head-main h3 { margin: 0 0 4px; font-size: 18px; }
.board-head-main p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.7; max-width: 760px; }
.board-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.board-tabs {
    display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px;
    padding: 5px; border-radius: 12px; background: rgba(255, 255, 255, .75);
    border: 1px solid var(--line);
}
.board-tab {
    padding: 6px 12px; border-radius: 9px; font-size: 12.5px; color: #475569;
    transition: .15s ease; white-space: nowrap;
}
.board-tab:hover { background: #eef4ff; color: var(--brand); }
.board-tab.on { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(37, 99, 235, .25); }
.board-kpis { padding: 0 0 14px; }
.kpi-drill { display: block; margin-top: 6px; font-size: 11px; color: var(--brand); opacity: 0; transition: .15s ease; }
.kpi:hover .kpi-drill { opacity: 1; }
.kpi:hover { border-color: var(--brand); background: #f5f9ff; transform: translateY(-1px); }

/* ---------- 移动端：表格卡片化 ---------- */
.scroll-hint { display: none; }
@media (max-width: 760px) {
    .table-wrap { overflow: visible; }
    table[data-mobile-cards] { display: block; border: 0; }
    table[data-mobile-cards] thead { display: none; }
    table[data-mobile-cards] tbody { display: block; }
    table[data-mobile-cards] tr {
        display: block; margin: 0 0 10px; padding: 8px 12px;
        border: 1px solid var(--line); border-radius: 12px; background: #fff;
        box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
    }
    table[data-mobile-cards] td {
        display: flex; align-items: center; gap: 12px;
        padding: 6px 0; border: 0; border-bottom: 1px dashed #eef2f7;
        font-size: 12.5px; text-align: right;
    }
    table[data-mobile-cards] td:last-child { border-bottom: 0; }
    table[data-mobile-cards] td::before {
        content: attr(data-label);
        flex: 0 0 84px; text-align: left; color: var(--muted); font-size: 11.5px;
    }
    table[data-mobile-cards] td > * { margin-left: auto; }
    table[data-mobile-cards] td.col-check { justify-content: flex-start; }
    table[data-mobile-cards] td.col-check::before { content: ""; flex-basis: 0; }
    table[data-mobile-cards] td.ops { gap: 8px; justify-content: flex-end; }
    .mini-table[data-mobile-cards] tr { box-shadow: none; }

    /* 工具栏在手机上纵向排布，按钮可横向滑动 */
    .toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
    .filters { flex-wrap: wrap; }
    .filters input[type="search"] { flex: 1 1 100%; }
    .actions { overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
    .actions .btn { flex: 0 0 auto; }
    .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 0 12px; }
    .kpi-value { font-size: 19px; }
    .board-head-actions .btn { flex: 1 1 auto; text-align: center; }
    .board-tabs { overflow-x: auto; flex-wrap: nowrap; }
    .rail { display: none; }
    .help-drawer { width: 100vw; max-width: 100vw; }
    .mobile-tabbar .mtab-ico { font-size: 14px; }
}

@media (max-width: 480px) {
    .kpi-grid { grid-template-columns: 1fr; }
    .page-title { font-size: 17px; }
}

/* ---------- 仪表盘：待办卡片 / 板块入口 ---------- */
.todo-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 14px 18px 18px; }
.todo-card {
    position: relative; display: block; padding: 12px 14px; border-radius: 12px;
    border: 1px solid var(--line); background: #f8fafc; transition: .15s ease;
}
.todo-card-title { display: block; font-size: 12.5px; color: #475569; padding-right: 44px; }
.todo-card-count { display: block; margin-top: 6px; font-size: 24px; line-height: 1.1; color: #0f172a; font-variant-numeric: tabular-nums; }
.todo-card-go { position: absolute; right: 12px; top: 12px; font-size: 11px; color: var(--brand); opacity: 0; transition: .15s ease; }
.todo-card:hover { border-color: var(--brand); background: #f3f8ff; transform: translateY(-1px); }
.todo-card:hover .todo-card-go { opacity: 1; }
.todo-card.todo-danger .todo-card-count { color: #dc2626; }
.todo-card.todo-warn .todo-card-count { color: #d97706; }
.todo-card.todo-info .todo-card-count { color: #2563eb; }

.board-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 14px 18px 18px; }
.board-link { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #f8fafc; transition: .15s ease; }
.board-link strong { font-size: 13px; }
.board-link span { font-size: 11px; color: var(--muted); }
.board-link:hover { border-color: var(--brand); background: #f3f8ff; color: var(--brand2); }

/* 条形图作为链接时的对齐 */
a.vbar-group { text-decoration: none; }
.legend a { display: flex; align-items: center; gap: 8px; width: 100%; }
.legend li { padding: 0; }

@media (max-width: 760px) {
    .todo-cards { grid-template-columns: 1fr; padding: 12px; }
    .board-links { grid-template-columns: 1fr; padding: 12px; }
}

/* ---------- 大屏：单屏规整布局（1920×1080 优先，尽量不出滚动条） ---------- */
body.is-screen { overflow-x: hidden; }
.app.screen-mode .dash-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.app.screen-mode .panel-span2 { grid-column: span 1; }
.app.screen-mode .panel-head { padding: 10px 14px; }
.app.screen-mode .kpi-grid { gap: 10px; padding: 0 0 10px; }
.app.screen-mode .kpi { padding: 12px 12px; border-radius: 12px; }
.app.screen-mode .kpi-value { font-size: 22px; line-height: 1.15; }
.app.screen-mode .kpi-label { font-size: 12px; }
.app.screen-mode .kpi-sub { font-size: 11px; }
.app.screen-mode .kpi-drill { display: none; }
.app.screen-mode .hbar-list { padding: 8px 14px 14px; }
.app.screen-mode .hbar-list li { padding: 5px 0; }
.app.screen-mode .table-wrap table { font-size: 12px; }
.app.screen-mode .demo-tip { display: none; }
@media (max-width: 1400px) {
    .app.screen-mode .dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .app.screen-mode .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- 表单在手机端：单列、加大点击区域 ---------- */
@media (max-width: 760px) {
    .form-grid { grid-template-columns: 1fr; }    .form-item input, .form-item select, .form-item textarea { min-height: 42px; font-size: 14px; }
    .form-actions { position: sticky; bottom: 56px; background: #fff; padding: 10px 12px; border-radius: 12px; box-shadow: 0 -6px 20px rgba(15,23,42,.08); z-index: 20; }
    .topbar { flex-wrap: wrap; gap: 8px; }
    .topbar-right .role-switch select { max-width: 130px; }
    .quickbar { display: none; }
    .main { padding: 14px 12px 84px; }
    .mobile-tabbar { display: flex; }
    .back-btn { padding: 6px 10px; }
}

/* ---------- 移动端 H5：快捷操作宫格 ---------- */
.m-quick { display: none; }
@media (max-width: 860px) {
    .m-quick {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin: 0 0 14px;
    }
    .m-quick-item {
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        gap: 6px; padding: 12px 6px; border-radius: 14px;
        background: #fff; border: 1px solid var(--line);
        box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
        color: inherit; text-decoration: none; font-size: 12.5px;
    }
    .m-quick-item span { font-size: 21px; line-height: 1; }
    .m-quick-item em { font-style: normal; font-weight: 600; }
    .m-quick-item:active { transform: scale(.97); background: var(--brand-soft); }
}

/* ---------- 打印：去掉工具条与导航 ---------- */
@media print {
    .sidebar, .topbar, .quickbar, .rail, .mobile-tabbar, .help-drawer, .demo-tip, .board-tabs, .board-head-actions { display: none !important; }
    .main { padding: 0; }
    .panel { box-shadow: none; border-color: #ddd; }
}
