/* 通用组件样式 */

/* 按钮组件 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 14px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    line-height: 1.5;
    white-space: nowrap;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.16);
}

.btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(15, 34, 58, 0.08);
}

.btn-primary {
    background: linear-gradient(135deg, #1b5f7a 0%, #2f8fc2 100%);
    border-color: #1b5f7a;
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #174f67 0%, #287cab 100%);
    border-color: #174f67;
}

.btn-secondary {
    background-color: #6b7280;
    border-color: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
    border-color: #545b62;
}

.btn-success {
    background: linear-gradient(135deg, #1d8b79 0%, #14796b 100%);
    border-color: #1d8b79;
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #187566 0%, #116659 100%);
    border-color: #116659;
}

.btn-danger {
    background: linear-gradient(135deg, #db3d4c 0%, #b82d3a 100%);
    border-color: #db3d4c;
    color: white;
}

.btn-danger:hover {
    background-color: #bd2130;
    border-color: #bd2130;
}

.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background-color: #d39e00;
    border-color: #d39e00;
}

.btn-info {
    background-color: #17a2b8;
    border-color: #17a2b8;
    color: white;
}

.btn-info:hover {
    background-color: #117a8b;
    border-color: #117a8b;
}

.btn-light {
    background-color: #f8f9fa;
    border-color: #f8f9fa;
    color: #212529;
}

.btn-light:hover {
    background-color: #dae0e5;
    border-color: #dae0e5;
}

.btn-outline-primary {
    background-color: transparent;
    border-color: #2f8fc2;
    color: #1b5f7a;
}

.btn-outline-primary:hover {
    background-color: #2f8fc2;
    color: white;
}

.btn-outline-secondary {
    background-color: rgba(255, 255, 255, 0.88);
    border-color: #cfd8e4;
    color: #42526b;
}

.btn-outline-secondary:hover {
    background-color: #edf3f9;
    border-color: #b8c5d6;
    color: #243247;
}

.btn-outline-info {
    background-color: rgba(29, 139, 121, 0.08);
    border-color: rgba(29, 139, 121, 0.26);
    color: #1d8b79;
}

.btn-outline-info:hover {
    background-color: #1d8b79;
    border-color: #1d8b79;
    color: white;
}

.btn-outline-warning {
    background-color: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.32);
    color: #b87506;
}

.btn-outline-warning:hover {
    background-color: #f59e0b;
    border-color: #f59e0b;
    color: white;
}

.btn-sm {
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 9px;
}

.btn-lg {
    padding: 13px 24px;
    font-size: 16px;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 卡片组件 */
.card {
    background: white;
    border: 1px solid #dde8ef;
    border-radius: 16px;
    box-shadow: 0 12px 26px rgba(15, 34, 58, 0.05);
    margin-bottom: 20px;
}

.card-header {
    padding: 15px 18px;
    border-bottom: 1px solid #e6eef4;
    background: linear-gradient(180deg, #fbfdfd 0%, #f2f7f8 100%);
    border-radius: 16px 16px 0 0;
}

.card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.card-body {
    padding: 18px;
}

.card-footer {
    padding: 15px 18px;
    border-top: 1px solid #edf2f7;
    background-color: #fbfdff;
    border-radius: 0 0 16px 16px;
}

/* 表格组件 */
.table-container {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border-radius: 18px;
    overflow-x: auto;
    overflow-y: visible;
    position: relative;
    border: 1px solid #dfe8ef;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.table-responsive {
    overflow-x: auto;
    overflow-y: visible;
    position: relative;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    min-width: 860px;
    background: transparent;
}

.table th,
.table td {
    padding: 13px 14px;
    text-align: left;
    border-bottom: 1px solid #e8eef5;
    vertical-align: middle;
    overflow: visible;
}

.table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: linear-gradient(180deg, #f7fbfd 0%, #eef5f8 100%);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #587082;
    border-bottom: 1px solid #dbe6ee;
    white-space: nowrap;
}

.table td {
    color: #20364a;
    font-size: 14px;
}

.table tbody tr {
    transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.table tbody tr:hover {
    background: linear-gradient(90deg, #f2f8fb 0%, #f8fbff 100%);
}

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

.table tbody tr:last-child td {
    border-bottom: none;
}

.table-bordered {
    border: 1px solid #e9ecef;
}

.table-bordered th,
.table-bordered td {
    border: 1px solid #e9ecef;
}

/* 表单组件 */
.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #2a3a53;
}

.form-control {
    display: block;
    width: 100%;
    min-height: 40px;
    padding: 9px 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 1px solid #c7d6df;
    border-radius: 12px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    outline: none;
    border-color: #73b2c7;
    box-shadow: 0 0 0 4px rgba(47, 143, 194, 0.12);
}

.form-control:disabled {
    background-color: #e9ecef;
    opacity: 1;
}

.form-select {
    display: block;
    width: 100%;
    min-height: 40px;
    padding: 9px 40px 9px 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #234055;
    background-color: #fff;
    border: 1px solid #cddae4;
    border-radius: 12px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(15, 23, 42, 0.02)),
        url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%235f7487' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='m3.5 6 4.5 4 4.5-4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: 0 0, right 12px center;
    background-size: auto, 16px 12px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, background-color 0.15s ease-in-out;
}

.form-select:hover {
    border-color: #b7cad8;
    background-color: #fcfdff;
}

.form-select:focus {
    outline: none;
    border-color: #73b2c7;
    box-shadow: 0 0 0 4px rgba(47, 143, 194, 0.12);
}

.form-select:disabled {
    background-color: #eef3f7;
    color: #7a8b99;
    cursor: not-allowed;
}

.form-select[multiple],
.form-select[size]:not([size="1"]) {
    min-height: 96px;
    padding-right: 12px;
    background-image: none;
}

.form-select option {
    color: #20364a;
}

.form-check {
    display: block;
    min-height: 1.5rem;
    padding-left: 1.5em;
    margin-bottom: 0.125rem;
}

.form-check-input {
    width: 1em;
    height: 1em;
    margin-top: 0.25em;
    margin-left: -1.5em;
}

.form-check-label {
    margin-bottom: 0;
}

/* 分页组件 */
.pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 1rem;
}

.pagination-info {
    color: #667085;
    font-size: 0.92rem;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    flex-wrap: wrap;
}

.pagination-item {
    min-width: 38px;
    min-height: 38px;
    padding: 7px 11px;
    border: 1px solid #d8e3ee;
    background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
    color: #264154;
    text-decoration: none;
    border-radius: 11px;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    transition: all 0.2s ease;
}

.pagination-item:hover {
    background: #f2f7fb;
    border-color: #bfd3e3;
}

.pagination-item.active {
    background: linear-gradient(135deg, var(--admin-brand-primary) 0%, var(--admin-brand-secondary) 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 10px 20px rgba(29, 139, 121, 0.22);
}

.pagination-item.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 徽章组件 */
.badge {
    display: inline-block;
    padding: 4px 9px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 999px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.34rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.status-badge i {
    font-size: 0.72em;
}

.status-success {
    background: #dcfce7;
    color: #166534;
}

.status-warning {
    background: #fef3c7;
    color: #92400e;
}

.status-danger {
    background: #fee2e2;
    color: #991b1b;
}

.status-info {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-secondary {
    background: #e5e7eb;
    color: #374151;
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.action-buttons .btn {
    border-radius: 10px;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    z-index: 10020 !important;
}

.badge-primary {
    background-color: #007bff;
    color: white;
}

.badge-secondary {
    background-color: #6c757d;
    color: white;
}

.badge-success {
    background-color: #28a745;
    color: white;
}

.badge-danger {
    background-color: #dc3545;
    color: white;
}

.badge-warning {
    background-color: #ffc107;
    color: #212529;
}

.badge-info {
    background-color: #17a2b8;
    color: white;
}

.badge-light {
    background-color: #f8f9fa;
    color: #212529;
}

.badge-dark {
    background-color: #343a40;
    color: white;
}

/* 状态指示器 */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-online {
    background-color: #28a745;
}

.status-offline {
    background-color: #dc3545;
}

.status-warning {
    background-color: #ffc107;
}

/* 模态框组件 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 24px;
    background:
        linear-gradient(180deg, rgba(11, 23, 38, 0.54), rgba(11, 23, 38, 0.62));
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1400;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: min(88vh, 960px);
    overflow: hidden;
    border: 1px solid rgba(221, 230, 238, 0.95);
    transform: translateY(18px) scale(0.97);
    transition: transform 0.28s ease, opacity 0.28s ease;
    box-shadow: 0 28px 60px rgba(12, 28, 49, 0.24);
}

.modal.show .modal-content {
    transform: translateY(0) scale(1);
}

.modal-dialog {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.modal-lg,
.modal-dialog.modal-lg {
    max-width: 860px;
}

.modal-xl,
.modal-dialog.modal-xl {
    max-width: 1120px;
}

.modal-header {
    padding: 18px 22px;
    border-bottom: 1px solid #e8eef5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 24%),
        linear-gradient(135deg, var(--admin-brand-primary) 0%, var(--admin-brand-secondary) 60%, var(--admin-brand-tertiary) 100%);
    color: white;
}

.modal-header h3,
.modal-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
}

.modal-close {
    appearance: none;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    font-size: 24px;
    line-height: 1;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: rotate(90deg);
}

.modal-body {
    padding: 22px;
    max-height: calc(min(88vh, 960px) - 148px);
    overflow: auto;
}

.modal-footer {
    padding: 18px 22px;
    border-top: 1px solid #e8eef5;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
    background: linear-gradient(180deg, #fbfcfe 0%, #f4f8fb 100%);
}

.modal-footer .btn {
    min-width: 96px;
}

/* 提示框组件 */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1500;
}

.toast {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 8px;
    min-width: 300px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-header {
    padding: 12px 16px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast-icon {
    width: 16px;
    height: 16px;
}

.toast-title {
    font-weight: 500;
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0;
}

.toast-body {
    padding: 12px 16px;
}

.toast-success .toast-header {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.toast-error .toast-header {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.toast-warning .toast-header {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.toast-info .toast-header {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* 工具类 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-none { display: none; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-flex { display: flex; }

.justify-content-start { justify-content: flex-start; }
.justify-content-center { justify-content: center; }
.justify-content-end { justify-content: flex-end; }
.justify-content-between { justify-content: space-between; }

.align-items-start { align-items: flex-start; }
.align-items-center { align-items: center; }
.align-items-end { align-items: flex-end; }

.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }

.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }

.m-0 { margin: 0; }
.m-1 { margin: 4px; }
.m-2 { margin: 8px; }
.m-3 { margin: 12px; }
.m-4 { margin: 16px; }
.m-5 { margin: 20px; }

.p-0 { padding: 0; }
.p-1 { padding: 4px; }
.p-2 { padding: 8px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.p-5 { padding: 20px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }

.text-primary { color: #007bff; }
.text-secondary { color: #6c757d; }
.text-success { color: #28a745; }
.text-danger { color: #dc3545; }
.text-warning { color: #ffc107; }
.text-info { color: #17a2b8; }
.text-muted { color: #6c757d; }

.bg-primary { background-color: #007bff; }
.bg-secondary { background-color: #6c757d; }
.bg-success { background-color: #28a745; }
.bg-danger { background-color: #dc3545; }
.bg-warning { background-color: #ffc107; }
.bg-info { background-color: #17a2b8; }
.bg-light { background-color: #f8f9fa; }
.bg-dark { background-color: #343a40; }

/* =================== 新增功能组件样式 =================== */

/* 连接状态指示器 */
.connection-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 12px;
}

.status-connected {
    background: #d4edda;
    color: #155724;
}

.status-disconnected {
    background: #f8d7da;
    color: #721c24;
}

.status-polling {
    background: #fff3cd;
    color: #856404;
}

.status-error {
    background: #f8d7da;
    color: #721c24;
}

/* 文件上传组件 */
.file-upload-area {
    margin: 20px 0;
}

.upload-zone {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: #007bff;
    background: #f0f8ff;
}

.upload-icon {
    font-size: 48px;
    color: #007bff;
    margin-bottom: 16px;
}

.upload-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.upload-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.file-input {
    display: none;
}

.upload-queue {
    margin-top: 20px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin-bottom: 8px;
    background: white;
}

.file-icon {
    font-size: 24px;
    color: #6c757d;
    width: 32px;
    text-align: center;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.file-size {
    font-size: 12px;
    color: #666;
}

.file-preview {
    margin-top: 8px;
}

.file-preview img {
    max-width: 60px;
    max-height: 60px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.file-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: conic-gradient(#007bff 0deg, #e9ecef 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-value {
    font-size: 10px;
    font-weight: 500;
    color: #333;
}

.file-error {
    font-size: 12px;
    margin-top: 4px;
}

.upload-progress {
    margin-top: 20px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 6px;
}

.progress-bar {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 14px;
    color: #666;
    text-align: center;
}

/* 批量操作栏 */
.batch-actions {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 6px;
    margin-bottom: 16px;
}

.selected-count {
    font-weight: 500;
    color: #1976d2;
    margin-right: auto;
}

.batch-progress {
    display: none;
    margin-top: 12px;
}

/* 加载状态 */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 实时更新指示器 */
.real-time-indicator {
    position: fixed;
    top: 80px;
    right: 20px;
    padding: 8px 12px;
    background: rgba(0, 123, 255, 0.9);
    color: white;
    border-radius: 4px;
    font-size: 12px;
    z-index: 1300;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .btn {
        min-height: 42px;
    }

    .card {
        border-radius: 16px;
        margin-bottom: 16px;
    }

    .card-header,
    .card-body,
    .card-footer,
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 16px;
    }

    .modal {
        padding: 12px;
    }

    .modal-content,
    .modal-dialog,
    .modal-lg,
    .modal-xl,
    .modal-dialog.modal-lg,
    .modal-dialog.modal-xl {
        width: 100%;
        max-width: none;
    }

    .modal-body {
        max-height: calc(100vh - 132px);
    }

    .table {
        min-width: 720px;
    }

    .pagination-wrapper {
        align-items: stretch;
    }

    .pagination {
        width: 100%;
    }

    .pagination-item {
        flex: 0 0 auto;
    }

    .action-buttons {
        min-width: 0;
    }

    .toast {
        min-width: min(300px, calc(100vw - 32px));
    }

    .toast-container {
        left: 16px;
        right: 16px;
        top: 16px;
    }
}

.real-time-indicator.show {
    transform: translateX(0);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .connection-status {
        display: none;
    }
    
    .upload-zone {
        padding: 20px 12px;
    }
    
    .upload-icon {
        font-size: 32px;
        margin-bottom: 12px;
    }
    
    .file-item {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .batch-actions {
        flex-wrap: wrap;
        gap: 8px;
    }
}
