/* 销售预测演示。主色对齐 PPT。无阴影、无渐变。 */
:root {
  --green: #004D2C;
  --orange: #F58220;
  --ink: #333333;
  --line: #D1D1D1;
  --bg: #FFFFFF;
  --muted: #F5F5F5;
  --radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.page {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-width: 960px;
}

.head {
  flex: 0 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px 14px;
  border-bottom: 1px solid var(--line);
}
.head-title { font-size: 18px; font-weight: 600; color: var(--green); letter-spacing: 0.02em; }
.head-ctx { font-size: 13px; color: #666; text-align: right; }

.body {
  flex: 1;
  min-height: 0;
  display: flex;
}

.side {
  width: 260px;
  flex: 0 0 260px;
  border-right: 1px solid var(--line);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.block { margin-top: 8px; }
.block-title {
  font-size: 12px;
  font-weight: 600;
  color: #666;
  margin-bottom: 8px;
}

.field {
  display: block;
  font-size: 12px;
  color: #666;
  margin-bottom: 12px;
}
.field select {
  display: block;
  width: 100%;
  margin-top: 6px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
}

.algo-list { display: flex; flex-direction: column; gap: 6px; }
.algo-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13px;
}
.algo-item input { accent-color: var(--green); }
.algo-item .algo-name { flex: 1; }
.algo-item:has(input:checked) {
  border-color: var(--green);
  background: #F3F8F5;
}
.algo-item.is-rec { border-color: var(--orange); }
.badge-rec {
  flex: 0 0 auto;
  font-size: 11px;
  line-height: 1.2;
  color: #fff;
  background: var(--orange);
  padding: 2px 7px;
  border-radius: 10px;
  white-space: nowrap;
}

.btn-run {
  margin-top: auto;
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}

.result {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 16px 20px 16px;
}

.result-bar {
  background: var(--green);
  color: #fff;
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 10px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
}
.result-bar-note { font-size: 12px; font-weight: 400; opacity: .85; }

.result-body {
  flex: 1;
  min-height: 0;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 16px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.empty-hint {
  font-size: 13px;
  color: #888;
  text-align: center;
  padding: 8px 0 0;
}
.empty-hint[hidden] { display: none; }

.chart-box { flex: 1; min-height: 320px; }
.chart { width: 100%; height: 100%; min-height: 320px; }

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.metrics.is-na .metric-v { color: #888; }
.metric {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 12px 10px;
  text-align: center;
  background: #fff;
}
.metric-k { font-size: 12px; color: #666; }
.metric-v {
  font-size: 22px;
  font-weight: 600;
  color: var(--green);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
