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

:root {
    --primary-bg: #0a1628;
    --panel-bg: rgba(16, 42, 88, 0.4);
    --border-color: rgba(64, 169, 255, 0.3);
    --accent-blue: #40a9ff;
    --accent-cyan: #00d4ff;
    --accent-yellow: #ffd700;
    --accent-red: #ff4d4f;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background: var(--primary-bg);
    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(64, 169, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(64, 169, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* 背景字母效果 */
body::after {
    content: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 14px;
    color: rgba(64, 169, 255, 0.05);
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 30px;
    line-height: 60px;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

/* 顶部导航 */
.header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0 30px;
    position: relative;
}

.header-decoration {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    max-width: 300px;
}

.header-decoration.left {
    justify-content: flex-end;
}

.header-decoration.right {
    justify-content: flex-start;
}

.tech-line {
    height: 2px;
    flex: 1;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    position: relative;
}

.tech-line::before,
.tech-line::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.header-decoration.left .tech-line::before { left: 0; }
.header-decoration.left .tech-line::after { right: 0; }
.header-decoration.right .tech-line::before { left: 0; }
.header-decoration.right .tech-line::after { right: 0; }

.tech-dots {
    display: flex;
    gap: 4px;
}

.tech-dots span {
    width: 4px;
    height: 4px;
    background: var(--accent-cyan);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

.tech-dots span:nth-child(2) { animation-delay: 0.1s; }
.tech-dots span:nth-child(3) { animation-delay: 0.2s; }
.tech-dots span:nth-child(4) { animation-delay: 0.3s; }
.tech-dots span:nth-child(5) { animation-delay: 0.4s; }

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

.header-center {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 30px;
}

.header-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(64, 169, 255, 0.5);
}

.header-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.title-wrapper {
    text-align: center;
}

.main-title {
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(180deg, #ffffff 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(64, 169, 255, 0.5);
    letter-spacing: 4px;
}

.sub-title {
    font-size: 14px;
    color: var(--accent-cyan);
    margin-top: 5px;
    padding: 5px 20px;
    border: 1px solid var(--accent-cyan);
    border-radius: 20px;
    display: inline-block;
    background: rgba(0, 212, 255, 0.1);
}

.header-actions {
    position: absolute;
    right: 20px;
    display: flex;
    gap: 15px;
}

.action-btn {
    width: 36px;
    height: 36px;
    background: rgba(64, 169, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: rgba(64, 169, 255, 0.3);
    box-shadow: 0 0 15px rgba(64, 169, 255, 0.4);
}

.action-btn svg {
    width: 20px;
    height: 20px;
    fill: var(--accent-cyan);
}

/* 主内容区 */
.main-content {
    flex: 1;
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 20px;
    padding: 0 20px;
}

/* 面板样式 */
.panel {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
}

.panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-top: 2px solid var(--accent-cyan);
    border-left: 2px solid var(--accent-cyan);
}

.panel-header {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(64, 169, 255, 0.2);
}

.panel-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.title-icon {
    width: 4px;
    height: 16px;
    background: linear-gradient(180deg, var(--accent-cyan), var(--accent-blue));
    border-radius: 2px;
}

.more-link {
    color: var(--accent-cyan);
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
}

.more-link:hover {
    color: var(--text-primary);
}

.panel-content {
    padding: 20px;
}

/* 左侧面板 */
.panel-left .panel-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gauge-chart {
    width: 200px;
    height: 200px;
    position: relative;
}

.gauge-info {
    text-align: center;
    margin-top: -60px;
    position: relative;
    z-index: 2;
}

.gauge-number {
    font-size: 36px;
    font-weight: bold;
    color: var(--accent-cyan);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.gauge-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 5px;
}

.legend-list {
    margin-top: 30px;
    width: 100%;
}

.legend-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(64, 169, 255, 0.1);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    margin-right: 10px;
}

.legend-color.yellow { background: var(--accent-yellow); }
.legend-color.red { background: var(--accent-red); }
.legend-color.cyan { background: var(--accent-cyan); }
.legend-color.blue { background: var(--accent-blue); }

.legend-name {
    flex: 1;
    font-size: 13px;
    color: var(--text-secondary);
}

.legend-percent {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: bold;
}

/* 中间面板 */
.panel-center {
    display: flex;
    flex-direction: column;
}

.panel-center .panel-header {
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.panel-center .panel-title {
    font-size: 20px;
}

.panel-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.warning-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.warning-card {
    background: rgba(16, 42, 88, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.warning-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
}

.warning-card.yellow::before { background: var(--accent-yellow); }
.warning-card.red::before { background: var(--accent-red); }
.warning-card.cyan::before { background: var(--accent-cyan); }
.warning-card.blue::before { background: var(--accent-blue); }

.warning-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.warning-card.yellow .card-icon {
    background: rgba(255, 215, 0, 0.2);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.warning-card.red .card-icon {
    background: rgba(255, 77, 79, 0.2);
    box-shadow: 0 0 20px rgba(255, 77, 79, 0.3);
}

.warning-card.cyan .card-icon {
    background: rgba(0, 212, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.warning-card.blue .card-icon {
    background: rgba(64, 169, 255, 0.2);
    box-shadow: 0 0 20px rgba(64, 169, 255, 0.3);
}

.card-icon svg {
    width: 28px;
    height: 28px;
}

.warning-card.yellow .card-icon svg { fill: var(--accent-yellow); }
.warning-card.red .card-icon svg { fill: var(--accent-red); }
.warning-card.cyan .card-icon svg { fill: var(--accent-cyan); }
.warning-card.blue .card-icon svg { fill: var(--accent-blue); }

.card-info {
    flex: 1;
}

.card-title {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.card-number {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.card-status {
    font-size: 11px;
    color: var(--text-secondary);
}

.status-num {
    color: var(--accent-red);
    font-weight: bold;
}

.chart-section {
    flex: 1;
}

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

.chart-title {
    font-size: 14px;
    color: var(--text-secondary);
}

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

.legend-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
}

.bar-chart {
    width: 100%;
    height: 200px;
}

/* 右侧面板 */
.warning-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.warning-list-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: rgba(16, 42, 88, 0.3);
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.warning-list-item:hover {
    background: rgba(16, 42, 88, 0.5);
    transform: translateX(5px);
}

.warning-list-item.yellow { border-left-color: var(--accent-yellow); }
.warning-list-item.red { border-left-color: var(--accent-red); }
.warning-list-item.cyan { border-left-color: var(--accent-cyan); }
.warning-list-item.blue { border-left-color: var(--accent-blue); }

.item-marker {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
}

.warning-list-item.yellow .item-marker { background: var(--accent-yellow); }
.warning-list-item.red .item-marker { background: var(--accent-red); }
.warning-list-item.cyan .item-marker { background: var(--accent-cyan); }
.warning-list-item.blue .item-marker { background: var(--accent-blue); }

.item-content {
    flex: 1;
}

.item-title {
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.item-detail {
    font-size: 11px;
    color: var(--text-secondary);
}

/* 底部导航 */
.bottom-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 20px;
    margin-top: 20px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 30px;
    background: rgba(16, 42, 88, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, transparent, rgba(64, 169, 255, 0.3));
    transition: height 0.3s ease;
}

.nav-item:hover::before {
    height: 100%;
}

.nav-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.nav-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(64, 169, 255, 0.3), rgba(0, 212, 255, 0.3));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--accent-cyan);
}

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

.nav-item:hover .nav-label {
    color: var(--text-primary);
}

/* 侧边箭头 */
.side-arrows {
    position: fixed;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    pointer-events: none;
    z-index: 10;
}

.arrow {
    width: 40px;
    height: 40px;
    background: rgba(16, 42, 88, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.arrow:hover {
    background: rgba(64, 169, 255, 0.3);
    border-color: var(--accent-cyan);
}

.arrow svg {
    width: 24px;
    height: 24px;
    fill: var(--accent-cyan);
}

/* 响应式设计 */
@media (max-width: 1400px) {
    .main-content {
        grid-template-columns: 250px 1fr 250px;
    }
    
    .warning-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .panel-left,
    .panel-right {
        display: none;
    }
    
    .warning-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}
