/* Google Material Design 颜色变量 */
:root {
    --primary-color: #1976d2;
    --primary-dark: #1565c0;
    --primary-light: #42a5f5;
    --secondary-color: #dc004e;
    --accent-color: #ff4081;
    --background-color: #fafafa;
    --surface-color: #ffffff;
    --error-color: #d32f2f;
    --warning-color: #f57c00;
    --success-color: #388e3c;
    --text-primary: rgba(0, 0, 0, 0.87);
    --text-secondary: rgba(0, 0, 0, 0.54);
    --text-disabled: rgba(0, 0, 0, 0.38);
    --divider-color: rgba(0, 0, 0, 0.12);
    --shadow-color: rgba(0, 0, 0, 0.2);
}

/* --- 全局样式 --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    margin: 0;
    padding: 24px;
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
}

/* --- Material Design 卡片样式 --- */
.md-card {
    background-color: var(--surface-color);
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--shadow-color);
    transition: box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
}

.md-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* --- 头部区域 --- */
.header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--divider-color);
    padding-bottom: 20px;
}

.logo {
    height: 48px;
    width: 48px;
    margin-right: 16px;
    border-radius: 8px;
    background: linear-gradient(45deg, #76B900, #8CC84B);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.header-title h1 {
    margin: 0;
    font-size: 28px;
    color: var(--text-primary);
    font-weight: 400;
    letter-spacing: -0.5px;
}

.header-title p {
    margin: 8px 0 0 0;
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 400;
}

/* --- 汇总信息卡片 --- */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.summary-card {
    background-color: var(--surface-color);
    border: 1px solid var(--divider-color);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

.summary-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.summary-card h3 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-card .value {
    font-size: 32px;
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.summary-card .value .unit {
    font-size: 16px;
    font-weight: 400;
    margin-left: 8px;
    color: var(--text-secondary);
}

.summary-card .subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* --- 控制面板 --- */
.control-panel {
    background-color: var(--surface-color);
    border: 1px solid var(--divider-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.control-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.md-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.md-button:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 4px 8px var(--shadow-color);
}

.md-button.secondary {
    background-color: var(--secondary-color);
}

.md-button.secondary:hover {
    background-color: #b0003a;
}

.md-button:disabled {
    background-color: var(--text-disabled);
    cursor: not-allowed;
    box-shadow: none;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--success-color);
    animation: pulse 2s infinite;
}

.status-dot.paused {
    background-color: var(--warning-color);
    animation: none;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* --- 数据列表表格 --- */
.table-container {
    background-color: var(--surface-color);
    border: 1px solid var(--divider-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

.data-table th,
.data-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--divider-color);
    white-space: nowrap;
}

.data-table thead th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--primary-color);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.data-table tbody tr {
    transition: background-color 0.2s ease;
}

.data-table tbody tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.02);
}

.data-table tbody tr:hover {
    background-color: rgba(25, 118, 210, 0.04);
    cursor: pointer;
}

/* --- 状态标签 --- */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-installed {
    background-color: rgba(56, 142, 60, 0.1);
    color: var(--success-color);
}

.status-transit {
    background-color: rgba(25, 118, 210, 0.1);
    color: var(--primary-color);
}

.status-procuring {
    background-color: rgba(245, 124, 0, 0.1);
    color: var(--warning-color);
}

.status-maintenance {
    background-color: rgba(211, 47, 47, 0.1);
    color: var(--error-color);
}

.status-operational {
    background-color: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
}

.status-fault {
    background-color: rgba(244, 67, 54, 0.1);
    color: #c62828;
}

.status-repair {
    background-color: rgba(255, 152, 0, 0.1);
    color: #e65100;
}

.status-scrap {
    background-color: rgba(117, 117, 117, 0.1);
    color: #424242;
}

/* --- 实时监控指标 --- */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.metric-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

.metric-card h4 {
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 8px;
    opacity: 0.9;
}

.metric-card .metric-value {
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 4px;
}

.metric-card .metric-unit {
    font-size: 12px;
    opacity: 0.8;
}

/* --- 搜索和筛选 --- */
.filters-section {
    background-color: var(--surface-color);
    border: 1px solid var(--divider-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    border: 1px solid var(--divider-color);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.2);
}

.filter-select {
    padding: 12px 16px;
    border: 1px solid var(--divider-color);
    border-radius: 8px;
    font-size: 14px;
    background-color: var(--surface-color);
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

.page-btn {
    padding: 8px 12px;
    border: 1px solid var(--divider-color);
    background-color: var(--surface-color);
    color: var(--text-primary);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.page-btn:hover:not(:disabled) {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

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

/* --- 加载动画 --- */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--divider-color);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

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

/* --- 响应式设计 --- */
@media (max-width: 768px) {
    body {
        padding: 16px;
    }

    .header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .control-panel {
        flex-direction: column;
        align-items: stretch;
    }

    .filters-section {
        flex-direction: column;
        align-items: stretch;
    }

    .data-table {
        font-size: 12px;
    }

    .data-table th,
    .data-table td {
        padding: 8px 12px;
    }
}

/* --- 登录页面样式 --- */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.login-card {
    background-color: var(--surface-color);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.login-card h2 {
    text-align: center;
    margin-bottom: 24px;
    color: var(--text-primary);
    font-weight: 400;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-input {
    padding: 16px;
    border: 1px solid var(--divider-color);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.2);
}

.login-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 16px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-btn:hover {
    background-color: var(--primary-dark);
}

.error-message {
    background-color: rgba(211, 47, 47, 0.1);
    color: var(--error-color);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
}

/* --- 全球机柜分布 --- */
.datacenter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.datacenter-card {
    background-color: var(--surface-color);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--divider-color);
    transition: all 0.2s ease;
    cursor: pointer;
}

.datacenter-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color-light);
}

.datacenter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--divider-color);
}

.datacenter-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.datacenter-count {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    background-color: rgba(25, 118, 210, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
}

.datacenter-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.datacenter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.datacenter-item:last-child {
    border-bottom: none;
}

.datacenter-item span:first-child {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.count {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* --- GPU详情弹窗 --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.modal-content {
    background-color: var(--surface-color);
    border-radius: 16px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
    margin: 20px;
}

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

/* Material Design Dialog and Drawer Styles */
.mdc-dialog {
    z-index: 10001 !important;
}

.mdc-dialog .mdc-dialog__surface {
    min-width: 600px;
    max-width: 900px;
}

.mdc-dialog .mdc-dialog__content {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.mdc-drawer .mdc-drawer__header {
    background-color: var(--primary-color);
    color: white;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mdc-drawer .mdc-drawer__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 500;
}

.mdc-drawer .mdc-drawer__close {
    color: white;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}

.mdc-drawer .mdc-drawer__content {
    padding: 16px;
    height: calc(100% - 72px);
    overflow-y: auto;
}

/* 紧凑的专业机房详情侧边面板样式 */
.datacenter-compact-grid {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-top: 0;
}

.datacenter-overview-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-light));
    padding: 12px;
    border-radius: 6px;
    color: white;
    margin: 16px 16px 8px 16px;
    flex-shrink: 0;
}

.overview-item {
    text-align: center;
    padding: 8px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.overview-label {
    font-size: 11px;
    color: #666 !important;
    margin-bottom: 2px;
    font-weight: 500;
    display: block;
}

.overview-value {
    font-size: 14px;
    color: #333 !important;
    font-weight: 600;
    display: block;
}

.overview-value small {
    font-size: 10px;
    color: #666 !important;
}

.datacenter-detail-sections {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 8px 16px 16px;
    flex: 1;
    overflow-y: auto;
    color: #333 !important; /* 确保文字是深色的，最高优先级 */
}

.datacenter-compact-grid {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-top: 0;
    color: #333 !important; /* 确保整个容器文字都是深色的 */
}

.datacenter-compact-grid * {
    color: #333 !important; /* 强制所有子元素文字都是深色的 */
}

.detail-section-compact {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    color: #333; /* 确保文字是深色的 */
}

.detail-section-compact h4 {
    margin: 0 0 8px 0;
    color: #1976d2 !important;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.compact-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
    font-size: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.stat-row span:first-child {
    color: #666 !important;
    font-weight: 500;
}

.stat-row span:last-child {
    font-weight: 600;
    color: #333 !important;
}

.status-active { color: #4caf50; }
.status-installed { color: #2196f3; }
.status-transit { color: #ff9800; }
.status-faulty { color: #f44336; }

.locations-compact {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.location-compact {
    padding: 6px 8px;
    background: var(--background-color);
    border-radius: 4px;
    border-left: 2px solid var(--primary-color);
}

.location-name-compact {
    font-weight: 600;
    font-size: 12px;
    color: #1976d2 !important;
    margin-bottom: 2px;
}

.location-metrics {
    display: flex;
    gap: 8px;
    font-size: 11px;
    color: #666 !important;
    flex-wrap: wrap;
}

/* 内联机柜详情样式 */
.inline-datacenter-section {
    margin-top: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}

.inline-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #1976d2, #42a5f5);
    color: white;
    border-bottom: 1px solid #e0e0e0;
}

.inline-detail-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.inline-detail-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.inline-detail-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.inline-detail-content {
    padding: 20px;
    color: #333;
    max-height: 600px;
    overflow-y: auto;
}

/* 侧边面板样式 */
.side-panel {
    position: fixed;
    top: 0;
    right: -500px;
    width: 480px;
    height: 100vh;
    background: #ffffff !important; /* 强制白色背景 */
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    border-left: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
}

.side-panel.show {
    right: 0;
}

.side-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-light));
    color: #333;
    border-bottom: 1px solid var(--divider-color);
    flex-shrink: 0;
}

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

.side-panel-close {
    background: none;
    border: none;
    color: #333;
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.side-panel-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.side-panel-body {
    flex: 1;
    padding: 0;
    overflow-y: auto;
}

.panel-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    height: 100%;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--divider-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

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

.panel-loading p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 14px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .datacenter-overview-bar {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px;
    }

    .datacenter-detail-sections {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .detail-section-compact {
        padding: 12px;
    }

        .side-panel {
            width: 100%;
            right: -100%;
        }

        .datacenter-detail-sections {
            padding: 8px 12px 16px;
        }

        .detail-section-compact {
            padding: 10px;
        }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--divider-color);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-light));
    color: white;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 24px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.detail-section {
    background-color: var(--background-color);
    border: 1px solid var(--divider-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease;
}

.detail-section:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.detail-section h3 {
    margin: 0 0 16px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s ease;
}

.detail-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    color: #666 !important;
    font-size: 0.9rem;
    font-weight: 500;
}

.detail-value {
    font-weight: 700;
    color: #333 !important;
    font-size: 0.95rem;
    background-color: rgba(0, 0, 0, 0.03);
    padding: 4px 8px;
    border-radius: 6px;
    min-width: 80px;
    text-align: center;
}

.status-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-live.live {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4caf50;
}

.status-live.live::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: #4caf50;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.temperature-display {
    font-size: 1.1rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    display: inline-block;
    min-width: 80px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.temperature-normal {
    color: #4caf50;
    background-color: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.temperature-warning {
    color: #ff9800;
    background-color: rgba(255, 152, 0, 0.1);
    border: 1px solid rgba(255, 152, 0, 0.2);
}

.temperature-critical {
    color: #f44336;
    background-color: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.2);
}

.utilization-bar {
    width: 100%;
    height: 10px;
    background-color: rgba(0, 0, 0, 0.08);
    border-radius: 5px;
    overflow: hidden;
    margin: 8px 0;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.utilization-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #ff9800, #f44336);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.4);
}

.refresh-btn {
    background: linear-gradient(135deg, #1976d2, #42a5f5);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.4);
    margin: 20px auto 0;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.refresh-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.refresh-btn:hover::before {
    left: 100%;
}

.refresh-btn:hover {
    background: linear-gradient(135deg, var(--primary-color-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.4);
}

.refresh-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.2);
}

/* GPU表格行悬停效果 */
.data-table tbody tr {
    cursor: pointer;
    transition: all 0.2s ease;
}

.data-table tbody tr:hover {
    background-color: rgba(25, 118, 210, 0.05);
    transform: translateX(2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .datacenter-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        margin: 20px;
    }

    .modal-header, .modal-body {
        padding: 20px;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }
}

/* Datacenter Detail Modal - 使用通用modal样式 */
