:root {
            --bg-page: #f5f6f8;
            --bg-card: #ffffff;
            --bg-nav: #1a1d23;
            --bg-nav-hover: #2a2d35;
            --bg-table-header: #f0f2f5;
            --bg-row-even: #fafbfc;
            --bg-row-hover: #edf3fe;
            --border-table: #e4e7ed;
            --text-primary: #1d2129;
            --text-secondary: #4e5969;
            --text-muted: #86909c;
            --accent: #165dff;
            --accent-light: #e8f0ff;
            --red: #f53f3f;
            --green: #00b42a;
            --orange: #ff7d00;
            --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
            --radius: 8px;
            --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
            --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
            --font-kpi: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
        }
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            font-family: var(--font-sans);
            background: var(--bg-page);
            color: var(--text-primary);
            min-height: 100vh;
        }

        /* ===== 顶部导航 ===== */
        .top-nav {
            background: var(--bg-nav);
            height: 52px;
            display: flex;
            align-items: center;
            padding: 0 16px;          /* 24 → 16：横向留白收紧（2026-09-22 导航紧凑化，为后续接入视频号留位） */
            position: sticky;
            top: 0;
            z-index: 100;
            gap: 1px;                 /* 4 → 1：tab 之间的空白主要由各自左右内边距提供，间距更匀、总量更小 */
        }
        .top-nav .brand {
            color: #fff;
            font-weight: 700;
            font-size: 16px;
            margin-right: 8px;        /* 32 → 8：品牌与首个 tab 之间的留白收紧 */
            letter-spacing: .5px;
            white-space: nowrap;      /* 防「数据驾驶舱」在空间不足时折行 */
            flex-shrink: 0;
        }
        .top-nav .brand span { color: var(--accent); }
        .top-nav a {
            color: rgba(255,255,255,.7);
            text-decoration: none;
            /* 2026-09-22 修正：**只压空白、不缩字号**——字号维持原值 14px；
               横向内边距 16 → 8，相邻文字之间的空隙由约 36px 降到约 16px */
            padding: 6px 8px;
            border-radius: 6px;
            font-size: 14px;
            transition: all .2s;
            white-space: nowrap;      /* 防「京东POP」「数据分析」等折行 */
            flex-shrink: 0;           /* 空间不足时不被压缩（宁可溢出也不折行） */
        }
        /* 窄屏（≤1500px：1920 分屏半宽、1440/1366 笔记本）空间不足时：隐藏**次要信息**
           （数据水位文字 / 品牌文字）只留 logo，并再收一次横向内边距——**不缩小字号**。
           ⚠️ 2026-10-08 断点由 1300 提到 1500：接入「电商总览」（第 13 个 tab）后实测
           1301~1445px 区间既拿不到紧凑档、又装不下 → 导航栏溢出（该区间此前也已临界）；
           提前断点后恢复正常。**仍只压空白与次要信息，tab 字号恒 14px**。 */
        @media (max-width: 1500px) {
            .top-nav { padding: 0 12px; gap: 0; }
            .top-nav .brand { font-size: 0; margin-right: 4px; }
            .top-nav .stats { display: none; }
            .top-nav a { padding: 6px 5px; }
        }
        /* 窄屏再收一档（1310/1280 小笔记本）：继续压内边距并收起角色标签。
           ⚠️ 1152 及以下仍会溢出（13 个 tab 的固有下限）—— 属于既有问题的延续，
           彻底解决需把次要入口收进「更多」下拉。 */
        @media (max-width: 1310px) {
            .top-nav { padding: 0 8px; gap: 0; }
            .top-nav a { padding: 6px 4px; }
            .top-nav .role-tag { display: none; }
        }
        /* 极窄屏兜底（≤1180：1152 及以下）。13 个 tab 的固有宽度已超过视口，
           此时**不隐藏任何入口**，改为允许导航栏横向滚动（滚动条隐去）；
           避免「宁可溢出」把右侧的后台/退出按钮裁出视口。 */
        @media (max-width: 1180px) {
            .top-nav { overflow-x: auto; scrollbar-width: none; }
            .top-nav::-webkit-scrollbar { display: none; }
        }
        .top-nav a:hover { background: var(--bg-nav-hover); color: #fff; }
        .top-nav a.active {
            background: var(--accent);
            color: #fff;
        }
        .top-nav .spacer { flex: 1; }
        .nav-format-btn {
            color: rgba(255,255,255,.7);
            background: transparent;
            border: 1px solid rgba(255,255,255,.25);
            border-radius: 6px;
            padding: 4px 12px;
            font-size: 13px;
            cursor: pointer;
            transition: all .2s;
            margin-right: 10px;
            font-family: var(--font-sans);
            white-space: nowrap;
            flex-shrink: 0;
        }
        .nav-format-btn:hover { background: var(--bg-nav-hover); color: #fff; border-color: rgba(255,255,255,.5); }
        .top-nav .stats {
            color: rgba(255,255,255,.4);
            font-size: 12px;
            font-family: var(--font-mono);
            white-space: nowrap;
            flex-shrink: 0;
        }

        /* ===== 筛选按钮 (Period Buttons) ===== */
        .period-btns {
            display: inline-flex;
            gap: 8px;
            align-items: center;
        }
        .period-btn {
            background: #ffffff;
            border: 1px solid #e5e6eb;
            color: var(--text-primary);
            padding: 5px 14px;
            font-size: 13px;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            font-family: var(--font-sans);
            outline: none;
            box-shadow: 0 1px 2px rgba(0,0,0,0.02);
            height: 32px;
        }
        .period-btn:hover {
            border-color: var(--accent);
            color: var(--accent);
            background: var(--accent-light);
        }
        .period-btn.active {
            background: var(--accent);
            color: #fff;
            border-color: var(--accent);
            box-shadow: 0 2px 5px rgba(22, 93, 255, 0.2);
            font-weight: 500;
        }

        /* ===== 公式栏 ===== */
        .formula-bar {
            position: sticky;
            top: 52px;
            z-index: 99;
            background: #fffbe6;
            border-bottom: 1px solid #f0d060;
            padding: 8px 24px;
            font-family: var(--font-mono);
            font-size: 13px;
            color: #8b6914;
            min-height: 36px;
            display: flex;
            align-items: center;
            gap: 10px;
            transition: opacity .2s;
        }
        .formula-bar .fx-icon {
            font-weight: 700;
            font-style: italic;
            color: #b8860b;
            font-size: 15px;
        }
        .formula-bar .fx-cell {
            color: var(--text-secondary);
            font-size: 11px;
            margin-right: 8px;
            white-space: nowrap;
        }
        .formula-bar .fx-text {
            flex: 1;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .formula-bar .fx-close {
            cursor: pointer;
            color: #b8860b;
            font-size: 16px;
            line-height: 1;
        }
        .formula-bar.hidden { display: none; }
        .fx-active-cell {
            outline: 2px solid #f0d060 !important;
            outline-offset: -1px;
            position: relative;
            z-index: 1;
        }

        /* ===== 页面容器 ===== */
        .page { padding: 20px 24px; max-width: 1600px; margin: 0 auto; }
        .page-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
        }
        .page-header h1 {
            font-size: 20px;
            font-weight: 600;
        }
        .page-header .subtitle {
            font-size: 13px;
            color: var(--text-muted);
            margin-top: 2px;
        }

        /* ===== 选项卡 ===== */
        .tabs {
            display: flex;
            gap: 2px;
            background: var(--bg-card);
            border-radius: var(--radius);
            padding: 4px;
            box-shadow: var(--shadow);
            margin-bottom: 16px;
        }
        .tab-btn {
            padding: 8px 20px;
            border: none;
            background: transparent;
            border-radius: 6px;
            font-size: 13px;
            font-family: var(--font-sans);
            color: var(--text-secondary);
            cursor: pointer;
            transition: all .2s;
        }
        .tab-btn:hover { background: var(--bg-row-hover); }
        .tab-btn.active {
            background: var(--accent);
            color: #fff;
        }

        /* ===== 表格 ===== */
        .table-wrap {
            background: var(--bg-card);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            overflow: hidden;
        }
        .table-scroll {
            overflow-x: auto;
            overflow-y: auto;
            max-height: calc(100vh - 200px);
        }
        table.data-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 13px;
            white-space: nowrap;
        }
        table.data-table thead {
            position: sticky;
            top: 0;
            z-index: 10;
        }
        table.data-table th {
            background: var(--bg-table-header);
            padding: 10px 12px;
            font-weight: 600;
            font-size: 12px;
            color: var(--text-secondary);
            text-align: center !important;
            vertical-align: middle !important;
            border-bottom: 2px solid var(--border-table);
            position: relative;
            user-select: none;
        }
        /* 表格通用第一列左侧固持 */
        table.data-table th:first-child,
        table.data-table td:first-child,
        table.data-table th.col-sticky-first,
        table.data-table td.col-sticky-first {
            text-align: left;
            position: sticky !important;
            left: 0 !important;
            z-index: 5 !important;
            background: var(--bg-card) !important;
        }
        table.data-table thead th:first-child,
        table.data-table thead th.col-sticky-first {
            z-index: 15 !important;
            background: var(--bg-table-header) !important;
        }
        /* 多行表头中，第二行及后续行的首个 th 取消 sticky，彻底防止穿模重叠 */
        table.data-table thead tr:nth-child(n+2) > th:first-child {
            position: static !important;
            z-index: auto !important;
            background: var(--bg-table-header) !important;
        }
        table.data-table th.col-label { text-align: left; min-width: 80px; }
        table.data-table th.col-num { text-align: right; min-width: 90px; }
        table.data-table th.col-rate { text-align: right; min-width: 70px; color: var(--red); }
        /* 分组合并表头 */
        table.data-table th.col-group-header { text-align: center; background: #f0f2f5; }
        /* 月度 Excel 表达模型 */
        table.data-table td.xls-subject {
            background: #f0f7ff !important;
            color: #165dff;
            font-weight: 700;
            text-align: center;
        }
        table.data-table td.xls-indicator { text-align: left; }
        table.data-table tr.xls-group1 td.xls-indicator { background: #f0f7ff !important; }
        table.data-table tr.xls-group2 td.xls-indicator { background: #fafafa !important; }
        table.data-table tr.xls-group1 td.num, table.data-table tr.xls-group1 td.rate { background: #f0f7ff !important; }
        table.data-table tr.xls-group2 td.num, table.data-table tr.xls-group2 td.rate { background: #fafafa !important; }
        /* ── 大指标-小指标 层级表（indicator-tree 标准，对照科目口径表）──
         * 2026-09-07 配色定稿：大指标行不做任何底色/彩字，仅加粗（用户拍板） */
        table.data-table td.itree-label { text-align: left; white-space: nowrap; }
        table.data-table tr.itree-l1-row td.itree-label {
            font-weight: 700;
        }
        table.data-table tr.itree-l1-row td.num, table.data-table tr.itree-l1-row td.rate {
            font-weight: 600;
        }
        /* ── 月度汇总两级模版：一级大类竖向合并格（2026-09-07）── */
        table.data-table td.mm-group {
            font-weight: 700; text-align: center; vertical-align: middle;
            background: #fff; border-right: 2px solid var(--border-table, #e5e7eb);
            letter-spacing: 2px; color: #1d2129;
        }
        .mm-ar{color:#94a3b8;font-size:10px;margin-right:4px;cursor:pointer;user-select:none}
        .mm-ar:hover{color:#165dff}
        tr.subrow td{background:#fcfcfd;color:#4e5969}
        table.data-table tr.itree-sub-row td.itree-label { color: #4a5568; background: #fff !important; }
        table.data-table tr.itree-sub-row td.itree-label.itree-l3 { color: #7a8699; }
        .itree-arrow {
            display: inline-block; width: 16px; cursor: pointer;
            color: #94a3b8; font-size: 10px; user-select: none;
        }
        .itree-arrow:hover { color: #165dff; }
        .itree-name { cursor: pointer; }
        .itree-gap {
            display: inline-block; margin-left: 6px; padding: 0 5px;
            font-size: 10px; line-height: 15px; border-radius: 3px;
            background: #fef3c7; color: #b45309; cursor: help;
        }
        table.data-table td {
            padding: 8px 12px;
            border-bottom: 1px solid var(--border-table);
            text-align: right;
            transition: background .15s;
        }
        table.data-table td:first-child {
            font-weight: 500;
            color: var(--text-primary);
        }
        table.data-table tr:nth-child(even) td {
            background-color: var(--bg-row-even);
        }
        table.data-table tr:nth-child(even) td:first-child {
            background-color: var(--bg-row-even);
        }
        table.data-table tr:hover td {
            background-color: var(--bg-row-hover) !important;
        }
        table.data-table tr:hover td:first-child {
            background-color: var(--bg-row-hover) !important;
        }
        table.data-table td.rate {
            font-family: var(--font-sans);
            font-variant-numeric: tabular-nums;
            font-size: 12px;
        }
        table.data-table td.rate.pos { color: var(--green); }
        table.data-table td.rate.neg { color: var(--red); }
        /* 表格内 yoy 环比标签（绿涨红跌；继承全局规则） */
        table.data-table td .yoy.up { color: var(--green); background: #f0fdf4; }
        table.data-table td .yoy.down { color: var(--red); background: #fef2f2; }
        table.data-table td .yoy.flat { color: var(--text-muted); background: #f1f5f9; }
        table.data-table td.num {
            font-family: var(--font-sans);
            font-variant-numeric: tabular-nums;
            font-size: 12px;
        }
        table.data-table td.num.neg-val {
            color: var(--red);
        }
        table.data-table td.num.pos { color: var(--green); }
        /* 合计行 */
        table.data-table tr.total-row td {
            background: #e3f2fd !important;
            font-weight: 700;
            border-top: 2px solid #90caf9;
        }
        table.data-table tr.total-row td:first-child {
            background: #e3f2fd !important;
        }
        /* 环比行 */
        table.data-table tr.mom-row td {
            background: #f3e5f5 !important;
            font-weight: 500;
            font-size: 11px;
        }
        table.data-table tr.mom-row td:first-child {
            background: #f3e5f5 !important;
        }
        table.data-table td.mom-up { color: var(--green); }
        table.data-table td.mom-down { color: var(--red); }
        /* 年汇总行 */
        table.data-table tr.year-row td {
            background: #fff3e0 !important;
            font-weight: 700;
            color: #d97706;
            border-top: 2px solid #fb923c;
        }
        table.data-table tr.year-row td.rate,
        table.data-table tr.year-row td.num {
            color: #d97706;
        }
        /* 月MTD行 */
        table.data-table tr.mtd-row td {
            background: #f5f7ff !important;
        }
        table.data-table tr.mtd-row td:first-child {
            background: #f5f7ff !important;
            color: #1e40af;
            font-weight: 600;
        }
        /* 月份折叠 */
        table.data-table td.month-toggle {
            cursor: pointer;
            user-select: none;
        }
        table.data-table td.month-toggle:hover {
            filter: brightness(0.93);
        }
        /* 筛选后小计行 */
        table.data-table tr.subtotal-row td {
            background: #fff8e1 !important;
            font-weight: 700;
            border-top: 2px solid #e6a817;
            border-bottom: 2px solid #e6a817;
        }
        table.data-table tr.subtotal-row td:first-child {
            background: #fff8e1 !important;
            color: #b8860b;
        }
        tr.month-group-row td {
            background: #f0f4ff !important;
            font-weight: 600;
            color: #1e40af;
            cursor: pointer;
            user-select: none;
            border-top: 2px solid #93b3e0 !important;
        }
        tr.month-group-row td.month-sticky {
            position: sticky !important;
            left: 0;
            z-index: 3 !important;
            white-space: nowrap;
            min-width: 180px;
            background: #f0f4ff !important;
        }
        tr.month-group-row td:hover {
            background: #e3ecff !important;
        }
        tr[class*="month-daily-"].collapsed {
            display: none;
        }
        table.data-table td.editable {
            cursor: cell;
        }
        table.data-table td.editable:hover {
            box-shadow: inset 0 0 0 2px var(--accent);
        }
        table.data-table td.editing {
            padding: 0 !important;
        }
        table.data-table td.editing input {
            width: 100%;
            height: 100%;
            border: 2px solid var(--accent);
            outline: none;
            font-family: var(--font-mono);
            font-size: 12px;
            padding: 6px 10px;
            background: #fff;
            box-sizing: border-box;
        }

        /* ===== 表头分组合并 ===== */
        table.data-table thead tr.group-header th {
            background: #e8eaed;
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: .5px;
            color: var(--text-muted);
            padding: 6px 12px;
            text-align: center;
        }

        /* ===== 场域/分组分隔线 ===== */
        table.data-table th.sep-right,
        table.data-table td.sep-right {
            border-right: 2px solid #c0c4cc !important;
        }
        table.data-table th.sep-right {
            /* 表头分隔线稍深 */
            border-right-color: #b0b5be !important;
        }

        /* ===== 统计卡片 ===== */
        .stat-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 12px;
            margin-bottom: 16px;
        }
        .stat-card {
            background: var(--bg-card);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            padding: 16px 20px;
        }
        /* 饼图/圈图 总额标签：doughnut 中心 / pie 右下角 */
        .pie-center-label {
            position: absolute;
            font-size: 16px;
            font-weight: 700;
            font-family: var(--font-mono);
            color: var(--text-primary);
            pointer-events: none;
            white-space: nowrap;
        }
        .pie-center-label.is-doughnut {
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
        }
        .pie-center-label.is-pie {
            bottom: 14px;
            right: 16px;
            text-align: right;
            font-size: 14px;
            color: var(--text-muted);
            font-weight: 600;
        }
        .stat-card .label {
            font-size: 12px;
            color: var(--text-muted);
            margin-bottom: 4px;
        }
        .stat-card .value {
            font-size: 24px;
            font-weight: 700;
            font-family: var(--font-kpi);
            letter-spacing: -0.3px;
        }
        /* 环比标签：箭头 + 色块（绿=涨，红=跌，灰=无数据） */
        .stat-card .yoy {
            font-family: var(--font-sans);
            font-size: 13px;
            font-weight: 500;
            margin-left: 8px;
            vertical-align: middle;
            padding: 1px 6px;
            border-radius: 5px;
            white-space: nowrap;
        }
        .stat-card .yoy.up {
            color: #16a34a;
            background: #dcfce7;
        }
        .stat-card .yoy.down {
            color: #dc2626;
            background: #fee2e2;
        }
        .stat-card .yoy.flat {
            color: #64748b;
            background: #f1f5f9;
        }
        .stat-card .yoy:hover {
            cursor: help;
        }
        /* 场域/渠道卡多行指标布局：每行一个指标+数值+环比 */
        .stat-card .kpi-sub {
            display: flex;
            flex-direction: column;
            gap: 4px;
            margin-top: 6px;
            font-size: 12px;
            color: var(--text-muted);
        }
        .stat-card .kpi-sub > div {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 6px;
            line-height: 1.4;
        }
        .stat-card .kpi-key {
            flex-shrink: 0;
            color: var(--text-muted);
            font-weight: 500;
        }
        .stat-card .kpi-sub > div > span:nth-child(2) {
            font-weight: 600;
            color: var(--text-primary);
            font-family: var(--font-mono);
        }

        /* ===== 筛选栏 ===== */
        .filter-bar {
            display: flex;
            gap: 8px;
            align-items: center;
            margin-bottom: 12px;
            flex-wrap: wrap;
        }
        .filter-bar select, .filter-bar input, .filter-bar button {
            padding: 6px 12px;
            border: 1px solid var(--border-table);
            border-radius: 6px;
            font-size: 13px;
            font-family: var(--font-sans);
            background: var(--bg-card);
            color: var(--text-primary);
            outline: none;
        }
        .filter-bar select:focus, .filter-bar input:focus {
            border-color: var(--accent);
        }
        .filter-bar button {
            background: var(--accent);
            color: #fff;
            border: none;
            cursor: pointer;
            transition: opacity .2s;
        }
        .filter-bar button:hover { opacity: .85; }
        .filter-bar .btn-secondary {
            background: var(--bg-table-header);
            color: var(--text-secondary);
        }
        .btn-sm {
            padding: 4px 10px; font-size: 11px; border-radius: 4px;
            border: 1px solid var(--border-table); background: transparent;
            color: var(--text-secondary); cursor: pointer; white-space: nowrap;
            transition: all .2s;
        }
        .btn-sm:hover, .btn-sm.active {
            border-color: var(--accent); color: var(--accent);
            background: rgba(217,119,6,.06);
        }

        /* ===== 加载与分页 ===== */
        .loading {
            text-align: center;
            padding: 40px;
            color: var(--text-muted);
        }
        .pagination {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 16px;
            font-size: 13px;
            color: var(--text-muted);
            border-top: 1px solid var(--border-table);
        }
        .pagination button {
            padding: 4px 12px;
            border: 1px solid var(--border-table);
            border-radius: 4px;
            background: var(--bg-card);
            cursor: pointer;
            font-size: 13px;
        }
        .pagination button:disabled { opacity: .4; cursor: not-allowed; }

        /* ===== 空状态 ===== */
        .empty-state {
            text-align: center;
            padding: 60px 20px;
            color: var(--text-muted);
        }
        .empty-state .icon { font-size: 48px; margin-bottom: 12px; opacity: .3; }

        /* ===== Toast ===== */
        .toast {
            position: fixed;
            top: 64px;
            right: 24px;
            padding: 12px 20px;
            border-radius: 8px;
            font-size: 13px;
            z-index: 999;
            opacity: 0;
            transform: translateY(-10px);
            transition: all .3s;
        }
        .toast.show { opacity: 1; transform: translateY(0); }
        .toast.success { background: #e8ffea; color: #00b42a; border: 1px solid #b7f5bd; }
        .toast.error { background: #ffece8; color: #f53f3f; border: 1px solid #fcd1c9; }

        /* ===== 响应式 ===== */
        @media (max-width: 768px) {
            .page { padding: 12px; }
            .top-nav { padding: 0 12px; }
            .top-nav a { padding: 6px 10px; font-size: 12px; }
        }

        /* ===== 页面切换动画 ===== */
        .tab-content { display: none; }
        .tab-content.active { display: block; }

        /* ===== 文件上传 ===== */
        .upload-area {
            border: 2px dashed var(--border-table);
            border-radius: var(--radius);
            padding: 40px;
            text-align: center;
            cursor: pointer;
            transition: all .2s;
            background: var(--bg-card);
        }
        .upload-area:hover { border-color: var(--accent); background: var(--accent-light); }
        .upload-area input { display: none; }
        .upload-area .icon { font-size: 32px; margin-bottom: 8px; opacity: .4; }

        /* ===== 导出按钮与快捷筛选按钮 ===== */
        .export-btn, .btn-quick {
            padding: 4px 10px; background: #fff; border: 1px solid var(--border-table);
            border-radius: 4px; cursor: pointer; font-size: 11px; font-family: var(--font-sans);
            color: var(--text-secondary); transition: all .15s; white-space: nowrap;
        }
        .export-btn:hover, .btn-quick:hover { border-color: var(--accent); color: var(--accent); }
        .btn-quick.active { background: var(--accent); color: #fff; border-color: var(--accent); }

        /* ===== 数据分析模块统一置顶吸顶容器 ===== */
        .analysis-sticky-top-wrap {
            position: sticky;
            top: 52px;
            z-index: 80;
            background: var(--bg-page);
            padding-top: 14px;
            margin-top: -14px;
            margin-bottom: 12px;
        }
        .analysis-sticky-top-wrap .analysis-categorized-nav {
            margin-bottom: 8px !important;
        }
        .analysis-sticky-top-wrap .filter-bar {
            margin-bottom: 0 !important;
            position: static !important;
        }

        /* ===== flatpickr 定制 ===== */
        .flatpickr-calendar {
            box-shadow: 0 4px 20px rgba(0,0,0,.15) !important;
            border-radius: 10px !important;
            font-family: var(--font-sans) !important;
        }
        .flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange {
            background: var(--accent) !important;
            border-color: var(--accent) !important;
        }
        .flatpickr-day.inRange {
            background: var(--accent-light) !important;
            border-color: var(--accent-light) !important;
            box-shadow: -5px 0 0 var(--accent-light), 5px 0 0 var(--accent-light) !important;
        }
        .flatpickr-months .flatpickr-month { color: var(--text-primary) !important; }
        .flatpickr-current-month { color: var(--text-primary) !important; }
        .flatpickr-weekdays { background: var(--bg-table-header) !important; }
        .flatpickr-day.today { border-color: var(--orange) !important; }
        .flatpickr-calendar.arrowTop:before, .flatpickr-calendar.arrowTop:after { border-bottom-color: #fff !important; }
        .fp-range-input {
            background: var(--bg-card);
            border: 1px solid var(--border-table);
            border-radius: 6px;
            padding: 6px 10px;
            font-size: 13px;
            font-family: var(--font-sans);
            color: var(--text-primary);
            outline: none;
            min-width: 200px;
            cursor: pointer;
        }
        .fp-range-input:focus { border-color: var(--accent); }
        .fp-range-input::placeholder { color: var(--text-muted); }
        .flatpickr-input[readonly] { cursor: pointer; }

        /* ===== 导出筛选弹窗 ===== */
        .export-dialog-overlay {
            display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,.3); z-index: 999; justify-content: center; align-items: center;
        }
        .export-dialog-overlay.show { display: flex; }
        .export-dialog {
            background: var(--bg-card); border-radius: 12px; padding: 20px 24px;
            box-shadow: 0 8px 40px rgba(0,0,0,.2); min-width: 320px;
        }
        .export-dialog h3 { font-size: 15px; font-weight: 500; margin: 0 0 14px 0; }
        .export-dialog .row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
        .export-dialog .row label { font-size: 12px; color: var(--text-secondary); min-width: 48px; }
        .export-dialog .row input, .export-dialog .row select {
            flex: 1; padding: 7px 10px; border: 1px solid var(--border-table); border-radius: 6px;
            font-size: 13px; font-family: var(--font-sans); outline: none;
        }
        .export-dialog .actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
        .export-dialog .actions button {
            padding: 7px 20px; border-radius: 6px; font-size: 13px; font-family: var(--font-sans); cursor: pointer;
        }
        .export-dialog .btn-cancel { background: var(--bg-table-header); border: 1px solid var(--border-table); color: var(--text-secondary); }
        .export-dialog .btn-confirm { background: var(--accent); border: none; color: #fff; }
/* ===== 移动端适配 ===== */
@media (max-width: 768px) {
    .top-nav {
        flex-wrap: wrap;
        padding: 8px 12px;
        gap: 8px;
    }
    .top-nav a {
        padding: 4px 8px;
        font-size: 13px;
    }
    .top-nav .brand {
        font-size: 14px;
        width: 100%;
        margin-bottom: 4px;
        justify-content: center;
    }
    .stats {
        width: 100%;
        text-align: center;
        font-size: 11px;
    }
    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .kpi-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .card {
        padding: 12px;
    }
    .chart-box {
        height: 250px;
    }
    table th, table td {
        padding: 6px 8px;
        font-size: 11px;
    }
    .data-table-container {
        max-height: 50vh;
    }
}

/* ===== 用户身份与后台管理系统 CSS ===== */
.user-nav-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    padding: 4px 4px 4px 12px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    backdrop-filter: blur(8px);
    transition: all 0.2s;
}
.user-nav-badge:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.16); }
.user-nav-name {
    font-weight: 500;
    color: rgba(255,255,255,.9);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.role-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .3px;
    line-height: 1.4;
}

/* ===== 视图切换按钮样式 (抖店 & 天猫驾驶舱统一) ===== */
.view-card {
    cursor: pointer;
    background: var(--bg-card);
    border: 1px solid var(--border-table);
    border-radius: 8px;
    padding: 8px 22px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.view-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.view-card.active#cardDoudianProfit, .view-card.active#cardProfit, .view-card.active#cardXhsProfit {
    background: var(--bg-card);
    border-color: rgba(245, 166, 35, 0.4);
    border-top: 3px solid #f5a623;
    color: var(--text-primary);
    font-weight: 700;
}
.view-card.active#cardDoudianCategory, .view-card.active#cardCategory, .view-card.active#cardXhsCategory {
    background: var(--bg-card);
    border-color: rgba(145, 204, 117, 0.4);
    border-top: 3px solid #91cc75;
    color: var(--text-primary);
    font-weight: 700;
}
.view-card.active#cardDoudianDashboard, .view-card.active#cardTmallDashboard, .view-card.active#cardXhsDashboard {
    background: var(--bg-card);
    border-color: rgba(22, 93, 255, 0.4);
    border-top: 3px solid #165dff;
    color: var(--text-primary);
    font-weight: 700;
}

/* ===== 公式字典跳转按钮（2026-08-12 加，内嵌 page-header 操作区） ===== */
.formula-dict-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #4338ca;
    background: linear-gradient(135deg, #eef2ff 0%, #ede9fe 100%);
    border: 1px solid #a5b4fc;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.15s;
    box-shadow: 0 1px 3px rgba(99,102,241,.12);
}
.formula-dict-btn:hover {
    background: linear-gradient(135deg, #e0e7ff 0%, #ddd6fe 100%);
    border-color: #818cf8;
    color: #3730a3;
    box-shadow: 0 2px 8px rgba(99,102,241,.22);
}

.role-admin {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    box-shadow: 0 1px 4px rgba(99,102,241,.45);
}
.role-editor {
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    color: #fff;
    box-shadow: 0 1px 4px rgba(6,182,212,.4);
}
.role-user, .role-viewer {
    background: rgba(148,163,184,.18);
    color: rgba(255,255,255,.8);
    border: 1px solid rgba(148,163,184,.35);
}

.user-badge {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;            /* 4/10 → 3/8：导航紧凑化 */
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    margin: 0 3px;
    white-space: nowrap;
    flex-shrink: 0;
}
.user-badge i {
    color: #38bdf8;
    font-size: 14px;
}
.user-badge .role-tag {
    font-size: 11px;
    padding: 1px 7px;
    border-radius: 10px;
    font-weight: 600;
}

.nav-admin-link {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18) !important;
    color: rgba(255,255,255,.85) !important;
    padding: 4px 10px !important;   /* 5/12 → 4/10：导航紧凑化 */
    border-radius: 16px !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.nav-admin-link:hover {
    background: rgba(255,255,255,.16);
    color: #fff !important;
    border-color: rgba(255,255,255,.3) !important;
}
.nav-admin-link.active {
    background: var(--accent);
    color: #fff !important;
    border-color: var(--accent) !important;
    box-shadow: 0 2px 8px rgba(22,93,255,.35);
}

.nav-logout-btn {
    color: rgba(255,255,255,.7);
    font-size: 12px;
    text-decoration: none;
    padding: 4px 10px;           /* 4/12 → 4/10：导航紧凑化 */
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.15);
    transition: all 0.2s;
    margin-left: 2px;
    white-space: nowrap;
    flex-shrink: 0;
}
.nav-logout-btn:hover {
    color: #ff8a85;
    background: rgba(235,77,75,.16);
    border-color: rgba(235,77,75,.45);
}

/* Admin 面板 */
/* Admin 面板 */
.admin-container {
    max-width: 1320px;
    margin: 24px auto;
    padding: 0 20px;
}
/* 后台顶部吸顶栏：包裹标题+Tab，下拉滚动时始终固定在全局顶栏下方（top:52px，2026-08-19）*/
.admin-sticky-bar {
    position: sticky;
    top: 52px;       /* 紧贴 base.html 全局 .top-nav (52px) 下方 */
    z-index: 99;
    background: var(--bg-card);   /* 必须有 background，否则滚动时透出底层表格 */
    padding: 8px 12px 0 12px;
    margin: 0 -20px 20px -20px;  /* 抵消 .admin-container 的左右 padding，让 background 贴边 */
    border-bottom: 1px solid var(--border-table);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);  /* 微弱阴影让吸顶栏更具分层感 */
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;  /* 容器化后间距调小（原 22px 由 sticky 容器统一管）*/
}
.admin-title-group h2 {
    font-size: 22px;
    margin: 0 0 6px 0;
    color: var(--text-primary);
    letter-spacing: .3px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.admin-subtitle {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
}
.btn-create-user {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    border: none;
    padding: 9px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(37, 99, 235, 0.25);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-create-user:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}
.btn-create-user:active { transform: translateY(0) scale(0.98); }

.admin-tabs {
    display: flex;
    gap: 6px;
    /* border-bottom 移到 .admin-sticky-bar 统一管理，避免双线 */
    margin-bottom: 0;       /* 容器统一管外边距 */
    padding: 0 2px;
}
.admin-tabs .tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 18px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    border-radius: 8px 8px 0 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.admin-tabs .tab-btn:hover { color: var(--accent); background: rgba(22,93,255,0.04); }
.admin-tabs .tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    font-weight: 600;
    background: rgba(22,93,255,0.05);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

.card-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-table);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}
.card-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #8b5cf6 55%, rgba(22,93,255,0.05));
    opacity: .85;
}
.panel-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    /* 2026-08-19：panel-header 不直接 sticky；吸顶由 .tab-sticky-pane（fixed 克隆）实现，
       原位置元素在吸顶时加 .stuck 隐藏内容但保留占空，无洞无重复 */
}
.panel-header h3 { font-size: 15px; font-weight: 600; margin: 0; color: var(--text-primary); }
.panel-tip { font-size: 12px; color: var(--text-secondary); margin-left: 12px; }

/* 操作审计日志 Tab 筛选区：普通流（吸顶由克隆面板承担） */
.logs-filter-bar {
    background: var(--bg-card);
    padding: 8px 0 10px 0;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-table);
}

/* ===== 2026-08-19 后台吸顶克隆面板 ===== */
.tab-sticky-pane {
    position: fixed;
    /* left/right 由 JS 在 update() 里根据 active tab 内 .table-responsive 的 getBoundingClientRect
       动态计算并赋值（避免 fixed 撑满 viewport 宽度导致列错位），此处仅作 fallback。 */
    left: 0;
    right: 0;
    z-index: 96;              /* 低于 admin-sticky-bar(99) 与全局 top-nav(100)，高于表格内容 */
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-table);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
    /* 2026-08-19：不设水平 padding，否则克隆 table 的 width:100% 会比原 table 窄 48px → 列错位 */
    padding: 10px 0;
    max-height: 140px;
    overflow: hidden;
}
.tab-sticky-pane .panel-header {
    margin-bottom: 8px;
    padding: 0;
    border-bottom: none;
}
.tab-sticky-pane .logs-filter-bar {
    margin-bottom: 10px;
    border-bottom: none;
    padding: 0 0 4px 0;
}
/* 原位置元素吸顶时隐藏内容（保留占空让布局稳定，克隆面板正好覆盖） */
.panel-header.stuck,
.logs-filter-bar.stuck {
    visibility: hidden;
}
.table-responsive.stuck thead {
    visibility: hidden;
}

.log-search-input {
    background: #fff;
    border: 1px solid var(--border-table);
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 13px;
    color: var(--text-primary);
    outline: none;
    width: 240px;
    transition: all 0.2s;
}
.log-search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(22,93,255,0.1);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.admin-table th, .admin-table td {
    padding: 11px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-table);
    vertical-align: middle;
}
.admin-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: .3px;
    white-space: nowrap;
}
.admin-table tbody tr { transition: background 0.15s; }
.admin-table tbody tr:hover { background: #f8faff; }
.admin-table tbody tr:last-child td { border-bottom: none; }

/* 角色徽章 */
.role-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .2px;
    line-height: 1.2;
    white-space: nowrap;
}
.admin-table .role-badge {
    padding: 4px 10px;
    min-width: 68px;
}
.admin-table .role-admin {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    color: #6d28d9;
    border: 1px solid #c4b5fd;
}
.admin-table .role-editor {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}
.admin-table .role-user {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

/* 账号状态徽章 */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    padding: 2px 8px;
    border-radius: 10px;
    line-height: 1.3;
}
.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}
.status-active {
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}
.status-active .status-dot { background: #10b981; }
.status-disabled {
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
}
.status-disabled .status-dot { background: #ef4444; }

.action-tag {
    background: #eef1f6;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 12px;
    color: #43536e;
    font-weight: 500;
}

/* 权限胶囊标签 */
.perm-tags-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px 4px;
    flex-wrap: wrap;
    max-width: 216px;
    margin: 0 auto;
}
.perm-tag {
    display: inline-flex;
    align-items: center;
    padding: 1.5px 5px;
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.3;
}
.perm-tag-on {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}
.perm-tag-off {
    background: #f8fafc;
    color: #94a3b8;
    border: 1px solid #e2e8f0;
}
.perm-lock-badge {
    color: #94a3b8;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    margin-left: 2px;
}
.perm-check-group input[type="checkbox"] {
    cursor: pointer;
}

/* 操作按钮组：td 必须保持标准 table-cell，由内部容器做 inline-flex 布局，杜绝行高与边框错位 */
.admin-table td.action-cell {
    text-align: right;
    vertical-align: middle;
    padding-right: 12px;
}
.action-btn-group {
    display: inline-flex;
    gap: 4px;
    justify-content: flex-end;
    align-items: center;
    white-space: nowrap;
    flex-wrap: nowrap;
}
.action-cell {
    text-align: right;
    vertical-align: middle;
}
.btn-sm {
    padding: 3.5px 7px;
    border-radius: 5px;
    font-size: 11.5px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    line-height: 1.35;
}
.btn-sm:active { transform: scale(0.96); }
.btn-outline {
    background: #fff;
    border-color: #cbd5e1;
    color: #334155;
}
.btn-outline:hover { background: #f8fafc; border-color: #94a3b8; color: #0f172a; }
.btn-perm {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #4338ca;
}
.btn-perm:hover { background: #4338ca; color: #fff; border-color: #4338ca; }
.btn-warn {
    background: #fffbeb;
    color: #b45309;
    border-color: #fde68a;
}
.btn-warn:hover { background: #f59e0b; color: #fff; border-color: #f59e0b; }
.btn-success {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}
.btn-success:hover { background: #10b981; color: #fff; border-color: #10b981; }
.btn-danger {
    background: #fff1f2;
    color: #e11d48;
    border-color: #fecdd3;
}
.btn-danger:hover { background: #f43f5e; color: #fff; border-color: #f43f5e; }
.self-tag {
    font-size: 11px;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}
.admin-only-hint {
    font-size: 12px;
    color: #94a3b8;
    font-style: italic;
}

/* 日志/后台通用次按钮（分页、筛选、弹窗取消等） */
.admin-container .btn-secondary {
    background: #fff;
    border: 1px solid #d5dce8;
    color: #43536e;
    padding: 5px 12px;
    border-radius: 7px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.18s;
    font-weight: 500;
}
.admin-container .btn-secondary:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent);
    background: #eef4ff;
}
.admin-container .btn-secondary:disabled { opacity: 0.45; cursor: not-allowed; }

/* 系统健康度 */
.system-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}
.sys-card {
    background: var(--bg-card);
    border: 1px solid var(--border-table);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}
.sys-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.sys-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}
.sys-card:nth-child(1) .sys-icon { background: linear-gradient(135deg,#e8f0ff,#d4e2ff); color: #2563eb; }
.sys-card:nth-child(2) .sys-icon { background: linear-gradient(135deg,#e8f7ee,#cdeeda); color: #16a34a; }
.sys-card:nth-child(3) .sys-icon { background: linear-gradient(135deg,#fff4e6,#ffe3c4); color: #d97706; }
.sys-label { font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; }
.sys-value { font-size: 24px; font-weight: 700; color: var(--text-primary); }
.sys-sub { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* 模态框 */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(4px);
    z-index: 1000; display: flex; align-items: center; justify-content: center;
}
.modal-overlay.hidden { display: none; }
.admin-modal {
    background: var(--bg-card);
    border: 1px solid var(--border-table);
    border-radius: 16px;
    width: 440px;
    max-width: 90%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    overflow: hidden;
}
.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px; border-bottom: 1px solid var(--border-table);
}
.modal-header h3 { margin: 0; font-size: 16px; }
.modal-close { cursor: pointer; font-size: 18px; color: var(--text-secondary); }
.modal-body { padding: 20px; }
.form-item { margin-bottom: 16px; }
.form-item label { display: block; font-size: 13px; margin-bottom: 6px; color: var(--text-secondary); }
.form-item input, .form-item select {
    width: 100%; box-sizing: border-box; background: var(--bg-card);
    border: 1px solid var(--border-table); border-radius: 8px;
    padding: 9px 12px; font-size: 14px; color: var(--text-primary); outline: none;
}
.form-item input:focus, .form-item select:focus { border-color: var(--accent); }
.required { color: #eb4d4b; }
/* 后台模态框按钮（取消/确认） */
.admin-modal .btn-cancel {
    background: #fff;
    border: 1px solid #d5dce8;
    color: #43536e;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.18s;
    font-weight: 500;
}
.admin-modal .btn-cancel:hover { border-color: #94a3b8; background: #f1f5f9; }
.admin-modal .btn-confirm {
    background: linear-gradient(135deg, #4f7cff, #165dff);
    border: none;
    color: #fff;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.18s;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(22, 93, 255, 0.25);
}
.admin-modal .btn-confirm:hover { box-shadow: 0 5px 14px rgba(22, 93, 255, 0.35); transform: translateY(-1px); }
.admin-modal .btn-confirm:active { transform: scale(0.97); }
.modal-footer {
    display: flex; justify-content: flex-end; gap: 10px;
    padding: 14px 20px; background: var(--bg-table-header); border-top: 1px solid var(--border-table);
}


/* ==================== 达人面板子视图 chip 切换 (2026-08-13) ==================== */
.chip-bar {
    display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap;
}
.chip-btn {
    padding: 6px 14px; border: 1px solid var(--border-table); border-radius: 999px;
    background: #fff; color: var(--text); font-size: 13px; cursor: pointer;
    transition: all .15s ease;
}
.chip-btn:hover { border-color: var(--accent); color: var(--accent); }
.chip-btn.active {
    background: var(--accent); border-color: var(--accent); color: #fff;
    box-shadow: 0 2px 6px -1px rgb(22 93 255 / .4);
}

/* ==================== 标准多选下拉胶囊组件体系 (.ms-wrap) ==================== */
.ms-wrap {
    position: relative;
    display: inline-block;
    font-size: 13px;
    vertical-align: middle;
}
.ms-display {
    padding: 6px 12px;
    border: 1px solid var(--border-table);
    border-radius: 6px;
    background: #fff;
    min-width: 130px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    line-height: 1.4;
    color: var(--text-primary);
    transition: border-color .15s ease, box-shadow .15s ease;
    box-sizing: border-box;
}
.ms-display:hover {
    border-color: #94a3b8;
}
.ms-display::after {
    content: "▼";
    font-size: 10px;
    margin-left: 8px;
    color: #64748b;
    pointer-events: none;
}
.ms-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid var(--border-table);
    border-radius: 6px;
    margin-top: 4px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
    min-width: 160px;
    padding: 4px 0;
    white-space: nowrap;
    box-sizing: border-box;
}
.ms-dropdown.show {
    display: block;
}
.ms-dropdown label {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    cursor: pointer;
    gap: 8px;
    margin: 0;
    font-weight: normal;
    color: var(--text-primary);
    font-size: 13px;
    transition: background .12s;
    user-select: none;
}
.ms-dropdown label:hover {
    background: #f1f5f9;
}
.ms-dropdown input[type="checkbox"] {
    cursor: pointer;
    margin: 0;
    width: 14px;
    height: 14px;
}
.ms-dropdown .ms-search {
    display: block; width: calc(100% - 16px); margin: 4px 8px 6px; padding: 6px 10px;
    border: 1px solid var(--border-table); border-radius: 6px; font-size: 13px;
    outline: none; transition: border-color .15s ease;
}
.ms-dropdown .ms-search:focus { border-color: var(--accent); }

/* ==================== 数据分析决策中枢 · 现代驾驶舱级 UI 体系 (2026-08-19) ==================== */
.an-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}
.an-page-header h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 4px 0;
}
.an-page-header h1 i {
    color: var(--accent);
    font-size: 22px;
}
.an-page-header .subtitle {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 统一吸顶容器 */
.analysis-sticky-top-wrap {
    position: sticky;
    top: 52px;
    z-index: 60;
    background: var(--bg-page);
    padding: 0 0 12px 0;
    margin-bottom: 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 现代化药丸导航 */
.an-nav-bar {
    background: #ffffff;
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid var(--border-table);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.an-nav-bar::-webkit-scrollbar {
    display: none;
}
.an-nav-group {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}
.an-nav-group-tag {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 5px;
    border-radius: 4px;
    letter-spacing: 0.2px;
    white-space: nowrap;
    margin-right: 1px;
}
.an-nav-divider {
    color: #e2e8f0;
    font-size: 11px;
    margin: 0 1px;
    flex-shrink: 0;
}
.an-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3.5px 7px;
    font-size: 11.5px;
    font-weight: 500;
    color: #475569;
    background: transparent;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
}
.an-pill i {
    font-size: 12.5px;
    color: #64748b;
    transition: color 0.18s;
}
.an-pill:hover {
    color: var(--accent);
    background: #f0f5ff;
    border-color: #d6e4ff;
}
.an-pill:hover i {
    color: var(--accent);
}
.an-pill.active {
    color: var(--accent);
    background: #e8f0ff;
    border-color: #adc6ff;
    font-weight: 600;
}
.an-pill.active i {
    color: var(--accent);
}
.an-pill.ai-pill {
    color: #7c3aed;
    background: #faf5ff;
    border-color: #e9d5ff;
}
.an-pill.ai-pill i {
    color: #9333ea;
}
.an-pill.ai-pill:hover {
    background: #f3e8ff;
    border-color: #d8b4fe;
}
.an-pill.ai-pill.active {
    color: #6b21a8;
    background: #ede9fe;
    border-color: #c084fc;
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(124, 58, 237, 0.15);
}

/* 现代化筛选控制条 */
.an-filter-bar {
    background: #ffffff;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-table);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-height: 42px;
}
.an-filter-item {
    display: flex;
    align-items: center;
    gap: 5px;
}
.an-filter-label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}
.an-select {
    height: 30px;
    padding: 2px 8px;
    border: 1px solid var(--border-table);
    border-radius: 6px;
    background: #fff;
    font-size: 12px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.15s;
    font-family: var(--font-sans);
}
.an-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-light);
}

/* 按钮微动效 */
.an-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 30px;
    padding: 0 13px;
    border-radius: 6px;
    background: linear-gradient(135deg, #4f7cff, #165dff);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(22, 93, 255, 0.2);
    white-space: nowrap;
}
.an-btn-primary:hover {
    background: linear-gradient(135deg, #3d6eff, #0a4ae8);
    box-shadow: 0 4px 10px rgba(22, 93, 255, 0.3);
    transform: translateY(-1px);
}
.an-btn-primary:active {
    transform: scale(0.98);
}
.an-btn-purple {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.25);
}
.an-btn-purple:hover {
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.35);
}

/* 现代化卡片与网格体系 */
.an-card {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid var(--border-table);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.02);
    padding: 18px 20px;
    margin-bottom: 14px;
    transition: box-shadow 0.2s;
}
.an-card:hover {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
}
.an-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}
.an-card-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}
.an-card-header h3 i {
    font-size: 17px;
    color: var(--accent);
}
.an-card-header .header-sub {
    font-size: 12px;
    color: var(--text-muted);
}

/* 状态 KPI 卡片强化 */
.an-kpi-card {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid var(--border-table);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.an-kpi-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}
.an-kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    opacity: 0.85;
}
.an-kpi-card.purple::before { background: #8b5cf6; }
.an-kpi-card.green::before { background: #10b981; }
.an-kpi-card.amber::before { background: #f59e0b; }
.an-kpi-card.red::before { background: #ef4444; }

.an-kpi-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.an-kpi-label i {
    font-size: 16px;
    color: var(--text-muted);
}
.an-kpi-val {
    font-family: var(--font-kpi);
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.15;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}
.an-kpi-val.green { color: #059669; }
.an-kpi-val.red { color: #dc2626; }
.an-kpi-sub {
    font-size: 11.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
}

/* 语义化徽章体系 */
.an-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
}
.an-badge.badge-star {
    background: #fdf4ff;
    color: #c026d3;
    border: 1px solid #f5d0fe;
}
.an-badge.badge-cow {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}
.an-badge.badge-question {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}
.an-badge.badge-dog {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}
.an-badge.badge-warn {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}
.an-badge.badge-danger {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}
.an-badge.badge-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* 排名徽章 */
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-mono);
}
.rank-1 { background: linear-gradient(135deg, #ffd700, #ffb800); color: #fff; box-shadow: 0 2px 5px rgba(255, 184, 0, 0.4); }
.rank-2 { background: linear-gradient(135deg, #cbd5e1, #94a3b8); color: #fff; box-shadow: 0 2px 5px rgba(148, 163, 184, 0.4); }
.rank-3 { background: linear-gradient(135deg, #f97316, #ea580c); color: #fff; box-shadow: 0 2px 5px rgba(234, 88, 12, 0.4); }
.rank-normal { background: #f1f5f9; color: #64748b; }

/* 结构化 AI 操盘手报告面板 */
.an-ai-panel {
    background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%);
    border: 1px solid #e9d5ff;
    border-left: 4px solid #8b5cf6;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.05);
}
.an-ai-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(221, 214, 254, 0.6);
}
.an-ai-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: #6d28d9;
}
.an-ai-body {
    font-size: 13px;
    line-height: 1.7;
    color: #334155;
}

/* 骨架屏动画 */
@keyframes anShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.ai-shimmer-line {
    height: 14px;
    background: linear-gradient(90deg, #ede9fe 25%, #ddd6fe 37%, #ede9fe 63%);
    background-size: 400% 100%;
    animation: anShimmer 1.5s ease infinite;
    border-radius: 4px;
    margin-bottom: 8px;
}

/* ===== Markdown 富文本排版与对话/体检报告样式 ===== */
.chat-bubble .md-h1, .an-ai-body .md-h1 {
    font-size: 15px; font-weight: 700; color: #1e293b;
    margin: 14px 0 8px; padding-bottom: 4px; border-bottom: 1px solid #e2e8f0;
}
.chat-bubble .md-h2, .an-ai-body .md-h2 {
    font-size: 14px; font-weight: 700; color: #1e293b;
    margin: 12px 0 6px;
}
.chat-bubble .md-h3, .an-ai-body .md-h3 {
    font-size: 13.5px; font-weight: 700; color: #4c1d95;
    margin: 12px 0 6px; display: flex; align-items: center; gap: 4px;
}
.chat-bubble .md-p, .an-ai-body .md-p {
    margin: 0 0 8px; line-height: 1.7; font-size: 13px; color: #334155;
}
.chat-bubble .md-p:last-child, .an-ai-body .md-p:last-child {
    margin-bottom: 0;
}
.chat-bubble .md-ul, .an-ai-body .md-ul {
    margin: 0 0 8px; padding-left: 18px; line-height: 1.7; font-size: 13px; color: #334155; list-style-type: disc;
}
.chat-bubble .md-ol, .an-ai-body .md-ol {
    margin: 0 0 8px; padding-left: 18px; line-height: 1.7; font-size: 13px; color: #334155; list-style-type: decimal;
}
.chat-bubble .md-ul li, .chat-bubble .md-ol li,
.an-ai-body .md-ul li, .an-ai-body .md-ol li {
    margin-bottom: 4px;
}
.chat-bubble .md-quote, .an-ai-body .md-quote {
    background: #f8fafc; border-left: 3px solid #8b5cf6;
    padding: 8px 12px; border-radius: 4px; margin: 8px 0; font-size: 12.5px; color: #475569; line-height: 1.6;
}
.md-chip {
    display: inline-block; padding: 1px 6px; border-radius: 4px;
    background: #ede9fe; color: #6d28d9; font-size: 12px; font-weight: 600; margin: 0 2px;
}
.md-warn {
    color: #dc2626; font-weight: 700;
}

/* 优雅紧凑的 Markdown 表格 */
.md-table-wrap {
    width: 100%; overflow-x: auto; margin: 8px 0 12px;
    border: 1px solid #e2e8f0; border-radius: 6px; background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.md-table {
    width: 100%; border-collapse: collapse; font-size: 12.5px; line-height: 1.4; text-align: left;
}
.md-table th {
    background: #f8fafc; color: #475569; font-weight: 600;
    padding: 7px 10px; border-bottom: 1px solid #e2e8f0; border-right: 1px solid #f1f5f9; white-space: nowrap;
}
.md-table th:last-child { border-right: none; }
.md-table td {
    padding: 7px 10px; border-bottom: 1px solid #f1f5f9; border-right: 1px solid #f8fafc;
    color: #1e293b; white-space: nowrap;
}
.md-table td:last-child { border-right: none; }
.md-table tbody tr:last-child td { border-bottom: none; }
.md-table tbody tr:hover { background: #fdfcff; }

/* ==================== 问号说明 Tooltip 规范 ==================== */
.an-info-tip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-left: 6px;
    font-size: 14px;
    color: #94a3b8;
    cursor: help;
    vertical-align: middle;
    transition: color 0.15s ease, transform 0.15s ease;
}
.an-info-tip:hover {
    color: #165dff;
    transform: scale(1.1);
}
.an-info-tip .an-tip-box {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    color: #f8fafc;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.55;
    padding: 8px 12px;
    border-radius: 6px;
    white-space: normal;
    width: max-content;
    max-width: 280px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15), 0 0 1px rgba(255, 255, 255, 0.2) inset;
    pointer-events: none;
    z-index: 1000;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    text-align: left;
}
.an-info-tip .an-tip-box::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(15, 23, 42, 0.95) transparent transparent transparent;
}
.an-info-tip:hover .an-tip-box {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.an-info-tip.tip-right .an-tip-box {
    left: auto;
    right: -10px;
    transform: translateX(0) translateY(4px);
}
.an-info-tip.tip-right:hover .an-tip-box {
    transform: translateX(0) translateY(0);
}
.an-info-tip.tip-right .an-tip-box::after {
    left: auto;
    right: 14px;
}
.an-info-tip.tip-left .an-tip-box {
    left: -10px;
    transform: translateX(0) translateY(4px);
}
.an-info-tip.tip-left:hover .an-tip-box {
    transform: translateX(0) translateY(0);
}
.an-info-tip.tip-left .an-tip-box::after {
    left: 14px;
}



/* ==================== 平台多选下拉（2026-09-30）====================
   分析模块 11 个看板的「平台」筛选由单选 <select> 升级为多选。
   结构：.pf-multi > .pf-multi-btn（按钮）+ .pf-multi-panel（复选面板）
   选中结果写入同名隐藏 input，页面既有读法无需改动。
   语义：一个都不勾 = 全网（与「场域」面板「清空 = 全部场域」一致）。 */
.pf-multi { position: relative; display: inline-block; }
.pf-multi-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    min-width: 120px;
    max-width: 230px;
    padding: 2px 8px;
    background: #fff;
    border: 1px solid var(--border-table);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.15s;
    font-family: var(--font-sans);
}
.pf-multi-btn:hover { border-color: var(--accent); }
.pf-multi-btn.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-light);
}
.pf-multi-btn.has-filter {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
    font-weight: 600;
}
.pf-multi-txt {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pf-multi-caret { font-size: 14px; margin-left: auto; flex: none; }

.pf-multi-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 10000;
    width: 252px;
    max-height: 420px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 12px;
    display: none;
}
.pf-multi-panel.show { display: block; }

.pf-multi-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 8px;
}
.pf-multi-head-title { font-size: 12px; font-weight: 700; color: #334155; }
.pf-multi-quick { display: flex; gap: 4px; }
.pf-multi-quick .btn-quick { padding: 2px 6px; font-size: 11px; }
.pf-multi-sep { height: 1px; background: #f1f5f9; margin: 6px 0; }
.pf-multi-list { max-height: 236px; overflow-y: auto; }

.pf-multi-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 4px;
    border-radius: 6px;
}
.pf-multi-item:hover { background: #f8fafc; }
.pf-multi-item-all { background: #f8fafc; }
.pf-multi-ck {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 1;
    min-width: 0;
    font-size: 12.5px;
    color: #334155;
    cursor: pointer;
}
.pf-multi-ck input {
    width: 14px;
    height: 14px;
    accent-color: var(--accent);
    cursor: pointer;
    flex: none;
    margin: 0;
}
.pf-multi-ck span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-multi-only {
    flex: none;
    padding: 1px 7px;
    font-size: 11px;
    color: #64748b;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    cursor: pointer;
    font-family: var(--font-sans);
}
.pf-multi-only:hover {
    color: #1d4ed8;
    background: #e6efff;
    border-color: #bfdbfe;
}
.pf-multi-foot {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
}
.pf-multi-hint { flex: 1; font-size: 11px; color: #94a3b8; }
.pf-multi-foot .an-btn-primary { height: 26px; padding: 0 12px; font-size: 12px; }
