@font-face {
  font-family: "LongtingCalligraphy";
  src: url("../fonts/calligraphy.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   长亭白网络 一号机 — Windows 95 视觉层
   基础控件来自 98.css（MIT，jdan/98.css），这里放布局与站点定制。
   ========================================================================== */

:root {
  --desktop: #008080;
  --face: #c0c0c0;
  --face-light: #dfdfdf;
  --face-mid: #808080;
  --face-dark: #404040;
  --well: #ffffff;
  --well-text: #111111;
  --text: #111111;
  --text-soft: #444444;
  --navy: #000080;
  --blue: #1084d0;
  --title-a: #000080;
  --title-b: #1084d0;
  --link: #0000ee;
  --visited: #800080;
  --pink: #ff69b4;
  --green: #008000;
  --red: #800000;
  --yellow: #808000;
  --dotted: #808080;
  --font-ui: Tahoma, "MS Sans Serif", "Microsoft YaHei", "PingFang SC",
    "Noto Sans SC", "Segoe UI", sans-serif;
  --font-mono: "Cascadia Mono", "Consolas", "Courier New", monospace;
  --font-poem: "LongtingCalligraphy", "STKaiti", "KaiTi", "Kaiti SC", serif;
}

html.dark {
  --desktop: #000000;
  --face: #2b2b2b;
  --face-light: #4a4a4a;
  --face-mid: #111111;
  --face-dark: #000000;
  --well: #101010;
  --well-text: #f2f2f2;
  --text: #f2f2f2;
  --text-soft: #bdbdbd;
  --navy: #000080;
  --blue: #1084d0;
  --title-a: #000040;
  --title-b: #000080;
  --link: #8ab4ff;
  --visited: #d0a0ff;
  --pink: #ff8ac4;
  --green: #00c000;
  --red: #ff6060;
  --yellow: #e0e000;
  --dotted: #666666;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--desktop);
  min-height: 100%;
}

body {
  margin: 0;
  padding: 0 0 46px;
  min-height: 100vh;
  background-color: var(--desktop);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* 98.css 默认使用像素字体/11px；这里统一切换为更清晰的系统字体。 */
.window,
.title-bar,
.menu-bar,
.toolbar,
.status-bar,
.taskbar,
.start-menu,
button,
input,
select,
textarea,
label,
option {
  font-family: var(--font-ui);
}

.window {
  font-size: 14px;
}

.title-bar,
.menu-bar,
.toolbar,
.status-bar,
.taskbar,
.start-menu,
button,
input,
select,
textarea,
label,
option {
  font-size: 13px;
}

.window-body {
  font-size: 14px;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.035) 0,
    rgba(0, 0, 0, 0.035) 1px,
    transparent 1px,
    transparent 4px
  );
}

::selection {
  background: var(--navy);
  color: #ffffff;
}

a {
  color: var(--link);
}

a:visited {
  color: var(--visited);
}

img {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font-family: var(--font-ui);
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
ul,
ol {
  margin-top: 0;
}

.ico {
  width: 16px;
  height: 16px;
  display: block;
  flex: 0 0 auto;
}

.ico-lg {
  width: 32px;
  height: 32px;
}

.hidden,
[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 10000;
  padding: 6px 10px;
  background: var(--face);
  color: var(--text);
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #ffffff,
    inset -2px -2px var(--face-mid), inset 2px 2px var(--face-light);
}

.skip-link:focus {
  left: 8px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 1px dotted var(--navy);
  outline-offset: 1px;
}

/* ==========================================================================
   桌面 / 主窗口
   ========================================================================== */

.desktop {
  width: 100%;
  padding: 16px 16px 8px;
}

.app-window {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  background: var(--face);
}

.app-window .title-bar {
  min-height: 24px;
}

.title-bar-text {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.title-bar-text .app-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.title-bar-controls button {
  cursor: default;
}

.main-body {
  margin: 0;
  padding: 8px;
  background: var(--face);
}

/* ==========================================================================
   菜单栏
   ========================================================================== */

.menu-bar {
  position: relative;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1px;
  min-height: 22px;
  padding: 1px 2px;
  background: var(--face);
  border-bottom: 1px solid var(--face-mid);
}

.menu-group {
  position: relative;
}

.menu-btn {
  min-width: 0;
  min-height: 0;
  padding: 2px 8px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text);
  font-size: 12px;
  line-height: 18px;
}

.menu-btn:hover,
.menu-btn[aria-expanded="true"] {
  background: var(--navy);
  color: #ffffff;
}

.menu-popup {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 120;
  display: none;
  min-width: 190px;
  margin: 0;
  padding: 2px;
  list-style: none;
  background: var(--face);
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #ffffff,
    inset -2px -2px var(--face-mid), inset 2px 2px var(--face-light);
}

.menu-popup.open {
  display: block;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  padding: 4px 18px 4px 8px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.menu-item:hover,
.menu-item:focus {
  background: var(--navy);
  color: #ffffff;
  outline: none;
}

.menu-item .ico {
  width: 16px;
  height: 16px;
}

.menu-sep {
  height: 2px;
  margin: 3px 2px;
  border-top: 1px solid var(--face-mid);
  border-bottom: 1px solid var(--face-light);
}

.menu-status {
  margin-left: auto;
  padding: 0 8px;
  color: var(--text-soft);
  font-size: 11px;
  white-space: nowrap;
}

/* ==========================================================================
   工具栏 / 按钮
   ========================================================================== */

.toolbar {
  position: relative;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  padding: 3px 4px;
  background: var(--face);
  border-bottom: 1px solid var(--face-mid);
}

.tool-btn,
.btn95 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 28px;
  padding: 3px 9px;
  border: 0;
  border-radius: 0;
  background: var(--face);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #ffffff,
    inset -2px -2px var(--face-mid), inset 2px 2px var(--face-light);
}

.tool-btn:hover,
.btn95:hover {
  background: var(--face-light);
}

.tool-btn:visited,
.btn95:visited {
  color: var(--text);
}

.tool-btn:active,
.btn95:active,
.tool-btn.current {
  padding: 4px 8px 2px 10px;
  box-shadow: inset 1px 1px #0a0a0a, inset -1px -1px #ffffff,
    inset 2px 2px var(--face-mid), inset -2px -2px var(--face-light);
}

.tool-btn.current {
  font-weight: 700;
}

.tool-btn .ico,
.btn95 .ico {
  width: 16px;
  height: 16px;
}

.tool-btn.icon-only {
  width: 32px;
  padding: 3px;
  justify-content: center;
}

.tool-btn.icon-only:active {
  padding: 4px 2px 2px 4px;
}

.toolbar-sep {
  align-self: stretch;
  width: 2px;
  margin: 2px 4px;
  border-left: 1px solid var(--face-mid);
  border-right: 1px solid var(--face-light);
}

.toolbar-spacer {
  flex: 1 1 auto;
}

.account-wrap {
  position: relative;
  display: inline-flex;
}

.account-btn {
  max-width: 150px;
}

.account-btn #account-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu {
  top: calc(100% + 2px);
  right: 0;
  left: auto;
  min-width: 200px;
}

.account-menu:not([hidden]) {
  display: block;
}

.account-menu-info {
  padding: 5px 8px;
  border-bottom: 1px solid var(--face-mid);
  color: var(--text-soft);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.btn95 {
  min-height: 25px;
  padding: 3px 12px;
}

.btn95.default {
  font-weight: 700;
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #ffffff,
    inset -2px -2px var(--face-mid), inset 2px 2px var(--face-light),
    0 0 0 1px var(--text);
}

.btn95.danger {
  color: var(--red);
}

.link-btn {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--link);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 21px;
  padding: 1px 7px;
  border: 0;
  background: var(--face);
  color: var(--text);
  font: inherit;
  font-size: 11px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #ffffff,
    inset -2px -2px var(--face-mid), inset 2px 2px var(--face-light);
}

.mini-btn:active {
  box-shadow: inset 1px 1px #0a0a0a, inset -1px -1px #ffffff,
    inset 2px 2px var(--face-mid), inset -2px -2px var(--face-light);
}

.label-short {
  display: none;
}

/* ==========================================================================
   品牌区 / 页面标题
   ========================================================================== */

.brand-plate {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: var(--well);
  color: var(--well-text);
  box-shadow: inset 1px 1px var(--face-mid), inset -1px -1px var(--face-light),
    inset 2px 2px var(--face-dark), inset -2px -2px var(--face);
}

.brand-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 360px;
  max-height: 92px;
}

.brand-meta {
  margin-left: auto;
  padding-left: 16px;
  border-left: 2px groove var(--face-light);
  text-align: right;
  line-height: 1.4;
}

.brand-meta .sys-name {
  display: block;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-meta .sys-sub {
  display: block;
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 11px;
}

.ready-line {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
}

html.dark .brand-meta .sys-name {
  color: #8ab4ff;
}

/* ==========================================================================
   页面网格
   ========================================================================== */

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(350px, 0.9fr);
  gap: 8px;
  align-items: start;
}

.left-column,
.right-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.group-box {
  min-width: 0;
  margin: 0;
  background: transparent;
}

.group-box > legend {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 6px;
  background: var(--face);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.group-box > legend .ico {
  width: 14px;
  height: 14px;
}

.well {
  background: var(--well);
  color: var(--well-text);
  box-shadow: inset 1px 1px var(--face-mid), inset -1px -1px var(--face-light),
    inset 2px 2px var(--face-dark), inset -2px -2px var(--face);
}

/* ==========================================================================
   公告栏
   ========================================================================== */

.announcement-box {
  margin-bottom: 8px;
}

.announcement-well {
  padding: 10px 12px;
}

.announcement-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.announcement-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: 15px;
  line-height: 1.35;
}

html.dark .announcement-head h2 {
  color: #8ab4ff;
}

.announcement-text {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.announcement-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding-top: 4px;
  border-top: 1px dotted var(--dotted);
  color: var(--text-soft);
  font-size: 11px;
}

.announcement-meta .announcement-state {
  color: var(--green);
  font-weight: 700;
}

/* ==========================================================================
   诗句 / 二维码
   ========================================================================== */

.poem-paper {
  padding: 18px 22px;
}

.poem {
  margin: 0;
  color: #111111;
  font-family: var(--font-poem);
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

html.dark .poem {
  color: #f5f5dc;
}

.info-grid {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  gap: 8px;
}

.qr-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 4px;
}

.qr-img {
  width: 132px;
  height: 132px;
  padding: 4px;
  background: #ffffff;
  border: 1px solid #000000;
  image-rendering: auto;
}

.qr-caption {
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}

/* ==========================================================================
   访客 / 服务器信息
   ========================================================================== */

.info-body {
  padding: 4px 10px;
}

.kv-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  border-bottom: 1px dotted var(--dotted);
}

.kv-row:last-child {
  border-bottom: 0;
}

.kv-label {
  flex: 0 0 auto;
  color: var(--text-soft);
  font-size: 12px;
}

.kv-value {
  min-width: 0;
  margin-left: auto;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
  overflow-wrap: anywhere;
}

.kv-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.net-led {
  display: inline-block;
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  background: var(--face-mid);
  box-shadow: inset 1px 1px #ffffff, inset -1px -1px #000000;
}

.net-led.on {
  background: var(--green);
  box-shadow: inset 1px 1px #7fff7f, inset -1px -1px #003000;
}

.net-led.off {
  background: #c00000;
  box-shadow: inset 1px 1px #ff8080, inset -1px -1px #400000;
}

.net-led.wait {
  background: #c0c000;
  animation: led-blink 1s steps(2, end) infinite;
}

@keyframes led-blink {
  50% {
    opacity: 0.35;
  }
}

.cpu-bar {
  height: 14px;
  margin: 3px 0 7px;
  padding: 2px;
  background: var(--well);
  box-shadow: inset 1px 1px var(--face-mid), inset -1px -1px var(--face-light);
}

.cpu-bar-fill {
  width: 0;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    var(--navy) 0,
    var(--navy) 6px,
    transparent 6px,
    transparent 8px
  );
  transition: width 0.45s steps(10, end);
}

/* ==========================================================================
   罗盘时钟
   ========================================================================== */

.clock-box {
  display: flex;
  flex-direction: column;
}

.clock-stage {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 8px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--well);
  box-shadow: inset 1px 1px var(--face-mid), inset -1px -1px var(--face-light),
    inset 2px 2px var(--face-dark), inset -2px -2px var(--face);
}

.roulette-clock {
  position: relative;
  width: 100%;
  height: 100%;
}

.rc-rings,
.rc-ring {
  position: absolute;
  inset: 0;
}

.rc-ring span {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  color: var(--clock-dim, #8a8a8a);
  font-family: var(--font-ui);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition: left 0.9s ease-in-out, top 0.9s ease-in-out, color 0.25s;
}

.rc-ring span.active {
  color: var(--navy);
  font-weight: 700;
}

html.dark .rc-ring span {
  color: #7a7a7a;
}

html.dark .rc-ring span.active {
  color: #ffffff;
}

.clock-readout {
  margin-top: 6px;
  padding: 3px 8px;
  color: var(--well-text);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: center;
  background: var(--well);
  box-shadow: inset 1px 1px var(--face-mid), inset -1px -1px var(--face-light);
}

/* ==========================================================================
   快捷方式
   ========================================================================== */

.shortcut-list {
  display: grid;
  gap: 3px;
  padding: 5px;
}

.shortcut {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 7px;
  color: var(--text);
  text-decoration: none;
  border: 1px dotted transparent;
}

.shortcut:hover,
.shortcut:focus {
  background: var(--navy);
  color: #ffffff;
  text-decoration: none;
  outline: none;
}

.shortcut .ico {
  width: 20px;
  height: 20px;
}

.shortcut small {
  margin-left: auto;
  color: var(--text-soft);
  font-size: 10px;
}

.shortcut:hover small,
.shortcut:focus small {
  color: #d0d0ff;
}

/* ==========================================================================
   页脚状态栏
   ========================================================================== */

.status-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 2px;
  background: var(--face);
  border-top: 1px solid var(--face-light);
}

.status-field {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 21px;
  padding: 2px 8px;
  color: var(--text-soft);
  font-size: 11px;
  box-shadow: inset 1px 1px var(--face-mid), inset -1px -1px var(--face-light);
}

.status-field.grow {
  flex: 1 1 auto;
  min-width: 140px;
}

.status-field.right {
  margin-left: auto;
}

.status-field a {
  color: inherit;
}

.icp-link {
  color: var(--pink) !important;
  font-weight: 700;
  text-decoration: none;
  text-shadow: 1px 1px 0 #000000;
}

.icp-link:hover {
  text-decoration: underline;
}

.badge {
  display: inline-block;
  width: auto;
  height: 15px;
  vertical-align: middle;
}

/* ==========================================================================
   任务栏 / 开始菜单
   ========================================================================== */

.taskbar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  padding: 3px 4px;
  background: var(--face);
  border-top: 1px solid var(--face-light);
  box-shadow: 0 -1px 0 var(--face-mid);
}

.start-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 70px;
  height: 32px;
  padding: 2px 8px;
  border: 0;
  background: var(--face);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #ffffff,
    inset -2px -2px var(--face-mid), inset 2px 2px var(--face-light);
}

.start-btn:active,
.start-btn[aria-expanded="true"] {
  padding: 3px 7px 1px 9px;
  box-shadow: inset 1px 1px #0a0a0a, inset -1px -1px #ffffff,
    inset 2px 2px var(--face-mid), inset -2px -2px var(--face-light);
}

.taskbar-sep {
  align-self: stretch;
  width: 2px;
  margin: 2px 3px;
  border-left: 1px solid var(--face-mid);
  border-right: 1px solid var(--face-light);
}

.task-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  max-width: 200px;
  height: 30px;
  padding: 2px 9px;
  overflow: hidden;
  border: 0;
  background: var(--face);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  line-height: 1.1;
  text-align: left;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #ffffff,
    inset -2px -2px var(--face-mid), inset 2px 2px var(--face-light);
}

.task-btn.current {
  font-weight: 700;
  box-shadow: inset 1px 1px #0a0a0a, inset -1px -1px #ffffff,
    inset 2px 2px var(--face-mid), inset -2px -2px var(--face-light);
}

.taskbar-spacer {
  flex: 1 1 auto;
}

.tray {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 2px 9px;
  color: var(--text);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 1px 1px var(--face-mid), inset -1px -1px var(--face-light);
}

.tray .ico {
  width: 16px;
  height: 16px;
}

.start-menu {
  position: fixed;
  bottom: 42px;
  left: 4px;
  z-index: 950;
  display: flex;
  width: 254px;
  padding: 3px;
  background: var(--face);
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #ffffff,
    inset -2px -2px var(--face-mid), inset 2px 2px var(--face-light);
}

.start-rail {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 26px;
  padding: 6px 3px;
  background: linear-gradient(180deg, var(--navy), #1084d0);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.start-items {
  flex: 1 1 auto;
  padding: 2px;
}

.start-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-width: 0;
  padding: 6px 8px;
  border: 1px dotted transparent;
  background: transparent;
  box-shadow: none;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.start-item:hover,
.start-item:focus {
  background: var(--navy);
  color: #ffffff;
  outline: none;
}

.start-item .ico {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   博客列表
   ========================================================================== */

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 4px 10px;
  margin-bottom: 8px;
  border-bottom: 2px groove var(--face-light);
}

.page-head h1 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.2;
}

html.dark .page-head h1 {
  color: #8ab4ff;
}

.page-head p {
  margin: 3px 0 0;
  color: var(--text-soft);
  font-size: 12px;
}

.page-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.blog-layout {
  display: grid;
  grid-template-columns: 215px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.blog-main {
  min-width: 0;
}

.list-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 3px 6px;
  color: var(--text-soft);
  font-size: 11px;
}

.list-toolbar .spacer {
  flex: 1 1 auto;
}

.post-list {
  min-height: 280px;
  padding: 4px;
}

.post-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 8px;
  color: var(--well-text);
  text-decoration: none;
  border-bottom: 1px dotted var(--dotted);
}

.post-row:last-child {
  border-bottom: 0;
}

.post-row:hover,
.post-row:focus {
  background: var(--navy);
  color: #ffffff;
  outline: none;
}

.post-row .post-row-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  margin-top: 1px;
}

.post-row-main {
  min-width: 0;
  flex: 1 1 auto;
}

.post-row h2 {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.post-excerpt {
  margin: 3px 0 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.post-row:hover .post-excerpt,
.post-row:focus .post-excerpt {
  color: #d8d8ff;
}

.post-row-meta {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.6;
  text-align: right;
  white-space: nowrap;
}

.post-row:hover .post-row-meta,
.post-row:focus .post-row-meta {
  color: #d8d8ff;
}

.state-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 260px;
  padding: 24px 16px;
  color: var(--text-soft);
  text-align: center;
}

.state-box .ico {
  width: 32px;
  height: 32px;
}

.state-box strong {
  color: var(--text);
  font-size: 13px;
}

.state-box p {
  margin: 0;
  font-size: 12px;
}

/* ==========================================================================
   文章页
   ========================================================================== */

.post-wrap {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 2px 8px;
  color: var(--text-soft);
  font-size: 12px;
}

.breadcrumb a {
  color: var(--navy);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.post-article {
  padding: 18px 22px 16px;
}

.post-title {
  margin: 0;
  color: var(--navy);
  font-size: 24px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

html.dark .post-title {
  color: #8ab4ff;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 6px;
  padding-bottom: 10px;
  border-bottom: 2px groove var(--face-light);
  color: var(--text-soft);
  font-size: 11px;
}

.post-body {
  padding-top: 4px;
  color: var(--well-text);
  font-size: 14px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.post-body h2,
.post-body h3,
.post-body h4 {
  margin: 20px 0 8px;
  color: var(--navy);
  line-height: 1.4;
}

.post-body h2 {
  font-size: 18px;
}

.post-body h3 {
  font-size: 16px;
}

.post-body h4 {
  font-size: 14px;
}

.post-body p {
  margin: 0 0 13px;
  white-space: pre-wrap;
}

.post-body ul,
.post-body ol {
  margin: 0 0 13px;
  padding-left: 24px;
}

.post-body li {
  margin: 2px 0;
}

.post-body blockquote {
  margin: 12px 0;
  padding: 6px 12px;
  border-left: 4px solid var(--navy);
  background: var(--face);
}

.post-body code {
  padding: 1px 4px;
  background: var(--face);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.92em;
}

.post-body a {
  color: var(--navy);
}

.post-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 14px;
  margin-top: 16px;
  border-top: 2px groove var(--face-light);
}

/* ==========================================================================
   控制面板
   ========================================================================== */

.admin-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 4px 10px;
  margin-bottom: 8px;
  border-bottom: 2px groove var(--face-light);
}

.admin-head h1 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--navy);
  font-size: 20px;
}

html.dark .admin-head h1 {
  color: #8ab4ff;
}

.admin-head p {
  margin: 3px 0 0;
  color: var(--text-soft);
  font-size: 12px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0 0 0 4px;
  padding: 0;
  list-style: none;
}

.tab-btn {
  min-width: 88px;
  min-height: 27px;
  padding: 3px 12px;
  border: 0;
  border-bottom: 0;
  background: var(--face);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  box-shadow: inset -1px 0 #0a0a0a, inset 1px 1px #ffffff,
    inset -2px 0 var(--face-mid), inset 2px 2px var(--face-light);
}

.tab-btn[aria-selected="true"] {
  position: relative;
  top: 1px;
  z-index: 2;
  padding-bottom: 4px;
  font-weight: 700;
  background: var(--face);
}

.tab-panel {
  padding: 10px;
  background: var(--face);
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #ffffff,
    inset -2px -2px var(--face-mid), inset 2px 2px var(--face-light);
}

.tab-panel[hidden] {
  display: none !important;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 780px;
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 8px;
}

.field-row-stacked {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.field-row-stacked > label,
.field-label {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.field-row-stacked input,
.field-row-stacked textarea,
.field-row-stacked select {
  width: 100%;
}

input[type="text"],
input[type="password"],
input[type="search"],
textarea,
select {
  font-size: 13px;
}

textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.55;
}

.form-hint {
  margin: 0;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.5;
}

.form-error {
  min-height: 0;
  margin: 0;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
}

.form-error:empty {
  display: none;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-top: 2px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12px;
}

.form-check label {
  line-height: 1.5;
}

.admin-split {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.admin-post-list {
  min-height: 220px;
  max-height: 460px;
  overflow: auto;
  padding: 3px;
}

.admin-post-row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 6px 6px;
  border: 0;
  border-bottom: 1px dotted var(--dotted);
  background: transparent;
  color: var(--well-text);
  font: inherit;
  font-size: 12px;
  text-align: left;
}

.admin-post-row:hover,
.admin-post-row:focus {
  background: var(--navy);
  color: #ffffff;
  outline: none;
}

.admin-post-row.current {
  background: var(--navy);
  color: #ffffff;
  font-weight: 700;
}

.admin-post-row .status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: var(--face-mid);
}

.admin-post-row .status-dot.published {
  background: var(--green);
}

.admin-post-row .row-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-post-row .row-date {
  margin-left: auto;
  color: var(--text-soft);
  font-size: 10px;
  white-space: nowrap;
}

.admin-post-row:hover .row-date,
.admin-post-row.current .row-date {
  color: #d8d8ff;
}

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.settings-block {
  max-width: 660px;
}

.settings-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px;
  background: var(--well);
  color: var(--well-text);
  box-shadow: inset 1px 1px var(--face-mid), inset -1px -1px var(--face-light);
}

.settings-line .ico {
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.settings-line strong {
  display: block;
  font-size: 13px;
}

.settings-line p {
  margin: 2px 0 0;
  color: var(--text-soft);
  font-size: 11px;
}

.status-message {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 20px;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
}

.status-message.error {
  color: var(--red);
}

/* ==========================================================================
   对话框 / 表单
   ========================================================================== */

dialog.win-dialog {
  width: min(470px, calc(100vw - 24px));
  max-width: none;
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  overflow: visible;
}

dialog.win-dialog::backdrop {
  background: rgba(0, 0, 0, 0.45);
}

.win-dialog .window {
  width: 100%;
  max-height: calc(100vh - 32px);
  background: var(--face);
}

.win-dialog .window-body {
  margin: 0;
  padding: 12px;
  max-height: calc(100vh - 92px);
  overflow: auto;
}

.dialog-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dialog-text {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.dialog-note {
  padding: 8px;
  margin: 8px 0;
  background: var(--well);
  color: var(--well-text);
  box-shadow: inset 1px 1px var(--face-mid), inset -1px -1px var(--face-light);
  font-size: 11px;
  line-height: 1.55;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 14px;
}

.dialog-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  float: left;
  margin: 0 10px 6px 0;
}

.auth-switch {
  display: flex;
  gap: 2px;
  margin-bottom: 10px;
}

.auth-switch button {
  min-width: 76px;
  min-height: 24px;
  padding: 2px 10px;
  border: 0;
  background: var(--face);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #ffffff,
    inset -2px -2px var(--face-mid), inset 2px 2px var(--face-light);
}

.auth-switch button[aria-pressed="true"] {
  font-weight: 700;
  box-shadow: inset 1px 1px #0a0a0a, inset -1px -1px #ffffff,
    inset 2px 2px var(--face-mid), inset -2px -2px var(--face-light);
}

.dialog-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ==========================================================================
   响应式
   ========================================================================== */

@media (max-width: 1100px) {
  .home-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
  }

  .brand-logo {
    max-width: 320px;
    max-height: 82px;
  }

  .clock-stage {
    max-width: 460px;
  }
}

@media (max-width: 930px) {
  .home-grid {
    grid-template-columns: 1fr;
  }

  .right-column {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    align-items: start;
  }

  .clock-stage {
    max-width: 500px;
  }

  .blog-layout {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .admin-split {
    grid-template-columns: 240px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: 42px;
    font-size: 12px;
  }

  .desktop {
    padding: 0;
  }

  .app-window {
    max-width: none;
  }

  .main-body {
    padding: 6px;
  }

  .title-bar-text {
    font-size: 12px;
  }

  .brand-plate {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
  }

  .brand-logo {
    width: 100%;
    max-width: none;
    max-height: none;
  }

  .brand-meta {
    width: 100%;
    margin: 0;
    padding: 6px 0 0;
    border-top: 2px groove var(--face-light);
    border-left: 0;
    text-align: left;
  }

  .brand-meta .sys-name,
  .brand-meta .sys-sub,
  .ready-line {
    display: inline-flex;
    margin-right: 10px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .qr-inner {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
  }

  .qr-img {
    width: 104px;
    height: 104px;
  }

  .qr-caption {
    text-align: left;
  }

  .right-column {
    display: flex;
    align-items: stretch;
  }

  .clock-stage {
    max-width: 100%;
  }

  .blog-layout,
  .admin-split {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    order: 2;
  }

  .blog-main {
    order: 1;
  }

  .post-row {
    flex-wrap: wrap;
  }

  .post-row-meta {
    width: 100%;
    margin-left: 42px;
    text-align: left;
  }

  .page-head,
  .admin-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-head-actions {
    justify-content: flex-start;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .admin-post-list {
    max-height: 280px;
  }

  .status-field.right {
    margin-left: 0;
  }

  .menu-status {
    display: none;
  }

  .taskbar {
    height: 36px;
  }

  .start-btn {
    min-width: 62px;
    height: 28px;
    font-size: 12px;
  }

  .task-btn {
    max-width: 130px;
    height: 26px;
    font-size: 11px;
  }

  .tray {
    height: 26px;
    padding: 1px 6px;
    font-size: 11px;
  }

  .start-menu {
    bottom: 38px;
  }

  .label-full {
    display: none;
  }

  .label-short {
    display: inline;
  }

  body::after {
    display: none;
  }
}

@media (max-width: 560px) {
  .toolbar {
    gap: 1px;
    padding: 2px;
  }

  .tool-btn {
    min-height: 26px;
    padding: 2px 7px;
    font-size: 11px;
  }

  .tool-btn .ico {
    width: 14px;
    height: 14px;
  }

  .tool-btn.icon-only {
    width: 30px;
  }

  .toolbar-sep {
    margin: 2px;
  }

  .poem-paper {
    padding: 12px 14px;
  }

  .poem {
    font-size: 26px;
    line-height: 1.55;
  }

  .announcement-well {
    padding: 8px 9px;
  }

  .announcement-head h2 {
    font-size: 14px;
  }

  .announcement-text {
    font-size: 12px;
  }

  .kv-row {
    gap: 8px;
  }

  .kv-label,
  .kv-value {
    font-size: 11px;
  }

  .clock-stage {
    padding: 5px;
  }

  .post-title {
    font-size: 20px;
  }

  .post-article {
    padding: 12px 12px;
  }

  .post-body {
    font-size: 13px;
  }

  .status-field {
    flex: 1 1 100%;
    min-height: 19px;
  }

  .status-field.right {
    display: none;
  }

  .task-btn {
    display: none;
  }

  .task-btn.current {
    display: inline-flex;
    max-width: 120px;
  }

  .start-menu {
    right: 4px;
    width: auto;
  }

  .start-rail {
    display: none;
  }
}

@media (max-width: 390px) {
  .tool-btn.account-btn .label-full {
    display: none;
  }

  .tool-btn.account-btn .label-short {
    display: inline;
  }

  .poem {
    font-size: 23px;
  }

  .qr-inner {
    align-items: flex-start;
  }

  .qr-img {
    width: 92px;
    height: 92px;
  }

  .title-bar-controls button {
    min-width: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   深色 / 高对比模式（保留原来的主题切换）
   ========================================================================== */

html.dark body {
  background-color: var(--desktop);
}

html.dark .window,
html.dark .app-window,
html.dark .main-body,
html.dark .toolbar,
html.dark .menu-bar,
html.dark .status-bar,
html.dark .taskbar,
html.dark .tab-panel,
html.dark .tab-btn,
html.dark .start-menu {
  background: var(--face);
}

html.dark .window {
  box-shadow: inset -1px -1px #000000, inset 1px 1px #5a5a5a,
    inset -2px -2px #111111, inset 2px 2px #3a3a3a;
}

html.dark .title-bar.inactive {
  background: linear-gradient(90deg, #333333, #555555);
}

html.dark button,
html.dark input,
html.dark select,
html.dark textarea,
html.dark .tool-btn,
html.dark .btn95,
html.dark .mini-btn,
html.dark .task-btn,
html.dark .start-btn,
html.dark .auth-switch button {
  background: var(--face);
  color: var(--text);
  box-shadow: inset -1px -1px #000000, inset 1px 1px #5a5a5a,
    inset -2px -2px #111111, inset 2px 2px #3a3a3a;
}

html.dark input[type="text"],
html.dark input[type="password"],
html.dark input[type="search"],
html.dark textarea,
html.dark select {
  background: var(--well);
  color: var(--well-text);
}

html.dark fieldset {
  box-shadow: inset -1px -1px #5a5a5a, inset 1px 1px #000000,
    inset -2px -2px #3a3a3a, inset 2px 2px #111111;
}

html.dark .group-box > legend,
html.dark legend {
  background: var(--face);
  color: var(--text);
}

html.dark .brand-plate,
html.dark .well,
html.dark .post-list,
html.dark .post-row,
html.dark .settings-line,
html.dark .dialog-note,
html.dark .status-message {
  background: var(--well);
  color: var(--well-text);
}

html.dark .poem-paper,
html.dark .clock-stage,
html.dark .announcement-well,
html.dark .cpu-bar,
html.dark .clock-readout {
  background: var(--well);
  box-shadow: inset 1px 1px #000000, inset -1px -1px #5a5a5a,
    inset 2px 2px #111111, inset -2px -2px #3a3a3a;
}

html.dark .post-row:hover,
html.dark .post-row:focus {
  background: var(--navy);
  color: #ffffff;
}

html.dark .menu-item:hover,
html.dark .menu-item:focus,
html.dark .start-item:hover,
html.dark .start-item:focus {
  color: #ffffff;
}

html.dark .menu-btn,
html.dark .tool-btn,
html.dark .menu-status,
html.dark .status-field {
  color: #f5f5f5;
}

html.dark .menu-btn,
html.dark .tool-btn {
  font-weight: 700;
}

html.dark .brand-meta .sys-sub,
html.dark .form-hint,
html.dark .kv-label,
html.dark .announcement-meta,
html.dark .post-excerpt {
  color: #d0d0d0;
}

html.dark .kv-value,
html.dark .post-body,
html.dark .settings-line strong {
  color: var(--well-text);
}

html.dark .post-body a,
html.dark .breadcrumb a,
html.dark .post-body h2,
html.dark .post-body h3,
html.dark .post-body h4 {
  color: #8ab4ff;
}

html.dark .post-body code {
  background: #2b2b2b;
  color: #f2f2f2;
}

/* 深色模式下把二维码放进浅灰“扫描面板”，避免纯白方块突兀。 */
html.dark .qr-box .qr-inner {
  background: #d4d0c8;
  color: #111111;
  box-shadow: inset 1px 1px #808080, inset -1px -1px #ffffff,
    inset 2px 2px #404040, inset -2px -2px #dfdfdf;
}

html.dark .qr-img {
  background: transparent;
  border-color: #404040;
  mix-blend-mode: multiply;
}

html.dark .qr-caption {
  color: #222222;
}

/* 可读性优先：关键正文和控件使用更大的字号。 */
.menu-btn,
.menu-item,
.tool-btn,
.btn95,
.mini-btn,
.task-btn,
.start-btn,
.start-item,
.tab-btn,
.group-box > legend,
.clock-readout {
  font-size: 13px;
}

.kv-label,
.kv-value,
.announcement-text,
.form-hint,
.form-error,
.post-excerpt,
.post-row-meta,
.post-meta,
.status-message {
  font-size: 13px;
}

.status-field,
.announcement-meta,
.qr-caption,
.post-row-meta,
.post-meta,
.menu-status {
  font-size: 12px;
}

.post-body {
  font-size: 15px;
}

.post-row h2 {
  font-size: 15px;
}

.post-title {
  font-size: 26px;
}

.brand-meta .sys-name {
  font-size: 15px;
}

.brand-meta .sys-sub,
.ready-line {
  font-size: 12px;
}

@media (max-width: 760px) {
  body {
    font-size: 13px;
  }

  .window-body {
    font-size: 13px;
  }

  .post-body {
    font-size: 14px;
  }

  .post-title {
    font-size: 21px;
  }
}
