/*! @version 202610222110 · 专家解题 */
/* ============================================================
   专家解题（view-expert）
   浅色主题一套写全：全站已强制浅色，dark 媒体查询里不再覆盖
   ============================================================ */

.ex-form { margin-top: 12px; }
.ex-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-3);
  margin: 0 0 5px;
}
.ex-input {
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: #fbfcfe;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  transition: border-color .15s, background .15s;
}
.ex-input::placeholder { color: #a6abc4; }
.ex-input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}
textarea.ex-input { resize: vertical; min-height: 120px; }
select.ex-input { width: auto; min-width: 110px; cursor: pointer; }

.ex-row {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}
.ex-field { flex: 1; min-width: 0; }
.ex-field-s { flex: 0 0 auto; }

.ex-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.ex-hint { font-size: 13px; color: var(--text-3); }
.ex-status { font-size: 14px; font-weight: 600; }
.ex-status.load { color: var(--primary); }
.ex-status.ok { color: var(--green); }
.ex-status.warn { color: var(--amber); }
.ex-status.err { color: var(--red); }

/* 最近问过 */
.ex-recent {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  font-size: 13.5px;
  color: var(--text-3);
}
.ex-recent-t { flex-shrink: 0; }
.ex-recent-chip {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid var(--primary-soft);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 13.5px;
  cursor: pointer;
}
.ex-recent-chip:hover { border-color: var(--primary); }
.ex-recent-clear {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 13.5px;
  cursor: pointer;
  text-decoration: underline;
  padding: 2px 4px;
}
.ex-recent-clear:hover { color: var(--red); }

/* ---------- 结果区 ---------- */
.ex-src {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 11px;
  margin-bottom: 10px;
}
.ex-src.bank { background: var(--green-soft); color: var(--green); border: 1px solid #bfe8e1; }
.ex-src.ai { background: var(--primary-soft); color: var(--primary); border: 1px solid #ccd3f2; }

.ex-stem-box {
  background: #f7f9fd;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.ex-answer-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 12px 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--green);
}
.ex-answer-line .ex-ans-k { font-size: 14px; color: var(--text-3); font-weight: 600; }

.ex-sec { margin-top: 16px; }
.ex-sec-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 7px;
}
.ex-sec-ico {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14.5px;
  background: var(--primary-soft);
  color: var(--primary);
}
.ex-sec-ico.warn { background: var(--amber-soft); color: var(--amber); }
.ex-sec-ico.loop { background: var(--green-soft); color: var(--green); }
.ex-sec-ico.love { background: var(--purple-soft); color: var(--purple); }
.ex-sec-bd {
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--text-2);
  padding-left: 32px;
}
.ex-sec-bd p { margin: 0 0 6px; }

/* 解题步骤（有序列表） */
.ex-steps {
  margin: 0;
  padding: 0 0 0 0;
  list-style: none;
  counter-reset: exstep;
}
.ex-steps li {
  counter-increment: exstep;
  position: relative;
  padding-left: 30px;
  margin-bottom: 9px;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--text-2);
}
.ex-steps li::before {
  content: counter(exstep);
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ex-steps li b { color: var(--text); }

/* 易错点 / 变式（无序列表） */
.ex-list { margin: 0; padding-left: 18px; }
.ex-list li {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--text-2);
  margin-bottom: 5px;
}

/* 鼓励语 */
.ex-cheer {
  margin-top: 16px;
  background: var(--purple-soft);
  border: 1px solid #ddd6fa;
  border-left: 4px solid var(--purple);
  border-radius: 9px;
  padding: 11px 14px;
  font-size: 15.5px;
  line-height: 1.8;
  color: #463a8f;
}

/* 失败提示（不允许静默失败） */
.ex-fail {
  background: var(--red-soft);
  border: 1px solid #f6c9c9;
  border-left: 4px solid var(--red);
  border-radius: 9px;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.8;
  color: #a02c2c;
}
.ex-fail b { display: block; margin-bottom: 3px; }

/* 分析中的转圈提示 */
.ex-loading {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--primary);
  font-size: 15px;
  font-weight: 600;
  padding: 8px 0;
}
.ex-spin {
  width: 16px;
  height: 16px;
  border: 2.5px solid var(--primary-soft);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: ex-spin .8s linear infinite;
  flex-shrink: 0;
}
@keyframes ex-spin { to { transform: rotate(360deg); } }

/* ---------- 手机端 ---------- */
@media (max-width: 640px) {
  .ex-row { flex-direction: column; gap: 10px; }
  .ex-field-s { flex: 1; }
  select.ex-input { width: 100%; }
  .ex-actions { gap: 8px; }
  .ex-actions .btn { flex: 1; }
  .ex-hint { display: none; }
  .ex-sec-bd { padding-left: 0; }
  .ex-steps li { padding-left: 28px; }
  .ex-recent-chip { max-width: 150px; }
}
