/*
 * [INPUT]: learning-workflow.js 的四步路径、文字工具和公开提示词语义结构，styles.css 的品牌基线
 * [OUTPUT]: 横向/纵向连接路径、可读制卡代码块与句子精读布局；不影响原报告和错题表
 * [POS]: public 的学习路径局部样式；所有选择器限定 learning 前缀，避免侵入工作台旧布局
 * [PROTOCOL]: 变更时更新此头部，然后检查 CLAUDE.md
 */

/* ==== 工作台下方的学习路径；编号只表示顺序，不表示完成状态 ==== */
.learning-workflow{margin-top:38px;padding-top:28px;border-top:1px solid var(--border)}
.learning-workbench-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.learning-workflow-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:22px}
.learning-workflow-heading h2{font-size:21px;margin-top:6px;letter-spacing:-.4px}
.learning-workflow-heading>p{max-width:330px;font-size:12px;color:#7b879a;line-height:1.9}
.learning-flow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;padding:0;margin:0;list-style:none}
.learning-step{position:relative;display:flex;flex-direction:column;align-items:flex-start;min-width:0;padding:22px 18px 18px;background:#fff;border:1px solid var(--border);border-radius:12px}
.learning-step:not(:last-child)::after{content:"→";position:absolute;right:-18px;top:53px;color:#9eafcc;font-size:18px;z-index:1}
.learning-step-number{display:grid;place-items:center;width:35px;height:35px;background:#edf3ff;color:#416cca;border-radius:10px;font-size:13px;font-weight:650;letter-spacing:1px;margin-bottom:17px}
.learning-step-kind{font-size:10px;color:#7b879a;line-height:1.6;min-height:32px}
.learning-step h3{font-size:16px;line-height:1.6;margin:4px 0 9px;font-weight:600}
.learning-step>p{font-size:12px;color:#758299;line-height:1.9;margin-bottom:20px}
.learning-step-link{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;margin-top:auto;padding:11px 0 0;border-top:1px solid #edf0f5;background:transparent;color:#416cca;font-size:12px;text-align:left;font-weight:550}
.learning-step-link:hover{color:#2456c7}
.learning-workflow-loop{margin-top:17px;text-align:center;font-size:12px;color:#7b879a;line-height:1.8}
.learning-workflow-loop span{color:#6f8dc1;margin-right:6px}

/* ==== 同一个学习入口承载公开提示词与显式文字处理 ==== */
.learning-page-heading h1{margin-top:6px}
.learning-page-heading p{max-width:760px}
.learning-tool-nav{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 24px}
.learning-tool-nav button{padding:9px 13px;border:1px solid var(--border);border-radius:8px;background:#fff;color:#76849a;font-size:12px;line-height:1.5}
.learning-tool-nav button[aria-current=page]{color:#3166df;background:#edf3ff;border-color:#d5e2fb;font-weight:600}
.learning-tool-page{display:grid;gap:24px}
.learning-input,.learning-prompt,.learning-result,.learning-image-guide{padding:26px;min-width:0}
.learning-section-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:17px}
.learning-section-heading h2{margin-top:5px}
.learning-section-heading .section-kicker{font-size:10px}
.learning-model-line{display:flex;align-items:center;justify-content:space-between;gap:14px;border-radius:8px;background:#f5f8fd;padding:12px 14px;margin-bottom:18px}
.learning-model-line p{font-size:12px;color:#64748b;overflow-wrap:anywhere}
.learning-model-line button{flex-shrink:0;font-size:12px}
.learning-model-tip{font-size:12px;color:#7b879a;margin:-6px 0 20px}
.learning-input .label-row{align-items:center}
.learning-input .label-row label{margin-bottom:9px}
.learning-input .label-row>span{white-space:nowrap}
.learning-input textarea{font-family:Georgia,"Times New Roman",serif;font-size:16px;line-height:1.9;min-height:210px}
.learning-input textarea[readonly]{background:#f6f8fc;color:#718096}
.learning-format-note{font-size:12px;line-height:1.85;color:#758299;padding:13px 0;border-top:1px solid #edf0f5}
.learning-form-actions{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:10px}
.learning-form-actions p{max-width:470px}
.learning-status{font-size:12px;color:#6a7a91;line-height:1.85;margin-top:15px}
.learning-restart{margin-top:15px}
.learning-copy-hint{font-size:12px;color:#7b879a;line-height:1.9}
.learning-prompt-details{margin-top:18px}
.learning-prompt-details summary{cursor:pointer;color:#526a94;font-size:13px;line-height:1.8}
.learning-prompt-only{display:flex;justify-content:flex-end;margin-top:12px}
.learning-code{max-width:100%;padding:18px;background:#f7f9fc;border:1px solid #e7ecf4;border-radius:9px;overflow:auto;line-height:1.8;color:#344563;font:13px/1.85 ui-monospace,SFMono-Regular,Consolas,monospace}
.learning-code code{font:inherit}
.learning-prompt-code{white-space:pre-wrap;overflow-wrap:anywhere;margin:14px 0 0;max-height:520px}
.learning-anki-output{white-space:pre;margin:0 0 14px;max-height:430px}
.learning-result-actions{display:flex;gap:8px;flex-wrap:wrap}
.learning-next{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-top:20px;padding-top:16px;border-top:1px solid #e8edf5}
.learning-next p{color:#7b879a;font-size:12px}
.learning-next button{font-size:12px;flex-shrink:0}
.learning-review-results{min-width:0}
.learning-review-item{padding:24px;margin-bottom:16px;min-width:0}
.learning-review-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.learning-review-heading h3{font-size:14px;color:#718096}
.learning-verdict{font-size:11px;border-radius:5px;padding:4px 8px;line-height:1.5}
.learning-verdict.correct{color:#3c7561;background:#eef8f3}
.learning-verdict.needs-revision{color:#a87332;background:#fff7e9}
.learning-original{font-family:Georgia,"Times New Roman",serif;font-size:17px;line-height:1.85;color:#354765;overflow-wrap:anywhere}
.learning-conclusion{font-weight:600;font-size:14px;line-height:1.9;margin:16px 0 12px;color:#415471}
.learning-analysis p,.learning-issues p{font-size:13px;line-height:1.95;color:#68778e;margin-top:9px;overflow-wrap:anywhere}
.learning-issues{padding:14px 18px 14px 32px;border-radius:8px;background:#fff8ee;color:#a57940}
.learning-issues li+li{margin-top:12px}
.learning-issues q{font-family:Georgia,"Times New Roman",serif;color:#8b5e2d;font-size:15px;overflow-wrap:anywhere}
.learning-review-item h4{font-size:12px;font-weight:500;color:#7b879a;margin:20px 0 10px}
.learning-revised{margin:0;padding:13px 16px;border-left:3px solid #a6bee8;background:#f4f8ff;border-radius:0 7px 7px 0;font-family:Georgia,"Times New Roman",serif;font-size:17px;line-height:1.9;color:#354765;overflow-wrap:anywhere}
.learning-revised b{color:#265eac;font-weight:700}
.learning-image-steps{padding-left:23px;margin:20px 0 0}
.learning-image-steps li{padding-left:7px;color:#5b73a0;margin-top:18px}
.learning-image-steps strong{font-size:14px;color:#435a7c;font-weight:600}
.learning-image-steps p{font-size:13px;color:#7b879a;margin-top:4px;line-height:1.9}

/* ==== 窄屏以纵向箭头保持步骤顺序，结果代码仍可横向阅读 ==== */
@media(max-width:760px){
  .learning-workflow-heading{align-items:flex-start;flex-direction:column;gap:10px}
  .learning-workflow-heading>p{max-width:none}
  .learning-flow{grid-template-columns:minmax(0,1fr);gap:24px}
  .learning-step{padding:20px 20px 18px}
  .learning-step:not(:last-child)::after{content:"↓";top:auto;right:50%;bottom:-23px;transform:translateX(50%);font-size:18px}
  .learning-step-number{position:absolute;top:20px;left:20px;margin:0}
  .learning-step-kind,.learning-step h3{margin-left:49px}
  .learning-step-kind{min-height:0;line-height:1.5}
  .learning-step h3{margin-top:4px;margin-bottom:14px}
  .learning-step>p{margin-bottom:16px}
}
@media(max-width:540px){
  .learning-input,.learning-prompt,.learning-result,.learning-image-guide,.learning-review-item{padding:18px}
  .learning-section-heading{align-items:flex-start;flex-direction:column;gap:12px}
  .learning-form-actions,.learning-next{align-items:flex-start;flex-direction:column;gap:12px}
  .learning-form-actions>.button{width:100%}
  .learning-result-actions{width:100%}
  .learning-result-actions .button{flex:1}
  .learning-model-line{align-items:flex-start;flex-direction:column;gap:8px}
  .learning-tool-nav{gap:6px}
  .learning-tool-nav button{padding:8px 10px;font-size:11px}
  .learning-original,.learning-revised{font-size:16px}
  .learning-code{padding:14px;font-size:12px}
  .learning-workflow-heading h2{font-size:19px}
}
