body .dataTables_wrapper {
    padding: 1rem 0;
    color: #374151;
    font-size: 0.875rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    position: relative;
}

body .dataTables_wrapper .dataTables_length,
body .dataTables_wrapper .dataTables_filter {
    margin-bottom: 1rem;
}

body .dataTables_wrapper .dataTables_length label,
body .dataTables_wrapper .dataTables_filter label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
}

body .dataTables_wrapper .dataTables_length,
body .dataTables_wrapper .dataTables_filter,
body .dataTables_wrapper .dataTables_info,
body .dataTables_wrapper .dataTables_paginate {
    clear: none;
}

body .dataTables_wrapper .dataTables_length select,
body .dataTables_wrapper .dataTables_filter input {
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background-color: #ffffff;
    color: #111827;
    font-size: 0.875rem;
    line-height: 1.25rem;
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body .dataTables_wrapper .dataTables_length select {
    min-width: 4.5rem;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
}

body .dataTables_wrapper .dataTables_filter input {
    margin-left: 0 !important;
    min-width: min(18rem, 100%);
    padding: 0.5rem 0.75rem;
}

body .dataTables_wrapper .dataTables_length select:focus,
body .dataTables_wrapper .dataTables_filter input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.25);
}

body .dataTables_wrapper .dataTables_info {
    padding-top: 0.75rem;
    color: #6b7280;
    font-size: 0.875rem;
}

body .dataTables_wrapper .dataTables_paginate {
    padding-top: 0.75rem;
}

body .dataTables_wrapper .dataTables_paginate .paginate_button {
    margin-left: 0 !important;
    min-width: 2.5rem;
    padding: 0.45rem 0.75rem !important;
    border: 1px solid #d1d5db !important;
    border-radius: 0.5rem;
    background: #ffffff !important;
    color: #374151 !important;
    box-shadow: none !important;
}

body .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    border-color: #93c5fd !important;
    background: #eff6ff !important;
    color: #1d4ed8 !important;
}

body .dataTables_wrapper .dataTables_paginate .paginate_button.current,
body .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    border-color: #2563eb !important;
    background: #2563eb !important;
    color: #ffffff !important;
}

body .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
body .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover,
body .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active {
    border-color: #e5e7eb !important;
    background: #f9fafb !important;
    color: #9ca3af !important;
    cursor: not-allowed;
}

body .dataTables_wrapper .dataTables_processing {
    top: 4.25rem !important;
    left: 50% !important;
    width: auto !important;
    min-width: 12rem;
    margin: 0 !important;
    padding: 0.75rem 1rem;
    transform: translateX(-50%);
    border: 1px solid #bfdbfe;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.96);
    color: #1d4ed8;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 10px 25px -5px rgba(30, 64, 175, 0.18);
    backdrop-filter: blur(6px);
    pointer-events: none;
    z-index: 20;
}

table.dataTable thead th,
table.dataTable thead td {
    background-color: #f9fafb;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    border-bottom: 2px solid #e5e7eb !important;
    padding: 0.875rem 0.75rem !important;
    line-height: 1.5;
    text-align: left;
    vertical-align: middle;
}

table.dataTable tbody td {
    color: #374151;
    font-size: 0.875rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    border-bottom: 1px solid #f3f4f6 !important;
    padding: 0.75rem !important;
    line-height: 1.6;
    vertical-align: middle;
}

/* 强化斑马纹 */
table.dataTable tbody tr {
    background-color: #ffffff;
}

table.dataTable tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

table.dataTable tbody tr:hover td {
    background-color: #eff6ff !important;
}

table.dataTable.no-footer {
    border-bottom: 1px solid #e5e7eb;
}

body table.dataTable tbody tr.dt-rowgroup-start,
body table.dataTable tbody tr.dtrg-start,
body table.dataTable tbody tr.dtrg-group {
    background: transparent !important;
}

body table.dataTable tbody tr.dt-rowgroup-start > td,
body table.dataTable tbody tr.dtrg-start > td,
body table.dataTable tbody tr.dtrg-group > td,
body table.dataTable tbody tr.dt-rowgroup-start > th,
body table.dataTable tbody tr.dtrg-start > th,
body table.dataTable tbody tr.dtrg-group > th,
body table.dataTable tbody .group-header {
    padding: 0.75rem 1rem !important;
    border-top: 1px solid #bfdbfe !important;
    border-bottom: 1px solid #bfdbfe !important;
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    letter-spacing: 0.01em;
    text-transform: none !important;
    vertical-align: middle;
}

body table.dataTable tbody tr.dt-rowgroup-start > td::before,
body table.dataTable tbody tr.dtrg-start > td::before,
body table.dataTable tbody tr.dtrg-group > td::before,
body table.dataTable tbody .group-header::before {
    content: none !important;
}

@media (max-width: 640px) {
    body .dataTables_wrapper .dataTables_length,
    body .dataTables_wrapper .dataTables_filter,
    body .dataTables_wrapper .dataTables_info,
    body .dataTables_wrapper .dataTables_paginate {
        float: none;
        text-align: left;
    }

    body .dataTables_wrapper .dataTables_filter input {
        width: 100%;
        min-width: 0;
    }

    body .dataTables_wrapper .dataTables_processing {
        top: 3.5rem !important;
        min-width: 10rem;
        max-width: calc(100% - 2rem);
    }
}
