/* ==========================================================================
   ChikageOS 98 - Windows 98 Retro Desktop Theme for Lo-Fi Personal Blog
   ========================================================================== */

/* Win98 色彩与立体凹凸边框变量 (方案1: 护眼暖纸白与调和复古版) */
:root {
  --w98-bg: #1a534d; /* 低饱和度温润深松石绿，舒适的暗色桌面缓冲 */
  --w98-gray: #d0cdc5; /* 经典浅灰微暖调和 (彻底避免冷灰眩光) */
  --w98-dark-gray: #88847c;
  --w98-darker-gray: #4a4740;
  --w98-white: #f7f5ee;
  --w98-black: #1f2328;
  --w98-blue-dark: #1b3f63; /* 深邃复古冷灰蓝 */
  --w98-blue-light: #2d5b84;
  --w98-paper-bg: #faf7f2; /* 核心：复古燕麦暖纸白，彻底杜绝刺眼感 */
  --w98-paper-text: #24292f; /* 核心：深炭墨水色，文字柔和清晰 */
  --w98-title-inactive: #88847c;
  --w98-font: "MS Sans Serif", "Microsoft Sans Serif", "Segoe UI", -apple-system, Tahoma, sans-serif;
  --w98-font-mono: "Fixedsys", "Lucida Console", "Courier New", monospace;
}

/* 经典 Win98 3D 浮雕投影与凹槽边框 */
.w98-bevel-outset {
  border-top: 1.5px solid var(--w98-white);
  border-left: 1.5px solid var(--w98-white);
  border-right: 1.5px solid var(--w98-darker-gray);
  border-bottom: 1.5px solid var(--w98-darker-gray);
  box-shadow: inset -1px -1px 0 var(--w98-dark-gray), inset 1px 1px 0 #dfdfdf;
}

.w98-bevel-inset {
  border-top: 1.5px solid var(--w98-dark-gray);
  border-left: 1.5px solid var(--w98-dark-gray);
  border-right: 1.5px solid var(--w98-white);
  border-bottom: 1.5px solid var(--w98-white);
  box-shadow: inset 1px 1px 0 var(--w98-darker-gray), inset -1px -1px 0 #dfdfdf;
}

/* 桌面主容器 (位于监视器屏幕内部) */
.win98-desktop {
  position: absolute;
  inset: 34px 14px 28px 14px;
  z-index: 10;
  background-color: var(--w98-bg);
  font-family: var(--w98-font);
  font-size: 12px;
  color: var(--w98-black);
  user-select: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.8), inset 0 0 4px rgba(0, 0, 0, 0.5);
  border: 1px solid #1a3a2e;
}

/* 进入与退出 PC-98 桌面的显像管同步过渡 */
.win98-desktop.syncing-in {
  animation: win98-sync-in 320ms cubic-bezier(0.2, 0.8, 0.25, 1) forwards;
}

.win98-desktop.syncing-out {
  animation: win98-sync-out 220ms ease-in forwards;
  pointer-events: none;
}

/* ==========================================================================
   PC-98 改变分辨率专属显像管失步过度动画 (针对亮色纸白与桌面深度调优，温和护眼、消除刺眼爆闪)
   ========================================================================== */
@keyframes pc98-resync-jitter {
  0% {
    filter: brightness(1) contrast(1);
    transform: none;
  }
  15% {
    /* 极其克制的微光晕，最高仅 1.04，严禁刺眼白光爆闪 */
    filter: brightness(1.04) contrast(1.02);
    transform: scale(1.003, 0.997) skewX(0.35deg);
  }
  30% {
    /* 模拟显像管失步瞬间高压轻微微跌 */
    filter: brightness(0.95) contrast(1.04);
    transform: scale(0.998, 1.002) translateY(-1px);
  }
  50% {
    filter: brightness(1.03) contrast(1.01);
    transform: scale(1.001, 0.999) skewX(-0.25deg);
  }
  70% {
    filter: brightness(0.97);
    transform: translateY(0.5px);
  }
  85% {
    filter: brightness(1.01);
    transform: scale(1, 1);
  }
  100% {
    filter: none;
    transform: none;
  }
}

.win98-desktop.crt-resyncing {
  animation: pc98-resync-jitter 380ms cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* 细腻扫描线重捕获层 (柔和深色暗线，不使用刺眼白光) */
.win98-desktop.crt-resyncing::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
  mix-blend-mode: multiply;
  opacity: 0.5;
  animation: pc98-resync-scanlines 380ms ease-out forwards;
}

/* 经典显像管横向场失步切片微撕裂 (使用低饱和冷松石绿与柔和暗影，彻底消除高光刺眼感) */
.win98-desktop.crt-resyncing::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10000;
  background:
    linear-gradient(0deg,
      transparent 0%,
      transparent 18%,
      rgba(26, 83, 77, 0.12) 19%,
      transparent 21%,
      transparent 42%,
      rgba(0, 0, 0, 0.08) 43%,
      transparent 45%,
      transparent 66%,
      rgba(52, 117, 90, 0.1) 67%,
      transparent 69%,
      transparent 84%,
      rgba(0, 0, 0, 0.07) 85%,
      transparent 87%
    );
  mix-blend-mode: multiply;
  animation: pc98-tear-glitch 380ms steps(3) forwards;
}

@keyframes pc98-tear-glitch {
  0% {
    opacity: 0.5;
    transform: translateX(-3px) skewX(0.4deg);
  }
  30% {
    opacity: 0.6;
    transform: translateX(3px) skewX(-0.5deg);
  }
  60% {
    opacity: 0.35;
    transform: translateX(-1.5px) skewX(0.2deg);
  }
  85% {
    opacity: 0.15;
    transform: translateX(0.5px);
  }
  100% {
    opacity: 0;
    transform: none;
  }
}

@keyframes pc98-resync-scanlines {
  0% { opacity: 0.5; transform: translateY(-2px); }
  50% { opacity: 0.3; transform: translateY(1px); }
  100% { opacity: 0; transform: none; }
}

/* PC-98 显示分辨率模式 (模拟真实 PC-9801 / PC-9821 硬件显示比例) */
.win98-desktop.res-640x400 {
  max-width: 640px;
  max-height: 400px;
  margin: auto;
}

.win98-desktop.res-640x480 {
  max-width: 640px;
  max-height: 480px;
  margin: auto;
}

.win98-desktop.res-800x600 {
  max-width: 800px;
  max-height: 600px;
  margin: auto;
}

.win98-desktop.res-1024x768 {
  max-width: 1024px;
  max-height: 768px;
  margin: auto;
}

/* QuickRes 分辨率切换托盘菜单 */
.win98-quickres-menu {
  position: absolute;
  right: 14px;
  bottom: 28px;
  width: 220px;
  background-color: var(--w98-gray);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 2px;
  font-size: 11px;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
}

.win98-quickres-title {
  padding: 4px 8px;
  background: linear-gradient(90deg, var(--w98-blue-dark) 0%, var(--w98-blue-light) 100%);
  color: var(--w98-white);
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
}

.win98-quickres-item {
  padding: 5px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: var(--w98-black);
}

.win98-quickres-item:hover {
  background-color: var(--w98-blue-dark);
  color: var(--w98-white);
}

.win98-quickres-item.active {
  font-weight: bold;
}

.win98-quickres-item.active::before {
  content: '✓ ';
  color: inherit;
  margin-right: 4px;
}

@keyframes win98-sync-in {
  0% {
    opacity: 0;
    filter: brightness(2) contrast(1.5) blur(1px);
    transform: scale(0.992, 1.008) skewX(0.8deg);
  }
  35% {
    opacity: 0.85;
    filter: brightness(1.3) contrast(1.2);
    transform: scale(1.004, 0.996) skewX(-0.4deg);
  }
  70% {
    opacity: 0.95;
    filter: brightness(0.95);
    transform: scale(0.999, 1.001);
  }
  100% {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

@keyframes win98-sync-out {
  0% {
    opacity: 1;
    filter: none;
    transform: none;
  }
  40% {
    opacity: 0.7;
    filter: brightness(1.5) contrast(1.3);
    transform: scale(1.008, 0.985) skewX(-0.6deg);
  }
  100% {
    opacity: 0;
    filter: brightness(0.15);
    transform: scale(0.97, 1.03);
  }
}

@media (prefers-reduced-motion: reduce) {
  .win98-desktop.syncing-in,
  .win98-desktop.syncing-out,
  .win98-desktop.crt-resyncing,
  .win98-desktop.crt-resyncing::before,
  .win98-desktop.crt-resyncing::after {
    animation: none !important;
  }
}


/* 桌面图标网格 */
.win98-icons-grid {
  flex: 1;
  padding: 16px;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(auto-fill, 78px);
  grid-template-columns: repeat(auto-fill, 76px);
  gap: 12px;
  align-content: start;
  justify-content: start;
}

.win98-icon-item {
  width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  padding: 4px 2px;
  border: 1px dotted transparent;
}

.win98-icon-item:hover {
  background: rgba(0, 0, 128, 0.2);
}

.win98-icon-item.active {
  outline: none;
  border-color: #e0e0e0;
}

.win98-icon-item.active .win98-icon-title {
  background: var(--w98-blue-dark);
  color: var(--w98-white);
}

.win98-icon-graphic {
  width: 32px;
  height: 32px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.win98-icon-graphic svg {
  width: 32px;
  height: 32px;
  filter: drop-shadow(1px 1px 0 rgba(0,0,0,0.5));
}

.win98-icon-title {
  font-size: 11px;
  line-height: 1.25;
  color: var(--w98-white);
  text-shadow: 1px 1px 1px #000, 0 0 2px #000;
  padding: 1px 3px;
  border-radius: 1px;
  word-break: break-all;
}

/* 桌面活动窗口层 */
.win98-windows-layer {
  position: absolute;
  inset: 0 0 28px 0; /* 留出底部任务栏高度 */
  pointer-events: none;
  overflow: hidden;
}

/* 经典 Win98 窗口主体 (支持小窗定位与拖动缩放) */
.win98-window {
  position: absolute;
  pointer-events: auto;
  background-color: var(--w98-gray);
  display: flex;
  flex-direction: column;
  box-shadow: 2px 3px 14px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(0,0,0,0.3);
  min-width: 280px;
  min-height: 180px;
  box-sizing: border-box;
}

/* PC-98 游戏文件夹与模拟器画布 */
.win98-games-body {
  flex: 1;
  min-width: 0;
  min-height: 0;
  background: #c0c0c0;
  padding: 10px;
  overflow: auto;
  box-sizing: border-box;
}

.win98-games-launcher {
  color: #000;
  font-family: Tahoma, "MS Sans Serif", "Microsoft YaHei", sans-serif;
  font-size: 12px;
}

/* 经典 Win98 / PC-98 游戏库提示栏 */
.win98-games-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 10px;
  margin-bottom: 10px;
  background: #ffffff;
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
}

.win98-games-intro-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.win98-games-intro-icon svg {
  width: 28px;
  height: 28px;
}

.win98-games-intro-text {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.win98-games-intro-text strong {
  color: #000080;
  font-size: 12px;
}

.win98-games-intro-text span {
  color: #444444;
  font-size: 11px;
}

.win98-games-intro-badge {
  font-size: 10px;
  font-family: var(--font-mono, monospace);
  padding: 2px 6px;
  background: #f0f0f0;
  border: 1px solid #808080;
  color: #000080;
  white-space: nowrap;
}

/* 游戏卡片网格布局 (告别单调长条) */
.win98-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.win98-game-card {
  display: flex;
  flex-direction: column;
  background: #d4d0c8;
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #404040;
  padding: 7px;
  cursor: pointer;
  user-select: none;
  transition: transform 0.12s ease, background 0.12s ease;
}

.win98-game-card:hover {
  background: #dedad2;
  box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #000000, 0 2px 6px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

.win98-game-card:focus {
  outline: 1px dotted #000080;
  outline-offset: -3px;
}

.win98-game-card:active {
  border-color: #808080 #ffffff #ffffff #808080;
  box-shadow: inset 1px 1px 0 #404040;
  transform: translateY(0);
}

.win98-game-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.win98-game-platform-tag {
  font-size: 9px;
  font-family: var(--font-mono, monospace);
  font-weight: bold;
  padding: 1px 5px;
  border-radius: 2px;
  line-height: 1.2;
}

.win98-game-platform-tag.tag-touhou {
  color: #990000;
  background: #ffebeb;
  border: 1px solid #cc6666;
}

.win98-game-platform-tag.tag-pm {
  color: #7a5000;
  background: #fff8e6;
  border: 1px solid #cca300;
}

.win98-game-platform-tag.tag-rogue {
  color: #006600;
  background: #eaffea;
  border: 1px solid #33aa33;
}

.win98-game-lang-tag {
  font-size: 9px;
  color: #444;
  background: #ffffff;
  border: 1px solid #999;
  padding: 1px 4px;
  border-radius: 2px;
  line-height: 1.2;
}

/* 卡片专属美术插图 / 徽标区域 */
.win98-game-card-art {
  height: 60px;
  background: #f4f2ea;
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 7px;
  position: relative;
  overflow: hidden;
}

.win98-game-card-art.art-rogue {
  background: #000000;
}

.win98-emblem-rogue {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.win98-emblem-rogue .rogue-symbol {
  font-family: monospace;
  font-size: 24px;
  font-weight: bold;
  color: #00ff66;
  text-shadow: 0 0 8px rgba(0, 255, 102, 0.7);
  line-height: 1;
}

.win98-emblem-pm {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.win98-emblem-pm .pm-crown {
  font-size: 24px;
  color: #d4a017;
  line-height: 1;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
}

.win98-emblem-touhou {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.win98-emblem-touhou .touhou-svg {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 1px 2px rgba(136, 0, 0, 0.2));
}

.emblem-code {
  font-family: Tahoma, monospace;
  font-size: 8.5px;
  font-weight: bold;
  letter-spacing: 0.8px;
  color: #777777;
  margin-top: 2px;
}

.win98-game-card-art.art-rogue .emblem-code {
  color: #00aa44;
}

.win98-game-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 7px;
  min-height: 58px;
}

.win98-game-card-title {
  color: #000080;
  font-size: 12px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.win98-game-card-genre {
  color: #555555;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.win98-game-card-note {
  color: #666666;
  font-size: 9.5px;
  line-height: 1.35;
  margin: 3px 0 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 26px;
}

.win98-game-card-act {
  margin-top: auto;
}

.win98-game-run-btn {
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 6px;
  font-family: inherit;
  font-size: 11px;
  font-weight: bold;
  color: #000080;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #404040 #404040 #ffffff;
  box-shadow: inset 1px 1px 0 #dfdfdf;
  transition: all 0.1s ease;
}

.win98-game-run-btn:hover {
  background: #d4d0c8;
}

.win98-game-run-btn:active {
  border-color: #404040 #ffffff #ffffff #404040;
  box-shadow: inset 1px 1px 0 #000000;
  padding: 5px 5px 3px 7px;
}

/* 底部提示卡 */
.win98-games-notice {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  background: #ffffff;
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  padding: 6px 8px;
  font-size: 10.5px;
  color: #444444;
  line-height: 1.4;
  margin-top: 4px;
}

.win98-games-notice .notice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #000080;
  color: #ffffff;
  font-size: 9px;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 1px;
}

/* 运行态视窗 */
.win98-games-body.is-playing {
  display: flex;
  flex-direction: column;
  padding: 3px;
  min-height: 0;
  overflow: hidden;
}

.win98-game-running {
  display: flex;
  flex: 1;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  gap: 3px;
}

/* 运行态顶栏 (游戏工具栏：左侧返回按钮与标题) */
.win98-game-running-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  height: 24px;
  padding: 2px 4px;
  background: var(--w98-gray);
  border-bottom: 1px solid var(--w98-dark-gray);
  flex-shrink: 0;
}

.win98-game-running-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

/* 经典 Win98 工具栏风格返回游戏列表按钮 */
.win98-game-back-btn {
  height: 18px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  background: var(--w98-gray);
  color: var(--w98-black);
  cursor: pointer;
  border: 1.5px solid;
  border-color: var(--w98-white) var(--w98-darker-gray) var(--w98-darker-gray) var(--w98-white);
  box-shadow: inset 1px 1px 0 #dfdfdf;
  flex-shrink: 0;
  user-select: none;
  font-size: 11px;
  font-family: var(--w98-font);
}

.win98-game-back-btn:hover {
  background: #d4d0c8;
}

.win98-game-back-btn:active {
  border-color: var(--w98-darker-gray) var(--w98-white) var(--w98-white) var(--w98-darker-gray);
  box-shadow: inset 1px 1px 0 #000000;
  padding: 1px 5px 0 7px;
}

.win98-game-back-btn svg {
  width: 10px;
  height: 10px;
  pointer-events: none;
}

.win98-game-running-title {
  font-size: 11px;
  color: var(--w98-blue-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 模拟器画布容器 */
.win98-emulator-host {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex: 1;
  overflow: hidden;
  background: #000000;
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
}

.win98-emulator-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  border: 0;
}

.win98-window.is-maximized {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  left: 0 !important;
  top: 0 !important;
}

/* 窗口标题栏 (光标提示可抓取拖拽) */
.win98-title-bar {
  height: 22px;
  padding: 2px 3px 2px 4px;
  background: linear-gradient(90deg, var(--w98-blue-dark) 0%, var(--w98-blue-light) 100%);
  color: var(--w98-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.win98-title-bar:active {
  cursor: grabbing;
}

.win98-window.inactive .win98-title-bar {
  background: linear-gradient(90deg, #7c7870 0%, #9e9a92 100%);
  color: #cfcac0;
}

.win98-title-left {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: bold;
  font-size: 11px;
  letter-spacing: 0.5px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.win98-title-left svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.win98-title-controls {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.win98-btn-ctrl {
  width: 16px;
  height: 14px;
  background: var(--w98-gray);
  border: none;
  font-family: monospace;
  font-size: 9px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  color: var(--w98-black);
}

.win98-btn-ctrl:active {
  box-shadow: inset 1px 1px 0 var(--w98-black), inset -1px -1px 0 var(--w98-white);
}

/* 经典菜单栏 */
.win98-menu-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 6px;
  font-size: 11px;
  background: var(--w98-gray);
  border-bottom: 1px solid var(--w98-dark-gray);
}

.win98-menu-item {
  cursor: pointer;
  padding: 1px 4px;
}

.win98-menu-item:hover {
  background: var(--w98-blue-dark);
  color: var(--w98-white);
}

/* 资源管理器导航/工具栏 */
.win98-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  background: var(--w98-gray);
  border-bottom: 1px solid var(--w98-dark-gray);
  font-size: 11px;
}

.win98-tool-btn {
  background: var(--w98-gray);
  border: 1px solid transparent;
  padding: 2px 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  white-space: nowrap;
  flex-shrink: 0;
}

.win98-tool-btn:hover {
  border-top: 1px solid var(--w98-white);
  border-left: 1px solid var(--w98-white);
  border-right: 1px solid var(--w98-dark-gray);
  border-bottom: 1px solid var(--w98-dark-gray);
}

.win98-tool-btn:active {
  border-top: 1px solid var(--w98-dark-gray);
  border-left: 1px solid var(--w98-dark-gray);
  border-right: 1px solid var(--w98-white);
  border-bottom: 1px solid var(--w98-white);
}

/* 护眼暖纸白正文区域 (核心阅读载体：Notepad / WordPad) */
.win98-content-white {
  flex: 1;
  background-color: var(--w98-paper-bg) !important;
  color: var(--w98-paper-text) !important;
  margin: 3px;
  padding: 18px 24px;
  overflow-y: auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.8;
  user-select: text;
}

.win98-content-white h1 {
  font-size: 19px;
  font-weight: 700;
  color: #1a202c;
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #e7e2d8;
}

.win98-content-white h2 {
  font-size: 16px;
  font-weight: 600;
  color: #2d3748;
  margin: 16px 0 8px 0;
}

.win98-content-white p {
  margin: 10px 0;
  color: #3f4753;
}

/* 纯正原色插图：彻底跳出滤镜摧残，加装复古相框 */
.win98-content-white img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 16px auto;
  border: 1px solid #d8d3c7;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.12);
  border-radius: 3px;
  background: #f0ebe1;
}

.win98-content-white a {
  color: #0369a1;
  text-decoration: underline;
}

.win98-content-white a:hover {
  color: #075985;
}

/* 极客代码块与引用 */
.win98-content-white pre {
  background: #23272e;
  color: #f6f8fa;
  padding: 12px 16px;
  border-radius: 4px;
  font-family: var(--w98-font-mono);
  font-size: 13px;
  overflow-x: auto;
  margin: 14px 0;
}

.win98-content-white blockquote {
  margin: 12px 0;
  padding: 8px 16px;
  background: #ede8df;
  border-left: 4px solid #1a534d;
  color: #4a5568;
}

/* 资源管理器列表视图 (文章列表、项目列表) */
.win98-explorer-body {
  flex: 1;
  background: var(--w98-paper-bg);
  margin: 3px;
  display: flex;
  overflow: hidden;
}

.win98-explorer-sidebar {
  width: 135px;
  background: #ede8df;
  border-right: 1px solid #d8d3c7;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.win98-explorer-banner-title {
  font-weight: bold;
  font-size: 13px;
  color: #0f172a;
}

.win98-explorer-banner-desc {
  font-size: 11px;
  color: #64748b;
  line-height: 1.4;
}

.win98-explorer-file-list {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.win98-file-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  cursor: pointer;
  border-radius: 2px;
  border: 1px solid transparent;
}

.win98-file-row:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.win98-file-row:active,
.win98-file-row.active {
  background: var(--w98-blue-dark);
  color: #ffffff;
}

.win98-file-row svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.win98-file-name {
  flex: 1;
  font-weight: 500;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.win98-file-date {
  font-size: 11px;
  color: #94a3b8;
  font-family: var(--w98-font-mono);
}

.win98-file-row.active .win98-file-date {
  color: #e2e8f0;
}

/* 窗口底部状态栏 */
.win98-status-bar {
  height: 20px;
  padding: 1px 2px 1px 4px;
  background: var(--w98-gray);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #333333;
  user-select: none;
}

.win98-status-panel {
  padding: 1px 6px;
  height: 16px;
  line-height: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.win98-game-save-panel {
  display: flex;
  align-items: center;
  padding: 0 2px;
}

.win98-game-save-btn {
  font: inherit;
  font-size: 11px;
  color: #000000;
  background: var(--w98-gray);
  border: 1px solid;
  border-color: #ffffff #404040 #404040 #ffffff;
  box-shadow: inset 1px 1px 0 #dfdfdf;
  padding: 0 8px;
  height: 16px;
  line-height: 14px;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}

.win98-game-save-btn:disabled {
  color: #808080;
  cursor: default;
  box-shadow: none;
}

.win98-game-save-btn:not(:disabled):active {
  border-color: #404040 #ffffff #ffffff #404040;
  box-shadow: inset 1px 1px 0 #000000;
  padding: 1px 7px 0 9px;
}

/* 经典 Win98 状态栏右下角立体斜线拉伸缩放手柄 */
.win98-resize-handle {
  width: 14px;
  height: 16px;
  cursor: se-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  flex-shrink: 0;
  user-select: none;
  touch-action: none;
  opacity: 0.75;
}

.win98-resize-handle:hover {
  opacity: 1;
}

.win98-resize-handle svg {
  width: 12px;
  height: 12px;
}

/* 经典 Windows 98 底部任务栏 */
.win98-taskbar {
  height: 28px;
  background: var(--w98-gray);
  display: flex;
  align-items: center;
  padding: 2px 3px;
  gap: 4px;
  z-index: 100;
}

/* 开始按钮 (极简图标化) */
.win98-start-btn {
  height: 22px;
  width: 26px;
  min-width: 26px;
  padding: 2px;
  background: var(--w98-gray);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--w98-black);
}

.win98-start-btn.is-active,
.win98-start-btn:active {
  box-shadow: inset 1px 1px 0 var(--w98-black), inset -1px -1px 0 var(--w98-white);
  padding: 3px 1px 1px 3px;
}

.win98-start-btn svg {
  width: 15px;
  height: 15px;
}

/* 任务栏窗口切换列表 */
.win98-task-buttons {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 3px;
  overflow-x: auto;
  height: 100%;
}

.win98-task-tab {
  height: 22px;
  max-width: 150px;
  flex: 1;
  background: var(--w98-gray);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  font-size: 11px;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.win98-task-tab.active {
  background: #e0e0e0;
  box-shadow: inset 1px 1px 0 var(--w98-black), inset -1px -1px 0 var(--w98-white);
  font-weight: bold;
}

.win98-task-tab svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* 任务栏右侧托盘区 (System Tray) */
.win98-systray {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  height: 22px;
  font-size: 11px;
  font-family: var(--w98-font-mono);
  color: var(--w98-black);
  background: var(--w98-gray);
}

.win98-tray-icon {
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.win98-tray-icon svg {
  width: 12px;
  height: 12px;
}

/* 经典开始菜单弹出层 */
.win98-start-menu {
  position: absolute;
  bottom: 28px;
  left: 0;
  width: 190px;
  background: var(--w98-gray);
  display: flex;
  z-index: 200;
  box-shadow: 2px -2px 8px rgba(0, 0, 0, 0.4);
}

.win98-start-sidebar {
  width: 26px;
  background: linear-gradient(180deg, #000080 0%, #1084d0 100%);
  display: flex;
  align-items: flex-end;
  padding: 8px 3px;
}

.win98-start-banner-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--w98-white);
  font-weight: bold;
  font-size: 13px;
  letter-spacing: 2px;
}

.win98-start-menu-items {
  flex: 1;
  padding: 4px 2px;
  display: flex;
  flex-direction: column;
}

.win98-menu-entry {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font-size: 11px;
  color: var(--w98-black);
  cursor: pointer;
}

.win98-menu-entry:hover {
  background: var(--w98-blue-dark);
  color: var(--w98-white);
}

.win98-menu-entry svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.win98-menu-divider {
  height: 1px;
  border-top: 1px solid var(--w98-dark-gray);
  border-bottom: 1px solid var(--w98-white);
  margin: 3px 2px;
}

/* ==========================================================================
   千景小站与独立网页浏览器 (Browser & Webring CMS) 样式
   ========================================================================== */
.win98-browser-body {
  flex: 1;
  background: var(--w98-gray);
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.win98-browser-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--w98-gray);
  overflow: hidden;
  margin: 0;
}

.win98-browser-toolbar {
  height: 28px;
  padding: 2px 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--w98-gray);
  border-bottom: 1px solid var(--w98-dark-gray);
  flex-shrink: 0;
}

.win98-browser-btn {
  height: 22px;
  padding: 1px 7px;
  background: var(--w98-gray);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--w98-font);
  font-size: 11px;
  cursor: pointer;
  color: var(--w98-black);
  user-select: none;
}

.win98-browser-btn:active {
  box-shadow: inset 1px 1px 0 var(--w98-black), inset -1px -1px 0 var(--w98-white);
  padding: 2px 6px 0 8px;
}

.win98-browser-btn svg {
  width: 13px;
  height: 13px;
}

.win98-browser-address-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
}

.win98-browser-addr-label {
  font-size: 11px;
  color: #333;
  flex-shrink: 0;
}

.win98-browser-addr-input {
  flex: 1;
  height: 20px;
  background: #ffffff;
  color: #1a202c;
  padding: 1px 6px;
  font-family: var(--w98-font-mono);
  font-size: 11px;
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  user-select: text;
}

/* 小站 CMS Tab 导航栏 */
.win98-station-tabbar {
  display: flex;
  align-items: flex-end;
  padding: 3px 8px 0 8px;
  background: var(--w98-gray);
  gap: 4px;
  border-bottom: 1.5px solid var(--w98-dark-gray);
  flex-shrink: 0;
}

.win98-station-tab {
  height: 24px;
  padding: 2px 14px;
  background: #bfbab0;
  border-top: 1.5px solid var(--w98-white);
  border-left: 1.5px solid var(--w98-white);
  border-right: 1.5px solid var(--w98-darker-gray);
  border-bottom: none;
  font-family: var(--w98-font);
  font-size: 11px;
  cursor: pointer;
  color: #4a4740;
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
}

.win98-station-tab:hover {
  background: #cac5bc;
  color: #1f2328;
}

.win98-station-tab.active {
  background: var(--w98-paper-bg);
  color: #1a202c;
  font-weight: bold;
  height: 26px;
  border-bottom: 2px solid var(--w98-paper-bg);
  margin-bottom: -1.5px;
  z-index: 2;
  box-shadow: 0 -1px 2px rgba(0,0,0,0.05);
}

/* 浏览器主视窗 (燕麦暖纸白) */
.win98-browser-viewport {
  flex: 1;
  background: var(--w98-paper-bg);
  color: var(--w98-paper-text);
  overflow-y: auto;
  padding: 16px 20px;
  user-select: text;
}

/* 站点头部 Hero */
.win98-station-hero {
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e7e2d8;
}

.win98-hero-badge {
  display: inline-block;
  font-size: 10px;
  font-family: var(--w98-font-mono);
  background: var(--w98-blue-dark);
  color: #ffffff;
  padding: 1px 6px;
  border-radius: 2px;
  margin-bottom: 6px;
}

.win98-station-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a202c;
  margin: 2px 0 6px 0;
}

.win98-station-desc {
  font-size: 13px;
  color: #4a5568;
  line-height: 1.6;
  margin: 0 0 6px 0;
  white-space: pre-wrap;
}

.win98-station-stats {
  font-size: 11px;
  color: #88847c;
  font-family: var(--w98-font-mono);
}

/* 随笔文章卡片流 (支持带封面多列杂志网格) */
.win98-station-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.win98-article-card {
  background: #ffffff;
  border: 1px solid #dcd7cc;
  padding: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
}

.win98-article-card:hover {
  border-color: var(--w98-blue-dark);
  box-shadow: 1px 3px 10px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.win98-article-cover-box {
  width: 100%;
  height: 120px;
  position: relative;
  background: #23272e;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.win98-article-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.win98-article-cover-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1b3f63 0%, #2d5b84 50%, #1a534d 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--w98-white);
}

.win98-cover-ph-icon svg {
  width: 28px;
  height: 28px;
  filter: drop-shadow(1px 1px 0 rgba(0,0,0,0.5));
}

.win98-cover-ph-text {
  font-size: 10px;
  font-family: var(--w98-font-mono);
  letter-spacing: 1.5px;
  opacity: 0.85;
}

.win98-cover-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 2px;
  backdrop-filter: blur(2px);
  font-family: var(--w98-font-mono);
}

.win98-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 4px;
}

.win98-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #1b3f63;
  margin: 0 0 6px 0;
  line-height: 1.35;
}

.win98-article-card:hover .win98-card-title {
  color: #0284c7;
  text-decoration: underline;
}

.win98-card-excerpt {
  font-size: 12px;
  color: #4a5568;
  line-height: 1.5;
  margin: 0 0 10px 0;
  flex: 1;
}

.win98-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed #e8e3d8;
  padding-top: 8px;
}

.win98-card-id {
  font-size: 10px;
  color: #94a3b8;
  font-family: var(--w98-font-mono);
}

.win98-card-btn {
  font-size: 11px;
  padding: 2px 8px;
  cursor: pointer;
  background: var(--w98-gray);
  color: #1f2328;
}

/* 随笔正文阅读界面 */
.win98-reader-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2ddd3;
}

.win98-reader-path {
  font-size: 11px;
  color: #88847c;
  font-family: var(--w98-font-mono);
}

.win98-reader-container {
  padding: 4px 6px;
}

.win98-reader-cover-wrap {
  width: 100%;
  max-height: 180px;
  overflow: hidden;
  margin-bottom: 16px;
  background: #000;
}

.win98-reader-cover-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.win98-reader-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a202c;
  margin: 0 0 8px 0;
}

.win98-reader-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 18px;
  font-family: var(--w98-font-mono);
}

.win98-reader-cat-tag {
  background: var(--w98-blue-dark);
  color: #fff;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 2px;
  font-weight: bold;
}

/* 项目工坊卡片展示网格 */
.win98-station-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.win98-project-card {
  background: #ffffff;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid #dcd7cc;
}

.win98-project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-family: var(--w98-font-mono);
}

.badge-status.online { color: #16a34a; font-weight: bold; }
.badge-status.active { color: #2563eb; font-weight: bold; }
.badge-status.dev { color: #d97706; font-weight: bold; }
.badge-ver { color: #94a3b8; }

.win98-project-name {
  font-size: 14px;
  font-weight: 700;
  color: #1a202c;
  margin: 0;
}

.win98-project-info {
  font-size: 12px;
  color: #4a5568;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.win98-project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.win98-project-tags span {
  font-size: 10px;
  background: #f1f5f9;
  color: #475569;
  padding: 1px 5px;
  border-radius: 2px;
  font-family: var(--w98-font-mono);
}

/* 独立万维网友链网页视窗 */
.win98-friends-viewport {
  flex: 1;
  background: var(--w98-paper-bg);
  overflow-y: auto;
  padding: 16px 20px;
}

.win98-friends-hero {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e7e2d8;
}

.win98-friends-section-title {
  font-size: 13px;
  font-weight: bold;
  color: #1b3f63;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.win98-friends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.win98-friend-card {
  background: #ffffff;
  border: 1px solid #dcd7cc;
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  transition: all 0.15s ease;
}

.win98-friend-card { color:inherit; text-decoration:none; }
.win98-friend-card:focus-visible, .win98-project-link:focus-visible { outline:2px solid #0369a1; outline-offset:3px; }
.win98-friend-icon img { width:48px; height:48px; object-fit:cover; border-radius:6px; }
.win98-project-cover { width:100%; height:140px; object-fit:cover; border-radius:4px; margin-bottom:12px; }
.win98-project-link { display:inline-block; margin-top:14px; color:#0369a1; }
.win98-collection-empty { padding:20px; color:#64748b; }
.win98-friend-desc, .win98-project-info { white-space:pre-wrap; overflow-wrap:anywhere; }
.win98-friend-card:hover {
  border-color: var(--w98-blue-dark);
  box-shadow: 1px 2px 6px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

.win98-friend-icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
}

.win98-friend-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.win98-friend-name {
  font-size: 13px;
  font-weight: 700;
  color: #1a202c;
}

.win98-friend-desc {
  font-size: 11px;
  color: #4a5568;
  line-height: 1.5;
}

.win98-friend-url {
  font-size: 10px;
  color: #0284c7;
  font-family: var(--w98-font-mono);
  word-break: break-all;
}

.win98-friend-apply-card {
  background: #f0ebe1;
  padding: 12px 16px;
  font-size: 12px;
  line-height: 1.8;
  color: #334155;
  border: 1px solid #dcd7cc;
}

.win98-apply-title {
  font-weight: bold;
  color: #1e293b;
  margin-bottom: 4px;
}

/* 监视器环境融合与纯白底保护 */
.is-reading .scope-sheer-green-veil {
  opacity: 0.08 !important; /* 降低绿光纱层，避免染绿白底 */
}

.is-reading .scope-scanlines-layer {
  opacity: 0.15 !important; /* 细腻微弱扫描线，保留 CRT 显示器感但不妨碍阅读 */
}

/* 确保 CCTV 边角取景框和顶部/底部 HUD 参数浮在桌面之上，维持偷看监控感 */
.cctv-bracket,
.cctv-hud-top,
.cctv-hud-bottom {
  z-index: 150 !important;
  pointer-events: none;
}

/* 移动端与小屏适配 */
@media (max-width: 640px) {
  .win98-icons-grid {
    grid-template-rows: repeat(auto-fill, 70px);
    grid-template-columns: repeat(auto-fill, 64px);
    gap: 8px;
    padding: 8px;
  }
  .win98-icon-item {
    width: 60px;
  }
  .win98-content-white {
    padding: 12px 14px;
    font-size: 13px;
  }
  .win98-explorer-sidebar {
    display: none;
  }
}

/* ==========================================================================
   关于千景 专属排版与立绘展示样式 (PC-98 独立手记窗口)
   ========================================================================== */
.win98-about-container {
  max-width: 820px;
  margin: 0 auto;
}

.article-header-meta {
  border-bottom: 2px solid #e7e2d8;
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.article-main-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a202c;
  letter-spacing: 0.02em;
  margin: 0 0 6px 0;
}

.article-meta-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #64748b;
  font-family: var(--w98-font-mono);
}

.meta-tag-pill {
  background: var(--w98-blue-dark);
  color: #ffffff;
  padding: 1px 6px;
  border-radius: 2px;
  font-weight: bold;
}

.article-layout-grid {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.article-text-column {
  flex: 1;
  min-width: 0;
}

.article-text-column p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--w98-paper-text);
  margin-bottom: 12px;
}

.article-text-column p.lead-intro {
  font-size: 15px;
  font-weight: 500;
  color: #1e293b;
}

.article-text-column h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--w98-blue-dark);
  margin: 28px 0 12px 0;
  padding-bottom: 4px;
  border-bottom: 1px solid #e2ddd3;
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-text-column h2::before {
  content: "■";
  color: var(--w98-blue-dark);
  font-size: 11px;
}

.quote-box {
  background: #f2eee6;
  border-left: 3px solid var(--w98-blue-dark);
  padding: 8px 14px;
  margin: 12px 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--w98-blue-dark);
  line-height: 1.6;
}

.quote-box.gold {
  border-left-color: #b45309;
  color: #92400e;
  background: #fef3c7;
}

.article-end-mark {
  margin-top: 32px;
  padding-top: 12px;
  border-top: 1px dashed #dcd7cc;
  font-size: 12px;
  color: #88847c;
  font-family: var(--w98-font-mono);
  text-align: center;
}

.character-portrait-aside {
  flex: 0 0 200px;
  width: 200px;
  background: #f0ece3;
  padding: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.portrait-image-wrapper {
  width: 100%;
  background: #ffffff;
  padding: 4px;
  display: flex;
  justify-content: center;
}

.portrait-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  margin: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.portrait-caption {
  font-size: 11px;
  color: #57606a;
  text-align: center;
  font-family: var(--w98-font-mono);
  line-height: 1.4;
  border-top: 1px dashed #dcd7cc;
  width: 100%;
  padding-top: 4px;
}

@media (max-width: 640px) {
  .article-layout-grid {
    flex-direction: column-reverse;
    gap: 16px;
  }
  .character-portrait-aside {
    width: 100%;
    max-width: 180px;
    margin: 0 auto;
  }
}

/* ==========================================================================
   秘密联络.html 专属排版与通讯卡片样式 (PC-98 视窗通讯簿)
   ========================================================================== */
.win98-contact-container {
  max-width: 820px;
  margin: 0 auto;
  user-select: text;
}

.win98-contact-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  background: var(--w98-gray);
  border-bottom: 1px solid var(--w98-dark-gray);
  margin: -14px -14px 16px -14px;
  flex-wrap: wrap;
}

.win98-contact-btn {
  background: var(--w98-gray);
  border-top: 1.5px solid var(--w98-white);
  border-left: 1.5px solid var(--w98-white);
  border-right: 1.5px solid var(--w98-darker-gray);
  border-bottom: 1.5px solid var(--w98-darker-gray);
  box-shadow: inset -1px -1px 0 var(--w98-dark-gray), inset 1px 1px 0 #dfdfdf;
  font-family: var(--w98-font);
  font-size: 11.5px;
  padding: 2.5px 8px;
  color: var(--w98-black);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  user-select: none;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.3;
}

.win98-contact-btn:hover {
  background: #dad6ce;
}

.win98-contact-btn:active, .win98-contact-btn.is-active {
  border-top: 1.5px solid var(--w98-dark-gray);
  border-left: 1.5px solid var(--w98-dark-gray);
  border-right: 1.5px solid var(--w98-white);
  border-bottom: 1.5px solid var(--w98-white);
  box-shadow: inset 1px 1px 0 var(--w98-darker-gray), inset -1px -1px 0 #dfdfdf;
  transform: translate(1px, 1px);
}

.win98-contact-btn svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
  flex-shrink: 0;
}

.contact-layout-grid {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}

.character-card-aside {
  flex: 0 0 200px;
  width: 200px;
  background: #f0ece3;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.contact-main-column {
  flex: 1;
  min-width: 0;
}

.contact-intro-lead {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--w98-paper-text);
  margin-bottom: 16px;
}

.section-legend {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--w98-blue-dark);
  margin: 18px 0 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid #e2ddd3;
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-legend::before {
  content: "■";
  color: var(--w98-blue-dark);
  font-size: 11px;
}

.contact-channels-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-channel-card {
  background: #fbf9f5;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background-color 0.15s ease;
}

.contact-channel-card:hover {
  background: #f4efe6;
}

.channel-left-info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.channel-icon-box {
  width: 32px;
  height: 32px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 1px;
  margin-top: 2px;
}

.channel-icon-box svg {
  width: 20px;
  height: 20px;
}

.channel-text-details {
  min-width: 0;
  flex: 1;
}

.channel-type-label {
  font-size: 10px;
  color: #64748b;
  font-family: var(--w98-font-mono);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.channel-name-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.channel-value-code {
  display: inline-block;
  font-family: var(--w98-font-mono);
  font-size: 11.5px;
  color: #2d3748;
  background: #e9e4d9;
  padding: 1px 6px;
  border-radius: 2px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  user-select: all;
}

.channel-desc {
  font-size: 11.5px;
  color: #57606a;
  margin-top: 3px;
  line-height: 1.4;
}

.channel-actions-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.memo-card-box {
  background: #f4f0e6;
  border-left: 3px solid var(--w98-blue-dark);
  padding: 10px 12px;
  margin: 18px 0 12px;
  font-size: 12px;
  color: #374151;
  line-height: 1.6;
}

.memo-card-box strong {
  color: var(--w98-blue-dark);
}

.memo-card-box.gold {
  border-left-color: #b45309;
  background: #fdf8e6;
  color: #78350f;
}

.memo-card-box ul {
  margin-left: 18px;
  margin-top: 5px;
}

.memo-card-box li {
  margin-bottom: 3px;
}

@media (max-width: 640px) {
  .contact-layout-grid {
    flex-direction: column-reverse;
    gap: 16px;
  }
  .character-card-aside {
    width: 100%;
    max-width: 180px;
    margin: 0 auto;
  }
  .contact-channel-card {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .channel-actions-group {
    flex-direction: row;
    justify-content: flex-end;
  }
  .channel-actions-group .win98-contact-btn {
    flex: 1;
    justify-content: center;
  }
}

/* 关于与联络直接显示独立 HTML，滚动由页面自身处理。 */
.win98-profile-body {
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.win98-profile-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  border: 0;
  background: #faf7f2;
}

/* ==========================================================================
   回收站 专属视窗样式 (经典 Win98 Web 样式 Explorer 与详细资料列表)
   ========================================================================== */
.win98-recycle-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--w98-gray);
  padding: 2px;
  overflow: hidden;
  min-height: 0;
}

.win98-explorer-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 6px;
  background: var(--w98-gray);
  border-bottom: 1px solid var(--w98-dark-gray);
  font-size: 11px;
}

.win98-browser-addr-label {
  color: var(--w98-black);
  white-space: nowrap;
}

.win98-browser-addr-input {
  flex: 1;
  background: var(--w98-paper-bg);
  padding: 2px 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.win98-addr-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.win98-addr-icon svg {
  width: 14px;
  height: 14px;
}

.win98-recycle-layout {
  flex: 1;
  display: flex;
  min-height: 0;
  overflow: hidden;
  background: var(--w98-paper-bg);
  margin-top: 2px;
}

.win98-recycle-sidebar {
  width: 150px;
  background: #ede8df;
  border-right: 1px solid #d8d3c7;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  font-size: 11px;
}

.win98-recycle-icon-large {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.win98-recycle-icon-large svg {
  width: 32px;
  height: 32px;
}

.win98-recycle-title {
  font-size: 14px;
  font-weight: bold;
  color: var(--w98-blue-dark);
}

.win98-recycle-rule {
  height: 1px;
  background: linear-gradient(90deg, #b0aaa0 0%, transparent 100%);
  margin: 2px 0;
}

.win98-recycle-desc {
  font-size: 11px;
  color: #475569;
  line-height: 1.4;
}

.win98-recycle-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.win98-recycle-link {
  color: #000080;
  text-decoration: underline;
  cursor: pointer;
}

.win98-recycle-link:hover {
  color: #ef4444;
}

.win98-recycle-meta {
  color: #64748b;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: auto;
}

.win98-recycle-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  overflow: hidden;
  min-width: 0;
}

.win98-recycle-table-head {
  display: flex;
  background: var(--w98-gray);
  border-bottom: 1.5px solid var(--w98-dark-gray);
  font-size: 11px;
  user-select: none;
}

.win98-recycle-table-head > div {
  padding: 2px 6px;
  border-right: 1px solid var(--w98-dark-gray);
  border-top: 1px solid var(--w98-white);
  border-left: 1px solid var(--w98-white);
  box-shadow: inset -1px 0 0 var(--w98-white);
  font-weight: normal;
  white-space: nowrap;
}

.win98-recycle-table-head .col-name { width: 140px; }
.win98-recycle-table-head .col-loc { width: 110px; }
.win98-recycle-table-head .col-date { width: 110px; }
.win98-recycle-table-head .col-size { width: 65px; }
.win98-recycle-table-head .col-type { flex: 1; min-width: 70px; }

.win98-recycle-file-list {
  flex: 1;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}

.win98-recycle-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #88847c;
  user-select: none;
}

.win98-recycle-empty-state .empty-badge {
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 2px;
  color: #64748b;
}

.win98-recycle-empty-state .empty-tip {
  font-size: 11px;
  color: #94a3b8;
}

@media (max-width: 640px) {
  .win98-recycle-sidebar {
    display: none;
  }
}
