/* ============================================
   首页Dashboard布局
   ============================================ */

#dashboard-page {
    background: 
        radial-gradient(ellipse at top, rgba(74, 158, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(42, 74, 107, 0.2) 0%, transparent 50%),
        linear-gradient(180deg, #0a0f1a 0%, #0a0a0a 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

.dashboard-layout {
    display: flex;
    height: calc(100vh - 80px);
    gap: var(--spacing-md);
    padding: var(--spacing-md);
}

/* 左侧面板 */
.left-panel {
    width: 25%;
    height: 100%;
    background: 
        radial-gradient(ellipse at top left, rgba(74, 158, 255, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at bottom, rgba(42, 74, 107, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #0a0f1a 0%, #0d0d0d 100%);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
    min-height: 0;
    box-sizing: border-box;
}

/* 标题行容器 */
.panel-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--color-border);
}

.panel-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--color-text);
    margin: 0;
    padding: 0;
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--color-border);
    font-family: var(--font-sans);
    flex-shrink: 0;
}

/* 左栏标题样式 */
.left-panel .panel-title {
    margin-bottom: var(--spacing-md);
}

/* 左栏标题行容器 */
.panel-title-row-left {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--color-border);
}

.panel-title-row-left .panel-title {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* 风险等级筛选器 */
.risk-filter {
    padding: var(--spacing-xs) var(--spacing-sm);
    background: rgba(74, 158, 255, 0.05);
    border: 1px solid rgba(74, 158, 255, 0.3);
    border-radius: 4px;
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 12px;
    cursor: pointer;
    outline: none;
    transition: all var(--anim-fast);
    flex-shrink: 0;
}

.risk-filter:hover {
    background: rgba(74, 158, 255, 0.1);
    border-color: rgba(74, 158, 255, 0.5);
}

.risk-filter:focus {
    background: rgba(74, 158, 255, 0.15);
    border-color: #4a9eff;
    box-shadow: 0 0 8px rgba(74, 158, 255, 0.3);
}

.risk-filter option {
    background: var(--bg-panel);
    color: var(--color-text);
}

/* 中栏标题行中的标题，移除border-bottom（由panel-title-row提供） */
.panel-title-row .panel-title {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* 综合安全防御率显示 */
.defense-rate-display {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-xs) var(--spacing-md);
    background: rgba(74, 158, 255, 0.05);
    border: 1px solid rgba(74, 158, 255, 0.3);
    border-radius: 4px;
    font-family: var(--font-mono);
    flex-shrink: 0;
}

.defense-rate-label {
    font-size: 12px;
    color: var(--color-text);
    font-weight: normal;
}

.defense-rate-value {
    font-size: 20px;
    font-weight: bold;
    color: #4a9eff;
    text-shadow: 0 0 10px rgba(74, 158, 255, 0.5);
    letter-spacing: 1px;
    min-width: 70px;
    text-align: right;
}

/* 中间面板 - 样式与左栏完全一致 */
main.center-panel,
#center-panel.center-panel,
.center-panel {
    width: 50%;
    background: 
        radial-gradient(ellipse at center, rgba(74, 158, 255, 0.1) 0%, transparent 70%),
        radial-gradient(ellipse at top left, rgba(42, 74, 107, 0.15) 0%, transparent 60%),
        linear-gradient(135deg, #0f1520 0%, #111111 100%);
    border: 1px solid #333333;
    border-radius: 4px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
    flex-shrink: 0;
    margin: 0;
    box-sizing: border-box;
    position: relative;
}

/* 中间面板内容区域 */
.center-content {
    flex: 1;
    overflow: hidden;
    min-height: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    background: 
        radial-gradient(ellipse at center, rgba(74, 158, 255, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at bottom right, rgba(42, 74, 107, 0.12) 0%, transparent 50%);
    border-radius: 4px;
    position: relative;
}

#radar-chart {
    width: 100%;
    height: 100%;
    min-height: 500px;
    position: relative;
    z-index: 1;
    background: transparent;
}

/* 确保ECharts tooltip显示在最上层 */
div[class*="echarts-tooltip"],
div[id*="echarts"] div[class*="tooltip"],
.echarts-tooltip,
body > div[class*="tooltip"] {
    z-index: 10000 !important;
    position: fixed !important;
    pointer-events: none;
}

body > div[class*="tooltip"] > * {
    pointer-events: auto;
}

/* 核按钮样式 */
.nuclear-button {
    width: 100%;
    padding: 24px 32px;
    margin-top: var(--spacing-md);
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 2px solid #4a9eff;
    border-radius: 8px;
    color: #4a9eff;
    font-size: 24px;
    font-weight: bold;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 20px rgba(74, 158, 255, 0.3),
        inset 0 0 20px rgba(74, 158, 255, 0.1);
    z-index: 10;
    flex-shrink: 0;
}

.nuclear-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(74, 158, 255, 0.3) 0%, transparent 70%);
    animation: nuclearPulse 2s ease-in-out infinite;
    pointer-events: none;
}

.nuclear-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(74, 158, 255, 0.4),
        transparent
    );
    animation: nuclearSweep 3s ease-in-out infinite;
    pointer-events: none;
}

.nuclear-button:hover {
    background: linear-gradient(135deg, #222222 0%, #111111 100%);
    border-color: #6bb3ff;
    color: #6bb3ff;
    box-shadow: 
        0 0 30px rgba(74, 158, 255, 0.5),
        inset 0 0 30px rgba(74, 158, 255, 0.2);
    transform: translateY(-2px);
}

.nuclear-button:active {
    transform: translateY(0);
    box-shadow: 
        0 0 15px rgba(74, 158, 255, 0.4),
        inset 0 0 15px rgba(74, 158, 255, 0.15);
}

@keyframes nuclearPulse {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

@keyframes nuclearSweep {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

/* 右侧面板 */
.right-panel {
    width: 25%;
    background: 
        radial-gradient(ellipse at top right, rgba(74, 158, 255, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse at bottom left, rgba(42, 74, 107, 0.12) 0%, transparent 50%),
        linear-gradient(225deg, #0f1520 0%, #111111 100%);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

