/* CoreUI风格的现代化样式 */
:root {
  --primary: #321fdb;
  --secondary: #9da5b1;
  --success: #4dbd74;
  --info: #63c2de;
  --warning: #ffc107;
  --danger: #f86c6b;
  --light: #f0f3f5;
  --dark: #2f353a;
  --gradient-start: #321fdb;
  --gradient-end: #4dbd74;
}

/* 重置默认样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #3c4b64;
  background-color: #ebedef;
  overflow-x: hidden;
}

/* 导航栏样式 */
.navbar {
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  z-index: 1050;
}

.navbar-brand {
  font-weight: 700;
  color: var(--primary) !important;
  display: flex;
  align-items: center;
}

.navbar-brand i {
  margin-right: 0.5rem;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: #3c4b64 !important;
  padding: 0.5rem 1rem !important;
  transition: all 0.3s;
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: var(--primary) !important;
}

.navbar-nav .nav-link.active {
  color: var(--primary) !important;
  font-weight: 600;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 70%;
}

.navbar-toggler {
  border: none;
  outline: none !important;
}

.navbar-toggler:focus {
  box-shadow: none;
}

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

.hero-section::before {
  content: "";
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(50, 31, 219, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  top: -400px;
  right: -200px;
  z-index: 0;
}

.hero-section::after {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 189, 116, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  bottom: -300px;
  left: -200px;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: #2f353a;
}

.hero-section .lead {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: #666f7a;
}

.btn-coreui {
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-coreui i {
  margin-right: 0.5rem;
}

.btn-coreui-primary {
  background: linear-gradient(45deg, var(--primary), #4dbd74);
  color: white;
  box-shadow: 0 4px 20px rgba(50, 31, 219, 0.3);
}

.btn-coreui-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(50, 31, 219, 0.4);
  color: white;
}

.btn-coreui-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-coreui-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

/* 统计数据区域 */
.stats-section {
  background-color: white;
  padding: 4rem 0;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 2;
  margin-top: -50px;
  margin-bottom: 5rem;
}

.counter-item {
  text-align: center;
  padding: 2rem;
  position: relative;
}

.counter-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: 1px;
  height: 60%;
  background: #e4e9f2;
  transform: translateY(-50%);
}

.stats-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(45deg, var(--primary), #4dbd74);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stats-label {
  color: #666f7a;
  font-weight: 500;
}

/* 特色服务区域 */
.services-section {
  padding: 6rem 0;
  background-color: #ffffff;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.section-title h2 {
  font-weight: 700;
  color: #2f353a;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-title p {
  color: #666f7a;
  font-size: 1.1rem;
}

.feature-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 100%;
  border: 1px solid #e4e9f2;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.1);
  border-color: rgba(50, 31, 219, 0.1);
}

.feature-card .card-body {
  padding: 2rem;
}

.icon-box {
  width: 5rem;
  height: 5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.bg-primary-light {
  background-color: rgba(50, 31, 219, 0.1);
  color: var(--primary);
}

.bg-success-light {
  background-color: rgba(77, 189, 116, 0.1);
  color: var(--success);
}

.bg-info-light {
  background-color: rgba(99, 194, 222, 0.1);
  color: var(--info);
}

.feature-card h4 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: #2f353a;
}

.feature-card p {
  color: #666f7a;
  margin-bottom: 1.5rem;
}

/* 合作伙伴区域 */
.partnership-section {
  padding: 6rem 0;
  background-color: #f8f9fa;
}

.partner-badge {
  background: white;
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 100%;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.03);
  border: 1px solid #e4e9f2;
}

.partner-badge:hover {
  transform: translateY(-10px);
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.1);
  border-color: rgba(50, 31, 219, 0.1);
}

.partner-badge i {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
}

.partner-badge h4 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: #2f353a;
}

.partner-badge p {
  color: #666f7a;
  margin-bottom: 1.5rem;
}

/* CTA区域 */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #4dbd74 100%);
  padding: 6rem 0;
  color: white;
  text-align: center;
}

.cta-section h2 {
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 2.5rem;
}

.cta-section p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

/* 页脚 */
.footer {
  background-color: #2f353a;
  color: #adb5bd;
  padding: 5rem 0 2rem;
}

.footer h4,
.footer h5 {
  color: white;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.footer ul li {
  margin-bottom: 0.75rem;
}

.footer a {
  color: #adb5bd;
  text-decoration: none;
  transition: all 0.3s;
}

.footer a:hover {
  color: white;
  padding-left: 0.25rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transition: all 0.3s;
}

.social-links a:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

.footer hr {
  background-color: rgba(255, 255, 255, 0.1);
  margin: 2rem 0;
}

/* 响应式设计 */
@media (max-width: 991.98px) {
  .hero-section {
    text-align: center;
  }
  
  .hero-section .btn-group {
    justify-content: center;
  }
  
  .counter-item:not(:last-child)::after {
    display: none;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
}

@media (max-width: 767.98px) {
  .navbar-collapse {
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    margin-top: 0.5rem;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .stats-number {
    font-size: 2rem;
  }
  
  .cta-section h2 {
    font-size: 2rem;
  }
}

/* 动画效果 */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

.floating-element {
  animation: float 6s ease-in-out infinite;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.appear {
  opacity: 1;
  transform: translateY(0);
}

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

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

::-webkit-scrollbar-thumb {
  background: #c5c5c5;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}