/* 基础样式重置与全局配置 */
html, body {
  overflow: visible;
  font-smoothing: antialiased;
  -webkit-font-smoothing: antialiased;
  font-family: 'Inter', 'SF Pro Display', system-ui, sans-serif;
  color: #111111;
  background-color: #f9fafb;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 3px;
}
::-webkit-scrollbar-thumb {
  background-color: #015db2;
  border-radius: 3px;
}
::-webkit-scrollbar-track {
  background-color: #f1f1f1;
}

/* 动画定义 */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
  animation: fadeInUp 0.8s ease-out forwards;
}
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

/* 自定义工具类 */
.section-full {
  height: auto;
  min-height: 100vh;
  scroll-snap-align: start;
  padding-bottom: 20px;
}
.scroll-snap-container {
  scroll-snap-type: y mandatory;
  overflow-y: auto;
  height: 100vh;
}
.nav-item-active {
  color: #015db2 !important;
  border-bottom: 2px solid #015db2 !important;
}
.bg-grid {
  background-image: 
    linear-gradient(rgba(1, 93, 178, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1, 93, 178, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* 产品轮播样式 */
.product-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 100%;
}
.product-slider-track {
  display: flex;
  transition: transform 0.5s ease;
}
.product-slider-item {
  flex: 0 0 calc(100% / 4);
  max-width: calc(100% / 4);
}
.slider-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 10;
  cursor: pointer;
  transition: all 0.3s ease;
}
.slider-control:hover {
  background-color: #015db2;
  color: white;
}
.slider-prev {
  left: 10px;
}
.slider-next {
  right: 10px;
}
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
}
.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #e5e5e5;
  cursor: pointer;
  transition: all 0.3s ease;
}
.slider-dot.active {
  background-color: #015db2;
  width: 20px;
  border-radius: 5px;
}

/* 贪吃蛇边框动画 */
.snake-border {
  position: relative;
  overflow: hidden;
}
.snake-border::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #015db2;
  transform: translateX(-100%);
  transition: transform 0.8s ease;
}
.snake-border::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 2px;
  height: 100%;
  background: #015db2;
  transform: translateY(-100%);
  transition: transform 0.8s ease 0.2s;
}
.snake-border .snake-bottom {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 2px;
  background: #015db2;
  transform: translateX(100%);
  transition: transform 0.8s ease 0.4s;
}
.snake-border .snake-left {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: #015db2;
  transform: translateY(100%);
  transition: transform 0.8s ease 0.6s;
}
.snake-border:hover::before {
  transform: translateX(0);
}
.snake-border:hover::after {
  transform: translateY(0);
}
.snake-border:hover .snake-bottom {
  transform: translateX(0);
}
.snake-border:hover .snake-left {
  transform: translateY(0);
}

/* 科技风格解决方案卡片样式 */
.solution-card {
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(18px);
  background: #ffffff;
  border-radius: 12px;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 2px 10px rgba(0, 0, 0, 0.08);
  transform: perspective(1000px) rotateX(0deg) translateY(0);
}
/* 每个卡片左侧不同颜色边框 */
.card-1 { border-left: 6px solid #0066FF; }
.card-2 { border-left: 6px solid #0066FF; }
.card-3 { border-left: 6px solid #0066FF; }
.card-4 { border-left: 6px solid #0066FF; }
.card-5 { border-left: 6px solid #0066FF; }
.card-6 { border-left: 6px solid #0066FF; }

.solution-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-color: rgba(255, 255, 255, 0.02);
  opacity: 0.08;
  transition: all 0.5s ease;
  z-index: 0;
}
  /* 卡片悬浮效果 - 不影响原有样式 */
  .solution-card:hover {
    transform: perspective(1000px) rotateX(2deg) translateY(-8px) !important;
    box-shadow: var(--tw-shadow-tech-hover) !important;
  }
  
  /* 悬浮时蓝色背景滑入 */
  .solution-card:hover .absolute.inset-0 {
    transform: translateX(0);
  }
  
  /* 悬浮时文字变白色 */
  .solution-card:hover h3,
  .solution-card:hover p {
    color: white !important;
  }
  
  /* 响应式适配 - 小屏幕优化 */
  @media (max-width: 768px) {
    .solution-card {
      margin-bottom: 12px;
    }
    .solution-card:hover {
      transform: translateY(-4px) !important; /* 移动端悬浮上移幅度减小 */
    }
  }
  
  @media (max-width: 640px) {
    .solution-card {
      padding: 1rem;
    }
    .solution-card h3 {
      font-size: 1.1rem;
    }
    .solution-card p {
      font-size: 0.9rem;
    }
  }
/* 科技风格悬浮效果 - 3D立体+阴影增强 */
.solution-card:hover {
  transform: perspective(1000px) rotateX(2deg) translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 4px 15px rgba(0, 0, 0, 0.1);
}
.solution-card:hover::before {
  opacity: 0.12;
  background-color: rgba(255, 255, 255, 0.05);
}

/* 数字图标容器 - 科技风格 */
.tech-number-container {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, var(--num-color) 0%, color-mix(in srgb, var(--num-color), transparent 30%) 100%);
  box-shadow: 0 4px 15px rgba(var(--num-rgb), 0.2);
  transition: all 0.4s ease;
}
.solution-card:hover .tech-number-container {
  transform: scale(1.15);
  box-shadow: 0 6px 20px rgba(var(--num-rgb), 0.3);
}
.solution-card > * {
  position: relative;
  z-index: 1;
}

/* 红色左边框样式 */
.red-left-border {
  border-left: 3px solid #ef4444 !important;
}

/* 二维码容器样式 */
.qrcode-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.qrcode-item {
  text-align: center;
}
.qrcode-item img {
  width: 100%;
  max-width: 120px;
  height: auto;
  margin: 0 auto 8px;
}
.qrcode-item p {
  font-size: 12px;
  color: #666;
}

/* 社交图标样式 */
.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s ease;
}
.social-icon:hover {
  background-color: white;
  color: #015db2;
  transform: translateY(-3px);
}

/* 验证码样式 */
.captcha-container {
  display: flex;
  gap: 10px;
  align-items: center;
}
.captcha-input {
  flex: 1;
  width: 200px;
  min-width: 120px;
  max-width: 200px;
}
.captcha-img {
  width: 100px;
  height: 45px;
  background-color: #f5f5f5;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 4px;
  color: #015db2;
  cursor: pointer;
  user-select: none;
  border: 1px solid #e5e5e5;
}
.captcha-img:hover {
  background-color: #f0f0f0;
}

/* 导航高亮激活样式 */
.nav-link.active {
  color: #015db2 !important;
  border-bottom: 2px solid #015db2 !important;
}
.nav-link.active:hover {
  color: rgba(1, 93, 178, 0.9) !important;
}

/* 各区块样式 */
/* 第一屏主题色背景 */
#section1 {
  background-image: url('{label:homebanner}');
  background-position: center;
  background-size: cover;
}

/* 页尾样式 - 主题色背景，增加高度 */
footer {
  background-color: #015db2 !important;
  min-height: 300px;
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

/* 一站式解决方案线性背景样式 */
#section2 {
  background-image: url('/static/images/index-item01-bg.jpg');
  background-color:#237dc7;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  position: relative;
}
#section2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.28);
  z-index: 0;
}
#section2 > .container {
  position: relative;
  z-index: 1;
}

/* 客户案例左右布局 + 背景图 */
#section3 {
  background-image: url('/static/images/5eb3ab539bed6.jpg');
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  position: relative;
}
#section3::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  z-index: 0;
}
#section3 > * {
  position: relative;
  z-index: 1;
}
.client-container {
  width: 100%;
  max-width: 1536px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* 第四屏：产品中心 */
#section4 {
  background-image: url('https://picsum.photos/id/142/1920/1080?abstract=blue-geometry');
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  position: relative;
}
#section4::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(1, 93, 178, 0.8);
  z-index: 0;
}
#section4 > .container {
  position: relative;
  z-index: 1;
}

/* 核心布局样式：2行4列网格 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 16px;
  max-width: 1360px;
  margin: 0 auto;
}
/* 第一个产品占2行1列 */
.product-card:first-child {
  grid-row: 1 / span 2;
  grid-column: 1 / span 1;
  height: 100%;
}
/* 其他产品均分剩余列，每行2个 */
.product-card:not(:first-child) {
  height: 100%;
}
/* 产品卡片基础样式 */
.product-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
/* 鼠标悬浮放大动画 + 阴影增强 */
.product-card:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}
/* 产品图片容器 */
.product-img {
  flex: 1;
  overflow: hidden;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
/* 图片内部放大效果 */
.product-card:hover .product-img img {
  transform: scale(1.1);
}
/* 产品标题样式 */
.product-title {
  padding: 12px 16px;
  text-align: center;
  font-weight: 600;
  color: #333;
  border-top: 1px solid #f0f0f0;
}

/* 第5屏背景样式 */
#section5 {
  background-image: url('https://picsum.photos/id/1048/1920/1080?abstract=network-blue');
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  position: relative;
}
#section5::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.92);
  z-index: 0;
}
#section5 > * {
  position: relative;
  z-index: 1;
}

/* 响应式适配 */
@media (max-width: 1024px) {
  .product-slider-item {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 1fr);
  }
  .product-card:first-child {
    grid-row: 1 / span 2;
    grid-column: 1 / span 1;
  }
}

@media (max-width: 768px) {
  .product-slider-item {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .product-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .product-card:first-child {
    grid-row: auto;
    grid-column: auto;
  }
  .product-card {
    margin-bottom: 16px;
  }
}