/* ========== 电脑端样式 (屏幕宽度 > 768px) ========== */
@media (min-width: 769px) {
    .debt-detail-actions {
        justify-content: flex-end;
    }
    
    .debt-table th:nth-child(1) { width: 45%; }
    .debt-table th:nth-child(2) { width: 20%; }
    .debt-table th:nth-child(3) { width: 25%; }
    .debt-table th:nth-child(4) { width: 10%; }
    
    .invoice-header {
        padding: 12px 20px;
    }
    
    .invoice-info {
        flex: 1;
    }
    
    .invoice-buttons {
        flex-shrink: 0;
    }
    
    .product-item {
        padding: 10px 0;
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
    }
    
    .product-checkbox {
        width: 40px;
    }
    
    .product-detail {
        flex: 3;
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
        align-items: baseline;
    }
    
    .product-name {
        min-width: 120px;
    }
    
    .product-meta {
        display: inline-block;
        margin-left: 0px;
    }
    
    .product-amount {
        width: 120px;
        text-align: right;
        flex-shrink: 0;
    }
    
    .product-actions {
        width: 100px;
        text-align: right;
        flex-shrink: 0;
    }
    
    .repay-page .product-detail {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: baseline !important;
        gap: 16px !important;
        flex: 3 !important;
    }
    
    .repay-page .product-amount {
        display: block !important;
        width: 120px !important;
        text-align: right !important;
        flex-shrink: 0 !important;
    }
    
    .repay-page .product-actions {
        width: 100px !important;
        text-align: right !important;
        flex-shrink: 0 !important;
    }
    
    .repay-page .product-name-row,
    .repay-page .product-detail-row {
        display: none !important;
    }
    
    .invoice-summary {
        display: flex;
        justify-content: flex-end;
        gap: 24px;
    }
    
    .summary-item {
        font-size: 14px;
    }
    
    .invoice-date-status {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .payment-record-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 15px;
    }
    
    .record-info {
        display: flex;
        gap: 24px;
        align-items: baseline;
        flex-wrap: wrap;
    }
    
    .record-date {
        min-width: 150px;
    }
    
    .record-amount {
        min-width: 100px;
    }
    
    .record-operator {
        min-width: 100px;
        color: #888;
    }
    
    .delete-record-btn {
        cursor: pointer;
        opacity: 0.6;
        transition: opacity 0.2s;
    }
    
    .delete-record-btn:hover {
        opacity: 1;
    }
    
    .pay-modal .modal-content {
        max-width: 400px;
    }
    
    .product-checkbox input:hover {
        cursor: pointer;
    }
    
    .invoice-group:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        transition: box-shadow 0.2s;
    }
    
    .payment-history-modal .modal-content {
        max-width: 600px;
    }
    
    .invoice-footer {
        transition: background 0.2s;
    }
    
    .invoice-footer:hover {
        background: #fff1b8;
    }
    body.dark-mode .invoice-footer:hover {
        background: #3d361a;
    }
    
    .mobile-buttons-row {
        display: none !important;
    }
    
    .announcement-item {
        padding: 15px;
    }
    
    .announcement-title {
        font-size: 15px;
    }
    
    .announcement-content {
        font-size: 14px;
    }
    
    .announcement-modal .modal-content {
        max-width: 550px;
    }
    
    .expiry-announcement-full {
        padding: 20px;
    }
    
    .expiry-announcement-title {
        font-size: 20px;
    }
    
    .expiry-announcement-content {
        font-size: 15px;
    }
    
    .announcement-list-item {
        padding: 15px;
    }
    
    .announcement-list-header strong {
        font-size: 15px;
    }
    
    .announcement-list-content {
        font-size: 14px;
    }
    
    .all-read-btn {
        padding: 12px;
        font-size: 14px;
    }
    
    .expiry-lock-card {
        padding: 40px 35px;
        max-width: 450px;
    }
    
    .expiry-lock-icon {
        font-size: 80px;
    }
    
    .expiry-lock-title {
        font-size: 28px;
    }
    
    .expiry-lock-content {
        font-size: 18px;
    }
    
    .overdue-tooltip-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 2100;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .overdue-tooltip-card {
        background: white;
        border-radius: 20px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.3);
        width: 90%;
        max-width: 500px;
        max-height: 70vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    body.dark-mode .overdue-tooltip-card {
        background: #1e293b;
        border: 1px solid #334155;
    }
    .overdue-tooltip-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
        font-weight: bold;
        font-size: 16px;
        background: #f5576c;
        color: white;
        flex-shrink: 0;
    }
    body.dark-mode .overdue-tooltip-header {
        border-bottom-color: #334155;
        background: #f87171;
    }
    .overdue-tooltip-header .close-tooltip {
        cursor: pointer;
        font-size: 24px;
        color: white;
    }
    .overdue-tooltip-body {
        padding: 15px 20px;
        overflow-y: auto;
        flex: 1;
    }
    .overdue-tooltip-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0;
        border-bottom: 1px solid #f0f0f0;
        cursor: pointer;
        transition: background 0.2s;
    }
    body.dark-mode .overdue-tooltip-item {
        border-bottom-color: #334155;
    }
    .overdue-tooltip-item:hover {
        background: #f8f9fa;
    }
    body.dark-mode .overdue-tooltip-item:hover {
        background: #0f172a;
    }
    .overdue-tooltip-item .invoice {
        font-family: monospace;
        font-size: 13px;
        color: #333;
    }
    body.dark-mode .overdue-tooltip-item .invoice {
        color: #e2e8f0;
    }
    .overdue-tooltip-item .amount {
        font-weight: bold;
        color: #f5576c;
    }
    .overdue-tooltip-copy-tip {
        font-size: 11px;
        color: #888;
        margin-top: 10px;
        text-align: center;
        padding-top: 10px;
        border-top: 1px solid #eee;
    }
    body.dark-mode .overdue-tooltip-copy-tip {
        color: #94a3b8;
        border-top-color: #334155;
    }
    .toast-copy {
        position: fixed;
        bottom: 70px;
        left: 50%;
        transform: translateX(-50%);
        background: #52c41a;
        color: white;
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 13px;
        z-index: 2200;
    }
    
    .page-width-default .container,
    .page-width-default .bottom-nav {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    .page-width-compact .container,
    .page-width-compact .bottom-nav {
        max-width: 680px;
        margin-left: auto;
        margin-right: auto;
    }
    .page-width-medium .container,
    .page-width-medium .bottom-nav {
        max-width: 1000px;
        margin-left: auto;
        margin-right: auto;
    }
    .page-width-wide .container,
    .page-width-wide .bottom-nav {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
    .page-width-full .container,
    .page-width-full .bottom-nav {
        max-width: 1400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    body.style-fashion {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        background-attachment: fixed;
    }
    
    body.style-fashion .card {
        background: linear-gradient(135deg, #ffffff 0%, #f5f7ff 100%);
        border-radius: 28px;
        box-shadow: 0 20px 35px -10px rgba(0,0,0,0.25), 0 0 0 1px rgba(102,126,234,0.2) inset, 0 0 0 2px rgba(255,255,255,0.5) inset;
        transition: all 0.3s cubic-bezier(0.2,0.9,0.4,1.1);
    }
    
    body.style-fashion .card:hover {
        transform: translateY(-3px);
        box-shadow: 0 25px 45px -12px rgba(0,0,0,0.3), 0 0 0 1px rgba(102,126,234,0.3) inset;
    }
    
    body.style-fashion .app-header {
        background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #db2777 100%);
        box-shadow: 0 4px 20px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.3);
    }
    
    body.style-fashion .app-header h2 {
        text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    }
    
    body.style-fashion .card .stats .stat-box {
        background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,250,255,0.98) 100%);
        border-radius: 20px;
        box-shadow: 0 8px 20px -8px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.8);
        transition: all 0.3s ease;
    }
    
    body.style-fashion .card .stats .stat-box:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 25px -10px rgba(0,0,0,0.2);
    }
    
    body.style-fashion .card .stats .stat-value {
        background: linear-gradient(135deg, #4f46e5 0%, #db2777 100%);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        font-weight: bold;
    }
    
    body.style-fashion .btn,
    body.style-fashion .btn-success,
    body.style-fashion .btn-secondary,
    body.style-fashion .btn-danger,
    body.style-fashion .btn-warning,
    body.style-fashion .btn-add-row {
        background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #db2777 100%);
        border-radius: 40px;
        font-weight: 600;
        letter-spacing: 0.5px;
        box-shadow: 0 8px 20px -6px rgba(79,70,229,0.4), inset 0 1px 0 rgba(255,255,255,0.3);
        transition: all 0.2s ease;
        border: none;
    }
    
    body.style-fashion .btn-secondary {
        background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    }
    
    body.style-fashion .btn-danger {
        background: linear-gradient(135deg, #f5576c 0%, #e11d48 100%);
    }
    
    body.style-fashion .btn-warning {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    }
    
    body.style-fashion .btn:hover,
    body.style-fashion .btn-success:hover,
    body.style-fashion .btn-secondary:hover,
    body.style-fashion .btn-danger:hover,
    body.style-fashion .btn-warning:hover,
    body.style-fashion .btn-add-row:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 25px -6px rgba(79,70,229,0.5), inset 0 1px 0 rgba(255,255,255,0.3);
    }
    
    body.style-fashion .btn:active {
        transform: translateY(2px);
        box-shadow: 0 4px 12px -4px rgba(79,70,229,0.4);
    }
    
    body.style-fashion .bottom-nav {
        background: rgba(255,255,255,0.95);
        backdrop-filter: blur(10px);
        border-radius: 40px;
        padding: 8px 20px;
        margin-bottom: 12px;
        width: calc(100% - 40px);
        left: 20px;
        right: 20px;
        box-shadow: 0 10px 30px -8px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.8);
        border: 1px solid rgba(255,255,255,0.5);
    }
    
    body.style-fashion .nav-item {
        border-radius: 35px;
        transition: all 0.2s ease;
    }
    
    body.style-fashion .nav-item:hover {
        transform: translateY(-2px);
    }
    
    body.style-fashion .nav-item.active {
        background: linear-gradient(135deg, #4f46e5 0%, #db2777 100%);
        box-shadow: 0 6px 15px -4px rgba(79,70,229,0.5), inset 0 1px 0 rgba(255,255,255,0.3);
        transform: translateY(-1px);
    }
    
    body.style-fashion .nav-item span {
        filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.15));
    }
    
    body.style-fashion .debt-table th {
        background: linear-gradient(135deg, #f0f2ff 0%, #e8ecff 100%);
        font-weight: 600;
    }
    
    body.style-fashion .debt-table td,
    body.style-fashion .debt-table input,
    body.style-fashion .debt-table select {
        background: rgba(255,255,255,0.9);
    }
    
    body.style-fashion .modal-content {
        background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
        border-radius: 32px;
        box-shadow: 0 25px 50px -12px rgba(0,0,0,0.3);
    }
    
    body.style-fashion .user-menu {
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(8px);
        border-radius: 20px;
        box-shadow: 0 15px 35px -10px rgba(0,0,0,0.2);
        border: 1px solid rgba(255,255,255,0.5);
    }
    
    body.style-fashion .price-badge {
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    body.style-fashion .form-group input,
    body.style-fashion .form-group select,
    body.style-fashion .form-group textarea,
    body.style-fashion .debt-table input,
    body.style-fashion .query-bar input,
    body.style-fashion .query-bar select {
        border-radius: 16px;
        border: 1px solid rgba(102,126,234,0.3);
        transition: all 0.2s ease;
    }
    
    body.style-fashion .form-group input:focus,
    body.style-fashion .form-group select:focus,
    body.style-fashion .debt-table input:focus,
    body.style-fashion .query-bar input:focus {
        border-color: #4f46e5;
        box-shadow: 0 0 0 3px rgba(79,70,229,0.2);
        outline: none;
    }
    
    body.style-fashion .category-item {
        border-radius: 20px;
        transition: all 0.2s ease;
    }
    
    body.style-fashion .category-item:hover {
        background: linear-gradient(135deg, rgba(102,126,234,0.08) 0%, rgba(219,39,119,0.05) 100%);
        transform: translateX(4px);
    }
    
    body.style-fashion .product-list-item-card {
        border-radius: 20px;
        transition: all 0.2s ease;
    }
    
    body.style-fashion .product-list-item-card:hover {
        background: linear-gradient(135deg, rgba(102,126,234,0.08) 0%, rgba(219,39,119,0.05) 100%);
        transform: translateX(4px);
    }
    
    body.style-fashion .debt-row {
        border-radius: 16px;
        transition: all 0.2s ease;
    }
    
    body.style-fashion .debt-row:hover {
        background: linear-gradient(135deg, rgba(102,126,234,0.05) 0%, rgba(219,39,119,0.03) 100%);
        transform: translateX(2px);
    }
    
    body.dark-mode.style-fashion {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    }
    
    body.dark-mode.style-fashion .card {
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
        box-shadow: 0 20px 35px -10px rgba(0,0,0,0.4), 0 0 0 1px rgba(102,126,234,0.15) inset;
    }
    
    body.dark-mode.style-fashion .card .stats .stat-box {
        background: linear-gradient(135deg, rgba(30,41,59,0.95) 0%, rgba(15,23,42,0.98) 100%);
    }
    
    body.dark-mode.style-fashion .bottom-nav {
        background: rgba(30,41,59,0.95);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(102,126,234,0.2);
    }
    
    .stat-box.month-debt {
        background: #f0e6ff;
    }
    body.dark-mode .stat-box.month-debt {
        background: #2d1a4e;
    }
    .stat-box.month-paid {
        background: #e6f7e6;
    }
    body.dark-mode .stat-box.month-paid {
        background: #1a3a1a;
    }
    .stat-box.overdue {
        background: #fff0e6;
    }
    body.dark-mode .stat-box.overdue {
        background: #4a2a1a;
    }
    .stat-box.total-profit {
        background: #e6f0ff;
    }
    body.dark-mode .stat-box.total-profit {
        background: #1a2a4a;
    }
    
    .stat-box.month-debt:hover,
    .stat-box.month-paid:hover,
    .stat-box.overdue:hover,
    .stat-box.total-profit:hover {
        transform: translateY(-2px);
        transition: transform 0.2s ease;
    }
    
    .invoice-body .product-item {
        transition: background 0.2s ease;
    }
    .invoice-body .product-item:nth-child(odd) {
        background: #ffffff;
    }
    .invoice-body .product-item:nth-child(even) {
        background: #d4edda;
    }
    .invoice-body .product-item:hover {
        background: #c3e6cb;
    }
    
    body.dark-mode .invoice-body .product-item:nth-child(odd) {
        background: #1e293b;
    }
    body.dark-mode .invoice-body .product-item:nth-child(even) {
        background: #1a3a1a;
    }
    body.dark-mode .invoice-body .product-item:hover {
        background: #2a4a2a;
    }
    
    .backup-list-container {
        max-height: 280px;
        overflow-y: auto;
        border: 1px solid #eee;
        border-radius: 8px;
        margin-top: 8px;
        margin-bottom: 12px;
    }
    
    .backup-item {
        display: flex;
        align-items: center;
        padding: 10px 12px;
        border-bottom: 1px solid #f0f0f0;
        transition: background 0.2s;
    }
    
    .backup-item:last-child {
        border-bottom: none;
    }
    
    .backup-item:hover {
        background: #f8f9fa;
    }
    
    .backup-item.backup-selected {
        background: #e8f0fe;
    }
    
    .backup-radio {
        flex-shrink: 0;
        margin-right: 12px;
    }
    
    .backup-radio input {
        width: 16px;
        height: 16px;
        cursor: pointer;
    }
    
    .backup-info {
        flex: 1;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
    }
    
    .backup-filename {
        font-size: 13px;
        font-family: monospace;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 2;
    }
    
    .backup-meta {
        font-size: 12px;
        color: #888;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .backup-bottom-buttons {
        display: flex;
        justify-content: center;
        gap: 16px;
        padding: 12px 0;
        margin-top: 8px;
        border-top: 1px solid #eee;
    }
    
    .backup-bottom-buttons .btn-secondary,
    .backup-bottom-buttons .btn-danger {
        min-width: 100px;
        padding: 8px 20px;
    }
    
    body.dark-mode .backup-list-container {
        border-color: #334155;
    }
    
    body.dark-mode .backup-item {
        border-bottom-color: #2d3748;
    }
    
    body.dark-mode .backup-item:hover {
        background: #1e293b;
    }
    
    body.dark-mode .backup-item.backup-selected {
        background: #2d3a5e;
    }
    
    body.dark-mode .backup-meta {
        color: #94a3b8;
    }
    
    body.dark-mode .backup-bottom-buttons {
        border-top-color: #334155;
    }
}

/* ========== 暗色模式全局样式 ========== */
body.dark-mode .form-group input[readonly],
body.dark-mode .batch-debt-form input[readonly],
body.dark-mode input[readonly] {
    background: #0f172a !important;
    color: #94a3b8 !important;
    border-color: #334155 !important;
}

body.dark-mode .debt-table .total-row,
body.dark-mode .total-row {
    background: #0f172a !important;
}

body.dark-mode .debt-table .total-row td,
body.dark-mode .total-row td {
    background: #0f172a !important;
    color: #e2e8f0 !important;
    border-top: 1px solid #334155 !important;
}

body.dark-mode .debt-table input,
body.dark-mode .debt-table select {
    background: #0f172a !important;
    color: #e2e8f0 !important;
    border: 1px solid #475569 !important;
}

body.dark-mode .debt-table th {
    background: #0f172a !important;
    color: #94a3b8 !important;
    border-bottom-color: #334155 !important;
}

body.dark-mode .debt-table td {
    border-bottom-color: #334155 !important;
}

body.dark-mode .btn-add-row {
    background: #1e293b !important;
    border-color: #475569 !important;
    color: #a5b4fc !important;
}

body.dark-mode .modal-content {
    background: #1e293b !important;
    border-color: #334155 !important;
}

body.dark-mode .modal-header {
    border-bottom-color: #334155 !important;
}

body.dark-mode .close {
    color: #94a3b8 !important;
}

body.dark-mode .form-group label {
    color: #cbd5e1 !important;
}

body.dark-mode .form-group input,
body.dark-mode .form-group select,
body.dark-mode .form-group textarea {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

body.dark-mode .info-text {
    background: transparent !important;
    color: #94a3b8 !important;
}

body.dark-mode .user-menu {
    background: #1e293b;
    border-color: #334155;
}

body.dark-mode .user-menu div {
    color: #e2e8f0;
}

body.dark-mode .user-menu div:hover {
    background: #334155;
}

body.dark-mode .user-menu hr {
    border-color: #334155;
}

body.dark-mode .modal-content .user-table-container {
    border-color: #334155;
    background: #0f172a;
}

body.dark-mode .modal-content .user-table th {
    background: #0f172a;
    color: #94a3b8;
    border-bottom: 1px solid #334155;
}

body.dark-mode .modal-content .user-table td {
    background: #1e293b;
    color: #e2e8f0;
    border-bottom: 1px solid #334155;
}

body.dark-mode .modal-content .user-table tr:hover td {
    background: #2d3a5e;
}

body.dark-mode .modal-content .status-active {
    color: #10b981;
}

body.dark-mode .modal-content .status-suspended {
    color: #f87171;
}

body.dark-mode .modal-content .invite-table-container {
    border-color: #334155;
    background: #0f172a;
}

body.dark-mode .modal-content .invite-table th {
    background: #0f172a;
    color: #94a3b8;
    border-bottom: 1px solid #334155;
}

body.dark-mode .modal-content .invite-table td {
    background: #1e293b;
    color: #e2e8f0;
    border-bottom: 1px solid #334155;
}

body.dark-mode .repay-page .invoice-group,
body.dark-mode .report-page .invoice-group {
    background: #1e293b;
    border-color: #334155;
}

body.dark-mode .repay-page .invoice-header,
body.dark-mode .report-page .invoice-header {
    background: #0f172a !important;
    border-bottom-color: #334155;
}

body.dark-mode .repay-page .invoice-no,
body.dark-mode .report-page .invoice-no {
    background: #4c6ef5;
}

body.dark-mode .repay-page .customer-info,
body.dark-mode .report-page .customer-info {
    color: #cbd5e1 !important;
}

body.dark-mode .repay-page .invoice-body,
body.dark-mode .report-page .invoice-body {
    background: #1e293b;
}

body.dark-mode .repay-page .product-item {
    border-bottom-color: #334155;
}

body.dark-mode .repay-page .product-name {
    color: #e2e8f0;
}

body.dark-mode .repay-page .invoice-summary,
body.dark-mode .report-page .invoice-summary {
    background: #0f172a;
    border-top-color: #334155;
}

body.dark-mode .repay-page .invoice-date-status,
body.dark-mode .report-page .invoice-date-status {
    background: #111827;
    border-top-color: #334155;
    color: #94a3b8;
}

body.dark-mode .repay-page .invoice-footer,
body.dark-mode .report-page .invoice-footer {
    background: #2d2a1a;
    border-top-color: #5c4a1a;
    color: #f59e0b;
}

body.dark-mode .report-page .debt-detail-row {
    border-bottom-color: #334155;
}

body.dark-mode .report-page .debt-detail-info {
    color: #e2e8f0;
}

body.dark-mode .report-page .debt-info-line {
    color: #94a3b8;
}

body.dark-mode .product-list {
    background: #1e293b !important;
    border-color: #334155 !important;
}

body.dark-mode .product-list-item {
    border-bottom-color: #334155 !important;
    color: #e2e8f0 !important;
}

body.dark-mode .product-list-item:hover {
    background: #334155 !important;
}

body.dark-mode .product-list-price {
    color: #94a3b8 !important;
}

/* 暗色模式下覆盖时尚风格的白色背景 */
body.dark-mode.style-fashion .debt-table td,
body.dark-mode.style-fashion .debt-table input,
body.dark-mode.style-fashion .debt-table select {
    background: #0f172a !important;
    border-color: #475569 !important;
    color: #e2e8f0 !important;
}

body.dark-mode.style-fashion .user-menu {
    background: #1e293b !important;
    border-color: #334155 !important;
}

body.dark-mode.style-fashion .user-menu div {
    color: #e2e8f0 !important;
}

body.dark-mode.style-fashion .user-menu div:hover {
    background: #334155 !important;
}

body.dark-mode.style-fashion .modal-content {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
}
/* ========== 电脑端统计页面欠款明细行配色（方案三：绿白对比） ========== */
@media (min-width: 769px) {
    .debt-detail-row {
        transition: background 0.2s ease;
    }
    .debt-detail-row:nth-child(odd) {
        background: #ffffff;
    }
    .debt-detail-row:nth-child(even) {
        background: #d4edda;
    }
    .debt-detail-row:hover {
        background: #c3e6cb;
    }
    
    /* 暗色模式适配 */
    body.dark-mode .debt-detail-row:nth-child(odd) {
        background: #1e293b;
    }
    body.dark-mode .debt-detail-row:nth-child(even) {
        background: #1a3a1a;
    }
    body.dark-mode .debt-detail-row:hover {
        background: #2a4a2a;
    }
}
/* ========== 电脑端原生日期选择器暗色模式（方法五完整方案） ========== */
@media (min-width: 769px) {
    /* 下拉箭头图标 - 暗色模式反色 */
    body.dark-mode input[type="date"]::-webkit-calendar-picker-indicator,
    body.dark-mode input[type="time"]::-webkit-calendar-picker-indicator,
    body.dark-mode input[type="datetime-local"]::-webkit-calendar-picker-indicator {
        filter: invert(1);
        cursor: pointer;
        opacity: 0.7;
        transition: opacity 0.2s;
    }

    body.dark-mode input[type="date"]::-webkit-calendar-picker-indicator:hover,
    body.dark-mode input[type="time"]::-webkit-calendar-picker-indicator:hover,
    body.dark-mode input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
        opacity: 1;
    }

    /* 日期内部文字（年/月/日） - 暗色模式 */
    body.dark-mode input[type="date"]::-webkit-datetime-edit {
        color: #e2e8f0;
    }

    body.dark-mode input[type="date"]::-webkit-datetime-edit-fields-wrapper {
        color: #e2e8f0;
    }

    body.dark-mode input[type="date"]::-webkit-datetime-edit-text {
        color: #94a3b8;
        padding: 0 2px;
    }

    body.dark-mode input[type="date"]::-webkit-datetime-edit-month-field,
    body.dark-mode input[type="date"]::-webkit-datetime-edit-day-field,
    body.dark-mode input[type="date"]::-webkit-datetime-edit-year-field {
        color: #e2e8f0;
    }

    body.dark-mode input[type="date"]::-webkit-datetime-edit-month-field:focus,
    body.dark-mode input[type="date"]::-webkit-datetime-edit-day-field:focus,
    body.dark-mode input[type="date"]::-webkit-datetime-edit-year-field:focus {
        background-color: #334155;
        color: #ffffff;
        border-radius: 4px;
    }

    /* 时间选择器内部文字 */
    body.dark-mode input[type="time"]::-webkit-datetime-edit {
        color: #e2e8f0;
    }

    body.dark-mode input[type="time"]::-webkit-datetime-edit-fields-wrapper {
        color: #e2e8f0;
    }

    body.dark-mode input[type="time"]::-webkit-datetime-edit-text {
        color: #94a3b8;
    }

    body.dark-mode input[type="time"]::-webkit-datetime-edit-hour-field,
    body.dark-mode input[type="time"]::-webkit-datetime-edit-minute-field,
    body.dark-mode input[type="time"]::-webkit-datetime-edit-second-field,
    body.dark-mode input[type="time"]::-webkit-datetime-edit-ampm-field {
        color: #e2e8f0;
    }

    /* 日期时间选择器内部文字 */
    body.dark-mode input[type="datetime-local"]::-webkit-datetime-edit {
        color: #e2e8f0;
    }

    body.dark-mode input[type="datetime-local"]::-webkit-datetime-edit-fields-wrapper {
        color: #e2e8f0;
    }

    body.dark-mode input[type="datetime-local"]::-webkit-datetime-edit-text {
        color: #94a3b8;
    }

    body.dark-mode input[type="datetime-local"]::-webkit-datetime-edit-month-field,
    body.dark-mode input[type="datetime-local"]::-webkit-datetime-edit-day-field,
    body.dark-mode input[type="datetime-local"]::-webkit-datetime-edit-year-field,
    body.dark-mode input[type="datetime-local"]::-webkit-datetime-edit-hour-field,
    body.dark-mode input[type="datetime-local"]::-webkit-datetime-edit-minute-field {
        color: #e2e8f0;
    }

    /* Firefox 浏览器兼容 */
    body.dark-mode input[type="date"],
    body.dark-mode input[type="time"],
    body.dark-mode input[type="datetime-local"] {
        -moz-appearance: textfield;
    }
}
/* ========== 电脑端顶部标题栏暗色模式 ========== */
@media (min-width: 769px) {
    body.dark-mode .app-header {
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }
    
    body.dark-mode .app-header .header-left h2 {
        background: linear-gradient(135deg, #a5b4fc 0%, #c7d2fe 100%);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    
    body.dark-mode .app-header .stats .stat-box {
        transition: transform 0.2s ease;
    }
    
    body.dark-mode .app-header .stats .stat-box:hover {
        transform: translateY(-2px);
        background: rgba(255, 255, 255, 0.15);
    }
}
/* ========== 电脑端夜间模式统一修复 ========== */
@media (min-width: 769px) {
    /* 时尚风格夜间模式适配 */
    body.dark-mode.style-fashion .repay-buttons .btn,
    body.dark-mode.style-fashion .repay-buttons .btn-sm {
        background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
        box-shadow: none;
    }
    
    body.dark-mode.style-fashion .repay-buttons .btn-success {
        background: linear-gradient(135deg, #059669 0%, #047857 100%);
    }
    
    body.dark-mode.style-fashion .repay-buttons .btn-warning {
        background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    }
    
    body.dark-mode.style-fashion .invoice-group {
        background: #1e293b;
        border: 1px solid #334155;
        border-radius: 20px;
    }
    
    body.dark-mode.style-fashion .invoice-header {
        background: #0f172a !important;
        border-radius: 20px 20px 0 0;
    }
    
    body.dark-mode.style-fashion .product-item {
        border-radius: 12px;
        margin-bottom: 4px;
    }
    
    body.dark-mode.style-fashion .debt-detail-actions .btn-sm {
        background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
        border-radius: 20px;
    }
    
    body.dark-mode.style-fashion .debt-detail-actions .btn-danger {
        background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    }
    
    body.dark-mode.style-fashion .debt-detail-actions .btn-warning {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    }
    
    body.dark-mode.style-fashion .query-bar input,
    body.dark-mode.style-fashion .query-bar select {
        background: #0f172a;
        border-radius: 16px;
    }
    
    /* 时尚风格底部导航 */
    body.dark-mode.style-fashion .bottom-nav {
        background: rgba(30, 41, 59, 0.95);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(102, 126, 234, 0.2);
    }
    
    body.dark-mode.style-fashion .nav-item.active {
        background: linear-gradient(135deg, #4f46e5 0%, #db2777 100%);
    }
    
    /* 统计页面按钮时尚风格 */
    body.dark-mode.style-fashion .card .btn {
        background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #db2777 100%);
    }
    
    body.dark-mode.style-fashion .invoice-buttons .btn-secondary {
        background: linear-gradient(135deg, #475569 0%, #334155 100%);
    }
    
    body.dark-mode.style-fashion .invoice-buttons .btn-danger {
        background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    }
}
/* ========== 电脑端登录界面夜间模式适配 ========== */
@media (min-width: 769px) {
    body.dark-mode .login-card {
        padding: 40px 35px;
        border-radius: 28px;
    }
    
    body.dark-mode .login-card .form-group input {
        padding: 12px 16px;
        border-radius: 14px;
    }
    
    body.dark-mode .login-card .btn {
        padding: 14px;
        border-radius: 14px;
        font-size: 16px;
    }
    
    /* 时尚风格登录界面适配 */
    body.dark-mode.style-fashion .login-container {
        background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 100%);
    }
    
    body.dark-mode.style-fashion .login-card {
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(102, 126, 234, 0.2) inset;
    }
    
    body.dark-mode.style-fashion .login-card .btn {
        background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #db2777 100%);
        box-shadow: 0 8px 20px -6px rgba(79, 70, 229, 0.4);
    }
}