/* minimal reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "Poppins", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  user-select: none;
  touch-action: manipulation;   /* ban 双击放大，保留滚动和捏合缩放 */
}
img { display: block; max-width: 100%; }
button { font-family: inherit; border: none; background: none; }
ul { list-style: none; }
a { color: inherit; }
/* hidden 属性必须压过组件的 display 设定（lightbox 用了 display:grid） */
[hidden] { display: none !important; }

/* 复古像素鼠标：默认箭头，可点元素用指点手（带系统 fallback） */
html, body { cursor: url("../assets/cursors/arrow.png") 0 0, auto; }
a, button, .icon, .grid-item, .work-card, .pile, .g-thumb, .social-chip, .start-btn, .start-list li,
.task-item, .ctrl, .btn-xp, [data-folder], [data-img], [data-yt],
[data-open], [data-social], .note-block .links a, .lightbox-close, .copy-btn {
  cursor: url("../assets/cursors/pointer.png") 10 0, pointer;
}

:root {
  /* XP-ish palette, 但避开 AI 渐变 */
  --xp-blue:   #245edb;
  --xp-blue-d: #1941a5;
  --xp-green:  #3a8a2f;
  --title-1:   #2e64d6;
  --title-2:   #1c46b3;
  --win-bg:    #ece9d8;
  --win-border:#0a246a;
  --face:      #ece9d8;
  --face-d:    #c4c0b6;
  --text:      #1a1a1a;
  /* 语义中性色（原先散落的硬编码，统一绑定） */
  --ink-2:     #6b6659;  /* 次级正文 / 图说 */
  --dim:       #8a8578;  /* 弱化说明文字 */
  --dim-2:     #a09a8c;  /* 占位 / 更弱 */
  --marker:    #b7b0a0;  /* 列表圆点 */
  --surface:   #fbfaf6;  /* 浅色卡面 */
  --surface-h: #f3f0e8;  /* 卡面 hover */
  --thumb-bg:  #f3f1ea;  /* 缩略图底 */
  --desktop-1: #5a8ed6;
  --desktop-2: #245edb;
  --grass:     #4a8f3c;
  /* fonts */
  --font-ui:   "Poppins", system-ui, sans-serif;
  --font-mono: "VT323", "Courier New", monospace;
}

/* SEO 可读正文：留在 DOM 供搜索引擎/屏幕阅读器读取，视觉上被开机屏和桌面盖住，
   不占布局、不产生滚动。内容与站内展示一致（非伪装）。 */
.seo-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
