/* ============================================================
   base.css — 变量 / 重置 / 开机屏 / 通用
   像素复古风：深木、暖光、CRT 绿、米白纸、硬边阴影
   ============================================================ */

:root {
  --ink:        #1f1c1a;   /* 墨色：文字、描边 */
  --paper:      #f2ead8;   /* 米白纸：卡片底 */
  --wood:       #4a3a2a;   /* 木色 */
  --wood-dark:  #3a2e22;   /* 深木 */
  --warm:       #f2c572;   /* 暖光 */
  --crt:        #8fdc5a;   /* CRT 磷光绿 */
  --red:        #d64541;   /* 复古红 */
  --grey:       #8f8378;   /* 次要文字 */
  --shadow:     4px 4px 0 rgba(0,0,0,.8);   /* 硬边阴影 */
  --pixel:      "Courier New", Courier, "PingFang SC", monospace;
  --sans:       -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background: #fdf3e4;   /* 柔和浅米背景（与桌面场景一致） */
}

a { color: inherit; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

::selection { background: var(--crt); color: var(--ink); }

/* 像素风标题工具 */
.pixel { font-family: var(--pixel); }

/* ============================================================
   开机屏
   ============================================================ */
.boot {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: linear-gradient(160deg, #f7a34e 0%, #f9cd8a 55%, #fdf3e4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .4s ease;
}
.boot.is-done { opacity: 0; pointer-events: none; }
.boot-inner { text-align: center; }
.boot-logo {
  font-size: 14px;
  letter-spacing: 6px;
  color: rgba(255,255,255,.92);
}
.boot-title {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 8px;
  color: #ffffff;
  margin-top: 12px;
  text-shadow: 0 3px 14px rgba(180,100,30,.35);
}
.boot-bar {
  width: 240px;
  max-width: 80vw;
  height: 14px;
  margin: 28px auto 0;
  border: 2px solid rgba(255,255,255,.85);
  background: rgba(255,255,255,.25);
  border-radius: 7px;
  padding: 2px;
  overflow: hidden;
}
.boot-bar-fill {
  height: 100%;
  width: 0%;
  background: #ffffff;
  border-radius: 5px;
  transition: width .1s linear;
}
.boot-hint {
  margin-top: 12px;
  font-size: 12px;
  color: rgba(255,255,255,.82);
  letter-spacing: 2px;
}
.boot-skip {
  margin-top: 18px;
  padding: 8px 16px;
  background: rgba(255,255,255,.2);
  border: 2px solid rgba(255,255,255,.75);
  color: #ffffff;
  font-size: 13px;
  border-radius: 8px;
  cursor: pointer;
  transition: all .15s;
}
.boot-skip:hover { background: rgba(255,255,255,.35); }

/* ============================================================
   通用小件
   ============================================================ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%);
  z-index: 2000;
  background: var(--paper);
  color: var(--ink);
  border: 3px solid #000;
  box-shadow: var(--shadow);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  max-width: 90vw;
  animation: toastIn .25s ease;
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* 减少动态偏好：关闭转场 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
