* { box-sizing: border-box; }

body {
  margin: 0;
  background: #eef1f5;
  color: #1f2329;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.页面 {
  max-width: 1180px;
  height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: #f7f8fa;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.06);
}

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

.左栏 {
  flex: 1.15;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #e6e8ec;
}

/* ---------- 顶部 ---------- */
.顶部 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #2f6bff, #5b8cff);
  color: #fff;
}
.标签栏 { display: flex; gap: 8px; flex: none; }
.标签 {
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 16px;
  background: transparent;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}
.标签.当前 {
  background: #fff;
  border-color: #fff;
  color: #2f6bff;
  font-weight: 700;
}
.主体[hidden] { display: none !important; }
.顶部 h1 { margin: 0; font-size: 20px; font-weight: 600; }
.顶部 .小字 { margin: 4px 0 0; font-size: 12px; opacity: 0.85; }

/* ---------- 账号栏 ---------- */
.账号栏 {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #fff;
  border-bottom: 1px solid #e6e8ec;
  font-size: 14px;
}
.账号栏 select {
  padding: 5px 10px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
}
.仓库标签 {
  padding: 2px 8px;
  border-radius: 10px;
  background: #e8f0ff;
  color: #2f6bff;
  font-size: 12px;
}

/* ---------- 聊天区 ---------- */
.聊天区 {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.消息 { display: flex; }
.消息.用户 { justify-content: flex-end; }
.消息.机器人 { justify-content: flex-start; }

.气泡 {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.65;
  word-break: break-all;
}
.用户 .气泡 {
  background: #2f6bff;
  color: #fff;
  border-bottom-right-radius: 4px;
}
.机器人 .气泡 {
  background: #fff;
  border: 1px solid #e6e8ec;
  border-bottom-left-radius: 4px;
}
.气泡 .行 + .行 { margin-top: 6px; }
.气泡 .行标签 {
  display: inline-block;
  margin-right: 6px;
  padding: 0 6px;
  border-radius: 4px;
  background: #e8f0ff;
  color: #2f6bff;
  font-size: 12px;
  font-weight: 600;
}
.气泡 .状态 { font-weight: 600; }
.状态.已签收 { color: #12a150; }
.状态.派送中 { color: #2f6bff; }
.状态.运输中 { color: #e08a00; }
.状态.异常   { color: #e5372d; }
.状态.状态待确认 { color: #8a919c; }

.系统提示 {
  align-self: center;
  font-size: 12px;
  color: #8a919c;
}

/* ---------- 底部 ---------- */
.底部 {
  padding: 10px 20px 16px;
  background: #fff;
  border-top: 1px solid #e6e8ec;
}
.示例区 {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
  max-height: 140px;
  overflow-y: auto;
}
.示例组 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.示例组名 {
  font-size: 12px;
  color: #8a919c;
  margin-right: 2px;
}
.示例组:last-child button {
  border-color: #ffd9a8;
  background: #fff7ec;
  color: #c76a00;
}
.示例组:last-child button:hover { background: #ffedd2; }
.示例区 button {
  padding: 5px 12px;
  border: 1px solid #cfdcff;
  border-radius: 14px;
  background: #f2f6ff;
  color: #2f6bff;
  font-size: 13px;
  cursor: pointer;
}
.示例区 button:hover { background: #e3ecff; }

.输入行 { display: flex; gap: 8px; }
.输入行 input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}
.输入行 input:focus { border-color: #2f6bff; }
.输入行 button {
  padding: 0 22px;
  border: none;
  border-radius: 8px;
  background: #2f6bff;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}
.输入行 button:hover { background: #1f58e6; }

/* ---------- 快进补推（只在有等待中的补推时出现） ---------- */
.补推栏 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.补推栏[hidden] { display: none; }
.补推栏 button {
  padding: 4px 12px;
  border: 1px solid #12a150;
  border-radius: 14px;
  background: #eefaf3;
  color: #0d7a3c;
  font-size: 13px;
  cursor: pointer;
}
.补推栏 button:hover { background: #dff5e8; }
.补推说明 { font-size: 12px; color: #8a919c; }

/* ---------- 右侧：调用过程 ---------- */
.右栏 {
  flex: 0.9;
  min-width: 340px;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.面板头 {
  padding: 14px 16px 10px;
  border-bottom: 1px solid #e6e8ec;
}
.面板头 h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
.面板说明 {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #5c6570;
}
.步骤列表 {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 14px 16px;
}
.步骤空 {
  margin: 8px 4px;
  font-size: 14px;
  line-height: 1.6;
  color: #8a919c;
}
.步骤 {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  border-left: 4px solid #cfd6dd;
  background: #f7f8fa;
}
.步骤.成功 { background: #eefaf3; border-left-color: #12a150; }
.步骤.失败 { background: #fff1f0; border-left-color: #e5372d; }
.步骤.警告 { background: #fff7ec; border-left-color: #e08a00; }

.序号 {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 50%;
  background: #8a919c;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
}
.成功 .序号 { background: #12a150; }
.失败 .序号 { background: #e5372d; }
.警告 .序号 { background: #e08a00; }

.步骤文字 {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.负责方 {
  align-self: flex-start;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.06);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}
.做了什么 {
  font-size: 15px;
  line-height: 1.55;
  word-break: break-all;
}

/* ---------- 评测页 ---------- */
.评测页 {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 16px 20px 28px;
  background: #f7f8fa;
}
.评测页[hidden] { display: none !important; }
.评测顶 {
  display: flex;
  align-items: center;
  gap: 12px;
}
.评测顶 button {
  flex: none;
  padding: 8px 18px;
  border: none;
  border-radius: 8px;
  background: #2f6bff;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}
.评测顶 button:hover { background: #1f58e6; }
.评测说明 {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #5c6570;
}
.指标行 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0;
}
.指标卡 {
  padding: 14px 16px;
  border: 1px solid #e6e8ec;
  border-radius: 10px;
  background: #fff;
}
.指标卡.告警 {
  border-color: #e5372d;
  background: #fff1f0;
}
.指标名 { margin: 0; font-size: 14px; font-weight: 700; }
.百分比 {
  margin: 8px 0 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  color: #12a150;
}
.指标卡.泄露 .百分比 { color: #1f2329; }
.指标卡.告警 .百分比,
.指标卡.告警 .次数 { color: #e5372d; }
.分子分母 { margin: 4px 0 0; font-size: 15px; font-weight: 600; }
.次数 { margin: 4px 0 0; font-size: 14px; color: #5c6570; }
.口径 { margin: 8px 0 0; font-size: 13px; line-height: 1.55; color: #5c6570; }
.未通过区 {
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #eefaf3;
  color: #0d7a3c;
}
.未通过区 h3 { margin: 0; font-size: 14px; }
.未通过区.有 {
  background: #fff1f0;
  color: #e5372d;
}
.未通过区 ul { margin: 8px 0 0; padding-left: 18px; }
.未通过区 li { margin: 4px 0; font-size: 14px; line-height: 1.5; }
.表格外包 { overflow-x: auto; background: #fff; border: 1px solid #e6e8ec; border-radius: 10px; }
.评测表 { width: 100%; border-collapse: collapse; font-size: 13px; }
.评测表 th,
.评测表 td {
  padding: 8px 10px;
  border-bottom: 1px solid #e6e8ec;
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}
.评测表 th { background: #f7f8fa; font-size: 13px; white-space: nowrap; }
.评测表 tr.未通过 { background: #fff1f0; }
.通过标记 { color: #12a150; font-weight: 700; white-space: nowrap; }
.未通过标记 { color: #e5372d; font-weight: 700; white-space: nowrap; }

@media (max-width: 860px) {
  .指标行 { grid-template-columns: 1fr; }
  .评测顶 { align-items: flex-start; flex-direction: column; }
  .页面 { height: auto; min-height: 100vh; }
  .主体 { flex-direction: column; }
  .左栏 { border-right: none; min-height: 70vh; }
  .右栏 { max-width: none; min-height: 320px; border-top: 1px solid #e6e8ec; }
}
