/* ========== 第5课 · 专家系统「小医生问诊」可视化演示 ========== */
.es { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
.es-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.es-badge { font-family: var(--font-serif); font-weight: 900; color: var(--acc); font-size: 16px; }
.es-tag { font-size: 12px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--acc), var(--acc2)); border-radius: 20px; padding: 3px 12px; }
.es-tip { font-size: 13px; color: var(--ink3); line-height: 1.75; margin-bottom: 12px; background: #fffdf2; border: 1px dashed #f0c98a; border-radius: 12px; padding: 8px 12px; }
.es-grid { display: grid; grid-template-columns: minmax(230px, 300px) 1fr; gap: 12px; align-items: start; }
.es-left, .es-right { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.es-panel { background: #fff; border: 1px solid var(--rule); border-radius: 14px; padding: 11px 13px; box-shadow: 0 2px 8px -5px rgba(0, 0, 0, .06); }
.es-ptitle { font-size: 13.5px; font-weight: 800; color: var(--ink2); display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; flex-wrap: wrap; }
.es-q { font-family: inherit; font-size: 11px; font-weight: 700; color: var(--acc); background: #eef7f1; border: 1px solid color-mix(in srgb, var(--acc) 35%, #fff); border-radius: 20px; padding: 2px 10px; cursor: pointer; }
.es-syms { display: flex; flex-wrap: wrap; gap: 7px; }
.es-sym { display: inline-flex; align-items: center; gap: 6px; font-family: inherit; font-size: 12.5px; font-weight: 700; color: #45506e; background: #f6f8fd; border: 1.5px solid #e0e5f0; border-radius: 30px; padding: 6px 12px; cursor: pointer; transition: all .15s; }
.es-sym:hover { transform: translateY(-1px); }
.es-sym.on { background: linear-gradient(135deg, var(--acc), var(--acc2)); color: #fff; border-color: transparent; box-shadow: 0 3px 8px rgba(0, 0, 0, .12); }
.es-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.es-btn { font-family: inherit; font-size: 12.5px; font-weight: 700; border-radius: 30px; padding: 8px 15px; cursor: pointer; border: 1.5px solid transparent; transition: all .15s; }
.es-btn:disabled { opacity: .5; cursor: default; }
.es-btn.primary { background: linear-gradient(135deg, var(--acc), var(--acc2)); color: #fff; }
.es-btn.weird { background: linear-gradient(135deg, #b06ad1, #d9a2f2); color: #fff; }
.es-btn.ghost { background: #fff; border-color: #ccd4e6; color: var(--ink3); }
.es-rules { display: flex; flex-direction: column; gap: 7px; }
.es-rule { display: flex; align-items: flex-start; gap: 9px; background: #f6f8fd; border: 1.5px solid #e4e9f3; border-radius: 12px; padding: 7px 10px; transition: all .25s; }
.es-rule.ok { background: #eaf9f0; border-color: #7fd8ab; }
.es-rule.no { background: #f7f4f4; border-color: #e6dede; opacity: .7; }
.es-rid { flex: 0 0 30px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: linear-gradient(135deg, var(--acc), var(--acc2)); color: #fff; font-size: 11px; font-weight: 900; }
.es-rule .es-rb { flex: 1; min-width: 0; }
.es-rule .es-rb b { font-size: 13px; color: #26304f; }
.es-rule .es-rb p { font-size: 11.5px; color: #6a7290; line-height: 1.6; margin-top: 1px; }
.es-rule .es-state { flex: 0 0 auto; font-size: 11.5px; font-weight: 800; color: #8a93b8; }
.es-rule.ok .es-state { color: #1fa86b; }
.es-rule.no .es-state { color: #b0a7a7; }
.es-log { background: #101828; border-radius: 12px; padding: 10px 12px; max-height: 220px; overflow-y: auto; display: flex; flex-direction: column; gap: 5px; }
.es-line { font-size: 12.5px; line-height: 1.6; color: #cdd6e8; }
.es-line.ok { color: #7ee2a8; }
.es-line.no { color: #f2a9a9; }
.es-line.warn { color: #ffd76a; }
.es-line b { font-weight: 800; }
.es-result { min-height: 56px; }
.es-dx-ok { display: flex; flex-direction: column; gap: 8px; }
.es-dx-card { display: flex; align-items: center; gap: 10px; background: #eaf9f0; border: 1.5px solid #7fd8ab; border-radius: 12px; padding: 9px 12px; }
.es-dx-emo { font-size: 26px; }
.es-dx-card b { font-size: 14.5px; color: #157a4a; }
.es-dx-card p { font-size: 12px; color: #3c6a51; line-height: 1.6; margin-top: 1px; }
.es-note { margin-top: 9px; font-size: 12px; color: var(--ink3); line-height: 1.7; background: #eef3ff; border-radius: 10px; padding: 7px 11px; }
.es-result.no .es-fail { font-size: 14px; font-weight: 800; color: #c2493a; background: #fdeeee; border: 1px solid #f2a9a9; border-radius: 12px; padding: 10px 12px; }
.es-result.no .es-note { background: #fdf3e7; }
.es-recap { margin-top: 12px; font-size: 13px; color: var(--ink3); line-height: 1.9; background: #fff7e8; border: 1px dashed #f0c98a; border-radius: 12px; padding: 10px 14px; }
@media (max-width: 780px) { .es-grid { grid-template-columns: 1fr; } }

/* ---- 故事页配图统一「科技感」：深色相框 + 青绿描边（与本课自制示意图同一套视觉） ---- */
.st-card .st-fig img { background:#0A1330; border-color:rgba(47,216,184,.34);
  box-shadow:0 0 0 1px rgba(10,19,48,.08),0 12px 26px -18px rgba(10,19,48,.8); }
