* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--dark);
  overflow-x: hidden;
  line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.logo-color {
  background: linear-gradient(135deg, #ef841a, rgba(246, 164, 95));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 全局间距调整 */
section {
  overflow: hidden;
}

.bg-primary-change {
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 50%, #8b5cf6 100%);
}

.rounded {
  border-radius: var(--border-radius) !important;
}

#about .item {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-agent .title {
  color: var(--dark-text);
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
}

.ai-agent .subtitle {
  color: var(--light-text);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

.ai-agent .ai-agent-card {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: none;
  padding: 2rem;
  margin-top: 1rem;
}

.ai-agent .ai-agent-card .tech-stack-badge {
  background-color: #e0f2fe;
  color: var(--accent-color);
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  font-size: 0.85rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  display: inline-block;
  border: 1px solid #bae6fd;
}

.ai-agent .ai-agent-card .feature-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: white;
  background-color: var(--primary);
}

.ai-agent .timeline-item {
  position: relative;
  padding-left: 2rem;
  padding-bottom: 2rem;
}

.ai-agent .timeline-item:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--primary);
}

.ai-agent .timeline-item:after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1.2rem;
  width: 2px;
  height: calc(100% - 0.5rem);
  background-color: #e2e8f0;
}

.ai-agent .timeline-item:last-child:after {
  display: none;
}

.ai-agent .highlight-text {
  color: var(--accent-color);
  font-weight: 600;
}

.ai-hero-card {
  background: white;
  margin-top: 2rem;
  margin-bottom: 3rem;
  border: 1px solid rgba(99, 102, 241, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

.ai-hero-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 50%, #8b5cf6 100%);
}

.ai-hero-card .ai-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 50%, #8b5cf6 100%);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  z-index: 2;
  animation: pulse 2s infinite;
}

.ai-hero-card .feature-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 50%, #8b5cf6 100%);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
  transition: all 0.3s ease;
}

.process-step {
  background-color: #f8fafc;
  padding: 1rem;
  height: 100%;
  text-align: center;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.process-step:hover {
  background-color: white;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.process-step .process-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.section-padding {
  padding: 100px 0;
}

.container {
  max-width: 1300px;
}

/* 标题样式优化 */
.section-title {
  margin-bottom: 70px;
  position: relative;
}

.section-title h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 70px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-title p {
  font-size: 1.1rem;
  color: var(--dark-gray);
  margin-top: 25px;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 导航栏优化 */
.navbar {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  padding: 20px 0;
  transition: var(--transition);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

.navbar.scrolled {
  padding: 15px 0;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--dark) !important;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  color: var(--dark) !important;
  font-weight: 600;
  margin: 0 8px;
  transition: var(--transition-fast);
  position: relative;
  padding: 8px 0 !important;
}

.nav-link::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary) !important;
}

.nav-link:hover::before,
.nav-link.active::before {
  width: 100%;
}

/* 按钮优化 */
.btn-primary-custom {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary-custom::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: var(--transition);
  z-index: -1;
}

.btn-primary-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4);
  color: white;
}

.btn-primary-custom:hover::before {
  left: 100%;
}

.btn-outline-custom {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-outline-custom:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.2);
}

/* Hero 区域优化 */
.hero-section {
  padding: 180px 0 120px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -300px;
  right: -200px;
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.08) 0%,
    rgba(59, 130, 246, 0) 70%
  );
  border-radius: 50%;
  z-index: 0;
}

.hero-section::after {
  content: "";
  position: absolute;
  bottom: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.06) 0%,
    rgba(139, 92, 246, 0) 70%
  );
  border-radius: 50%;
  z-index: 0;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 25px;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--dark-gray);
  margin-bottom: 40px;
  max-width: 650px;
}

.hero-stats {
  display: flex;
  gap: 30px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: white;
  transition: var(--transition);
  min-width: 140px;
}

.stat-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--dark-gray);
  margin-top: 8px;
  font-weight: 600;
}

/* 卡片样式优化 - 统一设计语言 */
.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.feature-card,
.service-card,
.case-card {
  background: white;
  border: none;
  transition: var(--transition);
  height: 100%;
  overflow: hidden;
}

.feature-card:hover,
.service-card:hover,
.case-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

/* 图标样式优化 */
.icon-wrapper {
  width: 70px;
  height: 70px;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.1),
    rgba(139, 92, 246, 0.1)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  font-size: 32px;
  color: var(--primary);
  transition: var(--transition);
}

.feature-card:hover .icon-wrapper {
  transform: scale(1.05) rotate(5deg);
  background: 0 30px 60px rgba(0, 0, 0, 0.12);
}

/* 服务卡片优化 */
.service-card {
  padding: 35px;
  position: relative;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover::before {
  opacity: 1;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.service-tag {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.service-card:hover .service-tag {
  background: rgba(59, 130, 246, 0.15);
  transform: translateY(-2px);
}

/* 案例卡片优化 */
.case-card {
  overflow: hidden;
}

.case-image {
  height: 200px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  color: white;
  position: relative;
  overflow: hidden;
}

.case-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
}

.case-content {
  padding: 30px;
}

.case-category {
  display: inline-block;
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}

/* 时间线优化 */
.timeline-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

#process .timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  z-index: 0;
}

#process .timeline-item {
  display: flex;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

#process .timeline-item:nth-child(odd) {
  justify-content: flex-start;
  padding-right: 50%;
}

#process .timeline-item:nth-child(even) {
  justify-content: flex-end;
  padding-left: 50%;
}

.timeline-content {
  background: white;
  padding: 30px;
  width: 90%;
  border: none;
  transition: var(--transition);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.timeline-marker {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  border: 4px solid var(--primary);
  z-index: 2;
  box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.2);
}

/* 合作伙伴区域优化 */
.partner-logo {
  background: white;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border: none;
}

.partner-logo:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

/* 联系表单优化 */
.contact-form {
  background: white;
  padding: 40px;
  border: none;
}

.form-control,
.form-select {
  background: white;
  border: 1px solid var(--medium-gray);
  color: var(--dark);
  padding: 15px 20px;
  margin-bottom: 20px;
  transition: var(--transition-fast);
  font-size: 1rem;
}

.form-control:focus,
.form-select:focus {
  background: white;
  border-color: var(--primary);
  color: var(--dark);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-control::placeholder {
  color: var(--dark-gray);
}

/* 页脚优化 */
.footer {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: white;
  padding: 80px 0 30px;
}

.footer-logo {
  font-weight: 800;
  font-size: 1.8rem;
  color: white;
  margin-bottom: 20px;
  display: inline-block;
}

.footer-logo span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-links h5 {
  font-size: 1.3rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 12px;
}

.footer-links h5::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px) rotate(5deg);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  margin-top: 50px;
  text-align: center;
  color: #94a3b8;
  font-size: 0.9rem;
}

#cases .btn-group .active {
  background-color: var(--primary);
  border: 1px solid var(--primary);
}
.table > :not(caption) > * > * {
  padding: 0.45rem 0.5rem !important;
}

.btn-scroll-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch; /* iOS 顺滑滚动 */
}

.btn-scroll-wrapper .btn-group {
  flex-wrap: nowrap; /* 不换行 */
  white-space: nowrap; /* 文本不换行 */
  display: inline-flex; /* 横向排列 */
}

.btn-scroll-wrapper .btn {
  flex: 0 0 auto; /* 按钮不被压缩 */
}

/* 响应式设计优化 */
@media (max-width: 1199px) {
  .hero-title {
    font-size: 3rem;
  }

  .section-title {
    margin-bottom: 0px !important;
  }
  .section-title h2 {
    font-size: 2.5rem;
  }

  #process .timeline-item:nth-child(even) {
    padding-left: unset;
  }

  #process .timeline-item:nth-child(odd) {
    padding-right: unset;
  }
}

@media (max-width: 991px) {
  .hero-title {
    font-size: 2.6rem;
  }

  .section-padding {
    padding: 80px 0;
  }

  #process .timeline-line {
    /* left: 30px; */
    display: none;
  }

  #process .timeline-item {
    flex-direction: row !important;
    justify-content: flex-start;
    padding-left: 0px;
    padding-right: 0;
  }

  .timeline-content {
    width: 100%;
  }

  .timeline-marker {
    /* left: 30px; */
    display: none;
  }

  .contact-form {
    padding: 40px;
  }
}

@media (max-width: 767px) {
  .hero-title {
    font-size: 2.3rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .section-title p {
    font-size: 1rem;
  }

  .hero-stats {
    gap: 8px;
  }

  .stat-item {
    min-width: 110px;
    padding: 18px;
  }

  .stat-number {
    font-size: 1.2rem;
  }
  .stat-label {
    font-size: 0.75rem;
}

  .service-card,
  .contact-form {
    padding: 25px;
  }
}

@media (max-width: 575px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }

  .section-padding {
    padding: 70px 0;
  }

  .contact-form {
    padding: 25px 20px;
  }

  .btn-primary-custom,
  .btn-outline-custom {
    padding: 12px 24px;
  }
}
