        /* ========== 消费记录 ========== */
        .expense-summary {
            background: linear-gradient(145deg, #111827, #161e2e);
            border: 1px solid rgba(255,255,255,0.06);
            border-radius: 18px;
            padding: 24px;
            margin-top: 20px;
            margin-bottom: 24px;
        }
        .summary-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            gap: 14px;
        }
        .summary-item {
            text-align: center;
            padding: 14px 10px;
            border-radius: 12px;
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.04);
        }
        .summary-item .s-icon { font-size: 20px; margin-bottom: 6px; }
        .summary-item .s-num {
            font-size: 20px;
            font-weight: 800;
            color: #f0c27f;
        }
        .summary-item .s-lbl {
            font-size: 11px;
            color: #777;
            margin-top: 3px;
        }
        .summary-item.t-main {
            background: linear-gradient(135deg, rgba(240,194,127,0.08), rgba(252,92,125,0.08));
            border-color: rgba(240,194,127,0.15);
        }
        .summary-item.t-main .s-num {
            background: linear-gradient(135deg, #f0c27f, #fc5c7d);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        /* 分类汇总条 */
        .expense-breakdown {
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid rgba(255,255,255,0.06);
        }
        .breakdown-title {
            font-size: 12px;
            color: #888;
            margin-bottom: 12px;
            font-weight: 500;
        }
        .breakdown-row {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 8px;
        }
        .breakdown-label {
            width: 70px;
            font-size: 12px;
            color: #999;
        }
        .breakdown-bar {
            flex: 1;
            height: 8px;
            background: rgba(255,255,255,0.05);
            border-radius: 4px;
            overflow: hidden;
        }
        .breakdown-fill {
            height: 100%;
            border-radius: 4px;
            transition: width 0.5s ease;
        }
        .breakdown-value {
            width: 120px;
            text-align: right;
            font-size: 12px;
            color: #bbb;
            font-weight: 500;
        }

        /* 月度趋势 */
        .monthly-trend {
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid rgba(255,255,255,0.06);
        }
        .trend-title {
            font-size: 12px;
            color: #888;
            margin-bottom: 12px;
            font-weight: 500;
        }
        .trend-chart {
            display: flex;
            align-items: flex-end;
            gap: 6px;
            height: 100px;
            padding: 0 4px;
        }
        .trend-bar-wrap {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            height: 100%;
            justify-content: flex-end;
            min-width: 0;
        }
        .trend-bar {
            width: 100%;
            max-width: 28px;
            background: linear-gradient(to top, #f0c27f, #fc5c7d);
            border-radius: 4px 4px 0 0;
            min-height: 2px;
            transition: height 0.5s ease;
            position: relative;
        }
        .trend-bar:hover::after {
            content: attr(data-amount);
            position: absolute;
            top: -20px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 10px;
            color: #f0c27f;
            white-space: nowrap;
        }
        .trend-label {
            font-size: 9px;
            color: #666;
            margin-top: 4px;
            white-space: nowrap;
        }
        .trend-empty {
            font-size: 12px;
            color: #555;
            text-align: center;
            padding: 20px 0;
        }

        /* 消费记录列表 */
        .expense-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        .expense-card {
            background: linear-gradient(145deg, #111827, #1a2332);
            border: 1px solid rgba(255,255,255,0.06);
            border-radius: 16px;
            padding: 18px 20px;
            transition: all 0.3s;
            animation: fadeInUp 0.35s ease;
            position: relative;
            overflow: hidden;
        }
        .expense-card::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 3px;
            background: linear-gradient(90deg, #66bb6a, #42a5f5, #ab47bc);
            opacity: 0;
            transition: opacity 0.3s;
        }
        .expense-card:hover {
            border-color: rgba(240,194,127,0.2);
            transform: translateY(-2px);
            box-shadow: 0 10px 28px rgba(0,0,0,0.35);
        }
        .expense-card:hover::before { opacity: 1; }
        .expense-card.batch-mode {
            padding-left: 50px;
        }
        .expense-checkbox {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            width: 22px;
            height: 22px;
            border-radius: 6px;
            border: 2px solid rgba(255,255,255,0.2);
            display: none;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            flex-shrink: 0;
            transition: all 0.2s;
            font-size: 13px;
            background: rgba(0,0,0,0.3);
        }
        .batch-mode .expense-checkbox { display: flex; position: absolute; }
        .expense-checkbox.checked {
            background: rgba(240,194,127,0.2);
            border-color: #f0c27f;
            color: #f0c27f;
        }
        .expense-card.hidden-item {
            display: none;
        }
        .expense-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 12px;
        }
        .expense-title-wrap {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .expense-date-badge {
            padding: 4px 10px;
            border-radius: 8px;
            background: rgba(240,194,127,0.1);
            color: #f0c27f;
            font-size: 11px;
            font-weight: 600;
            white-space: nowrap;
        }
        .expense-title {
            font-size: 16px;
            font-weight: 700;
            color: #fff;
        }
        .expense-actions {
            display: flex;
            gap: 4px;
        }
        .expense-actions button {
            width: 30px; height: 30px;
            border-radius: 8px;
            border: 1px solid rgba(255,255,255,0.1);
            background: rgba(255,255,255,0.05);
            color: #888;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.2s;
        }
        .expense-actions button:hover { background: rgba(255,255,255,0.1); color: #fff; }
        .expense-actions .btn-del:hover { background: rgba(252,92,125,0.2); color: #fc5c7d; }

        .expense-cats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
            gap: 8px;
            margin-bottom: 10px;
        }
        .exp-cat-item {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 6px 10px;
            border-radius: 8px;
            background: rgba(255,255,255,0.03);
            font-size: 12px;
        }
        .exp-cat-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            flex-shrink: 0;
        }
        .exp-cat-name { color: #888; }
        .exp-cat-val { color: #ccc; font-weight: 600; margin-left: auto; }

        .expense-bottom {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding-top: 10px;
            border-top: 1px dashed rgba(255,255,255,0.06);
        }
        .expense-total {
            font-size: 22px;
            font-weight: 800;
            background: linear-gradient(135deg, #f0c27f, #fc5c7d);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        .expense-note {
            font-size: 12px;
            color: #666;
        }

        .year-group {
            margin-bottom: 28px;
        }
        .year-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 14px;
            padding: 12px 16px;
            background: linear-gradient(135deg, rgba(240,194,127,0.06), rgba(252,92,125,0.04));
            border-radius: 12px;
            border: 1px solid rgba(255,255,255,0.05);
        }
        .year-title {
            font-size: 18px;
            font-weight: 800;
            color: #fff;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .year-sub {
            font-size: 12px;
            color: #999;
            margin-left: auto;
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
        }
        .year-sub .chip {
            padding: 3px 10px;
            border-radius: 20px;
            background: rgba(255,255,255,0.05);
            font-size: 11px;
        }
        .year-sub .chip-total {
            background: linear-gradient(135deg, rgba(240,194,127,0.15), rgba(252,92,125,0.12));
            color: #f0c27f;
            font-weight: 600;
        }
        /* 月度分组 */
        .month-group { margin-bottom: 18px; }
        .month-header {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 4px;
            margin: 14px 0 10px;
        }
        .month-title {
            font-size: 13px;
            font-weight: 600;
            color: #aaa;
            padding-left: 6px;
            border-left: 3px solid rgba(240,194,127,0.4);
        }
        .month-total {
            margin-left: auto;
            font-size: 12px;
            color: #f0c27f;
            font-weight: 600;
        }

        /* 批量操作栏 */
        .batch-bar {
            display: none;
            align-items: center;
            gap: 10px;
            padding: 12px 16px;
            background: rgba(240,194,127,0.08);
            border: 1px solid rgba(240,194,127,0.2);
            border-radius: 12px;
            margin-bottom: 16px;
        }
        .batch-bar.show { display: flex; }
        .batch-bar .batch-info {
            font-size: 13px;
            color: #f0c27f;
            font-weight: 600;
        }
        .batch-bar .batch-actions {
            margin-left: auto;
            display: flex;
            gap: 8px;
        }

        /* Modal */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.7);
            z-index: 1000;
            align-items: center;
            justify-content: center;
            padding: 20px;
            backdrop-filter: blur(4px);
        }
        .modal-overlay.show { display: flex; }
        .modal {
            background: #141c2b;
            border-radius: 20px;
            padding: 32px;
            width: 100%;
            max-width: 520px;
            border: 1px solid rgba(255,255,255,0.08);
            max-height: 90vh;
            overflow-y: auto;
            animation: modalIn 0.3s ease;
        }
        @keyframes modalIn {
            from { opacity: 0; transform: scale(0.95) translateY(10px); }
            to { opacity: 1; transform: scale(1) translateY(0); }
        }
        .modal h2 {
            font-size: 20px;
            color: #fff;
            margin-bottom: 24px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .form-group { margin-bottom: 16px; }
        .form-group label {
            display: block;
            font-size: 12px;
            color: #888;
            margin-bottom: 6px;
            font-weight: 500;
        }
        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 10px 14px;
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 10px;
            color: #e0e0e0;
            font-size: 14px;
            font-family: inherit;
            outline: none;
            transition: border-color 0.2s;
        }
        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus { border-color: rgba(240,194,127,0.5); }
        /* 表单校验失败样式（实时给输入框加 .is-invalid 类） */
        .form-group input.is-invalid,
        .form-group select.is-invalid,
        .form-group textarea.is-invalid {
            border-color: #fc5c7d;
            background: rgba(252,92,125,0.08);
        }
        .form-group input.is-invalid:focus,
        .form-group select.is-invalid:focus,
        .form-group textarea.is-invalid:focus {
            border-color: #fc5c7d;
        }
        .form-group select { cursor: pointer; }
        .form-group select option { background: #141c2b; color: #e0e0e0; }
        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }
        .form-actions {
            display: flex;
            gap: 10px;
            margin-top: 24px;
        }
        .btn-save {
            flex: 1;
            padding: 12px;
            background: linear-gradient(135deg, #f0c27f, #fc5c7d);
            color: #0a0e17;
            border: none;
            border-radius: 12px;
            font-size: 14px;
            font-weight: 700;
            cursor: pointer;
            font-family: inherit;
            transition: all 0.2s;
        }
        .btn-save:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(252,92,125,0.3); }
        .btn-cancel {
            padding: 12px 24px;
            background: rgba(255,255,255,0.05);
            color: #888;
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 12px;
            font-size: 14px;
            cursor: pointer;
            font-family: inherit;
            transition: all 0.2s;
        }
        .btn-cancel:hover { background: rgba(255,255,255,0.1); color: #ccc; }
        /* 危险操作按钮（删除等不可恢复操作） */
        .btn-save.btn-danger { background: linear-gradient(135deg, #fc5c7d, #e53935); color: #fff; }
        .btn-save.btn-danger:hover { box-shadow: 0 6px 20px rgba(252,92,125,0.45); }
        /* 自定义确认弹窗样式 */
        .confirm-modal-msg {
            color: rgba(255,255,255,0.85);
            line-height: 1.6;
            margin: 0;
            font-size: 14px;
        }
        .confirm-modal .modal { max-width: 400px; }

        .empty-state {
            text-align: center;
            padding: 60px 24px;
            color: #666;
            font-size: 14px;
            background: rgba(255,255,255,0.02);
            border-radius: 16px;
            border: 1px dashed rgba(255,255,255,0.06);
            margin: 10px 0;
        }
        .empty-state .emoji {
            font-size: 56px;
            margin-bottom: 14px;
            opacity: 0.6;
            filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
        }
        .empty-state .empty-title {
            font-size: 15px;
            color: #bbb;
            font-weight: 600;
            margin-bottom: 6px;
        }
        .empty-state .empty-desc {
            font-size: 12px;
            color: #666;
            margin-bottom: 18px;
            line-height: 1.6;
        }
        .empty-state .empty-btn {
            display: inline-block;
            padding: 10px 22px;
            background: linear-gradient(135deg, #f0c27f, #fc5c7d);
            color: #0a0e17;
            border: none;
            border-radius: 10px;
            font-size: 13px;
            font-weight: 700;
            cursor: pointer;
            min-height: 40px;
            transition: all 0.2s;
            font-family: inherit;
        }
        .empty-state .empty-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(252,92,125,0.3); }

        /* ========== 消费饼图（expense summary） ========== */
        .expense-pie {
            margin-top: 16px;
            padding: 16px;
            background: rgba(255,255,255,0.03);
            border-radius: 12px;
        }
        .expense-pie-row {
            display: flex;
            align-items: center;
            gap: 20px;
            flex-wrap: wrap;
        }
        .expense-pie-legend {
            flex: 1;
            min-width: 140px;
        }
        .expense-pie-legend-title {
            font-size: 13px;
            color: #aaa;
            margin-bottom: 8px;
        }
        .expense-pie-legend-item {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 6px;
            font-size: 12px;
        }
        .expense-pie-legend-dot {
            width: 10px;
            height: 10px;
            border-radius: 2px;
            flex-shrink: 0;
        }
        .expense-pie-legend-name { flex: 1; color: rgba(255,255,255,0.85); }
        .expense-pie-legend-val { color: #f0c27f; font-weight: 600; }

        /* 退化版：水平条形图（用于 1-2 个分类时，比饼图更易读） */
        .expense-bar-row {
            display: grid;
            grid-template-columns: 80px 1fr auto;
            align-items: center;
            gap: 12px;
            padding: 6px 0;
            font-size: 13px;
        }
        .expense-bar-label { color: rgba(255,255,255,0.85); }
        .expense-bar-track {
            height: 10px;
            background: rgba(255,255,255,0.06);
            border-radius: 5px;
            overflow: hidden;
        }
        .expense-bar-fill {
            height: 100%;
            border-radius: 5px;
            transition: width 0.4s ease;
        }
        .expense-bar-val {
            color: #f0c27f;
            font-weight: 600;
            font-size: 12px;
            white-space: nowrap;
        }