:root {
  --bg: #0d1320;
  --bg-deep: #09101b;
  --panel: #121b2a;
  --panel-2: #162235;
  --line: rgba(175, 199, 222, 0.14);
  --line-strong: rgba(175, 199, 222, 0.24);
  --text: #eaf2f8;
  --muted: #8d9caf;
  --faint: #536276;
  --cyan: #76e3d1;
  --cyan-deep: #35b9b0;
  --blue: #8cb7ff;
  --amber: #ffca7a;
  --purple: #bf9cff;
  --danger: #ff8c91;
  --shadow: 0 24px 60px rgba(0,0,0,.24);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; --border: rgba(133, 169, 193, .22);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg-deep); color: var(--text); }
body { overflow-x: hidden; }
button, select, input { font: inherit; }
button { color: inherit; cursor: pointer; }
.app-shell { min-height: 100vh; display: flex; background: radial-gradient(circle at 76% -10%, rgba(79, 123, 184, .13), transparent 28%), var(--bg-deep); }
.sidebar { width: 246px; flex: 0 0 246px; min-height: 100vh; padding: 28px 18px 20px; border-right: 1px solid var(--line); background: rgba(9, 16, 27, .82); display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 10px 34px; }
.brand-mark { width: 33px; height: 33px; position: relative; display: grid; place-items: center; }
.brand-mark span { position: absolute; width: 9px; height: 27px; border-radius: 8px; background: linear-gradient(180deg, var(--cyan), #428da9); transform: rotate(30deg); opacity: .9; }
.brand-mark span:nth-child(2) { transform: rotate(90deg); background: linear-gradient(180deg, var(--purple), #6375c6); }
.brand-mark span:nth-child(3) { transform: rotate(150deg); background: linear-gradient(180deg, var(--amber), #b67962); }
.brand-name { font-weight: 700; letter-spacing: .06em; font-size: 16px; }
.brand-subtitle { font-size: 8px; letter-spacing: .22em; color: var(--faint); margin-top: 4px; }
.sidebar-label { padding: 0 10px 10px; color: #607087; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.nav-list { display: grid; gap: 4px; margin-bottom: 30px; }
.nav-item { width: 100%; border: 0; background: transparent; text-align: left; display: flex; align-items: center; gap: 11px; padding: 12px 10px; border-radius: 9px; color: var(--muted); transition: .2s ease; }
.nav-item:hover { background: rgba(118, 227, 209, .05); color: var(--text); }
.nav-item.active { background: rgba(118, 227, 209, .11); color: var(--cyan); box-shadow: inset 2px 0 0 var(--cyan); }
.nav-item small { margin-left: auto; color: #516073; font-size: 10px; }
.nav-item.active small { color: rgba(118, 227, 209, .55); }
.nav-icon { width: 21px; text-align: center; font-size: 17px; color: currentColor; }
.sidebar-bottom { margin-top: auto; padding: 0 8px; }
.status-dot, .pulse, .chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 5px rgba(118, 227, 209, .09); flex: 0 0 auto; }
.main-content { flex: 1; min-width: 0; padding: 0 48px 25px; max-width: 1650px; margin: 0 auto; width: 100%; }
.topbar { height: 82px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; gap: 11px; align-items: center; font-size: 12px; color: var(--faint); }
.breadcrumb b { font-weight: 400; color: #42516a; }.breadcrumb strong { color: #b8c3d0; font-weight: 500; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }.ghost-button, .profile-button, .icon-button, .reset-button { border: 0; background: transparent; color: var(--muted); }.ghost-button { font-size: 12px; }.ghost-button:hover { color: var(--text); }
.profile-button { white-space: nowrap; display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--text); padding: 6px 8px; border-radius: 8px; }.profile-button:hover { background: rgba(255,255,255,.04); }.avatar { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: linear-gradient(135deg, #304960, #243240); color: var(--cyan); font-size: 12px; }.chevron { color: var(--faint); font-size: 16px; }
.page-section { padding-top: 42px; }.hidden { display: none !important; }
.eyebrow { display: flex; align-items: center; gap: 9px; font-size: 10px; letter-spacing: .18em; color: var(--cyan); font-weight: 700; }.eyebrow.muted { color: #65758c; }.hero-grid { display: grid; grid-template-columns: minmax(0, 1.07fr) minmax(360px, .93fr); gap: 40px; min-height: 315px; align-items: center; }
.hero-copy h1 { font-size: clamp(44px, 5vw, 70px); line-height: 1.02; letter-spacing: -.055em; margin: 22px 0 20px; font-weight: 600; }.hero-copy h1 em { color: var(--cyan); font-style: normal; }.hero-copy p { max-width: 525px; color: #94a3b4; font-size: 15px; line-height: 1.85; margin: 0; }.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 30px; }.primary-button { border: 1px solid rgba(118,227,209,.15); background: var(--cyan); color: #102028; border-radius: 7px; padding: 13px 17px; font-weight: 700; font-size: 12px; box-shadow: 0 10px 25px rgba(118,227,209,.11); transition: .2s ease; }.primary-button:hover { transform: translateY(-1px); filter: brightness(1.04); }.primary-button span { margin-left: 15px; font-size: 15px; }.primary-button.small { padding: 10px 13px; font-size: 11px; white-space: nowrap; }.text-button { border: 0; background: transparent; color: #a8b5c3; font-size: 12px; padding: 8px 0; }.text-button:hover { color: var(--cyan); }.text-button span { color: var(--cyan); margin-left: 8px; }
.hero-orbit { height: 325px; position: relative; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle, rgba(118, 227, 209, .08), transparent 45%); }.orbit { position: absolute; border: 1px solid rgba(126, 177, 205, .17); border-radius: 50%; transform: rotate(-24deg); }.orbit-one { width: 255px; height: 132px; }.orbit-two { width: 320px; height: 180px; transform: rotate(32deg); border-color: rgba(191, 156, 255, .22); }.orbit-three { width: 390px; height: 240px; transform: rotate(77deg); border-color: rgba(255, 202, 122, .13); }.orbit-core { position: relative; z-index: 2; width: 93px; height: 93px; border: 1px solid rgba(118,227,209,.55); border-radius: 50%; display: grid; place-items: center; align-content: center; text-align: center; color: var(--cyan); font: 600 20px/1.1 Georgia, serif; background: rgba(15, 32, 41, .72); box-shadow: 0 0 55px rgba(118,227,209,.12); }.orbit-core small { font: 12px sans-serif; color: var(--muted); }.orbit-dot { position: absolute; z-index: 3; width: 9px; height: 9px; border-radius: 50%; }.dot-a { background: var(--cyan); top: 76px; right: 24%; box-shadow: 0 0 16px var(--cyan); }.dot-b { background: var(--purple); left: 17%; top: 50%; box-shadow: 0 0 16px var(--purple); }.dot-c { background: var(--amber); right: 16%; bottom: 61px; box-shadow: 0 0 16px var(--amber); }.orbit-caption { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; font-size: 10px; color: var(--muted); white-space: nowrap; }.caption-line { width: 28px; height: 1px; background: var(--cyan); }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin: 53px 0 18px; }.section-heading h2 { font-size: 24px; font-weight: 550; letter-spacing: -.03em; margin: 8px 0 0; }.progress-note { color: #68788d; font-size: 11px; }.learning-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }.path-card { min-height: 196px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); padding: 20px; text-align: left; position: relative; overflow: hidden; transition: .2s ease; }.path-card:hover { transform: translateY(-2px); border-color: rgba(118,227,209,.28); }.path-card.featured { background: linear-gradient(135deg, rgba(43, 81, 89, .7), rgba(18, 27, 42, .95)); border-color: rgba(118,227,209,.25); }.path-card.locked { opacity: .65; }.path-number { position: absolute; top: 15px; right: 18px; color: #56657a; font: 24px Georgia, serif; }.path-status { color: var(--cyan); font-size: 10px; font-weight: 700; letter-spacing: .05em; }.path-status.planned { color: #7b8ba0; }.path-card h3 { margin: 30px 0 8px; font-size: 16px; font-weight: 600; }.path-card p { margin: 0; color: #8292a4; font-size: 12px; line-height: 1.55; max-width: 240px; }.path-footer { position: absolute; bottom: 17px; left: 20px; right: 20px; display: flex; justify-content: space-between; color: #617187; font-size: 10px; }.path-footer .arrow { color: var(--cyan); font-size: 17px; }
.dashboard-row { display: grid; grid-template-columns: 1.1fr .9fr; gap: 14px; margin-top: 14px; }.panel { background: linear-gradient(145deg, rgba(19, 30, 46, .95), rgba(14, 23, 37, .95)); border: 1px solid var(--line); border-radius: 9px; }.concept-panel, .task-panel { min-height: 255px; padding: 20px; }.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }.panel-head h3 { font-size: 16px; font-weight: 600; margin: 7px 0 0; }.icon-button { font-size: 20px; color: #64768d; }.concept-map { height: 174px; position: relative; margin-top: 9px; }.concept-node { position: absolute; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; text-align: center; font-size: 10px; line-height: 1.3; color: #b9c7d4; border: 1px solid rgba(135, 165, 201, .23); background: #18263a; z-index: 2; }.node-main { left: calc(50% - 36px); top: 47px; width: 84px; height: 84px; border-color: rgba(118,227,209,.52); background: rgba(36, 74, 82, .55); color: var(--cyan); }.node-a { left: 8%; top: 8px; }.node-b { right: 8%; top: 8px; border-color: rgba(191,156,255,.36); }.node-c { left: calc(50% - 36px); bottom: -1px; border-color: rgba(255,202,122,.35); }.concept-line { position: absolute; height: 1px; background: linear-gradient(90deg, transparent, rgba(128, 181, 201, .48), transparent); transform-origin: center; z-index: 1; }.line-one { width: 185px; left: 25%; top: 74px; transform: rotate(22deg); }.line-two { width: 185px; right: 25%; top: 74px; transform: rotate(-22deg); }.line-three { width: 72px; left: calc(50% - 36px); top: 131px; transform: rotate(90deg); background: rgba(255,202,122,.4); }.task-badge { border: 1px solid rgba(255,202,122,.26); color: var(--amber); border-radius: 99px; padding: 5px 8px; font-size: 10px; }.task-question { margin: 28px 0 18px; color: #aab8c7; font-size: 13px; line-height: 1.6; }.task-options { display: flex; flex-wrap: wrap; gap: 7px; }.task-options button, .outline-button { border: 1px solid var(--line-strong); background: rgba(255,255,255,.025); color: #9cadbd; border-radius: 5px; padding: 8px 11px; font-size: 11px; }.task-options button:hover, .outline-button:hover { border-color: var(--cyan); color: var(--cyan); }.task-options button.correct { background: rgba(118,227,209,.12); color: var(--cyan); border-color: rgba(118,227,209,.35); }.task-options button.incorrect { background: rgba(255,140,145,.1); color: var(--danger); border-color: rgba(255,140,145,.3); }.task-feedback { min-height: 17px; color: var(--cyan); font-size: 11px; line-height: 1.5; margin-top: 11px; }.task-feedback.error { color: var(--danger); }
.compact-intro { display: flex; align-items: end; justify-content: space-between; margin-bottom: 24px; }.section-intro h1 { font-size: 38px; letter-spacing: -.045em; margin: 14px 0 10px; }.section-intro p { margin: 0; color: #8999ab; font-size: 13px; line-height: 1.7; }.model-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(118,227,209,.2); color: var(--cyan); border-radius: 99px; padding: 8px 11px; font-size: 10px; white-space: nowrap; }.experiment-layout { display: grid; grid-template-columns: 220px minmax(420px, 1fr) 245px; gap: 14px; align-items: stretch; }.control-panel, .insight-panel { padding: 18px; min-height: 585px; }.control-panel .panel-head h3, .insight-panel .panel-head h3 { font-size: 14px; }.reset-button { font-size: 10px; color: #71839a; }.reset-button:hover { color: var(--cyan); }.control-group { margin-top: 25px; }.control-group label { display: block; color: #8393a5; font-size: 11px; margin-bottom: 9px; }.range-label { display: flex; justify-content: space-between; gap: 8px; }.range-label output { color: var(--cyan); font-size: 11px; }.control-group select { width: 100%; color: #c7d2dd; background: #182638; border: 1px solid var(--line); border-radius: 5px; padding: 9px 8px; font-size: 11px; outline: none; }.control-group select:focus { border-color: var(--cyan); }input[type=range] { appearance: none; width: 100%; height: 3px; background: #304156; border-radius: 9px; outline: none; }input[type=range]::-webkit-slider-thumb { appearance: none; width: 13px; height: 13px; background: var(--cyan); border: 3px solid #1e3b44; border-radius: 50%; box-shadow: 0 0 0 1px rgba(118,227,209,.4); }input[type=range]::-moz-range-thumb { width: 13px; height: 13px; background: var(--cyan); border: 3px solid #1e3b44; border-radius: 50%; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }.seg { min-width: 0; border: 0; border-right: 1px solid var(--line); background: rgba(255,255,255,.025); color: #8292a5; padding: 8px 4px; font-size: 9px; }.seg:last-child { border-right: 0; }.seg.active { background: rgba(118,227,209,.12); color: var(--cyan); }.control-divider, .insight-divider { height: 1px; background: var(--line); margin: 26px 0 19px; }.mini-note { display: flex; gap: 9px; align-items: flex-start; color: #718095; }.mini-note p { margin: 0; font-size: 10px; line-height: 1.6; }.note-icon { color: var(--cyan); border: 1px solid rgba(118,227,209,.38); width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%; font-size: 10px; flex: 0 0 auto; }
.lab-stage { padding: 18px; min-width: 0; }.stage-top { display: flex; justify-content: space-between; align-items: flex-start; }.stage-top h3 { margin: 7px 0 0; font-size: 14px; font-weight: 600; }.stage-actions { display: flex; gap: 6px; }.stage-action { border: 1px solid var(--line); background: rgba(255,255,255,.025); color: #8090a4; border-radius: 4px; padding: 7px 9px; font-size: 10px; }.stage-action.active, .stage-action:hover { color: var(--cyan); border-color: rgba(118,227,209,.3); background: rgba(118,227,209,.07); }.canvas-wrap { position: relative; margin-top: 22px; border: 1px solid rgba(133, 169, 193, .14); border-radius: 7px; background: radial-gradient(circle at 50% 48%, rgba(56, 94, 117, .18), transparent 45%), #0e1827; overflow: hidden; min-height: 420px; }.canvas-wrap canvas { width: 100%; height: auto; display: block; }.canvas-overlay { position: absolute; top: 13px; right: 13px; display: flex; gap: 7px; }.overlay-tag { border: 1px solid var(--line); background: rgba(10,18,29,.78); color: #8ea0b4; font-size: 10px; padding: 5px 7px; border-radius: 4px; }.overlay-tag b { color: var(--cyan); }.stage-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 14px; color: #7c8da1; font-size: 10px; }.legend-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; }.real-dot { background: var(--cyan); }.reciprocal-dot { background: var(--purple); }.exp-dot { background: var(--amber); }.phase-dot { background: var(--cyan); }.legend-line { display: inline-block; width: 18px; height: 1px; background: #8193aa; margin: 0 6px 3px 0; }
.ai-tag { font-size: 9px; border-radius: 99px; border: 1px solid rgba(191,156,255,.24); color: var(--purple); padding: 4px 7px; }.formula-block { margin-top: 28px; }.formula-label { color: #66788d; font-size: 10px; letter-spacing: .08em; }.formula { color: var(--cyan); font: 20px Georgia, serif; margin: 11px 0 14px; letter-spacing: .02em; }.formula-block p { color: #91a0b0; font-size: 11px; line-height: 1.7; margin: 0; }.insight-step { display: flex; gap: 10px; margin: 17px 0; }.step-index { color: var(--cyan); font: 14px Georgia, serif; }.insight-step strong { color: #c4cfda; display: block; font-size: 11px; }.insight-step p { color: #76869a; font-size: 10px; line-height: 1.5; margin: 4px 0 0; }
.challenge-top { display: flex; justify-content: space-between; }.challenge-state { color: var(--amber); font-size: 10px; }.outline-button { color: var(--cyan); border-color: rgba(118,227,209,.3); }
.exponential-layout .canvas-wrap { background: radial-gradient(circle at 50% 50%, rgba(95, 148, 163, .12), transparent 43%), #0e1827; }.placeholder-view { min-height: 70vh; display: grid; place-items: center; }.placeholder-card { padding: 58px 60px; text-align: center; max-width: 520px; }.placeholder-icon { font-size: 40px; color: var(--cyan); margin-bottom: 18px; }.placeholder-card h1 { font-size: 32px; margin: 14px 0 10px; }.placeholder-card p { color: #8a9bad; line-height: 1.8; font-size: 13px; margin: 0 0 25px; }.footer { display: flex; justify-content: space-between; color: #526177; font-size: 10px; padding-top: 35px; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 14px); opacity: 0; pointer-events: none; background: #203a42; color: var(--cyan); border: 1px solid rgba(118,227,209,.35); padding: 10px 14px; border-radius: 6px; font-size: 11px; transition: .25s ease; z-index: 60; }.toast.show { opacity: 1; transform: translate(-50%, 0); }.toast.error { background: #3a1f24; color: #ff9c9c; border-color: rgba(255, 110, 110, .45); }
@media (max-width: 1180px) { .sidebar { width: 210px; flex-basis: 210px; }.main-content { padding: 0 28px 25px; }.experiment-layout { grid-template-columns: 200px minmax(350px,1fr); }.insight-panel { grid-column: 1 / -1; min-height: auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }.insight-panel .insight-divider { display: none; } }
@media (max-width: 820px) { .sidebar { width: 62px; flex-basis: 62px; padding: 22px 8px; }.brand { padding: 0 5px 35px; }.brand > div:not(.brand-mark), .sidebar-label, .nav-item span:not(.nav-icon), .nav-item small { display: none; }.nav-item { justify-content: center; padding: 12px 0; }.main-content { padding: 0 18px 22px; }.topbar { height: 66px; }.ghost-button .gb-text, .profile-button .gb-text { display: none; }.profile-button .chevron { display: none; } /* 图标化保留：窄屏仍有云同步/帮助入口 */.hero-grid { grid-template-columns: 1fr; }.hero-orbit { height: 270px; margin-top: -8px; }.learning-grid, .dashboard-row { grid-template-columns: 1fr; }.experiment-layout { grid-template-columns: 1fr; }.control-panel, .insight-panel { min-height: auto; }.insight-panel { display: block; }.section-intro h1 { font-size: 31px; }.compact-intro { align-items: flex-start; gap: 15px; flex-direction: column; }.canvas-wrap { min-height: 0; }.footer { flex-direction: column; gap: 8px; } }
/* 3D preview enhancement: 2026-09-23 */
.three-d-canvas-wrap { min-height: 0; background: #091420; border-color: rgba(118, 227, 209, .16); box-shadow: inset 0 0 50px rgba(0,0,0,.18); }
.three-d-canvas-wrap canvas { cursor: grab; touch-action: none; }
.three-d-canvas-wrap canvas.dragging { cursor: grabbing; }
.overlay-tag.subtle { color: #6f8397; border-color: rgba(126, 164, 189, .12); }
.axis-corner { position: absolute; right: 16px; bottom: 14px; width: 65px; height: 58px; opacity: .85; pointer-events: none; }
.axis-corner::before { content: ''; position: absolute; left: 31px; top: 28px; width: 25px; height: 1px; background: var(--danger); transform: rotate(-12deg); transform-origin: left; }
.axis-corner::after { content: ''; position: absolute; left: 31px; top: 28px; width: 22px; height: 1px; background: var(--cyan); transform: rotate(-74deg); transform-origin: left; }
.axis-corner span { position: absolute; font: 10px Georgia, serif; }
.axis-x { right: 0; top: 22px; color: var(--danger); }.axis-y { left: 27px; top: 0; color: var(--cyan); }.axis-z { left: 6px; bottom: 2px; color: var(--purple); }
.toggle-list { display: grid; gap: 8px; }
.toggle-row { display: flex !important; align-items: center; gap: 8px; margin: 0 !important; color: #8b9bad !important; cursor: pointer; }
.toggle-row input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-switch { position: relative; width: 25px; height: 14px; border-radius: 99px; background: #29384a; border: 1px solid rgba(162, 188, 208, .16); transition: .18s ease; flex: 0 0 auto; }
.toggle-switch::after { content: ''; position: absolute; width: 8px; height: 8px; left: 2px; top: 2px; border-radius: 50%; background: #7b8ea4; transition: .18s ease; }
.toggle-row input:checked + .toggle-switch { background: rgba(118, 227, 209, .25); border-color: rgba(118, 227, 209, .48); }
.toggle-row input:checked + .toggle-switch::after { left: 13px; background: var(--cyan); box-shadow: 0 0 8px rgba(118, 227, 209, .5); }
.dimension-card { display: flex; gap: 10px; margin-top: 21px; padding: 11px; border: 1px solid rgba(191, 156, 255, .16); border-radius: 7px; background: rgba(191, 156, 255, .045); }
.dimension-icon { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid rgba(191, 156, 255, .4); border-radius: 6px; color: var(--purple); font: 10px Georgia, serif; flex: 0 0 auto; }
.dimension-card strong { display: block; color: #c4bddc; font-size: 10px; }.dimension-card p { margin: 4px 0 0; color: #778398; font-size: 9px; line-height: 1.55; }
.legend-surface { display: inline-block; width: 14px; height: 8px; background: rgba(255, 202, 122, .28); border: 1px solid rgba(255, 202, 122, .6); transform: skew(-18deg); margin: 0 6px 0 0; }
@media (max-width: 1300px) { .three-d-layout { grid-template-columns: 220px minmax(430px, 1fr); }.three-d-layout .insight-panel { grid-column: 1 / -1; min-height: auto; display: block; }.three-d-layout .insight-panel .insight-divider { display: block; } }
@media (max-width: 820px) { .three-d-layout { grid-template-columns: 1fr; }.three-d-stage { min-height: auto; }.three-d-canvas-wrap canvas { min-height: 300px; } }

/* 物理模型校验信息：把 SC / BCC / FCC 的差异直接放到操作区旁边。 */
.structure-facts { margin-top: 16px; padding: 12px; border: 1px solid rgba(118, 227, 209, .16); border-radius: 9px; background: rgba(118, 227, 209, .045); }
.fact-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.fact-heading b { color: var(--cyan); font-size: 11px; letter-spacing: 0; text-transform: none; text-align: right; }
.fact-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid rgba(175, 199, 222, .09); color: #91a1b3; font-size: 10px; }
.fact-row strong { color: #e7f2f7; font-size: 11px; font-weight: 600; text-align: right; }
.legend-line { display: inline-block; width: 15px; height: 0; border-top: 2px dashed rgba(118, 227, 209, .75); margin: 0 6px 2px 0; }
#stackingCanvas { width: 100%; height: auto; display: block; margin: 2px 0 4px; border: 1px solid rgba(118, 227, 209, .11); border-radius: 6px; background: rgba(4, 10, 18, .34); }
.stack-sequence { color: var(--amber); font: 600 11px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .14em; }

/* MVP 0.3.5: single-screen workspace */
.lab-grid { display:grid; grid-template-columns:260px minmax(0,1fr); gap:14px; align-items:stretch; }
.control-rail { padding:12px 14px; min-height:0; }
.control-rail .control-group { margin-top:9px; }
.control-rail .control-group label { margin-bottom:6px; }
.control-rail .control-group select { padding:7px 8px; }
.control-rail .panel-head h3 { font-size:13px; }
.control-rail .control-help { margin:5px 0 0; font-size:10px; line-height:1.55; }
.stage-col { position:relative; padding:16px; min-width:0; overflow:hidden; }
.stage-body { display:grid; grid-template-columns:minmax(0,1fr) 236px; gap:14px; align-items:start; }
.canvas-col { min-width:0; }
.canvas-col .three-d-canvas-wrap { margin-top:0; }
.canvas-col .three-d-canvas-wrap canvas { width:100%; height:auto; min-height:0; outline-offset:-3px; }
.mode-rail { border-left:1px solid var(--line); padding-left:14px; min-width:0; }
.mode-panel.hidden { display:none; }
.mode-head h4 { margin:6px 0 0; font-size:13px; }
.mode-rail .fact-row { margin:8px 0; }
.mode-rail .fact-row strong { color:var(--cyan); }
.mode-rail .control-group { margin-top:12px; }
.mode-rail #stackingCanvas { width:100%; height:auto; margin-top:10px; border:1px solid var(--border); border-radius:6px; background:#0a1420; }
.mode-rail .stack-sequence { display:block; color:var(--amber); font-size:13px; letter-spacing:.06em; margin-top:10px; }
.mode-rail .big-fact { display:flex; align-items:baseline; gap:8px; margin:12px 0 4px; }
.mode-rail .big-fact b { font:600 40px Georgia, serif; color:var(--cyan); }
.mode-rail .big-fact span { color:#7d8fa2; font-size:11px; }
.mode-rail details { margin-top:10px; font-size:11px; color:#a0b3c5; }
.mode-rail summary { cursor:pointer; }
.mode-rail pre { white-space:pre-wrap; font-size:10.5px; line-height:1.8; }
.mode-rail .formula { font-size:17px; margin:8px 0 10px; }
.quiz-toggle .challenge-state { margin-left:4px; }
.quiz-drawer { position:absolute; top:0; right:0; bottom:0; width:min(360px, 46%); background:linear-gradient(160deg, rgba(19,30,46,.985), rgba(13,22,36,.985)); border-left:1px solid rgba(118,227,209,.22); padding:16px; transform:translateX(105%); transition:transform .28s ease; overflow-y:auto; z-index:5; box-shadow:-18px 0 40px rgba(4,10,17,.5); }
.quiz-drawer.open { transform:translateX(0); }
.quiz-drawer-head { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.structure-facts.compact { margin-top:10px; padding:9px 11px; }
.fact-grid { display:grid; grid-template-columns:1fr 1fr; gap:1px 12px; margin-top:5px; }
.fact-grid .fact-row { display:flex; justify-content:space-between; gap:6px; align-items:baseline; padding:1px 0; border-top:0; }
.section-intro.slim { align-items:center; margin-bottom:10px; }
.section-intro.slim h1 { font-size:22px; margin:5px 0 2px; }
.section-intro .intro-line { margin:0; color:#8999ab; font-size:12px; }
.explore-tabs { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 16px; }
.explore-tabs button,.view-toolbar button { border:1px solid var(--border); border-radius:6px; background:#111e2c; color:#aabaca; padding:9px 12px; cursor:pointer; font:inherit; font-size:12px; }
.explore-tabs button.active { background:rgba(118,227,209,.14); color:#9af4e5; border-color:rgba(118,227,209,.5); }
.view-toolbar { display:flex; flex-wrap:wrap; gap:10px; align-items:center; justify-content:space-between; margin-top:12px; color:#94a7b9; font-size:11px; }
.view-toolbar>div { display:flex; gap:5px; }
.view-toolbar button { padding:6px 10px; }
.model-status { margin:14px 0 0; padding:12px 14px; border-left:2px solid var(--cyan); background:rgba(118,227,209,.04); color:#b3c6d5; font-size:12px; line-height:1.8; min-height:50px; }
.control-help { color:#93a6b8; font-size:11px; line-height:1.7; margin:8px 0; }
.toggle-row input:focus-visible + .toggle-switch { outline:2px solid white; outline-offset:3px; }
@media (max-width:1150px) { .lab-grid { grid-template-columns:1fr; } .stage-body { grid-template-columns:1fr; } .mode-rail { border-left:0; padding-left:0; border-top:1px solid var(--line); padding-top:12px; } }
@media (max-width:820px) { .stage-col .stage-top { flex-wrap:wrap; gap:14px; } .explore-tabs button { flex:1 0 28%; } #stackingCanvas { max-width:400px; } .quiz-drawer { width:100%; } }

/* ---------- 0.3.2 学习闭环：预测题卡 · 「为什么」解释层 · 学习记录页 ---------- */
.quiz-block { margin-top: 15px; }
.quiz-block:first-child { margin-top: 13px; }
.quiz-prompt { color: #a5b3c1; font-size: 11.5px; line-height: 1.6; margin: 0 0 9px; }
.task-options button:disabled { opacity: .75; cursor: default; }
details.why { margin-top: 7px; }
details.why summary { cursor: pointer; color: var(--cyan); font-size: 10px; list-style: none; }
details.why summary::before { content: '▸ '; }
details.why[open] summary::before { content: '▾ '; }
details.why p { color: #8a9bad; font-size: 10.5px; line-height: 1.75; margin: 7px 0 0; }
.mastery-row { margin-bottom: 14px; }
.mastery-top { display: flex; justify-content: space-between; font-size: 11px; color: #a5b3c1; margin-bottom: 6px; }
.mastery-bar { height: 5px; border-radius: 9px; background: #22303f; overflow: hidden; }
.mastery-bar i { display: block; height: 100%; background: var(--cyan); border-radius: 9px; transition: width .3s ease; }
.mastery-row.done .mastery-top { color: var(--cyan); }
.history-row { display: flex; gap: 9px; align-items: baseline; font-size: 11px; color: #93a3b3; padding: 6px 0; border-bottom: 1px solid rgba(133,169,193,.1); }
.history-mark { font-weight: 700; }
.history-mark.ok { color: var(--cyan); }
.history-mark.bad { color: var(--danger); }

/* ---------- 0.3.3/0.3.5 观看动线：判题一键跳转 + 预测抽屉 ---------- */
.quiz-go { display: inline-block; margin: 8px 0 0 10px; border: 1px solid rgba(118,227,209,.4); background: transparent; color: var(--cyan); border-radius: 5px; padding: 4px 9px; font-size: 10px; cursor: pointer; font: inherit; }
.quiz-go:hover { background: rgba(118,227,209,.12); }

/* ---------- 0.3.6 晶系与布拉维页 ---------- */
.systems-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(272px,1fr)); gap:14px; }
.system-card { padding:16px; }
.sys-head { display:flex; justify-content:space-between; align-items:baseline; gap:8px; }
.sys-head h3 { margin:0; font-size:14px; font-weight:600; }
.sys-bravais { color:var(--cyan); font-size:10px; letter-spacing:.12em; }
.sys-svg { width:108px; height:82px; float:right; margin:4px 0 6px 10px; }
.sys-svg polygon { fill:rgba(118,227,209,.05); stroke:rgba(150,200,220,.55); stroke-width:1.1; stroke-linejoin:round; }
.sys-svg .s-top { fill:rgba(118,227,209,.10); stroke:rgba(118,227,209,.65); }
.sys-svg .s-side { fill:rgba(191,156,255,.06); stroke:rgba(150,200,220,.4); }
.system-card dl { margin:0; clear:none; overflow:hidden; }
.system-card dt { color:#65758c; font-size:9.5px; letter-spacing:.06em; margin-top:7px; }
.system-card dd { margin:2px 0 0; color:#b9c7d4; font-size:11px; line-height:1.55; }
.bravais-card { grid-column:1 / -1; }
.bravais-groups { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:8px 18px; margin:10px 0 6px; }
.bravais-row { display:flex; align-items:center; gap:6px; }
.bravais-row b { color:#8a9bad; font-size:11px; min-width:34px; font-weight:600; }
.bravais-row .chip { border:1px solid rgba(118,227,209,.3); color:var(--cyan); border-radius:5px; padding:3px 9px; font-size:11px; font-family:ui-monospace,Consolas,monospace; }

/* ---------- 0.4.0 壳闭环 + 声子页 ---------- */
.hint-box { margin-top: 12px; padding: 10px 12px; border-left: 2px solid var(--cyan); background: rgba(118,227,209,.05); color: #b3c6d5; font-size: 11px; line-height: 1.7; }
.hint-box b { color: var(--cyan); }
.roadmap-list { list-style: none; margin: 18px 0 22px; padding: 0; text-align: left; }
.roadmap-list li { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; }
.roadmap-list b { color: var(--cyan); font-size: 12px; }
.roadmap-list span { color: #8a9bad; font-size: 11px; line-height: 1.6; }

/* ---------- 0.4.1 新手引导：帮助浮层 + 任务清单 ---------- */
.help-overlay { position: fixed; inset: 0; background: rgba(4,10,17,.72); backdrop-filter: blur(3px); z-index: 40; display: grid; place-items: center; padding: 20px; }
.help-overlay.hidden { display: none; }
.help-card { position: relative; width: min(580px, 94vw); max-height: 88vh; overflow-y: auto; padding: 26px 28px; }
.help-close { position: absolute; top: 12px; right: 14px; border: 0; background: transparent; color: #7b8ba0; font-size: 22px; cursor: pointer; line-height: 1; }
.help-close:hover { color: var(--cyan); }
.help-steps { margin-top: 14px; }
.help-actions { display: flex; gap: 12px; align-items: center; margin-top: 20px; }
.newbie-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding: 8px 12px; margin-bottom: 10px; border: 1px dashed rgba(118,227,209,.35); border-radius: 8px; background: rgba(118,227,209,.05); font-size: 11px; color: #a5b3c1; }
.newbie-bar .nb-title { color: var(--cyan); font-weight: 700; letter-spacing: .06em; }
.newbie-bar .nb-item { display: inline-flex; align-items: center; gap: 5px; }
.newbie-bar .nb-item i { font-style: normal; color: #65758c; }
.newbie-bar .nb-item.done { color: var(--cyan); }
.newbie-bar .nb-item.done i { color: var(--cyan); }
.newbie-bar .nb-close { margin-left: auto; border: 0; background: transparent; color: #7b8ba0; font-size: 16px; cursor: pointer; line-height: 1; }
.newbie-bar .nb-close:hover { color: var(--cyan); }
.task-badge.done { border-color: rgba(118,227,209,.45); color: var(--cyan); }

/* 0.4.4 新手任务可点击定位 */
.newbie-bar .nb-item[data-task] { cursor: pointer; border: 0; background: transparent; font: inherit; color: inherit; padding: 0; }
.newbie-bar .nb-item[data-task]:hover { color: var(--cyan); }
.task-hint-pulse { animation: task-pulse 0.9s ease-out 3; border-radius: 8px; }
@keyframes task-pulse { 0% { box-shadow: 0 0 0 0 rgba(118,227,209,.55); } 70% { box-shadow: 0 0 0 9px rgba(118,227,209,0); } 100% { box-shadow: 0 0 0 0 rgba(118,227,209,0); } }

/* ---------- 0.6.0 AI 学伴抽屉 ---------- */
.ai-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(400px, 94vw); z-index: 45; background: linear-gradient(170deg, rgba(17,29,44,.99), rgba(11,21,35,.99)); border-left: 1px solid rgba(118,227,209,.22); box-shadow: -20px 0 44px rgba(4,10,17,.55); display: flex; flex-direction: column; transform: translateX(105%); transition: transform .28s ease; }
.ai-drawer.open { transform: translateX(0); }
.ai-drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.ai-drawer-head h3 { margin: 4px 0 0; font-size: 15px; }
.ai-config { padding: 10px 16px; border-bottom: 1px solid var(--line); }
.ai-config .control-group { margin-top: 10px; }
.ai-config input, .ai-config select { width: 100%; color: #c7d2dd; background: #182638; border: 1px solid var(--line); border-radius: 5px; padding: 8px; font-size: 11px; outline: none; }
.ai-config input:focus, .ai-config select:focus { border-color: var(--cyan); }
.ai-msgs { flex: 1; overflow-y: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.ai-msg { max-width: 88%; padding: 9px 12px; border-radius: 10px; font-size: 12px; line-height: 1.7; }
.ai-msg-bot { align-self: flex-start; background: rgba(118,227,209,.08); border: 1px solid rgba(118,227,209,.18); color: #c9d8e2; }
.ai-msg-user { align-self: flex-end; background: rgba(118,227,209,.16); color: #e6f5f2; }
.ai-msg.ai-busy { color: #7b8ba0; }
.ai-input-row { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.ai-input-row input { flex: 1; color: #e6f5f2; background: #182638; border: 1px solid var(--line); border-radius: 6px; padding: 10px; font-size: 12px; outline: none; }
.ai-input-row input:focus { border-color: var(--cyan); }

/* ---------- 0.7.1 傅里叶页三幕式 ---------- */
.ft-stage { padding: 16px; }
.ft-stepper { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.ft-dots { display: flex; gap: 8px; flex-wrap: wrap; }
.ft-dot { border: 1px solid var(--line-strong); background: rgba(255,255,255,.025); color: #8292a5; border-radius: 6px; padding: 8px 14px; font-size: 12px; cursor: pointer; }
.ft-dot.active { background: rgba(118,227,209,.14); color: #9af4e5; border-color: rgba(118,227,209,.5); }
.ft-act.hidden { display: none; }
.ft-copy { color: #a5b3c1; font-size: 12.5px; line-height: 1.8; margin: 0 0 14px; }
.ft-copy b { color: var(--cyan); }
.ft-controls { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.ft-ctrl-row { display: flex; align-items: center; gap: 12px; font-size: 11px; color: #a5b3c1; }
.ft-ctrl-row input[type=range] { flex: 1; }
.ft-ctrl-row output { color: var(--cyan); font-size: 11px; min-width: 52px; text-align: right; }
.ft-ctrl-name { min-width: 88px; color: #8a9bad; }
.ft-quiz { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }

/* ---------- 0.8.0 云同步抽屉 ---------- */
#syncDrawer .primary-button { padding: 11px; }
#syncDrawer .stage-action { white-space: nowrap; }

/* ---------- 统一文本输入控件：账号/AI 聊天/CIF 粘贴区等，深色一致外观 ---------- */
input[type=text], input[type=password], input[type=email], input[type=number], textarea {
  background: rgba(13, 24, 38, .85);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #d7e3ee;
  padding: 9px 11px;
  font-size: 12px;
  font-family: inherit;
  line-height: 1.4;
  outline: none;
  min-width: 0;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
input[type=text]:hover, input[type=password]:hover, input[type=email]:hover, input[type=number]:hover, textarea:hover { border-color: rgba(118, 227, 209, .35); }
input[type=text]:focus, input[type=password]:focus, input[type=email]:focus, input[type=number]:focus, textarea:focus {
  border-color: rgba(118, 227, 209, .65);
  box-shadow: 0 0 0 3px rgba(118, 227, 209, .12);
  background: rgba(15, 28, 44, .95);
}
input::placeholder, textarea::placeholder { color: #5d7183; }
/* 浏览器自动填充的白色底改为主题色 */
input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #0f1c2c inset; -webkit-text-fill-color: #d7e3ee; caret-color: #d7e3ee; transition: background-color 99999s; }

#cifCanvas { cursor: grab; touch-action: none; }
#cifCanvas:active { cursor: grabbing; }
