/* subject.css — 学科学习页面专属样式（2026-11-23 Amber 设计稿：学科学习列表 / 学科概览 / 学习路径 / 因果分析）
   全部限定在 .lx2（学科学习列表）与 .sx（学科页外层）之内；香港题目视角、旧版页面不受影响。学科主题色由 views.js 写进 --c / --sc / --bc。 */

/* ── 学科学习列表 ── */
.lx2__h { margin: 6px 0 22px; }
.lx2__h h1 { margin: 0; font-size: 28px; font-weight: 800; color: var(--ink); }
.lx2__h p { margin: 8px 0 0; font-size: 14.5px; color: var(--ink2); }
.lx2__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 22px; }
.lc2 { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px 22px 20px; border-radius: 20px; border-top: 4px solid var(--c); box-shadow: 0 10px 28px rgba(60, 50, 150, .07); }
.lc2.is-off { border-top-color: #c9ccdc; }
.lc2__h { display: flex; align-items: center; gap: 14px; }
.lc2__h .sicon { --sz: 46px; border-radius: 14px; background: linear-gradient(145deg, color-mix(in srgb, var(--c) 16%, #fff), color-mix(in srgb, var(--c) 7%, #fff)); }
.lc2__h h2 { margin: 0; font-size: 21px; font-weight: 800; color: var(--ink); }
.lc2__st { margin-left: auto; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: #6a52ec; background: #efecff; }
.lc2__st.is-done { color: #16804f; background: #e7f7ee; }
.lc2__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lc2__stats > div { padding: 12px 16px; border-radius: 14px; background: #f7f6fd; }
.lc2__stats small { display: block; font-size: 12px; color: var(--ink2); }
.lc2__stats b { display: block; margin-top: 4px; font-size: 26px; font-weight: 800; color: var(--ink); }
.lc2__focus { display: grid; grid-template-columns: 26px minmax(0, 1fr) 14px; align-items: center; gap: 12px; width: 100%; padding: 8px 6px; border: 0; border-radius: 12px; background: none; font: inherit; text-align: left; color: var(--ink); cursor: pointer; }
.lc2__focus:not(:disabled):hover { background: #f6f5fd; }
.lc2__focus:disabled { cursor: default; }
.lc2__focus .ic { width: 24px; height: 24px; color: var(--c); }
.lc2__focus small { display: block; font-size: 12px; color: var(--ink2); }
.lc2__focus b { display: block; margin-top: 2px; font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc2__focus i { font-style: normal; font-size: 20px; color: var(--muted); }
.lc2__ph { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--ink2); }
.lc2__ph b { color: var(--ink2); font-weight: 600; }
.lc2__bar { display: block; height: 8px; margin-top: 8px; border-radius: 999px; background: #ece9fb; overflow: hidden; }
.lc2__bar > b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8b77fa, #6a4cf0); transition: width .3s; }
.lc2__a { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; margin-top: 4px; }
.lc2__a .btn { height: 44px; justify-content: center; border-radius: 13px; font-weight: 700; }
.lc2__a .btn--pri { background: linear-gradient(135deg, #8b77fa 0%, #6a4cf0 100%); box-shadow: 0 8px 18px rgba(106, 76, 240, .22); }
.lc2__off { margin: 0; font-size: 13.5px; }

/* ── 学科页：页头 + 页签（2026-11-24 Amber：删除右上角学科插画） ── */
.sx { position: relative; }
.sx-head { margin-bottom: 6px; }
.sx-head .sicon { border-radius: 14px; }
.sx-tabs { gap: 28px; margin-bottom: 18px; border-bottom: 0; }
.sx-tabs button { padding: 10px 2px; font-size: 16px; font-weight: 700; color: var(--ink2); }
.sx-tabs button.is-on { color: #5b45e0; box-shadow: inset 0 -3px 0 #6a52ec; }

/* 卡片通用 */
.sx .sx-c { padding: 22px 24px; border-radius: 20px; }
.sx .sx-c__h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sx .sx-c__h h2 { display: flex; align-items: center; gap: 8px; margin: 0; flex: none; white-space: nowrap; font-size: 18px; font-weight: 800; color: var(--ink); }
.sx .sx-c__h h2 small { font-size: 13px; font-weight: 500; color: var(--ink2); margin-left: 6px; }
.sx .sx-c__h h2 > .ic { width: 22px; height: 22px; color: var(--c); }
.sx .sx-c__h > .link { white-space: nowrap; flex: none; }
.sx .tip { display: inline-grid; place-items: center; width: 18px; height: 18px; font-size: 13px; font-weight: 500; color: var(--muted); cursor: help; }
.sx .sx-chip { padding: 5px 12px; border-radius: 10px; font-size: 12.5px; font-weight: 700; color: #5b45e0; background: #efecff; border: 0; font-family: inherit; }
.sx .sx-chip--btn { cursor: pointer; transition: background .15s; }
.sx .sx-chip--btn:hover { background: #e4dfff; }
.sx .sx-chip--btn:focus-visible { outline: 2px solid #8b77fa; outline-offset: 2px; }
.sx .btn--pri { background: linear-gradient(135deg, #8b77fa 0%, #6a4cf0 100%); box-shadow: 0 8px 18px rgba(106, 76, 240, .22); border-radius: 12px; font-weight: 700; }
.sx .btn--ghost { border-radius: 12px; font-weight: 700; }

/* ── 学科概览（第 2 版）── */
.sx-ov { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.sx-ov > .sx-c { display: flex; flex-direction: column; }
/* ① 能力分析 */
.sx-ab__b { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 178px; gap: 8px 22px; align-items: center; }
.sx-ab__chart { display: grid; place-items: center; min-width: 0; }
.ab-rd { display: block; width: 100%; max-width: 470px; height: auto; overflow: visible; }
.ab-rd__g { fill: none; stroke: #e7e5f3; stroke-width: 1; }
.ab-rd__g.is-out { stroke: #d9d6ec; fill: color-mix(in srgb, var(--c) 3%, #fff); }
.ab-rd__a { stroke: #e7e5f3; stroke-width: 1; }
.ab-rd__l { font-size: 16.5px; font-weight: 600; fill: var(--ink); }
.ab-rd:lang(en) .ab-rd__l, :lang(en) .ab-rd__l { font-size: 17px; }
.ab-rd__v { font-size: 19px; font-weight: 800; }
.ab-rd__na { font-size: 12.5px; font-weight: 500; fill: var(--muted); }
.ab-rd__co { fill: none; stroke: #8f95b3; stroke-width: 1.5; stroke-dasharray: 5 4; }
.ab-rd__lg { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin: 4px 0 0; font-size: 12px; color: var(--ink2); }
.ab-rd__lg span { display: inline-flex; align-items: center; gap: 6px; }
.ab-rd__k { width: 14px; height: 4px; border-radius: 2px; }
.ab-rd__k--co { height: 0; border-top: 2px dashed #8f95b3; background: none; }
.ab-rd__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; }
.sx-ab__pend { display: grid; justify-items: center; gap: 6px; padding: 40px 12px; text-align: center; color: var(--ink2); }
.sx-ab__pend .ic { width: 34px; height: 34px; color: var(--c); }
.sx-ab__pend b { font-size: 15px; color: var(--ink); } .sx-ab__pend small { font-size: 13px; }
.sx-ab__m { align-self: stretch; padding-left: 22px; border-left: 1px solid #ecebf5; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.sx-ab__m small { font-size: 13px; color: var(--ink2); margin-top: 8px; }
.sx-big { font-size: 42px; font-weight: 800; line-height: 1.1; color: var(--ink); letter-spacing: -.5px; }
.sx-delta { font-size: 19px; font-weight: 800; color: var(--ink2); }
.sx-delta.is-down { color: #e5484d; } .sx-delta.is-up { color: #1f9d63; }
.sx-kv { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid #ecebf5; display: grid; gap: 10px; }
.sx-kv li { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--ink2); }
.sx-kv b { color: var(--ink); font-weight: 800; }
/* 能力定义 */
.sx-dlg { width: min(560px, calc(100vw - 32px)); max-height: min(78vh, 720px); padding: 0; border: 0; border-radius: 20px; box-shadow: 0 30px 80px rgba(30, 30, 90, .25); color: var(--ink); }
.sx-dlg::backdrop { background: rgba(29, 33, 66, .32); }
.sx-dlg__h { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 12px; background: #fff; border-bottom: 1px solid #efeef7; }
.sx-dlg__h h3 { margin: 0; font-size: 18px; font-weight: 800; }
.sx-dlg__x { width: 32px; height: 32px; border: 0; border-radius: 10px; background: #f3f2fa; color: var(--ink2); font-size: 20px; line-height: 1; cursor: pointer; }
.sx-dlg__basis { margin: 14px 22px 4px; font-size: 13.5px; color: var(--ink2); }
.sx-dlg__list { list-style: none; margin: 0; padding: 4px 22px; }
.sx-dlg__list li { display: grid; gap: 3px; padding: 12px 0; border-bottom: 1px solid #f1f0f8; }
.sx-dlg__list b { font-size: 15px; font-weight: 800; color: var(--ink); }
.sx-dlg__list span { font-size: 13.5px; color: var(--ink2); line-height: 1.6; }
.sx-dlg__list small { font-size: 12px; color: var(--muted); }
.sx-dlg__f { margin: 6px 22px 20px; padding: 14px 16px; border-radius: 14px; background: #f7f6fd; }
.sx-dlg__f h4 { margin: 0 0 6px; font-size: 14px; font-weight: 800; }
.sx-dlg__f p { margin: 4px 0 0; font-size: 13px; color: var(--ink2); line-height: 1.6; }
/* ② 当前重点提升 */
.sx-fc__card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; padding: 20px 22px; border-radius: 18px; background: linear-gradient(115deg, color-mix(in srgb, var(--c) 11%, #fff) 0%, #f6f4ff 100%); border: 1px solid color-mix(in srgb, var(--c) 16%, #fff); }
.sx-fc__ic .sicon { border-radius: 14px; background: #fff; box-shadow: 0 6px 14px color-mix(in srgb, var(--c) 18%, transparent); }
.sx-fc__t b { display: block; font-size: 20px; font-weight: 800; color: var(--ink); line-height: 1.35; }
.sx-fc__t small { display: block; margin-top: 6px; font-size: 13.5px; color: var(--ink2); }
.sx-fc__t small em { font-style: normal; }
.sx-fc__t small em.is-down { color: #d9434c; } .sx-fc__t small em.is-up { color: #1f9d63; }
.sx-fc__a { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.sx-fc__a .btn { height: 42px; padding: 0 20px; font-size: 14.5px; }
.sx-fc__a .btn--ghost { background: #fff; }
.sx-fc__exp { margin-top: 18px; padding-top: 16px; border-top: 1px solid #eceaf5; }
.sx-fc__exp h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 15px; font-weight: 800; color: var(--ink); }
.sx-fc__exp h3 .ic { width: 20px; height: 20px; padding: 3px; border-radius: 7px; background: #efecff; color: #6a52ec; }
.sx-fc__kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sx-fc__k { padding: 14px 16px; border-radius: 14px; background: #f8f7fd; border: 1px solid #efedf8; }
.sx-fc__k > span { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink2); }
.sx-fc__k > b { display: block; margin-top: 6px; font-size: 22px; font-weight: 800; color: var(--ink); line-height: 1.25; }
:lang(en) .sx-fc__k > b { font-size: 19px; }
/* ③ 各次考试表现 */
.sx-ex__trend { margin-bottom: 12px; }
.sx-ex__row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 16px; background: #f7f6fd; }
.sx-ex__row > .ic { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: #fff; color: var(--c); }
.sx-ex__row b { display: block; font-size: 16px; font-weight: 800; color: var(--ink); }
.sx-ex__row small { display: block; font-size: 12.5px; color: var(--ink2); margin-top: 3px; }
.sx-ex__v { text-align: right; } .sx-ex__v b { font-size: 28px; line-height: 1.1; }
.sx-ex__read { margin-top: 14px; padding: 16px 18px; border-radius: 16px; background: linear-gradient(110deg, #f5f2ff, #faf9ff); }
.sx-ex__read h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 15px; font-weight: 800; color: #5b45e0; }
.sx-ex__read h3 .ic { width: 20px; height: 20px; }
.sx-ex__read ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; line-height: 1.7; color: var(--ink); }
.sx-ex__dist { margin-top: 14px; padding: 14px 18px 12px; border-radius: 16px; border: 1px solid #efedf8; }
.sx-ex__dh { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 30px; }
.sx-ex__dh { flex-wrap: wrap; } .sx-ex__dh b { font-size: 14.5px; font-weight: 800; color: var(--ink); white-space: nowrap; } .sx-ex__dh small { font-size: 12.5px; color: var(--ink2); }
.sx-ex__dt { position: relative; height: 10px; border-radius: 6px; background: #eeedf6; }
.sx-ex__dt > i { position: absolute; top: 0; bottom: 0; border-radius: 6px; background: color-mix(in srgb, var(--c) 26%, #fff); }
.sx-ex__dt > s { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; border-radius: 1px; background: #5d6280; }
.sx-ex__dt > b { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--c); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
.sx-ex__dt > b em { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); padding: 2px 8px; border-radius: 8px; font-style: normal; font-size: 12px; font-weight: 800; color: #fff; background: var(--c); white-space: nowrap; }
.sx-ex__dt > b.is-r em { left: auto; right: -6px; transform: none; } .sx-ex__dt > b.is-l em { left: -6px; transform: none; }   /* 两端不出界 */
.sx-ex__dl { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11.5px; color: var(--muted); }
/* ④ 当前推荐阶段 */
.sx-stg__cur { padding: 14px; border-radius: 16px; background: color-mix(in srgb, var(--c) 5%, #fbfbfe); border: 1px solid color-mix(in srgb, var(--c) 14%, #eeeef6); }
.sx-stg__lab { display: flex; align-items: center; gap: 10px; margin: 0 2px 10px; }
.sx-stg__lab small { font-size: 12.5px; font-weight: 700; color: #5b45e0; }
.sx-stg__badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 8px; font-size: 13px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #8b77fa, #6a4cf0); }
.sx-stg__badge .ic { width: 15px; height: 15px; }
.sx-stg__badge.is-ahead { color: var(--ink2); background: #eeeef6; }
.sx-stg__tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sx-stg__tasks li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid #ecebf5; }
.sx-stg__tasks li.is-cur { border-color: color-mix(in srgb, #6a52ec 45%, #fff); box-shadow: 0 0 0 3px rgba(106, 82, 236, .10); }
.sx-stg__tasks li .link { font-weight: 700; color: var(--ink); text-align: left; font-size: 14.5px; }
.sx-stg__tasks li .pill { margin-left: auto; flex: none; }
/* 2026-11-24 lbl-001 页面核对：英文长知识点名称 + 「Question bank in progress」在手机上把整行撑出屏幕 → 名称可折行，手机上标签放不下时换到下一行 */
.sx-stg__tasks li .link { flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 640px) { .sx-stg__tasks li { flex-wrap: wrap; } .sx-stg__tasks li .pill { margin-left: 38px; } }
.sx-stg__tno { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #d8d6e8; color: var(--ink2); font-weight: 800; font-size: 12.5px; background: #fff; }
.sx-stg__tasks li.is-cur .sx-stg__tno { border-color: #6a52ec; color: #fff; background: #6a52ec; }
.sx-stg__tasks li.is-mastered .sx-stg__tno { border-color: #1f9d63; color: #fff; background: #1f9d63; }
.sx-stg__now { color: #5b45e0; background: #efecff; }
.sx-stg__next { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.sx-stg__nx { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; border: 1px dashed #dcdaea; background: #fcfcfe; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.sx-stg__nx:hover { border-style: solid; border-color: #cfcbe6; background: #fff; }
.sx-stg__nt { font-size: 14px; font-weight: 600; color: var(--ink2); }
.sx-stg__nx .pill { margin-left: auto; }
.sx-stg__go { align-self: flex-start; margin-top: 16px; height: 44px; padding: 0 22px; }

/* ── 学习路径（2026-11-24 Amber 第 2 版：阶段旅程）── */
.sx-path { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
.sx-pm { display: grid; gap: 20px; min-width: 0; }
.sx-path2 .ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
/* 左：路线 */
.sx-rt { position: sticky; top: var(--stick, 84px); overflow: hidden; padding-bottom: 16px; }
.sx-rt__h { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.sx-rt__hic { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, #effcf5, #d9f5e6); flex: none; }
.sx-rt__hic .kt-route { width: 38px; height: 38px; }
.sx-rt__hic .ic { width: 22px; height: 22px; }
.sx-rt__h h2 { margin: 0; font-size: 19px; font-weight: 800; color: var(--ink); }
.sx-rt__h p { margin: 3px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink2); }
.sx-rt__list { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sx-rt__list::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; border-left: 2px dashed #dcd8ef; }
.sx-rt__i { position: relative; }
.sx-rt__b { position: relative; width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 8px 12px 8px 0; border: 1px solid transparent; border-radius: 14px; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; transition: background .15s, border-color .15s; }
.sx-rt__b:hover { background: #f7f6fd; }
.sx-rt__b:focus-visible { outline: none; border-color: #a99cf9; box-shadow: 0 0 0 3px rgba(106, 82, 236, .14); }
.sx-rt__node { grid-row: 1 / span 2; justify-self: center; position: relative; z-index: 1; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 2px solid #d6d3e8; color: var(--ink2); font-weight: 800; font-size: 13px; }
.sx-rt__node .ic { width: 16px; height: 16px; stroke-width: 2.6; }
.sx-rt__t b { display: block; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.sx-rt__t small { display: block; font-size: 12px; color: var(--muted); }
.sx-rt__n { font-size: 12.5px; color: var(--ink2); font-variant-numeric: tabular-nums; }
.sx-rt__n b { font-size: 15px; font-weight: 800; color: var(--ink); }
.sx-rt__bar { grid-column: 2 / span 2; display: block; height: 4px; margin-top: 6px; border-radius: 2px; background: #eeedf6; overflow: hidden; }
.sx-rt__bar b { display: block; height: 100%; background: #1f9d63; border-radius: 2px; }
.sx-rt__i.is-done .sx-rt__node { background: #1f9d63; border-color: #1f9d63; color: #fff; }
.sx-rt__i.is-cur .sx-rt__node { width: 34px; height: 34px; background: linear-gradient(135deg, #8b77fa, #6a4cf0); border: 0; color: #fff; box-shadow: 0 0 0 5px rgba(106, 82, 236, .16); }
.sx-rt__i.is-cur .sx-rt__t small { color: #5b45e0; font-weight: 700; }
.sx-rt__i.is-cur .sx-rt__bar b { background: linear-gradient(90deg, #8b77fa, #6a4cf0); }
.sx-rt__i.is-sel .sx-rt__b { background: #f4f1ff; border-color: #d9d2ff; }
.sx-rt__i.is-ahead .sx-rt__t b { color: var(--ink2); }
.sx-rt__end { position: relative; display: flex; align-items: center; gap: 12px; margin: 14px 0 0; padding: 12px 14px; border-radius: 16px; background: linear-gradient(110deg, #fff8e6, #fffdf6); border: 1px solid #f6e5b8; color: #8a6a1e; font-size: 13.5px; font-weight: 700; }
.sx-rt__cup { flex: none; display: block; width: 56px; height: 56px; }
.sx-rt__cup .kt-trophy { display: block; width: 56px; height: 56px; }
.sx-rt__end small { font-size: inherit; color: inherit; }
.sx-rt__end.is-done { background: linear-gradient(110deg, #ffefc2, #fff6dc); color: #7a5300; }
.sx-rt__deco { display: flex; justify-content: flex-end; margin-top: 4px; height: 56px; opacity: .9; }
.sx-rt__deco .rp2-mini { position: static; width: 56px; height: 56px; }
/* 右上：统一进度面板 */
.sx-hero2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); padding: 0; overflow: hidden; border-radius: 20px; }
.sx-hero2__l, .sx-hero2__r { display: flex; align-items: center; gap: 16px; padding: 20px 24px; }
.sx-hero2__r { background: linear-gradient(115deg, #f5f2ff, #fbfaff); border-left: 1px solid #eeebfa; }
.sx-hero2__ic { flex: none; display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: #efecff; color: #6a52ec; }
.sx-hero2__ic .ic { width: 26px; height: 26px; }
.sx-hero2__ic.is-art { width: 58px; height: 58px; border-radius: 16px; background: #fff; box-shadow: 0 6px 16px rgba(70, 60, 160, .08); }
.sx-hero2__ic.is-art svg { width: 46px; height: 46px; }
.sx-hero2__m { flex: 1; min-width: 0; }
.sx-hero2 h2 { margin: 0; font-size: 17px; font-weight: 800; color: var(--ink); }
.sx-hero2 small, .sx-hero2__r p { display: block; margin: 3px 0 0; font-size: 13px; color: var(--ink2); line-height: 1.5; }
.sx-hero2__r p { font-size: 14px; color: var(--ink); font-weight: 600; }
.sx-hero2__r small { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.sx-hero2__bar { display: block; height: 10px; margin-top: 10px; border-radius: 999px; background: #ebe8fb; overflow: hidden; }
.sx-hero2__bar > b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8b77fa, #6a4cf0); }
.sx-hero2__n { flex: none; text-align: right; }
.sx-hero2__n small { margin: 0; font-size: 12.5px; }
.sx-hero2__n b { display: block; font-size: 30px; font-weight: 800; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.sx-hero2__n b span { font-size: 18px; color: var(--ink2); font-weight: 700; }
/* 阶段关卡 */
.sx-lv2 .sx-c__h h2 .ic { width: 22px; height: 22px; color: #6a52ec; }
.stage2 { margin-bottom: 12px; border-radius: 18px; border: 1px solid #ecebf5; background: #fff; }
.stage2[open] { background: #fcfcff; }
.stage2.is-cur[open] { border-color: #d6cefc; background: linear-gradient(180deg, #f8f6ff, #fff 90px); }
.stage2 > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; }
.stage2 > summary::-webkit-details-marker { display: none; }
.stage2 > summary b { font-size: 16.5px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.stage2 > summary small { font-size: 13px; color: var(--ink2); }
.stage2__no { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: #f1f0f8; color: var(--ink2); font-weight: 800; font-size: 14px; }
.stage2__no .ic { width: 16px; height: 16px; stroke-width: 2.6; }
.stage2.is-cur .stage2__no { background: linear-gradient(135deg, #8b77fa, #6a4cf0); color: #fff; }
.stage2.is-done .stage2__no { background: #1f9d63; color: #fff; }
.stage2__chev { margin-left: auto; color: var(--muted); transition: transform .2s; }
.stage2[open] .stage2__chev { transform: rotate(90deg); }
.stage2__hint { margin: -4px 18px 10px; font-size: 12.5px; color: var(--muted); }
.lv2-list { list-style: none; margin: 0; padding: 0 14px 4px; display: grid; gap: 10px; }
.lv2 { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 10px 14px 10px 10px; border-radius: 16px; background: #fff; border: 1px solid #efeef6; transition: border-color .15s, box-shadow .15s; }
.lv2:hover { border-color: #dedaf3; box-shadow: 0 6px 16px rgba(60, 50, 140, .06); }
.lv2.is-next { border-color: #cdc3fb; box-shadow: inset 4px 0 0 #6a52ec; }
.lv2__th { position: relative; display: block; width: 120px; height: 78px; padding: 0; border: 0; border-radius: 13px; overflow: hidden; background: linear-gradient(135deg, color-mix(in srgb, var(--sc) 90%, #fff), color-mix(in srgb, var(--c) 14%, #fff)); cursor: default; }
button.lv2__th { cursor: pointer; }
button.lv2__th:focus-visible { outline: 2px solid #6a52ec; outline-offset: 2px; }
.lv2__th .kt { display: block; width: 100%; height: 100%; }
.lv2__play { position: absolute; right: 7px; bottom: 7px; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: #6a52ec; box-shadow: 0 2px 6px rgba(40, 30, 120, .18); }
.lv2__play .ic { width: 13px; height: 13px; fill: currentColor; stroke: none; margin-left: 2px; }
button.lv2__th:hover .lv2__play { background: #6a52ec; color: #fff; }
.lv2__b { min-width: 0; }
.lv2__now { display: inline-block; margin-bottom: 3px; padding: 1px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 800; color: #5b45e0; background: #efecff; }
.lv2__b b { display: block; font-size: 16px; font-weight: 800; color: var(--ink); line-height: 1.35; }
.lv2__d { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 4px; font-size: 13px; color: var(--ink2); }
.lv2__d .ic { width: 15px; height: 15px; color: var(--c); }
.lv2__s { justify-self: end; }
.lv2__prog { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink2); }
.lv2__a { display: flex; gap: 8px; }
.lv2__a .btn { height: 38px; padding: 0 16px; }
.lv2__kids { grid-column: 1 / -1; margin: 0 2px 2px; font-size: 13px; }
.lv2__kids summary { cursor: pointer; color: #5b45e0; font-weight: 700; }
.lv2__kids ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.lv2__kids li { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: #f8f7fd; }
.lv2__kids li span:first-child { flex: 1; min-width: 0; color: var(--ink); }
.lv2-goal { display: flex; gap: 12px; margin: 12px 14px 14px; padding: 12px 16px; border-radius: 14px; background: linear-gradient(110deg, #fff8e6, #fffbf1); border: 1px solid #f6e5b8; }
.lv2-goal > .ic { width: 22px; height: 22px; color: #e8a317; margin-top: 1px; }
.lv2-goal.is-soft { background: #f8f7fd; border-color: #ecebf5; } .lv2-goal.is-soft > .ic { color: #6a52ec; }
.lv2-goal b { font-size: 14.5px; color: var(--ink); } .lv2-goal p { margin: 2px 0 0; font-size: 13.5px; color: var(--ink2); line-height: 1.55; }
/* 练习规则 */
.sx-rules { margin-top: 16px; padding: 16px 18px; border-radius: 16px; background: #f8f7fd; }
.sx-rules h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 15px; font-weight: 800; color: var(--ink); }
.sx-rules h3 .ic { color: #6a52ec; }
.sx-rules ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.sx-rules li { display: flex; gap: 10px; align-items: flex-start; }
.sx-rules li > .ic { width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: #fff; color: #6a52ec; box-shadow: 0 1px 3px rgba(40, 30, 120, .08); }
.sx-rules li b { display: block; font-size: 13.5px; font-weight: 800; color: var(--ink); }
.sx-rules li span { display: block; margin-top: 1px; font-size: 13px; line-height: 1.55; color: var(--ink2); }
/* 关卡缩略图画笔（kpart.js） */
.kt .s { fill: none; stroke: var(--c); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.kt .f { fill: color-mix(in srgb, var(--c) 20%, #fff); }
.kt .f.s, .kt .s.f { fill: color-mix(in srgb, var(--c) 20%, #fff); }
.kt .p { fill: var(--c); }
.kt .a { fill: none; stroke: #f59e0b; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.kt .af { fill: #f5a524; }
.kt .k { fill: none; stroke: #a4a9c4; stroke-width: 1.6; stroke-linecap: round; }
.kt .w { fill: #fff; }
.kt .w.s { fill: #fff; }
.kt .t { font-family: "Times New Roman", Georgia, serif; font-style: italic; font-weight: 700; font-size: 20px; fill: color-mix(in srgb, var(--c) 82%, #1d2142); }
.kt .ta { font-family: "Times New Roman", Georgia, serif; font-style: italic; font-weight: 700; font-size: 14px; fill: #e08a12; }
@media (max-width: 1180px) { .lv2 { grid-template-columns: 104px minmax(0, 1fr) auto; } .lv2__th { width: 104px; height: 68px; } .lv2__a { grid-column: 2 / -1; justify-self: start; } .sx-hero2 { grid-template-columns: minmax(0, 1fr); } .sx-hero2__r { border-left: 0; border-top: 1px solid #eeebfa; } }
@media (max-width: 1100px) {
  .sx-path { grid-template-columns: minmax(0, 1fr); }
  .sx-rt { position: static; }
  .sx-rt__list { grid-auto-flow: column; grid-auto-columns: minmax(184px, 1fr); overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .sx-rt__t b { white-space: nowrap; }
  .sx-rt__list::before { left: 22px; right: 22px; top: 23px; bottom: auto; border-left: 0; border-top: 2px dashed #dcd8ef; }
  .sx-rt__b { scroll-snap-align: start; }
  .sx-rt__deco { display: none; }
}
@media (max-width: 760px) {
  .lv2 { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; } .lv2__th { width: 88px; height: 58px; } .lv2__s { grid-column: 2; justify-self: start; } .lv2__a { grid-column: 1 / -1; }
  .sx-rules ul { grid-template-columns: minmax(0, 1fr); }
  .stage2 > summary { flex-wrap: wrap; } .stage2 > summary small { flex-basis: 100%; order: 5; }
}

/* ── 因果分析：子页签 ── */
.sx .subtabs { display: inline-flex; gap: 6px; padding: 5px; margin-bottom: 18px; border-radius: 16px; background: #eceefa; border: 0; }
.sx .subtabs button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border: 0; border-radius: 12px; background: none; font: inherit; font-size: 14.5px; font-weight: 700; color: var(--ink2); cursor: pointer; }
.sx .subtabs button .ic { width: 18px; height: 18px; }
.sx .subtabs button.is-on { background: #fff; color: #5b45e0; box-shadow: 0 3px 10px rgba(76, 82, 180, .12); }

/* ── 我的重点关系 ── */
.sx-rel { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.sx-rm__lg { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--ink2); }
.sx-rm__lg span { display: inline-flex; align-items: center; gap: 6px; }
.sx-rel i.lg-f, .sx-rel i.lg-d, .sx-rel i.lg-r, .sx-rel i.lg-t { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.sx-rel i.lg-f { background: var(--c); } .sx-rel i.lg-d { width: 14px; height: 14px; background: #1f9d63; -webkit-mask: none; position: relative; } .sx-rel i.lg-d::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 9px; font-style: normal; font-weight: 800; } .sx-rel i.lg-r { background: #d9d5f2; }
.sx-rel i.lg-t { width: 16px; border-radius: 5px; border: 1.5px dashed var(--c); }
.sx-rel i.lg-a { font-style: normal; color: var(--c); font-weight: 800; }
.sx-rel i.lg-u { display: inline-block; width: 18px; border-top: 2px dashed var(--c); opacity: .6; }
.sx-rm__sub { margin: -4px 0 8px; font-size: 13px; color: var(--ink2); }
.sx-rm__stage { --gapx: 64px; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--gapx); align-items: center; min-height: 380px; padding: 18px 6px; }
.sx-rm__svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.sx-rm__col { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.sx-rm__col--c { align-items: stretch; }
.sx-rm__bot { display: flex; flex-direction: column; gap: 14px; margin-top: 44px; padding: 0 12px; }
.sx-rc { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; width: 100%; padding: 12px 14px; border-radius: 16px; border: 1px solid #ecebf5; background: #fff; box-shadow: 0 6px 16px rgba(60, 50, 150, .06); font: inherit; text-align: left; color: var(--ink); cursor: pointer; }
button.sx-rc:hover { border-color: color-mix(in srgb, var(--c) 45%, #fff); }
.sx-rc__ic .sicon { border-radius: 12px; }
.sx-rc__t b { display: block; font-size: 14px; font-weight: 800; line-height: 1.35; }
.sx-rc__t small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--ink2); }
.sx-rc__t em { font-style: normal; font-weight: 800; color: var(--c); }
.sx-rc--focus { padding: 16px 18px; border: 2px solid color-mix(in srgb, var(--c) 45%, #fff); background: linear-gradient(120deg, color-mix(in srgb, var(--c) 14%, #fff), #f8f6ff); box-shadow: 0 10px 26px color-mix(in srgb, var(--c) 18%, transparent); }
.sx-rc--focus .sx-rc__t b { font-size: 16px; }
.sx-rc.is-done { background: #ecfaf2; border-color: #bfe8d0; }
.sx-rc.is-done .sx-rc__t em { color: #16804f; }
.sx-rc__ok { position: absolute; top: -8px; right: -8px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #1f9d63; color: #fff; font-style: normal; font-size: 13px; font-weight: 800; box-shadow: 0 0 0 3px #fff; }
.sx-rc--tgt { cursor: default; border: 2px dashed color-mix(in srgb, var(--c) 50%, #fff); background: #fff; box-shadow: none; }
.sx-rc__ic--tgt { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: color-mix(in srgb, var(--c) 10%, #fff); color: var(--c); }
.sx-rc__ic--tgt .ic { width: 20px; height: 20px; }
.sx-rc--rel { border-style: dashed; }
.sx-concl { display: flex; gap: 12px; margin-top: 10px; padding: 14px 18px; border-radius: 16px; background: linear-gradient(110deg, #f5f2ff, #fbfaff); }
.sx-concl > .ic { flex: none; width: 26px; height: 26px; color: #6a52ec; }
.sx-concl b { font-size: 15px; color: #5b45e0; } .sx-concl p { margin: 4px 0 0; font-size: 14px; line-height: 1.75; color: var(--ink); }
.sx-howto__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sx-howto__list > li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 12px; border-radius: 14px; background: #fafaff; }
.sx-howto__no { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #efecff; color: #6a52ec; font-weight: 800; font-size: 13px; }
.sx-howto__list b { font-size: 15px; color: var(--ink); }
.sx-howto__list p { margin: 4px 0 0; font-size: 13px; line-height: 1.7; color: var(--ink2); }
.sx-howto__lg, .sx-howto__chk { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13px; color: var(--ink2); }
.sx-howto__lg li { display: flex; align-items: center; gap: 8px; } .sx-howto__lg li b { font-size: 13px; }
.sx-howto__chk li { position: relative; padding-left: 22px; line-height: 1.6; }
.sx-howto__chk li::before { content: ""; position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #9b8cf6; }

/* ── 完整因果图（aldeira 呈现） ── */
.sx .graph-wrap.sx-atlas { position: relative; height: 600px; overflow: hidden; border-radius: 18px; border: 1px solid rgba(101, 130, 158, .18);
  background: radial-gradient(circle at 42% 44%, rgba(255,255,255,.82), transparent 30%), radial-gradient(circle at 78% 30%, rgba(95,211,245,.12), transparent 30%), linear-gradient(135deg, rgba(247,252,255,.96), rgba(231,246,255,.84)); }
.sx .graph-wrap.sx-atlas canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sx-lgd { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.sx-lgd--c { background: var(--c); } .sx-lgd--t { background: #43c6b7; } .sx-lgd--b { background: #67b7f7; opacity: .7; }
.sx-lgl { display: inline-block; width: 18px; border-top: 2px solid #7ea8c6; } .sx-lgl--u { border-top-style: dashed; }

/* ── 平板横屏：学科概览改单列，雷达图保持可读字号 ── */
@media (max-width: 1279px) { .sx-ov2 { grid-template-columns: minmax(0, 1fr); } .sx-ov2 .sx-ab__b { grid-template-columns: minmax(0, 1fr) 200px; } .sx-ov2 .ab-rd { max-width: 520px; } }
/* ── 平板 ── */
@media (max-width: 1100px) {
  .sx-ov, .sx-rel { grid-template-columns: minmax(0, 1fr); }
  .sx-path { grid-template-columns: minmax(0, 1fr); } .sx-pl { position: static; }
  .sx-lvl { grid-template-columns: 96px minmax(0, 1fr); } .sx-lvl__s, .sx-lvl__a { grid-column: 2; }
}
@media (max-width: 760px) {
  .sx .sx-c__h { flex-wrap: wrap; } .sx .sx-c__h h2 { flex: 1 1 auto; min-width: 0; flex-wrap: wrap; white-space: normal; row-gap: 2px; } .sx .sx-c__h h2 small { margin-left: 0; }
  .sx-pm__top, .sx-ab__b, .sx-ov2 .sx-ab__b { grid-template-columns: minmax(0, 1fr); } .sx-ab__m { padding: 14px 0 0; border-left: 0; border-top: 1px solid #ecebf5; }
  .sx-fc__kpis { grid-template-columns: minmax(0, 1fr); } .sx-fc__card { grid-template-columns: minmax(0, 1fr); } .sx-ex__row { grid-template-columns: 40px minmax(0, 1fr); } .sx-ex__v { grid-column: 1 / -1; text-align: left; }
  .sx-rm__stage { grid-template-columns: minmax(0, 1fr); --gapx: 18px; } .sx-rm__svg { display: none; }
}

/* 没有指向当前重点的知识点：去掉空的左列，中右两列居中 */
.sx-rm__stage.no-up { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: 760px; margin: 0 auto; }
.sx-rm__stage.no-up .sx-rm__col--l { display: none; }
.sx-rm__lg { justify-content: flex-end; }
/* ── 因果分析第 2 版（2026-11-24）：两种模式共用布局 ── */
.sx .ic, .cz .ic, .cz-seg .ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.cz-seg { display: inline-flex; gap: 6px; padding: 5px; margin-bottom: 16px; border-radius: 16px; background: #eceefa; }
.cz-seg button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border: 0; border-radius: 12px; background: none; font: inherit; font-size: 15px; font-weight: 700; color: var(--ink2); cursor: pointer; }
.cz-seg button.is-on { background: #fff; color: #5b45e0; box-shadow: 0 4px 12px rgba(70, 60, 160, .12); }
.cz { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.cz-main { position: relative; padding: 18px 20px 20px; border-radius: 20px; }
.cz-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 12px; }
.cz-search { position: relative; flex: 0 1 300px; min-width: 220px; }
.cz-search label { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 14px; border: 1px solid #e3e1f2; background: #fff; color: var(--muted); }
.cz-search label:focus-within { border-color: #a99cf9; box-shadow: 0 0 0 3px rgba(106, 82, 236, .12); }
.cz-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 14.5px; color: var(--ink); }
.cz-list { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0; max-height: 300px; overflow: auto; margin: 0; padding: 6px; list-style: none; border-radius: 14px; background: #fff; box-shadow: 0 16px 40px rgba(40, 40, 110, .16); border: 1px solid #ecebf5; }
.cz-list li { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; font-size: 14px; color: var(--ink); cursor: pointer; }
.cz-list li span { flex: 1; min-width: 0; }
.cz-list li small { flex: none; font-size: 11.5px; color: var(--muted); }
.cz-list li small.is-f { color: #5b45e0; font-weight: 700; }
.cz-list li.is-act, .cz-list li:hover { background: #f1eeff; }
.cz-list li.cz-none { color: var(--muted); cursor: default; background: none; }
.cz-lg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 13px; color: var(--ink2); }
.cz-lg span, .cz-glg li { display: inline-flex; align-items: center; gap: 7px; }
.cz-dot { position: relative; display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: #ddd6fb; flex: none; }
.cz-dot.is-focus { background: linear-gradient(135deg, #6f8df8, #3b5be0); box-shadow: 0 0 0 3px rgba(59, 91, 224, .18); }
.cz-dot.is-done { background: #21b07a; color: #fff; }
.cz-dot.is-done .ic { width: 10px; height: 10px; stroke-width: 3; }
.cz-arr { position: relative; width: 22px; height: 2px; margin-right: 6px; background: #6a52ec; border-radius: 1px; flex: none; }
.cz-arr::after { content: ""; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left: 7px solid #6a52ec; border-right: 0; }
.cz-canvas { position: relative; height: 560px; border-radius: 16px; background: radial-gradient(120% 90% at 50% 40%, #fbfaff 0%, #f3f2fd 100%); overflow-x: auto; overflow-y: hidden; }
.cz-canvas:not(.is-full) { overflow: auto; }
@media (min-width: 1101px) { .cz-canvas:not(.is-full) { height: auto; min-height: 560px; overflow-x: auto; overflow-y: hidden; } }   /* 宽屏：重点图随内容长高；窄屏（说明栏在下方）保持固定高度、框内拖动 */
.cz-canvas.is-full { overflow: hidden; }
.cz-canvas.is-full canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }   /* 画布按容器显示（高分屏 / 系统缩放 125% 时不再放大错位） */
.cz-canvas.is-full { height: 560px; background: radial-gradient(110% 90% at 45% 40%, #eef6ff 0%, #e2ecfb 100%); }
.cz-tools { position: absolute; right: 30px; bottom: 30px; z-index: 5; display: flex; gap: 6px; }
.cz-tb { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid #e3e1f2; border-radius: 11px; background: rgba(255, 255, 255, .92); color: var(--ink2); cursor: pointer; box-shadow: 0 2px 6px rgba(40, 40, 110, .08); }
.cz-tb:hover { color: #5b45e0; border-color: #c9c0fb; }
.cz-main:fullscreen { padding: 24px; background: #fff; display: flex; flex-direction: column; }
.cz-main:fullscreen .cz-canvas { flex: 1; height: auto; min-height: 0; }
/* 重点因果关系：平面子图 */
.cz-key { position: relative; width: 100%; }
.cz-edges { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.cz-e { fill: none; stroke: #cfc6f6; stroke-width: 1.8; }
.cz-e.is-on { stroke: #6a52ec; stroke-width: 2.4; }
.cz-e.is-undir { stroke: #c9cbd9; stroke-width: 1.4; }
.cz-e.is-tgt { stroke: #a9dfc8; stroke-width: 1.4; stroke-dasharray: 5 5; opacity: .8; }
.cz-e.is-tgt.is-on { stroke: #2cb58c; stroke-width: 2.2; }
.cz-n { position: absolute; border: 0; font: inherit; cursor: pointer; transition: box-shadow .15s, transform .15s; }
.cz-n--card { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 18px; background: #fff; border: 1.5px solid #e3dff8; box-shadow: 0 6px 16px rgba(70, 60, 160, .08); text-align: left; }
.cz-n--card:hover { box-shadow: 0 10px 24px rgba(70, 60, 160, .16); }
.cz-n__ic { flex: none; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #f1f4ff; }
.cz-n__ic .sicon { --sz: 26px; background: none; }
.cz-n__t { min-width: 0; display: grid; }
.cz-n__mk { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #d6cdfb; }
.cz-n--card.is-done .cz-n__mk { background: #21b07a; }
.cz-n--card { padding: 8px 12px 8px 10px; }
.cz-n--card.is-focus, .cz-n--card.is-tgt { padding-left: 8px; }
.cz-n__t b { font-size: 14px; font-weight: 800; color: var(--ink); line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cz-n__t small { font-size: 12px; color: var(--ink2); } .cz-n__t small em { font-style: normal; font-weight: 800; color: #4f6be6; }
.cz-n__ok { position: absolute; right: -6px; top: -6px; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #21b07a; color: #fff; box-shadow: 0 0 0 2px #fff; }
.cz-n__ok .ic { width: 12px; height: 12px; stroke-width: 3; }
.cz-n--card.is-focus { border: 2px solid #5b7bf2; background: linear-gradient(135deg, #f1f5ff, #fff); box-shadow: 0 0 0 5px rgba(91, 123, 242, .12), 0 10px 24px rgba(59, 91, 224, .16); }
.cz-n--card.is-focus .cz-n__t b { font-size: 15px; }
.cz-n--card.is-tgt { border-color: #b9e8d4; background: linear-gradient(135deg, #effcf6, #fff); }
.cz-n--card.is-tgt .cz-n__ic { background: #dff6ec; color: #1f9d63; }
.cz-n--card.is-tgt .cz-n__t small em { color: #1f9d63; }
.cz-n--card.is-done { border-color: #c8ecd9; }
.cz-n--dot { width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f3efff, #d6cdfb); box-shadow: 0 2px 6px rgba(106, 82, 236, .18); }
.cz-n--dot.is-done { background: radial-gradient(circle at 35% 30%, #c9f2df, #21b07a); }
.cz-n--dot:hover { transform: scale(1.15); }
.cz-n.is-sel { outline: 3px solid rgba(106, 82, 236, .45); outline-offset: 2px; }
.cz-n.is-ping { animation: cz-ping .9s ease-out; }
@keyframes cz-ping { 0% { box-shadow: 0 0 0 0 rgba(106, 82, 236, .5); } 100% { box-shadow: 0 0 0 18px rgba(106, 82, 236, 0); } }
/* 右侧说明 / 详情 */
.cz-side { position: sticky; top: var(--stick, 84px); padding: 20px 20px 22px; border-radius: 20px; }
.cz-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.cz-h .ic { width: 24px; height: 24px; color: #6a52ec; }
.cz-h h2 { margin: 0; font-size: 18px; font-weight: 800; color: var(--ink); }
.cz-h--d { justify-content: flex-end; margin: -6px -6px 4px; }
.cz-x { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 10px; background: #f3f2fa; color: var(--ink2); cursor: pointer; }
.cz-guide { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cz-guide > li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 14px; border-radius: 16px; background: #f8f7fd; }
.cz-guide > li > span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #ebe7ff; color: #5b45e0; font-weight: 800; font-size: 13px; }
.cz-guide b { display: block; font-size: 15px; font-weight: 800; color: var(--ink); }
.cz-guide p { margin: 4px 0 0; font-size: 13px; line-height: 1.6; color: var(--ink2); }
.cz-glg { list-style: none; margin: 10px 0 0 -38px; padding: 0; display: grid; gap: 7px; font-size: 13px; color: var(--ink2); }
.cz-glg li { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 10px; align-items: start; line-height: 1.5; }
.cz-glg li > i { justify-self: center; }
.cz-glg li > i { margin-top: 3px; } .cz-glg li > .cz-arr { margin-top: 9px; justify-self: start; margin-left: 3px; }
.cz-glg li b { display: inline; font-size: 13px; margin-right: 6px; color: var(--ink); }
.cz-tag { display: inline-block; padding: 2px 10px; border-radius: 8px; font-size: 12px; font-weight: 700; color: #5b45e0; background: #efecff; }
.cz-dn { margin: 8px 0 12px; font-size: 18px; font-weight: 800; color: var(--ink); line-height: 1.4; }
.cz-kv { display: grid; gap: 8px; margin-bottom: 12px; }
.cz-kv > div { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 12px; border-radius: 12px; background: #f8f7fd; }
.cz-kv small { font-size: 13px; color: var(--ink2); } .cz-kv b { font-size: 15px; font-weight: 800; color: var(--ink); text-align: right; } .cz-kv em { grid-column: 1 / -1; font-style: normal; font-size: 12px; color: var(--muted); }
.cz-side h3 { margin: 12px 0 6px; font-size: 13.5px; font-weight: 800; color: var(--ink); }
.cz-muted { margin: 8px 0; font-size: 13px; line-height: 1.6; color: var(--ink2); }
.cz-acts { display: flex; gap: 8px; margin-top: 14px; }
.cz-acts .btn { flex: 1; justify-content: center; }
@media (max-width: 1100px) { .cz { grid-template-columns: minmax(0, 1fr); } .cz-side { position: static; } }
@media (max-width: 760px) { .cz-search { flex-basis: 100%; } .cz-canvas, .cz-canvas.is-full { height: 460px; } .cz-tools { right: 24px; bottom: 24px; } }

/* 2026-11-24 Amber：模式切换放在学科页签行右侧 */
.sx-tabrow { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; margin-bottom: 18px; }
.sx-tabrow .sx-tabs { margin: 0; flex: 0 1 auto; min-width: 0; }
.sx-tabrow__r:empty { display: none; }
.sx-tabrow .cz-seg { margin: 0; padding: 4px; border-radius: 14px; }
.sx-tabrow .cz-seg button { padding: 8px 16px; font-size: 14px; border-radius: 10px; }
@media (max-width: 640px) { .sx-tabrow__r { width: 100%; } .sx-tabrow .cz-seg { display: flex; } .sx-tabrow .cz-seg button { flex: 1; justify-content: center; padding: 8px 10px; } }
/* 重点因果关系：拖动节点、悬停显示名称 */
.cz-n { touch-action: none; }
.cz-n.is-drag { cursor: grabbing; transition: none; z-index: 3; }
.cz-tip { position: absolute; z-index: 6; transform: translate(-50%, calc(-100% - 10px)); padding: 6px 10px; border-radius: 10px; background: #1f2340; color: #fff; font-size: 12.5px; font-weight: 600; line-height: 1.4; white-space: nowrap; pointer-events: none; box-shadow: 0 6px 16px rgba(20, 20, 60, .2); }
.cz-tip small { display: block; font-weight: 500; opacity: .8; font-size: 11.5px; }
