:root{font-family:Inter,"Microsoft YaHei",sans-serif;color:#1c2d45;background:#f4f7fb}*{box-sizing:border-box}body{margin:0}.shell{min-height:100vh}.top{display:flex;align-items:center;justify-content:space-between;padding:16px 28px;background:#132945;color:white}.brand{font-size:19px;font-weight:800}.top small{display:block;color:#9cb3ce;font-size:11px;margin-top:4px}.top button{border:1px solid #577391;background:transparent;color:white;border-radius:8px;padding:8px 12px;cursor:pointer}.layout{display:grid;grid-template-columns:235px 1fr;min-height:calc(100vh - 75px)}.side{padding:22px 15px;background:#fff;border-right:1px solid #e1e8f1}.side button{display:block;width:100%;margin:5px 0;padding:12px;border:0;border-radius:9px;background:transparent;text-align:left;color:#5b708a;cursor:pointer}.side button.active,.side button:hover{background:#eaf2ff;color:#2459b8;font-weight:700}.main{max-width:1320px;width:100%;padding:28px;margin:auto}.heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:22px}.heading h1{margin:0;font-size:28px;color:#172d4b}.eyebrow{color:#5b80b5;font-size:11px;font-weight:800;letter-spacing:.15em}.panel{background:#fff;border:1px solid #e1e8f1;border-radius:12px;padding:20px;margin-bottom:18px;box-shadow:0 5px 18px #19375c0b}.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:13px}.stat{padding:18px;border-radius:11px;background:#f8fbff;border:1px solid #e2ebf7}.stat span{display:block;color:#7990a7;font-size:12px}.stat b{display:block;margin-top:9px;font-size:27px;color:#235aa5}.question{font-size:17px;line-height:1.8;color:#203753}.options{display:grid;gap:9px;margin-top:15px}.options button{text-align:left;padding:12px;border:1px solid #d7e2ef;background:#fff;border-radius:9px;cursor:pointer;color:#36516f}.options button.selected{border-color:#3d73cf;background:#edf4ff;color:#204e9d}.actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:16px}.primary,.secondary,.danger{border:0;border-radius:8px;padding:10px 15px;cursor:pointer;font-weight:700}.primary{background:#2865c4;color:white}.secondary{border:1px solid #d4e1f1;background:#fff;color:#3c6398}.danger{background:#fff0f0;color:#c14751}.notice{padding:13px;border-radius:9px;background:#eef8f3;color:#28745b;margin-top:14px;line-height:1.7}.notice.bad{background:#fff2f2;color:#b9474e}.chips{display:flex;gap:7px;flex-wrap:wrap}.chip{padding:5px 9px;border-radius:99px;background:#eaf2ff;color:#2b5fa7;font-size:12px}.table{width:100%;border-collapse:collapse}.table th,.table td{padding:11px 9px;border-bottom:1px solid #e9eef4;text-align:left;font-size:13px}.table th{color:#7890a9;font-weight:700}.input,textarea,select{width:100%;padding:10px;border:1px solid #d6e1ee;border-radius:8px;background:#fff}.form{display:grid;gap:10px;max-width:560px}.chapter{border:1px solid #dce6f1;border-radius:10px;margin:9px 0;overflow:hidden}.chapter summary{padding:13px;background:#f7faff;color:#315b93;cursor:pointer;font-weight:700}.pages{padding:12px;display:grid;gap:14px}.page{padding:12px;border-bottom:1px solid #edf1f6}.page img{width:100%;max-height:560px;object-fit:contain;background:#f3f6fa}.page p{white-space:pre-wrap;line-height:1.7;color:#5e7189;font-size:13px}.graph{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.node{padding:17px;border:1px solid #cfdceb;border-radius:11px;background:#fff;cursor:pointer}.node.weak{background:#fff0f0;border-color:#e58c94}.node b{display:block}.node small{color:#7890a7;display:block;margin-top:7px}.heat{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:9px}.heat div{padding:14px;border-radius:8px;background:#e8f7ef}.login{min-height:100vh;display:grid;place-items:center;background:#edf3fb}.login-card{width:min(420px,calc(100% - 30px));background:#fff;padding:32px;border-radius:15px;box-shadow:0 15px 40px #17365a20}.login-card h1{margin:0 0 8px}.muted{color:#8092a6;font-size:13px;line-height:1.7}.toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.toolbar .input{max-width:260px}@media(max-width:800px){.layout{grid-template-columns:1fr}.side{display:flex;overflow:auto;padding:8px}.side button{min-width:125px}.main{padding:17px}.grid{grid-template-columns:repeat(2,1fr)}.graph{grid-template-columns:1fr 1fr}.heading{align-items:flex-start;flex-direction:column}}@media(max-width:520px){.grid{grid-template-columns:1fr}.graph{grid-template-columns:1fr}.top{padding:14px 16px}}
.focus-page{outline:3px solid #e1a42b;background:#fffbe9}.page h3 small{color:#5b80b5;font-size:11px;font-weight:400}.mastery-row{display:grid;grid-template-columns:1.2fr 1fr auto;gap:12px;align-items:center;padding:14px 4px;border-bottom:1px solid #edf1f6}.mastery-row span{color:#8092a6;font-size:13px}.weak-text{color:#c14751}.good-text{color:#28745b}.node.strong{background:#eef9f2;border-color:#8bcaa3}
.tree{display:grid;gap:12px}.tree-chapter{border-left:4px solid #cfdceb;padding-left:12px}.tree-chapter>summary{list-style:none}.tree-chapter>summary::-webkit-details-marker{display:none}.tree-children{margin:10px 0 2px 18px;border-left:2px solid #e5ebf3;padding-left:14px;display:grid;gap:8px}.tree-section{background:#f8fbff;border:1px solid #e1e8f1;border-radius:9px;padding:10px 13px}.tree-section summary{cursor:pointer;color:#315b93;display:flex;justify-content:space-between;gap:10px}.tree-section summary span{color:#8092a6;font-size:12px}.tree-question-list{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:10px 0 2px}.tree-question-list .secondary{margin-left:auto;padding:6px 10px;font-size:12px}
.heatmap-wrap{overflow:auto}.heatmap-table{min-width:900px}.heatmap-table th{max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.heatmap-table td:first-child small{display:block;color:#8092a6;font-size:11px}.heat-cell{text-align:center;font-weight:800;min-width:70px}.heat-good{background:#c9efd9;color:#17643d}.heat-mid{background:#fff0b8;color:#806400}.heat-bad{background:#ffd0d0;color:#9e2e39}.heat-none{background:#f1f4f8;color:#a0adba}.password-panel{max-width:520px;display:grid;gap:12px}
.login{background:radial-gradient(circle at 12% 10%,#dceeff 0,#edf5ff 35%,#f7faff 100%);position:relative}.login-brand{position:absolute;top:34px;left:42px;display:flex;gap:11px;align-items:center;color:#17375e}.login-brand b{display:block;font-size:18px}.login-brand span{display:block;font-size:12px;color:#7890aa;margin-top:2px}.logo-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#2d72d1;color:white;font-size:20px;font-weight:800;box-shadow:0 7px 18px #2865c433}.login-card{padding:38px 38px 42px;border:1px solid #e1eaf5}.login-card h1{font-size:30px;margin:8px 0}.login-card label{font-size:12px;color:#7187a0;display:grid;gap:6px}.login-submit{width:100%;padding:13px;margin-top:6px}.login-footer{position:absolute;bottom:28px;color:#91a2b6;font-size:12px}.top{height:72px;padding:0 28px;box-shadow:0 3px 18px #102f5514}.top-left,.top-user{display:flex;align-items:center;gap:12px}.brand{display:flex;gap:10px;align-items:center;font-size:18px}.brand b{display:block}.brand small{display:block;color:#9cb3ce;font-size:10px;margin-top:2px}.brand-dot{width:10px;height:30px;border-radius:6px;background:#5da5ff;display:block}.top-user{font-size:12px}.top-user b,.top-user small{display:block}.top-user small{color:#9cb3ce;font-size:11px;margin-top:2px}.avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#d9eaff;color:#215da8;font-weight:800}.top-logout{border:1px solid #557391!important;margin-left:8px}.mobile-menu{display:none;background:transparent;border:0;color:#fff;font-size:22px}.side{padding:25px 14px;position:relative}.side-title{font-size:11px;color:#8da0b6;font-weight:800;letter-spacing:.1em;margin:0 11px 14px}.nav-icon{display:inline-grid;place-items:center;width:24px;margin-right:7px;color:#7d9ec5}.side button.active .nav-icon{color:#2363ba}.side-bottom{position:absolute;left:20px;right:20px;bottom:20px;color:#8295aa;font-size:11px}.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#39b87b;margin-right:5px}.graph-heading{align-items:center}.graph-tools{display:flex;gap:8px;align-items:center}.graph-tools .input{width:250px}.graph-panel{padding:14px}.graph-legend{display:flex;gap:18px;padding:4px 8px 12px;color:#7489a2;font-size:12px;align-items:center}.legend-dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:5px}.kg-good-dot{background:#45b985}.kg-weak-dot{background:#e26872}.legend-line{display:inline-block;width:24px;border-top:2px solid #abc0d9;margin-right:5px;vertical-align:middle}.graph-viewport{width:100%;height:680px;overflow:auto;border:1px solid #e3ebf4;border-radius:12px;background:linear-gradient(180deg,#fbfdff,#f4f8fd)}.kg-svg{width:1120px;height:760px;min-width:900px;transform-origin:top left;transition:transform .2s}.kg-node{cursor:pointer}.kg-node rect{stroke-width:2}.kg-node text{font-family:inherit;text-anchor:middle;fill:#1d3b5d;font-size:13px;font-weight:700}.kg-node .kg-meta{font-size:10px;font-weight:500;fill:#7990aa}.kg-chapter rect{fill:#e9f3ff;stroke:#6ca1df}.kg-section rect{fill:#f2f8ff;stroke:#91b7df}.kg-question rect{fill:#fff;stroke:#c3d3e4}.kg-question text{font-size:10px;fill:#52708f}.kg-good rect{stroke:#49b884}.kg-weak rect{fill:#fff0f1;stroke:#df737b}.kg-link{fill:none;stroke:#a8bfd8;stroke-width:2}.kg-link-light{stroke:#d1dce9;stroke-dasharray:4 3}.kg-dim{opacity:.12}
@media(max-width:800px){.login-brand{left:20px;top:20px}.login-card{padding:30px 22px}.top{padding:0 15px}.mobile-menu{display:block}.side{position:fixed;z-index:10;top:72px;bottom:0;left:-250px;width:235px;transition:left .2s;box-shadow:10px 0 28px #15375b22}.menu-open .side{left:0}.layout{display:block}.main{padding:20px}.top-user>div{display:none}.graph-tools{width:100%;flex-wrap:wrap}.graph-tools .input{flex:1;min-width:180px}.graph-viewport{height:560px}.graph-heading{gap:12px}}
.menu-scrim{display:none}
.kg-svg{height:auto;min-height:760px}
.kg-svg{width:1660px;min-width:1660px}
@media(max-width:800px){
  .menu-scrim{position:fixed;inset:72px 0 0;z-index:9;border:0;padding:0;background:#102c4a55;cursor:pointer}
  .menu-open .menu-scrim{display:block}
  .side{display:block;z-index:10;overflow-y:auto;overflow-x:hidden;padding:18px 14px 28px}
  .side button{min-width:0;width:100%;margin:5px 0}
  .side-bottom{position:static;margin:22px 6px 0}
  .main{position:relative;z-index:1}
  .graph-viewport{height:calc(100vh - 250px);min-height:420px}
  .kg-svg{height:auto}
}
@media(max-width:520px){
  .top{height:64px}
  .side{top:64px}
  .menu-scrim{inset:64px 0 0}
  .graph-viewport{height:calc(100vh - 220px)}
  .graph-tools .secondary{padding:9px 11px}
}
.options{grid-template-columns:minmax(0,1fr);width:100%;min-width:0}.options button{display:flex;align-items:flex-start;gap:10px;width:100%;min-width:0;min-height:44px;text-align:left;padding:12px 14px;white-space:normal;overflow-wrap:anywhere;line-height:1.65}.options button b{flex:0 0 24px;display:grid;place-items:center;min-height:24px;border-radius:4px;background:#eef3f9}.options button.selected b{background:#2865c4;color:#fff}.variant-chip{background:#fff0e7;color:#a34b18;border:1px solid #f1c5a7;font-weight:700}.question{min-width:0;overflow-wrap:anywhere;margin-bottom:14px}
.literature-link{display:block;text-align:center;margin-top:14px;text-decoration:none}
.heat-legend{display:flex;gap:18px;flex-wrap:wrap;align-items:center;color:#6f8299;font-size:12px}.heat-legend i{display:inline-block;width:11px;height:11px;border-radius:3px;margin-right:5px;vertical-align:-1px}.heat-good-dot{background:#45bd83}.heat-mid-dot{background:#f0c94d}.heat-bad-dot{background:#e16b73}.heat-none-dot{background:#d7dee7}.heat-summary{margin-bottom:18px}.class-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px;margin-bottom:18px}.class-card{border:1px solid #dce6f1;border-radius:12px;background:#fff;padding:17px;text-align:left;cursor:pointer;box-shadow:0 4px 14px #19375c0a;transition:.18s}.class-card:hover{border-color:#6c9cda;transform:translateY(-2px);box-shadow:0 8px 22px #19375c18}.class-card-head{display:flex;justify-content:space-between;gap:10px;color:#315b93}.class-card-head span{font-size:12px;color:#8092a6}.class-rate{font-size:30px;font-weight:800;color:#245fa8;margin-top:15px}.class-rate small{font-size:11px;font-weight:400;color:#8092a6;margin-left:5px}.bar{height:8px;background:#edf1f5;border-radius:99px;overflow:hidden;margin:10px 0}.bar i{display:block;height:100%;background:linear-gradient(90deg,#e26d75,#f1c94e,#45bb83);border-radius:99px}.class-meta{font-size:12px;color:#71859d}.class-link{display:block;margin-top:12px;color:#3670bf;font-size:12px}.clickable-row{cursor:pointer}.clickable-row:hover{background:#f4f8fd}.heat-cell small{display:block;font-size:10px;font-weight:500;margin-top:2px;opacity:.8}
