/* 律动实战 (rhythm-practice.css) - 单屏紧凑布局 (Single-Screen Compact Layout) */

#rhythm-practice {
  height: calc(100vh - 30px);
  max-height: calc(100vh - 30px);
  overflow: hidden;
  box-sizing: border-box;
}

.practice-compact-layout {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 8px 12px;
  box-sizing: border-box;
}

/* 头部单行紧凑 Header & Status Bar */
.practice-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  flex-shrink: 0;
}

.practice-header-bar .header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.practice-header-bar .header-left h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 8px;
}

.practice-stock-badge {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
}

.header-kpis {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(30, 41, 59, 0.5);
  padding: 4px 14px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.mini-kpi-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.font-bold { font-weight: 700; }
.font-xs { font-size: 11px; }

.text-blue { color: #60a5fa; }
.text-sky { color: #38bdf8; }
.text-gold { color: #f59e0b; }
.text-green { color: #34d399; }
.text-red { color: #f87171; }

/* Gate 迷你 Badge */
.badge-gate {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  display: inline-block;
}

.gate-open {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.gate-closed {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.gate-na {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 图表画板区域 */
.practice-chart-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  padding: 10px 12px 6px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  box-sizing: border-box;
}

.chart-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  flex-shrink: 0;
}

.header-left .card-title {
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
  margin-right: 12px;
}

.chart-inline-info {
  font-size: 11px;
  color: #38bdf8;
  background: rgba(30, 41, 59, 0.6);
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.marker-legend-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #cbd5e1;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.line {
  width: 14px;
  height: 0;
  display: inline-block;
  border-bottom: 2px dashed;
}

.yellow-line { border-color: #eab308; }
.red-line { border-color: #ef4444; }
.orange-line { border-color: #f97316; }
.cyan-line { border-color: #0891b2; }

.orange-diamond { background: #f97316; transform: rotate(45deg); width: 6px; height: 6px; }
.cyan-plus { background: #0891b2; }
.cyan-triangle { background: #06b6d4; clip-path: polygon(50% 0%, 0% 100%, 100% 100%); }
.amber-triangle { background: #f97316; clip-path: polygon(0% 0%, 100% 0%, 50% 100%); }
.rose-triangle { background: #f43f5e; clip-path: polygon(0% 0%, 100% 0%, 50% 100%); }

/* 自适应 ECharts 容器撑满剩余全屏高度 */
.practice-echarts-container-compact {
  width: 100%;
  flex: 1;
  min-height: 0;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.3);
}
