/* 学员笔记本（2026-11-24 四期：备忘录配色 + 竖排单列 + 折叠尖选本子） */
.nb-fab{position:fixed;right:0;top:50%;transform:translateY(-50%);z-index:2900;
  width:38px;height:108px;padding:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;
  background:#16324F;color:#fff;border:0;border-radius:11px 0 0 11px;
  box-shadow:-4px 6px 18px -8px rgba(15,23,42,.45);font-size:12px;font-weight:600;letter-spacing:.16em;
  font-family:inherit;cursor:pointer;transition:.16s}
.nb-fab:hover{background:#0D2135;transform:translateY(-50%) translateX(-2px)}
.nb-fab svg{width:17px;height:17px;stroke:#fff;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.nb-fab span:not(.nb-dot){writing-mode:vertical-rl;letter-spacing:.16em}
.nb-fab .nb-dot{position:absolute;top:8px;right:9px;width:8px;height:8px;border-radius:50%;background:#C7C7CC;display:none}
.nb-fab.has-draft .nb-dot{display:block}

.nb-drawer{--ntext:#1C1C1E;--nmut:#8E8E93;--nline:#E5E5EA;--nsoft:#F7F7F9;--nsel:#F2F2F7;
  position:fixed;top:0;right:0;bottom:0;width:min(460px,96vw);background:#fff;z-index:3000;
  display:flex;flex-direction:column;transform:translateX(102%);transition:transform .24s cubic-bezier(.2,.7,.3,1);
  box-shadow:-20px 0 60px -30px rgba(15,23,42,.4);
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif}
.nb-drawer.open{transform:none}

/* 顶部 */
.nb-top{display:flex;align-items:center;gap:6px;height:50px;padding:0 10px;border-bottom:1px solid var(--nline);flex:0 0 auto}
.nb-tbtn{width:30px;height:30px;border:0;background:transparent;border-radius:7px;color:#5A5A5F;font-size:16px;
  cursor:pointer;display:inline-flex;align-items:center;justify-content:center;font-family:inherit;flex:0 0 auto}
.nb-tbtn:hover{background:#F2F2F7;color:#1C1C1E}
.nb-fold{display:inline-flex;align-items:center;gap:4px;max-width:62%;border:0;background:transparent;
  font:600 14.5px inherit;color:var(--ntext);cursor:pointer;padding:5px 4px;border-radius:7px}
.nb-fold:hover{background:#F2F2F7}
.nb-fold span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nb-fold svg{width:11px;height:11px;stroke:#8E8E93;fill:none;stroke-width:2;flex:0 0 auto;transition:transform .18s}
.nb-drawer.fold-open .nb-fold svg{transform:rotate(180deg)}
.nb-save{font-size:12px;color:var(--nmut);margin-left:auto;white-space:nowrap}
.nb-save.ok{color:#1B8A5A}

/* 笔记本下拉 */
.nb-folders{display:none;background:var(--nsoft);border-bottom:1px solid var(--nline);max-height:58%;overflow:auto}
.nb-drawer.fold-open .nb-folders{display:block}
.nb-fold-hd{display:flex;align-items:center;padding:8px 12px 4px;font-size:12px;color:var(--nmut)}
.nb-fold-hd b{margin-right:auto;font-weight:600;color:#6B6B70}
.nb-fold-add{border:0;background:transparent;color:#8E8E93;font-size:13px;cursor:pointer}
.nb-fold-add:hover{color:#1C1C1E}
.nb-book{display:flex;align-items:center;gap:9px;padding:9px 14px;cursor:pointer;font-size:14px;color:var(--ntext);
  border-bottom:1px solid rgba(0,0,0,.04)}
.nb-book:hover{background:#EDEDF2}
.nb-book.on{background:#E8E8EF;font-weight:600}
.nb-book i{width:3px;height:16px;border-radius:2px;background:#C7C7CC;flex:0 0 auto}
.nb-book:nth-child(3n+1) i{background:#B9C6D6}
.nb-book:nth-child(3n+2) i{background:#C9C2D6}
.nb-book:nth-child(3n) i{background:#BFD3CB}
.nb-book span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nb-book em{font-style:normal;font-size:12px;color:var(--nmut)}

/* 目录 */
.nb-list{flex:1;display:flex;flex-direction:column;min-height:0}
.nb-list-hd{display:flex;align-items:center;padding:12px 14px 6px}
.nb-list-hd b{font-size:13px;color:var(--nmut);font-weight:600;margin-right:auto;letter-spacing:.02em}
.nb-list-body{flex:1;overflow:auto;padding:0 8px 20px}
.nb-item{display:block;position:relative;padding:10px 12px;border-radius:9px;cursor:pointer;color:inherit}
.nb-item:hover{background:var(--nsel)}
.nb-item.on{background:var(--nsel)}
.nb-item b{display:block;font-size:14.5px;font-weight:600;color:var(--ntext);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nb-item .nb-sub{display:flex;gap:8px;font-size:12.5px;color:var(--nmut);margin-top:3px}
.nb-item .nb-sub span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nb-item .nb-sub em{font-style:normal;flex:0 0 auto}
.nb-item .nb-del{position:absolute;top:10px;right:10px;border:0;background:transparent;color:#C7C7CC;font-size:13px;
  cursor:pointer;display:none;line-height:1}
.nb-item:hover .nb-del{display:block}
.nb-item .nb-del:hover{color:#C0392B}
.nb-empty{padding:30px 12px;text-align:center;color:var(--nmut);font-size:13px;line-height:1.9}

/* 正文 */
.nb-editor{position:absolute;inset:0;z-index:4;background:#fff;display:flex;flex-direction:column;
  transform:translateX(100%);transition:transform .22s ease}
.nb-drawer.show-editor .nb-editor{transform:none}
.nb-ed-head{display:flex;align-items:center;gap:6px;padding:8px 10px 0;border-bottom:1px solid #F2F2F7}
.nb-title{flex:1;border:0;outline:none;background:transparent;font:600 19px/1.4 inherit;color:var(--ntext);padding:6px 4px}
.nb-title::placeholder{color:#C7C7CC}
.nb-save-ed{font-size:12px;color:var(--nmut);white-space:nowrap;padding-right:4px;flex:0 0 auto}
.nb-save-ed.ok{color:#1B8A5A}
.nb-ed-meta{font-size:12px;color:var(--nmut);padding:8px 14px 2px}
.nb-text{flex:1;width:100%;box-sizing:border-box;border:0;outline:none;resize:none;background:#fff;
  padding:8px 14px 40px;margin:0;font:16px/1.85 inherit;color:#1C1C1E;text-align:left}
.nb-text::placeholder{color:#C7C7CC}

@media(max-width:760px){
  .nb-fab{top:auto;bottom:152px;right:12px;transform:none;width:56px;height:56px;padding:0;
    border-radius:15px;background:#fff;color:#16233A;border:1px solid #E6E9EF;
    box-shadow:0 4px 14px -4px rgba(15,23,42,.18);letter-spacing:0}
  .nb-fab svg{width:23px;height:23px;stroke:#16233A}
  .nb-fab span:not(.nb-dot){display:none}
  .nb-fab .nb-dot{top:-3px;right:-3px;width:10px;height:10px;border:2px solid #fff}
  .nb-drawer{width:100%;height:100%;transform:translateY(102%)}
  .nb-drawer.open{transform:none}
  .nb-title{font-size:20px}
}

.nb-drawer:not(.open){display:none!important}
