        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif; background: #f0f2f5; color: #333; }
        
        .layout { display: flex; height: 100vh; overflow: hidden; }
        
        .sidebar-overlay { display: none; }
        
        /* 左侧菜单 */
        .sidebar { width: 220px; background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%); color: #fff; display: flex; flex-direction: column; flex-shrink: 0; overflow-y: auto; }
        .sidebar-logo { padding: 20px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.1); }
        .sidebar-logo h1 { font-size: 22px; color: #B8860B; letter-spacing: 4px; }
        .sidebar-logo p { font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 4px; }
        .sidebar-menu { flex: 1; padding: 10px 0; }
        .menu-group { margin-bottom: 6px; }
        .menu-group-title { padding: 10px 20px 6px; font-size: 11px; color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: 1px; }
        .menu-item { padding: 11px 20px; cursor: pointer; display: flex; align-items: center; gap: 10px; transition: all .2s; font-size: 14px; color: rgba(255,255,255,0.7); border-left: 3px solid transparent; }
        .menu-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
        .menu-item.active { background: rgba(184,134,11,0.15); color: #B8860B; border-left-color: #B8860B; }
        .menu-item .icon { font-size: 16px; width: 20px; text-align: center; }
        .menu-arrow { margin-left: auto; font-size: 10px; transition: transform .2s; }
        .menu-item.open .menu-arrow { transform: rotate(90deg); }
        .submenu { overflow: hidden; max-height: 0; transition: max-height .3s; }
        .submenu.open { max-height: 1000px; }
        .submenu .menu-item { padding-left: 50px; font-size: 13px; }
        
        /* 右侧内容 */
        .main { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
        .header { height: 56px; background: #fff; border-bottom: 1px solid #e8e8e8; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; flex-shrink: 0; }
        .header-title { font-size: 16px; font-weight: 600; color: #1a1a2e; }
        .header-actions { display: flex; gap: 12px; align-items: center; }
        .content { flex: 1; overflow-y: auto; padding: 20px; background: #f5f7fa; }
        
        /* 日期筛选 */
        .date-filter { display: flex; gap: 8px; align-items: center; }
        .date-btn { padding: 6px 14px; border: 1px solid #d9d9d9; background: #fff; border-radius: 4px; cursor: pointer; font-size: 13px; transition: all .2s; }
        .date-btn:hover { border-color: #B8860B; color: #B8860B; }
        .date-btn.active { background: #B8860B; border-color: #B8860B; color: #fff; }
        
        /* 卡片 */
        .card { background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); margin-bottom: 16px; }
        .card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
        .card-title { font-size: 15px; font-weight: 600; color: #1a1a2e; }
        .card-actions { font-size: 12px; color: #999; }
        
        /* KPI卡片 */
        .kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
        .kpi-card { background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); position: relative; overflow: hidden; }
        .kpi-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
        .kpi-card.gold::before { background: #B8860B; }
        .kpi-card.blue::before { background: #1890ff; }
        .kpi-card.green::before { background: #13c2c2; }
        .kpi-card.orange::before { background: #fa8c16; }
        .kpi-card.red::before { background: #fa8c16; }
        .kpi-label { font-size: 13px; color: #999; margin-bottom: 8px; }
        .kpi-card[style*=gradient] .kpi-label { color: rgba(255,255,255,0.85); }
        .kpi-value { font-size: 28px; font-weight: 700; color: #1a1a2e; }
        .kpi-value.small { font-size: 22px; }
        .kpi-change { font-size: 12px; margin-top: 6px; display: flex; align-items: center; gap: 4px; }
        .kpi-change.up { color: #13c2c2; }
        .kpi-change.down { color: #fa8c16; }
        
        /* 图表 */
        .chart-grid { display: grid; gap: 16px; margin-bottom: 16px; }
        .chart-grid.cols-2 { grid-template-columns: 1fr 1fr; }
        .chart-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
        .chart-box { height: 320px; }
        .chart-box.small { height: 260px; }
        
        /* 表格 */
        .data-table { width: 100%; border-collapse: collapse; }
        .data-table th { text-align: left; padding: 12px 16px; font-size: 12px; color: #999; border-bottom: 1px solid #f0f0f0; font-weight: 500; background: #fafafa; white-space: nowrap; }
        .data-table td { padding: 12px 16px; font-size: 12px; border-bottom: 1px solid #f0f0f0; white-space: nowrap; }
        .data-table tr:hover td { background: #fafafa; }
        .rank-badge { display: inline-block; min-width: 20px; height: 20px; line-height: 20px; text-align: center; border-radius: 4px; font-size: 11px; color: #fff; }
        .rank-1 { background: #B8860B; }
        .rank-2 { background: #8c8c8c; }
        .rank-3 { background: #d48806; }
        .rank-n { background: #d9d9d9; color: #666; }
        .rank-tab { padding: 8px 18px; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; border: 1px solid #d9d9d9; background: #fff; color: #555; }
        .rank-tab-hot.on { border-color: #1677ff; background: #1677ff; color: #fff; }
        .rank-tab-cold.on { border-color: #fa8c16; background: #fa8c16; color: #fff; }
        
        /* ABC分类 */
        .abc-tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; }
        .abc-A { background: #fff1f0; color: #722ed1; }
        .abc-B { background: #fff7e6; color: #d46b08; }
        .abc-C { background: #f6ffed; color: #389e0d; }
        
        /* RFM标签 */
        .rfm-tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; }
        .rfm-high { background: #fff1f0; color: #722ed1; }
        .rfm-mid { background: #fff7e6; color: #d46b08; }
        .rfm-low { background: #f6ffed; color: #389e0d; }
        /* RFM分层色（member 页） */
        .rfm-tag-gold { background: #fff7e6; color: #000; font-weight: 600; }
        .rfm-tag-blue { background: #e6f7ff; color: #000; font-weight: 600; }
        .rfm-tag-orange { background: #fff7e6; color: #000; font-weight: 600; }
        .rfm-tag-purple { background: #f9f0ff; color: #000; font-weight: 600; }
        .rfm-tag-gray { background: #f5f5f5; color: #000; font-weight: 600; }
        
        /* 小程序会员分析（member-mini-*） */
        .mini-loading { padding: 40px; text-align: center; color: #999; font-size: 13px; }
        .mini-empty { padding: 40px; text-align: center; color: #999; font-size: 13px; }
        .mini-level-bar { display: flex; flex-direction: column; gap: 12px; }
        .mini-level-item { display: flex; align-items: center; gap: 12px; }
        .mini-level-name { width: 100px; flex-shrink: 0; font-size: 12px; color: #000; font-weight: 600; }
        .mini-level-track { flex: 1; height: 22px; background: #f0f0f0; border-radius: 4px; overflow: hidden; }
        .mini-level-fill { height: 100%; background: #B8860B; border-radius: 4px; min-width: 2px; }
        .mini-level-count { width: 70px; flex-shrink: 0; text-align: right; font-size: 12px; color: #000; }
        .member-level-tag { display: inline-block; padding: 2px 10px; border-radius: 4px; font-size: 12px; background: #f0f0f0; color: #000; font-weight: 600; }
        .member-name { font-size: 13px; color: #000; font-weight: 600; }
        
        /* 生命周期 */
        .lifecycle-tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; }
        .lifecycle-new { background: #e6f7ff; color: #1890ff; }
        .lifecycle-growth { background: #f6ffed; color: #13c2c2; }
        .lifecycle-mature { background: #fff7e6; color: #fa8c16; }
        .lifecycle-decline { background: #f5f5f5; color: #999; }
        
        /* 加载状态 */
        .loading { display: flex; align-items: center; justify-content: center; height: 200px; color: #999; }
        
        /* 表格滚动容器 */
        .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
        .table-scroll .data-table { min-width: 600px; }

        /* 空状态 */
        .empty { text-align: center; padding: 40px; color: #ccc; }
        
        /* 进度条 */
        .progress-bar { height: 6px; background: #f0f0f0; border-radius: 3px; overflow: hidden; }
        .progress-fill { height: 100%; background: #B8860B; border-radius: 3px; transition: width .6s ease; }
        
        /* 分页 */
        .pagination-wrap { margin-top: 16px; display: flex; justify-content: flex-end; }
        
        /* 响应式 */
        
        /* 移动端快捷时间栏：只保留快捷按钮（今日/昨日/本周/本月）+ 筛选按钮；自定义日期区间已并入筛选器面板。
      非 fixed/非 sticky（避免遮挡首行内容 + iOS 合成层分离），作为 header 下方的普通横条参与文档流 */
        .mobile-date-bar { display: none; }
        #yuli-gf-topbtn-m { align-items: center; padding: 5px 11px; border: 1px solid #B8860B; background: #fff; color: #B8860B; border-radius: 16px; font-size: 12px; font-weight: 600; cursor: pointer; flex-shrink: 0; white-space: nowrap; } /* 筛选按钮外观（GF._refreshEntry 按 show 设内联 display 控制显隐） */
        @media (max-width: 1200px) {
            .kpi-grid { grid-template-columns: repeat(2, 1fr); }
            .chart-grid.cols-2 { grid-template-columns: 1fr; }
            .chart-grid.cols-3 { grid-template-columns: 1fr; }
        }
        @media (max-width: 768px) {
            .sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: 200px; z-index: 210; transform: translateX(-100%); transition: transform .25s ease; display: flex; flex-direction: column; flex-shrink: 0; overflow-y: auto; box-shadow: 2px 0 12px rgba(0,0,0,0.3); }
            .sidebar.open { transform: translateX(0); }
            .sidebar-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.4); z-index: 205; display: none; }
            .sidebar-overlay.show { display: block !important; }
            .menu-btn { display: flex !important; align-items: center; justify-content: center; }
            .header { padding: 0 10px; height: 48px; }
            .header .header-actions .date-filter { display: none !important; }
            .header-title { font-size: 15px; font-weight: 700; }
            .header-actions { gap: 6px; flex-wrap: nowrap; }
            /* 移动端快捷时间栏：快捷按钮一行横向滚动，筛选按钮固定右端 */
            .mobile-date-bar { display: flex !important; align-items: center; background: #fff; padding: 6px 10px; border-bottom: 1px solid #e8e8e8; flex-shrink: 0; }
            .mobile-date-bar .mdb-scroll { flex: 1; min-width: 0; display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; }
            .mobile-date-bar .mdb-scroll::-webkit-scrollbar { display: none; }
            .mobile-date-bar .date-btn { padding: 5px 11px; font-size: 12px; border-radius: 16px; white-space: nowrap; flex-shrink: 0; }
            .mobile-date-bar #yuli-gf-topbtn-m { display: inline-flex; margin-left: 8px; box-shadow: -8px 0 8px -6px rgba(0,0,0,.15); }
            .content { padding: 10px; }
            .kpi-grid { grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; }
            .kpi-card { padding: 8px 10px; overflow: hidden; }
            .kpi-card .kpi-value { word-break: break-all; }
            .kpi-value { font-size: 16px; }
            .kpi-value.small { font-size: 14px; }
            .kpi-change { font-size: 9px; margin-top: 2px; flex-wrap: wrap; }
            .kpi-label { font-size: 10px; margin-bottom: 2px; }
            .chart-box { height: 240px; }
            .card { padding: 12px; margin-bottom: 10px; }
            .card-title { font-size: 14px; }
            .date-filter { flex-wrap: wrap; gap: 4px; }
            .date-btn { padding: 4px 8px; font-size: 11px; }
            .data-table th, .data-table td { padding: 6px 8px; font-size: 12px; }
            .login-box { width: 90%; padding: 32px 24px; }
        }
        @media (max-width: 480px) {
            .kpi-grid { grid-template-columns: 1fr 1fr 1fr; gap: 4px; }
            .kpi-card { padding: 6px; }
            .kpi-value { font-size: 13px; }
            .kpi-label { font-size: 9px; margin-bottom: 1px; }
            .kpi-change { font-size: 10px; }
            .content { padding: 8px; }
            .chart-box { height: 220px; }
            .card { padding: 10px; }
            .sidebar-logo h1 { font-size: 18px; }
        }

        .menu-btn { display: none; width: 36px; height: 36px; border: none; background: #f5f5f5; border-radius: 8px; font-size: 18px; cursor: pointer; color: #333; flex-shrink: 0; }

/* 登录页 */
    .login-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); z-index: 9999; display: flex; align-items: center; justify-content: center; }
    .login-box { background: rgba(255,255,255,0.05); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 48px 40px; width: 400px; text-align: center; }
    .login-box h2 { color: #B8860B; font-size: 28px; letter-spacing: 6px; margin-bottom: 8px; }
    .login-box p { color: rgba(255,255,255,0.5); font-size: 13px; margin-bottom: 32px; }
    .login-input { width: 100%; padding: 14px 18px; margin-bottom: 16px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 8px; color: #fff; font-size: 15px; outline: none; transition: border-color .2s; box-sizing: border-box; }
    .login-input:focus { border-color: #B8860B; }
    .login-input::placeholder { color: rgba(255,255,255,0.3); }
    .login-btn { width: 100%; padding: 14px; background: linear-gradient(135deg, #B8860B, #DAA520); border: none; border-radius: 8px; color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; letter-spacing: 4px; transition: opacity .2s; }
    .login-btn:hover { opacity: 0.9; }
    .login-error { color: #ff6b6b; font-size: 13px; margin-top: 12px; min-height: 20px; }
    .header-user { display: flex; align-items: center; gap: 10px; margin-left: auto; color: rgba(255,255,255,0.7); font-size: 13px; }
    .header-user a { color: #B8860B; cursor: pointer; }
    .header-user a:hover { text-decoration: underline; }


/* 销售概览深度分析扩展样式 */

/* 6列KPI布局 */
.kpi-grid-6 { grid-template-columns: repeat(6, 1fr); }

/* KPI子标签 */
.kpi-sub { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12px; }
.kpi-hint { color: #999; font-size: 12px; }
.kpi-rate { color: #13c2c2; font-weight: 600; margin-right: 4px; }
.kpi-tag { color: #999; font-size: 11px; background: #f5f5f5; padding: 1px 6px; border-radius: 4px; }

/* KPI卡片新颜色 */
.kpi-card.purple::before { background: #722ed1; }
.kpi-card.teal::before { background: #13c2c2; }

/* 图表图例 */
.card-legend { display: flex; gap: 16px; font-size: 12px; color: #666; }
.legend-item { display: flex; align-items: center; gap: 4px; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* 表格辅助类 */
.text-mono { font-family: "Courier New", monospace; font-size: 12px !important; }
.text-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-right { text-align: right !important; }
.text-center { text-align: center !important; }
.text-muted { color: #999 !important; }
.text-profit { color: #13c2c2; }
.text-profit-high { color: #389e0d; font-weight: 600; }
.text-loss { color: #fa8c16; }
.text-danger { color: #fa8c16; font-weight: 600; }
.text-warning { color: #fa8c16; }
.text-success { color: #13c2c2; }

/* 标签 */
.tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; background: #f5f5f5; color: #666; }
.tag.tag-success { background: #f6ffed; color: #13c2c2; }
.tag.tag-danger { background: #fff1f0; color: #fa8c16; }
.tag.tag-warning { background: #fff7e6; color: #fa8c16; }

/* 异常行样式 */
.anomaly-high td { background: rgba(82, 196, 26, 0.1) !important; }
.anomaly-low td { background: rgba(255, 77, 79, 0.1) !important; }

/* 响应式KPI */
@media (max-width: 1400px) {
    .kpi-grid-6 { grid-template-columns: repeat(3, 1fr); }
}


/* 门店表格居中 */
.store-table th, .store-table td { text-align: center; }
.store-table tr:hover td { background: #fafafa; cursor: pointer; }

/* 搜索框 */
.search-input { padding: 8px 12px; border: 1px solid #d9d9d9; border-radius: 4px; font-size: 13px; width: 240px; outline: none; transition: border-color .2s; }
.search-input:focus { border-color: #B8860B; }
        .filter-item { display: flex; align-items: center; gap: 6px; }
        .filter-label { font-size: 13px; color: #555; white-space: nowrap; }
        .btn { padding: 5px 16px; border-radius: 4px; border: 1px solid #d9d9d9; background: #fff; color: #333; font-size: 13px; cursor: pointer; transition: all .2s; }
        .btn:hover { border-color: #B8860B; color: #B8860B; }
        .filter-select { height: 32px; padding: 0 6px 0 10px; border: 1px solid #d9d9d9; border-radius: 4px; font-size: 13px; box-sizing: border-box; line-height: 30px; outline: none; transition: border-color .2s; background: #fff; vertical-align: middle; }
        .filter-select:focus { border-color: #B8860B; }
        .filter-select-active { border-color: #B8860B !important; background: #fffdf5; }

/* 弹窗 */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.45); z-index: 1000; display: flex; align-items: center; justify-content: center; }
.modal-content { background: #fff; border-radius: 8px; box-shadow: 0 6px 30px rgba(0,0,0,0.2); max-height: 85vh; overflow: hidden; display: flex; flex-direction: column; }
.modal-lg { width: 90%; max-width: 1200px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid #f0f0f0; flex-shrink: 0; }
.modal-title { font-size: 16px; font-weight: 600; color: #1a1a2e; }
.modal-close { width: 32px; height: 32px; border: none; background: #f5f5f5; border-radius: 50%; font-size: 18px; cursor: pointer; color: #999; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.modal-close:hover { background: #fa8c16; color: #fff; }
.modal-body { padding: 20px; overflow-y: auto; flex: 1; }

/* 销存透视表 */
.cross-tab { width: 100%; border-collapse: collapse; font-size: 13px; }
.cross-tab th { text-align: center; padding: 10px 8px; font-size: 12px; color: #666; border-bottom: 2px solid #f0f0f0; background: #fafafa; font-weight: 600; white-space: nowrap; }
.cross-tab td { text-align: center; padding: 8px 6px; border-bottom: 1px solid #f0f0f0; white-space: nowrap; }
.cross-tab tr:hover td { background: #fafafa; }
.cross-tab .ct-size { min-width: 50px; }
.cross-tab .ct-total { background: #f9f9f9; font-weight: 600; }
.cross-tab td.text-danger { color: #fa8c16; }

/* ==================== 财务分析模块 ==================== */
.finance-tabs { display: flex; gap: 0; border-bottom: 2px solid #f0f0f0; margin-bottom: 20px; }
.finance-tabs span { padding: 10px 20px; cursor: pointer; font-size: 14px; color: #666; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all .2s; }
.finance-tabs span:hover { color: #B8860B; }
.finance-tabs span.active { color: #B8860B; border-bottom-color: #B8860B; font-weight: 600; }
@media (max-width: 768px) {
    .finance-tabs { display: none; }
}
.finance-module .kpi-row { display: flex; gap: 16px; margin-bottom: 20px; }
.finance-module .kpi-card { flex: 1; background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.finance-module .kpi-label { font-size: 13px; color: #999; margin-bottom: 8px; }
.finance-module .kpi-value { font-size: 28px; font-weight: 700; margin-bottom: 6px; }
.finance-module .kpi-sub { font-size: 12px; color: #999; }
.finance-module .chart-row { display: flex; gap: 16px; margin-bottom: 16px; }
.finance-module .chart-card { flex: 1; background: #fff; border-radius: 8px; padding: 16px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.finance-module .chart-title { font-size: 14px; font-weight: 600; color: #333; margin-bottom: 12px; }
.finance-module .list-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.finance-module .summary-bar { background: #f6ffed; border: 1px solid #b7eb8f; border-radius: 6px; padding: 10px 16px; margin-bottom: 16px; font-size: 13px; }
.finance-module .tab-sm { padding: 4px 12px; border-radius: 4px; font-size: 13px; cursor: pointer; background: #f5f5f5; color: #666; border: 1px solid #d9d9d9; transition: all .2s; }
.finance-module .tab-sm.active { background: #B8860B; color: #fff; border-color: #B8860B; }
.finance-module .btn-sm { padding: 6px 14px; border-radius: 4px; font-size: 13px; cursor: pointer; background: #B8860B; color: #fff; border: none; transition: all .2s; }
.finance-module .btn-sm:hover { opacity: 0.85; }
.finance-module .pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; padding: 12px 0; }
.finance-module .pagination button { padding: 4px 12px; border: 1px solid #d9d9d9; border-radius: 4px; background: #fff; cursor: pointer; font-size: 13px; }
.finance-module .pagination button:disabled { opacity: 0.5; cursor: not-allowed; }
.finance-module .rate-up { color: #13c2c2; }
.finance-module .rate-down { color: #fa8c16; }
/* 财务模块 - 表单 */
.finance-module .form-group { margin-bottom: 12px; }
.finance-module .form-group label { display: block; font-size: 13px; color: #666; margin-bottom: 4px; }
.finance-module .form-group input, .finance-module .form-group select { width: 100%; padding: 7px 10px; border: 1px solid #d9d9d9; border-radius: 4px; font-size: 13px; box-sizing: border-box; }
.finance-module .form-group input:focus, .finance-module .form-group select:focus, .finance-module .form-group textarea:focus { border-color: #722ed1; outline: none; box-shadow: 0 0 0 2px rgba(114,46,209,0.1); }
.finance-module .form-group input::placeholder { color: #bfbfbf; }
.finance-module .form-group textarea { resize: vertical; min-height: 60px; }
/* 财务模块 - 弹窗 */
.finance-module .modal-box { background: #fff; border-radius: 12px; box-shadow: 0 12px 48px rgba(0,0,0,0.18); width: 90%; max-height: 85vh; overflow: hidden; display: flex; flex-direction: column; animation: fSlideUp 0.25s; }
.finance-module .modal-hd { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid #f0f0f0; }
.finance-module .modal-hd .modal-title { font-size: 17px; font-weight: 600; color: #1a1a2e; }
.finance-module .modal-hd .close-btn { width: 30px; height: 30px; border: none; background: #f5f5f5; border-radius: 50%; font-size: 16px; cursor: pointer; color: #999; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.finance-module .modal-hd .close-btn:hover { background: #fa8c16; color: #fff; }
.finance-module .modal-bd { padding: 24px; overflow-y: auto; flex: 1; }
.finance-module .modal-ft { padding: 14px 24px; border-top: 1px solid #f0f0f0; display: flex; justify-content: flex-end; gap: 10px; }
.finance-module .modal-ft .btn-cancel { padding: 8px 20px; border-radius: 6px; font-size: 14px; cursor: pointer; background: #f5f5f5; color: #666; border: 1px solid #d9d9d9; }
.finance-module .modal-ft .btn-cancel:hover { border-color: #999; color: #333; }
.finance-module .modal-ft .btn-ok { padding: 8px 20px; border-radius: 6px; font-size: 14px; cursor: pointer; background: #722ed1; color: #fff; border: none; font-weight: 500; }
.finance-module .modal-ft .btn-ok:hover { background: #531dab; }
.finance-module .modal-ft .btn-ok.warn { background: #fa8c16; }
.finance-module .modal-ft .btn-ok.warn:hover { background: #d46b08; }
.finance-module .form-row { display: flex; gap: 16px; }
.finance-module .form-row .form-group { flex: 1; }
@keyframes fSlideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
/* 确保弹窗内表单可交互 */
.finance-module .modal-box input,
.finance-module .modal-box select,
.finance-module .modal-box textarea { pointer-events: auto !important; user-select: text !important; -webkit-user-select: text !important; background: #fff !important; cursor: text !important; }
.finance-module .modal-box select { cursor: pointer !important; }
.finance-module .modal-box input[readonly],
.finance-module .modal-box input[disabled] { background: #f5f5f5 !important; cursor: not-allowed !important; }

.settings-sub-tabs { display: flex; gap: 0; border-bottom: 2px solid #f0f0f0; margin-bottom: 20px; }
.settings-sub-tabs span { padding: 8px 18px; cursor: pointer; font-size: 13px; color: #666; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all .2s; }
.settings-sub-tabs span:hover { color: #1890ff; }
.settings-sub-tabs span.active { color: #1890ff; border-bottom-color: #1890ff; font-weight: 600; }
        /* ===== 官网管理 ===== */
        .pa-top { display: flex; justify-content: space-between; align-items: center; }
        .pa-sub { font-size: 12px; color: #999; margin-top: 4px; font-weight: normal; }
        .pa-top-actions { display: flex; gap: 8px; align-items: center; }
        .pa-toast { font-size: 13px; margin-right: 4px; }
        .pa-btn { padding: 7px 16px; border-radius: 6px; border: 1px solid #d9d9d9; background: #fff; color: #555; font-size: 13px; cursor: pointer; }
        .pa-btn:hover { border-color: #b8860b; color: #b8860b; }
        .pa-btn-primary { background: #b8860b; border-color: #b8860b; color: #fff; }
        .pa-btn-primary:hover { background: #a67400; color: #fff; }
        .pa-btn:disabled { opacity: .6; cursor: default; }
        .pa-layout { display: flex; gap: 16px; align-items: flex-start; }
        .pa-side { width: 200px; flex-shrink: 0; padding: 10px !important; }
        .pa-nav-item { padding: 9px 12px; border-radius: 6px; font-size: 13px; color: #555; cursor: pointer; margin: 2px 0; }
        .pa-nav-item:hover { background: #fafafa; }
        .pa-nav-item.on { background: #fdf6ec; color: #b8860b; font-weight: 600; }
        .pa-side-sep { border-top: 1px solid #f0f0f0; margin: 10px 4px; }
        .pa-bkbtn { width: 100%; padding: 7px 0; border-radius: 6px; border: 1px solid #d9d9d9; background: #fff; color: #555; font-size: 12px; cursor: pointer; }
        .pa-bkbtn:hover { border-color: #b8860b; color: #b8860b; }
        .pa-bk-list { margin-top: 8px; max-height: 240px; overflow-y: auto; }
        .pa-bk-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; padding: 4px 2px; color: #666; }
        .pa-bk-row button { font-size: 11px; padding: 1px 8px; border-radius: 4px; border: 1px solid #d9d9d9; background: #fff; color: #999; cursor: pointer; }
        .pa-bk-row button:hover { color: #b8860b; border-color: #b8860b; }
        .pa-main { flex: 1; min-width: 0; padding: 20px 24px !important; }
        .pa-field { margin-bottom: 18px; }
        .pa-field > label { display: block; font-size: 12px; color: #999; margin-bottom: 6px; }
        .pa-in { width: 100%; padding: 8px 10px; border: 1px solid #d9d9d9; border-radius: 4px; font-size: 13px; color: #333; box-sizing: border-box; background: #fff; }
        .pa-in:focus { outline: none; border-color: #b8860b; }
        textarea.pa-in { resize: vertical; line-height: 1.6; }
        .pa-imgrow { display: flex; gap: 10px; align-items: center; }
        .pa-imgrow img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; border: 1px solid #eee; background: #f5f5f5; }
        .pa-imgrow .pa-in { flex: 1; min-width: 0; }
        .pa-upbtn { display: inline-block; font-size: 12px; color: #555; border: 1px solid #d9d9d9; border-radius: 4px; padding: 7px 12px; cursor: pointer; background: #fff; white-space: nowrap; }
        .pa-upbtn:hover { border-color: #b8860b; color: #b8860b; }
        .pa-up { display: none; }
        .pa-list-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
        .pa-list-head > label { font-size: 12px; color: #999; }
        .pa-add { font-size: 12px; color: #b8860b; background: #fff; border: 1px dashed #b8860b; border-radius: 4px; padding: 4px 12px; cursor: pointer; }
        .pa-add:hover { background: #fdf6ec; }
        .pa-list-item { background: #fafafa; border-radius: 6px; padding: 12px; margin-bottom: 10px; }
        .pa-li-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 12px; color: #999; }
        .pa-del { font-size: 12px; color: #999; background: none; border: none; cursor: pointer; padding: 2px 6px; }
        .pa-del:hover { color: #e6a23c; }
        .pa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
        .pa-grid .pa-field { margin-bottom: 12px; }
        @media (max-width: 768px) { .pa-grid { grid-template-columns: 1fr; } .pa-layout { flex-direction: column; } .pa-side { width: 100%; } }
