/* ============================================================
   语文 AI 助手 · 样式
   ============================================================ */

/* ---------- 状态 ---------- */
.ai-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  background: #f1f2f9;
  color: #7d86a0;
}
.ai-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.ai-status.is-ok { background: var(--green-soft); color: var(--green); }
.ai-status.is-warn { background: var(--amber-soft); color: #b4780f; }
.ai-status.is-off { background: var(--red-soft); color: var(--red); }
.ai-status.is-checking { background: var(--primary-soft); color: var(--primary); }
.ai-nav-badge { background: var(--primary) !important; font-size: 9px !important; letter-spacing: .5px; }
.ai-setting-note code, .setting-desc code, .ai-privacy code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
  color: #4c5570;
}

/* ---------- 仪表盘入口 ---------- */
.ai-entry-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  margin-bottom: 20px;
  border-radius: 16px;
  background: linear-gradient(120deg, #eef1ff 0%, #f7f4ff 55%, #eefaf7 100%);
  border: 1px solid #e0e3ff;
}
.ai-entry-mark {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--card);
  border: 1px solid #dcdefc;
  color: var(--primary);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .5px;
  box-shadow: 0 6px 16px rgba(91, 91, 214, .10);
}
.ai-entry-copy { flex: 1; min-width: 0; }
.ai-entry-copy strong { display: block; font-size: 15px; }
.ai-entry-copy p { font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.6; }
.ai-entry-banner .btn { flex: none; }

/* ---------- AI 助手页 ---------- */
.ai-hero {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 28px 30px;
  margin-bottom: 20px;
  border-radius: 20px;
  background: linear-gradient(120deg, #5b5bd6 0%, #6f68df 58%, #4aa8a0 130%);
  color: #fff;
  overflow: hidden;
}
.ai-hero-copy { flex: 1; min-width: 0; }
.ai-hero h1 { font-size: 25px; font-weight: 800; margin: 0 0 8px; letter-spacing: .5px; }
.ai-hero p { font-size: 14px; line-height: 1.65; opacity: .9; max-width: 560px; }
.ai-hero-badge {
  flex: none;
  width: 92px;
  height: 92px;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.12);
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 1px;
}

.ai-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.ai-tool-card {
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
  transition: .18s;
  display: flex;
  flex-direction: column;
  min-height: 170px;
}
.ai-tool-card:hover {
  transform: translateY(-3px);
  border-color: #c9caf0;
  box-shadow: 0 12px 28px rgba(29,36,66,.09);
}
.ai-tool-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .5px;
  margin-bottom: 15px;
}
.ai-tool-card[data-ai-open="word"] .ai-tool-icon { background: #fff5e4; color: #b4780f; }
.ai-tool-card[data-ai-open="outline"] .ai-tool-icon { background: #e8f7ee; color: var(--green); }
.ai-tool-card h3 { font-size: 16px; font-weight: 700; }
.ai-tool-card p { font-size: 13px; color: var(--muted); line-height: 1.65; margin-top: 6px; flex: 1; }
.ai-tool-link { font-size: 12px; font-weight: 700; color: var(--primary); margin-top: 14px; }
.ai-tool-card[data-ai-open="word"] .ai-tool-link { color: #b4780f; }
.ai-tool-card[data-ai-open="outline"] .ai-tool-link { color: var(--green); }

.ai-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.ai-step {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fafbff;
  border: 1px dashed #d9dcf2;
  border-radius: 12px;
  padding: 13px 15px;
}
.ai-step b {
  flex: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .5px;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 7px;
  padding: 3px 7px;
}
.ai-step span { font-size: 14px; color: #3d4760; }

.ai-privacy {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: #7a839a;
  line-height: 1.65;
  background: #f7f8fd;
  border-radius: 12px;
  padding: 13px 15px;
  margin-top: 18px;
}
.ai-privacy b { color: #4c5570; flex: none; white-space: nowrap; }

/* ---------- 作文页快捷条 ---------- */
.ai-quick-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  margin-bottom: 20px;
  border-radius: 14px;
  border: 1px solid #e0e3ff;
  background: #f8f9ff;
}
.ai-quick-copy { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.ai-quick-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 5px rgba(91,91,214,.12);
  flex: none;
}
.ai-quick-copy strong { display: block; font-size: 13px; }
.ai-quick-copy p { font-size: 11px; color: var(--muted); margin-top: 4px; line-height: 1.6; }
.ai-quick-actions { display: flex; gap: 8px; flex: none; }
.ai-quick-actions .btn { padding: 8px 14px; font-size: 12px; }

/* ---------- 错题卡 AI 按钮 ---------- */
.btn-ai {
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid #dcdcfb;
}
.btn-ai:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- 弹层 ---------- */
body.ai-modal-open { overflow: hidden; }
.ai-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.ai-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 29, 48, .46);
  backdrop-filter: blur(2px);
}
.ai-modal-card {
  position: relative;
  width: min(780px, 100%);
  max-height: 88vh;
  overflow: auto;
  background: var(--card);
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(20, 24, 45, .24);
  animation: ai-pop .22s ease;
}
@keyframes ai-pop {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: none; }
}
.ai-modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 16px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.ai-modal-head h2 { font-size: 18px; font-weight: 800; }
.ai-modal-head p { font-size: 12px; color: var(--muted); margin-top: 5px; }
.ai-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #f4f5fa;
  font-size: 18px;
  line-height: 1;
  flex: none;
}
.ai-modal-close:hover { background: var(--red-soft); color: var(--red); }
.ai-modal-body { padding: 22px 24px 26px; }

/* ---------- 表单 ---------- */
.ai-form { display: flex; flex-direction: column; gap: 14px; }
.ai-form-grid { display: flex; flex-direction: column; gap: 14px; }
.ai-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ai-field { display: block; }
.ai-field-label { display: block; font-size: 12px; font-weight: 700; color: #4c5570; margin-bottom: 7px; }
.ai-field-hint { display: block; font-size: 11px; color: var(--muted); margin-top: 6px; line-height: 1.6; }
.ai-textarea-lg { min-height: 210px; }
.ai-form .field-input { margin-bottom: 0; }
.ai-form-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 4px; }
.ai-form-hint { font-size: 11px; color: var(--muted); }
.ai-source { font-size: 11px; color: var(--muted); margin-top: -4px; }

/* ---------- 加载 / 错误 ---------- */
.ai-loading {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 26px 20px;
  border-radius: 14px;
  background: #f8f9ff;
  border: 1px dashed #d9dcf2;
}
.ai-loading strong { font-size: 13px; }
.ai-loading p { font-size: 11px; color: var(--muted); margin-top: 4px; }
.ai-spinner {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  border: 3px solid #dfe2f8;
  border-top-color: var(--primary);
  animation: ai-spin .8s linear infinite;
}
@keyframes ai-spin { to { transform: rotate(360deg); } }
.ai-error {
  padding: 20px;
  border-radius: 14px;
  background: var(--red-soft);
  border: 1px solid #f4cccc;
}
.ai-error strong { font-size: 14px; color: #a83232; }
.ai-error p { font-size: 12px; color: #8c4a4a; line-height: 1.7; margin: 7px 0 12px; }
.ai-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.8;
  background: #fff;
  border: 1px solid #f0d2d2;
  border-radius: 8px;
  padding: 10px 12px;
  color: #6b4a4a;
  margin-bottom: 12px;
  word-break: break-all;
}

/* ---------- 结果通用 ---------- */
.ai-result { margin-top: 22px; }
.ai-result:empty { display: none; }
.ai-result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.ai-result-head h3 { font-size: 19px; font-weight: 800; margin-top: 5px; }
.ai-kicker { font-size: 10px; font-weight: 800; letter-spacing: 2px; color: var(--primary); text-transform: uppercase; }
.ai-level {
  flex: none;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.ai-level.is-good { background: var(--green-soft); color: var(--green); }
.ai-level.is-mid { background: var(--primary-soft); color: var(--primary); }
.ai-level.is-warn { background: var(--amber-soft); color: #b4780f; }
.ai-block { margin-bottom: 20px; }
.ai-block h4 { font-size: 13px; font-weight: 800; margin-bottom: 10px; }
.ai-muted { font-size: 12px; color: var(--muted); line-height: 1.7; }
.ai-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ai-list li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.75;
  color: #3c4560;
}
.ai-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}
.ai-list.good li::before { background: var(--green); }
.ai-text { font-size: 13px; line-height: 1.8; color: #3c4560; }
.ai-example {
  font-size: 13px;
  line-height: 1.8;
  color: #3c4560;
  background: #f8f9ff;
  border-left: 3px solid var(--primary);
  border-radius: 0 8px 8px 0;
  padding: 11px 14px;
}
.ai-tip, .ai-next {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
  background: var(--amber-soft);
  border: 1px solid #f6e2b8;
}
.ai-tip span, .ai-next span {
  flex: none;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #a46b0a;
  padding-top: 2px;
}
.ai-tip p, .ai-next p { font-size: 13px; line-height: 1.75; color: #6b541f; }
.ai-next { background: #eef7f4; border-color: #cfe9e1; }
.ai-next span { color: #0f7a63; }
.ai-next p { color: #245c4f; }

/* ---------- 作文报告 ---------- */
.ai-dims { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin-bottom: 22px; }
.ai-dim-top { display: flex; justify-content: space-between; font-size: 11px; color: #5b6478; margin-bottom: 6px; }
.ai-dim-top strong { color: var(--primary); font-size: 11px; }
.ai-bar { height: 7px; border-radius: 99px; background: #eef0f8; overflow: hidden; }
.ai-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #7a7ae8, #5b5bd6); }
.ai-issue {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px 16px;
  margin-bottom: 10px;
  background: #fcfcff;
}
.ai-issue-head { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.ai-issue-index {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
}
.ai-issue-head strong { font-size: 13px; }
.ai-issue blockquote {
  font-size: 12px;
  line-height: 1.75;
  color: #6b5460;
  background: #fff7f7;
  border-left: 3px solid #f0b4b4;
  border-radius: 0 6px 6px 0;
  padding: 8px 12px;
  margin-bottom: 9px;
}
.ai-issue-advice, .ai-issue-rewrite { font-size: 12px; line-height: 1.75; color: #4c5570; margin-top: 6px; }
.ai-issue-advice b, .ai-issue-rewrite b { color: #2f3852; }
.ai-issue-rewrite { color: #2f6b53; }
.ai-result-actions { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 6px; }
.ai-result-actions .btn { padding: 8px 14px; font-size: 12px; }

/* ---------- 提纲 ---------- */
.ai-center {
  background: #f8f9ff;
  border: 1px solid #e3e5f7;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
}
.ai-center span { font-size: 10px; font-weight: 800; letter-spacing: 1px; color: var(--primary); }
.ai-center p { font-size: 13px; line-height: 1.75; color: #3c4560; margin-top: 6px; }
.ai-outline { display: flex; flex-direction: column; gap: 10px; }
.ai-outline-part { display: flex; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.ai-outline-num {
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
}
.ai-outline-part strong { display: block; font-size: 13px; margin-bottom: 5px; }
.ai-outline-part ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.ai-outline-part li { font-size: 12px; color: #5b6478; line-height: 1.7; padding-left: 12px; position: relative; }
.ai-outline-part li::before { content: "·"; position: absolute; left: 2px; color: var(--primary); font-weight: 800; }

/* ---------- 字词卡 ---------- */
.ai-word-head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  background: linear-gradient(120deg, #fff8ec, #fdfdff);
  border: 1px solid #f3e4c8;
  margin-bottom: 20px;
}
.ai-word-big {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: 3px;
  line-height: 1.15;
  color: #2f3852;
}
.ai-word-meta { min-width: 0; }
.ai-word-pinyin { font-size: 15px; color: #b4780f; letter-spacing: 1px; margin-top: 4px; }
.ai-word-structure { font-size: 11px; color: #8c7a58; margin-top: 5px; line-height: 1.6; }
.ai-compare {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 13px;
  margin-bottom: 8px;
  background: #fff;
}
.ai-compare > div { display: flex; align-items: center; gap: 10px; }
.ai-compare-label { font-size: 10px; color: var(--muted); }
.ai-compare strong { font-size: 18px; letter-spacing: 1px; }
.ai-compare strong.wrong { color: var(--red); text-decoration: line-through; text-decoration-thickness: 1px; }
.ai-compare p { font-size: 12px; color: #64708a; line-height: 1.7; margin-top: 6px; }

/* ---------- 练习 ---------- */
.ai-practice { margin-top: 16px; }
.ai-practice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 11px;
  color: var(--muted);
}
.ai-question {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  background: #fff;
}
.ai-question-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ai-question-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f1f2f9;
  color: #5b6478;
  font-size: 10px;
  font-weight: 800;
}
.ai-question-type { font-size: 10px; color: var(--muted); background: #f6f7fc; border-radius: 6px; padding: 3px 7px; }
.ai-question-stem { font-size: 13px; line-height: 1.8; color: #2f3852; margin-bottom: 10px; }
.ai-options { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding: 8px 12px;
  font-size: 12px;
  color: #3c4560;
  transition: .15s;
}
.ai-option span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f4f5fa;
  display: grid;
  place-items: center;
  font-size: 10px;
  color: #7d86a0;
}
.ai-option:hover { border-color: var(--primary); }
.ai-option.correct { border-color: var(--green); background: var(--green-soft); color: #157347; }
.ai-option.correct span { background: #fff; color: var(--green); }
.ai-option.wrong { border-color: var(--red); background: var(--red-soft); color: #a83232; }
.ai-option.wrong span { background: #fff; color: var(--red); }
.ai-option:disabled { cursor: default; }
.ai-answer-row { display: flex; gap: 8px; }
.ai-answer-row .field-input { margin-bottom: 0; }
.ai-answer-row .btn { flex: none; padding: 9px 14px; font-size: 12px; }
.field-input.is-correct { border-color: var(--green); background: #f7fdf9; }
.field-input.is-wrong { border-color: var(--red); background: #fff8f8; }
.ai-question-explain {
  margin-top: 10px;
  padding: 10px 12px;
  background: #f8f9ff;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.7;
  color: #4c5570;
}
.ai-question-explain strong { color: var(--primary); }
.ai-question-explain p { margin-top: 4px; color: #64708a; }

/* ---------- 设置页 ---------- */
.ai-setting-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  background: #fafbff;
  border: 1px dashed #d9dcf2;
  border-radius: 10px;
  padding: 11px 13px;
  margin-top: 10px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .ai-tool-grid { grid-template-columns: 1fr; }
  .ai-tool-card { min-height: 0; }
  .ai-steps { grid-template-columns: 1fr; }
  .ai-hero-badge { display: none; }
  .ai-dims { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .ai-entry-banner { flex-wrap: wrap; align-items: flex-start; }
  .ai-entry-banner .btn { width: 100%; }
  .ai-quick-bar { flex-direction: column; align-items: stretch; }
  .ai-quick-actions { width: 100%; }
  .ai-quick-actions .btn { flex: 1; }
  .ai-hero { padding: 22px 20px; }
  .ai-hero h1 { font-size: 20px; }
  .ai-modal { padding: 0; align-items: flex-end; }
  .ai-modal-card { max-height: 92vh; border-radius: 18px 18px 0 0; }
  .ai-modal-head, .ai-modal-body { padding-left: 18px; padding-right: 18px; }
  .ai-form-row { grid-template-columns: 1fr; }
  .ai-word-head { align-items: flex-start; }
  .ai-word-big { font-size: 36px; }
  .ai-result-head { flex-direction: column; }
  .ai-answer-row { flex-direction: column; }
  .ai-answer-row .btn { width: 100%; }
}

/* 作文页：生成失败时的行内提示 */
.comp-error-note {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid #f3c9c9;
  background: var(--red-soft, #fdecec);
  color: var(--red, #c0392b);
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.7;
}
.comp-error-note strong { font-weight: 700; }
.comp-error-note a, .comp-error-note code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: #fff;
  border: 1px solid #f0d3d3;
  border-radius: 4px;
  padding: 0 4px;
}

/* 作文批改：拍照识别 */
.ai-photo {
  margin: 2px 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafbfe;
}
.ai-photo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.ai-photo-title { font-size: 13px; font-weight: 700; color: #2b3145; }
.ai-photo-tip { font-size: 11.5px; color: var(--muted); }
.ai-photo-body { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ai-photo-actions { display: flex; flex-direction: column; gap: 6px; }
.ai-photo-hint { font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.ai-photo-preview {
  width: 92px;
  height: 92px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.ai-photo-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ai-photo-progress { margin-top: 10px; }
.ai-photo-bar {
  height: 6px;
  border-radius: 999px;
  background: #e8edf7;
  overflow: hidden;
}
.ai-photo-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #5b7cfa, #7b5bfa);
  transition: width .25s ease;
}
.ai-photo-status { margin: 6px 0 0; font-size: 12px; color: #4c5570; }

@media (max-width: 640px) {
  .ai-photo-body { align-items: flex-start; }
  .ai-photo-preview { width: 72px; height: 72px; }
}

/* ---------- 拍照建知识库入口 ---------- */
.kb-entry-banner {
  background: linear-gradient(120deg, #f1fbf5 0%, #f3f8ff 55%, #fdf4ff 100%);
  border-color: #d7ecdf;
}
.kb-entry-banner .ai-entry-mark {
  border-color: #cfe9da;
  color: #0f7a4d;
  font-size: 22px;
  letter-spacing: 0;
}
