/* 极简设计样式 */
html {
  font-size: 14px;
  scroll-behavior: smooth;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

body {
  margin: 0;
  padding-bottom: 60px; /* 为固定页脚留出空间 */
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: #fafafa;
  min-height: 100vh; /* 确保body至少占满整个视窗高度 */
}

/* 登录页面样式 */
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 120px);
  padding: 20px 0;
}

.login-card {
  width: 100%;
  max-width: 400px;
  padding: 40px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.login-logo {
  max-height: 60px;
  width: auto;
}

/* 滑动验证组件样式 */
.slider-captcha-container {
  width: 100%;
}

.slider-captcha {
  width: 100% !important;
}

.slider-track {
  width: 100% !important;
}

/* 主页英雄区域 */
.hero-section {
  padding: 60px 0 40px 0; /* 减少padding，使内容上移 */
  text-align: center;
  background-color: white;
  border-bottom: 1px solid #eee;
}

.logo-container {
  margin-bottom: 20px;
}

.hero-logo {
  max-height: 130px;
  width: auto;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #666;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions .btn {
  margin: 0 10px;
  padding: 12px 30px;
  font-size: 1rem;
}

/* 特性区域 */
.features-section {
  padding: 40px 0 20px 0; /* 减少padding，使内容上移 */
  background-color: #fff;
}

.feature-card {
  text-align: center;
  padding: 30px;
  border-radius: 8px;
  transition: all 0.3s ease;
  margin-bottom: 30px; /* 增加卡片间距 */
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #333;
}

.feature-card p {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
}

/* 页脚样式 */
.footer {
  position: fixed; /* 改为fixed定位 */
  bottom: 0;
  width: 100%;
  height: 60px; /* 设置固定高度 */
  line-height: 60px; /* 与高度一致以垂直居中文本 */
  background-color: #f8f9fa; /* 恢复背景色 */
  text-align: center;
  border-top: 1px solid #dee2e6;
  z-index: 1000; /* 确保页脚在其他元素之上 */
}

/* 响应式调整 */
@media (max-width: 768px) {
  .hero-section {
    padding: 40px 0 20px 0; /* 移动端也减少padding */
  }
  
  .hero-logo {
    max-height: 60px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .features-section {
    padding: 30px 0 10px 0; /* 移动端也减少padding */
  }
  
  .feature-card {
    padding: 20px;
    margin-bottom: 20px;
  }
  
  .login-card {
    padding: 30px 20px;
    margin: 0 15px;
  }
  
  .footer {
    font-size: 0.875rem;
    height: 50px; /* 移动端稍小的高度 */
    line-height: 50px;
  }
  
  body {
    padding-bottom: 50px; /* 移动端为页脚留出空间 */
  }
  
  /* 移动端滑动验证组件样式 */
  .slider-captcha {
    touch-action: none; /* 允许触摸操作 */
  }
  
  .slider-btn {
    touch-action: none; /* 允许触摸操作 */
  }
}