 /* 原有CSS样式保持不变 */
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        :root {
            --primary: #3498db;
            --secondary: #2c3e50;
            --success: #2ecc71;
            --danger: #e74c3c;
            --warning: #f39c12;
            --light: #f8f9fa;
            --dark: #343a40;
            --gray: #6c757d;
            --income-bg: #e6f7ff;
            --expense-bg: #ffe6e6;
        }

        body {
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            color: #333;
            line-height: 1.6;
            min-height: 100vh;
        }

        .container {
            max-width: 2200px;
            margin: 0 auto;
            padding: 20px;
        }

        /* 登录页面样式 */
        #loginPage {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            padding: 20px;
        }

        .login-card {
            background: white;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
            overflow: hidden;
            width: 100%;
            max-width: 450px;
        }

        .login-header {
            padding: 30px 20px;
            background: linear-gradient(135deg, var(--secondary), #4a6491);
            color: white;
            text-align: center;
        }

        .login-header h1 {
            font-size: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            margin-bottom: 10px;
        }

        .login-body {
            padding: 30px;
        }

        header {
            background: linear-gradient(135deg, var(--secondary), #4a6491);
            color: white;
            padding: 15px 20px;
            border-radius: 10px;
            margin-bottom: 20px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .header-info {
            display: flex;
            gap: 15px;
            align-items: center;
        }

        .user-badge {
            background: rgba(255, 255, 255, 0.2);
            padding: 8px 15px;
            border-radius: 20px;
            font-weight: 500;
        }

        .app-content {
            display: grid;
            grid-template-columns: 250px 1fr;
            gap: 20px;
        }

        .sidebar {
            background: white;
            border-radius: 10px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
            padding: 20px;
            height: fit-content;
        }

        .nav-item {
            padding: 12px 15px;
            border-radius: 8px;
            cursor: pointer;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 10px;
            transition: all 0.3s ease;
        }

        .nav-item:hover {
            background: #f0f7ff;
        }

        .nav-item.active {
            background: var(--primary);
            color: white;
        }

        .main-content {
            background: white;
            border-radius: 10px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
            padding: 20px;
            min-height: 600px;
            overflow-x: auto;
        }

        .page {
            display: none;
        }

        .page.active {
            display: block;
        }

        /* 通用组件样式 */
        .card {
            background: white;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
            margin-bottom: 20px;
            overflow: hidden;
        }

        .card-header {
            padding: 15px 20px;
            background: #f8f9fa;
            border-bottom: 1px solid #eee;
            font-weight: 600;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .card-body {
            padding: 20px;
        }

        .form-group {
            margin-bottom: 20px;
        }

        label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: var(--secondary);
        }

        input, select, textarea {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-size: 16px;
            transition: all 0.3s ease;
        }

        input:focus, select:focus, textarea:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
        }

        .btn {
            padding: 12px 20px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .btn-primary {
            background: var(--primary);
            color: white;
        }

        .btn-primary:hover {
            background: #2980b9;
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
        }

        .btn-secondary {
            background: var(--danger);
            color: white;
        }

        .btn-secondary:hover {
            background: #c0392b;
        }

        .btn-sm {
            padding: 8px 12px;
            font-size: 14px;
        }

        /* 数据表格样式 */
        .data-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 15px;
            min-width: 2200px;
        }

        .data-table th, .data-table td {
            padding: 10px 12px;
            text-align: left;
            border-bottom: 1px solid #e0e0e0;
            font-size: 14px;
            vertical-align: top;
        }

        .data-table th {
            background-color: #f1f5f9;
            font-weight: 600;
            position: sticky;
            top: 0;
            white-space: nowrap;
        }

        .data-table tr:hover {
            background-color: #f9f9f9;
        }

        .data-table input, .data-table textarea {
            padding: 8px 10px;
            font-size: 14px;
            width: 100%;
            border: 1px solid #ddd;
            border-radius: 4px;
        }

        .data-table textarea {
            height: 60px;
            resize: vertical;
        }

        /* 特别加宽的列 */
        .wide-column {
            min-width: 150px;
        }

        .extra-wide-column {
            min-width: 200px;
        }

        /* 收入支出样式 */
        .income-bg {
            background-color: var(--income-bg);
        }

        .expense-bg {
            background-color: var(--expense-bg);
        }

        .editable {
            background-color: #f0f7ff;
        }

        .readonly {
            background-color: #f9f9f9;
            color: #666;
        }

        .calculated {
            background-color: #fff9e6;
            font-weight: 600;
        }

        /* 统计表格样式 */
        .stats-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 15px;
            min-width: 800px;
        }

        .stats-table th, .stats-table td {
            padding: 12px 15px;
            text-align: center;
            border: 1px solid #e0e0e0;
        }

        .stats-table th {
            background-color: #f1f5f9;
            font-weight: 600;
        }

        .stats-table tr:hover {
            background-color: #f9f9f9;
        }

        .stats-summary {
            font-weight: 600;
            background-color: #e8f4ff;
        }

        /* 通知样式 */
        .notification {
            position: fixed;
            top: 20px;
            right: 20px;
            padding: 15px 20px;
            border-radius: 5px;
            background: var(--success);
            color: white;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
            transform: translateX(100%);
            transition: transform 0.3s ease;
            z-index: 1000;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .notification.show {
            transform: translateX(0);
        }

        .notification.error {
            background: var(--danger);
        }

        /* 响应式设计 */
        @media (max-width: 1200px) {
            .app-content {
                grid-template-columns: 1fr;
            }

            .sidebar {
                display: none;
            }

            .container {
                padding: 10px;
            }
        }

        /* 表单布局 */
        .form-row {
            display: flex;
            gap: 15px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .form-row .form-group {
            flex: 1;
            min-width: 200px;
        }

        .today-btn {
            background: var(--success);
            color: white;
            border: none;
            padding: 12px 15px;
            border-radius: 5px;
            cursor: pointer;
            font-weight: 600;
        }

        .today-btn:hover {
            background: #27ae60;
        }

        .control-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            flex-wrap: wrap;
            gap: 15px;
        }

        .action-buttons {
            display: flex;
            gap: 10px;
        }

        .time-info {
            background: #e8f4ff;
            padding: 10px 15px;
            border-radius: 5px;
            margin-bottom: 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .time-info span {
            font-weight: 600;
            color: var(--primary);
        }

        /* 统计页面样式 */
        .stats-controls {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            margin-bottom: 20px;
        }

        .stats-card {
            background: #f8f9fa;
            border-radius: 8px;
            padding: 15px;
            border: 1px solid #e9ecef;
        }

        .stats-results {
            margin-top: 30px;
        }

        .stats-value {
            font-size: 24px;
            font-weight: 700;
            color: var(--primary);
            text-align: center;
            margin: 10px 0;
        }

        .stats-label {
            text-align: center;
            color: var(--gray);
            font-weight: 500;
        }

        /* 空数据行样式 */
        .empty-row {
            text-align: center;
            padding: 20px;
            color: #666;
            font-style: italic;
        }

        /* 新增店铺相关样式 */
        .shop-select-container {
            position: relative;
            display: flex;
            align-items: stretch;
        }

        .shop-select-container select {
            border-top-right-radius: 0;
            border-bottom-right-radius: 0;
            border-right: none;
        }

        .add-shop-btn {
            background: var(--success);
            color: white;
            border: none;
            border-radius: 0 5px 5px 0;
            padding: 0 15px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .add-shop-btn:hover {
            background: #27ae60;
        }

        .add-shop-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1001;
            justify-content: center;
            align-items: center;
        }

        .add-shop-modal.show {
            display: flex;
        }

        .add-shop-content {
            background: white;
            border-radius: 10px;
            padding: 20px;
            width: 100%;
            max-width: 400px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        .add-shop-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid #eee;
        }

        .add-shop-header h3 {
            margin: 0;
            color: var(--secondary);
        }

        .close-modal {
            background: none;
            border: none;
            font-size: 20px;
            cursor: pointer;
            color: var(--gray);
        }

        .close-modal:hover {
            color: var(--danger);
        }

        .add-shop-footer {
            display: flex;
            justify-content: flex-end;
            gap: 10px;
            margin-top: 20px;
        }

        /* 新增样式 */
        .payment-config-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1001;
            justify-content: center;
            align-items: center;
        }

        .payment-config-modal.show {
            display: flex;
        }

        .payment-config-content {
            background: white;
            border-radius: 10px;
            padding: 20px;
            width: 100%;
            max-width: 600px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            max-height: 80vh;
            overflow-y: auto;
        }

        .payment-config-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid #eee;
        }

        .payment-config-header h3 {
            margin: 0;
            color: var(--secondary);
        }

        .payment-config-item {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
            padding: 10px;
            border: 1px solid #eee;
            border-radius: 5px;
        }

        .payment-config-item label {
            margin: 0;
            min-width: 120px;
            font-weight: normal;
        }

        .payment-config-item input {
            flex: 1;
            margin: 0;
        }

        .change-password-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1001;
            justify-content: center;
            align-items: center;
        }

        .change-password-modal.show {
            display: flex;
        }

        .change-password-content {
            background: white;
            border-radius: 10px;
            padding: 20px;
            width: 100%;
            max-width: 400px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        .change-password-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid #eee;
        }

        .change-password-header h3 {
            margin: 0;
            color: var(--secondary);
        }

        .reporter-info {
            background-color: #f8f9fa;
            padding: 5px 10px;
            border-radius: 4px;
            font-size: 12px;
            margin-top: 5px;
        }

        .config-payment-btn {
            margin-left: 10px;
            padding: 6px 12px;
            font-size: 12px;
        }