/* aaronlau.me blog — AI System 6 外皮。
   物件语法取自 AI System 6（apps/desktop/styles/00-foundation.css、65-*）：
   菜单栏、条纹标题栏、1px 黑框加 1px 投影、白底标签的桌面图标。
   阅读面（正文、表格、代码）不压成 1988 年的密度。 */

@font-face {
  font-family: "Platinum Asap";
  src: url("fonts/asap/Asap-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 75% 125%;
  font-display: swap;
}

/* ---------- 外皮 tokens ---------- */
:root,
:root[data-skin="system6"] {
  color-scheme: light;
  --desk-color: #b6b6b6;
  --desk:
    radial-gradient(rgba(0, 0, 0, .28) .7px, transparent .85px) 0 0 / 8px 8px,
    radial-gradient(rgba(255, 255, 255, .16) .6px, transparent .75px) 4px 4px / 8px 8px,
    #b6b6b6;
  --paper: #ffffff;
  --ink: #000000;
  --muted: #4a4a4a;
  --rule: #000000;
  --soft-rule: #8a8a8a;
  --tint: #f2f2f2;
  --menubar-bg: #ffffff;
  --menubar-border: #000000;
  --win-frame: #ffffff;
  --win-border: #000000;
  --win-shadow: 1px 1px 0 #000000;
  --title-bg: #ffffff;
  --title-stripes: repeating-linear-gradient(to bottom, #000 0 1px, transparent 1px 2px);
  --title-label-bg: #ffffff;
  --title-fg: #000000;
  --title-inset: none;
  --status-bg: #ffffff;
  --sel-bg: #000000;
  --sel-fg: #ffffff;
  --label-bg: #ffffff;
  --label-fg: #000000;
  --btn-bg: #ffffff;
  --btn-radius: 6px;
  --btn-shadow: none;
  --hit-bg: #000000; --hit-fg: #ffffff;
  --miss-bg: #ffffff; --miss-fg: #000000;
  --icon-filter: none;
  --chrome-font: Chicago, ChicagoFLF, Charcoal, -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --chrome-weight: 700;
  --chrome-stretch: normal;
}
:root[data-skin="system6"][data-mode="dark"],
:root:not([data-skin])[data-mode="dark"] {
  color-scheme: dark;
  --desk-color: #1d1d1d;
  --desk:
    radial-gradient(rgba(255, 255, 255, .16) .7px, transparent .85px) 0 0 / 8px 8px,
    #1d1d1d;
  --paper: #111111;
  --ink: #ececec;
  --muted: #b4b4b4;
  --rule: #ececec;
  --soft-rule: #6a6a6a;
  --tint: #1e1e1e;
  --menubar-bg: #111111;
  --menubar-border: #ececec;
  --win-frame: #111111;
  --win-border: #ececec;
  --win-shadow: 1px 1px 0 #000000;
  --title-bg: #111111;
  --title-stripes: repeating-linear-gradient(to bottom, #ececec 0 1px, transparent 1px 2px);
  --title-label-bg: #111111;
  --title-fg: #ececec;
  --status-bg: #111111;
  --sel-bg: #ececec;
  --sel-fg: #111111;
  --label-bg: #111111;
  --label-fg: #ececec;
  --btn-bg: #111111;
  --hit-bg: #ececec; --hit-fg: #111111;
  --miss-bg: #111111; --miss-fg: #ececec;
  --icon-filter: invert(1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-mode]) {
    color-scheme: dark;
    --desk: radial-gradient(rgba(255, 255, 255, .16) .7px, transparent .85px) 0 0 / 8px 8px, #1d1d1d;
    --paper: #111111; --ink: #ececec; --muted: #b4b4b4; --rule: #ececec; --soft-rule: #6a6a6a; --tint: #1e1e1e;
    --menubar-bg: #111111; --menubar-border: #ececec; --win-frame: #111111; --win-border: #ececec; --win-shadow: 1px 1px 0 #000;
    --title-bg: #111111; --title-stripes: repeating-linear-gradient(to bottom, #ececec 0 1px, transparent 1px 2px);
    --title-label-bg: #111111; --title-fg: #ececec; --status-bg: #111111; --sel-bg: #ececec; --sel-fg: #111111;
    --label-bg: #111111; --label-fg: #ececec; --btn-bg: #111111; --hit-bg: #ececec; --hit-fg: #111111; --miss-bg: #111111; --miss-fg: #ececec;
    --icon-filter: invert(1);
  }
}

/* System 7：#eeeeee 标题列上六条 #777777 细线，薰衣草色内缘；50% 灰点阵桌面。 */
:root[data-skin="system7"] {
  color-scheme: light;
  --desk-color: #8a8a8a;
  --desk: repeating-conic-gradient(#7a7a7a 0 25%, #a0a0a0 0 50%) 0 0 / 2px 2px;
  --paper: #ffffff;
  --ink: #000000;
  --muted: #4a4a4a;
  --rule: #000000;
  --soft-rule: #999999;
  --tint: #eeeeee;
  --menubar-bg: #ffffff;
  --menubar-border: #000000;
  --win-frame: #eeeeee;
  --win-border: #000000;
  --win-shadow: 1px 1px 0 #000000;
  --title-bg: #eeeeee;
  --title-stripes: repeating-linear-gradient(to bottom, #777777 0 1px, transparent 1px 2px);
  --title-label-bg: #eeeeee;
  --title-fg: #000000;
  --title-inset: inset 1px 1px 0 #ccccff, inset -1px -1px 0 #9999cc;
  --status-bg: #eeeeee;
  --sel-bg: #ccccff;
  --sel-fg: #000000;
  --label-bg: #ffffff;
  --label-fg: #000000;
  --btn-bg: #eeeeee;
  --btn-radius: 6px;
  --btn-shadow: inset -1px -1px 0 #999999, inset 1px 1px 0 #ffffff;
  --hit-bg: #333366; --hit-fg: #ffffff;
  --miss-bg: #ffffff; --miss-fg: #000000;
  --icon-filter: none;
}
:root[data-skin="system7"][data-mode="dark"] {
  color-scheme: dark;
  --desk-color: #2b2b33;
  --desk: repeating-conic-gradient(#26262d 0 25%, #303039 0 50%) 0 0 / 2px 2px;
  --paper: #18181c;
  --ink: #ebebf2;
  --muted: #b3b3c0;
  --rule: #8a8aa0;
  --soft-rule: #55556a;
  --tint: #23232a;
  --menubar-bg: #18181c;
  --menubar-border: #8a8aa0;
  --win-frame: #26262e;
  --win-border: #000000;
  --win-shadow: 1px 1px 0 #000000;
  --title-bg: #2c2c36;
  --title-stripes: repeating-linear-gradient(to bottom, #55556a 0 1px, transparent 1px 2px);
  --title-label-bg: #2c2c36;
  --title-fg: #ebebf2;
  --title-inset: inset 1px 1px 0 #3d3d55, inset -1px -1px 0 #15151c;
  --status-bg: #26262e;
  --sel-bg: #4a4a80;
  --sel-fg: #ffffff;
  --label-bg: #18181c;
  --label-fg: #ebebf2;
  --btn-bg: #2c2c36;
  --btn-shadow: inset -1px -1px 0 #15151c, inset 1px 1px 0 #3d3d55;
  --hit-bg: #ccccff; --hit-fg: #18181c;
  --miss-bg: #18181c; --miss-fg: #ebebf2;
}

/* Platinum（Mac OS 8/9）：#cccccc 框、斜面阴影、白／#777 细纹标题列，Asap 代替 Charcoal。 */
:root[data-skin="platinum"] {
  color-scheme: light;
  --desk-color: #4a71ab;
  --desk: url("azul-tile.png") left top / 96px 96px repeat, #4a71ab;
  --paper: #ffffff;
  --ink: #000000;
  --muted: #444444;
  --rule: #888888;
  --soft-rule: #aaaaaa;
  --tint: #eeeeee;
  --menubar-bg: linear-gradient(#eeeeee, #dddddd);
  --menubar-border: #000000;
  --win-frame: #dddddd;
  --win-border: #000000;
  --win-shadow: 1px 1px 0 #000000, inset 1px 1px 0 #ffffff, inset -1px -1px 0 #999999;
  --title-bg: #cccccc;
  --title-stripes: repeating-linear-gradient(to bottom, #ffffff 0 1px, #888888 1px 2px);
  --title-label-bg: #cccccc;
  --title-fg: #000000;
  --title-inset: inset 1px 1px 0 #eeeeee, inset -1px -1px 0 #999999;
  --status-bg: #dddddd;
  --sel-bg: #ccccff;
  --sel-fg: #000000;
  --label-bg: #ffffff;
  --label-fg: #000000;
  --btn-bg: linear-gradient(#f4f4f4, #dddddd);
  --btn-radius: 4px;
  --btn-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #999999;
  --hit-bg: #31507f; --hit-fg: #ffffff;
  --miss-bg: #ffffff; --miss-fg: #000000;
  --icon-filter: none;
  --chrome-font: Charcoal, "Platinum Asap", -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --chrome-weight: 600;
  --chrome-stretch: 113%;
}
:root[data-skin="platinum"][data-mode="dark"] {
  color-scheme: dark;
  --desk-color: #172235;
  --desk: linear-gradient(rgba(10, 18, 32, .78), rgba(10, 18, 32, .78)), url("azul-tile.png") left top / 96px 96px repeat, #172235;
  --paper: #1b1b1b;
  --ink: #eaeaea;
  --muted: #b5b5b5;
  --rule: #6c6c6c;
  --soft-rule: #4c4c4c;
  --tint: #262626;
  --menubar-bg: linear-gradient(#3a3a3a, #2e2e2e);
  --menubar-border: #000000;
  --win-frame: #333333;
  --win-border: #000000;
  --win-shadow: 1px 1px 0 #000000, inset 1px 1px 0 #4a4a4a, inset -1px -1px 0 #222222;
  --title-bg: #3a3a3a;
  --title-stripes: repeating-linear-gradient(to bottom, #555555 0 1px, #2a2a2a 1px 2px);
  --title-label-bg: #3a3a3a;
  --title-fg: #eaeaea;
  --title-inset: inset 1px 1px 0 #4a4a4a, inset -1px -1px 0 #222222;
  --status-bg: #333333;
  --sel-bg: #4a5a8a;
  --sel-fg: #ffffff;
  --label-bg: #1b1b1b;
  --label-fg: #eaeaea;
  --btn-bg: linear-gradient(#444444, #333333);
  --btn-shadow: inset 1px 1px 0 #555555, inset -1px -1px 0 #222222;
  --hit-bg: #9fb6e0; --hit-fg: #111111;
  --miss-bg: #1b1b1b; --miss-fg: #eaeaea;
}

/* ---------- 基础 ---------- */
:root {
  --text-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --mono-font: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --menubar-h: 28px;
  --title-h: 22px;
  --gutter: 16px;
  font-synthesis: none;
}
@media (pointer: coarse) {
  :root { --menubar-h: 40px; --title-h: 30px; }
}
* { box-sizing: border-box; }
html { background: var(--desk-color, #b6b6b6); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--desk);
  color: var(--ink);
  font-family: var(--text-font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--paper); color: var(--ink); padding: 6px 10px; border: 1px solid var(--ink); }
.skip:focus { left: 8px; top: 8px; }
::selection { background: var(--sel-bg); color: var(--sel-fg); }

/* ---------- 选单列 ---------- */
.menubar {
  position: sticky; top: 0; z-index: 50;
  height: var(--menubar-h);
  background: var(--menubar-bg);
  border-bottom: 1px solid var(--menubar-border);
  font-family: var(--chrome-font);
  font-weight: var(--chrome-weight);
  font-stretch: var(--chrome-stretch);
  font-size: 14px;
  color: var(--ink);
}
.menus { display: flex; height: 100%; padding: 0 8px; max-width: 100%; }
.menu { position: relative; }
.menu-title {
  display: flex; align-items: center; height: var(--menubar-h);
  padding: 0 10px; list-style: none; cursor: default; white-space: nowrap;
}
.menu-title::-webkit-details-marker { display: none; }
.menu[open] > .menu-title, .menu-title:hover { background: var(--sel-bg); color: var(--sel-fg); }
.menu-brand { letter-spacing: .01em; }
.menu-list {
  position: absolute; left: 0; top: 100%;
  min-width: 11rem; margin: 0; padding: 4px 0; list-style: none;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--win-border); box-shadow: 1px 1px 0 var(--win-border), var(--title-inset, none);
  font-weight: 400;
}
.menu-end .menu-list { left: auto; right: 0; }
.menu-list a, .menu-list button {
  display: block; width: 100%; padding: 6px 16px 6px 24px; text-align: left;
  color: inherit; text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; white-space: nowrap; position: relative;
}
.menu-list a:hover, .menu-list button:hover, .menu-list a:focus-visible, .menu-list button:focus-visible { background: var(--sel-bg); color: var(--sel-fg); outline: none; }
.menu-list button[aria-pressed="true"]::before { content: "✓"; position: absolute; left: 8px; }
.menu-head { padding: 4px 12px 2px; font-size: 12px; color: var(--muted); }
.sep { height: 0; margin: 4px 0; border-top: 1px dotted var(--soft-rule); }
@media (pointer: coarse) {
  .menu-list a, .menu-list button { padding-top: 11px; padding-bottom: 11px; }
}

/* ---------- 视窗 ---------- */
.desktop { padding: 24px var(--gutter) 32px; }
.win {
  background: var(--win-frame);
  border: 1px solid var(--win-border);
  box-shadow: var(--win-shadow);
  min-width: 0;
}
.win-titlebar {
  display: grid; grid-template-columns: var(--title-h) 1fr var(--title-h);
  align-items: center;
  height: var(--title-h);
  padding: 0 4px;
  background: var(--title-bg);
  border-bottom: 1px solid var(--win-border);
  box-shadow: var(--title-inset, none);
  position: relative;
}
.win-titlebar::before {
  content: ""; position: absolute; inset: 4px 3px; background: var(--title-stripes); pointer-events: none;
}
.win-title {
  position: relative; margin: 0; justify-self: center; min-width: 0; max-width: 100%;
  font-family: var(--chrome-font); font-weight: var(--chrome-weight); font-stretch: var(--chrome-stretch);
  font-size: 14px; line-height: 1; color: var(--title-fg);
}
.win-title > span {
  display: block; padding: 2px 10px; background: var(--title-label-bg);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.win-box { position: relative; justify-self: center; width: 13px; height: 13px; }
.win-close { display: grid; place-items: center; width: var(--title-h); height: var(--title-h); }
.win-close span { width: 13px; height: 13px; border: 1px solid var(--title-fg); background: var(--title-label-bg); box-shadow: 0 0 0 2px var(--title-label-bg); }
.win-close:hover span, .win-close:focus-visible span { background: var(--title-fg); }
.win-body { background: var(--paper); padding: 16px 20px; }
.win-status {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 4px 10px; border-top: 1px solid var(--win-border);
  background: var(--status-bg); font-size: 12px; color: var(--muted);
  font-family: var(--chrome-font); font-stretch: var(--chrome-stretch);
}
:root[data-skin="platinum"] .win { padding: 0 5px 5px; }
:root[data-skin="platinum"] .win-titlebar { border-bottom: 0; margin: 0 -5px 5px; }
:root[data-skin="platinum"] .win-body { border: 1px solid var(--win-border); box-shadow: inset 1px 1px 0 var(--soft-rule); }
:root[data-skin="platinum"] .win-status { border: 1px solid var(--win-border); border-top: 0; }
:root[data-skin="system7"] .win-body { border-top: 0; }

/* 图示 */
.ic { image-rendering: auto; filter: var(--icon-filter); flex: none; }
:root[data-skin="system7"] .ic, :root[data-skin="platinum"] .ic { image-rendering: pixelated; }
.desk-icon { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: var(--label-fg); text-align: center; }
.desk-label {
  display: inline-block; padding: 1px 5px; background: var(--label-bg); color: var(--label-fg);
  font-family: var(--chrome-font); font-stretch: var(--chrome-stretch); font-size: 13px; line-height: 1.35;
}
.desk-icon:hover .desk-label, .desk-icon:focus-visible .desk-label { background: var(--sel-bg); color: var(--sel-fg); }
.desk-icon:focus-visible { outline: none; }
.desk-count { font-size: 12px; color: var(--muted); }

/* ---------- 首页 ---------- */
.home {
  display: grid; gap: 24px;
  grid-template-columns: minmax(0, 680px) 300px 96px;
  grid-template-areas: "channel side icons" "feed side icons";
  grid-template-rows: auto 1fr;
  justify-content: center; align-items: start; max-width: 1200px; margin: 0 auto;
}
.win-channel { grid-area: channel; }
.home-feed { grid-area: feed; min-width: 0; }
.home-side { grid-area: side; display: grid; gap: 24px; position: sticky; top: calc(var(--menubar-h) + 24px); }
.desk-icons { grid-area: icons; }
.channel-name { margin: 0; font-size: 30px; line-height: 1.25; letter-spacing: .01em; }
.channel-line { margin: 6px 0 14px; font-family: var(--chrome-font); font-stretch: var(--chrome-stretch); font-size: 15px; color: var(--muted); }
.channel-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.btn-s { display: inline-block; padding: 4px 14px; font-size: 14px; }

/* 频道时间流：日期当分隔，每则推送一个窗口 */
.timeline { display: grid; gap: 0; }
.day-sep { display: flex; align-items: center; gap: 12px; margin: 26px 0 12px; font-size: 13px; }
.day-sep::before, .day-sep::after { content: ""; flex: 1; height: 1px; background: var(--label-fg); opacity: .35; }
.day-sep time { background: var(--label-bg); color: var(--label-fg); padding: 2px 10px; border: 1px solid var(--win-border); font-family: var(--chrome-font); font-stretch: var(--chrome-stretch); font-variant-numeric: tabular-nums; }
.timeline > .day-sep:first-child { margin-top: 4px; }
.msg .win-body { padding: 18px 24px 20px; }
.msg-tags { margin: 0 0 6px; font-size: 14px; display: flex; flex-wrap: wrap; gap: 2px 10px; }
.msg-tags a { text-decoration: none; color: var(--muted); }
.msg-tags a:hover { color: var(--ink); text-decoration: underline; }
.msg-title { margin: 0 0 12px; font-size: 21px; line-height: 1.45; font-weight: 700; }
.msg-title a { text-decoration: none; }
.msg-title a:hover { text-decoration: underline; }
.prose.prose-msg { font-size: 17px; line-height: 1.85; max-width: none; margin: 0; }
.prose-msg > * { margin-bottom: .9em; }
.prose-msg > :last-child { margin-bottom: 0; }
.msg .ledger { margin-top: 14px; border-top: 1px solid var(--rule); }
.msg .win-status a { color: inherit; }
.win-zoom { display: grid; place-items: center; width: var(--title-h); height: var(--title-h); }
.win-zoom span { position: relative; width: 13px; height: 13px; border: 1px solid var(--title-fg); background: var(--title-label-bg); box-shadow: 0 0 0 2px var(--title-label-bg); }
.win-zoom span::after { content: ""; position: absolute; left: -1px; top: -1px; width: 6px; height: 6px; border: 1px solid var(--title-fg); }
.win-zoom:hover span, .win-zoom:focus-visible span { background: var(--title-fg); }
.more { text-align: center; margin: 24px 0 0; }
.more .btn { display: inline-block; }
.tag-cloud { list-style: none; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px dotted var(--soft-rule); display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { display: inline-flex; gap: 6px; align-items: baseline; padding: 2px 10px; border: 1px solid var(--ink); text-decoration: none; font-size: 14px; }
.tag-cloud a span { font-size: 12px; color: var(--muted); }
.tag-cloud a:hover, .tag-cloud a:hover span { background: var(--sel-bg); color: var(--sel-fg); }
.col-count { font-size: 13px; }
.page-tag .timeline, .page-tags .icon-grid { margin-top: 0; }
.page-tags .icon-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.desk-icons ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; justify-items: center; }
.desk-icons .desk-label { background: var(--label-bg); }

.empty { color: var(--muted); margin: 8px 0; }

.icon-grid { list-style: none; margin: 0; padding: 4px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 8px; }
.icon-grid .desk-label { background: transparent; max-width: 100%; }
.icon-grid .desk-icon:hover .desk-label { background: var(--sel-bg); }

.otd-today { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.otd-list { list-style: none; margin: 0; padding: 0; }
.otd-list li { padding: 6px 0; border-bottom: 1px dotted var(--soft-rule); }
.otd-list li:last-child { border-bottom: 0; }
.otd-ago { display: block; font-size: 12px; color: var(--muted); }

/* ---------- 文件视窗（文章、栏目、归档、关于） ---------- */
.reading { max-width: 860px; margin: 0 auto; display: grid; gap: 20px; }
.reading-wide { max-width: 1000px; }
.win-doc .win-body { padding: 40px 56px 56px; }
.win-doc .doc { max-width: 700px; margin: 0 auto; }
.doc-head { margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid var(--rule); }
.doc-kicker { margin: 0 0 10px; font-family: var(--chrome-font); font-stretch: var(--chrome-stretch); font-size: 14px; }
.doc-kicker a { text-decoration: none; padding: 1px 6px; border: 1px solid var(--ink); }
.doc-kicker a:hover { background: var(--sel-bg); color: var(--sel-fg); }
.doc-title { margin: 0; font-size: clamp(28px, 4vw, 40px); line-height: 1.3; font-weight: 700; letter-spacing: .01em; }
.doc-head .msg-tags { font-size: 15px; margin-bottom: 10px; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 14px 0 0; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 14px 0 0; padding: 0; }
.tags li { font-size: 13px; padding: 0 8px; border: 1px dotted var(--soft-rule); color: var(--muted); }

.prose {
  font-size: 19px; line-height: 1.95; letter-spacing: .02em;
  max-width: none; margin: 0;
  overflow-wrap: break-word; line-break: strict; hanging-punctuation: allow-end;
  text-align: start;
}
.prose > * { margin: 0 0 1.15em; }
.prose h2 { font-size: 1.3em; line-height: 1.5; margin: 2em 0 .8em; padding-bottom: .3em; border-bottom: 1px solid var(--soft-rule); text-align: left; }
.prose h3 { font-size: 1.1em; margin: 1.6em 0 .6em; text-align: left; }
.prose ul, .prose ol { padding-left: 1.6em; }
.prose li { margin: .3em 0; }
.prose a { overflow-wrap: anywhere; word-break: break-all; }
.prose blockquote {
  margin-left: 0; margin-right: 0; padding: .6em 1em; border-left: 3px solid var(--ink);
  background: var(--tint); font-size: .92em; line-height: 1.85;
}
.prose blockquote > :last-child { margin-bottom: 0; }
.prose blockquote > :first-child { margin-top: 0; }
.prose code { font-family: var(--mono-font); font-size: .85em; padding: .1em .35em; border: 1px solid var(--soft-rule); background: var(--tint); overflow-wrap: anywhere; }
.prose pre { overflow-x: auto; padding: 14px 16px; border: 1px solid var(--ink); background: var(--tint); line-height: 1.6; font-size: 15px; text-align: left; }
.prose pre code { border: 0; padding: 0; background: none; font-size: inherit; }
.prose hr { border: 0; height: 2px; background: var(--title-stripes); margin: 2em 0; }
.table-wrap { overflow-x: auto; }
.prose table { border-collapse: collapse; width: 100%; font-size: .9em; line-height: 1.6; text-align: left; }
.prose th, .prose td { border: 1px solid var(--ink); padding: .45em .7em; }
.prose th { background: var(--tint); font-weight: 600; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.btn {
  display: block; padding: 10px 16px; text-decoration: none;
  background: var(--btn-bg); color: var(--ink);
  border: 1px solid var(--win-border); border-radius: var(--btn-radius);
  box-shadow: var(--btn-shadow), 1px 1px 0 var(--win-border);
}
.btn:hover { background: var(--sel-bg); color: var(--sel-fg); }
.pager a[rel="next"] { text-align: right; grid-column: 2; }
.pager-dir { display: block; font-family: var(--chrome-font); font-stretch: var(--chrome-stretch); font-size: 12px; color: inherit; opacity: .75; }
.pager-t { display: block; font-weight: 600; line-height: 1.5; }

.col-head { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
.col-head h1 { margin: 0; font-size: 28px; line-height: 1.3; }
.col-head p { margin: 4px 0 0; color: var(--muted); }
.sub-h {
  margin: 28px 0 12px; font-family: var(--chrome-font); font-stretch: var(--chrome-stretch); font-weight: var(--chrome-weight);
  font-size: 15px; display: flex; align-items: center; gap: 10px;
}
.sub-h::after { content: ""; flex: 1; height: 6px; background: var(--title-stripes); }
.win-body > .sub-h:first-child, .ledger-book > .sub-h:first-child { margin-top: 4px; }

/* ---------- 预言帐本 ---------- */
.post-ledger { margin-top: 48px; padding-top: 8px; border-top: 1px solid var(--rule); }
.post-ledger > h2 { font-size: 22px; margin: 16px 0; }
.ledger-stats { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 0; margin: 0 0 12px; border: 1px solid var(--ink); }
.stat { padding: 10px 12px; border-left: 1px solid var(--ink); }
.stat:first-child { border-left: 0; }
.stat dt { font-family: var(--chrome-font); font-stretch: var(--chrome-stretch); font-size: 12px; color: var(--muted); }
.stat dd { margin: 0; font-size: 26px; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; }
.stat-rate dd:not(.stat-note) { font-size: 34px; }
.stat dd.stat-note { font-size: 11px; font-weight: 400; color: var(--muted); }
.ledger-bar { display: flex; height: 12px; border: 1px solid var(--ink); margin-bottom: 20px; }
.bar-hit { background: var(--hit-bg); }
.bar-miss { background: repeating-linear-gradient(45deg, var(--ink) 0 1px, var(--paper) 1px 4px); border-left: 1px solid var(--ink); }
.bar-pending { background: var(--paper); border-left: 1px solid var(--ink); }
.bar-hit[style="flex:0"], .bar-miss[style="flex:0"], .bar-pending[style="flex:0"] { display: none; }
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger-row {
  display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto; gap: 4px 14px; align-items: start;
  padding: 14px 4px; border-bottom: 1px dotted var(--soft-rule);
}
.ledger-id { font-family: var(--mono-font); font-size: 13px; color: var(--muted); padding-top: 4px; }
.ledger-claim { margin: 0; font-size: 17px; line-height: 1.7; font-weight: 600; }
.badge { justify-self: end; font-family: var(--chrome-font); font-stretch: var(--chrome-stretch); font-size: 13px; padding: 2px 10px; border: 1px solid var(--ink); white-space: nowrap; }
.badge-hit { background: var(--hit-bg); color: var(--hit-fg); border-color: var(--hit-bg); }
.badge-miss { background: var(--miss-bg); color: var(--miss-fg); border-width: 2px; padding: 1px 9px; }
.badge-pending { border-style: dashed; color: var(--muted); }
.ledger-meta { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 2px 18px; margin: 0; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ledger-meta div { display: flex; gap: 6px; }
.ledger-meta dd { margin: 0; color: var(--ink); }
.ledger-note, .ledger-src { grid-column: 2 / -1; margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- 归档 ---------- */
.arc-months { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.arc-month { border: 1px solid var(--ink); padding: 12px 14px; background: var(--paper); }
.arc-month h3 { margin: 0 0 8px; font-size: 18px; display: flex; justify-content: space-between; align-items: baseline; }
.arc-month h3 span { font-size: 13px; font-weight: 400; color: var(--muted); }
.cal { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; font-variant-numeric: tabular-nums; text-align: center; }
.cal th { font-weight: 400; color: var(--muted); padding: 2px 0 4px; border-bottom: 1px solid var(--soft-rule); }
.cal td { padding: 0; height: 28px; color: var(--muted); }
.cal td.has a { display: grid; place-items: center; height: 26px; margin: 1px; background: var(--sel-bg); color: var(--sel-fg); font-weight: 700; text-decoration: none; border-radius: 0; }
:root[data-skin="system6"] .cal td.has a, :root:not([data-skin]) .cal td.has a { background: var(--ink); color: var(--paper); }
.cal td.has a:hover { outline: 2px solid var(--ink); }
.arc-list { list-style: none; margin: 10px 0 0; padding: 8px 0 0; border-top: 1px dotted var(--soft-rule); }
.arc-list li { display: grid; grid-template-columns: 3em 1fr; gap: 8px; padding: 3px 0; font-size: 15px; line-height: 1.6; }
.arc-list time { color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- 关于（原站内容） ---------- */
.about-stack { gap: 28px; }
.legacy .win-body { padding: 24px 28px 28px; font-size: 17px; line-height: 1.85; }
.legacy h1, .legacy h2, .legacy h3 { line-height: 1.35; }
.legacy p { margin: 0 0 .8em; }
.section-lede { color: var(--muted); margin-bottom: 18px; }
.section-lede p { margin: 0; }
.legacy-hero .win-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 28px; align-items: start; }
.hero-copy h1 { margin: 0; font-size: clamp(40px, 6vw, 64px); letter-spacing: -.01em; line-height: 1.05; }
.hero-copy .question { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.45; margin: 18px 0 10px; font-weight: 600; }
.hero-copy .stop { color: #af3828; }
:root[data-mode="dark"] .hero-copy .stop { color: #e2735f; }
.hero-copy .line { font-family: var(--chrome-font); font-stretch: var(--chrome-stretch); font-size: 15px; }
.hero-copy .lede { color: var(--muted); }
.hero-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.slot { margin: 0; }
.slot img, .frame img, .portrait img { display: block; width: 100%; border: 1px solid var(--ink); }
.slot figcaption, .frame figcaption { font-size: 13px; color: var(--muted); padding-top: 6px; line-height: 1.5; }
.slot figcaption span, .frame figcaption span { display: block; color: var(--ink); font-family: var(--chrome-font); font-stretch: var(--chrome-stretch); }
.slot figcaption strong { font-weight: 400; }
/* 原站的 WindowShade 示范，换成真的小视窗。 */
.shade { position: relative; min-height: 15rem; border: 1px solid var(--ink); background: var(--tint); box-shadow: 1px 1px 0 var(--ink); overflow: hidden; }
.shade-under { margin: 0; padding: 3.2rem 1rem 1rem; font-size: 22px; line-height: 1.35; font-weight: 600; color: var(--muted); }
.shade-sheet { position: absolute; inset: 0; background: var(--paper); transition: height 220ms ease; overflow: hidden; }
.shade.is-shut .shade-sheet { bottom: auto; height: var(--title-h); border-bottom: 1px solid var(--ink); }
.shade-sheet button {
  display: grid; grid-template-columns: var(--title-h) 1fr var(--title-h); align-items: center; width: 100%; height: var(--title-h);
  margin: 0; padding: 0 4px; border: 0; border-bottom: 1px solid var(--win-border); background: var(--title-bg); box-shadow: var(--title-inset, none);
  font: inherit; font-family: var(--chrome-font); font-weight: var(--chrome-weight); font-stretch: var(--chrome-stretch); font-size: 14px; color: var(--title-fg); cursor: pointer; position: relative;
}
.shade-sheet button::before { content: ""; position: absolute; inset: 4px 3px; background: var(--title-stripes); }
.shade-sheet button > span { position: relative; justify-self: center; }
.shade-sheet button > span:last-child { padding: 2px 10px; background: var(--title-label-bg); line-height: 1; }
.shade-sq { width: 13px; height: 13px; border: 1px solid var(--title-fg); background: var(--title-label-bg); box-shadow: 0 0 0 2px var(--title-label-bg); }
.shade-body p { margin: 14px 16px; font-size: 16px; }
.shade-hint { color: var(--muted); font-size: 14px !important; }
.shade-status { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--muted); }
.legacy-hero .win-body > .shade-status { margin-top: -12px; }

.work-split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.piece { border-top: 1px solid var(--rule); padding-top: 12px; }
.piece-kicker, .essay-kicker { font-family: var(--chrome-font); font-stretch: var(--chrome-stretch); font-size: 13px; color: var(--muted); margin: 0 0 4px !important; }
.piece h3, .essay h3 { margin: 0 0 8px; font-size: 22px; }
.piece h3 a, .essay h3 a { text-decoration: none; }
.piece h3 a:hover, .essay h3 a:hover { text-decoration: underline; }
.piece .desk {
  display: grid; gap: 6px; margin: 12px 0; padding: 16px; min-height: 0;
  border: 1px solid var(--ink); background: var(--desk); text-decoration: none; color: var(--ink);
}
.piece .desk > span { justify-self: start; background: var(--paper); padding: 2px 8px; }
.desk-kicker { font-size: 13px; }
.desk-title { font-size: 20px; font-weight: 700; }
.desk-go { font-family: var(--chrome-font); font-stretch: var(--chrome-stretch); font-size: 14px; }
.piece .desk:hover .desk-go { background: var(--sel-bg); color: var(--sel-fg); }
.role { color: var(--muted); }
.aside-line { margin: 16px 0 0 !important; color: var(--muted); font-size: 15px; }
.aside-line a { color: var(--ink); }
.frames { display: grid; grid-template-columns: 1.3fr .9fr .75fr 1.05fr; gap: 12px; align-items: end; }
.frame { margin: 0; }
.roles { margin-top: 28px; }
.roles-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; border-top: 1px solid var(--rule); padding-top: 12px; margin-bottom: 12px; }
.roles-head h3 { margin: 0; font-size: 20px; }
.roles-head p { margin: 0 !important; color: var(--muted); }
.portraits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.portrait { margin: 0; }
.portrait figcaption { padding-top: 6px; font-size: 14px; }
.essay { border-top: 1px solid var(--rule); padding-top: 12px; margin-bottom: 16px; }
.essay-lead h3 { font-size: 26px; }
.essay-q { font-size: 20px; font-weight: 600; }
.essay-rest { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.facts { margin: 0 0 16px; }
.facts div { display: grid; grid-template-columns: 9em 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px dotted var(--soft-rule); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.profile-sub { font-size: 18px; margin: 16px 0 8px; }
.cases { margin: 0; padding-left: 1.4em; }
.cases li { margin: 8px 0; }
.cases li > span { display: block; color: var(--muted); }
.social { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.social a { display: inline-block; padding: 6px 14px; text-decoration: none; background: var(--btn-bg); border: 1px solid var(--win-border); border-radius: var(--btn-radius); box-shadow: var(--btn-shadow), 1px 1px 0 var(--win-border); }
.social a:hover { background: var(--sel-bg); color: var(--sel-fg); }

/* ---------- 名片 ---------- */
.card-stage { max-width: 560px; margin: 4vh auto 0; }
.card { text-align: left; }
.card-url { margin: 0 0 12px; font-family: var(--mono-font); font-size: 13px; color: var(--muted); }
.card h1 { margin: 0; font-size: 44px; line-height: 1.1; }
.card .question { font-size: 22px; font-weight: 600; margin: 14px 0 6px; }
.card .stop { color: #af3828; }
:root[data-mode="dark"] .card .stop { color: #e2735f; }
.card .line { font-family: var(--chrome-font); font-stretch: var(--chrome-stretch); margin: 0 0 16px; }
.card-works { list-style: none; margin: 0 0 12px; padding: 12px 0 0; border-top: 1px solid var(--rule); display: flex; gap: 18px; flex-wrap: wrap; font-weight: 600; }
.card-blurb { color: var(--muted); margin: 0 0 16px; }

/* ---------- 页尾 ---------- */
.foot { padding: 0 var(--gutter) 28px; text-align: center; font-size: 12px; }
.foot > * { background: var(--label-bg); color: var(--label-fg); padding: 1px 6px; }
.foot > a { text-decoration: none; }

/* ---------- 窄萤幕 ---------- */
@media (max-width: 1100px) {
  .home { grid-template-columns: minmax(0, 1fr) 280px; grid-template-areas: "icons icons" "channel side" "feed side"; grid-template-rows: auto auto 1fr; }
  .desk-icons ul { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  :root { --gutter: 8px; }
  .desktop { padding-top: 14px; }
  .home { grid-template-columns: minmax(0, 1fr); grid-template-areas: "channel" "feed" "side" "icons"; grid-template-rows: none; gap: 16px; }
  .home-side { position: static; }
  .msg .win-body { padding: 14px 14px 16px; }
  .msg-title { font-size: 19px; }
  .prose.prose-msg { font-size: 17px; }
  .channel-name { font-size: 26px; }
  .desk-icons ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 4px; }
  .win-body { padding: 14px 14px; }
  .win-doc .win-body { padding: 24px 18px 32px; }
  .prose { font-size: 18px; line-height: 1.9; letter-spacing: .01em; }
  .doc-head { margin-bottom: 24px; }
  .pager { grid-template-columns: 1fr; }
  .pager a[rel="next"] { grid-column: 1; }
  .ledger-stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: 0; border-top: 1px solid var(--ink); }
  .stat-rate { grid-column: 1 / -1; border-top: 0; }
  .stat:nth-child(2n+1):not(.stat-rate) { border-left: 1px solid var(--ink); }
  .stat:nth-child(2), .stat:nth-child(4) { border-left: 0; }
  .stat:nth-child(3), .stat:nth-child(5) { border-left: 1px solid var(--ink); }
  .ledger-row { grid-template-columns: minmax(0, 1fr) auto; }
  .ledger-id { grid-column: 1; padding-top: 0; }
  .badge { grid-column: 2; grid-row: 1; }
  .ledger-claim, .ledger-meta, .ledger-note, .ledger-src { grid-column: 1 / -1; }
  .legacy .win-body { padding: 18px 16px 20px; font-size: 16px; }
  .legacy-hero .win-body, .hero-split, .work-split, .essay-rest { grid-template-columns: minmax(0, 1fr); }
  .frames, .portraits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .card h1 { font-size: 36px; }
  .col-head h1 { font-size: 24px; }
  .menus { padding: 0 2px; }
  .menu-title { padding: 0 8px; font-size: 14px; }
}
@media (max-width: 360px) {
  .menu-title { padding: 0 6px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .shade-sheet { transition: none; }
}
