/* === 02-base.css (原 user.css L130-L173,Section 1 基础重置 + 全局样式) === */

/* ========================================
   1. 基础重置 + 全局样式（body, *, scrollbar）
   ======================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
button { border: none; background: transparent; color: inherit; font: inherit; cursor: pointer; }
/* --app-height 由 head 的 JS 从 100dvh 探测写入,治 iOS PWA 首屏短算视口的 bug。
   fallback 100dvh 让 JS 未执行时 CSS 仍能工作(PC 浏览器一般直接就是正确值) */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
  overflow: hidden;
  background: var(--bg-base);
  height: var(--app-height, 100dvh);
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  background: var(--bg-base); color: var(--text-main);
  height: var(--app-height, 100dvh);
  display: flex; flex-direction: column; overflow: hidden;
  max-width: 100vw; -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

.hidden { display: none !important; }
.text-error { color: var(--error-color); }
.mt-12 { margin-top: 12px; }
.flex-row { display: flex; align-items: center; gap: 8px; }
.flex-row-gap { display: flex; gap: 12px; margin-top: 8px; }
.status-waiting { background: var(--accent-orange); }
.task-card-progress.text-error { color: var(--accent-red); }

/* P413 扁平化:.bg-ambient 装饰光晕全部清除(原本 ::before/::after 两个 90px blur 大色圆)。
   DOM 节点(web/user.html / mindmap/index.html)保留作为空容器,以防 JS 查询。 */
.bg-ambient {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0; pointer-events: none; overflow: hidden;
}

