* {
    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;
}

/* 访客行样式 */
.visitor-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    padding: 10px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    margin-bottom: 10px;
}

.visitor-row .form-group.third {
    flex: 1;
    min-width: 0;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
    height: 32px;
}

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

.btn-secondary:hover {
    background-color: #e8e8e8;
}

/* 可搜索下拉框样式 */
.searchable-select {
    position: relative;
    width: 100%;
}

.searchable-select .custom-select-trigger {
    width: 100%;
    padding: 10px 30px 10px 10px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    background: white;
    cursor: pointer;
    text-align: left;
    position: relative;
    appearance: none;
    display: block;
    height: 40px;
}

.searchable-select .custom-select-trigger::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #999;
    pointer-events: none;
}

.searchable-select .custom-select-trigger:focus {
    outline: none;
    border-color: #1890ff;
}

.searchable-select .custom-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border: 1px solid #d9d9d9;
    border-radius: 0 0 4px 4px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 100;
    display: none;
    max-height: 250px;
    overflow: hidden;
    margin-top: -1px;
}

.searchable-select.active .custom-dropdown {
    display: block;
}

.searchable-select .dropdown-search {
    width: 100%;
    padding: 8px 10px;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    box-sizing: border-box;
}

.searchable-select .dropdown-search:focus {
    outline: none;
}

.searchable-select .dropdown-options {
    max-height: 200px;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    list-style: none;
}

.searchable-select .dropdown-option {
    padding: 8px 10px;
    cursor: pointer;
    font-size: 14px;
}

.searchable-select .dropdown-option:hover {
    background: #f5f5f5;
}

.searchable-select .dropdown-option.selected {
    background: #e6f7ff;
    color: #1890ff;
}

.searchable-select .dropdown-option.hidden {
    display: none;
}

.searchable-select .native-select {
    display: none;
}

.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;
    height: calc(100vh - 64px);
    overflow: hidden;
}

.sidebar {
    width: 200px;
    background: #001529;
    padding: 16px 0;
    height: 100%;
    overflow-y: auto;
}

.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;
    min-height: 0;
    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;
}

.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 {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    vertical-align: middle;
}

.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-normal,
.status-success {
    background: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

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

.status-resolved,
.status-warning {
    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;
}

/* 模块管理工具栏 */
.module-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;
}

.module-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;
}

.module-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);
}

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

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

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

/* 新建模块按钮样式 */
.module-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;
}

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

.module-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;
    display: flex;
    flex-direction: column;
}

.dashboard-fullscreen .header {
    flex-shrink: 0;
}

.dashboard-fullscreen .dashboard-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.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: 130px;
    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-module-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(26, 1fr);
    grid-auto-rows: minmax(40px, 60px);
    gap: 15px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 16px;
    background: rgba(0, 20, 40, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(0, 200, 255, 0.2);
    width: 100%;
}

.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-group-break {
    visibility: hidden;
    flex-shrink: 0;
}

/* 强制换行元素 */
.dashboard-main .cabinet-group-newline {
    grid-column: 1 / -1;
    height: 0;
    margin: 0;
    padding: 0;
    border: none;
}

/* 立柱样式 - 与机柜区分开的独特设计 */
.dashboard-main .cabinet-pillar {
    aspect-ratio: 1;
    background: linear-gradient(180deg, rgba(100, 50, 150, 0.4) 0%, rgba(60, 30, 100, 0.6) 100%);
    border: 2px solid rgba(150, 100, 255, 0.5);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: default;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    background-image: 
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, transparent calc(50% - 1px), rgba(150, 100, 255, 0.3) calc(50% - 1px), rgba(150, 100, 255, 0.3) calc(50% + 1px), transparent calc(50% + 1px));
    background-size: 10px 100%, 100% 100%;
}

.dashboard-main .cabinet-pillar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(150, 100, 255, 0.8), transparent);
}

.dashboard-main .cabinet-pillar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(150, 100, 255, 0.8), transparent);
}

.dashboard-main .cabinet-pillar:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(150, 100, 255, 0.4);
    border-color: rgba(180, 130, 255, 0.7);
}

.dashboard-main .cabinet-pillar .pillar-name {
    font-size: 10px;
    font-weight: bold;
    color: rgba(180, 150, 255, 0.9);
    text-align: center;
    writing-mode: horizontal-tb;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(150, 100, 255, 0.5);
}

.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;
    }
}

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

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

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

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

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

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

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

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

#module-modal .form-group input,
#module-modal .form-group select,
#module-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;
}

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

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

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

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

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

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

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

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

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

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

#module-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;
}

/* 巡检设置页面样式 */
.settings-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.settings-tab {
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.settings-tab:hover {
    background: #f0f7ff;
    color: #1890ff;
}

.settings-tab.active {
    background: #1890ff;
    color: white;
}

.settings-tab-content {
    display: block;
}

.settings-tab-content.hidden {
    display: none;
}

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

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

/* 机房配置按钮样式 */
.room-config-btn {
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
    white-space: nowrap;
}

.room-config-btn:hover {
    background: linear-gradient(135deg, #40a9ff 0%, #1890ff 100%);
    box-shadow: 0 6px 16px rgba(24, 144, 255, 0.4);
    transform: translateY(-2px);
}

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

/* 机房配置输入框样式 */
#room-name-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
}

#room-name-input:focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
}

/* 温湿度设置表格样式 */
.temp-humidity-table {
    width: 100%;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    overflow: hidden;
}

.temp-humidity-table .table-header {
    display: flex;
    background: #69c0ff;
    color: white;
    font-weight: 600;
}

.temp-humidity-table .table-row {
    display: flex;
    border-bottom: 1px solid #e8e8e8;
}

.temp-humidity-table .table-row:last-child {
    border-bottom: none;
}

.temp-humidity-table .th,
.temp-humidity-table .td {
    flex: 1;
    padding: 12px;
    text-align: center;
    min-width: 80px;
}

.temp-humidity-table .th:first-child,
.temp-humidity-table .td:first-child {
    flex: 2;
    min-width: 200px;
}

.temp-humidity-table .td.label-cell {
    background: #fafafa;
    text-align: left;
}

.temp-humidity-table .label-text {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

.temp-humidity-table .temp-input,
.temp-humidity-table .humidity-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    text-align: center;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.temp-humidity-table .temp-input:focus,
.temp-humidity-table .humidity-input:focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.temp-humidity-table .temp-input::placeholder,
.temp-humidity-table .humidity-input::placeholder {
    color: #bfbfbf;
}

/* 温湿度保存按钮样式 */
.temp-humidity-save-btn {
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 40px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

.temp-humidity-save-btn:hover {
    background: linear-gradient(135deg, #40a9ff 0%, #1890ff 100%);
    box-shadow: 0 6px 16px rgba(24, 144, 255, 0.4);
    transform: translateY(-2px);
}

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

/* 卡片头部样式 */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

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

/* 添加机房按钮 */
.add-room-btn {
    background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(82, 196, 26, 0.3);
}

.add-room-btn:hover {
    background: linear-gradient(135deg, #73d13d 0%, #52c41a 100%);
    box-shadow: 0 4px 12px rgba(82, 196, 26, 0.4);
}

/* 机房区域样式 */
.room-section {
    background: #fafafa;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid #e8e8e8;
}

/* 机房头部 */
.room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8e8e8;
}

.room-name-row {
    flex: 1;
    margin-right: 12px;
}

.room-name-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    background: white;
    outline: none;
    transition: all 0.3s ease;
}

.room-name-input:focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.room-name-input::placeholder {
    color: #bfbfbf;
    font-weight: normal;
}

/* 删除机房按钮 */
.remove-room-btn {
    background: #fff2f0;
    color: #ff4d4f;
    border: 1px solid #ffccc7;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.remove-room-btn:hover {
    background: #ffccc7;
    border-color: #ff4d4f;
}

#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;
}

/* 设备上架模态框样式 */
#mount-asset-modal .modal-content {
    max-width: 600px;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
}

#mount-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;
}

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

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

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

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

/* 用户管理编辑模态框样式 */
#user-modal .modal-content {
    max-width: 600px;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
}

#user-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;
}

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

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

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

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

/* 重置密码模态框样式 */
#reset-password-modal .modal-content {
    max-width: 400px;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
}

#reset-password-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;
}

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

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

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

#reset-password-modal .modal-body {
    padding: 24px;
}

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

#fault-record-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-modal .modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

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

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

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

/* 设备下架模态框样式 */
#unmount-asset-modal .modal-content {
    max-width: 600px;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
}

#unmount-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;
}

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

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

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

#unmount-asset-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;
}

/* 上下架记录详情模态框样式 */
#asset-rack-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;
}

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

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

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

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

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

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

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

/* 完成工单模态框蓝色头部 */
#complete-wo-modal .modal-header {
    background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
    color: white;
    padding: 20px 24px;
    border-bottom: none;
}

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

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

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

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

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

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

#asset-rack-record-detail-modal .modal-footer .btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#asset-rack-record-detail-modal .modal-footer .btn:hover {
    opacity: 0.8;
}

#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;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 24px 28px;
    padding-bottom: 80px;
    position: relative;
}

#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-modal .form-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 28px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    box-sizing: border-box;
}

/* 客户详情标签页 */
.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;
    max-height: calc(80vh - 200px);
    overflow-y: auto;
    flex: 1;
    padding-bottom: 20px;
}

.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;
}

/* ========== 出入库管理样式 ========== */

/* 标签页样式 */
.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

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

.tabs .tab:hover {
    color: #1890ff;
}

.tabs .tab.active {
    color: #1890ff;
    border-bottom-color: #1890ff;
}

.tab-panel {
    display: block;
}

.tab-panel.hidden {
    display: none !important;
}

/* 库存状态样式 */
.status-normal {
    background: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

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

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

.status-disabled {
    background: #f5f5f5;
    color: #bfbfbf;
    border: 1px solid #d9d9d9;
}

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

/* 按钮样式扩展 */
.btn-view {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #d9d9d9;
}

.btn-view:hover {
    background: #e8e8e8;
}

.btn-success {
    background: #52c41a;
    color: white;
    border: 1px solid #52c41a;
}

.btn-success:hover {
    background: #73d13d;
    border-color: #73d13d;
}

.btn-warning {
    background: #faad14;
    color: white;
    border: 1px solid #faad14;
}

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

/* 详情模态框样式 */
.detail-modal .modal-content {
    max-width: 500px;
}

.detail-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-row {
    display: flex;
    padding: 12px;
    background: #fafafa;
    border-radius: 4px;
}

.detail-label {
    width: 100px;
    font-weight: 500;
    color: #8c8c8c;
    flex-shrink: 0;
}

.detail-value {
    flex: 1;
    color: #333;
}

/* 巡检页面样式 */
.inspection-form {
    max-width: 100%;
}

.inspection-form .card {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
}

.inspection-form .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px 8px 0 0 !important;
}

.inspection-form .card-header h4 {
    margin: 0;
    font-size: 16px;
}

.inspection-form .card-body {
    padding: 20px;
}

.inspection-form .form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.inspection-form .form-label {
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
}

.inspection-form .form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.inspection-form .form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.inspection-form .form-control::placeholder {
    color: #aaa;
}

.table-inspection {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table-inspection th,
.table-inspection td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e8e8e8;
}

.table-inspection th {
    background: #fafafa;
    font-weight: 600;
    color: #555;
}

.table-inspection tbody tr:hover {
    background: #f9f9f9;
}

/* 检查项表格固定布局 */
.table-inspection.check-items {
    table-layout: fixed;
}

/* 检查项表格列宽度（与温湿度表格对齐） */
.table-inspection.check-items tbody td:nth-child(1) {
    width: 3%;
    min-width: 30px;
}
.table-inspection.check-items tbody td:nth-child(2) {
    width: 28%;
}
.table-inspection.check-items tbody td:nth-child(3),
.table-inspection.check-items tbody td:nth-child(4),
.table-inspection.check-items tbody td:nth-child(5),
.table-inspection.check-items tbody td:nth-child(6),
.table-inspection.check-items tbody td:nth-child(7),
.table-inspection.check-items tbody td:nth-child(8),
.table-inspection.check-items tbody td:nth-child(9),
.table-inspection.check-items tbody td:nth-child(10) {
    width: 8.625%;
}

/* 检查项表格头部对齐 */
.table-inspection.check-items thead th:nth-child(1) {
    width: 3%;
    min-width: 30px;
}
.table-inspection.check-items thead th:nth-child(2) {
    width: 28%;
}
.table-inspection.check-items thead th:nth-child(3),
.table-inspection.check-items thead th:nth-child(4),
.table-inspection.check-items thead th:nth-child(5),
.table-inspection.check-items thead th:nth-child(6),
.table-inspection.check-items thead th:nth-child(7),
.table-inspection.check-items thead th:nth-child(8),
.table-inspection.check-items thead th:nth-child(9),
.table-inspection.check-items thead th:nth-child(10) {
    width: 8.625%;
}

/* 温湿度表格列宽度（与检查项表格对齐） */
/* 温湿度表格样式 */
.table-inspection.humidity-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    table-layout: fixed;
}

.table-inspection.humidity-table thead th {
    background: linear-gradient(135deg, #69c0ff 0%, #1890ff 100%);
    color: white;
    font-weight: 600;
    padding: 12px 8px;
    text-align: center;
    border: none;
}

/* 温湿度表格列宽度 - 与检查项表格对齐（10列结构） */
.table-inspection.humidity-table thead th:nth-child(1),
.table-inspection.humidity-table tbody td:nth-child(1) {
    width: 3%;
    min-width: 30px;
    text-align: center;
}

.table-inspection.humidity-table thead th:nth-child(2),
.table-inspection.humidity-table tbody td:nth-child(2) {
    width: 28%;
    text-align: left;
    padding-left: 16px;
}

.table-inspection.humidity-table thead th:nth-child(3),
.table-inspection.humidity-table thead th:nth-child(4),
.table-inspection.humidity-table thead th:nth-child(5),
.table-inspection.humidity-table thead th:nth-child(6),
.table-inspection.humidity-table thead th:nth-child(7),
.table-inspection.humidity-table thead th:nth-child(8),
.table-inspection.humidity-table thead th:nth-child(9),
.table-inspection.humidity-table thead th:nth-child(10),
.table-inspection.humidity-table tbody td:nth-child(3),
.table-inspection.humidity-table tbody td:nth-child(4),
.table-inspection.humidity-table tbody td:nth-child(5),
.table-inspection.humidity-table tbody td:nth-child(6),
.table-inspection.humidity-table tbody td:nth-child(7),
.table-inspection.humidity-table tbody td:nth-child(8),
.table-inspection.humidity-table tbody td:nth-child(9),
.table-inspection.humidity-table tbody td:nth-child(10) {
    width: 8.625%;
    text-align: center;
}

.table-inspection.humidity-table th,
.table-inspection.humidity-table td {
    padding: 12px 4px;
    border-bottom: 1px solid #e8e8e8;
}

.table-inspection.humidity-table tbody tr:nth-child(odd) {
    background: #fafafa;
}

.table-inspection.humidity-table tbody tr:nth-child(even) {
    background: #ffffff;
}

.table-inspection.humidity-table tbody tr:hover {
    background: #f0f8ff;
}

.table-inspection.humidity-table td:first-child {
    text-align: left;
    padding-left: 16px;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.table-inspection.humidity-table .form-control {
    width: 100%;
    min-width: 60px;
    max-width: 80px;
    padding: 8px 10px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 13px;
    text-align: center;
    background: white;
    transition: all 0.3s ease;
    outline: none;
}

.table-inspection.humidity-table .form-control:focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.table-inspection.humidity-table .form-control::placeholder {
    color: #bfbfbf;
}

/* 温湿度表格头部样式 */
.humidity-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #69c0ff 0%, #1890ff 100%);
    padding: 12px 16px;
    color: white;
    font-weight: 600;
    border-radius: 8px 8px 0 0;
}

.humidity-table-header .room-title {
    font-size: 15px;
}

.humidity-table-header .section-title {
    font-size: 13px;
    opacity: 0.9;
}

/* 固定表头样式 */
.table-inspection.humidity-table-header-fixed {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    margin-bottom: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.table-inspection.humidity-table-header-fixed thead th {
    background: linear-gradient(135deg, #69c0ff 0%, #1890ff 100%);
    color: white;
    font-weight: 600;
    padding: 14px 12px;
    text-align: center;
    border: none;
    font-size: 14px;
}

.table-inspection.humidity-table-header-fixed thead th:first-child {
    text-align: left;
    padding-left: 16px;
}

/* 温湿度数据容器 */
#inspection-humidity-data {
    border: 1px solid #e8e8e8;
    border-top: none;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

/* 机房分组区域 */
.humidity-room-section {
    background: #ffffff;
}

/* 机房名称行 */
.humidity-room-name-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #e6f7ff 0%, #b3dfff 100%);
    padding: 10px 16px;
    border-bottom: 1px solid #d9d9d9;
}

.humidity-room-name-row .room-name-label {
    font-size: 15px;
    font-weight: 600;
    color: #1890ff;
}

.humidity-room-name-row .room-section-label {
    font-size: 13px;
    color: #666;
}

/* 温湿度数据表格 */
.table-inspection.humidity-table-data {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
    table-layout: fixed;
}

.table-inspection.humidity-table-data td {
    padding: 12px 4px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

/* 温湿度表格列宽度 - 与检查项表格对齐（10列结构） */
.table-inspection.humidity-table-data td:nth-child(1) {
    width: 3%;
    min-width: 30px;
    text-align: center;
}

.table-inspection.humidity-table-data td:nth-child(2) {
    width: 28%;
    text-align: left;
    padding-left: 16px;
}

.table-inspection.humidity-table-data td:nth-child(3),
.table-inspection.humidity-table-data td:nth-child(4),
.table-inspection.humidity-table-data td:nth-child(5),
.table-inspection.humidity-table-data td:nth-child(6),
.table-inspection.humidity-table-data td:nth-child(7),
.table-inspection.humidity-table-data td:nth-child(8),
.table-inspection.humidity-table-data td:nth-child(9),
.table-inspection.humidity-table-data td:nth-child(10) {
    width: 8.625%;
    text-align: center;
}

.table-inspection.humidity-table-data tbody tr:nth-child(odd) {
    background: #fafafa;
}

.table-inspection.humidity-table-data tbody tr:nth-child(even) {
    background: #ffffff;
}

.table-inspection.humidity-table-data .form-control {
    width: 100%;
    min-width: 60px;
    max-width: 80px;
    padding: 8px 10px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 13px;
    text-align: center;
    background: white;
    transition: all 0.3s ease;
    outline: none;
}

.table-inspection.humidity-table-data .form-control:focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.table-inspection.humidity-table-data .form-control::placeholder {
    color: #bfbfbf;
}

/* 机房分隔线 */
.humidity-room-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #d9d9d9, transparent);
    margin: 4px 0;
}

/* 检查按钮样式 */
.check-btn {
    width: 32px;
    height: 28px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
}

.check-btn.normal-btn {
    background: #f6ffed;
    color: #52c41a;
    border-color: #b7eb8f;
}

.check-btn.normal-btn:hover,
.check-btn.normal-btn.active {
    background: #52c41a;
    color: #fff;
    border-color: #52c41a;
}

.check-btn.abnormal-btn {
    background: #fff2f0;
    color: #ff4d4f;
    border-color: #ffccc7;
}

.check-btn.abnormal-btn:hover,
.check-btn.abnormal-btn.active {
    background: #ff4d4f;
    color: #fff;
    border-color: #ff4d4f;
}

/* 按时间点一键正常按钮样式 */
.check-all-btn {
    background: white;
    border: 2px solid #1890ff;
    color: #1890ff;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.check-all-btn:hover {
    background-color: #e6f7ff;
}

.check-all-btn.active {
    background: #1890ff;
    color: white;
    border-color: #1890ff;
}

.check-cell {
    display: flex;
    gap: 4px;
    justify-content: center;
    align-items: center;
}

.table-inspection .btn-group .btn {
    flex: 1;
    min-width: 60px;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-check:checked + .btn-outline-success,
.btn-check:active + .btn-outline-success {
    background-color: #52c41a;
    border-color: #52c41a;
    color: white;
}

.btn-check:checked + .btn-outline-danger,
.btn-check:active + .btn-outline-danger {
    background-color: #ff4d4f;
    border-color: #ff4d4f;
    color: white;
}

.btn-check:checked + .btn-outline-success:hover,
.btn-check:active + .btn-outline-success:hover {
    background-color: #73d13d;
    border-color: #73d13d;
}

.btn-check:checked + .btn-outline-danger:hover,
.btn-check:active + .btn-outline-danger:hover {
    background-color: #ff7875;
    border-color: #ff7875;
}

.page-header {
    margin-bottom: 24px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-header h3 {
    margin: 0 0 4px 0;
    color: #333;
}

.page-header .text-muted {
    color: #999;
    font-size: 14px;
}

.temp-input,
.humidity-input {
    max-width: 120px;
}

/* 检查单元格样式 */
.check-cell {
    display: flex;
    gap: 4px;
    justify-content: center;
    align-items: center;
}

.check-cell input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #52c41a;
}

.check-cell input[type="radio"]:nth-child(2) {
    accent-color: #ff4d4f;
}

@media (max-width: 768px) {
    .inspection-form .card-body {
        padding: 12px;
    }
    
    .table-inspection th,
    .table-inspection td {
        padding: 8px;
        font-size: 12px;
    }
    
    .table-inspection .btn-group .btn {
        min-width: 50px;
        padding: 2px 4px;
        font-size: 10px;
    }
    
    .page-header {
        padding: 12px;
    }
    
    .page-header h3 {
        font-size: 18px;
    }
}

/* ========== 巡检记录页面样式 ========== */

#inspection-records-page .inspection-records-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

#inspection-records-page .inspection-records-header h2 {
    margin: 0;
    color: #262626;
}

#inspection-records-page .inspection-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

#inspection-records-page .inspection-summary-card {
    background: #fff;
    border-radius: 8px;
    padding: 18px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

#inspection-records-page .inspection-summary-card span {
    display: block;
    color: #8c8c8c;
    font-size: 13px;
    margin-bottom: 8px;
}

#inspection-records-page .inspection-summary-card strong {
    display: block;
    color: #262626;
    font-size: 28px;
    line-height: 1;
}

#inspection-records-page .btn-back {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #1890ff;
    border: none;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

#inspection-records-page .btn-back:hover {
    background: #40a9ff;
}

/* 查询区域 */
#inspection-records-page .search-section {
    background: #fff;
    padding: 20px 24px;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

#inspection-records-page .search-row {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

#inspection-records-page .search-item {
    flex: 0 1 200px;
}

#inspection-records-page .search-item label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

#inspection-records-page .search-item input,
#inspection-records-page .search-item select,
#inspection-records-page .date-range-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.3s;
}

#inspection-records-page .date-range-input:focus {
    outline: none;
    border-color: #1890ff;
}

#inspection-records-page .btn-query {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: #1890ff;
    border: none;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
}

#inspection-records-page .btn-query:hover {
    background: #40a9ff;
}

/* 记录列表容器 */
#inspection-records-page .records-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow-x: auto;
}

/* 记录表格 */
#inspection-records-page .records-table {
    width: 100%;
    border-collapse: collapse;
}

#inspection-records-page .records-table thead {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
}

#inspection-records-page .records-table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

#inspection-records-page .records-table th.col-date {
    width: 120px;
}

#inspection-records-page .records-table th:nth-child(5) {
    min-width: 280px;
}

#inspection-records-page .records-table th.col-actions {
    width: 210px;
    text-align: center;
}

#inspection-records-page .records-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

#inspection-records-page .records-table tbody tr:hover {
    background: #fafafa;
}

#inspection-records-page .records-table tbody tr:last-child {
    border-bottom: none;
}

#inspection-records-page .records-table td {
    padding: 12px 16px;
    vertical-align: top;
}

#inspection-records-page .records-table td.col-date {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

#inspection-records-page .records-table td.col-events {
    font-size: 14px;
    color: #666;
}

#inspection-records-page .event-item {
    padding: 8px 12px;
    background: #f9f9f9;
    border-radius: 4px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#inspection-records-page .event-item:last-child {
    margin-bottom: 0;
}

#inspection-records-page .event-time {
    font-weight: 600;
    color: #1890ff;
    font-size: 13px;
}

#inspection-records-page .event-content {
    flex: 1;
    color: #595959;
    line-height: 1.5;
}

#inspection-records-page .inspection-progress-text {
    color: #8c8c8c;
    font-size: 12px;
}

#inspection-records-page .records-table td.col-actions {
    text-align: center;
}

#inspection-records-page .action-btns {
    display: flex;
    justify-content: center;
    gap: 8px;
}

#inspection-records-page .btn-detail {
    padding: 6px 12px;
    background: #1890ff;
    border: none;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 4px;
}

#inspection-records-page .btn-detail:hover {
    background: #40a9ff;
}

#inspection-records-page .btn-edit {
    padding: 6px 12px;
    background: #faad14;
    border: none;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 4px;
}

#inspection-records-page .btn-edit:hover {
    background: #ffc53d;
}

#inspection-records-page .btn-delete {
    padding: 6px 12px;
    background: #ff4d4f;
    border: none;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s;
}

#inspection-records-page .btn-delete:hover {
    background: #ff7875;
}

/* 空状态 */
#inspection-records-page .empty-state {
    padding: 60px 20px;
    text-align: center;
}

#inspection-records-page .empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

#inspection-records-page .empty-state p {
    font-size: 14px;
    color: #999;
}

/* 详情弹窗 */
#inspection-detail-modal .modal-detail {
    width: 90%;
    max-width: 980px;
}

#inspection-detail-modal .inspection-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

#inspection-detail-modal .detail-item {
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    padding: 12px;
}

#inspection-detail-modal .detail-item label {
    margin-bottom: 6px;
    color: #8c8c8c;
}

#inspection-detail-modal .detail-item span {
    color: #262626;
    word-break: break-word;
}

#inspection-detail-modal .detail-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

#inspection-detail-modal .detail-section h4 {
    margin: 0 0 16px 0;
    font-size: 15px;
    color: #333;
}

#inspection-detail-modal .check-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

#inspection-detail-modal .check-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f9f9f9;
    border-radius: 4px;
    font-size: 13px;
}

#inspection-detail-modal .check-item .check-name {
    color: #595959;
}

#inspection-detail-modal .check-item .check-status {
    font-weight: 500;
}

#inspection-detail-modal .check-status.normal {
    color: #52c41a;
}

#inspection-detail-modal .check-status.abnormal {
    color: #ff4d4f;
}

#inspection-detail-modal .check-status.empty {
    color: #8c8c8c;
}

#inspection-detail-modal .inspection-env-table {
    overflow-x: auto;
}

#inspection-detail-modal .inspection-env-table table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

#inspection-detail-modal .inspection-env-table th,
#inspection-detail-modal .inspection-env-table td {
    border: 1px solid #f0f0f0;
    padding: 10px;
    text-align: center;
    font-size: 13px;
    white-space: nowrap;
}

#inspection-detail-modal .inspection-env-table th {
    background: #fafafa;
    color: #595959;
    font-weight: 600;
}

#inspection-detail-modal .detail-events {
    padding: 12px;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    color: #595959;
    line-height: 1.7;
    min-height: 48px;
}

#inspection-detail-modal .muted-text {
    color: #999;
}

@media (max-width: 900px) {
    #inspection-records-page .inspection-summary-grid,
    #inspection-detail-modal .inspection-detail-grid,
    #inspection-detail-modal .check-result-grid {
        grid-template-columns: 1fr;
    }

    #inspection-records-page .search-item {
        flex: 1 1 100%;
    }

    #inspection-records-page .btn-query {
        width: 100%;
        justify-content: center;
    }
}
