/**
 * 维护助手页面样式 - 从 maintenance.php 内联样式提取
 * 加载顺序: maintenance.css -> maintenance-page.css
 * sidebar / header / btn / card / alert 基础样式在 maintenance.css 统一定义
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}




.card-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.gateway-status-wrap {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.gateway-status-tip {
    width: 100%;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}
.gateway-status-label { white-space: nowrap; }
.gateway-status-host { font-family: monospace; color: var(--text-primary); }
.gateway-status-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}
.gateway-status-badge.status-checking {
    background: rgba(108, 117, 125, 0.2);
    color: var(--text-secondary);
}
.gateway-status-badge.status-online {
    background: rgba(40, 167, 69, 0.2);
    color: var(--success-color);
}
.gateway-status-badge.status-offline {
    background: rgba(220, 53, 69, 0.2);
    color: var(--danger-color);
}
.gateway-status-badge.status-unknown {
    background: rgba(108, 117, 125, 0.2);
    color: var(--text-muted);
}

/* 按钮补充样式 - 基础在 maintenance.css */
.btn-secondary {
    background: var(--primary-ultra-light);
    color: var(--primary-color);
}
.btn-secondary:hover {
    background: rgba(0, 113, 227, 0.14);
}
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}
.btn-ghost:hover {
    color: var(--primary-color);
    background: rgba(0, 113, 227, 0.06);
}

/* 维护备忘录样式 */
.memo-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.memo-search {
    position: relative;
    flex: 1;
    min-width: 260px;
}

.memo-search i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    opacity: 0.75;
}

.memo-search input {
    width: 100%;
    padding: 0.7rem 1rem 0.7rem 2.8rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-elevated, rgba(255, 255, 255, 0.9));
    color: var(--text-primary, #1D1D1F);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: none;
}
.memo-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0,113,227,0.1);
}

.memo-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.memo-count {
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(0, 113, 227, 0.12);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
}

.memo-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.2rem;
}

.memo-card {
    border-radius: var(--radius-xl);
    border: 0.5px solid var(--border-color);
    padding: 1.25rem;
    background: var(--bg-elevated);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    transition: all var(--duration-normal) var(--ease-smooth);
}

.memo-card-list-mode {
    padding: 1.2rem 1.4rem;
}

.memo-card-preview {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
    position: relative;
    z-index: 1;
}

.memo-card-preview-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.memo-card-preview-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    background: rgba(0, 113, 227, 0.08);
    border-radius: 999px;
}

.memo-card-preview-item i {
    font-size: 0.8rem;
    color: var(--primary-color);
}

.memo-card-preview-item span {
    font-weight: 500;
}
.memo-card-mac {
    font-family: monospace;
    font-size: 0.9em;
}

.memo-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,113,227,0.02), transparent 50%);
    opacity: 0;
    transition: opacity var(--duration-normal);
    pointer-events: none;
    z-index: 0;
}
.memo-card:hover {
    border-color: rgba(0,0,0,0.08);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-1px);
}
.memo-card:hover::before { opacity: 1; }

.memo-card-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.memo-card-title {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.memo-card-title h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 700;
}

.memo-timestamp {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.memo-card-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.memo-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 113, 227, 0.12);
    color: var(--primary-color);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.2);
    position: relative;
    z-index: 2;
}

.memo-action-btn.copy {
    background: rgba(0, 113, 227, 0.12);
    color: var(--primary-color);
}

.memo-action-btn.copy:hover {
    background: var(--primary-color);
}

.memo-action-btn.edit {
    background: rgba(0, 113, 227, 0.12);
    color: var(--primary-color);
}

.memo-action-btn.edit:hover {
    background: var(--primary-color);
}

.memo-action-btn.export {
    background: rgba(40, 167, 69, 0.12);
    color: var(--success-color);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.18);
}

.memo-action-btn.export:hover {
    background: var(--success-color);
}

.memo-action-btn.view {
    background: rgba(0, 113, 227, 0.12);
    color: var(--primary-color);
}

.memo-action-btn.view:hover {
    background: var(--primary-color);
}

.memo-action-btn:hover {
            color: #fff;
        }

.memo-action-btn.danger {
    background: rgba(245, 87, 108, 0.12);
    color: var(--danger-color);
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.2);
}

.memo-action-btn.danger:hover {
    background: var(--danger-color);
    color: #fff;
}

.memo-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.memo-field {
    padding: 1rem;
    border-radius: 14px;
    border: 1px dashed rgba(0, 113, 227, 0.25);
    background: rgba(0, 113, 227, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.memo-field-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.memo-field-title {
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.memo-field-title i {
    font-size: 1rem;
}

.memo-field-values {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.memo-field-empty {
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.65);
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    box-shadow: inset 0 0 0 1px rgba(0, 113, 227, 0.15);
}

.memo-value-chip {
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    padding: 0.55rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-xs);
}

.memo-value-chip:hover {
            background: var(--primary-color);
            color: #fff;
            box-shadow: 0 4px 12px rgba(0, 113, 227, 0.25);
        }

.memo-value-chip i {
    font-size: 0.85rem;
    opacity: 0.8;
}

.memo-value-chip.copied {
    background: var(--success-color);
    color: #fff;
    box-shadow: 0 10px 24px rgba(40, 167, 69, 0.35);
}

.memo-value-with-remote {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: nowrap;
}
.btn-remote-camera {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
    border-radius: 8px;
    border: none;
    background: rgba(0, 113, 227, 0.15);
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
}
.btn-remote-camera:disabled {
    opacity: 0.7;
    cursor: wait;
}
.btn-remote-camera:hover {
    background: var(--primary-color);
    color: #fff;
}
.btn-remote-camera-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.gateway-clients-modal-content { max-width: 720px; }
.gateway-clients-modal-body { max-height: 60vh; overflow: auto; }
.gateway-clients-table-wrap { overflow: auto; }
.gateway-clients-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.gateway-clients-table th,
.gateway-clients-table td {
    padding: 0.6rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
.gateway-clients-table th {
    background: rgba(0, 113, 227, 0.08);
    font-weight: 600;
    color: var(--text-primary);
}
.gateway-client-mac { font-family: monospace; }
.gateway-client-ip { font-family: monospace; }
.gateway-client-internal { font-family: monospace; }
.badge-online { color: var(--success-color); font-size: 0.85rem; }
.badge-offline { color: var(--text-muted); font-size: 0.85rem; }
.gateway-client-action .btn-sm { padding: 0.35rem 0.6rem; font-size: 0.8rem; }

.memo-notes {
    padding: 1rem 1.1rem;
    padding-right: 3.5rem;
    border-radius: 14px;
    background: rgba(88, 86, 214, 0.08);
    border: 1px solid rgba(88, 86, 214, 0.2);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 0.95rem;
    position: relative;
}

.memo-notes::before {
    content: '其他备忘';
    position: absolute;
    top: -0.7rem;
    left: 1.2rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 0 0.5rem;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(88, 86, 214, 0.2);
}

.memo-notes-copy {
    position: absolute;
    top: 0.55rem;
    right: 0.6rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(88, 86, 214, 0.15);
    color: var(--secondary-color);
    transition: all 0.3s ease;
    box-shadow: 0 6px 16px rgba(88, 86, 214, 0.22);
}

.memo-notes-copy:hover {
    background: var(--secondary-color);
    color: #fff;
}

.memo-notes-copy.copied {
    background: var(--success-color);
    color: #fff;
    box-shadow: 0 8px 22px rgba(40, 167, 69, 0.3);
}

.memo-notes-content {
    word-break: break-word;
}

.memo-empty {
    padding: 3rem 1rem;
    text-align: center;
    color: var(--text-secondary);
    border: 2px dashed rgba(0, 113, 227, 0.25);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.7);
}

.memo-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.4;
}

.memo-modal {
    position: fixed;
    inset: 0;
    background: rgba(29, 32, 67, 0.55);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 2.5rem 1.5rem;
    z-index: 2000;
    overflow-y: auto;
}

.memo-modal.open {
    display: flex;
}

.memo-modal-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    border-radius: 20px;
    width: min(960px, 100%);
    max-height: 90vh;
    box-shadow: 0 30px 80px rgba(29, 32, 67, 0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: fadeInUp 0.4s ease;
}

.memo-modal-header {
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid rgba(0, 113, 227, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.memo-modal-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
}

.memo-modal-close {
    border: none;
    background: rgba(0, 113, 227, 0.12);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.memo-modal-close:hover {
    background: var(--danger-color);
    color: #fff;
}

.memo-modal-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-height: calc(90vh - 210px);
    overflow-y: auto;
}

.memo-detail-modal-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-height: calc(90vh - 150px);
    overflow-y: auto;
}

.memo-detail-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.memo-detail-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.memo-detail-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(0, 113, 227, 0.15);
}

.memo-detail-section-title i {
    font-size: 1rem;
}

.memo-modal-footer {
    padding: 1.2rem 1.75rem;
    border-top: 1px solid rgba(0, 113, 227, 0.1);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    background: rgba(249, 250, 255, 0.9);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.memo-field-select select {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.65rem 0.9rem;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.form-group input:focus,
.form-group textarea:focus,
.memo-field-select select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
    background: rgba(0, 113, 227, 0.02);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.required {
    color: var(--danger-color);
    font-weight: 700;
}

.memo-field-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem;
    justify-content: space-between;
}

.memo-field-toolbar-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 260px;
}

.memo-field-select {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.memo-field-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.memo-field-empty-hint {
    padding: 1rem;
    border: 1px dashed rgba(0, 113, 227, 0.3);
    border-radius: 12px;
    background: rgba(0, 113, 227, 0.08);
    color: var(--text-secondary);
    text-align: center;
    font-size: 0.9rem;
}

.memo-field-editor {
    border: 1px solid rgba(0, 113, 227, 0.25);
    border-radius: 14px;
    padding: 1.1rem 1.2rem;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.memo-field-editor-header {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
}

.memo-field-label-input {
    flex: 1;
    min-width: 180px;
    border: none;
    background: rgba(0, 113, 227, 0.08);
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.memo-field-label-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.2);
}

.memo-field-editor-tools {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.memo-field-value-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.memo-field-value-row {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
}

.memo-field-value-input {
    flex: 1 1 220px;
    max-width: 320px;
    border: 1px solid rgba(0, 113, 227, 0.3);
    border-radius: 10px;
    padding: 0.55rem 0.75rem;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.memo-field-value-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.memo-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(0, 113, 227, 0.12);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.memo-icon-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.memo-icon-btn.danger {
    background: rgba(245, 87, 108, 0.15);
    color: var(--danger-color);
}

.memo-icon-btn.danger:hover {
    background: var(--danger-color);
    color: #fff;
}

/* 功能卡片 - 沿用 maintenance.css 中的 Apple 设计 */

/* 上传区域 */
.upload-container {
    margin-bottom: 2rem;
}

.upload-area {
    border: 3px dashed var(--border-color);
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 113, 227, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--primary-color);
    background: rgba(0, 113, 227, 0.05);
    box-shadow: 
        0 8px 24px rgba(0, 113, 227, 0.15),
        0 0 0 3px rgba(0, 113, 227, 0.1);
}

.upload-area:hover::before,
.upload-area.dragover::before {
    opacity: 1;
    animation: backgroundPulse 2s ease-in-out infinite;
}

.upload-area.dragover {
    border-style: solid;
    background: rgba(0, 113, 227, 0.1);
}

@keyframes backgroundPulse {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, 20px) scale(1.1); }
}

@keyframes dragPulse {
    0%, 100% { box-shadow: 0 15px 40px rgba(0, 113, 227, 0.25), 0 0 0 4px rgba(0, 113, 227, 0.2); }
    50% { box-shadow: 0 20px 50px rgba(0, 113, 227, 0.35), 0 0 0 8px rgba(0, 113, 227, 0.3); }
}

.upload-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.upload-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.upload-hint {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.upload-area input[type="file"] {
    display: none;
}

/* 上传进度 */
.upload-progress-container {
    display: none;
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(0, 113, 227, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(0, 113, 227, 0.2);
}

.upload-progress-container.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.upload-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.upload-file-name {
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-progress-percent {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
    min-width: 60px;
    text-align: right;
}

.upload-progress-bar {
    width: 100%;
    height: 12px;
    background: var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.upload-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 6px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.upload-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.upload-speed {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    display: flex;
    justify-content: space-between;
}

/* 文件列表区域 */
.file-list-container {
    margin-top: 2rem;
}

.file-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.file-list-header h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-count-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.file-list {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.file-list::-webkit-scrollbar {
    width: 8px;
}

.file-list::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-radius: 4px;
}

.file-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.file-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

.file-item {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-secondary);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.file-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 113, 227, 0.1), transparent);
    transition: left 0.5s ease;
}

.file-item:hover::before {
    left: 100%;
}

.file-item:hover {
    border-color: var(--primary-color);
    background: rgba(0, 113, 227, 0.04);
    box-shadow: 0 4px 16px rgba(0, 113, 227, 0.12);
}

.file-item.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.1) 0%, rgba(88, 86, 214, 0.05) 100%);
    transform: translateX(4px) scale(1.02);
    box-shadow: 
        0 6px 20px rgba(0, 113, 227, 0.25),
        inset 0 0 20px rgba(0, 113, 227, 0.05);
}

.file-checkbox {
    width: 20px;
    height: 20px;
    margin-right: 1rem;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.file-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    word-break: break-all;
    font-size: 1rem;
}

.file-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.file-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-meta-item i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.file-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.btn-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.btn-icon:hover::before {
    width: 100px;
    height: 100px;
}

.btn-icon-primary {
    background: rgba(0, 113, 227, 0.1);
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 113, 227, 0.15);
}

.btn-icon-primary:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

.btn-icon-primary:active {
    transform: scale(1.05) rotateY(0deg);
}

.btn-icon-danger {
    background: rgba(245, 87, 108, 0.1);
    color: var(--danger-color);
    box-shadow: 0 2px 8px rgba(245, 87, 108, 0.15);
}

.btn-icon-danger:hover {
    background: var(--danger-color);
    color: white;
    transform: scale(1.15) rotateY(-5deg);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
}

.btn-icon-danger:active {
    transform: scale(1.05) rotateY(0deg);
}

/* 批量操作栏 */
.bulk-actions {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    display: none;
    transform-style: preserve-3d;
    transform: translateY(100px) rotateX(15deg);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

.bulk-actions.active {
    transform: translateY(0) rotateX(0deg);
    opacity: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bulk-selected-count {
    font-weight: 600;
    color: var(--text-primary);
}

.btn-bulk {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-bulk-success {
    background: var(--success-color);
    color: white;
}

.btn-bulk-success:hover {
    background: #218838;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-bulk-success:active {
    transform: translateY(-1px) scale(1.02);
}

.btn-bulk-danger {
    background: var(--danger-color);
    color: white;
}

.btn-bulk-danger:hover {
    background: #e4465a;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
}

.btn-bulk-danger:active {
    transform: translateY(-1px) scale(1.02);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-state p {
    font-size: 1.1rem;
}

/* 加载状态 */
.loading-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.loading-state i {
    font-size: 2rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 焦点可见态 */
.btn:focus-visible,
.sidebar-toggle:focus-visible,
.memo-action-btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ======== 机器列表转换工具 ======== */
.mc-hint {
    font-size: 0.85rem;
    color: #888;
    font-weight: normal;
}
.mc-input-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}
.mc-input-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.mc-input-col label {
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}
.mc-input-col textarea {
    width: 100%;
    font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
    font-size: 0.85rem;
    padding: 0.6rem;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    resize: vertical;
    line-height: 1.6;
    background: #fafbfc;
    min-height: 360px;
}
.mc-input-col textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(79,70,229,0.08);
}
.mc-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.mc-count {
    font-size: 0.85rem;
    color: #666;
    margin-left: 0.5rem;
}
.mc-preview-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #333;
}
.mc-preview-title i {
    color: var(--primary-color);
    margin-right: 0.3rem;
}
.mc-table-scroll {
    overflow-x: auto;
    border: 1px solid #e0e3e8;
    border-radius: 8px;
}
.mc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.mc-table th {
    background: #f0f2f5;
    padding: 0.5rem 0.75rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #d0d7de;
    white-space: nowrap;
}
.mc-table td {
    padding: 0.4rem 0.75rem;
    border-bottom: 1px solid #eaecf0;
    font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
    font-size: 0.84rem;
}
.mc-table tr:hover td {
    background: #f7f8fa;
}
.mc-table td:first-child {
    text-align: center;
    color: #999;
    width: 3rem;
}
.mc-confirm-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
    padding: 0.8rem 1rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
}
.mc-confirm-hint {
    font-size: 0.88rem;
    color: #16a34a;
    flex: 1;
}
.mc-confirm-hint i {
    margin-right: 0.3rem;
}
@media (max-width: 768px) {
    .mc-input-row {
        flex-direction: column;
    }
    .mc-confirm-bar {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================
   场所二维码模板生成器
   ========================================== */

/* 上传区域 */
.qrt-upload-zone {
    border: 2px dashed var(--maint-border, #d1d5db);
    border-radius: 12px;
    padding: 40px 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: var(--maint-bg-secondary, #f8f9fa);
    margin-bottom: 20px;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qrt-upload-zone:hover,
.qrt-upload-zone.dragover {
    border-color: var(--maint-primary, #6c5ce7);
    background: rgba(108, 92, 231, 0.04);
}

.qrt-upload-placeholder i {
    font-size: 48px;
    color: var(--maint-text-muted, #9ca3af);
    margin-bottom: 12px;
    display: block;
}

.qrt-upload-placeholder p {
    font-size: 16px;
    font-weight: 600;
    color: var(--maint-text-primary, #374151);
    margin: 0 0 6px;
}

.qrt-upload-placeholder span {
    font-size: 13px;
    color: var(--maint-text-muted, #9ca3af);
}

/* 上传预览 */
.qrt-upload-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.qrt-upload-preview img {
    max-width: 240px;
    max-height: 240px;
    border-radius: 8px;
    border: 1px solid var(--maint-border, #d1d5db);
    object-fit: contain;
    background: #fff;
}

.qrt-re-upload {
    font-size: 13px;
}

/* 操作按钮行 */
.qrt-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

/* A4 预览区域 */
.qrt-preview-wrap {
    margin-top: 8px;
}

/* 预览工具栏 */
.qrt-preview-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.qrt-preview-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--maint-text-primary, #374151);
    margin: 0;
}

.qrt-preview-title i {
    color: var(--maint-primary, #6c5ce7);
    margin-right: 6px;
}

.qrt-zoom-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qrt-zoom-label {
    font-size: 13px;
    color: var(--maint-text-muted, #6b7280);
    min-width: 70px;
    text-align: center;
}

.qrt-a4-scroll {
    overflow: auto;
    padding: 16px;
    background: #e9ecef;
    border-radius: 12px;
    display: flex;
    justify-content: center;
}

.qrt-a4-scroll canvas {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    background: #fff;
    transition: width 0.2s ease;
}

/* 导出操作栏（预览下方） */
.qrt-export-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
    padding: 20px;
    background: var(--maint-bg-secondary, #f8f9fa);
    border-radius: 12px;
    border: 1px solid var(--maint-border, #e5e7eb);
}

@media (max-width: 768px) {
    .qrt-upload-zone {
        padding: 24px 16px;
        min-height: 140px;
    }
    .qrt-upload-placeholder i {
        font-size: 36px;
    }
    .qrt-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .qrt-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .qrt-export-bar {
        flex-direction: column;
    }
    .qrt-export-bar .btn {
        width: 100%;
        justify-content: center;
    }
}

/* 响应式/动效偏好已由 maintenance.css 统一管理 */

/* ═══════════════════════════════════════
   文档传输助手
   ═══════════════════════════════════════ */

/* 布局 */
.dt-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.dt-qr-panel {
    flex: 0 0 280px;
}
.dt-file-panel {
    flex: 1;
    min-width: 0;
}

/* 二维码卡片 */
.dt-qr-card {
    background: linear-gradient(135deg, #f8f9ff 0%, #eef1ff 100%);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    border: 1px solid #e0e4f5;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dt-qr-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--primary-color);
    font-size: 14px;
}
.dt-qr-loading i { font-size: 28px; }

.dt-qr-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.dt-qr-img {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 2px 12px rgba(102,126,234,0.12);
}
.dt-qr-img img { display: block; }
.dt-qr-img__pixel { image-rendering: pixelated; }
.dt-qr-hint {
    font-size: 13px;
    color: #667;
    max-width: 220px;
}

/* 计时器 */
.dt-timer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 500;
    padding: 6px 14px;
    background: rgba(102,126,234,0.08);
    border-radius: 8px;
}
.dt-timer-warning {
    color: #e74c3c !important;
    background: rgba(231,76,60,0.08) !important;
}

/* 过期 */
.dt-qr-expired {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #e74c3c;
    font-size: 14px;
}
.dt-qr-expired i { font-size: 36px; }
.dt-qr-expired p { font-weight: 500; }
.dt-qr-actions { margin-top: 12px; text-align: center; }

/* 文件面板 */
.dt-file-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}
.dt-file-header h3 {
    font-size: 16px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dt-file-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.dt-file-count {
    font-size: 13px;
    color: #98a2b3;
}
.dt-file-list {
    background: #f9fafb;
    border-radius: 12px;
    padding: 4px;
    min-height: 280px;
    max-height: 520px;
    overflow-y: auto;
}

/* 空状态 */
.dt-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    color: #98a2b3;
    text-align: center;
}
.dt-empty i { font-size: 40px; margin-bottom: 12px; opacity: 0.5; }
.dt-empty p { font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.dt-empty span { font-size: 13px; opacity: 0.8; }

/* 文件项 */
.dt-file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    background: var(--bg-elevated, #fff);
    margin-bottom: 4px;
    transition: box-shadow 0.2s;
}
.dt-file-item:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.dt-file-item:last-child { margin-bottom: 0; }

.dt-file-icon {
    width: 42px; height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.dt-icon-img { background: #e8f4fd; color: #2196f3; }
.dt-icon-pdf { background: #fde8e8; color: #e74c3c; }
.dt-icon-word { background: #e3f2fd; color: #1976d2; }
.dt-icon-excel { background: #e8f5e9; color: #388e3c; }
.dt-icon-zip { background: #fff3e0; color: #f57c00; }
.dt-icon-video { background: #f3e5f5; color: #8e24aa; }
.dt-icon-file { background: #f5f5f5; color: #757575; }

.dt-file-body { flex: 1; min-width: 0; }
.dt-file-name {
    font-size: 14px;
    font-weight: 500;
    color: #344054;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dt-file-meta { font-size: 12px; color: #98a2b3; margin-top: 2px; }

/* 图片预览 */
.dt-file-preview { margin-top: 8px; }
.dt-file-preview img {
    max-width: 120px;
    max-height: 80px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    object-fit: cover;
}

.dt-file-ops { flex-shrink: 0; }
.dt-file-ops .btn {
    width: 34px; height: 34px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
}

/* 响应式 */
@media (max-width: 768px) {
    .dt-layout { flex-direction: column; }
    .dt-qr-panel { flex: none; width: 100%; }
    .dt-qr-card { min-height: auto; padding: 20px 16px; }
    .dt-file-list { max-height: 400px; }
}
/* ═══════════════════════════════════════
   全局 Dark Mode 适配（所有模块）
   ═══════════════════════════════════════ */

/* --- 备忘录 --- */
.maint-body[data-theme="dark"] .memo-card { background: var(--bg-elevated); }
.maint-body[data-theme="dark"] .memo-card:hover { border-color: rgba(255,255,255,0.12); }
.maint-body[data-theme="dark"] .memo-card .memo-field-label { color: var(--text-tertiary); }
.maint-body[data-theme="dark"] .memo-card .memo-field-value { color: var(--text-primary); }
.maint-body[data-theme="dark"] .memo-modal-content { background: var(--bg-secondary); color: var(--text-primary); backdrop-filter: blur(40px); }
.maint-body[data-theme="dark"] .memo-modal-footer { background: var(--gray-100); border-color: var(--border-color); }
.maint-body[data-theme="dark"] .memo-modal-header { border-color: var(--border-color); }
.maint-body[data-theme="dark"] .memo-search input { background: var(--gray-200); color: var(--text-primary); border-color: var(--border-color-strong); }
.maint-body[data-theme="dark"] .memo-search input::placeholder { color: var(--text-tertiary); }
.maint-body[data-theme="dark"] .memo-value-chip { background: var(--gray-200); color: var(--text-primary); }
.maint-body[data-theme="dark"] .memo-field-empty { background: var(--gray-200); color: var(--text-tertiary); }
.maint-body[data-theme="dark"] .memo-field { background: rgba(0,113,227,0.08); border-color: rgba(0,113,227,0.2); }
.maint-body[data-theme="dark"] .memo-field-editor { background: var(--bg-elevated); border-color: var(--border-color-strong); }
.maint-body[data-theme="dark"] .memo-field-label-input { background: var(--gray-200); color: var(--text-primary); }
.maint-body[data-theme="dark"] .memo-field-value-input { background: var(--gray-200); color: var(--text-primary); border-color: var(--border-color-strong); }
.maint-body[data-theme="dark"] .memo-notes { background: rgba(88,86,214,0.12); }
.maint-body[data-theme="dark"] .memo-notes::before { background: var(--bg-elevated); color: var(--secondary-color); }
.maint-body[data-theme="dark"] .memo-empty { background: var(--bg-elevated); border-color: var(--border-color-strong); }

/* --- 表单 --- */
.maint-body[data-theme="dark"] .form-group input,
.maint-body[data-theme="dark"] .form-group textarea,
.maint-body[data-theme="dark"] .form-group select,
.maint-body[data-theme="dark"] .memo-field-select select { background: var(--gray-200); color: var(--text-primary); border-color: var(--border-color-strong); }
.maint-body[data-theme="dark"] .form-group input::placeholder,
.maint-body[data-theme="dark"] .form-group textarea::placeholder { color: var(--text-tertiary); }

/* --- 表格 (全局，含收据/预约/进销存) --- */
.maint-body[data-theme="dark"] table th { background: var(--gray-150); color: var(--text-primary); border-color: var(--border-color); }
.maint-body[data-theme="dark"] table td { border-color: var(--border-color); color: var(--text-primary); }
.maint-body[data-theme="dark"] table tr:hover td { background: var(--gray-150); }

/* --- Alert --- */
.maint-body[data-theme="dark"] .alert { background: var(--bg-elevated); color: var(--text-primary); border-color: var(--border-color); }
.maint-body[data-theme="dark"] .alert-success { background: rgba(48,209,88,0.1); color: #4ade80; border-color: rgba(48,209,88,0.2); }
.maint-body[data-theme="dark"] .alert-danger { background: rgba(255,69,58,0.1); color: #f87171; border-color: rgba(255,69,58,0.2); }
.maint-body[data-theme="dark"] .alert-warning { background: rgba(255,159,10,0.1); color: #fbbf24; border-color: rgba(255,159,10,0.2); }
.maint-body[data-theme="dark"] .alert-info { background: rgba(64,156,255,0.1); color: var(--primary-light); border-color: rgba(64,156,255,0.2); }

/* --- 上传区域 (日志上传/文件中转站) --- */
.maint-body[data-theme="dark"] .upload-area { background: var(--bg-elevated); border-color: var(--border-color-strong); }
.maint-body[data-theme="dark"] .upload-area:hover,
.maint-body[data-theme="dark"] .upload-area.dragover { border-color: var(--primary-color); background: rgba(0,113,227,0.08); }
.maint-body[data-theme="dark"] .upload-progress-container { background: rgba(0,113,227,0.08); border-color: rgba(0,113,227,0.2); }

/* --- 文件列表 (日志/中转站) --- */
.maint-body[data-theme="dark"] .file-item { background: var(--bg-elevated); border-color: var(--border-color); }
.maint-body[data-theme="dark"] .file-item:hover { background: var(--gray-150); border-color: var(--primary-color); }
.maint-body[data-theme="dark"] .bulk-actions { background: var(--bg-secondary); box-shadow: 0 12px 40px rgba(0,0,0,0.5); }

/* --- 统计卡片 (收据/预约/进销存) --- */
.maint-body[data-theme="dark"] .stat-card { background: var(--bg-elevated); border-color: var(--border-color); }

/* --- 机器列表转换 --- */
.maint-body[data-theme="dark"] .mc-hint { color: var(--text-tertiary); }
.maint-body[data-theme="dark"] .mc-input-col label { color: var(--text-primary); }
.maint-body[data-theme="dark"] .mc-input-col textarea { background: var(--gray-200); color: var(--text-primary); border-color: var(--border-color-strong); }
.maint-body[data-theme="dark"] .mc-input-col textarea::placeholder { color: var(--text-tertiary); }
.maint-body[data-theme="dark"] .mc-count { color: var(--text-tertiary); }
.maint-body[data-theme="dark"] .mc-preview-title { color: var(--text-primary); }
.maint-body[data-theme="dark"] .mc-table-scroll { border-color: var(--border-color); }
.maint-body[data-theme="dark"] .mc-table th { background: var(--gray-150); color: var(--text-primary); border-color: var(--border-color); }
.maint-body[data-theme="dark"] .mc-table td { border-color: var(--border-color); color: var(--text-primary); }
.maint-body[data-theme="dark"] .mc-table td:first-child { color: var(--text-tertiary); }
.maint-body[data-theme="dark"] .mc-table tr:hover td { background: var(--gray-150); }
.maint-body[data-theme="dark"] .mc-confirm-bar { background: rgba(48,209,88,0.08); border-color: rgba(48,209,88,0.2); }
.maint-body[data-theme="dark"] .mc-confirm-hint { color: #4ade80; }

/* --- 文档传输助手 --- */
.maint-body[data-theme="dark"] .dt-qr-card { background: var(--bg-elevated); border-color: var(--border-color); }
.maint-body[data-theme="dark"] .dt-qr-img { background: var(--gray-200); }
.maint-body[data-theme="dark"] .dt-qr-hint { color: var(--text-tertiary); }
.maint-body[data-theme="dark"] .dt-file-header h3 { color: var(--text-primary); }
.maint-body[data-theme="dark"] .dt-file-count { color: var(--text-tertiary); }
.maint-body[data-theme="dark"] .dt-file-list { background: var(--gray-100); }
.maint-body[data-theme="dark"] .dt-file-item { background: var(--bg-elevated); }
.maint-body[data-theme="dark"] .dt-file-item:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.maint-body[data-theme="dark"] .dt-file-name { color: var(--text-primary); }
.maint-body[data-theme="dark"] .dt-file-meta { color: var(--text-tertiary); }
.maint-body[data-theme="dark"] .dt-empty { color: var(--text-tertiary); }
.maint-body[data-theme="dark"] .dt-file-preview img { border-color: var(--border-color); }
.maint-body[data-theme="dark"] .dt-timer { background: rgba(64,156,255,0.12); }
.maint-body[data-theme="dark"] .dt-qr-expired { color: #f87171; }
.maint-body[data-theme="dark"] .dt-icon-img { background: rgba(33,150,243,0.15); }
.maint-body[data-theme="dark"] .dt-icon-pdf { background: rgba(231,76,60,0.15); }
.maint-body[data-theme="dark"] .dt-icon-word { background: rgba(25,118,210,0.15); }
.maint-body[data-theme="dark"] .dt-icon-excel { background: rgba(56,142,60,0.15); }
.maint-body[data-theme="dark"] .dt-icon-zip { background: rgba(245,124,0,0.15); }
.maint-body[data-theme="dark"] .dt-icon-video { background: rgba(142,36,170,0.15); }
.maint-body[data-theme="dark"] .dt-icon-file { background: var(--gray-200); }

/* --- 二维码模板 --- */
.maint-body[data-theme="dark"] .qrt-upload-zone { background: var(--bg-elevated); border-color: var(--border-color-strong); }
.maint-body[data-theme="dark"] .qrt-upload-zone:hover { border-color: var(--primary-color); background: rgba(0,113,227,0.06); }
.maint-body[data-theme="dark"] .qrt-upload-placeholder i { color: var(--text-tertiary); }
.maint-body[data-theme="dark"] .qrt-upload-placeholder p { color: var(--text-primary); }
.maint-body[data-theme="dark"] .qrt-upload-placeholder span { color: var(--text-tertiary); }
.maint-body[data-theme="dark"] .qrt-upload-preview img { background: var(--gray-200); border-color: var(--border-color); }
.maint-body[data-theme="dark"] .qrt-a4-scroll { background: var(--gray-150); }
.maint-body[data-theme="dark"] .qrt-preview-title { color: var(--text-primary); }
.maint-body[data-theme="dark"] .qrt-zoom-label { color: var(--text-tertiary); }
.maint-body[data-theme="dark"] .qrt-export-bar { background: var(--bg-elevated); border-color: var(--border-color); }

/* --- 收据管理 --- */
.maint-body[data-theme="dark"] .receipt-edit-card { background: var(--bg-elevated); }
.maint-body[data-theme="dark"] .receipt-edit-table .label { background: var(--gray-150); color: var(--text-primary); }
.maint-body[data-theme="dark"] .receipt-items-table th { background: var(--gray-150); }

/* --- 网关客户端表格 --- */
.maint-body[data-theme="dark"] .gateway-clients-table th { background: rgba(0,113,227,0.1); color: var(--text-primary); }
.maint-body[data-theme="dark"] .gateway-clients-table td { border-color: var(--border-color); }
