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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #f0f2f5;
    color: #333;
    overflow: hidden;
}

.hidden {
    display: none !important;
}

/* 加载页面 */
#loading-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.loading-container {
    text-align: center;
    color: white;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.loading-container p {
    font-size: 16px;
    opacity: 0.9;
}

/* 登录页面 */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.login-container h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #1890ff;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    height: 40px;
}

.form-group {
    flex: 1;
    min-width: 150px;
}

.visitor-item .form-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.visitor-item .form-group {
    flex: 1;
    min-width: 120px;
}

.visitor-item .form-group:last-child {
    flex: 0 0 auto;
    min-width: auto;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #1890ff;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    height: 40px;
    box-sizing: border-box;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-primary {
    background: #1890ff;
    color: white;
}

.btn-primary:hover {
    background: #40a9ff;
}

.btn-small,
.btn-sm {
    padding: 10px 10px;
    font-size: 12px;
    height: 40px;
    box-sizing: border-box;
}

.btn-sm {
    min-width: 50px;
}

.btn-danger {
    background: #ff4d4f;
    color: white;
}

.login-tips {
    margin-top: 30px;
    padding: 15px;
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    border-radius: 4px;
}

.login-tips p {
    font-weight: 500;
    margin-bottom: 10px;
}

.login-tips ul {
    margin-left: 20px;
}

.login-tips li {
    margin: 5px 0;
    color: #666;
}

/* 主页面布局 */
.header {
    background: #001529;
    color: white;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 20px;
    font-weight: 600;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info span {
    color: rgba(255,255,255,0.85);
}

.container {
    display: flex;
    min-height: calc(100vh - 64px);
}

.sidebar {
    width: 200px;
    background: #001529;
    padding: 16px 0;
}

.nav-menu {
    list-style: none;
}

.nav-item {
    padding: 12px 24px;
    color: rgba(255,255,255,0.65);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-item:hover {
    color: white;
    background: #1890ff;
}

.nav-item.active {
    color: white;
    background: #1890ff;
}

.nav-item .icon {
    font-size: 16px;
}

/* 二级菜单样式 */
.nav-item.has-submenu {
    position: relative;
}

.nav-item.has-submenu .arrow {
    margin-left: auto;
    font-size: 10px;
    transition: transform 0.3s;
}

.nav-item.has-submenu.expanded .arrow {
    transform: rotate(180deg);
}

.submenu {
    max-height: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.1);
    transition: max-height 0.3s ease-out;
}

.submenu.show {
    max-height: 300px;
}

.nav-item.sub-item {
    padding: 10px 24px 10px 48px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.nav-item.sub-item:hover {
    color: white;
    background: rgba(24, 144, 255, 0.3);
}

.nav-item.sub-item.active {
    color: white;
    background: #1890ff;
}

.main-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.content-page {
    background: #f0f2f5;
    min-height: 100%;
}

.content-page h2 {
    margin-bottom: 24px;
    color: #262626;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.stat-card h3 {
    color: #8c8c8c;
    font-size: 14px;
    font-weight: normal;
    margin-bottom: 8px;
}

.stat-number {
    font-size: 32px;
    font-weight: 600;
    color: #262626;
}

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

/* 数据表格 */
.data-table {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.data-table th {
    background: #fafafa;
    font-weight: 500;
    color: #262626;
}

.data-table tr:hover {
    background: #fafafa;
}

.data-table .actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* 工单操作按钮样式 */
.data-table td:last-child {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.data-table td:last-child .btn {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
    min-width: 60px;
    text-align: center;
}

.data-table td:last-child .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.data-table td:last-child .btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.data-table td:last-child .btn-primary {
    background: #1890ff;
    color: white;
    border: 1px solid #1890ff;
}

.data-table td:last-child .btn-primary:hover {
    background: #40a9ff;
    border-color: #40a9ff;
}

.data-table td:last-child .btn-default {
    background: #ffffff;
    color: #333;
    border: 1px solid #d9d9d9;
}

.data-table td:last-child .btn-default:hover {
    background: #f0f8ff;
    border-color: #1890ff;
    color: #1890ff;
}

.data-table td:last-child .btn-danger {
    background: #ff4d4f;
    color: white;
    border: 1px solid #ff4d4f;
}

.data-table td:last-child .btn-danger:hover {
    background: #ff7875;
    border-color: #ff7875;
}

.data-table td:last-child .btn-success {
    background: #52c41a;
    color: white;
    border: 1px solid #52c41a;
}

.data-table td:last-child .btn-success:hover {
    background: #73d13d;
    border-color: #73d13d;
}

.data-table td:last-child .btn-warning {
    background: #fa8c16;
    color: white;
    border: 1px solid #fa8c16;
}

.data-table td:last-child .btn-warning:hover {
    background: #ffa940;
    border-color: #ffa940;
}

/* 为查看按钮添加特殊样式 */
.data-table td:last-child .btn-view {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #d9d9d9;
}

.data-table td:last-child .btn-view:hover {
    background: #f0f8ff;
    border-color: #1890ff;
    color: #1890ff;
}

.data-table .checkbox-col {
    width: 40px;
    text-align: center;
    padding: 16px 8px;
}

.data-table .checkbox-col input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* 状态标签 */
.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.status-active {
    background: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.status-inactive {
    background: #fff1f0;
    color: #ff4d4f;
    border: 1px solid #ffa39e;
}

.status-maintenance {
    background: #fff7e6;
    color: #fa8c16;
    border: 1px solid #ffd591;
}

/* 机柜状态 */
.status-idle {
    background: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.status-occupied {
    background: #e6f7ff;
    color: #1890ff;
    border: 1px solid #91d5ff;
}

.status-reserved {
    background: #fff7e6;
    color: #fa8c16;
    border: 1px solid #ffd591;
}

/* 工具栏样式 */
.toolbar {
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-group {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group select,
.filter-group input {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    min-width: 120px;
}

.filter-group input {
    min-width: 200px;
}

.btn-group {
    display: flex;
    gap: 8px;
}

/* 表单样式 */
.form-row {
    display: flex;
    gap: 16px;
}

.form-group.half {
    flex: 1;
}

.form-group .required {
    color: #ff4d4f;
}

.form-hint {
    display: block;
    margin-top: 4px;
    color: #8c8c8c;
    font-size: 12px;
}

.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
    box-sizing: border-box;
}

.form-group input[readonly] {
    background: #f5f5f5;
    cursor: not-allowed;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 16px;
}

.pagination button {
    padding: 6px 12px;
    border: 1px solid #d9d9d9;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination button:hover:not(:disabled) {
    border-color: #1890ff;
    color: #1890ff;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination button.active {
    background: #1890ff;
    color: white;
    border-color: #1890ff;
}

.pagination .page-info {
    color: #8c8c8c;
    font-size: 14px;
}

/* 统一分页组件样式 */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding: 16px;
    flex-wrap: wrap;
}

.pagination-wrapper .page-btn {
    padding: 8px 16px;
    border: 1px solid #d9d9d9;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    color: #595959;
}

.pagination-wrapper .page-btn:hover:not(:disabled) {
    border-color: #1890ff;
    color: #1890ff;
    background: #e6f7ff;
}

.pagination-wrapper .page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
}

.pagination-wrapper .page-info {
    color: #262626;
    font-size: 14px;
    font-weight: 500;
    padding: 0 12px;
}

.pagination-wrapper .page-jump {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
    padding-left: 16px;
    border-left: 1px solid #e8e8e8;
}

.pagination-wrapper .page-jump span {
    color: #595959;
    font-size: 14px;
}

.pagination-wrapper .page-jump input {
    width: 60px;
    padding: 6px 10px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
    color: #262626;
    transition: all 0.3s;
}

.pagination-wrapper .page-jump input:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.pagination-wrapper .page-jump input::-webkit-inner-spin-button,
.pagination-wrapper .page-jump input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pagination-wrapper .page-jump .btn-confirm {
    padding: 8px 16px;
    background: #1890ff;
    color: white;
    border-color: #1890ff;
}

.pagination-wrapper .page-jump .btn-confirm:hover {
    background: #40a9ff;
    border-color: #40a9ff;
}

/* 进度条 */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar .progress-fill {
    height: 100%;
    background: #1890ff;
    border-radius: 4px;
    transition: width 0.3s;
}

.progress-bar .progress-fill.warning {
    background: #fa8c16;
}

.progress-bar .progress-fill.danger {
    background: #ff4d4f;
}

.progress-text {
    font-size: 12px;
    color: #8c8c8c;
    margin-top: 4px;
}

.progress-bar.clickable,
.progress-text.clickable {
    cursor: pointer;
}

.progress-bar.clickable:hover .progress-fill {
    opacity: 0.8;
}

.progress-text.clickable:hover {
    color: #1890ff;
}

/* 模态框 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    box-shadow: 0 12px 48px rgba(0,0,0,0.18);
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modal-content .modal-body {
    flex: 1;
    overflow-y: auto;
    max-height: calc(90vh - 140px);
    padding-right: 8px;
}

.modal-content .modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-content .modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.modal-content .modal-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.modal-content .modal-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.confirm-message {
    padding: 20px 0;
    text-align: center;
}

.confirm-message p {
    margin: 0;
    font-size: 16px;
    color: #333;
    line-height: 1.5;
}

.detail-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-item label {
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.detail-item span {
    font-size: 15px;
    color: #333;
    line-height: 1.4;
}

.visitors-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.visitor-detail {
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #1890ff;
}

.visitor-detail strong {
    display: block;
    margin-bottom: 8px;
    color: #333;
}

.visitor-detail div {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #262626;
}

.modal-header .close {
    font-size: 24px;
    color: #8c8c8c;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-header .close:hover {
    color: #1890ff;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.form-actions .btn {
    min-width: 80px;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.form-actions .btn:hover {
    opacity: 0.85;
}

.form-actions .btn-primary {
    background: #1890ff;
    color: white;
    border: none;
}

.form-actions .btn-primary:hover {
    background: #40a9ff;
}

.form-actions .btn-secondary {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #d9d9d9;
}

.form-actions .btn-secondary:hover {
    background: #f0f0f0;
    border-color: #1890ff;
    color: #1890ff;
}

/* 查看机柜模态框 - 更宽的样式 */
#view-cabinet-modal .modal-content {
    max-width: 800px;
    padding: 20px 24px;
    max-height: none;
}

#view-cabinet-modal .form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

#view-cabinet-modal .form-group.half {
    flex: 1;
    margin-bottom: 0;
}

#view-cabinet-modal .form-group {
    margin-bottom: 12px;
}

#view-cabinet-modal label {
    font-size: 12px;
    color: #8c8c8c;
    margin-bottom: 4px;
    display: block;
}

#view-cabinet-modal input[readonly],
#view-cabinet-modal textarea[readonly] {
    background: #f5f5f5;
    border: 1px solid #d9d9d9;
    color: #262626;
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 4px;
    width: 100%;
    cursor: default;
    height: 32px;
}

#view-cabinet-modal textarea[readonly] {
    resize: none;
    height: 50px;
    min-height: 50px;
}

#view-cabinet-modal h3 {
    font-size: 16px;
    font-weight: 600;
    color: #262626;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

#view-cabinet-modal .form-actions {
    margin-top: 16px;
}

/* 删除确认模态框样式 */
.modal-small {
    max-width: 400px !important;
    padding: 24px !important;
    text-align: center;
}

.modal-small h3 {
    font-size: 16px;
    color: #ff4d4f;
    margin-bottom: 20px;
    border-bottom: none;
}

.confirm-message {
    margin-bottom: 24px;
}

.confirm-message p {
    margin: 8px 0;
    font-size: 14px;
    color: #262626;
}

.confirm-message strong {
    color: #1890ff;
    font-size: 16px;
}

.warning-text {
    color: #ff4d4f !important;
    font-size: 12px !important;
}

.modal-small .form-actions {
    justify-content: center;
    margin-top: 0;
}

.modal-small .form-actions .btn {
    min-width: 100px;
}

/* 成功提示模态框 */
#success-modal h3 {
    color: #52c41a;
}

#success-modal .confirm-message p {
    color: #595959;
}

/* 释放确认模态框 */
#release-confirm-modal h3 {
    color: #1890ff;
}

/* 查看信息网格布局 */
.view-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
    text-align: left;
}

.view-info-item {
    display: flex;
    flex-direction: column;
}

.view-info-item.full-width {
    grid-column: 1 / -1;
}

.view-info-item label {
    font-size: 12px;
    color: #8c8c8c;
    margin-bottom: 4px;
}

.view-info-item span {
    font-size: 14px;
    color: #262626;
    font-weight: 500;
}

/* 楼层管理工具栏 */
.floor-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.floor-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-back {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    background: #1890ff;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-back:hover {
    background: #40a9ff;
    box-shadow: 0 6px 16px rgba(24, 144, 255, 0.4);
    transform: translateY(-1px);
}

.btn-back:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3);
}

.back-icon {
    font-size: 16px;
    color: #fff;
}

.floor-dc-info {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    background: #1890ff;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

.floor-dc-label {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.floor-dc-name {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
}

.plus-icon {
    font-size: 16px;
    font-weight: bold;
}

/* 新建楼层按钮样式 */
.floor-toolbar .btn-primary {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    background: #1890ff;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
    transition: all 0.3s ease;
}

.floor-toolbar .btn-primary:hover {
    background: #40a9ff;
    box-shadow: 0 6px 16px rgba(24, 144, 255, 0.4);
    transform: translateY(-1px);
}

.floor-toolbar .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3);
}

/* 机柜编辑模态框 - 紧凑布局 */
#cabinet-modal .modal-content {
    max-width: 420px;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    max-height: none;
}

#cabinet-modal .modal-header {
    background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
    color: white;
    padding: 20px 24px;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#cabinet-modal .modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

#cabinet-modal .close {
    font-size: 24px;
    color: white;
    opacity: 0.8;
    cursor: pointer;
    transition: all 0.3s;
}

#cabinet-modal .close:hover {
    color: white;
    opacity: 1;
}

#cabinet-modal .modal-body {
    padding: 20px 24px;
}

#cabinet-modal .form-group {
    margin-bottom: 12px;
}

#cabinet-modal label {
    font-size: 13px;
    margin-bottom: 4px;
}

#cabinet-modal input,
#cabinet-modal select,
#cabinet-modal textarea {
    padding: 8px 12px;
    font-size: 13px;
}

#cabinet-modal textarea {
    min-height: 60px;
    resize: none;
}

#cabinet-modal .form-actions {
    margin-top: 16px;
    padding-top: 12px;
}

#cabinet-modal .form-actions .btn {
    padding: 8px 20px;
    font-size: 13px;
}

/* 数据大屏样式 - 科技感深色主题 */
.dashboard-fullscreen {
    position: fixed;
    top: 0;
    left: 200px;
    right: 0;
    bottom: 0;
    z-index: 100;
    padding: 0 !important;
    overflow: hidden;
}

.dashboard-fullscreen .dashboard-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.dashboard-container {
    background: 
        radial-gradient(ellipse at top, rgba(0, 150, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(0, 200, 255, 0.05) 0%, transparent 50%);
    border-radius: 8px;
    overflow: hidden;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: linear-gradient(90deg, 
        rgba(0, 100, 200, 0.1) 0%, 
        rgba(0, 150, 255, 0.2) 50%, 
        rgba(0, 100, 200, 0.1) 100%);
    border: 1px solid rgba(0, 200, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.dashboard-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00c8ff, transparent);
}

.header-left .logo {
    font-size: 20px;
    font-weight: bold;
    color: #00c8ff;
    text-shadow: 0 0 20px rgba(0, 200, 255, 0.5);
}

.header-center {
    text-align: center;
}

.dashboard-header .main-title {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(90deg, #00c8ff, #0099ff, #00c8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 4px;
    margin-bottom: 8px;
}

.dashboard-header .sub-title {
    font-size: 16px;
    color: #00c8ff;
    text-shadow: 0 0 10px rgba(0, 200, 255, 0.3);
}

.header-right {
    text-align: right;
}

.header-right .datetime {
    font-size: 14px;
    color: #00c8ff;
}

.dashboard-main {
    display: flex;
    gap: 20px;
    padding: 20px;
    flex: 1;
    min-height: 0;
}

.dashboard-main .left-panel {
    width: 200px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-shrink: 0;
}

.dashboard-main .stat-card {
    background: linear-gradient(135deg, rgba(0, 50, 100, 0.4) 0%, rgba(0, 30, 60, 0.6) 100%);
    border: 1px solid rgba(0, 200, 255, 0.3);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.dashboard-main .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #00c8ff, #0099ff);
}

.dashboard-main .stat-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 200, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00c8ff;
}

.dashboard-main .stat-icon svg {
    width: 20px;
    height: 20px;
}

.dashboard-main .stat-icon.warning {
    color: #ff9500;
    background: rgba(255, 149, 0, 0.1);
}

.dashboard-main .stat-icon.success {
    color: #00d26a;
    background: rgba(0, 210, 106, 0.1);
}

.dashboard-main .stat-icon.info {
    color: #00c8ff;
    background: rgba(0, 200, 255, 0.1);
}

.dashboard-main .stat-icon.warning {
    color: #faad14;
    background: rgba(250, 173, 20, 0.1);
}

.dashboard-main .stat-icon.purple {
    color: #722ed1;
    background: rgba(114, 46, 209, 0.1);
}

.dashboard-main .stat-icon.orange {
    color: #ff7a45;
    background: rgba(255, 122, 69, 0.1);
}

.dashboard-main .stat-icon.danger {
    color: #ff4d4f;
    background: rgba(255, 77, 79, 0.1);
}

.dashboard-main .stat-icon.gray {
    color: #8c8c8c;
    background: rgba(140, 140, 140, 0.1);
}

.dashboard-main .stat-info {
    flex: 1;
}

.dashboard-main .stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
}

.dashboard-main .stat-value {
    font-size: 22px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 200, 255, 0.3);
}

.dashboard-main .center-panel {
    flex: 1;
    background: linear-gradient(135deg, rgba(0, 30, 60, 0.4) 0%, rgba(0, 20, 40, 0.6) 100%);
    border: 1px solid rgba(0, 200, 255, 0.3);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 0;
}

.dashboard-main .center-panel::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, transparent, rgba(0, 200, 255, 0.1), transparent);
    border-radius: 12px;
    z-index: -1;
}

.dashboard-main .dc-selector {
    margin-bottom: 16px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.dashboard-main .dc-selector select {
    min-width: 160px;
    padding: 10px 16px;
    background: rgba(0, 50, 100, 0.5);
    border: 1px solid rgba(0, 200, 255, 0.5);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300c8ff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* 全屏切换按钮 */
.fullscreen-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(0, 100, 200, 0.8) 0%, rgba(0, 60, 120, 0.9) 100%);
    border: 1px solid rgba(0, 200, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.fullscreen-btn:hover {
    background: linear-gradient(135deg, rgba(0, 150, 255, 0.9) 0%, rgba(0, 100, 200, 1) 100%);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 200, 255, 0.4);
}

.fullscreen-btn svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

/* 全屏状态 */
.dashboard-fullscreen:fullscreen .fullscreen-btn,
.dashboard-fullscreen:-webkit-full-screen .fullscreen-btn {
    bottom: 20px;
    right: 20px;
}

.dashboard-main .dc-selector select:focus {
    border-color: #00c8ff;
    box-shadow: 0 0 15px rgba(0, 200, 255, 0.3);
}

.dashboard-main .dc-selector select option {
    background: #0a0e27;
    color: #fff;
}

/* 楼层选择器特定样式 */
#dashboard-floor-select {
    min-width: 140px;
}

.dashboard-main .legend-bar {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(0, 50, 100, 0.2);
    border-radius: 8px;
}

.dashboard-main .legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.dashboard-main .legend-color {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    box-shadow: 0 0 8px currentColor;
}

.dashboard-main .legend-color.idle {
    background: #00d26a;
    box-shadow: 0 0 8px #00d26a;
}

.dashboard-main .legend-color.occupied {
    background: #ff4757;
    box-shadow: 0 0 8px #ff4757;
}

.dashboard-main .legend-color.reserved {
    background: #ffa502;
    box-shadow: 0 0 8px #ffa502;
}

.dashboard-main .legend-color.maintenance {
    background: #747d8c;
    box-shadow: 0 0 8px #747d8c;
}

.dashboard-main .legend-color.warning {
    background: #ff6348;
    box-shadow: 0 0 8px #ff6348;
}

.dashboard-main .cabinets-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 8px;
    overflow-y: auto;
    padding: 16px;
    background: rgba(0, 20, 40, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(0, 200, 255, 0.2);
}

.dashboard-main .cabinets-grid::-webkit-scrollbar {
    width: 6px;
}

.dashboard-main .cabinets-grid::-webkit-scrollbar-track {
    background: rgba(0, 50, 100, 0.2);
    border-radius: 3px;
}

.dashboard-main .cabinets-grid::-webkit-scrollbar-thumb {
    background: rgba(0, 200, 255, 0.5);
    border-radius: 3px;
}

.dashboard-main .empty-state {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.dashboard-main .cabinet-unit {
    aspect-ratio: 1;
    background: linear-gradient(135deg, rgba(0, 100, 200, 0.3) 0%, rgba(0, 50, 100, 0.5) 100%);
    border: 1px solid rgba(0, 200, 255, 0.3);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.dashboard-main .cabinet-unit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.dashboard-main .cabinet-unit:hover::before {
    opacity: 1;
}

.dashboard-main .cabinet-unit:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 200, 255, 0.3);
}

.dashboard-main .cabinet-unit.idle {
    background: linear-gradient(135deg, rgba(0, 210, 106, 0.2) 0%, rgba(0, 150, 80, 0.4) 100%);
    border-color: rgba(0, 210, 106, 0.5);
    color: #00d26a;
}

.dashboard-main .cabinet-unit.occupied {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.2) 0%, rgba(200, 50, 70, 0.4) 100%);
    border-color: rgba(255, 71, 87, 0.5);
    color: #ff4757;
}

.dashboard-main .cabinet-unit.reserved {
    background: linear-gradient(135deg, rgba(255, 165, 2, 0.2) 0%, rgba(200, 130, 0, 0.4) 100%);
    border-color: rgba(255, 165, 2, 0.5);
    color: #ffa502;
}

.dashboard-main .cabinet-unit.maintenance {
    background: linear-gradient(135deg, rgba(116, 125, 140, 0.2) 0%, rgba(80, 90, 100, 0.4) 100%);
    border-color: rgba(116, 125, 140, 0.5);
    color: #747d8c;
}

.dashboard-main .cabinet-unit.warning {
    background: linear-gradient(135deg, rgba(255, 99, 72, 0.2) 0%, rgba(200, 70, 50, 0.4) 100%);
    border-color: rgba(255, 99, 72, 0.5);
    color: #ff6348;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 5px currentColor;
    }
    50% {
        box-shadow: 0 0 20px currentColor;
    }
}

.dashboard-main .cabinet-no {
    font-size: 10px;
    font-weight: bold;
    margin-bottom: 2px;
}

.dashboard-main .cabinet-status {
    font-size: 8px;
    opacity: 0.8;
}

.dashboard-main .cabinet-tooltip {
    position: fixed;
    background: linear-gradient(135deg, rgba(0, 30, 60, 0.95) 0%, rgba(0, 20, 40, 0.98) 100%);
    border: 1px solid rgba(0, 200, 255, 0.5);
    border-radius: 8px;
    padding: 12px;
    min-width: 180px;
    z-index: 1000;
    display: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.dashboard-main .cabinet-tooltip.show {
    display: block;
}

.dashboard-main .tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 200, 255, 0.3);
}

.dashboard-main .tooltip-title {
    font-size: 13px;
    font-weight: bold;
    color: #00c8ff;
}

.dashboard-main .tooltip-status {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    background: rgba(0, 200, 255, 0.2);
    color: #00c8ff;
}

.dashboard-main .tooltip-row {
    display: flex;
    margin-bottom: 6px;
    font-size: 11px;
}

.dashboard-main .tooltip-label {
    color: rgba(255, 255, 255, 0.6);
    width: 60px;
}

.dashboard-main .tooltip-value {
    color: #fff;
    flex: 1;
}

.dashboard-footer {
    background: linear-gradient(90deg, 
        rgba(0, 50, 100, 0.3) 0%, 
        rgba(0, 80, 150, 0.4) 50%, 
        rgba(0, 50, 100, 0.3) 100%);
    border: 1px solid rgba(0, 200, 255, 0.3);
    padding: 12px 40px;
}

.dashboard-footer .footer-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.dashboard-footer .nav-item {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 13px;
    padding: 6px 16px;
    border-radius: 20px;
    transition: all 0.3s;
    position: relative;
}

.dashboard-footer .nav-item:hover,
.dashboard-footer .nav-item.active {
    color: #00c8ff;
    background: rgba(0, 200, 255, 0.1);
}

.dashboard-footer .nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: #00c8ff;
    box-shadow: 0 0 10px #00c8ff;
}

/* 响应式 */
@media (max-width: 768px) {
    .sidebar {
        width: 80px;
    }
    
    .nav-item span:not(.icon) {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-main {
        flex-direction: column;
    }
    
    .dashboard-main .left-panel {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .dashboard-main .stat-card {
        flex: 1;
        min-width: 140px;
    }
}

/* 楼层编辑模态框样式 */
#floor-modal .modal-content {
    max-width: 500px;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
}

#floor-modal .modal-header {
    background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
    color: white;
    padding: 20px 24px;
    border-bottom: none;
}

#floor-modal .modal-header h3 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

#floor-modal .modal-header .close {
    color: white;
    opacity: 0.8;
    font-size: 24px;
    transition: all 0.3s;
}

#floor-modal .modal-header .close:hover {
    opacity: 1;
    color: white;
}

#floor-modal .modal-body {
    padding: 24px;
    background: white;
}

#floor-modal .form-group {
    margin-bottom: 20px;
}

#floor-modal .form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

#floor-modal .form-group input,
#floor-modal .form-group select,
#floor-modal .form-group textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    transition: all 0.3s;
    box-sizing: border-box;
}

#floor-modal .form-group input:focus,
#floor-modal .form-group select:focus,
#floor-modal .form-group textarea:focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
    outline: none;
}

#floor-modal .form-group textarea {
    resize: vertical;
    min-height: 80px;
}

#floor-modal .form-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #8c8c8c;
}

#floor-modal .form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

#floor-modal .form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

#floor-modal .modal-footer {
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
    padding: 16px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

#floor-modal .modal-footer .btn {
    min-width: 80px;
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.3s;
}

#floor-modal .modal-footer .btn-primary {
    background: #1890ff;
    color: white;
    border: none;
}

#floor-modal .modal-footer .btn-primary:hover {
    background: #40a9ff;
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3);
}

#floor-modal .modal-footer .btn {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #d9d9d9;
}

#floor-modal .modal-footer .btn:hover {
    background: #f0f0f0;
    border-color: #1890ff;
    color: #1890ff;
}

/* 批量创建机柜模态框样式 */
#batch-cabinet-modal .modal-content {
    max-width: 550px;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
}

#batch-cabinet-modal .modal-header {
    background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
    color: white;
    padding: 20px 24px;
    border-bottom: none;
}

#batch-cabinet-modal .modal-header h3 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

#batch-cabinet-modal .modal-header .close {
    color: white;
    opacity: 0.8;
    font-size: 24px;
    transition: all 0.3s;
}

#batch-cabinet-modal .modal-header .close:hover {
    opacity: 1;
    color: white;
}

#batch-cabinet-modal .modal-body {
    padding: 24px;
    background: white;
}

#batch-cabinet-modal .form-group {
    margin-bottom: 20px;
}

#batch-cabinet-modal .form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

#batch-cabinet-modal .form-control {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    transition: all 0.3s;
    box-sizing: border-box;
    height: 40px;
}

#batch-cabinet-modal .form-control:focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
    outline: none;
}

#batch-cabinet-modal .form-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #8c8c8c;
    line-height: 1.4;
}

#batch-cabinet-modal .form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

#batch-cabinet-modal .form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

#batch-cabinet-modal .modal-footer {
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
    padding: 16px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

#batch-cabinet-modal .modal-footer .btn {
    min-width: 80px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s;
}

#batch-cabinet-modal .modal-footer .btn-primary {
    background: #1890ff;
    color: white;
    border: none;
}

#batch-cabinet-modal .modal-footer .btn-primary:hover {
    background: #40a9ff;
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3);
    transform: translateY(-1px);
}

#batch-cabinet-modal .modal-footer .btn {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #d9d9d9;
}

#batch-cabinet-modal .modal-footer .btn:hover {
    background: #f0f0f0;
    border-color: #1890ff;
    color: #1890ff;
    transform: translateY(-1px);
}

/* 设备管理模态框样式 */
#asset-modal .modal-content {
    max-width: 680px;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    max-height: none;
}

#asset-modal .modal-header {
    background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
    color: white;
    padding: 20px 24px;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#asset-modal .modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

#asset-modal .close {
    font-size: 24px;
    color: white;
    opacity: 0.8;
    cursor: pointer;
    transition: all 0.3s;
}

#asset-modal .close:hover {
    color: white;
    opacity: 1;
}

#asset-modal .form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

#asset-modal .form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

#asset-modal .form-group {
    margin-bottom: 16px;
}

#asset-modal label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #262626;
    margin-bottom: 6px;
}

#asset-modal label .required {
    color: #ff4d4f;
    margin-left: 2px;
}

#asset-modal input,
#asset-modal select,
#asset-modal textarea {
    width: 100%;
    padding: 8px 12px;
    font-size: 13px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    transition: all 0.3s;
    box-sizing: border-box;
}

#asset-modal input:focus,
#asset-modal select:focus,
#asset-modal textarea:focus {
    border-color: #40a9ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
    outline: none;
}

#asset-modal input::placeholder {
    color: #bfbfbf;
}

#asset-modal textarea {
    min-height: 80px;
    resize: vertical;
}

#asset-modal .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

#asset-modal .modal-footer .btn {
    min-width: 80px;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

#asset-modal .modal-footer .btn:hover {
    opacity: 0.85;
}

#asset-modal .modal-footer .btn-primary {
    background: #1890ff;
    color: white;
    border: none;
}

#asset-modal .modal-footer .btn-primary:hover {
    background: #40a9ff;
}

/* 设备详情模态框样式 */
#asset-detail-modal .modal-content {
    max-width: 680px;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
}

#asset-detail-modal .modal-header {
    background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
    color: white;
    padding: 20px 24px;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#asset-detail-modal .modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

#asset-detail-modal .close {
    font-size: 24px;
    color: white;
    opacity: 0.8;
    cursor: pointer;
    transition: all 0.3s;
}

#asset-detail-modal .close:hover {
    color: white;
    opacity: 1;
}

#asset-detail-modal .modal-body {
    padding: 24px 28px;
}

/* 访问请求模态框样式 */
#access-request-modal .modal-content {
    max-width: 600px;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
}

#access-request-modal .modal-header {
    background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
    color: white;
    padding: 20px 24px;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#access-request-modal .modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

#access-request-modal .close {
    font-size: 24px;
    color: white;
    opacity: 0.8;
    cursor: pointer;
    transition: all 0.3s;
}

#access-request-modal .close:hover {
    color: white;
    opacity: 1;
}

#access-request-modal .modal-body {
    padding: 24px;
}

/* 人工录入模态框样式 */
#manual-entry-modal .modal-content {
    max-width: 600px;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
}

#manual-entry-modal .modal-header {
    background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
    color: white;
    padding: 20px 24px;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#manual-entry-modal .modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

#manual-entry-modal .close {
    font-size: 24px;
    color: white;
    opacity: 0.8;
    cursor: pointer;
    transition: all 0.3s;
}

#manual-entry-modal .close:hover {
    color: white;
    opacity: 1;
}

#manual-entry-modal .modal-body {
    padding: 24px;
}

/* 编辑入室登记模态框样式 */
#edit-entry-modal .modal-content {
    max-width: 600px;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
}

#edit-entry-modal .modal-header {
    background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
    color: white;
    padding: 20px 24px;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#edit-entry-modal .modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

#edit-entry-modal .close {
    font-size: 24px;
    color: white;
    opacity: 0.8;
    cursor: pointer;
    transition: all 0.3s;
}

#edit-entry-modal .close:hover {
    color: white;
    opacity: 1;
}

#edit-entry-modal .modal-body {
    padding: 24px;
}

/* 编辑入室申请模态框样式 */
#edit-access-request-modal .modal-content {
    max-width: 600px;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
}

#edit-access-request-modal .modal-header {
    background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
    color: white;
    padding: 20px 24px;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#edit-access-request-modal .modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

#edit-access-request-modal .close {
    font-size: 24px;
    color: white;
    opacity: 0.8;
    cursor: pointer;
    transition: all 0.3s;
}

#edit-access-request-modal .close:hover {
    color: white;
    opacity: 1;
}

#edit-access-request-modal .modal-body {
    padding: 24px;
}

#asset-detail-modal .detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 24px;
}

#asset-detail-modal .detail-item {
    display: flex;
    align-items: flex-start;
}

#asset-detail-modal .detail-item.full-width {
    grid-column: 1 / -1;
    flex-direction: column;
}

#asset-detail-modal .detail-label {
    font-size: 13px;
    color: #8c8c8c;
    min-width: 80px;
    flex-shrink: 0;
}

#asset-detail-modal .detail-value {
    font-size: 13px;
    color: #262626;
    flex: 1;
}

#asset-detail-modal .modal-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

/* 故障记录详情模态框样式 */
#fault-record-detail-modal .modal-content {
    max-width: 560px;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
}

#fault-record-detail-modal .modal-header {
    background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
    color: white;
    padding: 20px 24px;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#fault-record-detail-modal .modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

#fault-record-detail-modal .modal-header .close {
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.8;
}

#fault-record-detail-modal .modal-header .close:hover {
    opacity: 1;
}

#fault-record-detail-modal .modal-body {
    padding: 24px;
}

#fault-record-detail-modal .detail-grid {
    display: grid;
    gap: 16px;
}

#fault-record-detail-modal .detail-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#fault-record-detail-modal .detail-row:hover {
    background: #f0f8ff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

#fault-record-detail-modal .detail-label {
    font-weight: 600;
    color: #333;
    min-width: 120px;
    flex-shrink: 0;
}

#fault-record-detail-modal .detail-value {
    flex: 1;
    color: #666;
    word-break: break-word;
}

#fault-record-detail-modal .modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 16px 24px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

#fault-record-detail-modal .modal-footer .btn {
    min-width: 80px;
}

/* 统一的toolbar样式 */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 16px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.filter-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.filter-group select,
.filter-group input {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
}

.filter-group input {
    min-width: 220px;
}

.btn-group {
    display: flex;
    gap: 10px;
}

/* 客户管理样式 */
#customers-page .toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 16px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

#customers-page .filter-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

#customers-page .filter-group select,
#customers-page .filter-group input {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
}

#customers-page .filter-group input {
    min-width: 220px;
}

#customers-page .btn-group {
    display: flex;
    gap: 10px;
}

/* 客户模态框样式 */
#customer-modal .modal-content {
    max-width: 560px;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
}

#customer-modal .modal-header {
    background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
    color: white;
    padding: 20px 24px;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#customer-modal .modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

#customer-modal .close {
    font-size: 24px;
    color: white;
    opacity: 0.8;
    cursor: pointer;
    transition: all 0.3s;
}

#customer-modal .close:hover {
    color: white;
    opacity: 1;
}

#customer-modal .modal-body {
    padding: 24px 28px;
}

#customer-modal .form-group {
    margin-bottom: 16px;
}

#customer-modal .form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #262626;
    font-weight: 500;
}

#customer-modal .form-group label .required {
    color: #ff4d4f;
    margin-left: 2px;
}

#customer-modal input,
#customer-modal select,
#customer-modal textarea {
    width: 100%;
    padding: 8px 12px;
    font-size: 13px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    transition: all 0.3s;
    box-sizing: border-box;
}

#customer-modal input:focus,
#customer-modal select:focus,
#customer-modal textarea:focus {
    border-color: #40a9ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
    outline: none;
}

#customer-modal textarea {
    min-height: 80px;
    resize: vertical;
}

#customer-modal .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

#customer-modal .form-actions .btn {
    min-width: 80px;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

#customer-modal .form-actions .btn-primary {
    background: #1890ff;
    color: white;
    border: none;
}

#customer-modal .form-actions .btn-primary:hover {
    background: #40a9ff;
}

/* 客户详情模态框样式 */
#customer-detail-modal .modal-content {
    max-width: 800px;
    padding: 24px 28px;
}

#customer-detail-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

#customer-detail-modal .modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #262626;
}

/* 客户详情标签页 */
.customer-detail-tabs {
    margin-top: 16px;
}

.customer-detail-tabs .tab-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.customer-detail-tabs .tab-btn {
    padding: 10px 20px;
    font-size: 14px;
    color: #595959;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.customer-detail-tabs .tab-btn:hover {
    color: #1890ff;
}

.customer-detail-tabs .tab-btn.active {
    color: #1890ff;
    border-bottom-color: #1890ff;
    font-weight: 500;
}

.customer-detail-tabs .tab-content {
    min-height: 200px;
}

.customer-detail-tabs .tab-panel {
    display: none;
}

.customer-detail-tabs .tab-panel.active {
    display: block;
}

/* 批量删除设备确认模态框 */
.confirm-modal .modal-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.confirm-modal .modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #262626;
}

/* 删除客户确认模态框 */
#delete-customer-modal .modal-content {
    max-width: 400px;
    padding: 24px;
}

#delete-customer-modal .confirm-message {
    text-align: center;
    margin: 20px 0;
}

#delete-customer-modal .confirm-message p {
    margin: 8px 0;
    font-size: 14px;
    color: #262626;
}

#delete-customer-modal .warning-text {
    color: #ff4d4f;
    font-size: 13px;
}

#delete-customer-modal .form-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

/* 客户状态标签 */
.customer-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.customer-status.active {
    background: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.customer-status.inactive {
    background: #fff2f0;
    color: #ff4d4f;
    border: 1px solid #ffccc7;
}

/* 工单管理样式 */
#work-orders-page .toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 16px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

#work-orders-page .filter-group {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

#work-orders-page .filter-group select,
#work-orders-page .filter-group input {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
}

#work-orders-page .filter-group input {
    min-width: 200px;
}

/* 工单状态标签 */
.wo-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.wo-status.pending {
    background: #fff7e6;
    color: #fa8c16;
    border: 1px solid #ffd591;
}

.wo-status.approved {
    background: #e6f7ff;
    color: #1890ff;
    border: 1px solid #91d5ff;
}

.wo-status.processing {
    background: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.wo-status.completed {
    background: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.wo-status.rejected {
    background: #fff2f0;
    color: #ff4d4f;
    border: 1px solid #ffccc7;
}

.wo-status.cancelled {
    background: #f5f5f5;
    color: #999;
    border: 1px solid #d9d9d9;
}

/* 工单优先级标签 */
.wo-priority {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.wo-priority.low {
    background: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.wo-priority.medium {
    background: #e6f7ff;
    color: #1890ff;
    border: 1px solid #91d5ff;
}

.wo-priority.high {
    background: #fff7e6;
    color: #fa8c16;
    border: 1px solid #ffd591;
}

.wo-priority.urgent {
    background: #fff2f0;
    color: #ff4d4f;
    border: 1px solid #ffccc7;
}

/* 工单类型标签 */
.wo-type {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    background: #f5f5f5;
    color: #666;
    border: 1px solid #d9d9d9;
}

/* 工单详情样式 */
.work-order-detail-content {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 8px;
}

.work-order-detail-content::-webkit-scrollbar {
    width: 6px;
}

.work-order-detail-content::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 3px;
}

.work-order-detail-content::-webkit-scrollbar-thumb {
    background: #d9d9d9;
    border-radius: 3px;
}

.work-order-detail-content::-webkit-scrollbar-thumb:hover {
    background: #1890ff;
}

.work-order-detail-content .detail-section {
    margin-bottom: 24px;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
}

.work-order-detail-content .detail-section h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    color: #262626;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.work-order-detail-content .detail-section h4::before {
    content: '';
    width: 4px;
    height: 16px;
    background: #1890ff;
    border-radius: 2px;
}

/* 工单详情网格布局 */
.work-order-detail-content .detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.work-order-detail-content .detail-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.work-order-detail-content .detail-item label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.work-order-detail-content .detail-item label::after {
    content: ':';
    color: #999;
}

.work-order-detail-content .detail-item span {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    word-break: break-word;
    padding: 12px 16px;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #e8e8e8;
    height: 48px;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

/* 移除工单详情页面中状态和优先级标签的背景和边框 */
.work-order-detail-content .detail-item span .wo-status,
.work-order-detail-content .detail-item span .wo-priority {
    background: none;
    border: none;
    padding: 0;
    font-size: 14px;
    font-weight: 500;
}

.work-order-detail-content .detail-item span:hover {
    border-color: #1890ff;
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.1);
}

.work-order-detail-content .detail-item.full-width {
    grid-column: 1 / -1;
}

.work-order-detail-content .detail-item.full-width span {
    min-height: 100px;
    align-items: flex-start;
    padding: 16px;
}

/* 确保所有详情项高度一致 */
.work-order-detail-content .detail-item {
    min-height: 80px;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .work-order-detail-content .detail-grid {
        grid-template-columns: 1fr;
    }
    
    #work-order-detail-modal .modal-content {
        max-width: 95vw;
        max-height: 90vh;
    }
}

/* 模态框大尺寸样式 */
#work-order-detail-modal .modal-content {
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#work-order-detail-modal .modal-content .work-order-detail-content {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
}

/* 操作按钮样式 */
#wo-detail-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

#wo-detail-actions .btn {
    min-width: 80px;
    padding: 8px 20px;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.3s;
}

#wo-detail-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* 工单模态框样式 */
#work-order-modal .modal-content {
    max-width: 720px;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
}

#work-order-modal .modal-header {
    background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
    color: white;
    padding: 20px 24px;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#work-order-modal .modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

#work-order-modal .close {
    font-size: 24px;
    color: white;
    opacity: 0.8;
    cursor: pointer;
    transition: all 0.3s;
}

#work-order-modal .close:hover {
    color: white;
    opacity: 1;
}

#work-order-modal .modal-body {
    padding: 24px 28px;
}

/* 保持工单详情模态框的特殊样式 */
#work-order-detail-modal .modal-content {
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 24px 28px;
}

#work-order-modal .form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

#work-order-modal .form-group.half {
    flex: 1;
}

#work-order-modal .form-group {
    margin-bottom: 20px;
}

#work-order-modal .form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

#work-order-modal .form-group label .required {
    color: #ff4d4f;
    margin-left: 4px;
}

#work-order-modal input,
#work-order-modal select,
#work-order-modal textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    transition: all 0.3s;
    box-sizing: border-box;
    background: white;
}

#work-order-modal input:focus,
#work-order-modal select:focus,
#work-order-modal textarea:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

#work-order-modal textarea {
    min-height: 100px;
    resize: vertical;
    padding: 12px 14px;
}

#work-order-modal .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

#work-order-modal .form-actions .btn {
    padding: 10px 24px;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.3s;
    cursor: pointer;
}

#work-order-modal .form-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#work-order-modal .form-actions .btn-primary {
    background: #1890ff;
    border: 1px solid #1890ff;
    color: white;
}

#work-order-modal .form-actions .btn-primary:hover {
    background: #40a9ff;
    border-color: #40a9ff;
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3);
}

/* 响应式调整 */
@media (max-width: 768px) {
    #work-order-modal .modal-content {
        max-width: 95%;
        margin: 20px auto;
    }
    
    #work-order-modal .form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    #work-order-modal .form-group.half {
        width: 100%;
    }
}

/* 客户模态框样式 */
#customer-modal .modal-content {
    max-width: 600px;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
}

#customer-modal .modal-header {
    background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
    color: white;
    padding: 20px 24px;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#customer-modal .modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

#customer-modal .modal-header .close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 28px;
    line-height: 1;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

#customer-modal .modal-header .close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

#customer-modal .modal-body {
    padding: 24px;
    max-height: 70vh;
    overflow-y: auto;
}

#customer-modal .form-group {
    margin-bottom: 20px;
}

#customer-modal .form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

#customer-modal .form-group label .required {
    color: #ff4d4f;
    margin-left: 4px;
}

#customer-modal .form-group input,
#customer-modal .form-group select,
#customer-modal .form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
    font-family: inherit;
}

#customer-modal .form-group input:focus,
#customer-modal .form-group select:focus,
#customer-modal .form-group textarea:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
}

#customer-modal .form-group textarea {
    resize: vertical;
    min-height: 80px;
}

#customer-modal .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

#customer-modal .form-actions .btn {
    padding: 10px 24px;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.3s;
    cursor: pointer;
}

#customer-modal .form-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#customer-modal .form-actions .btn-primary {
    background: #1890ff;
    border: 1px solid #1890ff;
    color: white;
}

#customer-modal .form-actions .btn-primary:hover {
    background: #40a9ff;
    border-color: #40a9ff;
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3);
}

#customer-modal .form-actions .btn:not(.btn-primary) {
    background: white;
    border: 1px solid #d9d9d9;
    color: #333;
}

#customer-modal .form-actions .btn:not(.btn-primary):hover {
    border-color: #1890ff;
    color: #1890ff;
}

/* 报备记录模态框样式 */
#access-record-modal .modal-content {
    max-width: 550px;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
}

#access-record-modal .modal-header {
    background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
    color: white;
    padding: 20px 24px;
    border-bottom: none;
}

#access-record-modal .modal-header h3 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

#access-record-modal .modal-header .close {
    color: white;
    opacity: 0.8;
    font-size: 24px;
    transition: all 0.3s;
}

#access-record-modal .modal-header .close:hover {
    opacity: 1;
    color: white;
}

#access-record-modal .modal-body {
    padding: 24px;
    background: white;
}

#access-record-modal .form-group {
    margin-bottom: 20px;
}

#access-record-modal .form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

#access-record-modal .form-control {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    transition: all 0.3s;
    box-sizing: border-box;
    height: 40px;
}

#access-record-modal .form-control:focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
    outline: none;
}

#access-record-modal textarea.form-control {
    height: auto;
    min-height: 80px;
    resize: vertical;
}

#access-record-modal .form-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #8c8c8c;
    line-height: 1.4;
}

#access-record-modal .form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

#access-record-modal .form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

#access-record-modal .modal-footer {
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
    padding: 16px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

#access-record-modal .modal-footer .btn {
    padding: 10px 24px;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.3s;
    cursor: pointer;
}

#access-record-modal .modal-footer .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#access-record-modal .modal-footer .btn-primary {
    background: #1890ff;
    border: 1px solid #1890ff;
    color: white;
}

#access-record-modal .modal-footer .btn-primary:hover {
    background: #40a9ff;
    border-color: #40a9ff;
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3);
}

#access-record-modal .modal-footer .btn:not(.btn-primary) {
    background: white;
    border: 1px solid #d9d9d9;
    color: #333;
}

#access-record-modal .modal-footer .btn:not(.btn-primary):hover {
    border-color: #1890ff;
    color: #1890ff;
}

/* 从入室报备导入模态框样式 */
#import-access-request-modal .modal-content {
    max-width: 550px;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
}

#import-access-request-modal .modal-header {
    background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
    color: white;
    padding: 20px 24px;
    border-bottom: none;
}

#import-access-request-modal .modal-header h3 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

#import-access-request-modal .modal-header .close {
    color: white;
    opacity: 0.8;
    font-size: 24px;
    transition: all 0.3s;
}

#import-access-request-modal .modal-header .close:hover {
    opacity: 1;
    color: white;
}

#import-access-request-modal .modal-body {
    padding: 24px;
    background: white;
}

#import-access-request-modal .form-group {
    margin-bottom: 20px;
}

#import-access-request-modal .form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

#import-access-request-modal .form-control {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    transition: all 0.3s;
    box-sizing: border-box;
    height: 40px;
}

#import-access-request-modal .form-control:focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
    outline: none;
}

#import-access-request-modal .form-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #8c8c8c;
    line-height: 1.4;
}

#import-access-request-modal .modal-footer {
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
    padding: 16px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

#import-access-request-modal .modal-footer .btn {
    padding: 10px 24px;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.3s;
    cursor: pointer;
}

#import-access-request-modal .modal-footer .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#import-access-request-modal .modal-footer .btn-success {
    background: #52c41a;
    border: 1px solid #52c41a;
    color: white;
}

#import-access-request-modal .modal-footer .btn-success:hover {
    background: #73d13d;
    border-color: #73d13d;
    box-shadow: 0 2px 8px rgba(82, 196, 26, 0.3);
}

#import-access-request-modal .modal-footer .btn:not(.btn-success) {
    background: white;
    border: 1px solid #d9d9d9;
    color: #333;
}

#import-access-request-modal .modal-footer .btn:not(.btn-success):hover {
    border-color: #1890ff;
    color: #1890ff;
}
