/* ============================================================
   v2: 零基础路径 / 试一试 / 截图实操
   ============================================================ */

/* 学习路径轨道 */
.path-rail { display: flex; align-items: center; gap: 0; margin-top: 16px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow-x: auto; }
.path-stage { display: flex; align-items: center; gap: 9px; flex: none; }
.path-stage .ps-dot { width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 800; box-shadow: 0 2px 8px rgba(15,23,42,.12); }
.path-stage b { display: block; font-size: 12px; }
.path-stage small { display: block; font-size: 9.5px; color: var(--faint); white-space: nowrap; }
.path-stage .ps-count { font-size: 9.5px; color: var(--muted); background: var(--surface-2); padding: 1px 6px; border-radius: 20px; margin-left: 3px; }
.path-line { flex: 1; min-width: 28px; height: 1px; background: linear-gradient(90deg, var(--line), var(--line-strong)); margin: 0 14px; }
.beginner-card { border-color: rgba(16,185,129,.22); background: linear-gradient(120deg, rgba(16,185,129,.045), transparent 60%), var(--surface); }
.beginner-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.beginner-item { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); transition: all .16s; }
.beginner-item:hover { border-color: var(--c); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.beginner-item .bi-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 11%, transparent); color: var(--c); flex: none; }
.beginner-item b { display: block; font-size: 12px; color: var(--text); line-height: 1.45; }
.beginner-item small { display: block; font-size: 9.5px; color: var(--faint); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.beginner-item .bi-done { color: var(--success); margin-left: auto; }
.stage-badge { font-size: 9.5px; height: 20px; padding: 0 7px; }
.stage-zero { background: rgba(16,185,129,.1); color: #047857; }
.stage-project { background: rgba(245,158,11,.12); color: #b45309; }
.stage-normal { background: rgba(6,182,212,.08); color: var(--brand); }
[data-theme="dark"] .stage-zero { color: #6ee7b7; }
[data-theme="dark"] .stage-project { color: #fcd34d; }

/* 代码块「试一试」 */
.code-actions { display: inline-flex; align-items: center; gap: 10px; }
.code-try { border: none; background: transparent; color: #a5f3fc; font-size: 10px; cursor: pointer; font-weight: 700; }
.code-try:hover { text-decoration: underline; }
.try-cmd-btn { height: 26px; padding: 0 8px; font-size: 10.5px; }

/* 模拟终端 */
.tryit-head { padding-bottom: 2px; }
.tryit-terminal { border: 1px solid #1e293b; border-radius: 11px; overflow: hidden; background: #0a101c; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.tryit-bar { display: flex; align-items: center; gap: 6px; padding: 8px 11px; background: #111c30; border-bottom: 1px solid rgba(148,163,184,.12); }
.tryit-bar .dot { width: 8px; height: 8px; border-radius: 50%; }
.tryit-bar .red { background: #ef4444; } .tryit-bar .yellow { background: #f59e0b; } .tryit-bar .green { background: #10b981; }
.tryit-bar-title { margin-left: 5px; font-size: 10px; color: #64748b; font-family: var(--mono); }
.tryit-bar .code-copy { margin-left: auto; }
.tryit-output { margin: 0; padding: 12px 14px; min-height: 150px; max-height: 280px; overflow: auto; color: #d7e4f5; font-family: var(--mono); font-size: 11.5px; line-height: 1.8; white-space: pre-wrap; }
.tryit-input-row { display: flex; align-items: center; gap: 7px; padding: 0 14px 12px; }
.tryit-prompt { color: #67e8f9; font-family: var(--mono); font-size: 11.5px; white-space: nowrap; }
.tryit-input { flex: 1; min-width: 0; background: transparent; border: none; outline: none; color: #f0fdff; font-family: var(--mono); font-size: 11.5px; padding: 4px 0; }
.tryit-input::placeholder { color: #475569; }
.lab-steps { display: flex; flex-direction: column; gap: 9px; }
.lab-steps > div { display: flex; align-items: flex-start; gap: 8px; }
.lab-steps b { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(6,182,212,.1); color: var(--brand); font-size: 10px; flex: none; }
.lab-steps span { font-size: 11.5px; color: var(--muted); line-height: 1.6; }

/* 评分点测试命令 */
.test-cmd-panel { margin: 12px 0 10px; border: 1px solid rgba(6,182,212,.24); border-radius: 11px; background: rgba(6,182,212,.035); overflow: hidden; }
.test-cmd-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: rgba(6,182,212,.06); border-bottom: 1px solid rgba(6,182,212,.12); }
.test-cmd-head b { display: block; font-size: 11.5px; color: var(--text); }
.test-cmd-head small { display: block; font-size: 9.5px; color: var(--muted); margin-top: 2px; }
.test-cmd-item { padding: 9px 12px; border-bottom: 1px dashed var(--line); }
.test-cmd-item:last-child { border-bottom: none; }
.test-cmd-label { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: var(--brand-deep); margin-bottom: 5px; }
.test-cmd-label .ic { color: var(--brand); }
.test-cmd-row { display: flex; align-items: center; gap: 7px; margin: 4px 0; }
.test-cmd-row code { flex: 1; min-width: 0; display: block; padding: 6px 8px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); font-family: var(--mono); font-size: 10.5px; color: var(--text-2); overflow-x: auto; white-space: nowrap; }
.test-cmd-copy { flex: none; border: none; background: transparent; color: var(--brand); font-size: 10px; cursor: pointer; font-weight: 700; }
.test-cmd-copy:hover { text-decoration: underline; }
.test-cmd-evidence { font-size: 9.5px; color: var(--faint); margin-top: 4px; line-height: 1.6; }

/* 截图上传 */
.uploader { margin-top: 6px; }
.upload-zone { border: 1.5px dashed var(--line-strong); border-radius: 11px; background: var(--surface-2); padding: 18px 14px; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; color: var(--muted); text-align: center; transition: all .16s; }
.upload-zone:hover, .upload-zone.drag { border-color: var(--brand-2); background: rgba(6,182,212,.05); color: var(--brand); }
.upload-zone b { font-size: 12.5px; color: var(--text-2); }
.upload-zone small { font-size: 10.5px; color: var(--faint); max-width: 420px; }
.upload-zone .ic { color: var(--brand); }
.upload-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 9px; }
.upload-item { position: relative; aspect-ratio: 16/10; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-3); }
.upload-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.upload-remove { position: absolute; right: 4px; top: 4px; width: 20px; height: 20px; border-radius: 50%; border: none; background: rgba(15,23,42,.7); color: #fff; display: grid; place-items: center; cursor: pointer; }
.upload-remove:hover { background: var(--danger); }
.shot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 7px; margin: 6px 0; }
.shot-grid a { display: block; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; aspect-ratio: 16/10; background: var(--surface-3); }
.shot-grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.shot-grid a:hover img { transform: scale(1.03); }
.q-evidence .upload-zone { padding: 14px; }

/* 数据洞察 AI / 实操 */
.ai-status-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface-2); font-size: 11.5px; }
.ai-status-card .ai-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(16,185,129,.1); }
.ai-status-card.off .ai-dot { background: var(--warning); box-shadow: 0 0 0 4px rgba(245,158,11,.1); }

@media (max-width: 860px) {
  .beginner-grid { grid-template-columns: 1fr; }
  .path-rail { padding: 11px; }
  .path-stage small { display: none; }
  .path-line { min-width: 12px; margin: 0 7px; }
  .upload-list { grid-template-columns: repeat(3, 1fr); }
  .shot-grid { grid-template-columns: repeat(2, 1fr); }
}
