/* 首页问答台样式：独立一层，删掉 layout.php 里的引用即可整体回滚 */
.pt-hidden { display: none !important; }

/* 右侧输入框：沿用深色面板作视觉锚点，去掉渐变与呼吸点 */
.agent-box {
  background: #1b2028 !important;
  border: 1px solid #303742 !important;
  color: #e8ebf0;
  border-radius: 2px !important;
  padding: 20px !important;
  box-shadow: none !important;
}
.agent-box::before { display: none !important; }
.agent-box .qa-head { color: #9aa3b0; }
.agent-box .qa-head b { color: #e8ebf0; font-weight: 700; }
.agent-acct { margin-left: auto; font-size: 12px; color: #9aa3b0; }
.agent-input {
  width: 100%; box-sizing: border-box; min-height: 104px; resize: vertical;
  margin: 14px 0 10px; padding: 12px 14px;
  border: 1px solid #3a424e; border-radius: 2px;
  background: #fff; color: #1f2430;
  font: 14px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  outline: none;
}
.agent-input:focus { border-color: #a97c2c; }
.agent-samples { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.agent-chip {
  background: transparent; border: 1px solid #3d4551; color: #aeb6c2;
  padding: 5px 9px; font-size: 12px; cursor: pointer; border-radius: 2px;
}
.agent-chip:hover { border-color: #a97c2c; color: #e8ebf0; }
.agent-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.agent-check { font-size: 12.5px; color: #aeb6c2; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.agent-msg {
  margin-top: 12px; font-size: 13px; line-height: 1.75;
  padding: 9px 11px; border: 1px solid #3d4551; border-left: 3px solid #a97c2c;
  color: #d8dee7; border-radius: 2px;
}
.agent-msg.err { border-left-color: #c66; }
.agent-msg.ok { border-left-color: #5a9; }
.agent-msg .pt-link { color: #e0bd78; }

/* 左侧「可视图」：真实指令卡片，不画示意图 */
.visual-title { font-size: clamp(26px, 3vw, 34px); line-height: 1.3; margin: 16px 0 18px; font-weight: 800; }
.visual-body { max-height: 430px; overflow: auto; }
.visual-count { font-size: 13px; color: #4c535d; margin: 0 0 12px; }
.visual-item { border: 1px solid #dfe2e6; background: #fff; padding: 12px 14px; margin-bottom: 10px; border-radius: 2px; }
.visual-item-head { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: #252a31; }
.visual-item-head span { color: #6b7280; font-size: 12px; flex: 0 0 auto; }
.visual-item-body { font-size: 12.5px; color: #4b5563; margin-top: 6px; word-break: break-all; }
.visual-diff {
  white-space: pre-wrap; word-break: break-all; font-size: 12px;
  background: #f7f8fa; border: 1px solid #e5e7eb; padding: 10px;
  margin: 8px 0 0; max-height: 160px; overflow: auto; border-radius: 2px;
}
.visual-foot { margin-top: 14px; font-size: 12.5px; color: #6b7280; line-height: 1.8; }
.visual-foot p { margin: 6px 0 0; }

/* 下方回答区 */
.agent-answer { padding: 34px 0 40px; border-bottom: 1px solid #dfe2e6; background: #fff; }
.agent-empty {
  border: 1px dashed #d9dde3; padding: 26px; border-radius: 2px;
  display: flex; flex-direction: column; gap: 8px; color: #6b7280; font-size: 13.5px; line-height: 1.8;
}
.agent-empty b { color: #374151; font-size: 16px; }
.agent-card { border: 1px solid #dfe2e6; background: #fff; padding: 22px; border-radius: 2px; }
.agent-card-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 18px;
  border-bottom: 1px solid #eee; padding-bottom: 14px; margin-bottom: 18px;
}
.agent-card-head h2 { font-size: 19px; margin: 8px 0 0; font-weight: 700; line-height: 1.5; }
.agent-tag { display: inline-block; font-size: 12px; color: #8a6420; border: 1px solid #d9c59a; padding: 2px 8px; }
.agent-again {
  background: none; border: 1px solid #d9dde3; padding: 6px 12px;
  font-size: 12.5px; color: #4b5563; cursor: pointer; border-radius: 2px; flex: 0 0 auto;
}
.agent-again:hover { border-color: #a97c2c; }
.agent-answer-body {
  white-space: pre-wrap; word-break: break-word; font-size: 14.5px; line-height: 1.9;
  color: #252a31; max-height: 520px; overflow: auto;
  background: #fafbfc; border-left: 3px solid #a97c2c; padding: 16px 18px; border-radius: 2px;
}
.agent-text { line-height: 1.9; margin: 6px 0; }
.agent-ic {
  background: #eef1f5; color: #8a5a17; padding: 1px 5px; border-radius: 3px;
  font-family: Consolas, "Courier New", monospace; font-size: 12.5px;
}
.agent-code {
  background: #15181e; color: #d7dee8; padding: 14px 16px; border-radius: 2px;
  overflow: auto; font-size: 12.5px; line-height: 1.7; margin: 10px 0;
  white-space: pre; word-break: normal;
  font-family: Consolas, "Courier New", monospace;
}
.agent-meta { margin-top: 12px; font-size: 12.5px; color: #6b7280; line-height: 1.8; }
.agent-hint { margin-top: 14px; border-top: 1px solid #eee; padding-top: 14px; font-size: 13px; color: #4b5563; }
.agent-recharge { margin-top: 18px; border: 1px solid #e3d5b4; background: #fffdf7; padding: 16px; border-radius: 2px; font-size: 13px; }
.agent-recharge > b { display: block; margin-bottom: 8px; }
.agent-recharge-row { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; margin-top: 10px; }
.agent-qr {
  width: 200px; min-height: 200px; border: 1px dashed #d9dde3; border-radius: 2px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: #8a8f98; font-size: 12.5px; padding: 12px;
}
.agent-recharge-row > div:last-child { flex: 1; min-width: 220px; color: #4b5563; line-height: 1.9; }

/* 引擎选择弹框：只在需要时出现 */
.agent-modal {
  position: fixed; inset: 0; z-index: 1000; background: rgba(17, 20, 26, .55);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.agent-modal.pt-hidden { display: none !important; }
.agent-modal-card { background: #fff; border: 1px solid #dfe2e6; border-radius: 2px; max-width: 520px; width: 100%; padding: 24px; }
.agent-modal-card h3 { margin: 0 0 10px; font-size: 19px; font-weight: 700; }
.agent-modal-card > p { font-size: 13.5px; color: #4b5563; line-height: 1.8; margin: 0 0 16px; }
.agent-engine-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.agent-engine-btn {
  border: 1px solid #d9dde3; background: #fff; padding: 8px 13px;
  font-size: 13px; cursor: pointer; border-radius: 2px; color: #252a31;
}
.agent-engine-btn:hover { border-color: #a97c2c; background: #fffaf0; }
.agent-modal-foot { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.agent-modal-note {
  font-size: 12px !important; color: #8a8f98 !important;
  margin: 14px 0 0 !important; padding-top: 12px; border-top: 1px solid #eee;
}

@media (max-width: 760px) {
  .agent-card-head { flex-direction: column; }
  .agent-answer-body { max-height: 380px; }
}
