/* AI应用开发页面样式 */

/* 确保页面内容一致 */
body {
  font-family: 'Lato', sans-serif;
  color: #2c3e50;
  line-height: 1.6;
}

/* Banner标题样式 */
.breadcrumbs-custom-title {
  color: #fff !important;
}

/* 自定义容器宽度 */
.container-custom-width-1 {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* 服务标题 */
.section-title {
  margin-bottom: 25px;
  color: #1e293b;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 32px;
  position: relative;
  padding-bottom: 20px;
  text-align: center;
  justify-content: center;
}

.section-title i {
  color: #022F80;
  background: linear-gradient(135deg, rgba(4, 59, 160, 0.2) 0%, rgba(4, 59, 160, 0.1) 100%);
  padding: 16px;
  border-radius: 50%;
  font-size: 28px;
  box-shadow: 0 6px 20px rgba(4, 59, 160, 0.3);
  transition: all 0.3s ease;
}

.section-title span:last-child {
  flex-grow: 1;
  height: 4px;
  /* background: linear-gradient(to right, #043ba0, transparent); */
  margin-left: 24px;
  border-radius: 2px;
}

/* 服务描述 */
.section-desc {
  margin-bottom: 40px;
  color: #64748b;
  line-height: 1.8;
  font-size: 16px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* 服务项目 */
.service-item {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(4, 59, 160, 0.1);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  height: 100%;
  /* min-height: 280px; */
  box-sizing: border-box;
}

.service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #043ba0 0%, #022F80 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(4, 59, 160, 0.15);
  border-color: rgba(4, 59, 160, 0.2);
}

.service-item:hover::before {
  transform: scaleX(1);
}

.service-item .service_top_image {
  margin-top: 0;
  position: relative;
}

.service-item .service_top_image i {
  font-size: 36px;
  color: #043ba0;
  background: linear-gradient(135deg, rgba(4, 59, 160, 0.15) 0%, rgba(4, 59, 160, 0.1) 100%);
  padding: 20px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(4, 59, 160, 0.15);
  transition: all 0.3s ease;
}

.service-item:hover .service_top_image i {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, rgba(4, 59, 160, 0.3) 0%, rgba(4, 59, 160, 0.2) 100%);
  color: #022F80;
  box-shadow: 0 10px 30px rgba(4, 59, 160, 0.35);
}

.service-item .text_box {
  text-align: center;
  flex-grow: 1;
}

.service-item .text_box h4 {
  color: #1e293b;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  transition: color 0.3s ease;
  line-height: 1.3;
  min-height: 48px;
}

.service-item:hover .text_box h4 {
  color: #043ba0;
}

.service-item .text_box p {
  color: #64748b;
  line-height: 1.6;
  font-size: 14px;
  margin-bottom: 0;
  flex-grow: 1;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 服务卡片网格 */
.row.row-30 {
  margin: 0 -10px;
  display: flex;
  flex-wrap: wrap;
}

.row.row-30 > [class*="col-"] {
  padding: 0 10px;
  flex: 0 0 auto;
}

.row.row-30 > .col-md-4 {
  width: 33.33333333%;
  max-width: 33.33333333%;
}

.row.row-30 > .col-md-6 {
  width: 50%;
  max-width: 50%;
}

.row.row-30 > .col-md-3 {
  width: 25%;
  max-width: 25%;
}

.row.row-30 > .col-6 {
  width: 50%;
  max-width: 50%;
}

/* 不同背景色的服务section */
section.bg-default {
  /* background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%); */
}

section.bg-gray-100 {
  /* background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%); */
}

/* 事业概述卡片样式 */
.blurb-boxed {
  background: linear-gradient(135deg, #ffffff, #f8f9ff);
  border-radius: 15px;
  padding: 30px 25px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: all 0.4s ease;
  border: 1px solid rgba(144, 205, 244, 0.2);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blurb-boxed:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  border-color: rgba(144, 205, 244, 0.4);
}

.blurb-boxed-header {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.blurb-boxed-icon {
  font-size: 2.5rem;
  color: #4f46e5;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(59, 130, 246, 0.2));
  padding: 15px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
  transition: all 0.3s ease;
}

.blurb-boxed:hover .blurb-boxed-icon {
  transform: scale(1.05) rotate(5deg);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
}

.blurb-boxed-body {
  text-align: center;
  flex: 1;
}

.blurb-boxed-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a365d;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.blurb-boxed-text {
  color: #2d3748;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* 核心技术能力卡片样式 */
.box-modern {
  background: linear-gradient(135deg, #ffffff, #f8f9ff);
  border-radius: 15px;
  padding: 35px 30px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: all 0.4s ease;
  border: 1px solid rgba(144, 205, 244, 0.2);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.box-modern:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  border-color: rgba(144, 205, 244, 0.4);
}

.box-modern-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

.box-modern-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a365d;
  margin-bottom: 15px;
  text-align: center;
  transition: all 0.3s ease;
}

.box-modern-text {
  color: #2d3748;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
  margin: 0;
}

/* 主要应用案例卡片样式 */
.project-grid {
  background-size: cover;
  background-position: center center;
  height: 380px;
  width: 100%;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  transition: all 0.4s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  background-blend-mode: overlay;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(144, 205, 244, 0.3);
  backdrop-filter: blur(5px);
}

.project-grid::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(79, 109, 172, 0.85), rgba(59, 89, 152, 0.9));
  z-index: 1;
}

.project-grid .inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 25px 30px;
  background: rgba(255, 255, 255, 0.9);
  z-index: 2;
  transition: all 0.4s ease;
  border-radius: 12px;
  margin: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-grid:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25), 0 4px 12px rgba(0, 0, 0, 0.1);
}

.project-grid:hover .inner {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
}

.project-grid .title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a365d;
  margin-bottom: 18px;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.project-grid:hover .title {
  transform: translateY(-2px);
}

.project-grid .exeption {
  color: #2d3748;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  opacity: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: none;
  max-height: 120px;
}

.project-grid:hover .exeption {
  opacity: 1;
  transform: translateY(-3px);
}

/* 应用领域卡片样式 */
.blurb-boxed.text-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* 统一卡片高度 */
.row.row-30 {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.row.row-30 > [class^="col-"] {
  padding-right: 15px;
  padding-left: 15px;
  margin-bottom: 30px;
  display: flex;
}

.row.row-30 > [class^="col-"] > * {
  flex: 1;
}

/* 响应式设计 */
@media (max-width: 767px) {
  .blurb-boxed,
  .box-modern,
  .project-grid {
    margin: 0 10px 30px 10px;
  }
  
  .project-grid {
    height: 320px;
  }
  
  .project-grid .inner {
    padding: 20px 25px;
    margin: 10px;
  }
  
  .blurb-boxed-title,
  .box-modern-title,
  .project-grid .title {
    font-size: 1.2rem;
  }
  
  .blurb-boxed-text,
  .box-modern-text,
  .project-grid .exeption {
    font-size: 13px;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .project-grid {
    height: 360px;
  }
}

/* 页脚区域 */
.footer-dark {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  padding: 10px 0;
  margin-top: 30px;
  width: 100%;
}

.footer-dark .copyright .col-md-12 {
  text-align: center;
}

.footer-dark .copyright p {
  margin-bottom: 0;
  white-space: nowrap;
}

.footer-dark .copyright small {
  color: #cbd5e1;
  font-size: 14px;
}

.footer-dark .copyright a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-dark .copyright a:hover {
  color: #ffffff;
}
