/* 全局样式 */
:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --info-color: #0dcaf0;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --light-color: #f8f9fa;
  --dark-color: #212529;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
}

a {
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  text-decoration: none;
}

.btn {
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 1.1rem;
}

/* 导航栏样式 */
.navbar {
  background: linear-gradient(135deg, #c70403 0%, #ffff00 100%) !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  padding: 1rem 0;
  color: #fff;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff !important;
}

.navbar-dark .navbar-brand,
.navbar-dark .nav-link {
  color: #fff !important;
}

.navbar-dark .navbar-brand:hover,
.navbar-dark .nav-link:hover {
  color: #333 !important;
}

.navbar-nav .nav-link {
  margin: 0 10px;
  font-weight: 500;
  position: relative;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: white;
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

/* 英雄区域样式 */
.hero-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #c70403 0%, #ffff00 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><rect fill="%230a58ca" opacity=".1" x="0" y="0" width="1000" height="1000"/><circle fill="%230a58ca" opacity=".1" cx="500" cy="500" r="300"/></svg>');
  background-size: cover;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-section .lead {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

/* 通用节区样式 */
section {
  padding: 80px 0;
}

.section-title {
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

/* 卡片样式 */
.card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.card-body {
  padding: 25px;
}

.feature-card {
  height: 100%;
  text-align: center;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: rgba(13, 110, 253, 0.1);
  border-radius: 50%;
  margin: 0 auto 20px;
}

.module-card {
  height: 100%;
  border-left: 4px solid var(--primary-color);
}

.module-card ul {
  list-style-type: none;
  padding-left: 0;
}

.module-card ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
}

.module-card ul li::before {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-color);
}

.value-card {
  height: 100%;
  transition: all 0.3s ease;
}

.value-card:hover {
  transform: scale(1.02);
}

.value-icon {
  color: var(--primary-color);
}

.tech-card {
  height: 100%;
  text-align: center;
  background: white;
}

.tech-icon {
  color: var(--info-color);
}

.innovation-card {
  background: white;
  border-left: 4px solid var(--warning-color);
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.innovation-card:hover {
  transform: translateX(10px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.vision-card {
  background: white;
  border-left: 4px solid var(--primary-color);
  margin-bottom: 20px;
  height: 100%;
}

.contact-option {
  background: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.contact-option:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* 统计数字样式 */
.stat-box {
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.stat-box:hover {
  transform: scale(1.05);
  background: rgba(255,255,255,0.2);
}

.stat-number {
  line-height: 1;
  font-weight: 700;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* 页脚样式 */
footer {
  padding: 30px 0;
  margin-top: 0;
}

/* 响应式设计 */
@media (max-width: 991.98px) {
  .hero-section {
    min-height: auto;
    padding: 60px 0;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  section {
    padding: 60px 0;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .navbar-collapse {
    background: var(--primary-color);
    padding: 15px;
    border-radius: 5px;
    margin-top: 10px;
  }
  
  .navbar-nav .nav-link {
    margin: 5px 0;
  }
}

@media (max-width: 767.98px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section .lead {
    font-size: 1rem;
  }
  
  .section-title h2 {
    font-size: 1.75rem;
  }
  
  .card-body {
    padding: 20px;
  }
  
  .feature-icon {
    width: 70px;
    height: 70px;
  }
  
  .btn-lg {
    padding: 10px 20px;
    font-size: 1rem;
  }
}

@media (max-width: 575.98px) {
  .hero-section h1 {
    font-size: 1.75rem;
  }
  
  section {
    padding: 40px 0;
  }
  
  .section-title h2 {
    font-size: 1.5rem;
  }
  
  .stat-box {
    margin-bottom: 20px;
  }
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

.delay-4 {
  animation-delay: 0.4s;
}

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0b5ed7;
}

/* Logo图片样式 */
.logo-img {
  width: 30px;
  height: 30px;
  margin-right: 10px;
  vertical-align: middle;
  background: transparent;
  border-radius: 4px;
  box-shadow: none;
  max-width: 100%;
  height: auto;
}

/* 图标动画 */
.fas {
  transition: transform 0.3s ease;
}

.fas:hover {
  transform: scale(1.1);
}

/* 引入颜色配置文件中的颜色定义 */
.bg-red {
  background-color: #c70403 !important;
  color: #ffffff;
}

.bg-yellow {
  background-color: #ffff00 !important;
  color: #333333;
}

.text-red {
  color: #c70403 !important;
}

.text-yellow {
  color: #ffff00 !important;
}

.border-red {
  border-color: #c70403 !important;
}

.border-yellow {
  border-color: #ffff00 !important;
}

/* 更新模块卡片样式以匹配主题色彩 */
.module-card {
  height: 100%;
  border-left: 4px solid #c70403;
  transition: all 0.3s ease;
  color: #333;
}

.module-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(199, 4, 3, 0.2);
}

/* 更新值卡片样式 */
.value-card {
  height: 100%;
  border-left: 4px solid #c70403;
  transition: all 0.3s ease;
}

.value-card.border-success {
  border-left-color: #198754;
}

.value-card.border-warning {
  border-left-color: #ffc107;
}

/* 更新技术卡片样式 */
.tech-card {
  height: 100%;
  text-align: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  transition: all 0.3s ease;
}

/* 更新创新卡片样式 */
.innovation-card {
  background: white;
  border-left: 4px solid #c70403;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.innovation-card:nth-child(2) {
  border-left-color: #ffa500;
}

.innovation-card:nth-child(3) {
  border-left-color: #00ff00;
}

.innovation-card:nth-child(4) {
  border-left-color: #0000ff;
}

/* 更新愿景卡片样式 */
.vision-card {
  background: white;
  border-left: 4px solid #c70403;
  margin-bottom: 20px;
  height: 100%;
  transition: all 0.3s ease;
}

.vision-card:nth-child(2) {
  border-left-color: #ffff00;
}

/* 更新联系选项样式 */
.contact-option {
  background: rgba(255, 255, 255, 0.15) !important;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  color: #fff !important;
}

.contact-option:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(199, 4, 3, 0.2);
}

/* 更新按钮样式 */
.btn {
  border-radius: 5px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #c70403 0%, #ff4351 100%);
  border-color: #c70403;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ff4351 0%, #c70403 100%);
  border-color: #ff4351;
}

.btn-outline-dark {
  border-color: #333;
  color: #333;
}

.btn-outline-dark:hover {
  background-color: #333;
  border-color: #333;
}

/* 更新统计框样式 */
.stat-box {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.stat-box:nth-child(odd) {
  background: rgba(199, 4, 3, 0.1);
}

.stat-box:nth-child(even) {
  background: rgba(255, 255, 0, 0.1);
}

/* 更新特色卡片样式 */
.feature-card {
  height: 100%;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(199, 4, 3, 0.1);
  border-radius: 8px;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(199, 4, 3, 0.2);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(199, 4, 3, 0.1) 0%, rgba(255, 255, 0, 0.1) 100%);
  border-radius: 50%;
  margin: 0 auto 20px;
}

/* 为不同特色卡片的图标设置不同的颜色 */
.col-lg-3:nth-child(1) .feature-icon i {
  color: #c70403;
}

.col-lg-3:nth-child(2) .feature-icon i {
  color: #ff6347; /* tomato色 */
}

.col-lg-3:nth-child(3) .feature-icon i {
  color: #00ff00; /* green色 */
}

.col-lg-3:nth-child(4) .feature-icon i {
  color: #0081ff; /* sky色 */
}

/* 或者使用更精确的选择器，根据卡片内容 */
.building-icon {
  color: #c70403;
}

.users-icon {
  color: #ff6347;
}

.tasks-icon {
  color: #00ff00;
}

.chart-icon {
  color: #0081ff;
}

/* 更新页脚样式 */
footer {
  background: linear-gradient(135deg, #c70403 0%, #ffff00 100%);
  color: #333;
  padding: 30px 0;
  margin-top: 0;
}

footer p {
  color: #333;
}

/* 更新section样式 */
section.bg-light {
  background-color: #fff9f0 !important;
}

/* 登录按钮样式 */
.navbar .btn-outline-dark {
  color: #fff !important;
  border-color: #fff !important;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  overflow: hidden !important;
  z-index: 1 !important;
}

.navbar .btn-outline-dark:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  z-index: -1;
  transition: all 0.3s ease;
}

.navbar .btn-outline-dark:hover {
  background-color: #c70403 !important;
  color: #fff !important;
  border-color: #c70403 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 12px rgba(199, 4, 3, 0.4) !important;
}

.navbar .btn-outline-dark:active {
  transform: translateY(1px) !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2) !important;
}