/* ==========================================================================
   《东海理工学院异常档案 · 第十七号坐标系》桌面 OS 拟真样式表 (v3.0)
   Windows 10/11 桌面 + PC 微信三栏 + Chrome 多标签 + PDF 阅读器 + DH-NVR 监控
   ========================================================================== */
:root {
  --font-ui: "Microsoft YaHei UI", "PingFang SC", "Segoe UI", sans-serif;
  --font-serif: "SimSun", "STSong", "Noto Serif SC", serif;
  --font-mono: "Consolas", "Cascadia Mono", "Courier New", monospace;
  --win-blue: #0067c0;
  --win-taskbar: rgba(24, 28, 36, 0.88);
  --win-border: rgba(255, 255, 255, 0.14);
  --wx-rail: #2e2e2e;
  --wx-list: #e8e7e6;
  --wx-list-active: #c6c6c6;
  --wx-chat: #f5f5f5;
  --wx-green: #95ec69;
  --edu-navy: #0b3b75;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; width: 100%; height: 100%;
  overflow: hidden;
  font-family: var(--font-ui);
  color: #1f2937;
  background: #0b1220;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }
input, textarea, .selectable { user-select: text; }

/* 1. 3.2s 黑底合规《虚构声明》 */
.disclaimer-overlay {
  position: fixed; inset: 0; z-index: 99999;
  background: #06080c; color: #e2e8f0;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  transition: opacity 0.6s ease;
}
.disclaimer-overlay.fade-out { opacity: 0; pointer-events: none; }
.disclaimer-box { max-width: 580px; text-align: center; font-family: var(--font-serif); line-height: 1.95; }
.disclaimer-title { font-size: 23px; letter-spacing: 8px; color: #f8fafc; font-weight: bold; }
.disclaimer-divider { width: 64px; height: 2px; background: #475569; margin: 14px auto 18px; }
.disclaimer-box p { font-size: 14.5px; color: #cbd5e1; margin: 10px 0; }
.disclaimer-sub { font-family: var(--font-ui); font-size: 12.5px !important; color: #94a3b8 !important; }
.disclaimer-progress { width: 240px; height: 3px; background: #1e293b; border-radius: 2px; margin: 20px auto 0; overflow: hidden; }
.disclaimer-bar { width: 0%; height: 100%; background: #60a5fa; transition: width 0.08s linear; }
.disclaimer-btn {
  margin-top: 18px; padding: 9px 24px; border: 1px solid #60a5fa; background: #0f294a;
  color: #e0f2fe; border-radius: 4px; cursor: pointer; font-size: 13.5px; font-family: var(--font-ui);
}
.disclaimer-btn:hover { background: #183f6e; }

/* 2. 后期 4.1℃ 结霜暗角 */
.frost-vignette {
  position: fixed; inset: 0; z-index: 8800; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse at center, transparent 56%, rgba(12, 42, 74, 0.24) 84%, rgba(6, 20, 38, 0.64) 100%);
  box-shadow: inset 0 0 90px rgba(147, 213, 250, 0.22);
  transition: opacity 2s ease;
}
body.act-3 .frost-vignette { opacity: 0.28; }
body.act-4 .frost-vignette { opacity: 0.92; }

/* 3. Windows 开机锁屏界面 */
.lock-screen {
  position: fixed; inset: 0; z-index: 9000;
  background: radial-gradient(circle at 22% 24%, #183a66 0%, #0e1e36 52%, #070d18 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #ffffff;
  transition: opacity 0.45s ease;
}
.lock-bg-img {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 0.4s;
}
.lock-bg-img.loaded { opacity: 0.62; }
.lock-backdrop { position: absolute; inset: 0; backdrop-filter: blur(18px); background: rgba(6, 12, 24, 0.36); }
.lock-top-clock { position: relative; z-index: 2; text-align: center; margin-bottom: 24px; }
.lock-time { font-size: 64px; font-weight: 300; letter-spacing: 2px; line-height: 1.05; text-shadow: 0 4px 20px rgba(0,0,0,0.45); }
.lock-date { font-size: 17px; opacity: 0.88; margin-top: 4px; }
.lock-login-card { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; width: 310px; max-width: 90vw; }
.lock-avatar {
  width: 92px; height: 92px; border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #0f2e64);
  border: 2px solid rgba(255,255,255,0.45);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; font-weight: 600; margin-bottom: 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.4);
}
.lock-username { font-size: 22px; font-weight: 500; }
.lock-sub { font-size: 12px; color: rgba(226, 232, 240, 0.72); margin: 3px 0 16px; }
.lock-form { display: flex; width: 100%; height: 38px; background: rgba(15, 23, 42, 0.65); border: 1.5px solid rgba(255,255,255,0.42); border-radius: 4px; overflow: hidden; }
.lock-form:focus-within { border-color: #60a5fa; background: rgba(15, 23, 42, 0.85); }
.lock-pwd-input {
  flex: 1; border: none; outline: none; background: transparent; color: #fff;
  padding: 0 12px; font-size: 14px; font-family: var(--font-ui);
}
.lock-pwd-input::placeholder { color: rgba(255,255,255,0.55); }
.lock-submit-btn {
  width: 40px; border: none; background: rgba(255,255,255,0.16); color: #fff;
  font-size: 17px; cursor: pointer;
}
.lock-submit-btn:hover { background: rgba(96, 165, 250, 0.5); }
.lock-msg { min-height: 20px; font-size: 12.5px; color: #fca5a5; margin-top: 8px; text-align: center; }
.lock-hint-link {
  margin-top: 6px; border: none; background: transparent; color: rgba(226, 232, 240, 0.82);
  font-size: 12.5px; cursor: pointer; text-decoration: underline;
}
.lock-hint-text {
  margin-top: 8px; padding: 7px 11px; border-radius: 4px;
  background: rgba(15, 23, 42, 0.78); border: 1px solid rgba(148,163,184,0.35);
  font-size: 12px; color: #e2e8f0; text-align: center;
}

/* 贴在显示器边框上的真实黄色便利贴 */
.sticky-note-bezel {
  position: absolute; right: 32px; bottom: 54px; z-index: 3;
  width: 215px; padding: 14px 15px 12px;
  background: #fef08a; color: #3f3611;
  box-shadow: 0 10px 26px rgba(0,0,0,0.45);
  transform: rotate(-2.2deg);
  font-size: 12.5px; line-height: 1.75;
  border-radius: 2px;
}
.sticky-tape {
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  width: 64px; height: 18px; background: rgba(255,255,255,0.45);
  border: 1px solid rgba(0,0,0,0.06);
}
.sticky-title { font-weight: 700; font-size: 13px; border-bottom: 1px dashed rgba(113,63,18,0.3); padding-bottom: 4px; margin-bottom: 6px; }
.sticky-line b { font-family: var(--font-mono); font-size: 14px; color: #991b1b; }
.lock-bottom-tray {
  position: absolute; right: 24px; bottom: 16px; z-index: 2;
  display: flex; gap: 14px; font-size: 12.5px; opacity: 0.85;
}

/* 4. Windows 桌面与图标 */
.os-desktop {
  position: fixed; inset: 0;
  background: radial-gradient(circle at 18% 22%, #1d4e89 0%, #102a4c 48%, #091527 100%);
  overflow: hidden;
}
body.act-4 .os-desktop {
  background: radial-gradient(circle at 18% 22%, #12283d 0%, #091521 55%, #04090f 100%);
}
.desktop-bg-img {
  position: absolute; inset: 0 0 44px 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.desktop-bg-img.loaded { opacity: 1; }
body.act-4 .desktop-bg-img.loaded { filter: saturate(0.55) brightness(0.75); }

.desktop-icons {
  position: absolute; top: 14px; left: 14px; bottom: 54px;
  display: flex; flex-direction: column; flex-wrap: wrap; align-content: flex-start;
  gap: 10px 14px; z-index: 10;
}
.d-icon {
  width: 82px; padding: 8px 4px; border-radius: 5px;
  border: 1px solid transparent; background: transparent;
  color: #ffffff; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  position: relative; text-align: center;
}
.d-icon:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.24); }
.d-icon.selected { background: rgba(59, 130, 246, 0.34); border-color: rgba(147, 197, 253, 0.6); }
.d-icon.eerie-file .d-icon-label { color: #fecaca; font-weight: 600; }
.d-icon-glyph {
  width: 42px; height: 42px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; box-shadow: 0 3px 10px rgba(0,0,0,0.35);
}
.glyph-pc { background: linear-gradient(135deg, #38bdf8, #0284c7); }
.glyph-wx { background: linear-gradient(135deg, #22c55e, #07c160); }
.glyph-chrome { background: linear-gradient(135deg, #facc15, #ef4444 48%, #2563eb 100%); }
.glyph-note { background: linear-gradient(135deg, #93c5fd, #2563eb); }
.glyph-pdf { background: linear-gradient(135deg, #f87171, #b91c1c); }
.glyph-cctv { background: linear-gradient(135deg, #334155, #0f172a); border: 1px solid #64748b; }
.glyph-term { background: linear-gradient(135deg, #14532d, #052e16); border: 1px solid #4ade80; color: #4ade80; font-family: var(--font-mono); font-size: 16px; font-weight: 700; }
.glyph-trash { background: linear-gradient(135deg, #94a3b8, #475569); }
.glyph-eerie { background: linear-gradient(135deg, #7f1d1d, #450a0a); border: 1px solid #f87171; }
.d-icon-label {
  font-size: 12px; line-height: 1.25; word-break: break-word;
  text-shadow: 0 1px 4px rgba(0,0,0,0.92), 0 0 2px rgba(0,0,0,0.9);
}
.d-icon-badge {
  position: absolute; top: 4px; right: 12px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px;
  background: #fa5151; color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.4);
}

/* 5. Windows 底部任务栏 & 开始菜单 */
.taskbar {
  position: fixed; left: 0; right: 0; bottom: 0; height: 44px; z-index: 5000;
  background: var(--win-taskbar); backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 8px 0 4px; color: #f8fafc;
}
.tb-left { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; height: 100%; overflow-x: auto; scrollbar-width: none; }
.tb-left::-webkit-scrollbar { display: none; }
.tb-start-btn {
  width: 40px; height: 36px; border: none; border-radius: 4px; background: transparent;
  cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.tb-start-btn:hover, .tb-start-btn.active { background: rgba(255, 255, 255, 0.14); }
.win-squares { display: grid; grid-template-columns: repeat(2, 7px); gap: 2px; }
.win-squares span { width: 7px; height: 7px; background: #60a5fa; border-radius: 1px; }

.tb-windows { display: flex; align-items: center; gap: 4px; height: 100%; }
.tb-app-btn {
  height: 36px; max-width: 175px; padding: 0 11px; border: none; border-radius: 4px;
  background: rgba(255,255,255,0.06); color: #e2e8f0;
  font-size: 12px; cursor: pointer; display: flex; align-items: center; gap: 7px;
  position: relative; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border-bottom: 2px solid transparent;
}
.tb-app-btn:hover { background: rgba(255,255,255,0.14); }
.tb-app-btn.focused { background: rgba(255,255,255,0.18); border-bottom-color: #60a5fa; color: #fff; }
.tb-app-btn.minimized { opacity: 0.72; }
.tb-app-btn.flashing { animation: wxFlash 1.1s infinite; }
@keyframes wxFlash {
  0%, 100% { background: rgba(249, 115, 22, 0.72); color: #fff; }
  50% { background: rgba(255, 255, 255, 0.12); }
}

.tb-tray { display: flex; align-items: center; gap: 6px; flex-shrink: 0; font-size: 12px; }
.tb-tray-item { padding: 4px 7px; border-radius: 4px; color: #cbd5e1; white-space: nowrap; }
.tb-tray-item.eerie-net { color: #fca5a5; font-family: var(--font-mono); font-weight: 700; }
.tb-tray-btn {
  border: none; background: transparent; color: #f8fafc; font-size: 15px;
  width: 30px; height: 32px; border-radius: 4px; cursor: pointer;
}
.tb-tray-btn:hover { background: rgba(255,255,255,0.14); }
.tb-clock-box { text-align: right; line-height: 1.2; padding: 2px 7px; border-radius: 4px; font-family: var(--font-ui); font-size: 11.5px; }
body.act-4 .tb-clock-box { color: #fca5a5; }

/* 开始菜单 */
.start-menu {
  position: fixed; left: 8px; bottom: 52px; z-index: 6000;
  width: 332px; max-width: calc(100vw - 16px);
  background: rgba(22, 27, 36, 0.96); backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.16); border-radius: 8px;
  color: #f1f5f9; box-shadow: 0 18px 46px rgba(0,0,0,0.55);
  overflow: hidden;
}
.start-header { padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.start-user { display: flex; align-items: center; gap: 11px; }
.start-ava {
  width: 36px; height: 36px; border-radius: 50%; background: #2563eb;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.start-section-title { font-size: 11.5px; color: #94a3b8; padding: 10px 16px 6px; font-weight: 600; }
.start-app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 4px 12px 10px; }
.start-app-tile {
  border: none; background: rgba(255,255,255,0.05); border-radius: 6px;
  padding: 9px 4px; color: #e2e8f0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11px;
}
.start-app-tile:hover { background: rgba(255,255,255,0.14); }
.start-sys-list { display: flex; flex-direction: column; padding: 4px 10px 12px; gap: 4px; }
.start-sys-item {
  width: 100%; border: none; background: transparent; color: #e2e8f0;
  padding: 8px 10px; border-radius: 5px; cursor: pointer; font-size: 12.5px;
  display: flex; align-items: center; justify-content: space-between;
}
.start-sys-item:hover:not(:disabled) { background: rgba(255,255,255,0.1); }
.start-sys-item:disabled { opacity: 0.42; cursor: not-allowed; }
.start-sys-item.danger { color: #fca5a5; }
.start-pill { font-size: 11px; padding: 1px 7px; border-radius: 10px; background: #1d4ed8; color: #fff; font-family: var(--font-mono); }
.start-pill.muted { background: rgba(255,255,255,0.12); color: #cbd5e1; }
.start-pill.danger { background: #991b1b; }

/* 6. 浮动 OS 窗口框架 */
.window-layer { position: fixed; inset: 0 0 44px 0; pointer-events: none; z-index: 100; }
.os-win {
  position: absolute; pointer-events: auto;
  background: #ffffff; border: 1px solid rgba(15, 23, 42, 0.35);
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.44);
  display: flex; flex-direction: column;
  min-width: 320px; min-height: 260px;
}
.os-win.maximized {
  left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important;
  border-radius: 0;
}
.os-win.minimized { display: none; }
.os-win.dark-win { background: #111827; border-color: #334155; color: #e5e7eb; }
.os-win-titlebar {
  height: 34px; background: #f3f4f6; border-bottom: 1px solid #e5e7eb;
  display: flex; align-items: center; justify-content: space-between;
  padding-left: 11px; flex-shrink: 0; cursor: grab;
}
.os-win-titlebar:active { cursor: grabbing; }
.os-win.dark-win .os-win-titlebar { background: #1e293b; border-bottom-color: #334155; color: #f1f5f9; }
.os-win-title { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.os-win-ctrls { display: flex; height: 100%; flex-shrink: 0; }
.win-ctrl-btn {
  width: 42px; height: 100%; border: none; background: transparent; color: inherit;
  font-size: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.win-ctrl-btn:hover { background: rgba(0, 0, 0, 0.08); }
.os-win.dark-win .win-ctrl-btn:hover { background: rgba(255, 255, 255, 0.12); }
.win-ctrl-btn.close:hover { background: #e81123; color: #fff; }
.os-win-body { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }

/* 7. 真实图像附件槽位（无假图，放入真实图片自动加载） */
.photo-slot {
  margin: 10px 0; border: 1px solid #cbd5e1; border-radius: 5px;
  background: #0f172a; color: #cbd5e1; overflow: hidden;
  font-family: var(--font-ui);
}
.photo-slot.photo-raw { margin: 4px 0; border-color: rgba(0,0,0,0.12); background: #000; }
.photo-slot img { display: block; width: 100%; max-height: 360px; object-fit: contain; background: #05080d; }
.photo-slot.photo-raw img { max-height: 320px; object-fit: cover; }
.photo-slot-fallback {
  padding: 20px 16px; text-align: center;
  background: repeating-linear-gradient(45deg, #0d1420, #0d1420 12px, #111a29 12px, #111a29 24px);
}
.photo-slot-tag {
  display: inline-block; font-family: var(--font-mono); font-size: 11px;
  background: rgba(59, 130, 246, 0.18); color: #93c5fd; border: 1px solid rgba(96, 165, 250, 0.35);
  padding: 2px 8px; border-radius: 3px; margin-bottom: 8px;
}
.photo-slot-title { font-size: 13.5px; font-weight: 600; color: #f1f5f9; margin-bottom: 5px; }
.photo-slot-desc { font-size: 12px; color: #94a3b8; line-height: 1.6; max-width: 520px; margin: 0 auto; }
.photo-slot-cap {
  padding: 7px 11px; background: #1e293b; border-top: 1px solid #334155;
  font-size: 11.5px; color: #94a3b8; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap;
}

/* 8. 文件资源管理器 (Explorer) */
.exp-shell { display: flex; flex-direction: column; height: 100%; background: #fff; }
.exp-toolbar {
  padding: 7px 12px; background: #f8fafc; border-bottom: 1px solid #e2e8f0;
  display: flex; align-items: center; gap: 8px; font-size: 12.5px;
}
.exp-path {
  flex: 1; background: #fff; border: 1px solid #cbd5e1; border-radius: 3px;
  padding: 4px 10px; font-family: var(--font-mono); font-size: 12px; color: #334155;
}
.exp-main { flex: 1; min-height: 0; display: flex; }
.exp-sidebar {
  width: 175px; background: #f8fafc; border-right: 1px solid #e2e8f0;
  padding: 8px 6px; overflow-y: auto; flex-shrink: 0;
}
.exp-nav-item {
  width: 100%; border: none; background: transparent; text-align: left;
  padding: 7px 10px; border-radius: 4px; font-size: 12.5px; color: #334155;
  cursor: pointer; display: flex; align-items: center; gap: 7px;
}
.exp-nav-item:hover { background: #e2e8f0; }
.exp-nav-item.active { background: #dbeafe; color: #1d4ed8; font-weight: 600; }
.exp-files { flex: 1; overflow-y: auto; padding: 6px 12px; }
.exp-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.exp-table th { text-align: left; padding: 7px 8px; border-bottom: 1px solid #e2e8f0; color: #64748b; font-weight: 600; }
.exp-table td { padding: 8px; border-bottom: 1px solid #f1f5f9; }
.exp-row { cursor: pointer; }
.exp-row:hover { background: #eff6ff; }
.exp-row.eerie td:first-child { color: #b91c1c; font-weight: 600; }

/* 9. 高度拟真 PC 微信三栏界面 */
.wx-shell { display: flex; height: 100%; background: var(--wx-chat); }
.wx-rail {
  width: 54px; background: var(--wx-rail); display: flex; flex-direction: column;
  align-items: center; padding: 14px 0; gap: 18px; flex-shrink: 0;
}
.wx-rail-me {
  width: 34px; height: 34px; border-radius: 4px; background: linear-gradient(135deg, #2563eb, #1e40af);
  color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center;
}
.wx-rail-ico { font-size: 19px; opacity: 0.65; color: #e5e5e5; }
.wx-rail-ico.active { opacity: 1; color: #07c160; }

.wx-contacts {
  width: 244px; background: var(--wx-list); border-right: 1px solid #d6d6d6;
  display: flex; flex-direction: column; flex-shrink: 0;
}
.wx-search-bar { padding: 10px 10px 8px; background: #f7f7f7; border-bottom: 1px solid #e5e5e5; }
.wx-search-box {
  width: 100%; height: 26px; background: #e2e2e2; border: none; border-radius: 4px;
  padding: 0 9px; font-size: 12px; color: #333; outline: none;
}
.wx-contact-list { flex: 1; overflow-y: auto; }
.wx-contact-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 11px;
  cursor: pointer; border-bottom: 0.5px solid rgba(0,0,0,0.04); position: relative;
}
.wx-contact-item:hover { background: #dcdbd9; }
.wx-contact-item.active { background: var(--wx-list-active); }
.wx-ava {
  width: 40px; height: 40px; border-radius: 4px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 15px; position: relative;
}
.wx-ava-sm { width: 34px; height: 34px; font-size: 13px; }
.wx-unread-dot {
  position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px;
  padding: 0 4px; border-radius: 99px; background: #fa5151; color: #fff;
  font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.wx-c-meta { flex: 1; min-width: 0; }
.wx-c-top { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.wx-c-name { font-size: 13.5px; color: #111; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wx-c-time { font-size: 10.5px; color: #999; flex-shrink: 0; }
.wx-c-last { font-size: 11.5px; color: #888; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.wx-chat-area { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--wx-chat); }
.wx-chat-head {
  height: 48px; padding: 0 18px; border-bottom: 1px solid #e2e2e2;
  display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.wx-chat-title { font-size: 15.5px; font-weight: 600; color: #111; }
.wx-chat-sub { font-size: 11.5px; color: #7f7f7f; }
.wx-mobile-back {
  display: none; align-items: center; gap: 2px; border: 1px solid #d1d5db;
  background: #ffffff; color: #111; border-radius: 5px; padding: 3px 9px;
  font-size: 13px; cursor: pointer; flex-shrink: 0;
}
.wx-chat-msgs {
  flex: 1; overflow-y: auto; padding: 14px 18px;
  display: flex; flex-direction: column; gap: 12px;
}
.wx-time-pill {
  align-self: center; font-size: 11px; color: #999;
  background: rgba(0,0,0,0.045); padding: 2px 9px; border-radius: 3px;
}
.wx-msg-row { display: flex; align-items: flex-start; gap: 9px; max-width: 82%; }
.wx-msg-row.me { align-self: flex-end; flex-direction: row-reverse; }
.wx-msg-row.them { align-self: flex-start; }
.wx-sender-name { font-size: 11px; color: #888; margin-bottom: 3px; }
.wx-bubble {
  position: relative; padding: 9px 12px; border-radius: 5px;
  font-size: 13.5px; line-height: 1.55; color: #111; word-break: break-word; white-space: pre-line;
}
.wx-msg-row.them .wx-bubble { background: #fff; border: 0.5px solid #e5e5e5; }
.wx-msg-row.them .wx-bubble::before {
  content: ""; position: absolute; left: -6px; top: 11px;
  border-width: 5px 6px 5px 0; border-style: solid; border-color: transparent #fff transparent transparent;
}
.wx-msg-row.me .wx-bubble { background: var(--wx-green); }
.wx-msg-row.me .wx-bubble::before {
  content: ""; position: absolute; right: -6px; top: 11px;
  border-width: 5px 0 5px 6px; border-style: solid; border-color: transparent transparent transparent var(--wx-green);
}

/* 微信特殊卡片（转账、文件、位置、语音、文章链接） */
.wx-transfer-card {
  width: 228px; border-radius: 5px; overflow: hidden; background: #fa9d3b; color: #fff;
}
.wx-transfer-top { padding: 11px 12px; display: flex; align-items: center; gap: 10px; }
.wx-transfer-bot { background: #fff; color: #888; font-size: 11px; padding: 4px 12px; }
.wx-file-card {
  width: 240px; background: #fff; border: 1px solid #e2e2e2; border-radius: 5px;
  padding: 10px 12px; cursor: pointer; display: flex; align-items: center; gap: 10px;
}
.wx-file-card:hover { background: #f8fafc; border-color: #93c5fd; }
.wx-loc-card {
  width: 235px; background: #fff; border: 1px solid #dcdcdc; border-radius: 5px; overflow: hidden; cursor: pointer;
}
.wx-loc-body { padding: 8px 10px; }
.wx-loc-map {
  height: 76px; background: #0f2438; color: #93c5fd; font-family: var(--font-mono); font-size: 11px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.wx-voice-btn {
  display: inline-flex; align-items: center; gap: 10px; border: none; background: transparent;
  cursor: pointer; font-size: 13.5px; color: #111; padding: 0; min-width: 110px;
}
.wx-voice-trans { margin-top: 6px; padding-top: 5px; border-top: 1px dashed #e2e8f0; font-size: 12px; color: #7f1d1d; }

.wx-composer {
  border-top: 1px solid #e2e2e2; background: #f5f5f5; display: flex; flex-direction: column; flex-shrink: 0;
}
.wx-reply-options {
  padding: 6px 12px; display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid #ebebeb; background: #f9f9f9;
}
.wx-reply-chip {
  border: 1px solid #d1d5db; background: #fff; color: #374151;
  border-radius: 14px; padding: 4px 10px; font-size: 12px; cursor: pointer;
}
.wx-reply-chip:hover { border-color: #07c160; color: #066e38; background: #f0fdf4; }
.wx-input-row { display: flex; align-items: flex-end; gap: 8px; padding: 8px 12px 10px; }
.wx-textarea {
  flex: 1; height: 48px; border: none; background: transparent; resize: none;
  outline: none; font-size: 13.5px; font-family: var(--font-ui); color: #111;
}
.wx-send-btn {
  padding: 6px 18px; border: none; border-radius: 4px; background: #e9e9e9; color: #07c160;
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.wx-send-btn:hover { background: #07c160; color: #fff; }

/* 微信来电弹窗 */
.wx-call-overlay {
  position: fixed; right: 24px; top: 24px; z-index: 7500;
}
.wx-call-card {
  width: 268px; background: #1e2229; color: #fff; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14); padding: 20px 18px;
  box-shadow: 0 20px 48px rgba(0,0,0,0.65); text-align: center;
}
.wx-call-ava {
  width: 58px; height: 58px; border-radius: 8px; margin: 0 auto 10px;
  background: #db2777; display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700;
}
.wx-call-name { font-size: 17px; font-weight: 600; }
.wx-call-status { font-size: 12.5px; color: #94a3b8; margin: 5px 0 16px; }
.wx-call-actions { display: flex; justify-content: center; gap: 16px; }
.wx-call-btn {
  padding: 8px 20px; border: none; border-radius: 20px; font-size: 13px; font-weight: 600; cursor: pointer; color: #fff;
}
.wx-call-btn.decline { background: #ef4444; }
.wx-call-btn.accept { background: #07c160; }

/* 10. Chrome 多标签真实浏览器 */
.chrome-shell { display: flex; flex-direction: column; height: 100%; background: #fff; }
.chrome-tabs {
  height: 36px; background: #dee1e6; display: flex; align-items: flex-end;
  padding: 4px 8px 0; gap: 3px; overflow-x: auto; flex-shrink: 0;
}
.chrome-tab {
  height: 30px; min-width: 110px; max-width: 195px; padding: 0 10px;
  border-radius: 8px 8px 0 0; background: transparent; color: #4b5563;
  font-size: 12px; display: flex; align-items: center; justify-content: space-between; gap: 6px;
  cursor: pointer; flex-shrink: 0;
}
.chrome-tab:hover { background: rgba(255,255,255,0.45); }
.chrome-tab.active { background: #ffffff; color: #111827; font-weight: 500; box-shadow: 0 -1px 4px rgba(0,0,0,0.06); }
.chrome-tab-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chrome-tab-close { border: none; background: transparent; color: #6b7280; cursor: pointer; font-size: 13px; padding: 0 2px; border-radius: 50%; }
.chrome-tab-close:hover { background: #e5e7eb; color: #111; }
.chrome-new-tab {
  width: 26px; height: 26px; margin-bottom: 2px; border: none; border-radius: 50%;
  background: transparent; color: #374151; font-size: 17px; cursor: pointer; flex-shrink: 0;
}
.chrome-new-tab:hover { background: rgba(0,0,0,0.08); }

.chrome-nav {
  height: 38px; background: #ffffff; border-bottom: 1px solid #e5e7eb;
  display: flex; align-items: center; gap: 6px; padding: 0 10px; flex-shrink: 0;
}
.ch-btn {
  width: 28px; height: 28px; border: none; border-radius: 50%; background: transparent;
  color: #4b5563; cursor: pointer; font-size: 14px;
}
.ch-btn:hover { background: #f1f3f4; }
.ch-url-form { flex: 1; display: flex; }
.ch-url-input {
  width: 100%; height: 28px; border: 1px solid #dadce0; border-radius: 15px;
  background: #f1f3f4; padding: 0 13px; font-size: 12.5px; font-family: var(--font-mono);
  color: #202124; outline: none;
}
.ch-url-input:focus { background: #fff; border-color: #1a73e8; box-shadow: 0 0 0 2px rgba(26,115,232,0.18); }

.chrome-bookmarks {
  background: #ffffff; border-bottom: 1px solid #e5e7eb; padding: 4px 10px;
  display: flex; align-items: center; gap: 6px; overflow-x: auto; flex-shrink: 0; scrollbar-width: none;
}
.ch-bm {
  border: none; background: transparent; padding: 3px 8px; border-radius: 12px;
  font-size: 11.5px; color: #374151; cursor: pointer; white-space: nowrap;
}
.ch-bm:hover { background: #f1f3f4; }
.ch-bm.legacy { color: #1d4ed8; font-family: var(--font-serif); font-weight: 600; }

.chrome-page { flex: 1; overflow-y: auto; background: #f8fafc; user-select: text; }

/* 站点样式 A：千度校内/全网搜索引擎 */
.search-home { max-width: 640px; margin: 48px auto; padding: 0 18px; text-align: center; }
.search-logo { font-size: 32px; font-weight: 700; color: #1d4ed8; letter-spacing: 3px; margin-bottom: 18px; }
.search-logo span { color: #dc2626; }
.search-bar-big { display: flex; border: 2px solid #2563eb; border-radius: 8px; overflow: hidden; background: #fff; }
.search-bar-big input { flex: 1; height: 42px; border: none; padding: 0 14px; font-size: 14.5px; outline: none; }
.search-bar-big button { width: 96px; border: none; background: #2563eb; color: #fff; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.search-results-wrap { max-width: 760px; margin: 18px auto 40px; padding: 0 18px; text-align: left; }
.sr-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 6px; padding: 14px 16px; margin-bottom: 12px; }
.sr-url { font-size: 11.5px; color: #15803d; font-family: var(--font-mono); margin-bottom: 3px; }
.sr-title { font-size: 15.5px; color: #1a0dab; font-weight: 600; cursor: pointer; text-decoration: none; background: none; border: none; padding: 0; text-align: left; }
.sr-title:hover { text-decoration: underline; }
.sr-desc { font-size: 13px; color: #475569; line-height: 1.65; margin-top: 5px; }

/* 站点样式 B：2026 东海理工智慧校园门户 */
.edu-header { background: linear-gradient(135deg, #0b3b75, #144f96); color: #fff; padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.edu-brand-seal {
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.65);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-weight: 700; font-size: 13px; overflow: hidden; flex-shrink: 0;
}
.edu-brand-seal img { width: 100%; height: 100%; object-fit: cover; }
.edu-subnav { background: #fff; border-bottom: 1px solid #e2e8f0; display: flex; padding: 0 16px; gap: 4px; overflow-x: auto; }
.edu-subtab { border: none; background: transparent; padding: 10px 14px; font-size: 13px; color: #475569; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.edu-subtab.active { color: #0b3b75; border-bottom-color: #0b3b75; font-weight: 700; }
.edu-body { max-width: 980px; margin: 16px auto 34px; padding: 0 16px; }
.edu-alert { border: 1.5px solid #fca5a5; background: #fff5f5; border-radius: 6px; padding: 13px 15px; margin-bottom: 14px; font-size: 13.5px; line-height: 1.75; color: #450a0a; }
.edu-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 6px; margin-bottom: 14px; overflow: hidden; }
.edu-card-h { padding: 10px 15px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; font-weight: 700; color: #0b3b75; font-size: 13.5px; display: flex; justify-content: space-between; }
.edu-card-b { padding: 12px 15px; font-size: 13px; line-height: 1.7; }
.edu-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.edu-tbl th, .edu-tbl td { padding: 8px 10px; border-bottom: 1px solid #e2e8f0; text-align: left; }
.edu-tbl th { background: #f8fafc; color: #475569; }
.edu-tbl tr.anom { background: #fef2f2; color: #991b1b; font-weight: 600; }

/* 站点样式 C：「明月畔」校内社区论坛（现代高校BBS双栏结构 + 醒目站内私信入口） */
.bbs-page { min-height: 100%; background: #f1f5f9; color: #1f2937; }
.bbs-top { background: #1e293b; color: #f8fafc; padding: 11px 18px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.bbs-search { display: flex; align-items: center; gap: 6px; flex: 1; max-width: 310px; min-width: 180px; }
.bbs-search input {
  flex: 1; min-width: 0; padding: 5px 10px; border-radius: 4px;
  border: 1px solid rgba(148,163,184,0.35); background: rgba(15,23,42,0.55);
  color: #f8fafc; font-size: 12.5px; outline: none;
}
.bbs-search input::placeholder { color: #94a3b8; }
.bbs-search input:focus { border-color: #60a5fa; background: rgba(15,23,42,0.85); }
.bbs-nav-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.bbs-btn { border: 1px solid rgba(255,255,255,0.22); background: rgba(255,255,255,0.08); color: #f1f5f9; padding: 4px 11px; border-radius: 4px; font-size: 12px; cursor: pointer; }
.bbs-btn.active, .bbs-btn:hover { background: #2563eb; border-color: #3b82f6; }

/* 醒目白色二级主导航栏（论坛广场 / 站内私信 / 历史归档） */
.bbs-subnav {
  background: #ffffff; border-bottom: 1px solid #e2e8f0;
  padding: 0 18px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
}
.bbs-subtab {
  position: relative; border: none; background: transparent; color: #475569;
  padding: 10px 14px; font-size: 13.5px; font-weight: 600; cursor: pointer;
  border-bottom: 2.5px solid transparent; display: inline-flex; align-items: center; gap: 6px;
}
.bbs-subtab:hover { color: #0f172a; background: #f8fafc; }
.bbs-subtab.active { color: #1d4ed8; border-bottom-color: #2563eb; }
.bbs-subtab.dm-attn { color: #b91c1c; }
.bbs-subtab.dm-attn.active { color: #b91c1c; border-bottom-color: #dc2626; }
.bbs-dm-badge {
  background: #dc2626; color: #fff; font-size: 11px; font-weight: 700;
  padding: 1px 7px; border-radius: 99px; line-height: 1.5;
}
.bbs-dm-badge.ok { background: #16a34a; }

.bbs-wrap { max-width: 980px; margin: 14px auto 34px; padding: 0 14px; }
.bbs-layout { display: grid; grid-template-columns: minmax(0, 1fr) 236px; gap: 14px; align-items: start; }
.bbs-main { min-width: 0; }
.bbs-side { display: flex; flex-direction: column; gap: 12px; }
.bbs-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 6px; padding: 13px 14px; }
.bbs-card-title { font-size: 13px; font-weight: 700; color: #0f172a; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; }
.bbs-user-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.bbs-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: #2563eb; color: #fff;
  font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.bbs-dm-card {
  width: 100%; text-align: left; border-radius: 6px; padding: 10px 11px; cursor: pointer;
  border: 1px solid #fecaca; background: #fef2f2; color: #7f1d1d; transition: background 0.15s;
}
.bbs-dm-card:hover { background: #fee2e2; }
.bbs-dm-card.unlocked { border-color: #bfdbfe; background: #eff6ff; color: #1e3a8a; }
.bbs-dm-card.unlocked:hover { background: #dbeafe; }
.bbs-hot-item {
  display: flex; align-items: baseline; gap: 7px; padding: 6px 4px;
  border-bottom: 1px dashed #eef2f7; cursor: pointer; font-size: 12.5px; color: #334155;
}
.bbs-hot-item:last-child { border-bottom: none; }
.bbs-hot-item:hover { color: #1d4ed8; }
.bbs-hot-rank {
  display: inline-block; width: 17px; height: 17px; line-height: 17px; text-align: center;
  border-radius: 3px; font-size: 11px; font-weight: 700; flex-shrink: 0; background: #e2e8f0; color: #475569;
}
.bbs-hot-rank.top { background: #fee2e2; color: #b91c1c; }

.bbs-board-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 11px; }
.bbs-pill { border: 1px solid #cbd5e1; background: #fff; color: #475569; padding: 4px 10px; border-radius: 14px; font-size: 12px; cursor: pointer; }
.bbs-pill.active { background: #1e293b; color: #fff; border-color: #1e293b; }
.bbs-list { background: #fff; border: 1px solid #e2e8f0; border-radius: 6px; overflow: hidden; }
.bbs-row {
  padding: 11px 14px; border-bottom: 1px solid #f1f5f9; cursor: pointer;
  display: flex; flex-direction: column; gap: 5px;
}
.bbs-row:hover { background: #f8fafc; }
.bbs-row.pinned { background: #fffafa; }
.bbs-row-top { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.bbs-row-meta { font-size: 11.5px; color: #64748b; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.bbs-tag { font-size: 11px; padding: 1px 6px; border-radius: 3px; background: #e2e8f0; color: #334155; white-space: nowrap; flex-shrink: 0; }
.bbs-tag.pin { background: #fee2e2; color: #991b1b; font-weight: 700; }
.bbs-tag.arch { background: #fef3c7; color: #92400e; }
.bbs-tag.study { background: #dbeafe; color: #1e40af; }
.bbs-tag.pic { background: #dcfce7; color: #166534; }
.bbs-thread-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 6px; overflow: hidden; }
.bbs-floor { padding: 14px 18px; border-bottom: 1px solid #eef2f7; }
.bbs-floor-meta { font-size: 12px; color: #64748b; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.bbs-floor-body { font-size: 13.5px; line-height: 1.85; color: #1f2937; white-space: pre-line; }
.bbs-dm-grid { display: grid; grid-template-columns: 220px 1fr; background: #fff; border: 1px solid #e2e8f0; border-radius: 6px; min-height: 410px; overflow: hidden; }
.bbs-dm-list { border-right: 1px solid #e2e8f0; background: #f8fafc; }
.bbs-dm-item { padding: 11px 13px; border-bottom: 1px solid #e5e7eb; cursor: pointer; font-size: 13px; }
.bbs-dm-item.active { background: #dbeafe; font-weight: 600; color: #1e3a8a; }

/* 站点样式 D：1999 校园旧内网档案馆 (纯正 Web 1.0) */
.w99-page { min-height: 100%; background: #d6d2c4; color: #111; font-family: var(--font-serif); padding: 14px 12px 32px; }
.w99-box { max-width: 880px; margin: 0 auto; background: #f5f3ec; border: 2px outset #fff; box-shadow: 2px 2px 0 #777; }
.w99-bar { background: #003399; color: #fff; padding: 10px 15px; border-bottom: 3px double #ffcc00; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.w99-marquee { background: #ffffcc; color: #990000; padding: 4px 10px; font-size: 12px; border-bottom: 1px solid #999; }
.w99-btn { padding: 3px 10px; background: #d4d0c8; border: 2px outset #fff; font-size: 12px; font-family: var(--font-serif); cursor: pointer; color: #000; }
.w99-btn:active { border-style: inset; }
.w99-btn.active { background: #003399; color: #fff; }
.w99-tbl { width: 100%; border-collapse: collapse; background: #fff; font-size: 13px; margin: 10px 0; }
.w99-tbl th, .w99-tbl td { border: 1px solid #808080; padding: 7px 9px; text-align: left; }
.w99-tbl th { background: #c6d4e6; color: #002266; }
.hidden-white-note { color: #ffffff; background: transparent; display: block; padding: 5px 8px; margin-top: 8px; font-size: 12.5px; }
.neg-on { background: #0f172a !important; color: #e2e8f0 !important; }
.neg-on .hidden-white-note { color: #fecaca !important; background: #450a0a !important; border-left: 3px solid #ef4444; font-weight: 600; }

/* 站点样式 E：图书馆 4F 选座 & 馆藏检索 */
.lib-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; flex: 1; }
.lib-seat {
  height: 40px; border: 1px solid #cbd5e1; border-radius: 4px; background: #f8fafc;
  font-family: var(--font-mono); font-size: 11px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.lib-seat.mine { background: #dbeafe; border-color: #2563eb; color: #1e40af; font-weight: 700; }
.lib-seat.occ { background: #fee2e2; border-color: #f87171; color: #991b1b; font-weight: 600; }
.lib-seat.s30 { background: #7f1d1d; border-color: #450a0a; color: #fecaca; font-weight: 700; }

/* 11. 真实多页 PDF 阅读器 (学《沂河往事》翻页试印稿质感!) */
.pdf-shell { display: flex; flex-direction: column; height: 100%; background: #525659; color: #f1f5f9; }
.pdf-toolbar {
  height: 40px; background: #323639; border-bottom: 1px solid #1f2224;
  padding: 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; flex-shrink: 0; flex-wrap: wrap;
}
.pdf-tool-btn {
  border: 1px solid #525659; background: #3f4448; color: #e5e7eb; padding: 3px 9px;
  border-radius: 3px; cursor: pointer; font-size: 12px;
}
.pdf-tool-btn:hover:not(:disabled) { background: #525659; }
.pdf-tool-btn.active { background: #1d4ed8; border-color: #60a5fa; color: #fff; }
.pdf-tool-btn:disabled { opacity: 0.4; cursor: default; }
.pdf-viewport { flex: 1; overflow-y: auto; padding: 20px 16px 32px; display: flex; justify-content: center; }
.pdf-sheet {
  width: 100%; max-width: 680px; min-height: 540px;
  background: #fbf9f2; color: #1c1917;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  padding: 30px 36px 26px; font-family: var(--font-serif);
  display: flex; flex-direction: column; justify-content: space-between;
  line-height: 1.95; font-size: 14.5px; user-select: text;
}
.pdf-sheet.neg-on { background: #0f172a; color: #e2e8f0; }
.pdf-sheet.neg-on .pdf-runhead, .pdf-sheet.neg-on .pdf-runfoot { color: #94a3b8; border-color: #334155; }
.pdf-sheet.neg-on .pdf-callout { background: #17253a !important; color: #dbeafe !important; border-color: #60a5fa !important; }
.pdf-runhead {
  font-size: 11.5px; color: #78716c; border-bottom: 1px solid #d6d3d1; padding-bottom: 6px; margin-bottom: 18px;
  display: flex; justify-content: space-between; font-family: var(--font-mono);
}
.pdf-runfoot {
  font-size: 11.5px; color: #78716c; border-top: 1px solid #d6d3d1; padding-top: 8px; margin-top: 22px;
  display: flex; justify-content: space-between; font-family: var(--font-mono);
}
.pdf-callout {
  background: #f3efe4; border-left: 3px solid #7f1d1d; padding: 10px 14px; margin: 12px 0; font-size: 13.5px;
}

/* 12. 记事本 (Notepad) */
.note-shell { display: flex; flex-direction: column; height: 100%; background: #fff; }
.note-menu { padding: 4px 10px; background: #f8fafc; border-bottom: 1px solid #e5e7eb; font-size: 12px; color: #475569; display: flex; justify-content: space-between; align-items: center; }
.note-area {
  flex: 1; border: none; outline: none; resize: none; padding: 12px 14px;
  font-family: var(--font-mono); font-size: 13.5px; line-height: 1.75; color: #111827; background: #fff;
}

/* 13. DH-NVR 东海安防监控客户端（含 CH03 突脸剧烈震动高能！） */
.nvr-shell { display: flex; flex-direction: column; height: 100%; background: #0a0f14; color: #d1d5db; font-family: var(--font-mono); }
.nvr-login {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center;
}
.nvr-login-box {
  width: 340px; max-width: 92%; background: #111827; border: 1px solid #334155; border-radius: 6px; padding: 20px; text-align: left;
}
.nvr-top { padding: 8px 14px; background: #111827; border-bottom: 1px solid #1f2937; display: flex; justify-content: space-between; align-items: center; font-size: 12px; flex-wrap: wrap; gap: 6px; }
.nvr-stage {
  flex: 1; min-height: 260px; position: relative; background: #030507; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.nvr-scanlines {
  position: absolute; inset: 0; pointer-events: none; z-index: 4;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.28) 0px, rgba(0,0,0,0.28) 1px, transparent 1px, transparent 3px);
}
.nvr-osd-tl { position: absolute; top: 12px; left: 14px; z-index: 5; font-size: 12px; color: #e2e8f0; text-shadow: 0 1px 4px #000; }
.nvr-osd-tr { position: absolute; top: 12px; right: 14px; z-index: 5; font-size: 12px; padding: 2px 7px; border-radius: 3px; background: rgba(0,0,0,0.65); }
.nvr-osd-tr.alert { background: #7f1d1d; color: #fecaca; font-weight: 700; }
.nvr-osd-bl { position: absolute; bottom: 12px; left: 14px; right: 14px; z-index: 5; font-size: 11.5px; color: #86efac; text-shadow: 0 1px 3px #000; }

/* 突脸高能动画：骤然放大 + 镜头剧烈震颤 + 高反差闪白 */
.nvr-scare-active { animation: scareShake 0.48s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes scareShake {
  0% { transform: scale(1.18) translate(0, 0); filter: brightness(2.4) contrast(2.2); }
  18% { transform: scale(1.12) translate(-11px, 7px); filter: brightness(1.6) contrast(1.8); }
  36% { transform: scale(1.15) translate(10px, -8px); filter: brightness(0.85) contrast(2.0); }
  54% { transform: scale(1.08) translate(-8px, -5px); }
  72% { transform: scale(1.05) translate(7px, 6px); }
  100% { transform: scale(1.02) translate(0, 0); filter: brightness(1.05) contrast(1.35); }
}
.nvr-face-frame {
  width: 100%; height: 100%; position: relative; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 44%, #262e36 0%, #090d11 58%, #020304 100%);
}
.nvr-face-frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.45); }
.nvr-face-placeholder {
  text-align: center; padding: 24px; max-width: 520px; z-index: 3;
  border: 2px solid rgba(239, 68, 68, 0.72); background: rgba(5, 8, 12, 0.86);
  box-shadow: 0 0 60px rgba(220, 38, 38, 0.35);
}
.nvr-controls { padding: 9px 14px; background: #111827; border-top: 1px solid #1f2937; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12px; }
.nvr-ch-btn { padding: 4px 10px; border: 1px solid #374151; background: #1f2937; color: #d1d5db; cursor: pointer; font-family: var(--font-mono); font-size: 11.5px; border-radius: 3px; }
.nvr-ch-btn.active { background: #1d4ed8; border-color: #60a5fa; color: #fff; }
.nvr-ch-btn.danger { border-color: #991b1b; color: #fca5a5; }

/* 14. PuTTY 302 终端 & 990417 伪装弹窗 */
.term-shell { display: flex; flex-direction: column; height: 100%; background: #040d07; color: #4ade80; font-family: var(--font-mono); padding: 14px; overflow-y: auto; }
.term-log { flex: 1; min-height: 180px; overflow-y: auto; font-size: 13px; line-height: 1.65; white-space: pre-wrap; margin-bottom: 10px; }
.term-err { color: #f87171; }
.term-warn { color: #fde047; }
.term-cyan { color: #7dd3fc; }
.term-cli { display: flex; gap: 8px; align-items: center; border-top: 1px solid #14532d; padding-top: 10px; }
.term-cli input { flex: 1; background: #020804; border: 1px solid #166534; color: #86efac; padding: 6px 10px; font-family: var(--font-mono); font-size: 13px; outline: none; }
.mirror-wiz {
  margin: 10px 0; background: #ece9d8; color: #111; border: 2px outset #fff;
  font-family: var(--font-ui); box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}
.mirror-wiz-bar { background: linear-gradient(90deg, #1d4ed8, #3b82f6); color: #fff; padding: 5px 10px; font-size: 12.5px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.mirror-wiz-body { padding: 12px 14px; font-size: 13px; line-height: 1.65; }
.mirror-blue-btn { background: linear-gradient(180deg, #2563eb, #1d4ed8); color: #fff; border: 2px outset #93c5fd; padding: 7px 16px; font-size: 13px; font-weight: 700; cursor: pointer; border-radius: 3px; }

/* 15. Windows 通知 Toast、通用弹窗与全屏结局演出 */
.toast-stack { position: fixed; right: 14px; bottom: 54px; z-index: 6500; display: flex; flex-direction: column; gap: 8px; max-width: 340px; }
.win-toast {
  background: rgba(24, 30, 41, 0.96); backdrop-filter: blur(18px); color: #f8fafc;
  border: 1px solid rgba(255,255,255,0.16); border-left: 3px solid #60a5fa;
  border-radius: 6px; padding: 11px 14px; cursor: pointer;
  box-shadow: 0 12px 30px rgba(0,0,0,0.48);
  animation: toastIn 0.25s ease;
}
.win-toast.wx { border-left-color: #07c160; }
.win-toast.danger { border-left-color: #ef4444; }
@keyframes toastIn { from { transform: translateX(30px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.toast-app { font-size: 11px; color: #94a3b8; margin-bottom: 3px; display: flex; justify-content: space-between; }
.toast-title { font-size: 13px; font-weight: 600; }
.toast-body { font-size: 12px; color: #cbd5e1; margin-top: 2px; line-height: 1.45; }

.modal-backdrop { position: fixed; inset: 0; z-index: 8000; background: rgba(7, 11, 20, 0.62); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-card { background: #fff; border-radius: 8px; width: 100%; max-width: 540px; max-height: 84vh; overflow-y: auto; box-shadow: 0 22px 54px rgba(0,0,0,0.45); }
.os-dialog-card { max-width: 420px; }
.modal-head { padding: 12px 16px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; font-weight: 700; font-size: 14px; color: #0f172a; display: flex; justify-content: space-between; align-items: center; }
.modal-close { border: none; background: transparent; font-size: 20px; cursor: pointer; color: #64748b; }
.modal-body { padding: 16px; }
.endings-list { display: flex; flex-direction: column; gap: 7px; }
.ending-row { padding: 9px 12px; border: 1px solid #e2e8f0; border-radius: 5px; background: #f8fafc; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; }
.ending-row.ok { background: #f0fdf4; border-color: #86efac; color: #14532d; font-weight: 600; }
.ending-row > span { white-space: nowrap; flex-shrink: 0; }

.btn-primary { background: #0b3b75; color: #fff; border: none; padding: 7px 14px; border-radius: 4px; font-size: 13px; cursor: pointer; font-weight: 500; }
.btn-primary:hover { background: #144f96; }
.btn-secondary { background: #fff; color: #1e293b; border: 1px solid #cbd5e1; padding: 6px 13px; border-radius: 4px; font-size: 13px; cursor: pointer; }
.btn-danger { background: #991b1b; color: #fff; border: none; padding: 7px 14px; border-radius: 4px; font-size: 13px; cursor: pointer; }

.ending-overlay { position: fixed; inset: 0; z-index: 9500; background: #05080d; color: #e2e8f0; overflow-y: auto; display: flex; align-items: center; justify-content: center; padding: 24px; }
.ending-stage { max-width: 720px; width: 100%; }
.red-doc { background: #fbf8f1; color: #1e293b; padding: 28px 30px; font-family: var(--font-serif); box-shadow: 0 20px 54px rgba(0,0,0,0.5); border: 1px solid #d6cfc2; }
.red-doc-h { text-align: center; color: #b91c1c; font-size: 21px; font-weight: 700; letter-spacing: 3px; border-bottom: 3px solid #b91c1c; padding-bottom: 10px; margin-bottom: 14px; }
.red-doc-p { font-size: 14.5px; line-height: 2; }
.zms-box { margin-top: 14px; padding: 12px 14px; background: #eef4fb; border: 1px solid #93c5fd; border-radius: 4px; display: flex; align-items: center; gap: 12px; font-family: var(--font-ui); }

/* 16. 手机竖屏与平板自适应（桌面图标两列，打开窗口自动贴合全屏，零横向溢出） */
@media (max-width: 768px) {
  .sticky-note-bezel { right: 12px; bottom: 42px; width: 175px; padding: 10px 11px; font-size: 11.5px; }
  .lock-time { font-size: 48px; }
  .desktop-icons { right: 10px; flex-direction: row; flex-wrap: wrap; align-content: flex-start; gap: 8px; }
  .d-icon { width: 76px; }
  .os-win {
    left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important;
    border-radius: 0 !important; min-width: 0;
  }
  .wx-rail { display: none; }
  .wx-contacts { width: 100%; }
  .wx-shell.mobile-chat-open .wx-contacts { display: none; }
  .wx-shell:not(.mobile-chat-open) .wx-chat-area { display: none; }
  .wx-mobile-back { display: inline-flex !important; }
  .exp-sidebar { width: 112px; }
  .bbs-layout { grid-template-columns: 1fr; }
  .bbs-dm-grid { grid-template-columns: 1fr; }
  .lib-grid { grid-template-columns: repeat(4, 1fr); }
  .tb-tray-item:first-child, .tb-ime { display: none; }
  .pdf-sheet { padding: 18px 16px; }
  .red-doc { padding: 18px 16px; }
}
