/* 开发者平台的「公告」分页（pages/devnews.js，docs/specs/announcements.md）。归 M1 平台。类名都以 dv-n- 开头。
   公告窗口本身的样子不在这里：预览用的是同学那边同一个窗口（news.css），这里只把它从盖满屏幕改成放在预览框里、叠在一个首页的样子上。 */
.dv-n > * + * { margin-top: 18px; }
.dv-n .box > * + * { margin-top: 10px; }
.dv-n-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 18px; align-items: start; }
.dv-n-grid > .box + .box { margin-top: 0; }
@media (max-width: 1100px) { .dv-n-grid { grid-template-columns: minmax(0, 1fr); } }
.dv-n-side { position: sticky; top: 12px; }
@media (max-width: 1100px) { .dv-n-side { position: static; } }

/* 左边：条目 */
.dv-n-lh { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dv-n-lh h3 { margin: 0; }
.dv-n-warn { color: var(--red); }
.dv-n-g h4 { margin: 14px 0 4px; font-size: var(--fs-body); }
.dv-n-e { padding: 8px 10px; border-radius: var(--radius-sm); }
.dv-n-e.on { background: var(--tint-soft); }
.dv-n-eh { display: flex; align-items: flex-start; gap: 8px; }
.dv-n-eh input[type=checkbox] { margin-top: 4px; flex: none; }
.dv-n-t { cursor: text; border-radius: var(--radius-xs); }
.dv-n-t:hover { background: var(--soft); }
.dv-n-ti { flex: 1; min-width: 0; }
.dv-n-em, .dv-n-cr { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin: 4px 0 0 24px; }
.dv-n-em details { flex-basis: auto; }
.dv-n-em details[open] { flex-basis: 100%; }
.dv-n-em ul { margin: 4px 0 0; padding-left: 1.2em; }
.dv-n-name { width: 9em; }
.dv-n-cr select { max-width: 14em; }
.dv-n-more { margin-top: 12px; }
.dv-n-old { display: flex; justify-content: space-between; gap: 10px; padding: 4px 10px; }

/* 右边：标题、预览、发布 */
.dv-n-f { display: flex; flex-direction: column; gap: 4px; }
.dv-n-f input { width: 100%; box-sizing: border-box; }
.dv-n-stage { position: relative; height: 560px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.dv-n-stage .nw-wrap { position: absolute; z-index: 1; padding: 16px; animation: none; }
.dv-n-stage .nw-box { animation: none; max-height: 100%; }
.dv-n-home { position: absolute; inset: 0; display: flex; gap: 12px; padding: 14px; }
.dv-n-hside { display: flex; flex-direction: column; gap: 8px; width: 22%; }
.dv-n-hside i, .dv-n-hbar, .dv-n-hcard { display: block; border-radius: 8px; background: var(--panel); }
.dv-n-hside i { height: 14px; background: var(--line); }
.dv-n-hmain { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 12px; background: var(--panel); }
.dv-n-hmain b { font-size: 18px; }
.dv-n-hbar { height: 30px; background: var(--soft); }
.dv-n-hcard { height: 90px; background: var(--soft); }
.dv-n-hcard.short { height: 60px; }
.dv-n-major { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.dv-n-major input { margin-top: 4px; flex: none; }
.dv-n-acts { flex-wrap: wrap; gap: 8px; }
.dv-n-plan { margin: 0; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--tint-soft); color: var(--ink); font-size: var(--fs-sm, 13px); }
button.dv-n-x { flex: none; width: 26px; height: 26px; min-height: 0; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--muted); font-size: 18px; line-height: 1; }
button.dv-n-x:hover { background: var(--soft); color: var(--ink); }
.dv-n-undo { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: var(--radius-sm);
  background: var(--ink); color: var(--panel); font-size: var(--fs-sm); }
.dv-n-undo .link { color: var(--panel); font-weight: var(--fw-medium); text-decoration: underline; }
.dv-n-lh > h3 { margin-right: auto; }
.dv-n-add { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; padding: 8px 10px; border: 1px dashed var(--line-2, var(--line)); border-radius: var(--radius-sm); }
.dv-n-addt { flex: 1 1 200px; min-width: 0; }
.dv-n-mv { display: inline-flex; flex: none; gap: 2px; margin-left: auto; }
.dv-n-mv button { width: 26px; height: 26px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 15px; line-height: 1; }
.dv-n-mv button:hover:not(:disabled) { background: var(--soft); color: var(--ink); }
.dv-n-mv button:disabled { opacity: .3; }
