/* common.css - 全站公共样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: #FFFFFF;
  color: #1A1F36;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
}

#app {
  max-width: 640px;
  margin: 0 auto;
  min-height: 100vh;
  background: #FFFFFF;
}

a { color: inherit; text-decoration: none; }

/* 通用 loading */
.loading-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  color: #6B7280;
}
.loading-wrap .spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #E5E7EB;
  border-top-color: #5B7FFF;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}
.loading-wrap .msg {
  font-size: 14px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 错误提示 */
.error-box {
  margin: 60px 24px;
  padding: 24px 20px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 12px;
  text-align: center;
}
.error-box .title {
  font-size: 16px;
  color: #B91C1C;
  font-weight: 600;
  margin-bottom: 8px;
}
.error-box .desc {
  font-size: 13px;
  color: #991B1B;
  line-height: 1.6;
}
