/* ============ 基础 ============ */
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; width: 100%; height: 100%;
  background: #000; overflow: hidden;
  font-family: "MS Sans Serif", "Tahoma", "SimSun", "宋体", sans-serif;
  font-size: 14px; color: #000;
  -webkit-font-smoothing: none;
  user-select: none;
}
button { font-family: inherit; }
.hidden { display: none !important; }
#viewport {
  position: fixed; inset: 0; overflow: hidden;
  background: #000;
  display: flex; align-items: center; justify-content: center;
}
#stage {
  position: relative; width: 1080px; height: 720px;
  transform-origin: center center;
  background: #008080;
  overflow: hidden;
  box-shadow: 0 0 0 1px #000, 0 0 60px rgba(0,0,0,.8);
  cursor: default;
}
img, svg { image-rendering: pixelated; }

/* ============ Win98 通用控件 ============ */
.window {
  background: #c0c0c0;
  border: 1px solid #000;
  box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 #808080,
              inset 2px 2px 0 #fff, inset -2px -2px 0 #404040;
  padding: 2px;
}
.titlebar {
  height: 22px; display: flex; align-items: center;
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff; font-weight: bold; font-size: 13px;
  padding: 0 3px; letter-spacing: .5px;
  border: 1px solid #000; box-shadow: inset 1px 1px 0 #4a7fd4;
}
.titlebar.inactive { background: linear-gradient(90deg, #808080, #b5b5b5); }
.tb-icon {
  width: 16px; height: 16px; line-height: 15px; text-align: center;
  background: #fff; color: #000080; font-size: 11px; font-weight: bold;
  margin-right: 5px; border: 1px solid #000; flex: none;
  font-family: "SimSun", "宋体", serif;
}
.tb-text { flex: 1; overflow: hidden; white-space: nowrap; }
.tb-buttons { display: flex; gap: 2px; }
.tb-btn {
  width: 18px; height: 16px; font-size: 11px; line-height: 1;
  background: #c0c0c0; border: 1px solid #000;
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #808080;
  padding: 0; cursor: pointer; font-weight: bold;
}
.tb-btn:active { box-shadow: inset -1px -1px 0 #fff, inset 1px 1px 0 #808080; }

.btn95 {
  background: #c0c0c0; border: 1px solid #000;
  box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 #808080,
              inset 2px 2px 0 #fff, inset -2px -2px 0 #404040;
  padding: 5px 12px; font-size: 13px; cursor: pointer; color: #000;
  min-width: 78px;
}
.btn95:hover { background: #c8c8c8; }
.btn95:active, .btn95.pressed { box-shadow: inset 2px 2px 0 #808080, inset -1px -1px 0 #fff; padding: 6px 11px 4px 13px; }
.btn95:disabled { color: #808080; text-shadow: 1px 1px 0 #fff; cursor: default; }
.btn95.tiny { min-width: 0; padding: 3px 8px; font-size: 12px; }
.btn95.tiny:active { padding: 4px 7px 2px 9px; }
.btn95:focus { outline: 1px dotted #000; outline-offset: -4px; }

.sunken {
  border: 1px solid #000;
  box-shadow: inset 1px 1px 0 #808080, inset -1px -1px 0 #fff,
              inset 2px 2px 0 #404040;
}
.raised {
  border: 1px solid #000;
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #808080;
}

/* ============ 开机画面 ============ */
#boot {
  position: absolute; inset: 0; z-index: 60;
  background: linear-gradient(180deg, #0a4d9e 0%, #2f8fe0 32%, #8fd0f5 66%, #cdeaff 100%);
  overflow: hidden; transition: opacity .6s;
}
.boot-cloud {
  position: absolute; background: rgba(255,255,255,.92);
  filter: blur(1px); border-radius: 50%;
  box-shadow: 0 0 40px 20px rgba(255,255,255,.55);
}
.boot-cloud.c1 { width: 320px; height: 90px; left: -60px; top: 120px; }
.boot-cloud.c2 { width: 420px; height: 110px; right: -80px; top: 330px; }
.boot-cloud.c3 { width: 260px; height: 70px; left: 30%; bottom: 40px; opacity: .8; }
.boot-logo {
  position: absolute; left: 0; right: 0; top: 210px; text-align: center;
  color: #fff; text-shadow: 2px 2px 0 rgba(0,0,0,.35);
}
.boot-win { font-family: "Arial", sans-serif; font-size: 32px; letter-spacing: 1px; }
.boot-win span {
  display: block; font-size: 62px; font-weight: bold; letter-spacing: -2px;
  background: linear-gradient(180deg, #fff 30%, #cfe6ff 60%, #6fa8d8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none; margin-top: -12px;
}
.boot-sub { font-family: "SimSun","宋体"; font-size: 18px; margin-top: 2px; letter-spacing: 8px; }
.boot-tip {
  position: absolute; left: 0; right: 0; bottom: 26px; text-align: center;
  color: #fff; font-size: 13px; letter-spacing: 2px; opacity: .9;
  animation: blink 1.2s steps(2) infinite;
}
@keyframes blink { 50% { opacity: .25; } }

/* ============ 桌面 ============ */
#desktop {
  position: absolute; inset: 0 0 28px 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(255,255,255,.10), transparent 32%),
    radial-gradient(circle at 78% 70%, rgba(0,0,0,.18), transparent 45%),
    #008080;
  overflow: hidden;
}
.desktop-icon {
  position: absolute; width: 86px; text-align: center; cursor: pointer;
  padding: 4px; color: #fff; font-size: 12px;
  text-shadow: 1px 1px 0 #000;
}
#icon-game { left: 34px; top: 26px; }
#icon-readme { left: 34px; top: 120px; }
.icon-img {
  width: 46px; height: 46px; margin: 0 auto 4px;
  display: flex; align-items: center; justify-content: center;
  font-family: "SimSun", serif; font-weight: bold; font-size: 22px;
  color: #fff; position: relative;
}
.icon-img.rivet {
  background: linear-gradient(160deg, #d24d4d, #8b1111);
  border: 2px solid #fff; box-shadow: inset 0 0 0 2px #7a0d0d, 2px 2px 0 rgba(0,0,0,.4);
}
.icon-img.paper {
  background: #f4f1e2; color: #26427a; border: 1px solid #000;
  box-shadow: 2px 2px 0 rgba(0,0,0,.35);
}
.icon-img.paper::before {
  content: ""; position: absolute; top: 0; right: 0;
  border-width: 0 12px 12px 0; border-style: solid;
  border-color: transparent #008080 transparent transparent;
}
.desktop-icon.selected .icon-img { filter: brightness(1.1); }
.desktop-icon.selected .icon-label { background: #000080; outline: 1px dotted #fff; }
.desktop-date {
  position: absolute; right: 16px; top: 14px; color: #d8f4f4;
  font-size: 12px; text-shadow: 1px 1px 0 #004040;
}

/* ============ 任务栏 ============ */
#taskbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 28px;
  background: #c0c0c0; border-top: 1px solid #dfdfdf;
  box-shadow: inset 0 1px 0 #fff;
  display: flex; align-items: center; padding: 2px 3px; gap: 4px; z-index: 40;
}
#startbtn {
  height: 22px; display: flex; align-items: center; gap: 5px;
  font-weight: bold; font-size: 13px; padding: 0 8px 0 4px;
  background: #c0c0c0; border: 1px solid #000;
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #808080;
  cursor: pointer;
}
#startbtn:active, #startbtn.open { box-shadow: inset 1px 1px 0 #808080, inset -1px -1px 0 #fff; }
.start-flag {
  width: 16px; height: 16px; display: inline-block;
  background:
    linear-gradient(180deg, #ff3b3b 0 50%, transparent 50%),
    linear-gradient(90deg, #3b7bff 0 50%, transparent 50%),
    linear-gradient(180deg, #3bff6b 0 50%, transparent 50%);
  border: 1px solid #000; transform: skewY(-8deg);
}
#taskitems { flex: 1; display: flex; gap: 3px; overflow: hidden; }
.taskitem {
  height: 22px; min-width: 120px; max-width: 220px; display: flex; align-items: center;
  padding: 0 8px; font-size: 12px; background: #c0c0c0; border: 1px solid #000;
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #808080;
  overflow: hidden; white-space: nowrap; cursor: pointer;
}
.taskitem.active { box-shadow: inset 1px 1px 0 #808080, inset -1px -1px 0 #fff; background: #d0d0d0; }
#clock {
  font-size: 12px; padding: 3px 8px; border: 1px solid #000;
  box-shadow: inset 1px 1px 0 #808080, inset -1px -1px 0 #fff;
  background: #c0c0c0; min-width: 58px; text-align: center;
}

/* 开始菜单 */
#startmenu {
  position: absolute; left: 2px; bottom: 28px; width: 218px; z-index: 70;
  display: flex; padding: 2px; background: #c0c0c0;
}
.start-side {
  width: 26px; background: linear-gradient(180deg, #000080, #1084d0);
  color: #fff; font-weight: bold; font-size: 13px;
  writing-mode: vertical-rl; transform: rotate(180deg);
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 1px; padding: 6px 0;
}
.start-side span { font-size: 18px; }
.start-list { flex: 1; padding: 2px; }
.start-item {
  padding: 6px 10px; font-size: 13px; cursor: pointer;
  display: flex; flex-direction: column;
}
.start-item:hover { background: #000080; color: #fff; }
.start-item span { font-size: 11px; opacity: .7; }
.start-sep { height: 0; border-top: 1px solid #808080; border-bottom: 1px solid #fff; margin: 3px 2px; }

/* ============ 游戏窗口 ============ */
#gamewin {
  position: absolute; left: 10px; top: 8px; width: 1060px; height: 676px;
  z-index: 10; display: flex; flex-direction: column;
  transition: opacity .25s;
}
#gamewin.minimized { display: none; }
#gamebody {
  position: relative; flex: 1; overflow: hidden; background: #000;
  border: 1px solid #000;
}
#scene { position: absolute; inset: 0; overflow: hidden; background: #111; }
#scene-art, #scene-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
#scene-art svg { display: block; }
#scene-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.15), transparent 30%, transparent 60%, rgba(0,0,0,.5));
}
#scene::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: repeating-linear-gradient(180deg, rgba(0,0,0,.07) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply; opacity: .55;
}
#portrait {
  position: absolute; left: 26px; bottom: 208px; width: 270px; height: 356px;
  z-index: 2; filter: drop-shadow(4px 6px 0 rgba(0,0,0,.25));
  transition: opacity .18s, transform .18s;
  pointer-events: none;
}
#portrait svg { width: 100%; height: 100%; }
#portrait.enter { animation: portraitIn .22s steps(4); }
@keyframes portraitIn { from { transform: translateX(-14px); opacity: .2; } to { transform: none; opacity: 1; } }

#chaptertag {
  position: absolute; left: 0; top: 0; z-index: 5;
  background: #000080; color: #fff; font-size: 12px; letter-spacing: 1px;
  padding: 3px 14px 3px 10px;
  border-right: 1px solid #000; border-bottom: 1px solid #000;
  box-shadow: 1px 1px 0 rgba(0,0,0,.4);
}
#scene-note {
  position: absolute; right: 12px; top: 44px; z-index: 4;
  max-width: 250px; font-size: 12px; line-height: 1.6; color: #e8e8d8;
  text-shadow: 1px 1px 2px #000; text-align: right; pointer-events: none;
}

#hud {
  position: absolute; left: 0; right: 0; top: 0; height: 30px; z-index: 8;
  display: flex; align-items: center; gap: 12px; padding: 0 10px 0 160px;
  background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.12));
  color: #fff; font-size: 12px;
}
.hud-left { display: flex; align-items: center; gap: 6px; }
.hud-label { letter-spacing: 1px; opacity: .85; }
#order-pips { display: flex; gap: 3px; }
.pip {
  width: 15px; height: 12px; background: #b33; border: 1px solid #fdd;
  box-shadow: 0 0 4px rgba(255,80,80,.6);
}
.pip.off { background: #333; border-color: #666; box-shadow: none; }
.pip.flash { animation: pipFlash .3s steps(2) 3; }
@keyframes pipFlash { 50% { background: #fff; } }
#hud-place { flex: 1; text-align: center; opacity: .7; letter-spacing: 2px; }
.hud-right { display: flex; gap: 4px; }

#dialog {
  position: absolute; left: 0; right: 0; bottom: 0; height: 206px; z-index: 10;
  background: #c0c0c0; border-top: 2px solid #fff;
  box-shadow: 0 -2px 0 #808080, 0 -4px 16px rgba(0,0,0,.5);
  display: flex; flex-direction: column;
}
.dlg-title {
  height: 24px; background: linear-gradient(90deg, #000080, #2a6fc4);
  color: #fff; font-weight: bold; font-size: 13px; letter-spacing: 1px;
  display: flex; align-items: center; padding: 0 10px;
  border-bottom: 1px solid #000;
}
#dlg-state { flex: 1; text-align: right; font-weight: normal; font-size: 11px; opacity: .75; }
.dlg-body {
  flex: 1; position: relative; padding: 14px 22px 10px;
  background: #c0c0c0;
  box-shadow: inset 1px 1px 0 #fff;
}
#dlg-text {
  font-family: "SimSun", "宋体", serif;
  font-size: 17px; line-height: 1.85; letter-spacing: .6px; color: #101010;
  white-space: pre-wrap; max-height: 126px; overflow: hidden;
}
#dlg-text .accent { color: #8b1111; font-weight: bold; }
#dlg-text .sys { color: #1c3f6e; }
#dialog.narration .dlg-title { background: linear-gradient(90deg, #404040, #707070); }
#dialog.narration #dlg-text { color: #2a2a2a; font-style: normal; }
#dialog.think #dlg-text { color: #1a2f52; }
#dialog .dlg-next {
  position: absolute; right: 16px; bottom: 6px; color: #000080; font-size: 13px;
  animation: nextblink 1s steps(2) infinite;
}
@keyframes nextblink { 50% { opacity: 0; } }

#choices {
  position: absolute; left: 50%; bottom: 218px; transform: translateX(-50%);
  z-index: 14; min-width: 520px; max-width: 760px;
  display: flex; flex-direction: column; gap: 6px;
  padding: 6px; background: #c0c0c0; border: 1px solid #000;
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #808080, 4px 4px 0 rgba(0,0,0,.35);
}
.choice {
  text-align: left; padding: 7px 12px; font-size: 14px; font-family: "SimSun","宋体",serif;
  background: #ececec; border: 1px solid #808080; cursor: pointer;
  box-shadow: inset 1px 1px 0 #fff;
}
.choice:hover { background: #000080; color: #fff; }
.choice .csub { display: block; font-size: 11px; opacity: .6; margin-top: 2px; font-family: "MS Sans Serif", sans-serif; }

/* ============ 记录本 / 假设板窗口 ============ */
.overlay {
  position: absolute; inset: 0; z-index: 50;
  background: rgba(0,0,0,.35);
  display: flex; align-items: center; justify-content: center;
}
.notebook {
  width: 880px; height: 580px; display: flex; flex-direction: column;
  position: relative;
}
.nb-tabs {
  display: flex; gap: 2px; padding: 4px 8px 0; background: #c0c0c0;
}
.nb-tab {
  padding: 5px 16px 4px; font-size: 12px; background: #b0b0b0; cursor: pointer;
  border: 1px solid #000; border-bottom: none;
  box-shadow: inset 1px 1px 0 #dfdfdf;
  position: relative; top: 2px;
}
.nb-tab.active { background: #c0c0c0; top: 0; padding-bottom: 6px; font-weight: bold; }
.nb-main { flex: 1; display: flex; gap: 0; padding: 8px; min-height: 0; }
.nb-list {
  width: 292px; overflow-y: auto; background: #fff; padding: 4px;
  border: 1px solid #000; box-shadow: inset 2px 2px 0 #808080, inset -1px -1px 0 #fff;
}
.nb-item {
  padding: 6px 8px; font-size: 12px; cursor: pointer; border-bottom: 1px dotted #bbb;
  display: flex; gap: 6px; align-items: baseline;
}
.nb-item:hover { background: #d8e4f4; }
.nb-item.active { background: #000080; color: #fff; }
.nb-item .eid { font-family: "Courier New", monospace; font-size: 11px; opacity: .75; flex: none; }
.nb-item .tag { margin-left: auto; font-size: 10px; color: #8b1111; flex: none; }
.nb-item.active .tag { color: #ffd; }
.nb-detail { flex: 1; padding: 10px 14px; background: #fff; border: 1px solid #000;
  box-shadow: inset 2px 2px 0 #808080; overflow-y: auto; }
.nb-detail h3 { margin: 0 0 4px; font-size: 18px; font-family: "SimSun","宋体",serif; }
.nb-detail .meta { font-size: 11px; color: #555; border-bottom: 1px dotted #999; padding-bottom: 6px; margin-bottom: 8px; }
.nb-detail .desc { font-family: "SimSun","宋体",serif; font-size: 14px; line-height: 1.8; white-space: pre-wrap; }
.nb-detail .sect-title { margin: 14px 0 5px; font-size: 12px; font-weight: bold; color: #000080; }
.chip {
  display: inline-block; padding: 2px 7px; margin: 2px 4px 2px 0;
  border: 1px solid #808080; background: #e8e8e8; font-size: 11px;
}
.chip.true { background: #e8f0d8; border-color: #4a7a2a; }
.chip.false { background: #f4e0e0; border-color: #8b1111; }
.nb-empty { color: #777; font-size: 13px; padding: 20px; text-align: center; }
.nb-foot { padding: 6px 8px 8px; display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.nb-foot .hint { margin-right: auto; font-size: 11px; color: #404040; }

/* 假设板 */
.hypo-wrap { flex: 1; overflow-y: auto; padding: 8px; background: #fff;
  border: 1px solid #000; box-shadow: inset 2px 2px 0 #808080; }
.hypo-group { margin-bottom: 16px; }
.hypo-group h4 {
  margin: 0 0 6px; font-size: 13px; color: #fff; background: #000080;
  padding: 3px 8px; letter-spacing: 1px;
}
.hypo-row {
  display: flex; gap: 8px; padding: 7px 8px; font-size: 12px;
  border-bottom: 1px dotted #bbb; align-items: flex-start;
}
.hypo-row:hover { background: #eef2f8; }
.hypo-id { font-family: "Courier New", monospace; font-weight: bold; width: 28px; flex: none; }
.hypo-txt { flex: 1; line-height: 1.5; }
.hypo-status { width: 74px; flex: none; text-align: center; font-size: 11px; padding: 2px 0; border: 1px solid #999; }
.st-unknown { background: #e0e0e0; color: #555; }
.st-guessed { background: #fff4cc; color: #7a5a00; border-color: #b09030; }
.st-provable { background: #d8f0d0; color: #1e5a10; border-color: #3f7a2a; font-weight: bold; }
.st-rejected { background: #e8d8d8; color: #7a2020; border-color: #8b5050; text-decoration: line-through; }
.hypo-src { width: 240px; flex: none; font-size: 11px; color: #555; line-height: 1.5; }
.hypo-src b { color: #000080; }

/* ============ 辩论 ============ */
.debate {
  position: absolute; inset: 0; z-index: 55; display: flex; flex-direction: column;
  background: rgba(0,0,0,.28);
}
.debate-top {
  margin: 34px 36px 0; background: #c0c0c0; padding: 4px;
  border: 1px solid #000;
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #808080, 4px 4px 0 rgba(0,0,0,.4);
}
.debate-head {
  background: linear-gradient(90deg, #000080, #1084d0); color: #fff;
  padding: 3px 8px; font-size: 12px; display: flex; justify-content: space-between;
}
.debate-stage {
  flex: 1; margin: 8px 36px 0; position: relative; overflow: hidden;
  background: rgba(10,10,16,.82);
  border: 1px solid #000; box-shadow: inset 0 0 40px rgba(0,0,0,.8);
  padding: 14px 18px;
}
.debate-stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px);
}
.stmt {
  font-family: "SimSun","宋体",serif; font-size: 16px; line-height: 1.55;
  color: #d8d8d0; padding: 6px 10px; margin-bottom: 5px;
  border-left: 3px solid transparent; opacity: .55;
}
.stmt .who { color: #8fc0ff; font-weight: bold; margin-right: 8px; font-size: 13px; }
.stmt.current { opacity: 1; background: rgba(255,255,255,.06); border-left-color: #8fc0ff; }
.stmt.past { opacity: .35; }
.stmt.weak {
  color: #fff0c0; background: rgba(160,120,20,.18);
  border-left-color: #e0a020; text-shadow: 0 0 8px rgba(240,180,40,.5);
}
.stmt.fake {
  color: #ffe9a8; background: rgba(220,150,30,.2);
  border-left-color: #ffcf4a; text-shadow: 0 0 12px rgba(255,210,80,.75);
  animation: fakeGlow 1.6s ease-in-out infinite;
}
@keyframes fakeGlow { 50% { background: rgba(220,150,30,.34); } }
.stmt.resolved { opacity: .3; text-decoration: line-through; }
.debate-bottom {
  margin: 8px 36px 30px; display: flex; gap: 10px; align-items: stretch;
}
.conc-box {
  flex: 1; background: #c0c0c0; padding: 6px 8px; border: 1px solid #000;
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #808080;
}
.conc-label { font-size: 11px; display: flex; justify-content: space-between; margin-bottom: 3px; }
.conc-bar { height: 14px; background: #404040; border: 1px solid #000; box-shadow: inset 1px 1px 0 #808080; padding: 1px; }
.conc-fill { height: 100%; width: 100%; background: linear-gradient(90deg, #2a6fc4, #6fd0ff); transition: width .1s linear; }
.conc-fill.low { background: linear-gradient(90deg, #b33, #ff8a5a); }
.debate-btns { display: flex; gap: 6px; }
.hold-btn { min-width: 128px; font-weight: bold; }
.debate-feedback {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%,-50%);
  z-index: 6; background: #000; color: #fff; padding: 12px 20px; font-size: 16px;
  border: 2px solid #fff; letter-spacing: 1px; text-align: center; pointer-events: none;
  animation: fbIn .18s steps(2);
}
.debate-feedback.good { background: #063a12; border-color: #6fdf8f; color: #d8ffe0; }
.debate-feedback.bad { background: #4a0a0a; border-color: #ff8080; color: #ffe0e0; }
@keyframes fbIn { from { transform: translate(-50%,-50%) scale(1.6); opacity: 0; } }
.target-hint {
  margin: 4px 0 0; font-size: 11px; color: #ffd; opacity: .75; text-align: right;
}

/* ============ 对质战 ============ */
.cross { background: rgba(20,0,0,.45); }
.cross .debate-stage { background: rgba(28,8,8,.9); }
.cross .stmt.current { border-left-color: #ff8a5a; background: rgba(255,120,60,.12); }
.cross-q {
  font-family: "SimSun","宋体",serif; font-size: 20px; color: #fff;
  padding: 10px 4px; margin-bottom: 10px; border-bottom: 1px solid #a06060;
}
.cross-seq { font-size: 12px; color: #ffb0a0; letter-spacing: 1px; }

/* ============ 会间地图 ============ */
.inter {
  width: 1000px; height: 650px; display: flex; flex-direction: column;
}
.inter-main { flex: 1; display: flex; gap: 8px; padding: 8px; min-height: 0; }
.map-area {
  flex: 1; position: relative; overflow: hidden;
  border: 1px solid #000; box-shadow: inset 2px 2px 0 #808080;
  background: #101a14;
}
.map-area svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.loc-icon {
  position: absolute; width: 104px; text-align: center; cursor: pointer;
  transform: translate(-50%,-50%);
}
.loc-icon .loc-box {
  width: 46px; height: 42px; margin: 0 auto 2px; background: #d8c890;
  border: 1px solid #000; box-shadow: 2px 2px 0 rgba(0,0,0,.5), inset 1px 1px 0 #fff8d0;
  display: flex; align-items: center; justify-content: center;
  font-family: "SimSun", serif; font-size: 20px; color: #3a2a10;
}
.loc-icon:hover .loc-box { background: #ffe9a0; }
.loc-icon.done .loc-box { background: #a8a8a0; color: #666; }
.loc-icon.disabled { opacity: .45; cursor: not-allowed; }
.loc-icon .loc-name {
  font-size: 12px; color: #fff; text-shadow: 1px 1px 0 #000;
  background: rgba(0,0,0,.5); padding: 1px 3px;
}
.loc-icon .loc-cost {
  font-size: 10px; color: #ffe9a0; background: rgba(0,0,0,.6);
  display: inline-block; padding: 0 4px; margin-top: 1px;
}
.inter-side {
  width: 300px; display: flex; flex-direction: column; gap: 8px;
}
.side-box { background: #c0c0c0; padding: 6px; border: 1px solid #000;
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #808080; }
.side-box h4 { margin: 0 0 5px; font-size: 12px; color: #000080; letter-spacing: 1px; }
.ap-row { display: flex; align-items: center; gap: 6px; font-size: 20px; }
.ap-dot { width: 18px; height: 18px; border: 1px solid #000; background: #ffd24a; box-shadow: inset 1px 1px 0 #fff0b0; }
.ap-dot.used { background: #707070; box-shadow: none; }
.time-row { font-family: "Courier New", monospace; font-size: 22px; letter-spacing: 2px; background: #001400; color: #4aff6a; padding: 3px 8px; border: 1px solid #000; }
.delay-list { font-size: 11px; line-height: 1.7; color: #303030; }
.delay-list .arr { color: #1e5a10; font-weight: bold; }
.delay-list .pend { color: #8a6a00; }
.action-list { flex: 1; overflow-y: auto; background: #fff; padding: 4px; border: 1px solid #000; box-shadow: inset 2px 2px 0 #808080; }
.action-item { padding: 6px 8px; font-size: 12px; border-bottom: 1px dotted #bbb; cursor: pointer; display: flex; gap: 5px; }
.action-item:hover { background: #d8e4f4; }
.action-item.disabled { color: #999; cursor: not-allowed; background: #f2f2f2; }
.action-item .cost { margin-left: auto; color: #8b1111; font-size: 11px; flex: none; }
.action-item.disabled .cost { color: #999; }
.action-item.done { text-decoration: line-through; color: #999; cursor: default; }
.inter-foot { padding: 4px 8px 8px; display: flex; gap: 6px; align-items: center; }
.inter-foot .hint { margin-right: auto; font-size: 11px; color: #333; }

/* ============ 认定 / 表决 ============ */
.verdict { width: 900px; height: 620px; display: flex; flex-direction: column; }
.verdict-main { flex: 1; overflow-y: auto; padding: 10px 14px; background: #fff;
  border: 1px solid #000; box-shadow: inset 2px 2px 0 #808080; }
.v-section { margin-bottom: 14px; }
.v-section h3 { margin: 0 0 6px; font-size: 14px; color: #fff; background: #000080; padding: 3px 8px; letter-spacing: 1px; }
.v-opts { display: flex; flex-direction: column; gap: 5px; }
.v-opt {
  text-align: left; padding: 7px 10px; font-size: 13px; font-family: "SimSun","宋体",serif;
  background: #ececec; border: 1px solid #808080; cursor: pointer; position: relative;
}
.v-opt:hover { background: #fff; outline: 1px solid #000080; }
.v-opt.selected { background: #d8e8ff; outline: 2px solid #000080; }
.v-opt.locked { background: #d8d8d8; color: #888; cursor: not-allowed; }
.v-opt.locked .v-miss { display: block; }
.v-miss { display: none; font-size: 11px; color: #8b1111; margin-top: 2px; font-family: "MS Sans Serif", sans-serif; }
.v-opt .v-sub { font-size: 11px; color: #555; margin-left: 8px; font-family: "MS Sans Serif", sans-serif; }
.v-foot { padding: 6px 10px 8px; display: flex; gap: 8px; align-items: center; }
.v-foot .hint { margin-right: auto; font-size: 11px; }

/* ============ 文件 / 打印 ============ */
.paper-stage {
  width: 900px; height: 640px; background: #6a6a60; display: flex; flex-direction: column;
  align-items: center; justify-content: center; position: relative;
  border: 1px solid #000; box-shadow: inset 0 0 60px rgba(0,0,0,.6);
}
.paper {
  width: 620px; height: 540px; background: #fbfaf2; position: relative;
  box-shadow: 6px 8px 0 rgba(0,0,0,.35), 0 0 0 1px #999;
  padding: 26px 34px; overflow: hidden;
  font-family: "SimSun","宋体",serif; color: #111;
}
.paper::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: repeating-linear-gradient(90deg, #b33 0 12px, transparent 12px 16px);
  opacity: .35;
}
.paper .redhead { color: #b01010; font-size: 24px; font-weight: bold; letter-spacing: 4px; text-align: center; margin-bottom: 2px; }
.paper .docno { text-align: center; font-size: 11px; color: #666; letter-spacing: 1px; margin-bottom: 14px; }
.paper .doctitle { text-align: center; font-size: 19px; font-weight: bold; letter-spacing: 2px; margin: 10px 0 18px; }
.paper .body { font-size: 13px; line-height: 1.95; letter-spacing: .5px; white-space: pre-wrap; min-height: 300px; }
.paper .body .hl { color: #8b1111; font-weight: bold; }
.paper .sign { margin-top: 22px; text-align: right; font-size: 13px; line-height: 1.9; }
.paper .stamp {
  position: absolute; right: 54px; bottom: 82px; width: 90px; height: 90px;
  border: 3px solid rgba(190,20,20,.55); border-radius: 50%;
  color: rgba(190,20,20,.65); font-size: 12px; font-weight: bold;
  display: flex; align-items: center; justify-content: center; text-align: center;
  transform: rotate(-14deg); letter-spacing: 1px;
}
.print-bar {
  margin-top: 10px; width: 620px; display: flex; align-items: center; gap: 8px;
  color: #ddd; font-size: 11px;
}
.print-bar .track { flex: 1; height: 10px; background: #222; border: 1px solid #888; }
.print-bar .fill { height: 100%; width: 0; background: #d8d8c0; }
.paper-page { display: none; }
.paper-page.on { display: block; }

/* ============ 一周后简报 ============ */
.brief-stage {
  position: absolute; inset: 0; z-index: 56; background: #1d2a2a;

}
.brief-desk {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.08) 0 2px, transparent 2px 38px),
    linear-gradient(180deg, #3a2a1e, #241a12);
}
.note {
  position: absolute; width: 400px; background: #f6f2dc; color: #222;
  padding: 14px 18px; font-family: "SimSun","宋体",serif; font-size: 13px; line-height: 1.75;
  box-shadow: 5px 7px 0 rgba(0,0,0,.4); border: 1px solid #c8c0a0;
  animation: noteIn .3s steps(3);
}
@keyframes noteIn { from { transform: translateY(18px) rotate(1deg); opacity: 0; } }
.note .note-head { font-weight: bold; color: #8b1111; font-size: 14px; margin-bottom: 6px; letter-spacing: 1px; border-bottom: 1px solid #c8b090; padding-bottom: 4px; }
.note .note-sign { text-align: right; font-size: 11px; color: #777; margin-top: 8px; }
.note.sticky { background: #fff6b0; transform: rotate(-2deg); width: 250px; }
.note.stampnote { border: 3px double #b01010; }
.brief-next { position: absolute; right: 24px; bottom: 20px; z-index: 5; }

/* ============ 结局 ============ */
.ending-card {
  width: 780px; background: #f4f1e4; padding: 42px 56px;
  box-shadow: 8px 10px 0 rgba(0,0,0,.5); border: 1px solid #999;
  font-family: "SimSun","宋体",serif; position: relative;
}
.ending-card .end-kicker { font-size: 12px; letter-spacing: 6px; color: #777; }
.ending-card h1 { font-size: 34px; margin: 8px 0 6px; letter-spacing: 6px; color: #111; }
.ending-card .end-sub { font-size: 13px; color: #555; margin-bottom: 24px; letter-spacing: 1px; }
.ending-card .axis { display: flex; gap: 10px; margin: 10px 0; font-size: 13px; line-height: 1.7; }
.ending-card .axis b { width: 54px; color: #8b1111; flex: none; }
.ending-card .end-text { font-size: 14px; line-height: 2; color: #222; margin-top: 20px; white-space: pre-wrap; }
.ending-card .end-sign { margin-top: 28px; font-size: 12px; color: #666; text-align: right; }
.ending-card .stampbig {
  position: absolute; right: 46px; bottom: 44px; width: 100px; height: 100px;
  border: 3px solid rgba(180,20,20,.5); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: rgba(180,20,20,.6); font-size: 13px; font-weight: bold; transform: rotate(-12deg);
}
.bad-screen {
  position: absolute; inset: 0; z-index: 58; background: #000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #ddd; font-family: "SimSun","宋体",serif;
}
.bad-screen .bad-title { color: #ff6a5a; font-size: 30px; letter-spacing: 8px; margin-bottom: 12px; }
.bad-screen .bad-body { width: 560px; font-size: 14px; line-height: 2.1; color: #bbb; margin-top: 16px; white-space: pre-wrap; }
.bluescreen {
  position: absolute; inset: 0; z-index: 59; background: #0000aa; color: #d8d8d8;
  font-family: "Courier New", monospace; font-size: 14px; padding: 60px 90px; line-height: 1.9;
}
.bluescreen h2 { background: #c0c0c0; color: #0000aa; display: inline-block; padding: 0 8px; font-family: "MS Sans Serif"; }
.bluescreen .bs-hint { margin-top: 36px; text-align: center; }

/* ============ 提示 / 弹窗 ============ */
#tooltip {
  position: fixed; z-index: 200; background: #ffffe1; color: #000;
  border: 1px solid #000; padding: 3px 7px; font-size: 12px; max-width: 320px;
  pointer-events: none; line-height: 1.5;
}
.msgbox { width: 420px; }
.msgbox .msg-body { padding: 18px 20px; display: flex; gap: 12px; align-items: flex-start; background: #c0c0c0; }
.msgbox .msg-icon {
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  background: #fff; border: 2px solid #000080; color: #000080;
  display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 20px;
  font-family: "SimSun", serif;
}
.msgbox .msg-text { font-family: "SimSun","宋体",serif; font-size: 14px; line-height: 1.7; white-space: pre-wrap; }
.msgbox .msg-foot { display: flex; justify-content: center; padding: 4px 0 10px; background: #c0c0c0; }

.toast {
  position: absolute; right: 18px; bottom: 226px; z-index: 45;
  background: #ffffe1; border: 1px solid #000; padding: 8px 12px;
  font-size: 12px; line-height: 1.6; box-shadow: 4px 4px 0 rgba(0,0,0,.3);
  animation: toastIn .25s steps(3); max-width: 300px;
}
.toast .t-head { color: #000080; font-weight: bold; margin-bottom: 2px; }
@keyframes toastIn { from { transform: translateX(30px); opacity: 0; } }
.toast.out { animation: toastOut .25s forwards; }
@keyframes toastOut { to { transform: translateX(30px); opacity: 0; } }

.pager {
  position: absolute; right: 22px; top: 44px; z-index: 46; width: 272px;
  background: #101010; color: #6aff6a; border: 3px solid #333;
  box-shadow: 0 0 24px rgba(90,255,90,.35), 4px 4px 0 rgba(0,0,0,.5);
  font-family: "Courier New", monospace; padding: 10px 12px;
  animation: pagerIn .3s steps(3);
}
.pager .p-head { font-size: 10px; color: #4a9a4a; border-bottom: 1px solid #2a4a2a; margin-bottom: 6px; padding-bottom: 3px; letter-spacing: 2px; }
.pager .p-msg { font-family: "SimSun","宋体",monospace; font-size: 14px; line-height: 1.7; text-shadow: 0 0 6px rgba(90,255,90,.5); }
.pager .p-time { font-size: 10px; color: #4a9a4a; text-align: right; margin-top: 6px; }
@keyframes pagerIn { from { transform: translateY(-20px); opacity: 0; } }

.fax {
  width: 520px; background: #b8b8b0; padding: 16px; border: 1px solid #000;
  box-shadow: 6px 8px 0 rgba(0,0,0,.4);
}
.fax-head { font-size: 12px; color: #333; margin-bottom: 8px; letter-spacing: 1px; }
.fax-paper {
  background: #f4f2e6; padding: 18px 24px; font-family: "SimSun","宋体",serif;
  font-size: 13px; line-height: 1.9; min-height: 220px; border: 1px solid #999;
  box-shadow: inset 0 0 14px rgba(0,0,0,.12); white-space: pre-wrap;
  animation: faxFeed .8s steps(8);
}
@keyframes faxFeed { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

/* 震动 */
.shake { animation: shake .4s steps(2); }
@keyframes shake {
  0% { transform: translate(0,0); }
  20% { transform: translate(-6px,3px); }
  40% { transform: translate(5px,-4px); }
  60% { transform: translate(-4px,-2px); }
  80% { transform: translate(4px,3px); }
  100% { transform: translate(0,0); }
}

/* 滚动条 */
::-webkit-scrollbar { width: 16px; height: 16px; background: #c0c0c0; }
::-webkit-scrollbar-thumb {
  background: #c0c0c0; border: 1px solid #000;
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #808080;
}
::-webkit-scrollbar-button { background: #c0c0c0; border: 1px solid #000; height: 16px; }
::-webkit-scrollbar-track { background: #e0e0e0; border: 1px solid #808080; }

/* 电源 */
#poweroff {
  position: absolute; inset: 0; z-index: 80; background: #000;
  display: flex; align-items: center; justify-content: center;
}
.poweroff-box { color: #ffb000; font-family: "Courier New", monospace; font-size: 24px; letter-spacing: 3px; text-align: center; }

/* 存档窗 */
.savewin { width: 520px; }
.slot {
  display: flex; gap: 10px; padding: 10px; margin: 6px 8px; cursor: pointer;
  border: 1px solid #808080; background: #e8e8e8;
}
.slot:hover { background: #fff; outline: 1px solid #000080; }
.slot .floppy {
  width: 48px; height: 46px; background: #222; border: 2px solid #000; position: relative; flex: none;
  box-shadow: inset 0 0 0 3px #444;
}
.slot .floppy::before {
  content: ""; position: absolute; left: 8px; top: 3px; width: 30px; height: 18px;
  background: #bbb; border: 1px solid #000;
}
.slot .floppy::after {
  content: ""; position: absolute; left: 12px; bottom: 4px; width: 24px; height: 11px;
  background: #eee; border: 1px solid #000;
}
.slot .slot-info { flex: 1; font-size: 12px; line-height: 1.6; }
.slot .slot-info b { font-size: 13px; color: #000080; }
.slot .slot-info .empty { color: #888; }

/* 章节目录 */
.chapterwin { width: 560px; }
.chapter-list { padding: 8px; background: #fff; border: 1px solid #000; box-shadow: inset 2px 2px 0 #808080; }
.chapter-row { padding: 8px 10px; border-bottom: 1px dotted #ccc; font-size: 13px; display: flex; gap: 8px; align-items: center; }
.chapter-row .num { font-family: "Courier New", monospace; color: #000080; font-weight: bold; width: 36px; }
.chapter-row.locked { color: #999; }
