/* 全局重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a1628;
    --bg-secondary: #0f2035;
    --bg-card: #0f2035;
    --border-color: #1a3a5c;
    --border-light: #2a4a6c;
    --text-primary: #e8f4fd;
    --text-secondary: #8ca8c7;
    --text-muted: #5d7a99;
    --accent-cyan: #00bcd4;
    --accent-blue: #2196f3;
    --accent-green: #4caf50;
    --accent-orange: #ff9800;
    --accent-red: #f44336;
    --gradient-primary: linear-gradient(135deg, #00bcd4 0%, #2196f3 100%);
    --gradient-card: linear-gradient(145deg, #0f2035 0%, #0a1628 100%);
}

body {
    font-family: 'Alibaba PuHuiTi', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* 背景网格效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(26, 58, 92, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 58, 92, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* 顶部导航栏 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, #0d1f35 0%, #0a1628 100%);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    z-index: 1000;
    padding: 0 20px;
}

.header-left {
    display: flex;
    align-items: center;
    min-width: 250px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-cyan);
}

.logo i {
    font-size: 24px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-nav {
    display: flex;
    gap: 5px;
}

.nav-item {
    padding: 10px 18px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-item:hover {
    color: var(--accent-cyan);
    background: rgba(0, 188, 212, 0.1);
}

.nav-item.active {
    color: var(--accent-cyan);
    background: rgba(0, 188, 212, 0.15);
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.2);
}

.nav-badge {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
    min-width: 18px;
    text-align: center;
    line-height: 1;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.5); }
    50% { box-shadow: 0 0 0 4px rgba(244, 67, 54, 0); }
}

/* 顶部快速信息栏 */
.header-quick-info {
    display: flex;
    align-items: center;
    gap: 32px;
}

.quick-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    background: rgba(0, 188, 212, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(0, 188, 212, 0.1);
    transition: all 0.3s ease;
}

.quick-info-item:hover {
    background: rgba(0, 188, 212, 0.1);
    border-color: rgba(0, 188, 212, 0.2);
}

.quick-info-item i {
    font-size: 16px;
}

.quick-info-label {
    font-size: 12px;
    color: var(--text-muted);
}

.quick-info-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-time, .header-weather {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 13px;
}

.header-time i, .header-weather i {
    color: var(--accent-cyan);
}

.header-notify {
    position: relative;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 18px;
}

.header-notify .badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--accent-red);
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(0, 188, 212, 0.1);
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

.user-info span {
    color: var(--text-primary);
    font-size: 14px;
}

/* 主容器 */
.main-container {
    display: flex;
    margin-top: 60px;
    min-height: calc(100vh - 60px - 50px);
    position: relative;
    z-index: 1;
}

/* 侧边栏 */
.sidebar {
    width: 240px;
    background: linear-gradient(180deg, #0d1f35 0%, #0a1628 100%);
    border-right: 1px solid var(--border-color);
    padding: 20px 0;
    flex-shrink: 0;
}

.sidebar-section {
    margin-bottom: 20px;
}

.sidebar-title {
    padding: 10px 20px;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-title i {
    color: var(--accent-cyan);
}

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

.menu-item {
    padding: 12px 20px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-size: 14px;
}

.menu-item:hover {
    background: rgba(0, 188, 212, 0.1);
    color: var(--text-primary);
}

.menu-item.active {
    background: rgba(0, 188, 212, 0.15);
    color: var(--accent-cyan);
    border-left-color: var(--accent-cyan);
}

.menu-item i {
    width: 20px;
    text-align: center;
}

/* 内容区 */
.content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.module {
    display: none;
    animation: fadeIn 0.5s ease;
}

.module.active {
    display: block;
}

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

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

.module-header h2 {
    font-size: 22px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.module-header h2 i {
    color: var(--accent-cyan);
}

.breadcrumb {
    color: var(--text-muted);
    font-size: 13px;
}

/* 统计卡片 */
.overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.stat-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    gap: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 188, 212, 0.2);
    border-color: var(--accent-cyan);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.stat-icon.solar {
    background: linear-gradient(135deg, #ff9800 0%, #ff5722 100%);
    color: white;
}

.stat-icon.wind {
    background: linear-gradient(135deg, #00bcd4 0%, #009688 100%);
    color: white;
}

.stat-icon.storage {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: white;
}

.stat-icon.charge {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    color: white;
}

.stat-icon.load {
    background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
    color: white;
}

.stat-icon.carbon {
    background: linear-gradient(135deg, #8bc34a 0%, #689f38 100%);
    color: white;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 32px;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    color: var(--text-primary);
    line-height: 1;
}

.stat-unit {
    font-size: 14px;
    color: var(--text-secondary);
    margin-left: 4px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 8px;
}

.stat-trend {
    font-size: 12px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-trend.up {
    color: var(--accent-green);
}

.stat-trend.down {
    color: var(--accent-red);
}

.stat-trend.stable {
    color: var(--text-muted);
}

/* 图表卡片 */
.overview-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.chart-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.chart-header h3 {
    font-size: 16px;
    font-weight: 500;
}

.chart-actions {
    display: flex;
    gap: 5px;
}

.chart-actions span {
    padding: 4px 12px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.chart-actions span.active {
    background: rgba(0, 188, 212, 0.2);
    color: var(--accent-cyan);
}

.chart-container {
    width: 100%;
    height: 280px;
}

.chart-container-small {
    width: 100%;
    height: 180px;
}

.chart-container-medium {
    width: 100%;
    height: 220px;
}

.chart-container-large {
    width: 100%;
    height: 300px;
}

/* 可视化大屏 */
.bigscreen-container {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 20px;
    min-height: 600px;
}

.bigscreen-left, .bigscreen-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bs-panel {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
}

.bs-panel-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    gap: 8px;
}

.bs-panel-title i {
    font-size: 18px;
}

.bs-data {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

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

.bs-label {
    color: var(--text-secondary);
    font-size: 13px;
}

.bs-value {
    font-family: 'Orbitron', monospace;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.bs-value small {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: normal;
}

/* 3D 容器 */
.bigscreen-center {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.three-container {
    flex: 1;
    background: linear-gradient(135deg, #0d1f35 0%, #0a1628 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    min-height: 450px;
}

.three-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(0, 188, 212, 0.1) 0%, transparent 70%),
        linear-gradient(rgba(26, 58, 92, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 58, 92, 0.3) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    pointer-events: none;
}

#three-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.three-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(10, 22, 40, 0.9);
    z-index: 10;
    transition: opacity 0.5s ease;
}

.three-loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

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

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

.three-overlay-top {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    justify-content: space-between;
    z-index: 5;
}

.realtime-info {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 1.5s ease infinite;
}

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

.realtime-clock {
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 14px;
    border-radius: 20px;
}

.three-overlay-bottom {
    position: absolute;
    bottom: 16px;
    left: 16px;
    z-index: 5;
}

.model-controls {
    display: flex;
    gap: 10px;
}

.ctrl-btn {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ctrl-btn:hover {
    background: rgba(0, 188, 212, 0.2);
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

.three-overlay-right {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 5;
    background: rgba(0, 0, 0, 0.5);
    padding: 12px;
    border-radius: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.legend-item .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-item .dot.green { background: var(--accent-green); }
.legend-item .dot.blue { background: var(--accent-blue); }
.legend-item .dot.orange { background: var(--accent-orange); }
.legend-item .dot.red { background: var(--accent-red); }

/* 负荷数据面板 */
.load-overlay {
    display: flex;
    gap: 16px;
}

.load-panel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 24px;
    flex: 1;
}

.load-item {
    text-align: center;
}

.load-item span {
    display: block;
    color: var(--text-secondary);
    font-size: 12px;
    margin-bottom: 8px;
}

.load-item strong {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 18px;
    color: var(--accent-cyan);
}

.load-item strong small {
    font-size: 12px;
    color: var(--text-muted);
}

/* 充电管理 */
.charging-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.charging-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.charge-stat-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: center;
    transition: all 0.3s ease;
}

.charge-stat-card.charging {
    border-color: var(--accent-green);
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.2);
}

.charge-stat-card:hover {
    transform: translateY(-2px);
}

.charge-stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    flex-shrink: 0;
}

.charge-stat-info {
    flex: 1;
}

.charge-stat-info h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.charge-stat-info span {
    display: block;
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 4px;
}

.charge-stat-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.charge-stat-status.charging {
    background: rgba(76, 175, 80, 0.2);
    color: var(--accent-green);
}

.charge-stat-status.idle {
    background: rgba(255, 152, 0, 0.2);
    color: var(--accent-orange);
}

.charging-detail {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
}

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

.detail-header h3 {
    font-size: 18px;
}

.detail-header span {
    color: var(--text-muted);
    font-size: 13px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.detail-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 16px;
    border-radius: 8px;
    text-align: center;
}

.detail-item.highlight {
    background: rgba(0, 188, 212, 0.15);
    border: 1px solid rgba(0, 188, 212, 0.3);
}

.detail-item span {
    display: block;
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 8px;
}

.detail-item strong {
    font-family: 'Orbitron', monospace;
    font-size: 20px;
    color: var(--accent-cyan);
}

.detail-item.highlight strong {
    color: var(--accent-green);
}

/* 表格 */
.orders-panel, .device-table {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
}

.orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.orders-header h3 {
    font-size: 18px;
}

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

.orders-filter select, .orders-filter button {
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    cursor: pointer;
}

.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: rgba(0, 0, 0, 0.3);
    padding: 14px 16px;
    text-align: left;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 13px;
    border-bottom: 1px solid var(--border-color);
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(26, 58, 92, 0.5);
    font-size: 13px;
}

.data-table tbody tr:hover {
    background: rgba(0, 188, 212, 0.05);
}

.status-tag {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
}

.status-tag.charging {
    background: rgba(76, 175, 80, 0.2);
    color: var(--accent-green);
}

.status-tag.completed {
    background: rgba(33, 150, 243, 0.2);
    color: var(--accent-blue);
}

.status-tag.normal {
    background: rgba(76, 175, 80, 0.2);
    color: var(--accent-green);
}

.status-tag.warning {
    background: rgba(255, 152, 0, 0.2);
    color: var(--accent-orange);
}

.status-tag.pending {
    background: rgba(158, 158, 158, 0.2);
    color: #9e9e9e;
}

.status-tag.running {
    background: rgba(33, 150, 243, 0.2);
    color: var(--accent-blue);
}

.btn-view {
    padding: 6px 14px;
    background: rgba(0, 188, 212, 0.2);
    border: 1px solid var(--accent-cyan);
    border-radius: 4px;
    color: var(--accent-cyan);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view:hover {
    background: var(--accent-cyan);
    color: white;
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 13px;
}

.page-controls {
    display: flex;
    gap: 8px;
}

.page-btn {
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover, .page-btn.active {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

/* 系统架构 */
.architecture-container {
    display: grid;
    grid-template-columns: 300px 1fr 280px;
    gap: 24px;
}

.arch-intro, .arch-data-layer {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
}

.arch-intro h3, .arch-data-layer h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--accent-cyan);
}

.arch-intro p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.arch-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(0, 188, 212, 0.1);
    border-radius: 6px;
    color: var(--text-primary);
}

.feature-item i {
    color: var(--accent-green);
}

.arch-diagram {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
}

.arch-svg {
    width: 100%;
    height: 400px;
}

.arch-svg .node rect {
    transition: all 0.3s ease;
}

.arch-svg .node:hover rect {
    filter: brightness(1.3);
}

.arch-svg .flow-lines path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: flow 3s ease infinite;
}

@keyframes flow {
    to { stroke-dashoffset: 0; }
}

.arch-labels {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.label-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
}

.label-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.label-tag.green { background: var(--accent-green); color: white; }
.label-tag.blue { background: var(--accent-blue); color: white; }
.label-tag.orange { background: var(--accent-orange); color: white; }
.label-tag.red { background: var(--accent-red); color: white; }
.label-tag.gray { background: #607d8b; color: white; }

.layer-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.layer-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border-left: 3px solid var(--accent-cyan);
}

.layer-num {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.layer-info h4 {
    font-size: 16px;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.layer-info p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

/* 能源监测 */
.energy-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 14px;
}

.energy-panel {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px;
}

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

.energy-header h3 {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.energy-header h3 i {
    color: var(--accent-cyan);
}

.energy-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
}

.energy-status.normal {
    background: rgba(76, 175, 80, 0.2);
    color: var(--accent-green);
}

.energy-status.charging {
    background: rgba(33, 150, 243, 0.2);
    color: var(--accent-blue);
}

.energy-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.metric-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border-radius: 8px;
}

.metric-item span {
    display: block;
    color: var(--text-secondary);
    font-size: 12px;
    margin-bottom: 6px;
}

.metric-item strong {
    font-family: 'Orbitron', monospace;
    font-size: 18px;
    color: var(--accent-cyan);
}

/* 运维巡检 */
.maintenance-container {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
}

.maint-sidebar {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
}

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

.maint-item {
    padding: 14px 16px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
    margin-bottom: 4px;
}

.maint-item:hover {
    background: rgba(0, 188, 212, 0.1);
}

.maint-item.active {
    background: rgba(0, 188, 212, 0.2);
    color: var(--accent-cyan);
}

.maint-content {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
}

.maint-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-group label {
    color: var(--text-secondary);
    font-size: 13px;
}

.filter-group select, .filter-group input {
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 13px;
}

.btn-primary, .btn-secondary, .btn-add {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--accent-cyan);
    border: none;
    color: white;
}

.btn-primary:hover {
    background: #00a0b3;
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(0, 188, 212, 0.1);
}

.btn-add {
    background: var(--gradient-primary);
    border: none;
    color: white;
}

.btn-add:hover {
    opacity: 0.9;
}

/* 设备管理 */
.device-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.device-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.device-stat-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: center;
}

.device-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.device-icon.total { background: linear-gradient(135deg, #2196f3, #1976d2); }
.device-icon.normal { background: linear-gradient(135deg, #4caf50, #388e3c); }
.device-icon.warning { background: linear-gradient(135deg, #ff9800, #f57c00); }
.device-icon.error { background: linear-gradient(135deg, #f44336, #d32f2f); }

.device-stat-info h4 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.device-stat-value {
    font-family: 'Orbitron', monospace;
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
}

/* 能耗分析 */
.analysis-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.analysis-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.summary-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.summary-card h4 {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
}

.summary-value {
    font-family: 'Orbitron', monospace;
    font-size: 28px;
    font-weight: 600;
    color: var(--accent-cyan);
    margin-bottom: 12px;
}

.summary-value span {
    font-size: 16px;
    color: var(--text-muted);
}

.summary-trend {
    font-size: 13px;
}

.summary-trend.up {
    color: var(--accent-green);
}

.summary-trend.down {
    color: var(--accent-red);
}

.analysis-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

/* 页脚 */
.footer {
    height: 50px;
    background: linear-gradient(180deg, #0a1628 0%, #080f1c 100%);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-muted);
    font-size: 13px;
}

.footer-divider {
    color: var(--border-color);
}

/* 响应式设计 */
@media (max-width: 1400px) {
    .bigscreen-container {
        grid-template-columns: 240px 1fr 240px;
    }
    
    .architecture-container {
        grid-template-columns: 260px 1fr 260px;
    }
}

@media (max-width: 1200px) {
    .main-nav {
        display: none;
    }
    
    .bigscreen-container {
        grid-template-columns: 1fr;
    }
    
    .architecture-container {
        grid-template-columns: 1fr;
    }
    
    .load-panel {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .sidebar {
        display: none;
    }
    
    .main-container {
        margin-top: 60px;
    }
    
    .maint-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .orders-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* 选择样式 */
::selection {
    background: rgba(0, 188, 212, 0.3);
    color: var(--text-primary);
}