/* ==========================================================================
   base.css — 基础重置与全局排版
   --------------------------------------------------------------------------
   只处理"元素默认长什么样"，不涉及任何组件。组件样式见 components.css。
   ========================================================================== */

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;  /* 横屏时不自动放大字号 */
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* 切换主题时底色与文字平滑过渡 */
  transition: background-color .2s ease, color .2s ease;
}

a { color: inherit; }

button { font-family: inherit; }

/* 尊重系统的"减少动态效果"设置 */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
