/* 关键 CSS - 防止 FOUC (Flash of Unstyled Content) */

/* 基础样式 - 在 Tailwind 加载前提供基本布局 */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans SC', sans-serif;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: #f8fafc;
  color: #1e293b;
}

/* 防止 SVG 在 CSS 加载前以原始大小显示 */
svg {
  max-width: 48px !important;
  max-height: 48px !important;
}

/* 隐藏页面直到样式加载完成 - 使用 opacity 而非 visibility 避免布局抖动 */
.nuxt-loading-indicator {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #0071E3;
  z-index: 9999;
}

/* 导航栏基础样式 */
nav, header {
  display: flex;
  align-items: center;
}

/* 链接基础样式 */
a {
  color: inherit;
  text-decoration: none;
}

/* 图片基础样式 */
img {
  max-width: 100%;
  height: auto;
}

/* 按钮基础样式 */
button {
  cursor: pointer;
  font-family: inherit;
}
