@charset "utf-8";
/* ============================================================
   《未闭合》· 2026 桌面壳
   一面是 2026 年的操作系统(下面这些),一面是 1996 年的纸。
   桌面刻意做成"普通人那台装了五六年的旧电脑":灰蓝壁纸、圆角窗口、
   任务栏靠左、托盘里挂着两个数字。
   ============================================================ */

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0; height: 100%; overflow: hidden;
  font: 13px/1.6 "Microsoft YaHei", "微软雅黑", system-ui, sans-serif;
  color: #1b1b1b;
  user-select: none;
}

/* ---------------- 壁纸 ---------------- */
#desktop {
  position: fixed; inset: 0 0 46px 0;
  background:
    radial-gradient(120% 90% at 15% 10%, #29405c 0%, #16222f 45%, #0d151d 100%),
    #0d151d;
  overflow: hidden;
}
#desktop::after {           /* 一点壁纸颗粒 */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  opacity: .18; mix-blend-mode: overlay;
}
#desktop .wallnote {
  position: absolute; right: 26px; bottom: 18px; text-align: right;
  color: rgba(255,255,255,.34); font-size: 12px; line-height: 1.8; pointer-events: none;
}
#desktop .wallnote b { color: rgba(255,255,255,.55); font-weight: normal; }

/* ---------------- 桌面图标 ---------------- */
.icons {
  position: absolute; left: 14px; top: 14px; width: 92px;
  display: flex; flex-direction: column; gap: 6px; flex-wrap: wrap; max-height: calc(100% - 20px);
}
.icon {
  width: 88px; padding: 8px 4px 6px 4px; text-align: center;
  color: #eef3f8; border-radius: 6px; cursor: pointer;
  text-shadow: 0 1px 2px rgba(0,0,0,.8);
}
.icon:hover { background: rgba(255,255,255,.14); }
.icon.sel { background: rgba(120,180,255,.28); outline: 1px solid rgba(160,200,255,.5); }
.icon .gi { display: block; width: 40px; height: 40px; margin: 0 auto 4px auto; }
.icon .nm { font-size: 12px; line-height: 1.25; word-break: break-all; }
.icon .bd { position: absolute; top: 4px; right: 6px; width: 9px; height: 9px; border-radius: 50%;
  background: #ff5b5b; border: 1px solid #fff; display: none; }
.icon { position: relative; }
.icon.dot .bd { display: block; }

/* ---------------- 任务栏 ---------------- */
#taskbar {
  position: fixed; left: 0; right: 0; bottom: 0; height: 46px;
  background: rgba(18,22,28,.92);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,.10);
  display: flex; align-items: center; gap: 8px; padding: 0 10px;
  color: #e8eef5; z-index: 9000;
}
#taskbar .start {
  display: flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 6px;
  background: rgba(255,255,255,.08); cursor: pointer; font-size: 13px;
}
#taskbar .start:hover { background: rgba(255,255,255,.16); }
#taskbar .tasks { display: flex; gap: 6px; flex: 1; min-width: 0; overflow: hidden; }
.tbtn {
  display: flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 5px;
  background: rgba(255,255,255,.07); border-bottom: 2px solid transparent;
  cursor: pointer; font-size: 12px; white-space: nowrap; max-width: 190px; overflow: hidden;
}
.tbtn:hover { background: rgba(255,255,255,.15); }
.tbtn.active { background: rgba(120,180,255,.22); border-bottom-color: #6fb0ff; }
.tbtn .gi { width: 15px; height: 15px; flex: none; }
#tray { display: flex; align-items: center; gap: 12px; font-size: 12px; color: #cfe0f0; }
#tray .m { display: flex; align-items: center; gap: 5px; }
#tray .m b { color: #fff; font-weight: 600; }
#tray .m .dot { width: 7px; height: 7px; border-radius: 50%; background: #6fb0ff; }
#tray .clock { text-align: right; line-height: 1.25; }
#tray .clock b { display: block; font-size: 13px; }
#tray .hintbtn { border: 1px solid rgba(255,255,255,.25); border-radius: 5px; padding: 3px 8px; cursor: pointer; }
#tray .hintbtn:hover { background: rgba(255,255,255,.12); }

/* 托盘气泡 */
#toasts { position: fixed; right: 12px; bottom: 56px; z-index: 9500; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.toast {
  background: rgba(28,34,42,.96); color: #eaf2fa; border: 1px solid rgba(255,255,255,.14);
  border-left: 3px solid #6fb0ff; border-radius: 6px; padding: 8px 12px; font-size: 12px; max-width: 330px;
  box-shadow: 0 6px 20px rgba(0,0,0,.5); animation: tin .18s ease-out;
}
.toast.warn { border-left-color: #ffb020; }
.toast.ok { border-left-color: #4ad07a; }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------------- 窗口 ---------------- */
.win {
  position: absolute; min-width: 380px; min-height: 240px;
  background: #f4f6f8; border: 1px solid #9fb0bf; border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
  display: flex; flex-direction: column; overflow: hidden;
}
.win:not(.focus) { box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.win.pinned { box-shadow: 0 0 0 2px #6fb0ff, 0 18px 50px rgba(0,0,0,.6); }
.win.max, .win.tiled { border-radius: 0; box-shadow: none; border-color: #6d7f90; }
.win.max .rz { display: none; }
.tbar {
  height: 32px; flex: none; display: flex; align-items: center; gap: 8px;
  padding: 0 0 0 10px; cursor: default;
  background: linear-gradient(#e9eef3, #dde5ec); border-bottom: 1px solid #b9c6d2;
}
.win.focus .tbar { background: linear-gradient(#dfeaf7, #cfdff2); border-bottom-color: #8fb4dd; }
.tbar .gi { width: 16px; height: 16px; flex: none; }
.tbar .ttl { flex: 1; min-width: 0; font-size: 12.5px; color: #22303c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win:not(.focus) .tbar .ttl { color: #7b8a97; }
.tbar .btns { display: flex; align-self: stretch; }
.tbar button {
  width: 42px; height: 100%; border: 0; background: transparent; cursor: default;
  color: #3a4a58; display: flex; align-items: center; justify-content: center; padding: 0;
}
.tbar button svg { width: 10px; height: 10px; }
.tbar button:hover { background: rgba(0,0,0,.08); }
.tbar button:active { background: rgba(0,0,0,.14); }
.tbar button.pin { width: 32px; font-size: 11px; filter: grayscale(1); opacity: .45; }
.tbar button.pin:hover { opacity: .8; }
.tbar button.pin.on { filter: none; opacity: 1; background: #cfe4ff; }
.tbar button.close:hover { background: #e81123; color: #fff; }
.tbar button.close:active { background: #f1707a; color: #fff; }
.win.max .tbar, .win.tiled .tbar { border-radius: 0; }
.wbody { flex: 1; min-height: 0; overflow: auto; background: #fff; position: relative; }

/* 八方向拉伸把手(看不见,只改鼠标形状) */
.rz { position: absolute; z-index: 6; }
.rz-n  { top: -3px; left: 8px; right: 8px; height: 6px; cursor: ns-resize; }
.rz-s  { bottom: -3px; left: 8px; right: 8px; height: 6px; cursor: ns-resize; }
.rz-e  { right: -3px; top: 8px; bottom: 8px; width: 6px; cursor: ew-resize; }
.rz-w  { left: -3px; top: 8px; bottom: 8px; width: 6px; cursor: ew-resize; }
.rz-ne { top: -3px; right: -3px; width: 12px; height: 12px; cursor: nesw-resize; }
.rz-sw { bottom: -3px; left: -3px; width: 12px; height: 12px; cursor: nesw-resize; }
.rz-nw { top: -3px; left: -3px; width: 12px; height: 12px; cursor: nwse-resize; }
.rz-se { bottom: -3px; right: -3px; width: 14px; height: 14px; cursor: nwse-resize; }

/* 拖动时盖在 iframe 上面,保证鼠标事件不丢 */
#dragLayer { position: fixed; inset: 0; z-index: 9800; display: none; }
/* 拖到屏幕边缘时的落位预览 */
#snapPrev { position: absolute; z-index: 9700; pointer-events: none; opacity: 0;
  background: rgba(150,200,255,.16); border: 1px solid rgba(170,210,255,.55); border-radius: 8px;
  transition: opacity .12s, left .12s, top .12s, width .12s, height .12s; backdrop-filter: blur(2px); }
#snapPrev.on { opacity: 1; }
#snapPrev.max   { left: 6px; top: 6px; right: 6px; bottom: 6px; }
#snapPrev.left  { left: 6px; top: 6px; bottom: 6px; width: calc(50% - 9px); }
#snapPrev.right { right: 6px; top: 6px; bottom: 6px; width: calc(50% - 9px); }

/* 任务栏上最小化的窗口按钮淡一点 */
.tbtn.minned { opacity: .62; }

/* 菜单条(应用内部的工具栏) */
.appbar {
  display: flex; align-items: center; gap: 6px; padding: 5px 8px; flex: none;
  background: #eef1f4; border-bottom: 1px solid #d3dae1; font-size: 12px;
}
.appbar button, .appbar .btn {
  font: 12px "Microsoft YaHei", sans-serif; padding: 3px 9px; border: 1px solid #bcc7d2;
  background: #fff; border-radius: 4px; cursor: pointer;
}
.appbar button:hover { background: #eef5ff; border-color: #7fb0e6; }
.appbar button:disabled { color: #9aa6b2; background: #f2f4f6; cursor: default; }
.appbar select { font: 12px "Microsoft YaHei", sans-serif; padding: 2px 4px; border: 1px solid #bcc7d2; background: #fff; border-radius: 4px; }
.appbar .sep { width: 1px; height: 16px; background: #ccd5dd; margin: 0 3px; }

/* ---------------- 私语(聊天) ---------------- */
.chat { display: flex; flex-direction: column; height: 100%; }
.chat .head { padding: 8px 12px; border-bottom: 1px solid #e3e8ed; background: #fafbfc; flex: none; }
.chat .head b { font-size: 13px; }
.chat .head .st { font-size: 11.5px; color: #7b8a97; margin-left: 6px; }
.chat .log { flex: 1; overflow: auto; padding: 12px; background: #f3f5f7; }
.msg { display: flex; gap: 8px; margin-bottom: 12px; }
.msg .av {
  width: 30px; height: 30px; border-radius: 5px; flex: none; color: #fff; font-size: 12px;
  display: flex; align-items: center; justify-content: center; background: #7b8a97;
}
.msg.me { flex-direction: row-reverse; }
.msg.me .av { background: #4a7fb5; }
.bub {
  max-width: 74%; background: #fff; border: 1px solid #e0e6ec; border-radius: 6px;
  padding: 7px 10px; font-size: 13px; line-height: 1.65; box-shadow: 0 1px 2px rgba(0,0,0,.05);
  user-select: text; word-break: break-word;
}
.msg.me .bub { background: #d9eaff; border-color: #bcdcfb; }
.bub .who { font-size: 11px; color: #8a97a4; margin-bottom: 3px; }
.bub .revoked { color: #8a97a4; font-style: italic; }
.bub.sys { background: #fff8e1; border-color: #ffe082; font-size: 12px; color: #6b5a20; }
.bub.file { cursor: pointer; border-color: #7fb0e6; background: #f0f7ff; }
.bub.file:hover { background: #e2f0ff; }
.bub.file .fi { display: flex; align-items: center; gap: 8px; }
.bub.file .gi { width: 26px; height: 26px; }
.bub.file .fs { font-size: 11.5px; color: #6b7a88; }
.typing { color: #96a3b0; font-size: 12px; padding-left: 38px; }

/* ---------------- 邮驿(邮件) ---------------- */
.mail { display: flex; height: 100%; }
.mail .list { width: 260px; flex: none; border-right: 1px solid #e3e8ed; overflow: auto; background: #fafbfc; }
.mail .list .it { padding: 8px 10px; border-bottom: 1px solid #eef1f4; cursor: pointer; font-size: 12px; }
.mail .list .it:hover { background: #f0f6ff; }
.mail .list .it.on { background: #e2eeff; border-left: 3px solid #4a7fb5; }
.mail .list .it b { display: block; font-size: 12.5px; margin-bottom: 2px; }
.mail .list .it .f { color: #6b7a88; }
.mail .list .it.unread b::after { content: " ●"; color: #e33; font-size: 10px; }
.mail .read { flex: 1; overflow: auto; padding: 14px 18px; }
.mail .read h3 { margin: 0 0 6px 0; font-size: 15px; }
.mail .read .meta { font-size: 12px; color: #6b7a88; border-bottom: 1px solid #e3e8ed; padding-bottom: 8px; margin-bottom: 12px; }
.mail .read .att { border: 1px solid #bcdcfb; background: #f0f7ff; border-radius: 6px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.mail .read .att .gi { width: 28px; height: 28px; }
.mail .read .att .meta2 { font-size: 11.5px; color: #6b7a88; }
.mail .read .att button { font: 12px "Microsoft YaHei", sans-serif; padding: 5px 12px; border: 1px solid #7fb0e6; background: #fff; border-radius: 4px; cursor: pointer; margin-left: auto; }
.mail .read .att button:hover { background: #e2f0ff; }
.mail .read .body { font-size: 13px; line-height: 1.85; user-select: text; }

/* ---------------- 档案柜(文件管理器) ---------------- */
.files { display: flex; flex-direction: column; height: 100%; }
.files .crumb { padding: 6px 10px; background: #fafbfc; border-bottom: 1px solid #e3e8ed; font-size: 12px; flex: none; }
.files .crumb span { color: #4a7fb5; cursor: pointer; }
.files .crumb span.cur { color: #22303c; cursor: default; }
.files .pane { flex: 1; overflow: auto; }
table.fs { border-collapse: collapse; width: 100%; font-size: 12.5px; }
table.fs th {
  position: sticky; top: 0; background: #eef1f4; border-bottom: 1px solid #ccd5dd; text-align: left;
  padding: 5px 8px; font-weight: normal; color: #44535f; cursor: pointer; white-space: nowrap;
}
table.fs th:hover { background: #e2eaf2; }
table.fs th.num { text-align: right; }
table.fs td { padding: 5px 8px; border-bottom: 1px solid #f0f3f6; white-space: nowrap; }
table.fs td.num { text-align: right; font-family: Consolas, monospace; }
table.fs tr:hover td { background: #f2f8ff; }
table.fs tr.row.on td { background: #dceaff; }
table.fs td.nm { display: flex; align-items: center; gap: 7px; }
table.fs td.nm .gi { width: 16px; height: 16px; flex: none; }
table.fs td.nm .aux { color: #8a97a4; font-size: 11.5px; }
.files .status { border-top: 1px solid #e3e8ed; background: #fafbfc; padding: 4px 10px; font-size: 11.5px; color: #6b7a88; flex: none; }
.files .empty { padding: 26px; text-align: center; color: #96a3b0; font-size: 12.5px; }

/* ---------------- 澜镜(浏览器) ---------------- */
.browser { display: flex; flex-direction: column; height: 100%; }
.browser .tabs { display: flex; gap: 3px; padding: 5px 6px 0 6px; background: #dfe6ec; flex: none; }
.browser .tab {
  display: flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 6px 6px 0 0;
  background: #cfd8e0; font-size: 12px; cursor: pointer; max-width: 210px; overflow: hidden;
}
.browser .tab.on { background: #fff; font-weight: 600; }
.browser .tab .x { color: #7b8a97; font-size: 11px; }
.browser .tab .x:hover { color: #c0392b; }
/* 注意:site.css 里有同名的 .bar(进度条,120x11 且 overflow:hidden)和 .nav(站点导航条),
   桌面也加载了 site.css —— 这里必须把它们的尺寸/边框/背景全部覆盖回来,否则地址栏会被压成一条线。 */
.browser .bar {
  display: flex; align-items: center; gap: 6px; padding: 5px 8px; background: #fff; border: 0;
  border-bottom: 1px solid #d3dae1; flex: none; width: auto; height: auto; overflow: visible; vertical-align: baseline;
}
.browser .bar .nav {
  border: 1px solid #ccd5dd; background: #f7f9fb; border-radius: 4px; width: 26px; height: 26px; padding: 0;
  cursor: pointer; flex: none; font: 13px/1 "Microsoft YaHei", sans-serif; color: #3a4a58;
}
.browser .bar .nav:hover { background: #e9eff5; }
.browser .bar input {
  flex: 1; min-width: 0; height: 26px; box-sizing: border-box;
  font: 12.5px Consolas, monospace; padding: 3px 9px; border: 1px solid #bcc7d2; border-radius: 13px; background: #f4f7fa;
}
.browser .bar input:focus { outline: none; border-color: #6fa0d8; background: #fff; }
.browser .bar .zoom { flex: none; font: 11px Consolas, monospace; color: #7b8a97; min-width: 34px; text-align: right; }
.browser .tabs .tab { flex: 0 1 auto; min-width: 70px; white-space: nowrap; text-overflow: ellipsis; }
.browser .view { flex: 1; min-height: 0; position: relative; background: #fff; }
.browser .view iframe { width: 100%; height: 100%; border: 0; display: block; }
.browser .offline { padding: 40px; text-align: center; color: #8a97a4; font-size: 13px; }
.browser .offline .big { font-size: 30px; margin-bottom: 10px; }

/* ---------------- 播放器(图片查看器) ---------------- */
.viewer { display: flex; height: 100%; }
.viewer .stage { flex: 1; background: #2a2f36; display: flex; align-items: center; justify-content: center; overflow: auto; padding: 14px; }
.viewer .stage iframe { width: 100%; height: 100%; border: 0; background: #fff; transition: filter .15s; }
.viewer .stage .ph { color: #9aa6b2; text-align: center; font-size: 13px; }
.viewer .side { width: 268px; flex: none; border-left: 1px solid #d3dae1; background: #fafbfc; overflow: auto; padding: 10px 12px; }
.viewer .side h4 { margin: 0 0 8px 0; font-size: 12.5px; color: #44535f; border-bottom: 1px solid #e3e8ed; padding-bottom: 5px; }
.viewer .side dl { margin: 0 0 12px 0; font-size: 12px; }
.viewer .side dt { color: #7b8a97; float: left; clear: left; width: 74px; }
.viewer .side dd { margin: 0 0 4px 74px; color: #22303c; word-break: break-all; }
.viewer .side .slider { margin: 6px 0 10px 0; }
.viewer .side input[type=range] { width: 100%; }
.viewer .side .note { font-size: 11.5px; color: #8a97a4; line-height: 1.7; border-top: 1px dashed #d3dae1; padding-top: 8px; }

/* ---------------- 缺口清单(线索册) ---------------- */
.notebook { padding: 12px 14px; height: 100%; overflow: auto; background: #fffdf7; }
.notebook .metrics { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; border: 1px solid #e0dcc8; background: #fffff2; padding: 8px 12px; border-radius: 6px; margin-bottom: 12px; }
.notebook .metrics .m b { font-size: 15px; }
.notebook .metrics .m .sub { display: block; font-size: 11.5px; color: #8a8570; }
.notebook .list { border-top: 1px solid #eee6c8; }
.notebook .row { display: flex; gap: 10px; padding: 8px 2px; border-bottom: 1px solid #f2ecd6; font-size: 12.5px; }
.notebook .row .code { font-family: Consolas, monospace; color: #a03060; flex: none; width: 46px; }
.notebook .row .q { flex: 1; }
.notebook .row .src { color: #8a8570; font-size: 11.5px; }
.notebook .empty { color: #9a9482; }
.notebook .tools { margin-top: 12px; font-size: 12px; color: #8a8570; }

/* ---------------- 对话框 / 模态 ---------------- */
.modal { position: fixed; inset: 0; background: rgba(8,12,16,.45); display: flex; align-items: center; justify-content: center; z-index: 9800; }
.dlg {
  width: 460px; max-width: 92vw; background: #f4f6f8; border: 1px solid #9fb0bf; border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6); overflow: hidden;
}
.dlg .h { padding: 10px 14px; background: #e4ebf1; border-bottom: 1px solid #ccd5dd; font-size: 13px; font-weight: 600; }
.dlg .b { padding: 14px; font-size: 13px; line-height: 1.75; }
.dlg .b .opt { display: block; margin: 8px 0; padding: 9px 11px; border: 1px solid #ccd5dd; background: #fff; border-radius: 6px; cursor: pointer; }
.dlg .b .opt:hover { border-color: #7fb0e6; background: #f3f9ff; }
.dlg .b .opt.on { border-color: #4a7fb5; background: #e8f3ff; }
.dlg .b .opt b { display: block; }
.dlg .b .opt span { font-size: 12px; color: #6b7a88; }
.dlg .f { padding: 10px 14px; background: #eef1f4; border-top: 1px solid #d3dae1; text-align: right; display: flex; gap: 8px; justify-content: flex-end; }
.dlg .f button { font: 12.5px "Microsoft YaHei", sans-serif; padding: 6px 16px; border-radius: 5px; border: 1px solid #bcc7d2; background: #fff; cursor: pointer; }
.dlg .f button.primary { background: #2f6fb5; border-color: #2f6fb5; color: #fff; }
.dlg .f button:hover { filter: brightness(.96); }
.progress { height: 10px; border: 1px solid #bcc7d2; background: #fff; border-radius: 5px; overflow: hidden; margin: 8px 0; }
.progress i { display: block; height: 100%; width: 0; background: #4a7fb5; transition: width .2s; }

/* ---------------- 启动画面 ---------------- */
#boot {
  position: fixed; inset: 0; background: #06090c; color: #9fd0a0; z-index: 9900;
  font: 13px/2 Consolas, monospace; padding: 34px 40px; white-space: pre-wrap; overflow: hidden;
}
#boot .cur { background: #9fd0a0; color: #06090c; }

/* ---------------- 提示气泡(任务引导) ---------------- */
#hint { position: fixed; left: 50%; transform: translateX(-50%); bottom: 58px; z-index: 9600;
  background: rgba(24,30,38,.94); color: #eaf2fa; border: 1px solid rgba(255,255,255,.16);
  padding: 7px 14px; border-radius: 20px; font-size: 12.5px; display: none; box-shadow: 0 6px 20px rgba(0,0,0,.5); }
#hint b { color: #8fc7ff; }

/* 状态灯:正在采集 */
.pulse { animation: pl 1.2s infinite; }
@keyframes pl { 0%,100% { opacity: 1 } 50% { opacity: .35 } }

/* ---------------- reader.html 内嵌(播放器/iframe)时的精简模式 ---------------- */
body.bare { background: #fff; padding: 0; }
body.bare .statusbar, body.bare .hd, body.bare .nav, body.bare .footer,
body.bare .pdfbar, body.bare .wallwrap, body.bare #flash { display: none !important; }
body.bare .frame { width: auto; margin: 0; border: 0; box-shadow: none; }
body.bare .reader-layout { display: block; padding: 0; }
body.bare .ssheet { box-shadow: none; margin: 0; transform: none; border: 0; }

/* 播放器:压痕层(拉对比度才浮出来) */
.viewer .stage { position: relative; }
.viewer .ghost {
  position: absolute; inset: 12% 14%; opacity: 0; transition: opacity .18s;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: rgba(255,255,255,.42); border: 1px dashed rgba(120,90,40,.5); border-radius: 4px;
  pointer-events: none;
}
.viewer .ghost .gl { font-size: 11.5px; color: #7a6a48; letter-spacing: .5px; }
.viewer .ghost .gt { font: 30px/1.5 "Xiaolai SC", KaiTi, "楷体", serif; color: #4a3a20; letter-spacing: 6px; }
.viewer .ghost .gs { font-size: 12px; color: #7a6a48; }

/* ---------------- 私语:输入行 / 快捷回复 ---------------- */
.chat .quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 10px; background: #fafbfc; border-top: 1px solid #e3e8ed; min-height: 8px; }
.chat .chip {
  font-size: 12px; padding: 4px 10px; border: 1px solid #b9cfe4; background: #fff; border-radius: 14px;
  cursor: pointer; color: #2f6fb5; white-space: nowrap;
}
.chat .chip:hover { background: #eaf4ff; border-color: #7fb0e6; }
.chat .inrow { display: flex; gap: 8px; padding: 8px 10px; border-top: 1px solid #e3e8ed; background: #fff; flex: none; }
.chat .inrow input {
  flex: 1; font: 13px/1.5 "Microsoft YaHei", sans-serif; padding: 7px 10px;
  border: 1px solid #bcc7d2; border-radius: 5px; outline: none;
}
.chat .inrow input:focus { border-color: #6fb0ff; box-shadow: 0 0 0 2px rgba(111,176,255,.18); }
.chat .inrow button {
  font: 13px "Microsoft YaHei", sans-serif; padding: 7px 16px; border-radius: 5px;
  border: 1px solid #2f6fb5; background: #2f6fb5; color: #fff; cursor: pointer;
}
.chat .inrow button:hover { filter: brightness(1.08); }
.chat .head .st.off { color: #c0392b; }
.chat .head .st { margin-right: 10px; }

/* 邮驿:回信框 */
.mail .read .replybox { margin-top: 14px; border-top: 1px dashed #d3dae1; padding-top: 10px; }
.mail .read .replybox textarea {
  width: 100%; height: 62px; font: 13px/1.7 "Microsoft YaHei", sans-serif; padding: 7px 9px;
  border: 1px solid #bcc7d2; border-radius: 5px; resize: vertical; box-sizing: border-box;
}
.mail .read .replybox button {
  margin-top: 6px; font: 12.5px "Microsoft YaHei", sans-serif; padding: 6px 16px; border-radius: 5px;
  border: 1px solid #2f6fb5; background: #2f6fb5; color: #fff; cursor: pointer;
}
.mail .read .mine { border-left: 3px solid #bcdcfb; padding-left: 8px; margin: 8px 0; color: #33404d; font-size: 12.5px; }

/* 邮驿:写信 */
.mail .list { display: flex; flex-direction: column; }
.mail .list #mailList { flex: 1; overflow: auto; }
.mail .mtools { flex: none; padding: 7px 10px; border-bottom: 1px solid #e3e8ed; background: #f3f5f7; }
.mail .mtools button {
  font: 12.5px "Microsoft YaHei", sans-serif; padding: 4px 14px; border-radius: 4px;
  border: 1px solid #2f6fb5; background: #2f6fb5; color: #fff; cursor: pointer;
}
.mail .list .it.sent .f:first-of-type { color: #4a7fb5; }
.mail .compose label { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-size: 12px; color: #6b7a88; }
.mail .compose label input {
  flex: 1; font: 13px Consolas, "Microsoft YaHei", monospace; padding: 5px 8px;
  border: 1px solid #bcc7d2; border-radius: 4px;
}
.mail .compose textarea {
  width: 100%; height: 200px; margin-top: 6px; font: 13px/1.7 "Microsoft YaHei", sans-serif; padding: 7px 9px;
  border: 1px solid #bcc7d2; border-radius: 5px; resize: vertical; box-sizing: border-box;
}
.mail .compose .crow { margin-top: 6px; display: flex; align-items: center; gap: 10px; }
.mail .compose .crow button {
  font: 12.5px "Microsoft YaHei", sans-serif; padding: 6px 16px; border-radius: 5px;
  border: 1px solid #2f6fb5; background: #2f6fb5; color: #fff; cursor: pointer;
}
.mail .compose .cmsg { font-size: 12px; color: #c0392b; }

/* 档案公开度倒退时(改动链那一步),数字变红并轻微抖一下 */
[data-wc="pct"].back { color: #ff6b6b !important; animation: shk .35s 3; }
@keyframes shk { 0%,100% { transform: none } 25% { transform: translateX(-2px) } 75% { transform: translateX(2px) } }

/* ---------------- 缺口清单 = 推断台 ---------------- */
.nb2 { display: flex; flex-direction: column; height: 100%; padding: 10px 12px; box-sizing: border-box; }
.nb2 .metrics { flex: none; }
.nb2 .cols { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1.25fr; gap: 14px; }
.nb2 .col { overflow: auto; min-height: 0; }
.nb2 h4 { margin: 4px 0 6px 0; font-size: 12.5px; color: #6b6245; border-bottom: 1px solid #eadfb8; padding-bottom: 3px; }
.nb2 .note { margin-bottom: 8px; }
.ded { border: 1px solid #e3d9b6; background: #fffef8; border-radius: 6px; padding: 9px 11px; margin-bottom: 9px; }
.ded.done { background: #f3faf2; border-color: #bfe0bd; }
.ded.final { border-color: #c0392b; background: #fff6f4; }
.ded .dt { font-weight: 600; font-size: 13px; color: #2e2a1e; }
.ded .dq { font-size: 12.5px; color: #4a4536; margin: 4px 0 7px 0; line-height: 1.7; }
.ded .ansin { width: 100%; box-sizing: border-box; font: 13px Consolas, "Microsoft YaHei", monospace; padding: 5px 8px; border: 1px solid #cfc5a3; border-radius: 4px; }
.ded .opts label { display: block; font-size: 12.5px; padding: 3px 0; cursor: pointer; }
.ded .drow { display: flex; align-items: center; gap: 10px; margin-top: 7px; }
.ded .dsub { font: 12.5px "Microsoft YaHei", sans-serif; padding: 4px 14px; border-radius: 4px; border: 1px solid #8a6d2b; background: #fff; cursor: pointer; }
.ded .dsub:hover { background: #fff3cf; }
.ded.final .dsub { border-color: #c0392b; color: #c0392b; }
.ded .dmsg { font-size: 12px; color: #8a8570; }
.ded .dmsg.bad { color: #c0392b; }
.ded .ans.ok { font-size: 12.5px; color: #2f6b2d; line-height: 1.7; }
.nb2 .more { font-size: 12px; color: #a39a7a; padding: 6px 2px; }
.ending { border: 1px solid #c9bfa0; background: #fffdf3; border-radius: 6px; padding: 16px 18px; font-size: 13px; line-height: 1.95; color: #2e2a1e; }
.ending .et { font: 18px/1.6 "Xiaolai SC", KaiTi, serif; margin-bottom: 8px; }
.ending .sig { color: #8a8570; font-size: 12px; margin-top: 12px; }
.ending .tools button, .viewer .side .tools button {
  font: 12px "Microsoft YaHei", sans-serif; padding: 4px 12px; border: 1px solid #bcc7d2; background: #fff; border-radius: 4px; cursor: pointer; margin: 2px 4px 2px 0;
}
.viewer .side .tools button:hover { background: #eef5ff; }
.viewer .photo { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; transition: filter .15s; }
.viewer .photo svg { max-width: 100%; max-height: 100%; }
.viewer .thumbtag { position: absolute; left: 8px; top: 8px; background: rgba(0,0,0,.6); color: #ffd98a; font-size: 11.5px; padding: 2px 8px; border-radius: 3px; }

/* ---------------- 留声(音频播放器) ---------------- */
.tape { display: flex; height: 100%; }
.tape .tmain { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 12px 14px; background: #fbfaf7; }
.tape .tbar2 { display: flex; align-items: center; gap: 14px; flex: none; }
.tape .tbar2 button { font: 12.5px "Microsoft YaHei", sans-serif; padding: 5px 14px; border-radius: 5px; border: 1px solid #6d5fa0; background: #6d5fa0; color: #fff; cursor: pointer; }
.tape .tspd { font-size: 12px; color: #6b7a88; }
.tape .tspd button { background: #fff; color: #6d5fa0; padding: 2px 8px; margin-left: 2px; }
.tape .tspd button.on { background: #6d5fa0; color: #fff; }
.tape .tclk { margin-left: auto; font: 13px Consolas, monospace; color: #44535f; }
.tape .twave { flex: none; height: 90px; margin: 10px 0; background: #1e2128; border-radius: 6px; padding: 5px; cursor: pointer; }
.tape .wave { width: 100%; height: 100%; display: block; }
.tape .wave .w0 { fill: #4b4f5c; }
.tape .wave .w1 { fill: #b7a8f0; }
.tape .wave .head { fill: #ffd166; }
.tape h4 { margin: 4px 0 6px 0; font-size: 12.5px; color: #44535f; border-bottom: 1px solid #e3e8ed; padding-bottom: 4px; flex: none; }
.tape h4 .tsub { font-weight: normal; color: #96a3b0; font-size: 11.5px; }
.tape .ttx { flex: 1; overflow: auto; font-size: 13px; line-height: 1.9; user-select: text; }
.tape .tl { display: flex; gap: 12px; padding: 1px 6px; border-radius: 4px; color: #6b7a88; }
.tape .tl .tt { font: 12px/1.9 Consolas, monospace; color: #96a3b0; flex: none; width: 44px; }
.tape .tl.past { color: #44535f; }
.tape .tl.cur { background: #ece6ff; color: #22303c; }
.tape .side { width: 250px; flex: none; border-left: 1px solid #d3dae1; background: #fafbfc; overflow: auto; padding: 10px 12px; }
.tape .side h4 { margin: 0 0 8px 0; }
.tape .side dl { margin: 0 0 12px 0; font-size: 12px; }
.tape .side dt { color: #7b8a97; float: left; clear: left; width: 92px; }
.tape .side dd { margin: 0 0 4px 92px; color: #22303c; word-break: break-all; }
.tape .side .tools button { font: 12px "Microsoft YaHei", sans-serif; padding: 5px 10px; border: 1px solid #bcc7d2; background: #fff; border-radius: 4px; cursor: pointer; }

/* 缺口清单顶部的一句用法说明(只说界面怎么用,不指向任何答案) */
.nb2 .nbhow { flex: none; font-size: 12px; color: #8a7d55; background: #fffdf0; border: 1px dashed #e3d59a;
  border-radius: 4px; padding: 6px 10px; margin: 8px 0 4px 0; }

/* ============================================================
   窗口内容自适应(2026-10-09)
   每个窗口的 .wbody 是一个"容器",应用按窗口自己的宽度排版,
   而不是按整个屏幕的宽度 —— 和真系统里的应用一样。
   ============================================================ */
.wbody { container-type: size; container-name: win; }
.wbody > * { box-sizing: border-box; }
.wbody > .mail, .wbody > .files, .wbody > .browser, .wbody > .viewer, .wbody > .tape, .wbody > .nb2 { height: 100%; }

/* 邮驿:窄窗口 → 列表变窄;很窄 → 列表在上、正文在下 */
@container win (max-width: 680px) {
  .mail .list { width: 200px; }
  .mail .read { padding: 12px 14px; }
}
@container win (max-width: 500px) {
  .mail { flex-direction: column; }
  .mail .list { width: auto; height: 38%; flex: none; border-right: 0; border-bottom: 1px solid #e3e8ed; }
}

/* 档案柜:窄窗口 → 隐藏"类型"列,名称允许省略号 */
@container win (max-width: 600px) {
  table.fs th:nth-child(3), table.fs td:nth-child(3) { display: none; }
}
@container win (max-width: 460px) {
  table.fs th:nth-child(4), table.fs td:nth-child(4) { display: none; }
}

/* 播放器 / 留声:窄窗口 → 信息栏折到下面 */
@container win (max-width: 720px) {
  .viewer, .tape { flex-direction: column; }
  .viewer .stage { min-height: 0; }
  .viewer .side, .tape .side { width: auto; height: 42%; flex: none; border-left: 0; border-top: 1px solid #d3dae1; }
  .tape .tmain { min-height: 0; }
  .tape .tbar2 { flex-wrap: wrap; gap: 6px 12px; }
}

/* 缺口清单:窄窗口 → 两栏变一栏,整页滚动 */
@container win (max-width: 680px) {
  .nb2 { height: auto; min-height: 100%; }
  .nb2 .cols { display: flex; flex-direction: column; }
  .nb2 .col { overflow: visible; margin-bottom: 14px; }
  .nb2 .col.r { order: -1; }          /* 一栏时推断在上 —— 那才是要做的事 */
}
@container win (max-height: 420px) {
  .nb2 { height: auto; min-height: 100%; }
  .nb2 .cols { flex: none; }
  .nb2 .col { overflow: visible; }
}

/* 浏览器:窄窗口 → 标签更窄 */
@container win (max-width: 560px) {
  .browser .tab { max-width: 120px; }
}

/* ============================================================
   协作整理后台 · 我的任务(2026-10-09)
   2026 年临时搭的志愿者后台:灰蓝、表格感、不花哨。
   ============================================================ */
.tk { display: flex; flex-direction: column; height: 100%; background: #eef1f4; font-size: 12.5px; color: #22303c; }
.tk .tkhd { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: #2b3440; color: #dfe6ee; padding: 8px 14px; }
.tk .tkhd b { color: #fff; letter-spacing: 1px; font-size: 13px; }
.tk .tkhd span { font-size: 12px; color: #aebccb; white-space: nowrap; }
.tk .tkbar { flex: none; display: flex; gap: 18px; padding: 6px 14px; background: #fff; border-bottom: 1px solid #cfd7de; color: #5d6b78; font-size: 12px; }
.tk .tkbar b { color: #22303c; }
.tk .tkbar .tkdue b { color: #b03a2e; }
.tk .tkbody { flex: 1; min-height: 0; display: flex; }
.tk .tklist { width: 230px; flex: none; overflow: auto; background: #f6f8fa; border-right: 1px solid #cfd7de; padding: 6px 0; }
.tk .tkcap { padding: 4px 12px 6px 12px; color: #6b7a88; font-size: 12px; display: flex; justify-content: space-between; }
.tk .tkit { display: flex; align-items: center; gap: 7px; padding: 7px 12px; cursor: pointer; border-left: 3px solid transparent; }
.tk .tkit:hover { background: #eaf0f6; }
.tk .tkit.on { background: #dde8f4; border-left-color: #4a7fb5; }
.tk .tkit .tkno { font: 11.5px Consolas, monospace; color: #8a97a4; flex: none; width: 22px; }
.tk .tkit .tktt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk .tkit .tkst { flex: none; font-size: 11px; color: #8a97a4; }
.tk .tkit.cur .tktt { font-weight: 600; }
.tk .tkit.cur .tkst { color: #fff; background: #4a7fb5; border-radius: 3px; padding: 0 5px; }
.tk .tkit.done .tktt { color: #5d7a5b; }
.tk .tkit.done .tkst { color: #3f7a3c; }
.tk .tkit.locked .tktt, .tk .tkit.locked .tkno { color: #a9b4be; }
.tk .tkmain { flex: 1; min-width: 0; overflow: auto; padding: 14px 18px; background: #fff; }
.tk .tkh { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.tk .tkh .tkno { font: 12px Consolas, monospace; color: #8a97a4; font-weight: normal; }
.tk .tkbadge { font-size: 11px; font-weight: normal; border-radius: 3px; padding: 1px 7px; border: 1px solid #9fb6cc; color: #3b6a96; background: #eef5fc; }
.tk .tkbadge.done { border-color: #a9d3a6; color: #3f7a3c; background: #f0f8ef; }
.tk .tkbadge.locked { border-color: #cfd7de; color: #8a97a4; background: #f4f6f8; }
.tk .tkbrief { line-height: 1.9; font-size: 13px; color: #33404d; border-left: 3px solid #cfd7de; padding: 2px 0 2px 10px; margin-bottom: 10px; }
.tk .tklinks { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-bottom: 14px; font-size: 12px; }
.tk .tklinks span { color: #8a97a4; }
.tk .tklinks a { color: #2f6fb5; text-decoration: none; border: 1px solid #bcd3ea; background: #f3f8fd; border-radius: 3px; padding: 2px 9px; }
.tk .tklinks a:hover { background: #e2eefa; }
.tk .tkrcpt { border-top: 1px dashed #cfd7de; padding-top: 10px; }
.tk .tkcap2 { font-size: 12px; color: #6b7a88; margin-bottom: 8px; }
.tk .tkrest { font-size: 12px; color: #8a97a4; padding: 6px 2px; }
.tk .tkdone { font-size: 12px; color: #3f7a3c; padding: 6px 2px; }
.tk .tklock { color: #6b7a88; line-height: 2; padding: 18px 4px; }
@container win (max-width: 640px) {
  .tk .tkbody { flex-direction: column; }
  .tk .tklist { width: auto; height: auto; max-height: 40%; flex: none; border-right: 0; border-bottom: 1px solid #cfd7de; }
  .tk .tkhd span { display: none; }
}

/* 任务 #7 定稿单 */
.tk table.tkform { border-collapse: collapse; width: 100%; margin: 4px 0 14px 0; font-size: 12.5px; }
.tk table.tkform th, .tk table.tkform td { border: 1px solid #cfd7de; padding: 7px 10px; text-align: left; vertical-align: top; }
.tk table.tkform th { width: 110px; background: #f3f5f7; font-weight: normal; color: #5d6b78; }
.tk table.tkform th span { font-size: 11px; color: #a9b4be; }
.tk table.tkform td.concl { background: #fbf6ee; font-family: Consolas, "Microsoft YaHei", monospace; color: #4a3a20; }
.tk .tkfin { display: flex; gap: 12px; }
.tk .tkfin button { font: 13px "Microsoft YaHei", sans-serif; padding: 7px 22px; border-radius: 4px; cursor: pointer; }
.tk .tkfin .tkgo { border: 1px solid #2b3440; background: #2b3440; color: #fff; }
.tk .tkfin .tkgo:hover { background: #3c4756; }
.tk .tkfin .tkno2 { border: 1px solid #9aa8b6; background: #fff; color: #33404d; }
.tk .tkfin .tkno2:hover { background: #f1f4f7; }
.ded .dopen { font: 12.5px "Microsoft YaHei", sans-serif; padding: 4px 14px; border-radius: 4px; border: 1px solid #c0392b; color: #c0392b; background: #fff; cursor: pointer; }

/* ============================================================
   便签:贴在屏幕右上角的一张纸(不是应用)
   在所有窗口之上、任务栏/菜单/对话框之下;不挡窗口标题栏的三颗按钮
   ============================================================ */
.stick {
  position: fixed; z-index: 8000; width: 168px; box-sizing: border-box;
  padding: 16px 12px 10px 13px; cursor: pointer; user-select: none;
  background: linear-gradient(#fff7b0, #fdee8f 70%, #f6e17a);
  color: #3a3320; font: 12.5px/1.7 "Xiaolai SC", KaiTi, "楷体", serif;
  box-shadow: 0 6px 14px rgba(0,0,0,.35), inset 0 -10px 18px rgba(170,130,20,.08);
  transform: rotate(1.6deg); transform-origin: 50% 0;
  transition: box-shadow .15s, transform .15s;
}
.stick:hover { box-shadow: 0 9px 20px rgba(0,0,0,.42), inset 0 -10px 18px rgba(170,130,20,.08); }
.stick.lift { transform: rotate(-1deg) scale(1.03); box-shadow: 0 18px 30px rgba(0,0,0,.5); cursor: grabbing; transition: none; }
/* 一截透明胶带 */
.stick .tape { position: absolute; top: -9px; left: 50%; width: 58px; height: 20px; margin-left: -29px;
  background: rgba(235,235,225,.6); border-left: 1px dashed rgba(0,0,0,.08); border-right: 1px dashed rgba(0,0,0,.08);
  transform: rotate(-3deg); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.stick .nt { white-space: pre-wrap; word-break: break-all; }
/* 折着:只露"待办"和第一条的头两行 */
.stick:not(.open) .nt { max-height: 5.1em; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.stick:not(.open) { height: auto; }
.stick.open { width: 300px; transform: rotate(.6deg); }
/* 右下角翻起来的一角 */
.stick .fold { position: absolute; right: 0; bottom: 0; width: 16px; height: 16px;
  background: linear-gradient(135deg, #f6e17a 50%, rgba(0,0,0,.14) 50%); }
