/* 首页启程、任务执行与结果反馈。第一阶段只搬移，不改选择器和值。 */
.start-home { padding-top: 2px; }
.start-hero { min-height: 125px; display: grid; grid-template-columns: 1fr 98px; align-items: center; gap: 10px; margin-bottom: 11px; padding: 18px 14px 16px 20px; overflow: hidden; border: 1px solid rgba(104,145,184,.14); border-radius: 27px; background: linear-gradient(135deg, rgba(231,244,255,.94), rgba(255,242,247,.9)); box-shadow: 0 13px 34px rgba(67,91,121,.08); }
.start-hero .eyebrow { margin: 0; }
.start-hero h1 { margin: 7px 0 5px; font-size: 29px; }
.start-hero p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.start-avatar { position: relative; align-self: stretch; overflow: hidden; }
.start-avatar::before { content: ""; position: absolute; inset: 15px 1px 2px; border-radius: 50%; background: rgba(255,255,255,.7); }
.start-avatar img { position: absolute; z-index: 1; width: 112px; max-width: none; left: 50%; bottom: -22px; transform: translateX(-50%); filter: drop-shadow(0 9px 10px rgba(64,87,116,.14)); }
.start-dialogue { display: grid; gap: 11px; }
.home-ai-bubble { display: grid; grid-template-columns: 42px 1fr; gap: 10px; align-items: start; padding: 13px 14px 14px 10px; border: 1px solid var(--line); border-radius: 7px 21px 21px 21px; background: rgba(255,255,255,.9); box-shadow: 0 9px 25px rgba(70,92,120,.06); }
.home-ai-avatar { width: 42px; height: 42px; overflow: hidden; border-radius: 14px; background: #eef6ff; }
.home-ai-avatar img { width: 51px; max-width: none; margin: -2px 0 0 -5px; }
.home-ai-avatar.mentor img { width: 100%; height: 100%; margin: 0; object-fit: cover; object-position: center top; }
.home-ai-copy > strong { display: block; margin: 1px 0 5px; color: #5c83a7; font-size: 13px; }
.home-ai-copy > p { margin: 0; color: #42556c; font-size: 15px; line-height: 1.6; }
.home-user-bubble { justify-self: end; max-width: 88%; padding: 12px 15px; border-radius: 20px 20px 6px 20px; background: #dceefe; color: #334f6c; font-size: 15px; line-height: 1.55; }
.home-task-compose { padding: 14px; border: 1px solid var(--line); border-radius: 21px; background: rgba(255,255,255,.68); }
.home-task-compose textarea { min-height: 96px; }
.home-method { margin-top: 12px; padding: 13px; border-radius: 17px; background: linear-gradient(135deg, #f0f7ff, #f2faf6); }
.home-method-tag { display: inline-flex; padding: 5px 8px; border-radius: 999px; color: #557c9f; background: white; font-size: 11px; font-weight: 900; }
.home-method h3 { margin: 8px 0 3px; font-size: 17px; }
.home-method > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.home-method .step { padding: 11px 0; }
.mentor-match { position: relative; display: grid; grid-template-columns: 58px 1fr auto; gap: 11px; align-items: center; padding: 13px; overflow: hidden; border: 1px solid rgba(100,142,180,.16); border-radius: 22px; background: linear-gradient(135deg, #e9f5ff, #fff1f5); box-shadow: 0 10px 28px rgba(65,91,121,.08); }
.mentor-match::after { content: "✦"; position: absolute; right: -6px; top: -31px; color: rgba(91,132,170,.08); font-size: 88px; }
.mentor-match > * { position: relative; z-index: 1; }
.mentor-match-photo { width: 58px; height: 58px; border: 3px solid rgba(255,255,255,.86); border-radius: 18px; object-fit: cover; object-position: center top; box-shadow: 0 7px 18px rgba(54,80,108,.13); }
.mentor-match-copy small { display: block; margin-bottom: 4px; color: #6d8baa; font-size: 11px; font-weight: 900; letter-spacing: .04em; }
.mentor-match-copy strong { display: block; font-size: 15px; }
.mentor-match-copy span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.mentor-match-badge { align-self: start; padding: 6px 8px; border-radius: 999px; color: #597d9f; background: rgba(255,255,255,.86); font-size: 10px; font-weight: 900; }
.home-inline-actions { display: grid; gap: 0; }
.home-reset-link { width: 100%; margin-top: 8px; border: 0; color: #71849a; background: transparent; padding: 10px; font-weight: 800; cursor: pointer; }
.plan-label { color: #648bae; font-size: 13px; font-weight: 800; letter-spacing: .07em; }
.task-title { margin: 7px 0 18px; font-size: 21px; line-height: 1.4; }
.step { display: grid; grid-template-columns: 34px 1fr; gap: 11px; padding: 14px 0; border-top: 1px solid var(--line); }
.step:first-of-type { border-top: 0; }
.step-no { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 11px; background: #edf5ff; color: #5b83a8; font-weight: 800; }
.step.active .step-no { background: #26364f; color: white; }
.step strong { display: block; line-height: 1.45; }
.step small { color: var(--muted); line-height: 1.5; }
.done-when { background: #f2faf6; border-radius: 16px; padding: 13px 14px; margin-top: 14px; font-size: 14px; line-height: 1.55; color: #4b7567; }
.execution-ladder { display: grid; grid-template-columns: 1fr 22px 1fr 22px 1fr; align-items: center; margin: 2px 0 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 19px; background: rgba(255,255,255,.76); }
.execution-node { display: grid; justify-items: center; gap: 5px; color: #9aa7b7; font-size: 12px; font-weight: 800; }
.execution-node i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 10px; background: #edf1f5; color: #8b9aab; font-style: normal; }
.execution-node.active { color: #426c92; }
.execution-node.active i { color: white; background: #6598ca; box-shadow: 0 0 0 4px rgba(101,152,202,.13); }
.execution-node.done { color: #5f8878; }
.execution-node.done i { color: white; background: #7eb7a2; }
.execution-line { height: 2px; border-radius: 999px; background: #dbe3eb; }
.execution-line.done { background: #8fbca9; }
.execution-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -6px 1px 15px; color: var(--muted); font-size: 13px; }
.status-pill { flex: 0 0 auto; padding: 6px 10px; border-radius: 999px; color: #547da2; background: #eaf4fd; font-size: 12px; font-weight: 800; }
.status-pill.running { color: #477366; background: #e9f7f0; }
.status-pill.stopped { color: #946774; background: #fff0f4; }
.status-pill.completed { color: #5d718c; background: #eef2ff; }
.stop-button { width: 100%; min-height: 46px; margin-top: 10px; border: 0; background: transparent; color: #8b6672; font-weight: 800; cursor: pointer; }
.stop-scene { padding-top: 2px; }
.stop-scene h2 { margin: 12px 0 7px; font-size: 27px; line-height: 1.3; }
.stop-scene > p { margin: 0 0 15px; color: var(--muted); line-height: 1.65; }
.stop-summary { display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: center; padding: 14px; border-radius: 20px; background: linear-gradient(135deg, #fff2f6, #f2f7ff); }
.stop-summary span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 15px; background: white; font-size: 21px; }
.stop-summary strong { display: block; margin-bottom: 3px; }
.stop-summary small { color: var(--muted); line-height: 1.45; }
.stop-reasons { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 2px; }
.stop-reason { border: 1px solid var(--line); border-radius: 999px; padding: 9px 12px; color: #66788e; background: white; cursor: pointer; }
.stop-reason.selected { color: #7d5260; border-color: #e4aabc; background: #fff1f5; box-shadow: 0 0 0 3px rgba(228,170,188,.13); }
.execution-log { margin-top: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.85); }
.execution-log-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.execution-log-head strong { font-size: 16px; }
.execution-log p { margin: 9px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.execution-log-path { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 6px; margin-top: 14px; }
.execution-log-path span { padding: 9px 5px; border-radius: 12px; color: #8290a2; background: #f1f4f7; text-align: center; font-size: 12px; font-weight: 800; }
.execution-log-path span.reached { color: #477366; background: #eaf7f1; }
.execution-log-path b { color: #a7b3c1; font-size: 14px; }
.timer-orb { width: 188px; height: 188px; margin: 24px auto; border-radius: 50%; display: grid; place-items: center; text-align: center; background: radial-gradient(circle at 35% 30%, #fff 0 10%, #e9f4ff 45%, #c8e0f5 100%); box-shadow: inset 0 0 0 11px rgba(255,255,255,.5), 0 22px 45px rgba(76,118,153,.18); }
.timer-orb strong { font-size: 42px; letter-spacing: -.04em; }
.timer-orb small { display: block; color: #6d86a1; margin-top: 4px; }
.success-scene { text-align: center; padding-top: 8px; }
.glow-ring { position: relative; width: 170px; height: 170px; margin: 8px auto 22px; border-radius: 50%; overflow: hidden; background: radial-gradient(circle, rgba(255,255,255,.95) 0 26%, rgba(240,183,202,.55) 27% 42%, rgba(185,217,246,.58) 43% 60%, transparent 61%); animation: breathe 3s ease-in-out infinite; }
.glow-ring img { position: absolute; width: 176px; max-width: none; left: 50%; bottom: -4px; transform: translateX(-50%); }
@keyframes breathe { 50% { transform: scale(1.035); filter: drop-shadow(0 0 18px rgba(122,170,216,.35)); } }
.success-scene h2 { font-size: 30px; margin: 0 0 10px; }
.success-scene p { color: var(--muted); line-height: 1.65; }
.progress-track { height: 9px; border-radius: 999px; background: #e7eef5; overflow: hidden; margin: 15px 0 7px; }
.progress-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #89b8e1, #a6d6bd); transition: width .6s ease; }
.progress-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; }

/* 对话与任务管理 */
.management-entry { margin: 0 0 18px; }
.record-card { padding: 16px; margin: 12px 0; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.85); overflow-wrap: anywhere; }
.record-open { display: grid; gap: 8px; width: 100%; border: 0; background: transparent; color: var(--ink); text-align: left; font: inherit; cursor: pointer; padding: 0; }
.record-open small, .record-card small { color: var(--muted); }
details { margin-top: 20px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
summary { cursor: pointer; }
.chat-stream .message { white-space: pre-wrap; overflow-wrap: anywhere; }

.journey-card { padding: 18px; border: 1px solid var(--line); border-radius: 26px; background: rgba(255,255,255,.92); box-shadow: 0 12px 35px rgba(38,54,79,.06); }
.journey-card .execution-ladder, .journey-card .home-ai-bubble, .journey-card .home-task-compose { border: 0; box-shadow: none; background: transparent; }
.journey-card .home-ai-bubble { padding-left: 0; padding-right: 0; }
.journey-card .home-task-compose { padding: 0; }
.journey-card .execution-ladder { margin: 0 0 14px; padding: 0; }

.home-scene { background:#fff;min-height:100%; }
.scene-stage { height:clamp(450px,65dvh,640px);position:relative;overflow:hidden;isolation:isolate; }
.scene-background { position:absolute;inset:0;overflow:hidden;z-index:-1; }
.scene-background img { position:absolute;width:143.4%;height:160%;max-width:none;object-fit:cover;left:-8.7%;top:-13.5%; }
.scene-mentor { position:absolute;height:96.5%;width:auto;left:0;top:31%;object-fit:contain; }
.scene-uu { position:absolute;height:54%;width:auto;left:47.5%;top:72.5%;object-fit:contain; }
.scene-top { position:absolute;top:88px;left:18px;right:18px;display:flex;justify-content:space-between;gap:8px;align-items:flex-start;color:white; }
.scene-current-mentor { position:relative;display:flex;align-items:center;gap:7px;width:170px;height:47px;border:2px solid white;border-radius:24px;background:rgba(37,66,127,.65);color:white;cursor:pointer;font:inherit;padding:5px 8px; }
.mentor-crown { position:absolute;top:-24px;left:5px;width:131px;height:27px;object-fit:contain; }
.current-mentor-photo { width:35px;height:35px;object-fit:cover;object-position:top;border-radius:50%; }
.scene-current-mentor strong { display:block;font-size:16px;white-space:nowrap; }
.scene-current-mentor small { display:block;font-size:10px;text-align:left; }
.mentor-switch-arrow { display:grid;place-items:center;border:1px solid white;border-radius:50%;width:28px;height:28px;margin-left:auto; }
.scene-shortcuts { display:flex;gap:10px;margin-top:-6px; }
.scene-shortcuts button { border:0;background:none;padding:0;color:white;font:inherit;cursor:pointer; }
.scene-shortcut-icon { width:58px;height:58px;position:relative;display:block; }
.shortcut-ring { position:absolute;inset:0;width:100%;height:100%;object-fit:contain; }
.shortcut-note { position:absolute;inset:8px;width:42px;height:42px;object-fit:contain;filter:drop-shadow(0 0 8px #ffe3a5); }
.scene-shortcuts small { background:rgba(37,55,94,.35);border-radius:10px;padding:2px 6px;font-size:10px; }
.scene-compose { position:absolute;left:11px;right:11px;bottom:8px;min-height:52px;padding:7px 9px;display:flex;align-items:center;gap:6px;background:rgba(255,255,255,.94);border:1px solid #3175f5;border-radius:12px;box-shadow:0 8px 22px rgba(11,59,146,.12); }
.compose-question { flex-shrink:0; }
.scene-compose textarea { flex:1;min-width:0;min-height:36px;height:36px;resize:none;border:0;background:transparent;padding:6px;font-size:15px;border-radius:0; }
.scene-compose button { display:grid;place-items:center;padding:0;border:0;background:none;cursor:pointer;min-width:44px;min-height:44px; }
.question-library { padding:12px 18px 18px;border-radius:12px 12px 0 0;background:#fff;position:relative;margin-top:-1px; }
.question-library-heading { display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px; }
.question-library-heading strong { font-size:16px;line-height:22px; }
.question-library-heading button { padding:5px 0;border:0;background:none;white-space:nowrap;font:inherit;font-size:12px;cursor:pointer; }
.question-prompt { display:flex;align-items:center;gap:12px;width:100%;min-height:44px;margin:10px 0;padding:8px 12px;border:1px solid transparent;border-radius:22px;background:#f2f2f2;color:#161e29;font:inherit;font-size:13.5px;text-align:left;line-height:20px;cursor:pointer; }
.question-prompt.featured { background:#f1f6ff;border-color:#3175f5;color:#3175f5; }
.question-mark { display:grid;place-items:center;flex-shrink:0;width:30px;height:30px;background:#3175f5;border-radius:50%; }
@media(min-width:600px){.home-scene{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,1fr);align-items:start;background:#edf4fc;}.scene-stage{height:100dvh;}.question-library{align-self:stretch;margin-top:0;padding:90px 22px 24px;border-radius:0;}.question-prompt{min-height:60px;}.scene-compose{bottom:24px;}.scene-mentor{left:-8%;top:24%;height:94%;}.scene-uu{left:55%;top:66%;}.scene-top{left:18px;right:18px;}.scene-shortcuts{gap:4px;}.scene-current-mentor{width:155px;}.scene-shortcut-icon{width:50px;height:50px;}.shortcut-note{width:36px;height:36px;inset:7px;}}
@media(min-width:1100px){.scene-mentor{left:5%;}.scene-top{left:24px;right:24px;}.scene-current-mentor{width:180px;}.scene-shortcuts{gap:12px;}}

.scene-current-mentor { background-image:url('../../assets/figma/home-imgRectangle293.png');background-size:100% 100%; }
.mentor-switch-arrow { position:relative;border:0; }
.mentor-switch-arrow img { position:absolute;inset:0; }
.mentor-switch-arrow span { position:relative; }
.scene-mentor { width:73%;height:auto; }
.scene-uu { width:43%;height:auto; }

.question-library[hidden]{display:none!important;}
.home-scene.questions-closed{display:block;}
.questions-closed .scene-stage{height:100dvh;}
.question-library{max-height:40dvh;overflow-y:auto;overscroll-behavior:contain;}
.question-category-controls{display:flex;gap:8px;align-items:center;}
.question-category-controls button{min-width:28px;min-height:36px;}
@media(min-width:600px){.question-library{max-height:100dvh;}}

.planning-form{display:grid;gap:18px;}.planning-form label{display:grid;gap:8px;font-size:14px;font-weight:600;}.planning-form input,.planning-form select,.planning-form textarea{width:100%;box-sizing:border-box;font:inherit;}.planning-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px;}.planning-screen .page-top small{margin-left:auto;white-space:nowrap;}
.planning-form input,.planning-form select{min-height:48px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--ink);font-weight:400;}.planning-form textarea{min-height:82px;padding:14px;border:1px solid var(--line);border-radius:16px;font-weight:400;}.planning-form input:focus-visible,.planning-form select:focus-visible,.planning-form textarea:focus-visible{outline:3px solid #7aaad8;outline-offset:2px;}

.task-status-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;padding:4px;background:#e7eef5;border-radius:16px;margin:22px 0;}.task-status-tabs button{display:flex;justify-content:center;align-items:center;gap:5px;padding:13px 2px;background:none;color:var(--muted);border:0;border-radius:12px;font:inherit;font-size:13px;white-space:nowrap;cursor:pointer;}.task-status-tabs button[aria-selected=true]{background:white;color:#315475;box-shadow:0 3px 12px #2a445f17;}.task-status-tabs small{font-size:11px;}.task-status-tabs button:focus-visible{outline:3px solid #7aaad8;outline-offset:-2px;}.task-empty{padding:32px 0;text-align:center;}.theme-dark .task-status-tabs{background:#101e2e;}.theme-dark .task-status-tabs button[aria-selected=true]{background:#304862;color:#e5edf5;}
.scene-background img.scene-sky{width:100%;height:39%;left:0;top:0;object-fit:cover;mask-image:linear-gradient(to bottom,#000 0%,#000 42%,transparent 100%);-webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 42%,transparent 100%);}
