/* 基础样式 */
/* ===== 案例B主题色：橙色预警 ===== */
:root {
    --primary-color: #FF6B35;  /* 主色-警报橙 */
    --primary-light: #FF9E64;  /* 浅橙色 */
    --primary-dark: #D45A2C;   /* 深橙色 */
    --secondary-color: #073B4C; /* 次色-深海蓝 */
    --secondary-light: #1A5FB4; /* 浅蓝色 */
    --background-dark: #0D1B2A; /* 背景深蓝黑 */
    --text-primary: #E0E0E0;   /* 主文字 */
    --text-secondary: #8B949E; /* 次文字 */
    --success-color: #81C784;  /* 成功绿 */
    --warning-color: #FFD166;  /* 警告黄 */
    --critical-color: #EF476F; /* 危急红 */
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 导航栏样式 */
/* ===== 新版导航栏：橙色商务风 ===== */
.report-nav {
    background: linear-gradient(135deg, rgba(7, 59, 76, 0.95) 0%, rgba(13, 27, 42, 0.98) 100%); /* 深蓝渐变背景 */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 107, 53, 0.3); /* 橙色底边 */
    padding: 0 30px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.1);
}

.nav-brand {
    font-size: 1.4em;
    font-weight: 700;
    background: linear-gradient(90deg, #FF9E64, #FFD166);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #E0E0E0;
    text-decoration: none;
    font-size: 0.95em;
    padding: 8px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #FF9E64;
    background: rgba(255, 107, 53, 0.1);
}

/* 当前页面的锚点高亮效果 */
.nav-links a:hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 15px;
    right: 15px;
    height: 2px;
    background: #FF9E64;
    border-radius: 1px;
}

.nav-status {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #8B949E;
    font-size: 0.9em;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #81C784; /* 绿色表示活跃 */
    box-shadow: 0 0 10px #81C784;
}

.status-dot.active {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}
/* 封面页样式 */
.cover-page {
    /* 替换原有background属性为以下代码 */
    background: linear-gradient(135deg, rgba(255, 215, 102, 0.05) 0%, rgba(255, 107, 53, 0.03) 50%, rgba(7, 59, 76, 0.1) 100%);
    /* 其他属性保持不变 */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 60px;
    position: relative;
    overflow: hidden;
}
.cover-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(31, 111, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 107, 107, 0.1) 0%, transparent 50%);
    z-index: -1;
}

/* 图表区域样式 */
.chart-section {
    padding: 60px 30px;
    border-bottom: 1px solid var(--color-border);
}

.chart-wrapper {
    position: relative;
    margin-top: 30px;
}

.chart-container {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
    position: relative;
    min-height: 500px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .report-nav {
        padding: 12px 15px;
        flex-wrap: wrap;
    }
    
    .chart-section {
        padding: 40px 15px;
    }
    
    .chart-container {
        padding: 15px;
    }
}
/* 强制图表容器可见 */
.chart-container {
    background: #1a1a2e !important;
    min-height: 400px !important;
    position: relative !important;
}

/* 确保canvas存在 */
#chart1Canvas {
    width: 100% !important;
    height: 400px !important;
    display: block !important;
}


.chart-container canvas {
    position: relative;
    z-index: 2;
}
/* ===== 新增：核心洞察样式 ===== */
.cover-insights {
    background: rgba(255, 107, 53, 0.1); /* 橙色透明背景 */
    border-left: 4px solid #FF6B35; /* 橙色左边框 */
    border-radius: 0 8px 8px 0;
    padding: 20px;
    margin: 25px 0;
    backdrop-filter: blur(10px);
}

.cover-insights h3 {
    color: #FF9E64; /* 浅橙色 */
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.cover-insights ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.cover-insights li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 158, 100, 0.3);
    color: #E0E0E0;
    line-height: 1.6;
}

.cover-insights li:last-child {
    border-bottom: none;
}

.cover-insights strong {
    color: #FFD166; /* 亮黄色 */
}

.cover-insights em {
    color: #81C784; /* 浅绿色 */
    font-style: italic;
}
/* ===== 新增：高级占位器样式 ===== */
.advanced-placeholder {
    background: rgba(13, 27, 42, 0.7);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 20px;
}

.info-card {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid;
    border-radius: 8px;
    padding: 20px;
}

.comparison {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
}

.comparison-before, .comparison-after {
    flex: 1;
}

.comparison h5 {
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.arrow {
    color: var(--primary-light);
    font-size: 1.5em;
    padding: 0 20px;
}

.metric-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    color: white;
    font-size: 0.85em;
    margin-right: 8px;
    margin-bottom: 5px;
}

.metric {
    margin-bottom: 15px;
}

.metric-label {
    color: var(--text-primary);
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
}

.metric-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.metric-fill {
    height: 100%;
    border-radius: 4px;
}

.metric-value {
    text-align: right;
    color: #EF476F;
    font-weight: bold;
    font-size: 0.9em;
    margin-top: 3px;
}

.placeholder-note {
    text-align: center;
    color: var(--primary-light);
    font-style: italic;
    border-top: 1px dashed rgba(255, 158, 100, 0.5);
    padding-top: 15px;
    margin-top: 15px;
}
.view-buttons {
    display: flex;
    gap: 10px;
}

.view-buttons button {
    background: rgba(255, 107, 53, 0.2);
    border: 1px solid #FF6B35;
    color: #FF9E64;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s;
}

.view-buttons button:hover {
    background: rgba(255, 107, 53, 0.4);
}
/* ===== 专业图表控制面板 ===== */
.chart-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(7, 59, 76, 0.3);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-group label {
    color: #FF9E64;
    font-weight: bold;
    font-size: 0.95em;
    white-space: nowrap;
}

.view-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.view-buttons button {
    background: rgba(255, 107, 53, 0.15);
    border: 1px solid rgba(255, 107, 53, 0.5);
    color: #FFD166;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s;
    min-width: 80px;
}

.view-buttons button:hover {
    background: rgba(255, 107, 53, 0.3);
    transform: translateY(-1px);
}

.view-buttons button.active {
    background: linear-gradient(135deg, #FF6B35, #FF9E64);
    color: #0D1B2A;
    font-weight: bold;
    border-color: #FF6B35;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

.export-btn {
    background: linear-gradient(135deg, #1A5FB4, #073B4C);
    border: 1px solid #1A5FB4;
    color: white;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    white-space: nowrap;
}

.export-btn:hover {
    background: linear-gradient(135deg, #2B6BC0, #1A5FB4);
    box-shadow: 0 0 15px rgba(26, 95, 180, 0.4);
}