/* 全局样式 */
* {
  box-sizing: border-box;
}

/* 强制设置根元素背景 */
:root {
  background: #f0f2f5 !important;
}

html {
  background: #f0f2f5 !important;
  min-height: 100vh;
  width: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0 !important;
  padding: 0 !important;
  background: #f0f2f5 !important;
  min-height: 100vh;
  width: 100%;
}

/* 后台管理系统样式 */
.admin-layout,
.admin-login {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  overflow: hidden !important;
  z-index: 9999 !important;
}

/* 后台管理系统覆盖全局背景 */
body.admin-body {
  background: #f0f2f5 !important;
  overflow: hidden;
}

/* 通用按钮样式补充（基础样式在 App.vue 中定义） */
.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

/* 通用模态框样式 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.modal-content h3 {
  margin-bottom: 15px;
  color: #333;
  font-size: 18px;
}

.modal-content p {
  margin-bottom: 20px;
  color: #666;
  line-height: 1.5;
  font-size: 14px;
}

/* 容器样式 */
.container {
  width: 100%;
  position: relative;
}

/* 主页特殊容器 */
.home-container {
  background: #f0f2f5;
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* 各页面容器 */
.lottery-container,
.profile-container,
.login-page-container,
.register-page-container {
  background: #f0f2f5;
  position: relative;
  padding: 0;
  flex: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .page-header {
    padding: 20px 15px 15px;
  }
  
  .page-title {
    font-size: 20px;
  }
  
  .page-subtitle {
    font-size: 13px;
  }
  
  .modal-content {
    padding: 25px 20px;
  }
  
  .lottery-container,
  .profile-container,
  .login-page-container,
  .register-page-container {
    padding: 0 15px;
  }
}

/* 加载动画在 App.vue 中已定义，此处不再重复 */

/* 错误提示样式 */
.error-message {
  background: #ffebee;
  color: #c62828;
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 15px;
  border-left: 4px solid #e53e3e;
}

/* 成功提示样式 */
.success-message {
  background: #e8f5e8;
  color: #2e7d32;
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 15px;
  border-left: 4px solid #4caf50;
}

/* 隐藏子页面顶部背景图的浮动元素 */
.page-header-modern::before {
  display: none !important;
}

/* 移除移动端 tap 高亮效果（保留键盘导航的 outline 以确保无障碍访问） */
a, button {
  -webkit-tap-highlight-color: transparent;
}

/* 协议链接去除高亮背景 */
.terms-link {
  -webkit-tap-highlight-color: transparent;
  background: transparent !important;
} 