/* css/theory-ask.css — 由 tools/rpx2css.js 从小程序源码 pages/theory-ask/theory-ask.wxss 生成（rpx÷2→px，@import 已内联；勿手改） */
/* 理论对话页 — theoryAsk v1.6.0 (风格与 scout 页一致) */
.ta-page {
  padding: 12px 12px 30px;
  background: #F5F6FA;
  min-height: 100vh;
  box-sizing: border-box;
}

/* —— Hero —— */
.ta-hero {
  background: #1B1B2F;
  border-radius: 10px;
  padding: 18px 16px;
  color: #FFFFFF;
  margin-bottom: 12px;
}
.ta-hero-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}
.ta-hero-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

/* —— 区块 —— */
.ta-section {
  margin-bottom: 16px;
}
.ta-section-title {
  font-size: 14px;
  font-weight: 600;
  color: #1B1B2F;
  margin-bottom: 8px;
}

/* —— 输入窗口 —— */
.ta-input {
  width: 100%;
  box-sizing: border-box;
  min-height: 200px;
  background: #FFFFFF;
  border-radius: 8px;
  border: 1px solid #E3E4EE;
  padding: 10px;
  font-size: 13px;
  color: #1B1B2F;
  line-height: 1.6;
}
.ta-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.ta-btn {
  flex: 1;
  font-size: 13px;
  border-radius: 6px;
  line-height: 2.4;
}
.ta-btn-primary {
  background: #534AB7;
  color: #FFFFFF;
}
.ta-btn-ghost {
  background: #FFFFFF;
  color: #8C8C8C;
  border: 1px solid #E3E4EE;
}
.ta-error {
  margin-top: 8px;
  font-size: 12px;
  color: #E24B4A;
  background: #FCEBEB;
  border-radius: 6px;
  padding: 8px 10px;
}

/* —— 状态条 —— */
.ta-statusbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.ta-status-tag {
  font-size: 10px;
  border-radius: 4px;
  padding: 2px 7px;
}
.ta-st-cloud {
  background: rgba(83, 74, 183, 0.12);
  color: #534AB7;
}
.ta-st-degraded {
  background: rgba(240, 153, 123, 0.2);
  color: #B8603C;
}
.ta-st-meta {
  background: rgba(140, 140, 140, 0.14);
  color: #6E6E7A;
}

/* —— 卡片 —— */
.ta-card {
  background: #FFFFFF;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
}
.ta-card-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
  flex-wrap: wrap;
}
.ta-card-title {
  font-size: 13px;
  font-weight: 600;
  color: #1B1B2F;
}
.ta-card-body {
  font-size: 13px;
  color: #3A3A4A;
  line-height: 1.7;
}

/* ① 结论判定 */
.ta-verdict {
  font-size: 11px;
  border-radius: 4px;
  padding: 2px 7px;
  font-weight: 600;
}
.ta-v-ok {
  background: rgba(93, 202, 165, 0.18);
  color: #1F8F6B;
}
.ta-v-warn {
  background: rgba(240, 184, 91, 0.2);
  color: #B0761E;
}
.ta-v-bad {
  background: rgba(226, 75, 74, 0.14);
  color: #C22F2E;
}
.ta-conf {
  font-size: 11px;
  color: #8C8C8C;
}

/* ② 说理步骤 */
.ta-reason-row {
  display: flex;
  gap: 7px;
  margin-bottom: 6px;
}
.ta-reason-idx {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #534AB7;
  color: #FFFFFF;
  font-size: 10px;
  text-align: center;
  line-height: 18px;
}
.ta-reason-text {
  font-size: 12.5px;
  color: #3A3A4A;
  line-height: 1.6;
  flex: 1;
}

/* ③ 层板映射 */
.ta-verified {
  font-size: 10px;
  border-radius: 4px;
  padding: 2px 6px;
}
.ta-vf-ok {
  background: rgba(93, 202, 165, 0.18);
  color: #1F8F6B;
}
.ta-vf-bad {
  background: rgba(226, 75, 74, 0.14);
  color: #C22F2E;
}
.ta-map-row {
  display: flex;
  gap: 8px;
  margin-bottom: 5px;
}
.ta-map-key {
  flex-shrink: 0;
  width: 70px;
  font-size: 12px;
  color: #8C8C8C;
}
.ta-map-val {
  flex: 1;
  font-size: 12px;
  color: #1B1B2F;
}
.ta-map-details {
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px dashed #EEEFF5;
}
.ta-map-dim {
  font-size: 10px;
  color: #A0A0AC;
}

/* ④ 公共信息 */
.ta-pub-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 6px;
}
.ta-pub-source {
  flex-shrink: 0;
  font-size: 11px;
  color: #534AB7;
  font-weight: 600;
}
.ta-pub-used {
  flex-shrink: 0;
  font-size: 10px;
  border-radius: 4px;
  padding: 1px 6px;
}
.ta-pu-evidence {
  background: rgba(93, 202, 165, 0.18);
  color: #1F8F6B;
}
.ta-pu-analogy {
  background: rgba(240, 184, 91, 0.2);
  color: #B0761E;
}
.ta-pu-context {
  background: rgba(140, 140, 140, 0.14);
  color: #6E6E7A;
}
.ta-pub-note {
  flex: 1;
  font-size: 11.5px;
  color: #3A3A4A;
  line-height: 1.5;
}

/* —— 通用 —— */
.ta-empty-dim {
  font-size: 11px;
  color: #A0A0AC;
}
.ta-notes {
  background: rgba(27, 27, 47, 0.04);
  border-radius: 6px;
  padding: 10px;
}
.ta-notes-title {
  font-size: 11px;
  font-weight: 600;
  color: #6E6E7A;
  margin-bottom: 4px;
}
.ta-note-line {
  font-size: 10.5px;
  color: #8C8C8C;
  line-height: 1.6;
}
