.kline-container {
  position: relative;
  width: 100%;
  height: 520px;                    /* ★ 从 480 提升到 720，容纳 4 个图区 */
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: rgba(255, 255, 255, 0.03);
}

.kline-main {
  position: relative;
  flex: 1 1 auto;                   /* 主图吃掉剩余空间 */
  min-height: 0;
  background: #0e1117;
  border-radius: 8px;
  cursor: crosshair;
  touch-action: none;
  user-select: none;
}

.kline-main.dragging {
  cursor: grabbing;
}

.kline-volume {
  position: relative;
  flex: 0 0 60px;                   /* 成交量副图 */
  min-height: 0;
  background: #0e1117;
  border-radius: 8px;
  
}

.kline-wave {
  position: relative;
  flex: 0 0 80px;                   /* ★ 波浪指标副图 */
  min-height: 0;
  background: #0e1117;
  border-radius: 8px;
}

.kline-MacdPro {
  position: relative;
  flex: 0 0 80px;                  /* ★ MACD/KDJ 副图 */
  min-height: 0;
  background: #0e1117;
  border-radius: 8px;
}

.kline-main canvas,
.kline-volume canvas,
.kline-wave canvas,
.kline-MacdPro canvas {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  border-radius: 8px;
}

.kline-overlay {
  pointer-events: none;
}

.kline-error {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f87171;
  font-size: 14px;
}