/**
 * 宏观首页 — 图表全屏放大样式
 */

/* ========== 图表标题（左移，不与右上角按钮重叠） ========== */
.chart-title-label {
    position: absolute;
    top: -8px;
    left: 8px;
    z-index: 3;
    background: rgba(255,255,255,0.88);
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
    line-height: 1.3;
}
.chart-title-label h5 {
    font-size: 1.25rem;
    font-weight: 700;
}

/* 全屏时标题靠左上 */
.dashboard-card.chart-fullpage .chart-title-label {
    top: 12px;
    left: 16px;
}

/* ========== 全屏卡片 ========== */
.dashboard-card.chart-fullpage {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    border-radius: 0 !important;
    z-index: 9999 !important;
    background: #fff;
    padding: 16px !important;
    overflow: auto;
}

/* 全屏时图表容器撑满 */
.dashboard-card.chart-fullpage .chart-container {
    height: calc(100vh - 40px) !important;
}

/* ========== 全屏按钮（右上角，与左标题同排不遮挡） ========== */
.chart-fullscreen-btn {
    position: absolute;
    top: 0px;
    right: 8px;
    z-index: 4;
    background: rgba(255,255,255,0.85);
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1.4;
}
.chart-fullscreen-btn:hover {
    background: #f0f0f0;
    color: #333;
    border-color: #bbb;
}

/* 全屏时按钮固定右上角 */
.dashboard-card.chart-fullpage .chart-fullscreen-btn {
    position: fixed;
    top: 10px;
    right: 16px;
    z-index: 10000;
    background: rgba(255,255,255,0.95);
}

/* ========== 全屏缩放操作提示（3秒后淡出） ========== */
.chart-zoom-hint {
    display: none;
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 3px 12px;
    border-radius: 10px;
    font-size: 12px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s;
}
.dashboard-card.chart-fullpage .chart-zoom-hint {
    display: block;
    bottom: 12px;
    opacity: 1;
}
