/* 公告页 · v1.6.0
   一篇公告 = 一个 .md 文件，卡片里直接排版，不跳详情页。 */
.nt-main{padding-bottom:80px}
.nt-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:18px 0 22px}
.nt-search{position:relative;display:flex;align-items:center;gap:8px;flex:1 1 260px;max-width:420px;
  padding:9px 14px;border-radius:var(--radius-sm);border:1px solid var(--line);background:var(--surface)}
.nt-search svg{width:17px;height:17px;stroke:var(--dim);fill:none;stroke-width:1.8;stroke-linecap:round}
.nt-search input{flex:1;min-width:0;border:0;background:transparent;color:var(--text);font:inherit;font-size:14.5px;outline:none}
.nt-search input::placeholder{color:var(--dim)}

.nt-list{display:flex;flex-direction:column;gap:16px}
.nt-card{position:relative;padding:22px 24px;border-radius:var(--radius);border:1px solid var(--line);
  background:var(--surface);box-shadow:var(--shadow-sm);transition:border-color .25s,transform .3s var(--ease)}
.nt-card:hover{border-color:var(--line-2);transform:translateY(-2px)}
.nt-card.pin{border-color:color-mix(in srgb,var(--accent) 45%,transparent);background:linear-gradient(180deg,var(--accent-soft),transparent 40%)}
.nt-card-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:8px}
.nt-date{font-size:13px;color:var(--dim);font-variant-numeric:tabular-nums}
.nt-pin{display:inline-flex;align-items:center;gap:5px;padding:2px 9px;border-radius:999px;font-size:12px;
  border:1px solid color-mix(in srgb,var(--accent) 45%,transparent);color:var(--accent);background:var(--accent-soft)}
.nt-pin svg{width:12px;height:12px;stroke:currentColor;fill:none;stroke-width:2}
.nt-card h2{margin:0 0 10px;font-size:21px;letter-spacing:.01em}
.nt-card h2 a{color:inherit}
.nt-by{margin-left:auto;font-size:12.5px;color:var(--dim)}
.nt-act{display:flex;align-items:center;gap:6px}
.nt-mini{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:9px;
  border:1px solid var(--line);background:var(--surface-2);color:var(--muted);cursor:pointer;
  transition:color .2s,border-color .2s,background .2s}
.nt-mini:hover{color:var(--text);border-color:var(--line-2)}
.nt-mini.danger:hover{color:#ff8a8a;border-color:#ff8a8a}
.nt-mini svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}

/* markdown 正文 */
.nt-body{position:relative;max-height:340px;overflow:hidden;font-size:15px;line-height:1.78;color:var(--text)}
.nt-body.is-long{max-height:340px}
.nt-body.is-open{max-height:none}
.nt-body::after{content:"";position:absolute;left:0;right:0;bottom:0;height:64px;pointer-events:none;
  background:linear-gradient(180deg,transparent,var(--surface))}
.nt-body.is-open::after{display:none}
.nt-body h1,.nt-body h2,.nt-body h3,.nt-body h4{margin:18px 0 8px;line-height:1.35;letter-spacing:.01em}
.nt-body h1{font-size:22px}.nt-body h2{font-size:19px}.nt-body h3{font-size:16.5px}.nt-body h4{font-size:15px}
.nt-body p{margin:0 0 12px}
.nt-body ul,.nt-body ol{margin:0 0 12px;padding-left:22px}
.nt-body li{margin:4px 0}
.nt-body code{padding:2px 6px;border-radius:6px;background:var(--surface-2);font-size:.92em}
.nt-body pre{margin:0 0 12px;padding:14px 16px;border-radius:var(--radius-sm);border:1px solid var(--line);
  background:var(--bg-2);overflow:auto;font-size:13px;line-height:1.6}
.nt-body pre code{padding:0;background:transparent}
.nt-body blockquote{margin:0 0 12px;padding:8px 16px;border-left:3px solid var(--accent);color:var(--muted);background:var(--stage)}
.nt-body a{color:var(--accent);text-decoration:underline;text-underline-offset:2px}
.nt-body hr{margin:18px 0;border:0;border-top:1px solid var(--line)}
.nt-body img{max-width:100%;border-radius:var(--radius-sm)}
.nt-more{margin-top:10px;display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;
  border:1px solid var(--line);background:var(--surface-2);color:var(--muted);font:inherit;font-size:13px;cursor:pointer}
.nt-more:hover{color:var(--text);border-color:var(--line-2)}
.nt-more svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* 上传弹窗 */
.nt-modal{position:fixed;inset:0;z-index:120;display:none;align-items:center;justify-content:center;padding:24px;
  background:rgba(3,6,12,.62);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.nt-modal.open{display:flex}
.nt-panel{width:min(560px,100%);padding:24px;border-radius:var(--radius);border:1px solid var(--line-2);
  background:var(--bg-2);box-shadow:var(--shadow);display:flex;flex-direction:column;gap:14px}
.nt-panel-head{display:flex;align-items:center;justify-content:space-between}
.nt-panel-head h2{margin:0;font-size:19px}
.nt-x{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;border:1px solid var(--line);
  background:var(--surface);color:var(--muted);cursor:pointer}
.nt-x:hover{color:var(--text);border-color:var(--line-2)}
.nt-x svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round}
.nt-field{display:flex;flex-direction:column;gap:6px;font-size:13.5px;color:var(--muted)}
.nt-field input{padding:10px 13px;border-radius:var(--radius-xs);border:1px solid var(--line);
  background:var(--surface);color:var(--text);font:inherit;font-size:14.5px;outline:none}
.nt-field input:focus{border-color:var(--accent)}
.nt-drop{display:flex;align-items:center;gap:12px;padding:18px;border-radius:var(--radius-sm);
  border:1px dashed var(--line-2);background:var(--stage);color:var(--muted);font-size:14px;cursor:pointer;
  transition:border-color .2s,color .2s,background .2s}
.nt-drop:hover,.nt-drop.over{border-color:var(--accent);color:var(--text);background:var(--accent-soft)}
.nt-drop-ic{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;border:1px solid var(--line);background:var(--surface-2)}
.nt-drop-ic svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.nt-drop-text{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nt-check{display:inline-flex;align-items:center;gap:8px;font-size:14px;color:var(--muted);cursor:pointer}
.nt-check input{width:16px;height:16px;accent-color:var(--accent)}
.nt-bar{display:flex;align-items:center;justify-content:space-between;gap:12px}
.nt-note{font-size:13px;color:var(--dim);min-height:18px}
.nt-note.bad{color:#ff8a8a}

@media (max-width:640px){
  .nt-card{padding:18px}
  .nt-card h2{font-size:18.5px}
  .nt-by{width:100%;margin-left:0}
}
