/* 学伴智能体 · 学生、家长与职场小程序原型。组件共用颜色与触控规范。 */
:root {
  color-scheme: light;
  --blue: #2765dc; --deep: #234e99; --blue-soft: #e4f1ff;
  --yellow: #ffc857; --yellow-soft: #fff4d4; --mint: #bdebd9;
  --green: #15785f; --green-soft: #e2f6ee; --coral: #ff806b;
  --success: #25835c; --red: #c74f47; --red-soft: #fff0ec;
  --page: #f2f8ff; --white: #fff; --ink: #243c55;
  --muted: #60758a; --line: #dce8f2; --radius: 20px;
  --font: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: #edf3fa; color: var(--ink); font: 14px/1.6 var(--font); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { min-height: 44px; cursor: pointer; color: inherit; }
button:disabled { cursor: default; opacity: .55; }
a { color: var(--blue); text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--blue); outline-offset: 3px;
}
h1, h2, h3, h4, p { margin: 0; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
.icon { display: inline-block; width: 24px; height: 24px; flex: 0 0 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.buddy { display: block; width: 100px; height: 110px; flex-shrink: 0; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.studio-header { height: 76px; padding: 0 28px; display: flex; align-items: center; gap: 14px; background: var(--white); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand > .buddy { width: 43px; height: 48px; }
.brand-icon { display: block; width: 44px; height: 44px; border-radius: 13px; flex-shrink: 0; }
.brand h1 { font-size: 19px; line-height: 1.4; color: var(--deep); font-weight: 800; }
.brand p { font-size: 12px; color: var(--muted); }
.mobile-prototype-mark { display: none; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--yellow-soft); color: var(--deep); }
.brand-mark .buddy { width: 35px; height: 38px; }
.studio-title { font-size: 18px; font-weight: 800; letter-spacing: .02em; color: var(--deep); }
.studio-subtitle { font-size: 12px; color: var(--muted); }
.studio-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.studio-version { padding: 4px 10px; border-radius: 8px; color: var(--green); background: var(--green-soft); font-size: 12px; font-weight: 700; }
.studio-shell { display: grid; grid-template-columns: 238px minmax(410px, 1fr) 280px; height: calc(100dvh - 76px); min-height: 0; }
.page-rail, .spec-panel { background: var(--white); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.page-rail { padding: 18px 14px 26px; border-right: 1px solid var(--line); }
.rail-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 800; margin: 0 8px 12px; }
.rail-footer { margin: 22px 6px 0; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: var(--muted); }
.rail-tools { margin: 0 4px 16px; }
.rail-tools input { width: 100%; min-height: 44px; padding: 10px 12px; background: var(--page); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font-size: 14px; }
.page-group { margin-bottom: 14px; }
.page-group-title { display: flex; justify-content: space-between; gap: 8px; padding: 8px; font-size: 12px; font-weight: 700; color: var(--muted); }
.page-link { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 44px; padding: 9px 10px; margin: 2px 0; text-align: left; border: 0; border-radius: 11px; background: transparent; color: var(--ink); font-size: 13px; }
.page-link:hover { background: var(--page); }
.page-link.active { background: var(--blue-soft); color: var(--deep); font-weight: 800; }
.page-link .page-code { flex: 0 0 29px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.page-link.active .page-code { color: var(--blue); }
.page-link .page-name { flex: 1; }
.page-link > span:first-child { flex: 0 0 29px; font-size: 11px; font-variant-numeric: tabular-nums; color: var(--muted); }
.page-count { margin-left: auto; font-size: 12px; color: var(--muted); }
.preview-pane { min-width: 0; min-height: 0; overflow: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; background-image: radial-gradient(#d6e3f1 1px, transparent 1px); background-size: 20px 20px; }
.preview-heading { width: 390px; max-width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-shrink: 0; }
.preview-heading h2 { font-size: 17px; font-weight: 800; color: var(--deep); }
.preview-heading .eyebrow { font-size: 11px; margin: 0; }
.preview-modes { display: flex; gap: 6px; }
.preview-modes .chip { padding: 8px 10px; font-size: 12px; }
.preview-disclaimer { max-width: 460px; flex-shrink: 0; text-align: center; color: var(--muted); font-size: 11px; line-height: 1.5; }
.preview-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.preview-meta strong { color: var(--deep); }
.phone { position: relative; width: 390px; max-width: 100%; height: min(820px, calc(100dvh - 140px)); min-height: 0; flex-shrink: 1; padding: 10px; background: #202631; border: 1px solid #566171; border-radius: 48px; box-shadow: inset 0 0 0 2px #414b59, inset 0 0 0 4px #141923, 0 22px 48px #172c4430, 0 5px 12px #172c4420; }
.phone-screen { display: flex; flex-direction: column; position: relative; width: 100%; height: 100%; min-height: 0; overflow: hidden; border: 1px solid #0f1620; border-radius: 37px; background: var(--page); }
.device-button { position: absolute; width: 4px; border-radius: 3px; background: linear-gradient(90deg, #707b8a, #323c4a); box-shadow: 0 1px 2px #14203340; pointer-events: none; }
.device-silent { top: 88px; left: -4px; height: 22px; }
.device-volume-up { top: 131px; left: -4px; height: 44px; }
.device-volume-down { top: 189px; left: -4px; height: 44px; }
.device-power { top: 147px; right: -4px; height: 68px; }
.statusbar { position: relative; height: 46px; flex: 0 0 46px; padding: 9px 22px 5px; display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 750; background: var(--white); }
.device-island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 88px; height: 24px; display: flex; align-items: center; justify-content: center; gap: 9px; border-radius: 16px; background: #141923; box-shadow: inset 0 1px 2px #0008; pointer-events: none; }
.device-speaker { width: 36px; height: 3px; border-radius: 3px; background: #343d4a; }
.device-camera { width: 8px; height: 8px; border: 2px solid #30394b; border-radius: 50%; background: #142b47; box-shadow: inset 1px 1px 1px #7792af70; }
.status-icons { display: flex; align-items: center; gap: 5px; }
.status-icons > i { width: 13px; height: 9px; background: linear-gradient(to right, #243c55 0 19%, transparent 19% 27%, #243c55 27% 46%, transparent 46% 54%, #243c55 54% 73%, transparent 73% 81%, #243c55 81%); clip-path: polygon(0 75%, 19% 75%, 19% 100%, 27% 100%, 27% 50%, 46% 50%, 46% 100%, 54% 100%, 54% 25%, 73% 25%, 73% 100%, 81% 100%, 81% 0, 100% 0, 100% 100%, 0 100%); }
.battery { width: 20px; height: 9px; padding: 1px; border: 1px solid currentColor; border-radius: 2px; }
.battery::before { content: ""; display: block; height: 100%; width: 80%; background: currentColor; border-radius: 1px; }
.status-icons .icon { width: 14px; height: 14px; flex-basis: 14px; stroke-width: 2; }
.appbar { min-height: 54px; flex-shrink: 0; padding: 3px 12px; display: flex; align-items: center; gap: 6px; background: var(--white); border-bottom: 1px solid #e8f0f7; }
.appbar-title, #app-title { flex: 1; min-width: 0; font-size: 16px; font-weight: 800; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.back-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; }
.back-btn:hover { background: var(--page); }
.appbar-spacer { width: 44px; flex-shrink: 0; }
.wechat-capsule { display: flex; align-items: center; justify-content: center; gap: 11px; min-width: 80px; min-height: 36px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 24px; background: var(--white); }
button.wechat-capsule { min-height: 44px; }
.capsule-divider { height: 16px; width: 1px; background: var(--line); }
.wechat-capsule > i { width: 1px; height: 17px; background: var(--line); }
.capsule-circle { width: 15px; height: 15px; border: 2px solid var(--ink); border-radius: 50%; position: relative; }
.capsule-circle::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--ink); }
.screen-body { flex: 1; min-height: 0; min-width: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: 18px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; overflow-wrap: anywhere; }
.screen-body > * + * { margin-top: 16px; }
.tabbar { display: flex; flex-shrink: 0; min-height: 70px; gap: 6px; padding: 8px 12px 6px; background: var(--white); border-top: 1px solid var(--line); }
.tab-item { flex: 1; min-width: 0; min-height: 52px; border: 0; border-radius: 14px; background: transparent; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 12px; }
.tab-item.active { color: var(--blue); font-weight: 800; background: var(--blue-soft); }
.home-indicator { height: 23px; flex: 0 0 23px; background: var(--white); display: grid; place-items: center; padding-bottom: 3px; }
.home-indicator::before { content: ""; width: 118px; height: 4px; border-radius: 4px; background: #202631; }
.eyebrow { display: block; color: var(--green); font-size: 12px; font-weight: 750; letter-spacing: .04em; margin-bottom: 5px; }
.page-heading { font-size: 14px; line-height: 1.6; font-weight: 400; color: var(--ink); }
.page-heading h2 { font-size: 25px; line-height: 1.35; font-weight: 800; color: var(--deep); letter-spacing: -.025em; }
.page-heading p { margin-top: 8px; font-size: 14px; }
.page-heading + p { margin-top: 8px; }
.section-title { font-size: 17px; font-weight: 800; color: var(--ink); line-height: 1.4; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.section-head .btn { min-height: 44px; padding: 6px 0; border: 0; background: transparent; font-size: 12px; color: var(--blue); }
.muted { color: var(--muted); }
.tiny { font-size: 12px; line-height: 1.55; }
.danger { color: var(--red); }
.success { color: var(--green); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.grid-2, .grid-3 { display: grid; gap: 10px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.btn { min-height: 48px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 2px solid transparent; border-radius: 14px; padding: 10px 16px; font-weight: 750; font-size: 15px; line-height: 1.4; background: var(--white); transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease; text-align: center; }
.btn.primary { background: var(--yellow); color: var(--ink); border-color: var(--yellow); box-shadow: 0 3px 0 #e0ac3f; }
.btn.blue { background: var(--blue); color: var(--white); border-color: var(--blue); box-shadow: 0 3px 0 #2054b8; }
.btn.secondary { background: var(--white); border-color: var(--line); color: var(--deep); }
.btn.text { background: transparent; border-color: transparent; color: var(--blue); box-shadow: none; padding: 8px 5px; font-size: 14px; }
.btn.wechat { background: #087e48; color: var(--white); border-color: #087e48; }
.btn.danger { color: var(--red); background: var(--red-soft); border-color: #f6d8d1; }
.btn.text.danger { color: var(--red); border-color: transparent; background: transparent; }
.btn:active:not(:disabled) { transform: translateY(2px); box-shadow: none; }
.btn.full { width: 100%; }
.btn .icon { width: 20px; height: 20px; flex-basis: 20px; }
.text-btn { background: transparent; border: 0; padding: 8px 4px; color: var(--blue); font-weight: 700; }
.card { padding: 16px; background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); box-shadow: 0 3px 0 #234e9905; min-width: 0; }
.card > p + p { margin-top: 8px; }
.card > h2 { font-size: 20px; line-height: 1.4; color: var(--deep); }
.card > h3 { font-size: 16px; }
.card > h2 + p, .card > h3 + p, .card > .row + p { margin-top: 8px; }
.card > .progress, .card > .chips, .card > .steps, .card > .field { margin-top: 14px; }
.card > .field { margin-bottom: 14px; }
.card > .btn { margin-top: 14px; }
.hero { position: relative; padding: 20px 119px 20px 18px; min-height: 150px; border: 2px solid #cee3f8; border-radius: 23px; background: var(--blue-soft); }
.hero .buddy { position: absolute; right: 9px; bottom: 15px; }
.hero-copy { position: relative; z-index: 1; min-width: 0; }
.hero-copy h2, .hero-copy h3 { font-size: 22px; line-height: 1.35; font-weight: 800; color: var(--deep); }
.hero-copy p { margin-top: 8px; font-size: 13px; }
.hero-copy .btn { margin-top: 14px; padding: 9px 12px; font-size: 14px; }
.hero.mint { background: var(--green-soft); border-color: #c7eadd; }
.hero.mint h2, .hero.mint h3 { color: var(--green); }
.hero.yellow { background: var(--yellow-soft); border-color: #f5e3b5; }
.hero.no-buddy { padding-right: 18px; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 9px; color: var(--muted); background: var(--page); font-size: 12px; font-weight: 700; line-height: 1.4; }
.pill.blue { background: var(--blue-soft); color: var(--deep); }
.pill.green { background: var(--green-soft); color: var(--green); }
.pill.yellow { background: var(--yellow-soft); color: #725010; }
.pill.red { background: var(--red-soft); color: #a63e37; }
.stat-number { font-size: 27px; font-weight: 800; color: var(--deep); line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat-number small { font-size: 12px; font-weight: 500; margin-left: 4px; color: var(--muted); }
.metric-card { padding: 14px 12px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); }
.metric-card .stat-number { margin-top: 5px; }
.metric-card > strong { display: block; }
.metric-card > span { display: block; font-size: 12px; margin-top: 6px; color: var(--muted); }
.grid-3 .stat-number { font-size: 24px; white-space: nowrap; }
.task-card { display: flex; gap: 12px; align-items: flex-start; padding: 15px; border: 2px solid var(--line); border-radius: 18px; background: var(--white); }
button.task-card { width: 100%; text-align: left; }
.task-icon, .menu-icon { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 14px; background: var(--blue-soft); color: var(--blue); }
.task-icon.green, .menu-icon.green { background: var(--green-soft); color: var(--green); }
.task-icon.yellow, .menu-icon.yellow { background: var(--yellow-soft); color: #825a0d; }
.task-info { flex: 1; min-width: 0; }
.task-info h3 { font-size: 15px; font-weight: 750; }
.task-info p { margin-top: 3px; font-size: 12px; color: var(--muted); }
.task-info > strong { display: block; font-size: 14px; font-weight: 750; }
.task-info > small { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.task-end { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; flex-shrink: 0; }
.task-end .pill { white-space: nowrap; }
.task-end .icon { width: 18px; height: 18px; color: var(--muted); }
.task-info .progress { margin-top: 10px; }
.progress { height: 8px; width: 100%; border-radius: 10px; background: #e8eff7; overflow: hidden; }
.progress-fill { display: block; height: 100%; max-width: 100%; border-radius: inherit; background: var(--blue); }
.progress-fill.green { background: var(--success); }
.progress-fill.yellow { background: var(--yellow); }
.journey { display: flex; align-items: flex-start; gap: 4px; padding: 16px 4px 7px; }
.journey-node { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; text-align: center; }
.journey-node > span:first-child, .journey-node > b, .journey-dot { display: grid; place-items: center; width: 35px; height: 35px; border: 2px solid var(--line); border-radius: 13px; background: var(--white); font-weight: 800; }
.journey-node.done > span:first-child, .journey-node.done > b, .journey-node.done .journey-dot { border-color: #a6d7c3; background: var(--mint); color: var(--green); }
.journey-node.current > span:first-child, .journey-node.current > b, .journey-node.current .journey-dot { border-color: #eab442; background: var(--yellow); color: var(--ink); box-shadow: 0 3px 0 #f0d48f; }
.journey-node small { font-size: 12px; }
.journey-node.current { color: var(--ink); font-weight: 750; }
.journey-line { flex: .48; height: 3px; margin-top: 17px; background: var(--line); border-radius: 3px; }
.journey-line.done { background: #a6d7c3; }
.option { display: flex; width: 100%; align-items: center; gap: 11px; padding: 12px 14px; min-height: 54px; background: var(--white); border: 2px solid var(--line); border-radius: 15px; text-align: left; font-size: 15px; }
.option + .option { margin-top: 10px; }
.option.selected { background: var(--blue-soft); border-color: var(--blue); color: var(--deep); }
.option.correct { background: var(--green-soft); border-color: var(--success); color: var(--green); }
.option.wrong { background: var(--red-soft); border-color: var(--red); color: #a63e37; }
.option-key { display: grid; place-items: center; flex: 0 0 28px; height: 28px; border-radius: 9px; background: var(--page); font-weight: 800; }
.option-mark { flex: 0 0 23px; width: 23px; height: 23px; border: 2px solid var(--line); border-radius: 8px; display: grid; place-items: center; background: var(--white); }
.option.selected .option-mark { color: var(--white); background: var(--blue); border-color: var(--blue); }
.option-mark .icon { width: 18px; height: 18px; }
.option > span:last-child { flex: 1; min-width: 0; }
.option small { display: block; font-size: 12px; font-weight: 400; margin-top: 5px; color: var(--muted); }
.field { display: block; min-width: 0; }
.field > label, .field > span, .field-label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 700; }
.input, .field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 12px; border: 2px solid var(--line); border-radius: 13px; background: var(--white); color: var(--ink); font-size: 16px; }
textarea.input, .field textarea { resize: vertical; min-height: 105px; }
.input::placeholder, input::placeholder, textarea::placeholder { color: #60758a; opacity: 1; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 13px; min-height: 44px; border: 2px solid var(--line); border-radius: 13px; color: var(--ink); background: var(--white); font-size: 14px; }
.chip.active { background: var(--blue-soft); border-color: var(--blue); color: var(--deep); font-weight: 750; }
.checkbox-line { display: flex; align-items: center; gap: 9px; min-height: 44px; font-size: 12px; color: var(--muted); }
.checkbox-line input { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--blue); }
.menu-row { display: flex; align-items: center; gap: 12px; min-height: 60px; width: 100%; padding: 10px 0; border: 0; background: transparent; text-align: left; }
.menu-row > span:not(.menu-icon) { flex: 1; min-width: 0; }
.menu-row > .icon:last-child { color: var(--muted); width: 18px; height: 18px; flex-basis: 18px; }
.avatar { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 15px; background: var(--blue-soft); color: var(--deep); font-size: 18px; font-weight: 800; border: 2px solid var(--line); overflow: hidden; }
.avatar.large { width: 68px; height: 68px; border-radius: 22px; font-size: 26px; }
.avatar .buddy { width: 100%; height: 100%; }
.avatar.large .buddy { width: 100%; height: 100%; }
.list-divider { border: 0; height: 1px; margin: 8px 0; background: var(--line); }
.menu-row + .menu-row { border-top: 1px solid var(--line); }
.menu-card { padding-top: 5px; padding-bottom: 5px; }
.speech { display: flex; align-items: flex-start; gap: 9px; }
.bubble { flex: 1; min-width: 0; background: var(--white); border: 2px solid var(--line); padding: 13px 14px; border-radius: 5px 17px 17px 17px; line-height: 1.7; }
.bubble.me { margin-left: 36px; border-color: var(--blue); background: var(--blue); color: var(--white); border-radius: 17px 5px 17px 17px; }
.speech .avatar { width: 35px; height: 35px; border-radius: 12px; }
.speech > .buddy { width: 54px; height: 60px; }
.speech > p, .speech > div { flex: 1; min-width: 0; }
.card > .speech { margin-top: 12px; padding: 12px; border-radius: 14px; background: var(--yellow-soft); color: #725010; }
.chart { display: block; width: 100%; height: auto; margin: 8px auto 0; }
.radar-area { fill: var(--blue); fill-opacity: .28; stroke: none; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--font); }
.radar { max-width: 340px; }
.chart-legend { display: flex; justify-content: center; gap: 14px; margin-top: 8px; font-size: 12px; }
.legend-dot { display: inline-block; width: 8px; height: 8px; margin-right: 5px; background: var(--blue); border-radius: 3px; }
.bar-chart { height: 148px; display: flex; gap: 12px; align-items: flex-end; padding-top: 20px; }
.bar-column { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.bar { width: min(100%, 28px); min-height: 4px; border-radius: 8px 8px 3px 3px; background: #a8c9f8; }
.bar.current { background: var(--blue); }
.bar-chart.seven { gap: 8px; }
.fraction-model { display: block; width: 100%; max-width: 300px; height: auto; margin: 16px auto; }
.lesson-stage { background: var(--white); border: 2px solid #cee3f8; border-radius: 20px; padding: 22px 18px; min-height: 245px; color: var(--ink); }
.lesson-stage h2 { color: var(--deep); font-size: 23px; line-height: 1.4; font-weight: 800; }
.lesson-stage p { margin-top: 12px; font-size: 15px; }
.lesson-controls { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.lesson-controls .btn { flex: 1; }
.lesson-thumbnails { position: relative; display: flex; align-items: stretch; gap: 10px; max-width: 100%; overflow-x: auto; padding: 3px 2px 9px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #bfd2e8 transparent; }
.lesson-thumbnail { display: flex; flex: 0 0 144px; flex-direction: column; gap: 6px; min-width: 0; padding: 6px; border: 2px solid var(--line); border-radius: 14px; background: var(--white); text-align: left; scroll-snap-align: start; transition: border-color 160ms, background 160ms; }
.lesson-thumbnail.active { border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 2px 0 #bdd3f4; }
.lesson-thumbnail-preview { display: flex; flex-direction: column; justify-content: center; width: 100%; height: 48px; overflow: hidden; padding: 5px; border: 1px solid #e4ecf5; border-radius: 8px; background: var(--white); }
.lesson-mini-title { display: block; flex-shrink: 0; color: var(--deep); font-size: 7px; line-height: 1.4; font-weight: 800; }
.lesson-thumbnail-preview .fraction-model { display: block; width: 100%; height: 34px; margin: 0; }
.lesson-thumbnail-preview .fraction-model text { display: none; }
.lesson-thumbnail-title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; line-height: 1.5; font-weight: 750; color: var(--ink); }
.lesson-thumbnail-meta { display: flex; justify-content: space-between; gap: 4px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.lesson-thumbnail-meta b { border-radius: 5px; padding: 0 4px; background: var(--yellow); color: var(--ink); font-weight: 750; }
.lesson-thumbnails-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); overflow: visible; }
.lesson-thumbnails-grid .lesson-thumbnail { width: 100%; }
.lesson-thumbnails-grid .lesson-thumbnail-preview { height: 84px; }
.lesson-screen > * + * { margin-top: 10px; }
.student-lesson { min-height: 180px; padding: 12px 16px; }
.student-lesson h2 { font-size: 20px; }
.student-lesson .fraction-model { height: 76px; margin: 8px auto 0; }
.student-lesson .lesson-diagram > p { margin-top: 4px; font-size: 13px; line-height: 1.5; text-align: center; color: var(--muted); }
.lesson-actions { display: flex; align-items: stretch; gap: 8px; }
.lesson-actions .btn { flex: 1; width: auto; min-width: 0; padding: 9px 7px; font-size: 13px; }
.lesson-actions .btn + .btn { margin: 0; }
.lesson-transcript { padding: 15px; border: 1px solid #d3e3f5; border-radius: 18px; background: var(--white); }
.lesson-transcript-header { display: flex; align-items: center; gap: 9px; padding-bottom: 12px; border-bottom: 1px solid #e8f0f7; }
.lesson-transcript-header .buddy { width: 40px; height: 42px; }
.lesson-transcript-header > div { flex: 1; min-width: 0; }
.lesson-transcript-header strong { display: block; font-size: 14px; }
.lesson-transcript-header div > span { display: block; color: var(--muted); font-size: 12px; }
.lesson-transcript-header > .pill { padding: 4px 7px; font-size: 12px; }
.lesson-transcript-content { position: relative; min-height: 200px; max-height: 232px; overflow: hidden; padding-top: 14px; }
.lesson-transcript:not(.expanded) .lesson-transcript-content::after { content: ""; position: absolute; inset: auto 0 0; height: 28px; background: linear-gradient(transparent,var(--white)); pointer-events: none; }
.lesson-transcript.expanded .lesson-transcript-content { max-height: none; }
.lesson-transcript-section + .lesson-transcript-section { margin-top: 16px; }
.lesson-transcript-section h3 { margin-bottom: 6px; color: var(--deep); font-size: 14px; line-height: 1.5; }
.lesson-transcript-section p { color: var(--ink); font-size: 14px; line-height: 1.85; }
.lesson-transcript-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; }
.lesson-transcript-footer .btn { flex-shrink: 0; padding: 5px 0 5px 8px; font-size: 13px; }
.lesson-transcript-footer .icon { width: 17px; height: 17px; flex-basis: 17px; transform: rotate(90deg); }
.lesson-transcript.expanded .lesson-transcript-footer .icon { transform: rotate(-90deg); }
.video-stage { position: relative; aspect-ratio: 16/10; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: #234e99; color: white; border-radius: 19px; padding: 18px; text-align: center; overflow: hidden; }
.video-stage h3 { font-size: 19px; font-weight: 800; }
.video-stage .buddy { width: 70px; height: 77px; }
.video-stage h2 { font-size: 21px; }
.video-caption { font-size: 12px; color: #e4f1ff; }
.video-stage .fraction-model { margin: 0; width: 100%; max-width: 260px; background: var(--white); padding: 6px; border-radius: 15px; }
.video-play { display: grid; place-items: center; width: 48px; height: 48px; color: var(--deep); background: var(--white); border: 0; border-radius: 50%; }
.timeline { position: relative; margin: 14px 0 8px; }
.timeline > span { display: block; font-size: 12px; text-align: right; color: var(--muted); margin-top: 6px; }
.answer-panel { padding: 16px; background: var(--yellow-soft); border: 2px solid #f4e0a7; border-radius: 18px; }
.answer-panel.correct { background: var(--green-soft); border-color: #bbe2cd; }
.answer-panel.wrong { background: var(--red-soft); border-color: #f1c9c1; }
.answer-panel h3 { font-size: 16px; margin-bottom: 8px; }
.result-badge { display: grid; place-items: center; width: 86px; height: 86px; margin: 8px auto 14px; background: var(--yellow-soft); color: var(--deep); border: 3px solid var(--yellow); border-radius: 29px; font-size: 30px; font-weight: 800; transform: rotate(-3deg); }
.empty-state { position: relative; text-align: center; padding: 26px 16px; }
.empty-icon { position: absolute; top: 35px; left: calc(50% + 26px); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 15px; background: var(--blue-soft); border: 2px solid var(--white); color: var(--blue); transform: rotate(7deg); }
.empty-state .buddy { width: 106px; height: 116px; margin: 0 auto 17px; }
.empty-state h2 { font-size: 20px; color: var(--deep); margin-bottom: 8px; }
.empty-state p { color: var(--muted); margin-bottom: 18px; }
.child-switch { display: flex; gap: 10px; align-items: center; padding: 10px 12px; width: 100%; border: 2px solid var(--line); border-radius: 16px; background: var(--white); text-align: left; }
.child-switch > span:not(.avatar) { flex: 1; min-width: 0; }
.child-switch small { display: block; font-size: 12px; color: var(--muted); }
.child-switch > .icon:last-child { color: var(--muted); width: 18px; height: 18px; }
.child-switch .chip { display: flex; align-items: center; gap: 8px; white-space: nowrap; flex-shrink: 0; }
.child-switch .avatar { width: 27px; height: 27px; border-radius: 9px; font-size: 12px; }
.qr-placeholder { width: 156px; max-width: 100%; margin: 18px auto; padding: 15px; border: 2px dashed var(--line); background: var(--page); border-radius: 20px; }
.qr-placeholder svg { display: block; width: 100%; height: auto; }
.invite-code { text-align: center; letter-spacing: .15em; font-size: 28px; font-weight: 800; color: var(--deep); padding: 16px 4px; font-variant-numeric: tabular-nums; }
.invite-input { font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.task-overview { border: 2px solid var(--line); }
.task-rank, .step-index { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; background: var(--blue-soft); color: var(--deep); border-radius: 11px; font-weight: 800; font-size: 13px; }
.task-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.task-meta-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding-top: 12px; }
.task-meta-grid dt { font-size: 12px; color: var(--muted); }
.task-meta-grid dd { margin: 4px 0 0; font-size: 14px; font-weight: 750; }
.baseline-strip { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.insight-list { display: flex; flex-direction: column; gap: 12px; }
.qr-identity, .link-intro { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.link-intro > .icon { width: 42px; height: 42px; padding: 8px; flex: 0 0 42px; border-radius: 13px; background: var(--blue-soft); }
.link-qr { width: min(224px,100%); margin: 16px auto; border: 1px solid var(--line); background: #fff; border-radius: 16px; overflow: hidden; }
.link-qr svg { display: block; width: 100%; height: auto; }
.qr-caption { text-align: center; font-size: 13px; color: var(--deep); margin-bottom: 14px; }
.qr-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 30px 12px; margin: 16px 0; border: 2px dashed var(--line); border-radius: 18px; text-align: center; background: var(--page); }
.qr-empty .icon { width: 48px; height: 48px; }
.qr-empty p { font-size: 12px; color: var(--muted); }
.short-code { color: var(--deep); font-size: 20px; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.link-status { padding: 16px 6px; text-align: center; }
.link-status > .icon { width: 36px; height: 36px; margin-bottom: 12px; color: var(--blue); }
.link-status p { margin-top: 10px; }
.scan-viewport { position: relative; min-height: 260px; padding: 32px 16px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; border-radius: 22px; background: #172638; color: #fff; }
.scan-viewport > p { font-size: 12px; text-align: center; }
.scan-reticle { width: min(204px,100%); aspect-ratio: 1; position: relative; display: grid; place-items: center; background: #24384d; border-radius: 8px; }
.scan-reticle > .icon { width: 82px; height: 82px; color: #9aaec2; opacity: .6; }
.scan-corner { position: absolute; width: 28px; height: 28px; border-color: var(--mint); border-style: solid; pointer-events: none; }
.scan-corner.tl { top: -2px; left: -2px; border-width: 4px 0 0 4px; border-radius: 7px 0 0; }
.scan-corner.tr { top: -2px; right: -2px; border-width: 4px 4px 0 0; border-radius: 0 7px 0 0; }
.scan-corner.bl { bottom: -2px; left: -2px; border-width: 0 0 4px 4px; border-radius: 0 0 0 7px; }
.scan-corner.br { bottom: -2px; right: -2px; border-width: 0 4px 4px 0; border-radius: 0 0 7px; }
.scan-line { position: absolute; top: 50%; left: 8px; right: 8px; height: 2px; background: #bdebd9; box-shadow: 0 0 12px #bdebd950; pointer-events: none; }
.link-demo-tools { width: 390px; max-width: 100%; flex-shrink: 0; padding: 10px; border: 1px solid var(--line); background: #fff; border-radius: 14px; }
.link-demo-tools > span { display: block; margin-bottom: 8px; text-align: center; color: var(--muted); font-size: 11px; }
.demo-button-row { display: flex; gap: 8px; }
.demo-button-row .btn { flex: 1; min-width: 0; min-height: 44px; padding: 8px; border-width: 1px; font-size: 12px; }
.steps { display: flex; flex-direction: column; gap: 15px; }
.step { display: flex; gap: 11px; align-items: flex-start; }
.step-index { flex: 0 0 26px; height: 26px; display: grid; place-items: center; border-radius: 9px; background: var(--blue-soft); color: var(--deep); font-size: 12px; font-weight: 800; }
.step-content { flex: 1; min-width: 0; }
.step > b { display: grid; place-items: center; flex: 0 0 28px; height: 28px; border-radius: 10px; background: var(--blue-soft); color: var(--deep); }
.step small { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.step.done > .icon { color: var(--success); }
.toggle { position: relative; width: 48px; height: 44px; flex-shrink: 0; border: 0; background: transparent; border-radius: 12px; }
.toggle::before { content: ""; position: absolute; width: 44px; height: 25px; top: 10px; left: 2px; border-radius: 20px; background: #b5c4d3; transition: background 160ms; }
.toggle::after { content: ""; position: absolute; width: 19px; height: 19px; top: 13px; left: 5px; border-radius: 50%; background: white; box-shadow: 0 1px 3px #243c5520; transition: transform 160ms; }
.toggle.on::before { background: var(--blue); }
.toggle.on::after { transform: translateX(19px); }
.fixed-actions { position: sticky; bottom: -18px; padding: 14px 0 max(14px, env(safe-area-inset-bottom)); background: var(--page); z-index: 2; }
.phone-screen > .fixed-actions { padding: 12px 18px; margin: 0; background: var(--white); border-top: 1px solid var(--line); flex-shrink: 0; }
.notice { padding: 12px 14px; border-radius: 14px; background: var(--yellow-soft); color: #725010; font-size: 12px; line-height: 1.65; border: 1px solid #f2dfad; }
.notice.blue { background: var(--blue-soft); color: var(--deep); border-color: #cee3f8; }
.notice.red { background: var(--red-soft); color: #a63e37; border-color: #f1c9c1; }
.notice.green { background: var(--green-soft); color: var(--green); border-color: #c7eadd; }
.badge-number { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 8px; background: var(--coral); color: #3d2421; font-size: 12px; font-weight: 750; }
.modal-layer { position: absolute; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 18px; background: #16385866; }
.modal-layer:has(.sheet) { align-items: flex-end; padding: 0; }
.modal-card { width: 100%; max-height: calc(100% - 36px); overflow-y: auto; padding: 22px; background: var(--white); border-radius: 24px; box-shadow: 0 16px 40px #16385820; }
.modal-card h2 { font-size: 20px; color: var(--deep); font-weight: 800; }
.modal-card > p { margin-top: 10px; }
.sheet { width: 100%; max-height: 88%; overflow-y: auto; padding: 10px 20px max(20px, env(safe-area-inset-bottom)); border-radius: 25px 25px 0 0; background: var(--white); }
.sheet::before { content: ""; display: block; width: 37px; height: 4px; background: var(--line); border-radius: 4px; margin: 0 auto 12px; }
.sheet-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.sheet-header h2 { font-size: 19px; color: var(--deep); }
.sheet-header button { width: 44px; border: 0; background: var(--page); border-radius: 13px; }
.sheet > .field + .field { margin-top: 14px; }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.modal-actions .btn { flex: 1; min-width: 0; }
.toast { position: absolute; left: 20px; right: 20px; bottom: 105px; z-index: 40; padding: 12px 16px; border-radius: 14px; background: #243c55f2; color: var(--white); text-align: center; font-size: 13px; box-shadow: 0 5px 15px #243c5522; pointer-events: none; }
.spec-panel { padding: 24px 22px; border-left: 1px solid var(--line); }
.spec-panel h2 { font-size: 17px; font-weight: 800; color: var(--deep); }
.spec-panel > p { color: var(--muted); font-size: 13px; margin-top: 8px; }
.spec-block { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.spec-block h3 { font-size: 13px; margin-bottom: 8px; }
.spec-block p { font-size: 13px; color: var(--muted); }
.spec-block .btn { font-size: 12px; padding: 9px 10px; }
.spec-footer { margin-top: 22px; font-size: 12px; color: var(--muted); line-height: 1.7; }
.page-notes { margin-top: 18px; font-size: 13px; }
.page-notes h3 { margin: 18px 0 8px; font-size: 13px; color: var(--ink); }
.page-notes p { color: var(--muted); margin-bottom: 10px; }
.page-notes ul { padding-left: 18px; color: var(--muted); }
.page-notes li { margin: 6px 0; }
.spec-tag { display: inline-block; margin: 12px 0 0; padding: 4px 8px; border-radius: 7px; font-size: 12px; color: var(--green); background: var(--green-soft); }
.spec-flow { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 14px; font-size: 12px; color: var(--muted); }
.open-catalog, .close-catalog { display: none; }
.catalog-scrim { display: none; }
.overview-grid { width: min(100%, 670px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-height: 100%; overflow: auto; padding: 4px; }
.overview-grid button { padding: 14px; min-height: 78px; text-align: left; background: var(--white); border: 2px solid var(--line); border-radius: 16px; }
.overview-grid button:hover { border-color: var(--blue); }
.overview-card { display: flex; flex-direction: column; gap: 5px; }
.overview-card small { display: block; color: var(--muted); font-size: 12px; }
.overview-card > .icon { align-self: flex-end; color: var(--blue); margin-top: auto; }
.overview-art { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--blue-soft); color: var(--blue); }
.overview-art.mint { background: var(--green-soft); color: var(--green); }
/* 已确认页面结构：资料、结果、课程与学习报告。 */
.completion-hero { display: flex; flex-direction: column; align-items: center; gap: 11px; text-align: center; padding: 12px 0 14px; }
.completion-hero h2 { font-size: 23px; line-height: 1.4; color: var(--deep); }
/* 欢迎页：老师与文字组成一个场景，登录区始终留在手机内容区内。 */
.screen-body.login-screen { display: flex; flex-direction: column; overflow: hidden; padding: 0; container: welcome-viewport / size; }
.screen-body.login-screen > * { margin: 0; }
.welcome-page { display: flex; flex-direction: column; flex: 1; min-height: 0; width: 100%; }
.welcome-story { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; padding: 22px 18px 10px; text-align: center; background: var(--page); }
.welcome-heading { flex-shrink: 0; position: relative; z-index: 2; animation: welcome-enter 480ms ease-out both; }
.welcome-eyebrow { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--green); font-size: 12px; font-weight: 750; line-height: 1.5; }
.welcome-eyebrow > span { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.welcome-heading h2 { margin-top: 8px; color: var(--deep); font-size: 32px; line-height: 1.25; font-weight: 800; letter-spacing: .01em; }
.welcome-subtitle { margin-top: 8px; font-size: 14px; color: var(--muted); }
.welcome-scene { position: relative; isolation: isolate; display: grid; grid-template-rows: auto minmax(0, 1fr) 68px; flex: 1; min-height: 0; margin-top: 14px; padding-top: 5px; }
.welcome-dialogue { grid-row: 1; position: relative; z-index: 3; justify-self: center; width: max-content; max-width: 95%; padding: 9px 18px; border: 2px solid var(--line); border-radius: 18px 18px 18px 5px; background: var(--white); text-align: left; box-shadow: 0 4px 0 #dce8f270; animation: welcome-reveal 420ms 160ms ease-out both; }
.welcome-teacher-name { display: block; margin-bottom: 2px; color: var(--blue); font-size: 11px; font-weight: 800; }
.welcome-dialogue p { font-size: 13px; line-height: 1.5; }
.welcome-dialogue strong { font-weight: 750; color: var(--deep); }
.welcome-character { grid-row: 2; display: flex; align-items: center; justify-content: center; min-height: 0; height: 100%; z-index: 2; padding: 4px 0; animation: welcome-reveal 500ms 260ms ease-out both; }
.welcome-character .welcome-buddy { width: 200px; height: 100%; max-height: 232px; animation: welcome-hello 750ms 260ms ease-out both, welcome-float 5s 1100ms ease-in-out infinite; transform-origin: 50% 76%; filter: drop-shadow(0 8px 8px #234e9910); }
.welcome-ground { position: absolute; z-index: -1; left: 50%; bottom: 66px; width: 150px; height: 16px; border-radius: 50%; background: #d6e9ff; transform: translateX(-50%); }
.welcome-orbit { position: absolute; z-index: -2; border: 1px dashed #b9d7f5; border-radius: 50%; pointer-events: none; }
.orbit-one { width: 230px; height: 230px; left: calc(50% - 115px); top: calc(50% - 115px); animation: welcome-orbit 30s linear infinite; }
.orbit-two { width: 270px; height: 270px; left: calc(50% - 135px); top: calc(50% - 135px); border-style: solid; border-color: #dceafa; }
.welcome-spark { position: absolute; z-index: 1; color: #ae7514; pointer-events: none; animation: welcome-glow 4.5s ease-in-out infinite; }
.spark-one { left: 10px; top: 33%; }
.spark-two { right: 12px; top: 49%; color: var(--green); animation-delay: 1.2s; }
.welcome-spark .icon { width: 18px; height: 18px; stroke-width: 1.8; }
.welcome-skill { position: absolute; display: flex; align-items: center; justify-content: center; gap: 5px; z-index: 3; padding: 6px 9px; border: 1px solid #cce1f6; border-radius: 12px; background: var(--blue-soft); color: var(--deep); font-size: 12px; font-weight: 750; line-height: 1.3; white-space: nowrap; animation: welcome-enter 420ms 620ms ease-out both, welcome-label-float 5.5s 1400ms ease-in-out infinite; }
.welcome-skill .icon { width: 16px; height: 16px; flex-basis: 16px; stroke-width: 2; }
.skill-assessment { left: 0; bottom: 35px; }
.skill-learning { right: 0; bottom: 35px; border-color: #c6e9db; background: var(--green-soft); color: var(--green); animation-delay: 780ms, 1600ms; }
.skill-growth { left: 50%; bottom: 0; width: 156px; margin-left: -78px; border-color: #f3dfad; background: var(--yellow-soft); color: #725010; animation-delay: 940ms, 1800ms; }
.welcome-story-caption { flex-shrink: 0; margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.welcome-login { flex: 0 0 auto; padding: 14px 18px 8px; border-top: 1px solid var(--line); background: var(--white); box-shadow: 0 -8px 20px #234e9904; }
.welcome-login .welcome-login-button { min-height: 52px; font-size: 16px; letter-spacing: .04em; box-shadow: 0 3px 0 #06683b; }
.welcome-login-button .icon { width: 24px; height: 24px; flex-basis: 24px; }
.welcome-consent { display: flex; align-items: center; justify-content: center; gap: 0; min-height: 44px; margin-top: 4px; color: var(--muted); font-size: 12px; }
.welcome-consent-check { display: grid; place-items: center; width: 44px; min-height: 44px; flex: 0 0 44px; cursor: pointer; }
.welcome-consent-check input { width: 18px; height: 18px; margin: 0; accent-color: #087e48; cursor: pointer; }
.welcome-consent p { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0 3px; line-height: 1.5; }
.welcome-consent p > label { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; }
.welcome-consent button { min-width: 44px; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--blue); font-size: inherit; }
.welcome-login-note { text-align: center; color: var(--muted); font-size: 12px; line-height: 1.5; }
.welcome-login-error { margin: 8px 0 0; font-size: 12px; text-align: center; }
@keyframes welcome-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes welcome-reveal { from { opacity: 0; } to { opacity: 1; } }
@keyframes welcome-hello { 0% { opacity: 0; transform: translateY(16px) rotate(-5deg) scale(.94); } 70% { opacity: 1; transform: translateY(-3px) rotate(2deg) scale(1.015); } 100% { opacity: 1; transform: translateY(0) rotate(0) scale(1); } }
@keyframes welcome-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(-1deg); } }
@keyframes welcome-label-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes welcome-orbit { to { transform: rotate(360deg); } }
@keyframes welcome-glow { 0%, 100% { opacity: .5; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.08); } }
@container welcome-viewport (max-height: 500px) {
  .welcome-story { padding-top: 12px; }
  .welcome-heading h2 { font-size: 29px; margin-top: 6px; }
  .welcome-subtitle { display: none; }
  .welcome-scene { margin-top: 9px; grid-template-rows: auto minmax(0, 1fr) 61px; }
  .welcome-dialogue { display: flex; align-items: center; flex-wrap: wrap; gap: 0 8px; padding: 7px 14px; }
  .welcome-teacher-name { margin-bottom: 0; }
  .welcome-story-caption { display: none; }
  .welcome-character .welcome-buddy { max-height: 164px; }
  .welcome-skill { font-size: 11px; padding: 5px 8px; }
  .skill-assessment, .skill-learning { bottom: 31px; }
  .welcome-login { padding-top: 11px; }
}
@container welcome-viewport (max-height: 390px) {
  .welcome-story { padding: 8px 14px 5px; }
  .welcome-eyebrow, .welcome-subtitle { display: none; }
  .welcome-heading h2 { margin-top: 0; font-size: 26px; }
  .welcome-scene { grid-template-columns: 46% 54%; grid-template-rows: minmax(0, 1fr) 28px; margin-top: 5px; padding: 0; }
  .welcome-dialogue { display: block; grid-column: 1; grid-row: 1; align-self: center; justify-self: start; width: 100%; max-width: 100%; padding: 8px; border-radius: 14px 14px 5px 14px; }
  .welcome-teacher-name { margin-bottom: 2px; }
  .welcome-dialogue p { font-size: 12px; }
  .welcome-dialogue strong { display: block; }
  .welcome-character { grid-column: 2; grid-row: 1; padding: 4px; }
  .welcome-character .welcome-buddy { width: 134px; max-height: 134px; }
  .skill-assessment, .skill-learning { bottom: 0; }
  .skill-growth, .welcome-ground, .orbit-two, .welcome-spark { display: none; }
  .orbit-one { width: 160px; height: 160px; left: calc(72% - 80px); top: calc(50% - 80px); }
  .welcome-login { padding: 10px 14px 5px; }
}
@container welcome-viewport (max-width: 290px) {
  .welcome-login { padding-left: 12px; padding-right: 12px; }
  .welcome-consent { font-size: 11px; }
  .welcome-consent p { gap: 0 2px; }
  .welcome-skill { gap: 3px; padding-left: 5px; padding-right: 5px; font-size: 10px; }
  .welcome-skill .icon { width: 14px; height: 14px; flex-basis: 14px; }
}
.login-progress { padding: 18px 10px; text-align: center; }
.login-progress .icon { width: 37px; height: 37px; margin-bottom: 10px; color: var(--blue); }
.profile-avatar { display: flex; flex-direction: column; align-items: center; padding: 12px 0; }
.avatar-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.avatar-options .btn { flex-direction: column; gap: 10px; min-height: 112px; }
.avatar-options .buddy { width: 56px; height: 61px; }
.avatar-options .icon { width: 42px; height: 42px; flex-basis: 42px; color: var(--green); }
.profile-row > div { flex: 1; min-width: 0; }
.profile-row h2 { font-size: 20px; color: var(--deep); }
.question-heading h2 { margin: 10px 0 8px; font-size: 21px; font-weight: 800; line-height: 1.5; color: var(--ink); }
.result-score { display: block; font-size: 47px; font-weight: 800; color: var(--deep); line-height: 1.3; font-variant-numeric: tabular-nums; }
.result-score small { font-size: 15px; color: var(--muted); margin-left: 5px; font-weight: 500; }
.result-card > .pill { margin-top: 10px; }
.result-card > p { margin-top: 10px; }
.dimension-row { display: flex; gap: 10px; align-items: center; width: 100%; padding: 13px 14px; border: 2px solid var(--line); border-radius: 17px; background: var(--white); text-align: left; }
.dimension-row > span:first-child { flex: 1; min-width: 0; }
.dimension-row strong { font-size: 15px; }
.dimension-row small { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.dimension-row > span:nth-child(2) { text-align: right; flex-shrink: 0; }
.dimension-row b { font-size: 22px; color: var(--deep); font-variant-numeric: tabular-nums; }
.dimension-row .success { color: var(--green); }
.dimension-row > .icon { width: 18px; height: 18px; flex-basis: 18px; color: var(--muted); }
.detail-list { padding: 0; margin: 14px 0 0; }
.detail-list > div { display: flex; gap: 16px; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.detail-list > div:last-child { border: 0; }
.detail-list dt { color: var(--muted); flex-shrink: 0; }
.detail-list dd { margin: 0; text-align: right; }
.professional-details { margin-top: 0; }
.professional-details dd { min-width: 0; overflow-wrap: anywhere; white-space: pre-wrap; }

/* 职场学习：用工作目标、方法卡与实践清单承载同一陪伴品牌。 */
.pro-mission { position: relative; min-height: 250px; padding: 21px 100px 57px 19px; border: 2px solid #c9e0f7; border-radius: 23px; background: var(--blue-soft); overflow: hidden; }
.pro-mission-copy { position: relative; z-index: 1; }
.pro-mission h2 { color: var(--deep); font-size: 26px; line-height: 1.35; font-weight: 800; letter-spacing: -.03em; }
.pro-mission p { margin-top: 10px; font-size: 13px; }
.pro-mission .btn { margin-top: 14px; padding: 8px 10px; font-size: 13px; }
.pro-mission .pro-mission-buddy { position: absolute; right: 0; bottom: 55px; width: 104px; height: 130px; animation: pro-companion 6s ease-in-out infinite; }
.pro-time { position: absolute; left: 19px; bottom: 16px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 750; color: var(--deep); }
.pro-time .icon { width: 17px; height: 17px; }
.pro-goal { font-size: 16px; font-weight: 750; margin: 8px 0; white-space: pre-wrap; }
.pro-next { border-color: #d5e8de; background: #f8fffb; }
.pro-shortcuts .btn { display: flex; flex-direction: column; gap: 8px; padding: 14px 8px; font-size: 13px; min-height: 89px; }
.pro-shortcuts .btn:nth-child(2) { background: var(--yellow-soft); border-color: #f2e1b6; }
.pro-shortcuts .btn:nth-child(3) { background: var(--green-soft); border-color: #cce7dc; }
.pro-teacher { align-items: center; gap: 10px; }
.pro-teacher .buddy { width: 68px; height: 78px; }
.pro-teacher > div { min-width: 0; }
.pro-teacher h3 { font-size: 15px; line-height: 1.45; }
.pro-teacher p { margin: 6px 0; font-size: 13px; }
.pro-dimension { display: flex; align-items: center; gap: 8px; width: 100%; padding: 14px 12px; text-align: left; border: 2px solid var(--line); border-radius: 16px; background: var(--white); }
.pro-dimension > span:first-child { flex: 1; min-width: 0; }
.pro-dimension strong { display: block; font-size: 15px; }
.pro-dimension small { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.pro-dimension > .pill { flex: 0 0 auto; }
.pro-dimension > .icon { width: 16px; flex-basis: 16px; color: var(--muted); }
.pro-days { border: 0; margin: 0; padding: 0; }
.pro-days legend { padding: 0; margin-bottom: 8px; font-weight: 700; }
.pro-days label { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 10px; border: 2px solid var(--line); border-radius: 12px; background: var(--white); }
.pro-days input { width: 17px; height: 17px; margin: 0; accent-color: var(--blue); }
.pro-days label:has(input:checked) { background: var(--blue-soft); border-color: var(--blue); color: var(--deep); }
.pro-tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.pro-assessment-intro { padding: 22px 18px; text-align: center; background: var(--yellow-soft); border: 2px solid #f1dfad; border-radius: 20px; }
.pro-intro-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--white); color: var(--blue); margin-bottom: 10px; }
.pro-assessment-intro h3 { font-size: 21px; color: var(--deep); }
.pro-assessment-intro p { margin-top: 7px; font-size: 13px; }
.pro-explanation { margin: 12px 0; padding: 12px; border-radius: 12px; background: var(--green-soft); font-size: 14px; line-height: 1.65; }
.pro-path-header { padding: 18px; border: 2px solid #cfe8de; border-radius: 20px; background: var(--green-soft); }
.pro-path-header h3 { font-size: 18px; line-height: 1.5; }
.pro-path-header p { font-size: 13px; margin-top: 8px; }
.pro-roadmap { position: relative; display: flex; flex-direction: column; gap: 20px; }
.pro-roadmap::before { content: ''; position: absolute; top: 20px; bottom: 20px; left: 19px; width: 3px; background: #cde0f2; }
.pro-road-step { position: relative; display: flex; align-items: flex-start; gap: 12px; }
.pro-road-number { display: grid; place-items: center; flex: 0 0 40px; height: 40px; z-index: 1; border: 2px solid #e4b547; border-radius: 14px; background: var(--yellow); font-weight: 800; }
.pro-road-step > div { min-width: 0; flex: 1; padding: 16px; border: 2px solid var(--line); border-radius: 18px; background: var(--white); }
.pro-road-step h3 { font-size: 17px; line-height: 1.5; }
.pro-road-step p { font-size: 13px; margin-top: 7px; }
.pro-course-cover { position: relative; padding: 20px 55px 20px 18px; border: 2px solid #c9e0f7; border-radius: 21px; background: var(--blue-soft); }
.pro-course-cover h2 { font-size: 26px; font-weight: 800; line-height: 1.4; color: var(--deep); }
.pro-course-cover p { margin-top: 11px; font-size: 14px; }
.pro-cover-icon { position: absolute; right: 14px; top: 20px; color: var(--blue); }
.pro-cover-icon .icon { width: 32px; height: 32px; }
.pro-syllabus { padding: 4px 16px; border: 2px solid var(--line); border-radius: 18px; background: var(--white); }
.pro-syllabus > div { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pro-syllabus > div:last-child { border: 0; }
.pro-syllabus > div > span { display: grid; place-items: center; flex: 0 0 30px; height: 30px; border-radius: 10px; background: var(--blue-soft); color: var(--deep); font-size: 13px; font-weight: 800; }
.pro-syllabus strong { font-size: 14px; }
.pro-syllabus .icon { width: 18px; height: 18px; }
.pro-worksheet { position: relative; margin-top: 16px; padding: 17px 15px; border-left: 4px solid var(--yellow); border-radius: 0 14px 14px 0; background: var(--yellow-soft); white-space: pre-wrap; overflow-wrap: anywhere; }
.pro-worksheet p { margin-top: 8px; font-size: 14px; line-height: 1.8; }
.pro-lesson { padding: 20px 17px; }
.pro-lesson h2 { font-size: 24px; }
.pro-checklist { padding-left: 22px; margin: 12px 0 0; }
.pro-checklist li + li { margin-top: 8px; }
.pro-project-input { min-height: 210px !important; line-height: 1.7; }
.pro-prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.pro-comparison { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; }
.pro-comparison > div { flex: 1; min-width: 0; }
.pro-comparison small { display: block; font-size: 12px; color: var(--muted); }
.pro-comparison strong { display: block; margin-top: 5px; color: var(--deep); font-size: 19px; font-weight: 800; }
.pro-comparison > span { color: var(--blue); }
@keyframes pro-companion { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .pro-mission .pro-mission-buddy { animation: none; } }
.trend-line { display: flex; align-items: flex-end; justify-content: space-around; gap: 15px; min-height: 140px; padding: 16px 0 5px; }
.trend-line > div { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 12px; }
.trend-line > div > span { display: block; width: 22px; border-radius: 7px 7px 2px 2px; background: #a8c9f8; }
.trend-line > div:last-child > span { background: var(--blue); }
.trend-line small { color: var(--muted); font-size: 12px; }
.course-art { display: flex; flex-direction: column; align-items: center; padding: 12px; gap: 6px; margin: -3px -3px 14px; background: var(--blue-soft); border-radius: 14px; }
.course-art .fraction-model { margin: 0; }
.course-art.mint { background: var(--green-soft); color: var(--green); padding: 26px 12px; }
.course-art.mint .icon { width: 43px; height: 43px; }
#course-list > .card + .card, #mistake-list > .card + .card { margin-top: 14px; }
.quick-action { flex-direction: column; min-height: 89px; padding: 13px 6px; gap: 10px; border-radius: 17px; background: var(--blue-soft); color: var(--deep); font-size: 12px; }
.quick-action:nth-child(2) { background: var(--green-soft); color: var(--green); }
.quick-action:nth-child(3) { background: var(--yellow-soft); color: #725010; }
.quick-action .icon { width: 25px; height: 25px; flex-basis: 25px; }
.record-row { display: flex; align-items: flex-start; gap: 11px; padding: 10px 0; }
.record-row + .record-row { border-top: 1px solid var(--line); }
.record-row strong { font-size: 14px; }
.record-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.record-dot { width: 11px; height: 11px; flex-shrink: 0; margin-top: 7px; border-radius: 4px; background: var(--blue); }
.record-dot.mint { background: var(--success); }
.share-illustration { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 12px 0 16px; }
.share-illustration > .icon { width: 48px; height: 48px; color: var(--blue); }
.scope-list { padding: 0 0 0 21px; margin: 11px 0; }
.scope-list li { padding: 4px 0; font-size: 14px; }
.scope-list li::marker { color: var(--green); }
.chat-thread { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.chat-thread .bubble { flex: none; width: calc(100% - 27px); }
.chat-thread .bubble.me { align-self: flex-end; margin-left: 0; }
.chat-thread .bubble .buddy { width: 32px; height: 36px; }
.chat-thread .bubble > p { margin-top: 8px; }
.chat-input { display: flex; align-items: center; gap: 8px; }
.chat-input .input { flex: 1; min-width: 0; }
.chat-input .btn { width: 48px; flex: 0 0 48px; padding: 8px; }
@media (max-width: 1080px) {
  .studio-shell { grid-template-columns: 238px minmax(0, 1fr); }
  .spec-panel { display: none; }
  .studio-header { padding: 0 20px; }
}
@media (max-width: 760px) {
  body { background: var(--page); }
  .studio-header { height: 54px; padding: 0 12px; gap: 9px; }
  .studio-title { font-size: 15px; }
  .brand { gap: 7px; }
  .brand > .buddy { width: 30px; height: 34px; }
  .brand-icon { width: 32px; height: 32px; border-radius: 10px; }
  .brand h1 { font-size: 15px; }
  .brand p { display: block; font-size: 10px; }
  .desktop-prototype-label { display: none; }
  .mobile-prototype-mark { display: inline; }
  .studio-subtitle, .studio-version, .brand-mark, .studio-actions > .desktop-only { display: none; }
  .studio-actions { gap: 5px; }
  .studio-actions > .btn { min-height: 44px; padding: 7px 9px; font-size: 12px; }
  .studio-actions > .btn.blue, .reset-button { display: none; }
  .studio-shell { display: block; height: calc(100dvh - 54px); }
  .preview-pane { height: 100%; padding: 12px; gap: 8px; display: flex; overflow: hidden; background-color: #eaf1f8; background-image: radial-gradient(#d6e3f1 1px, transparent 1px); }
  .preview-meta, .preview-heading, .preview-disclaimer { display: none; }
  .phone { width: 390px; max-width: 100%; height: min(820px, 100%); margin: 0 auto; }
  .appbar { padding-top: 3px; }
  .open-catalog, .close-catalog { display: grid; place-items: center; min-width: 44px; min-height: 44px; border: 0; border-radius: 12px; background: var(--blue-soft); color: var(--deep); }
  .page-rail { display: none; position: fixed; inset: 54px auto 0 0; width: min(300px, 86vw); z-index: 61; padding-top: 16px; box-shadow: 8px 0 28px #16385820; }
  body.catalog-open .page-rail { display: block; }
  body.catalog-open .catalog-scrim { display: block; position: fixed; inset: 54px 0 0; z-index: 60; background: #16385866; }
  .close-catalog { float: right; background: var(--page); }
  .overview-grid { width: 100%; height: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 2px; }
}
@media (min-width: 761px) and (max-height: 620px) {
  .preview-pane { padding: 10px 14px; gap: 8px; }
  .preview-disclaimer { display: none; }
  .phone { height: calc(100dvh - 150px); }
}
@media (max-width: 360px) {
  .screen-body { padding: 16px; }
  .hero { padding-right: 108px; }
  .hero .buddy { width: 88px; height: 98px; right: 7px; }
  .hero-copy h2, .hero-copy h3 { font-size: 20px; }
  .grid-3 { gap: 6px; }
  .metric-card { padding: 12px 8px; }
  .stat-number { font-size: 24px; }
  .grid-3 .stat-number { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .welcome-heading, .welcome-dialogue, .welcome-character, .welcome-character .welcome-buddy, .welcome-skill, .welcome-orbit, .welcome-spark { animation: none !important; opacity: 1; transform: none; }
}
