/* ==========================================
   首页样式文件 - index.css
   包含首页所有模块的样式定义
   ========================================== */

/* ==========================================
   导航栏样式
   ========================================== */
.navbar-custom {
  background-color: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1.2rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition-base);
}

.navbar-custom.scrolled {
  padding: 0.8rem 0;
  box-shadow: var(--shadow-sm);
}

.navbar-brand-custom {
  display: flex;
  align-items: center;
  padding: 0;
}

.navbar-brand-custom img {
  height: 40px;
  width: auto;
  transition: var(--transition-base);
}

.navbar-brand-custom:hover img {
  opacity: 0.8;
}

.navbar-nav-custom {
  gap: 2.5rem;
}

.navbar-nav-custom .nav-link {
  color: #666;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  transition: var(--transition-base);
  position: relative;
  letter-spacing: 0.01em;
}

.navbar-nav-custom .nav-link:hover,
.navbar-nav-custom .nav-link.active {
  color: #1a1a1a;
}

.navbar-nav-custom .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #1a1a1a;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar-nav-custom .nav-link:hover::after,
.navbar-nav-custom .nav-link.active::after {
  width: 100%;
}

.navbar-toggler-custom {
  border: none;
  padding: 0.5rem;
  background: transparent;
}

.navbar-toggler-custom:focus {
  outline: none;
  box-shadow: none;
}

/* ==========================================
   Banner区域样式
   ========================================== */
.banner-section {
  margin-top: 76px;
  min-height: min(600px, 85dvh);
  background-color: #fafafa;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.banner-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.banner-content {
  position: relative;
  z-index: 1;
}

.banner-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #1a1a1a;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.banner-title .highlight {
  color: #6366f1;
  position: relative;
  display: inline-block;
}

.banner-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  margin-bottom: 1.5rem;
  font-weight: 600;
  color: #374151;
  letter-spacing: -0.01em;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.banner-description {
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  line-height: 1.8;
  color: #6b7280;
  max-width: 540px;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.banner-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.btn-banner-primary {
  background-color: #1a1a1a;
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  display: inline-block;
}

.btn-banner-primary:hover {
  background-color: #374151;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  color: white;
}

.btn-banner-primary:active {
  transform: translateY(0);
}

.btn-banner-outline {
  background-color: transparent;
  color: #1a1a1a;
  border: 1.5px solid #e5e7eb;
  padding: 13px 30px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  display: inline-block;
}

.btn-banner-outline:hover {
  border-color: #1a1a1a;
  background-color: #1a1a1a;
  color: white;
  transform: translateY(-2px);
}

.btn-banner-outline:active {
  transform: translateY(0);
}

/* Banner右侧装饰区域 */
.banner-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.banner-visual-circle {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-visual-circle::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 2px dashed #d1d5db;
  animation: rotate 30s linear infinite;
}

.banner-visual-icon {
  font-size: 6rem;
  color: #9ca3af;
  opacity: 0.6;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ==========================================
   业务介绍区域样式
   ========================================== */
.services-section {
  padding: 6rem 0;
  background-color: #fff;
}

.service-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  margin-bottom: 2rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: #d1d5db;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.08);
}

.service-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1.5rem;
  background: #f3f4f6;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #374151;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-icon {
  background: #1a1a1a;
  color: white;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #1a1a1a;
  letter-spacing: -0.01em;
}

.service-description {
  color: #6b7280;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ==========================================
   页脚样式
   ========================================== */
.footer-section {
  background-color: #fafafa;
  border-top: 1px solid #e5e7eb;
  color: #374151;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1a1a1a;
  letter-spacing: -0.02em;
}

.footer-brand p {
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.footer-links h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 0.75rem;
}

.footer-links ul li a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 0.95rem;
}

.footer-links ul li a:hover {
  color: #1a1a1a;
}

.footer-bottom {
  border-top: 1px solid #e5e7eb;
  padding-top: 2rem;
  text-align: center;
  color: #9ca3af;
  font-size: 0.9rem;
}

.footer-bottom p {
  margin-bottom: 0.5rem;
}

.footer-bottom a {
  color: #6b7280;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #1a1a1a;
}

.footer-contact {
  margin-top: 1rem;
  color: #6b7280;
  font-size: 0.95rem;
}

/* ==========================================
   响应式设计
   ========================================== */
@media (max-width: 992px) {
  .banner-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .banner-description {
    margin-left: auto;
    margin-right: auto;
  }
  
  .banner-buttons {
    justify-content: center;
  }
  
  .banner-visual {
    display: none;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .navbar-nav-custom {
    gap: 0;
  }
  
  .navbar-nav-custom .nav-link {
    padding: 0.75rem 0;
  }
  
  .navbar-collapse {
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 0.5rem;
    box-shadow: var(--shadow-sm);
  }
  
  .banner-section {
    min-height: auto;
    padding: 3rem 0;
  }
  
  .banner-container {
    padding: 2rem 1.5rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-brand {
    text-align: center;
  }
}

@media (max-width: 576px) {
  .banner-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-banner-primary,
  .btn-banner-outline {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}
