/**
 * 双位和值II卡片摘要样式
 * 参考双位TOP卡片实现
 */

/* 摘要图表区域 */
.dsi-chart-area {
    padding: 8px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.chart-area-inner-padding {
    padding: 4px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dsi-summary-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* 分割名称标题 */
.dsi-split-title {
    text-align: center;
    font-size: 1.3em;
    color: #4a90e2;
    margin-bottom: 8px;
    font-weight: bold;
}

/* 柱状图容器 */
.dsi-histogram-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 3px;
    width: 100%;
    height: 80px;
    padding: 4px;
}

/* 单个柱子包装器 */
.dsi-bar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 65px;
    flex: 1;
}

/* 顶部文字 (和值数字) */
.dsi-bar-top-text {
    font-size: 1.1em !important;
    text-align: center;
    line-height: 1.2;
    color: #ffffff !important;
    white-space: nowrap;
    font-weight: 600;
    min-height: 20px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 高亮的顶部文字 */
.dsi-bar-top-text.highlight-omission {
    color: #ff6b6b !important;
    font-weight: bold;
    text-shadow: 0 0 4px rgba(255, 107, 107, 0.8);
}

/* 柱子本体 */
.dsi-bar {
    background: linear-gradient(to top, #4a90e2, #87ceeb);
    border-radius: 3px;
    min-height: 2px;
    width: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
    color: white;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    position: relative;
}

/* 柱子悬停效果 */
.dsi-bar:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.4);
}

/* 发光效果 - 参考双位TOP卡片 */
.dsi-bar.glow-effect {
    background: linear-gradient(to top, #ff6b6b, #ff9999);
    box-shadow: 
        0 0 8px rgba(255, 107, 107, 0.6),
        0 0 16px rgba(255, 107, 107, 0.4),
        0 0 24px rgba(255, 107, 107, 0.2);
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 
            0 0 8px rgba(255, 107, 107, 0.6),
            0 0 16px rgba(255, 107, 107, 0.4),
            0 0 24px rgba(255, 107, 107, 0.2);
    }
    100% {
        box-shadow: 
            0 0 12px rgba(255, 107, 107, 0.8),
            0 0 20px rgba(255, 107, 107, 0.6),
            0 0 32px rgba(255, 107, 107, 0.4);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .dsi-histogram-container {
        gap: 2px;
        height: 70px;
    }
    
    .dsi-bar-wrapper {
        min-width: 60px;
        gap: 1px;
    }
    
    .dsi-bar {
        width: 48px;
        font-size: 1.0em;
    }
    
    .dsi-bar-top-text {
        font-size: 1.0em;
        min-height: 18px;
    }
    
    .dsi-split-title {
        font-size: 1.2em;
        margin-bottom: 6px;
    }
}

@media (max-width: 480px) {
    .dsi-histogram-container {
        gap: 1px;
        height: 60px;
    }
    
    .dsi-bar-wrapper {
        min-width: 55px;
        gap: 1px;
    }
    
    .dsi-bar {
        width: 42px;
        font-size: 0.95em;
    }
    
    .dsi-bar-top-text {
        font-size: 0.95em;
        min-height: 16px;
    }
    
    .dsi-split-title {
        font-size: 1.1em;
        margin-bottom: 4px;
    }
} 