/*--------------------------------------------------------------
# 一键智能成图页面
--------------------------------------------------------------*/
.ai-g-main {
  overflow: hidden;
}

.ai-g-main .g-section-header {
  padding-top: 80px;
  justify-content: center;
  flex-direction: column;
  display: flex;
  position: relative;
  background: url(/assets/images/ai_generation/ai-g-1.jpg);
  background-size: cover;
}

.ai-g-main .ai-g-title {
  text-align: center;
  font-size: 3.8rem;
  font-weight: bolder;
  color: #0066ff;
  margin-top: 50px;
  text-shadow: 0 5px 0 #ffffff, 0 3px 4px rgba(255, 255, 255, 0.6);
}

/* .ai-g-main .ai-g-p {
  text-align: center;
  background: linear-gradient(135deg, #f30487 0%, #f50385 10%, #da0b94 30%, #7C3AED 100%);
  font-size: 2.5rem;
  font-weight: bolder;
  line-height: 2;
  letter-spacing: -1.64px;
  -webkit-text-fill-color: transparent;
  background-clip: text;
} */

.ai-g-main .ai-g-p {
  text-align: center;
  background: linear-gradient(135deg, #f30487 0%, #f50385 10%, #da0b94 30%, #7C3AED 100%);
  font-size: 2.5rem;
  font-weight: bolder;
  line-height: 2;
  letter-spacing: -1.64px;
  
  /* 渐变文字核心代码 */
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.ai-g-main .ai-g-p1 {
  text-align: center;
  font-size: 1.5rem;
  line-height: 2;
  background-clip: text;
}

.ai-g-main .ai-g-tag {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  font-size: 1.4rem;
}

.ai-g-main .tag-zero {
  margin: 10px;
  width: 110px;
  height: 48px;
  border-radius: 9999px;
  opacity: 0.8;
  background: #fbe5d6;
  color: #0066ff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-g-main .tag-second {
  margin: 10px;
  width: 150px;
  height: 48px;
  border-radius: 9999px;
  opacity: 0.8;
  background: #e2f0d9;
  color: #0066ff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-g-main .tag-pro {
  margin: 10px;
  width: 160px;
  height: 48px;
  border-radius: 9999px;
  opacity: 0.8;
  background: #ededed;
  color: #0066ff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-g-main .quickbar-outer {
  display: flex;
  margin-top: 50px;
  border-radius: 24px;
  box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 20px 25px -5px, rgba(0, 0, 0, 0.1) 0px 8px 10px -6px;
  background: #ffffff;
  border: 1px solid #f3f4f6;
}

.ai-g-main .quickbar-icon-bg {
  width: 60px;
  height: 60px;
  border-radius: 9999px;
  background: #2563eb;
  position: relative;
  top: 30px;
  left: 50px;
}

.ai-g-main .quickbar-icon {
  width: 31px;
  height: 36px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.ai-g-main .quickbar-width {
  width: 400px;
}

.ai-g-main .quickbar-title {
  height: 60px;
  color: #0066ff;
  font-size: 1.6rem;
  font-weight: 600;
  margin: 10px 0 0 0;
}

.ai-g-main .quickbar-sub {
  height: 40px;
  color: #1e293b;
  font-size: 1.35rem;
  line-height: 1;
  margin: 0;
}

.ai-g-main .quickbar-divider {
  width: 1px;
  height: 77px;
  background: #e5e7eb;
}

.ai-g-main .g-section-body{
  background: linear-gradient(120deg, #dcf5ff, #d8d4f9, #dcf5ff);
  animation: gradientShift 8s ease infinite;
  padding: 30px 0 0 0;
}

/*--------------------------------------------------------------
# 右侧浮卡片
--------------------------------------------------------------*/
.ai-g-main .g-sticky-card {
  background: rgba(242, 244, 247, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(229, 231, 235, 0.5);
  border-radius: 1rem;
  padding: 1rem 0.8rem;
  text-align: left;
  transition: all 0.3s ease;
  overflow: hidden;
  box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.2), 0 0 0 0px rgba(37, 99, 235, 0.2);
  cursor: pointer;
  position: fixed;
  z-index: 1000;
  will-change: transform;
  /* 设置初始位置在右侧区域 */
  right: 30px;
  bottom: 300px;
  /* 使用独立的 transform 动画，实现更丝滑的随机运动 */
  animation: smoothRandomMove 28s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate;
}

/* 丝滑随机运动动画 - 在右侧空白区域内运动 */
@keyframes smoothRandomMove {
  0% {
    transform: translate(0px, 0px);
  }
  10% {
    transform: translate(-15px, -45px);
  }
  20% {
    transform: translate(-45px, -25px);
  }
  30% {
    transform: translate(-25px, -65px);
  }
  40% {
    transform: translate(-55px, -15px);
  }
  50% {
    transform: translate(-35px, -50px);
  }
  60% {
    transform: translate(-65px, -35px);
  }
  70% {
    transform: translate(-20px, -70px);
  }
  80% {
    transform: translate(-50px, -10px);
  }
  90% {
    transform: translate(-30px, -55px);
  }
  100% {
    transform: translate(0px, 0px);
  }
}

/* 平板设备适配 - 缩小运动范围，保持在右侧区域 */
@media (max-width: 1200px) {
  .ai-g-main .g-sticky-card {
    animation: smoothRandomMoveTablet 26s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate;
  }
  
  @keyframes smoothRandomMoveTablet {
    0% {
      transform: translate(0px, 0px);
    }
    12% {
      transform: translate(-12px, -35px);
    }
    24% {
      transform: translate(-35px, -20px);
    }
    36% {
      transform: translate(-20px, -50px);
    }
    48% {
      transform: translate(-42px, -12px);
    }
    60% {
      transform: translate(-28px, -38px);
    }
    72% {
      transform: translate(-48px, -28px);
    }
    84% {
      transform: translate(-15px, -55px);
    }
    96% {
      transform: translate(-25px, -42px);
    }
    100% {
      transform: translate(0px, 0px);
    }
  }
}

@media (max-width: 768px) {
  .ai-g-main .g-sticky-card {
    right: 15px;
    bottom: 15px;
    animation: smoothRandomMoveMobile 24s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate;
  }
  
  @keyframes smoothRandomMoveMobile {
    0% {
      transform: translate(0px, 0px);
    }
    14% {
      transform: translate(-8px, -25px);
    }
    28% {
      transform: translate(-25px, -12px);
    }
    42% {
      transform: translate(-15px, -38px);
    }
    56% {
      transform: translate(-30px, -8px);
    }
    70% {
      transform: translate(-18px, -28px);
    }
    84% {
      transform: translate(-32px, -18px);
    }
    100% {
      transform: translate(0px, 0px);
    }
  }
}

/* 悬浮效果 - 暂停动画并增强交互反馈 */
.ai-g-main .g-sticky-card:hover {
  animation-play-state: paused;
  transform: scale(1.02);
  box-shadow: 0 25px 40px -15px rgba(0, 0, 0, 0.25);
  border-color: rgba(37, 99, 235, 0.3);
  background: rgba(242, 244, 247, 0.95);
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

/* 可选：添加柔和的光晕跟随效果，增强丝滑感 */
.ai-g-main .g-sticky-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 1rem;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(37, 99, 235, 0.08), transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.ai-g-main .g-sticky-card:hover::before {
  opacity: 1;
}

@media (max-width: 480px) {
  .ai-g-main .g-sticky-card {
    right: 10px;
    bottom: 10px;
  }
}
/*--------------------------------------------------------------
# 右侧浮卡片 结束
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# 右侧浮动卡片 光效扫过效果
--------------------------------------------------------------*/
/* 主光扫效果 - 从左到右的流光 */
.ai-g-main .g-sticky-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(115deg, 
    transparent, 
    rgba(255, 255, 255, 0.4),
    rgba(255, 255, 255, 0.7),
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transform: skewX(-20deg);
  animation: lightSweep 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 3;
}

/* 次级光扫 - 更柔和的跟随光效 */
.ai-g-main .g-sticky-card .secondary-sweep {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 80%;
  height: 100%;
  background: linear-gradient(115deg, 
    transparent, 
    rgba(139, 92, 246, 0.2),
    rgba(59, 130, 246, 0.3),
    rgba(139, 92, 246, 0.2),
    transparent
  );
  transform: skewX(-15deg);
  animation: lightSweepSlow 5.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
  filter: blur(3px);
}

/* 主光扫动画 */
@keyframes lightSweep {
  0% {
    left: -100%;
    opacity: 0;
  }
  15% {
    opacity: 0.6;
  }
  30% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
  70% {
    opacity: 0.4;
  }
  100% {
    left: 150%;
    opacity: 0;
  }
}

/* 次级光扫动画 - 更慢更柔和 */
@keyframes lightSweepSlow {
  0% {
    left: -100%;
    opacity: 0;
  }
  20% {
    opacity: 0.4;
  }
  45% {
    opacity: 0.7;
  }
  70% {
    opacity: 0.5;
  }
  100% {
    left: 150%;
    opacity: 0;
  }
}

/* 对角线光扫效果 - 增加层次感 */
.ai-g-main .g-sticky-card .diagonal-sweep {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, 
    transparent,
    rgba(255, 255, 255, 0.25),
    rgba(139, 92, 246, 0.2),
    rgba(59, 130, 246, 0.25),
    transparent
  );
  transform: rotate(25deg);
  animation: diagonalSweep 7s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
}

@keyframes diagonalSweep {
  0% {
    transform: rotate(25deg) translateX(-100%) translateY(-100%);
    opacity: 0;
  }
  15% {
    opacity: 0.3;
  }
  40% {
    opacity: 0.6;
  }
  65% {
    opacity: 0.4;
  }
  100% {
    transform: rotate(25deg) translateX(100%) translateY(100%);
    opacity: 0;
  }
}

.ai-g-main .g-sticky-card:hover {
  background-color: #eff6ff;
}

/* 右侧浮动卡片光扫效果 结束 */

.ai-g-main .quickbar-time {
  color: #2a3742;
  font-size: 1.1rem;
  font-weight: 900;
  text-align: center;
  margin: 2px 0 10px 0;
  display: inline-flex;
  align-items: center;
}

.ai-g-main .g-icont {
  width: 35px;
  height: 35px;
  border-radius: 9999px;
  background: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  align-self: center;
  position: relative;
}

.ai-g-main .g-icon-svgt {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.ai-g-main .quickbar-label {
  color: #404243;
  font-size: 0.8rem;
  letter-spacing: 2px;
  margin: 0;
}

.ai-g-main .sg-time { 
  color: #2563eb;
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 2;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 0; 
}

.ai-g-main .sg-label {
  color: #9ca3af;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-align: center;
  margin: 0;
 }

/* 功能区块基础样式 */
.ai-g-main .features-section {
  padding: 50px 0 0 0;
}

.ai-g-main .feature-modle {
  border-radius: 48px;
  box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.05) 0px 20px 60px -15px;
  background: #ffffff;
  border: 1px solid #f9fafb;
}

.ai-g-main .badge1 {
  margin: 0;
  width: 172px;
  height: 38px;
  border-radius: 8px;
  background: #faf5ff;
  color: #9333ea;
  padding: 0 20px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-g-main .title1-1 {
  color: #1e293b;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
}

.ai-g-main .subtitle1-1 {
  color: #0066ff;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
}

.ai-g-main .desc1-1 {
  color: #1e293b;
  font-size: 1.6rem;
  line-height: 1.7;
  text-align: left;
}

.ai-g-main .chip1-left {
  margin-right:20px;
  width: 180px;
  height: 51px;
  border-radius: 100px;
  background: #EFF6FF;
  color: #64748b;
  padding: 0 16px;
  font-weight: 600;
  line-height: 1.33;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  gap: 8px; /* 图标和文字之间的间距 */
}

.ai-g-main .chip1-left-disable {
  background: #dadada;
  cursor: default;
}

/* 添加蓝色圆圈的播放图标*/
.ai-g-main .chip1-left::before {
  content: "";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: #0f4eb8;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'%3E%3C/path%3E%3C/svg%3E");
  background-size: 30px;
  background-repeat: no-repeat;
  background-position: center 50%;
  transition: all 0.2s ease;
} 

.ai-g-main .chip1-left:hover {
  background: #0066ff;
  color: #ffffff;
}

.ai-g-main .chip1-right {
  width: 180px;
  height: 51px;
  border-radius: 100px;
  /* background: #EFF6FF; */
  background: #dadada;
  color: #64748b;
  padding: 0 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  /* cursor: pointer; */
  position: relative;
  gap: 8px; /* 图标和文字之间的间距 */
}

.ai-g-main .chip1-right-disable {
  background: #dadada;
  cursor: default;
}

/* 添加蓝色圆圈的播放图标*/
.ai-g-main .chip1-right::before {
  content: "";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: #0f4eb8;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'%3E%3C/path%3E%3C/svg%3E");
  background-size: 30px;
  background-repeat: no-repeat;
  background-position: center 50%;
  transition: all 0.2s ease;
} 

/* .ai-g-main .chip1-right:hover {
  background: #0066ff;
  color: #ffffff;
} */

.ai-g-main .f-link-1 {
  display: flex;
  justify-content: right;
  font-size: 1.2rem;
}

.ai-g-main .f-link-2 {
  display: flex;
  justify-content: left;
  font-size: 1.2rem;
}

/* 头脑风暴按钮 */
.ai-g-main .g-brainstorming {
  width: 150px;
  height: 51px;
  border-radius: 100px;
  background: #EFF6FF;
  color: #64748b;
  padding: 0 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: 8px; /* 图标和文字之间的间距 */
}

/*--------------------------------------------------------------
# 一键成图，高效便捷、抓住灵感，瞬间成图、智能拓展，丰富内容、定制优化，满足需求 
--------------------------------------------------------------*/
.ai-g-main .feature-item {
  display: grid;
  gap: 2rem;
  margin-bottom: 40px;
  padding: 24px;
  border-radius: 1rem;
  box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 0px 0px, rgba(0, 0, 0, 0.05) 0px 0px 0px 0px, rgba(0, 0, 0, 0.05) 0px 20px 60px -15px;
  background: #fff;
  transition: all 0.3s ease;
}

/* 默认：平板及以上（两列布局） */
@media (min-width: 768px) {
  .ai-g-main .feature-item {
      grid-template-columns: 5fr 5fr;
      gap: 3rem;
      padding: 40px 80px;
      border-radius: 1rem;
  }
}

/* 手机端：单列布局（小于768px） */
@media (max-width: 767px) {
  .ai-g-main .feature-item {
      grid-template-columns: 1fr;
      gap: 1.5rem;
      margin-bottom: 30px;
      padding: 20px;
      border-radius: 24px;
  }

  /* 反向布局在手机端恢复正常顺序 */
  .ai-g-main .feature-item.reverse {
      display: flex;
      flex-direction: column;
  }
}

/* 功能媒体容器 - 确保按钮完整显示 */
.ai-g-main .feature-media {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
}

.ai-g-main .py-content {
  border-radius: 1rem;
  overflow: visible;
  position: relative;
}

/* 双图层的滑动容器 */
.ai-g-main .image-slider {
  position: relative;
  width: 100%;
  /* height: auto; */
  height: 100%;
  overflow: hidden;
  border-radius: 0.75rem;
  aspect-ratio: 16 / 10;
}

.ai-g-main .g-card-point {
  cursor: pointer;
}

.img-default,
.img-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.img-default {
  transform: translateX(0%);
  z-index: 2;
}

.img-hover {
  transform: translateX(100%);
  z-index: 1;
}

/* 仅在未激活轮播图时生效的hover效果*/
.feature-media:not(.carousel-active):hover .img-default {
  transform: translateX(-100%);
}

.feature-media:not(.carousel-active):hover .img-hover {
  transform: translateX(0%);
  z-index: 3;
}

@media (hover: hover) {
  .feature-media:not(.carousel-active):hover .img-default {
      transform: translateX(-100%);
  }
  .feature-media:not(.carousel-active):hover .img-hover {
      transform: translateX(0%);
      z-index: 3;
  }
}

@media (hover: none) and (max-width: 767px) {
  .feature-media:not(.carousel-active):active .img-default {
      transform: translateX(-100%);
  }
  .feature-media:not(.carousel-active):active .img-hover {
      transform: translateX(0%);
      z-index: 3;
  }
}

.img-default, .img-hover {
  will-change: transform;
}

.ai-g-main .aimg-card {
  width: 100%;
  height: auto;
  object-fit: cover;
}

@media (max-width: 767px) {
  .ai-g-main .aimg-card {
      height: auto;
      min-height: 200px;
  }
  .image-slider {
      aspect-ratio: 4 / 3;
  }
}

/* 轮播图样式 - 无左右箭头 */
.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 0.75rem;
}

.carousel-images {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  pointer-events: none; /* 让图片不阻止点击事件，由父容器处理 */
}

/* 指示点样式 - 增大宽度和间距 */
.carousel-dots {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
  z-index: 10;
  border-radius: 40px;
  backdrop-filter: blur(8px);
}

.carousel-dot {
  width: 40px;
  height: 10px;
  background: #85a7f1;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
  border-radius: 8px;
}

.carousel-dot.active {
  background: #2563eb;
}

.carousel-dot:hover {
  background: #2563eb;
  transform: scale(1.2);
}

/* 无限滚动轮播图样式 */
.carousel-container.infinite-scroll {
    position: relative;
    overflow: hidden;
    width: 100%;
    cursor: pointer;
}

.carousel-images-wrapper {
    overflow: hidden;
    width: 100%;
}

.carousel-images {
    display: flex;
    will-change: transform;
    /* 不使用transition，由JS动画控制实现无缝滚动 */
}

.carousel-slide {
    flex-shrink: 0;
    width: 100%; /* 默认宽度为容器的100% */
    position: relative;
}

/* 如果希望图片等宽不等比，可以设置具体宽度 */
.carousel-container.infinite-scroll .carousel-slide {
    width: 100%; /* 每张图片占满整个容器 */
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* 链接样式 */
.carousel-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

/* 可选：添加渐变遮罩效果 */
.carousel-container.infinite-scroll::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100px;
    background: linear-gradient(to right, transparent, rgba(0,0,0,0.1));
    pointer-events: none;
    z-index: 2;
}

/* 性能优化 */
.carousel-images {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

@media (max-width: 768px) {
  .carousel-dots {
      bottom: 16px;
      gap: 12px;
      padding: 8px 16px;
  }
  .carousel-dot {
      width: 10px;
      height: 10px;
  }
  .carousel-dot.active {
      width: 28px;
      border-radius: 6px;
  }
}

/* 功能内容 */
.ai-g-main .feature-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ai-g-main .title1-1 {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
}

.ai-g-main .subtitle1-1 {
  font-size: 1.8rem;
}

.ai-g-main .desc1-1 {
  color: #4b5563;
  line-height: 1.6;
}

.ai-g-main .f-link-1 {
  display: flex;
  justify-content: right;
  font-size: 1.2rem;
}

@media (max-width: 480px) {
  .carousel-dots {
      bottom: 12px;
      gap: 10px;
      padding: 6px 12px;
  }
  .carousel-dot {
      width: 8px;
      height: 8px;
  }
  .carousel-dot.active {
      width: 24px;
      border-radius: 5px;
  }

  .ai-g-main .feature-content {
    gap: 0.5rem;
    text-align: left;
  }

  .ai-g-main .feature-content .title1-1 {
      font-size: 2rem;
      line-height: 1.3;
  }

  .ai-g-main .feature-content .desc1-1 {
      font-size: 1.2rem;
      line-height: 1.5;
  }

  .ai-g-main .f-link-1 {
    font-size: 1rem;
  }

  .ai-g-main .chip1-left {
    width: 150px;
  }

  .ai-g-main .chip1-left::before {
    width: 25px;
    height: 25px;
    background-size: 22px;
  }

  .ai-g-main .chip1-right::before {
    width: 25px;
    height: 25px;
    background-size: 22px;
  }

  .ai-g-main .f-link-2 {
    font-size: 1rem;
  }

  .ai-g-main .chip1-right {
    padding: 0 10px;
  }

  .ai-g-main .chip1-left {
    padding: 0 10px;
  }
}

/*--------------------------------------------------------------
# Efficiency Data 
--------------------------------------------------------------*/
.ai-g-main .g-stat-area1 {
  position: relative;
  width: fit-content;
  min-width: 280px;
  /* margin: 0 auto; */
  margin: 0 5% 0 1.5%;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  grid-template-rows: auto auto auto;
  gap: 0px 12px;
  padding: 40px 32px;
  background: #f8faff;
  border: 6px solid #dbeafe;
  border-radius: 24px;
  box-sizing: border-box;
}

/* 背景层 - 隐藏旧的绝对定位背景 */
.ai-g-main .g-stat-bg1 {
  display: none;
}

/* 所有子元素相对定位，确保层级正确 */
.ai-g-main .g-stat-area1>* {
  position: relative;
  z-index: 1;
}

/* 效率标签 */
.ai-g-main .g-stat-label1 {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  color: #3b82f6;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 2px;
  margin: 0 0 20px;
  align-self: end;
  white-space: nowrap;
}

/* 手动数据 */
.ai-g-main .g-stat-manual {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  color: #1e293b;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 2;
  margin: 0;
  white-space: nowrap;
}

/* AI数据 */
.ai-g-main .g-stat-ai {
  grid-column: 1 / 2;
  grid-row: 3 / 4;
  color: #e98f36;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.11;
  margin: 0;
  white-space: nowrap;
}

/* 三个图标容器 - 统一样式 */
.ai-g-main .g-icon1,
.ai-g-main .g-icon2,
.ai-g-main .g-icon3 {
  width: 64px;
  height: 47px;
  border-radius: 9999px;
  background: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  align-self: center;
  position: relative;
}

.ai-g-main .g-icon1 {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}

.ai-g-main .g-icon2 {
  grid-column: 4 / 5;
  grid-row: 2 / 3;
}

.ai-g-main .g-icon3 {
  grid-column: 6 / 7;
  grid-row: 2 / 3;
}

/* SVG图标样式 */
.ai-g-main .g-icon-svg1,
.ai-g-main .g-icon-svg2,
.ai-g-main .g-icon-svg3 {
  width: 30px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* 兼容HTML中的sd-i类 */
.ai-g-main .g-icon1 .sd-i,
.ai-g-main .g-icon2 .sd-i,
.ai-g-main .g-icon3 .sd-i {
  width: 30px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* 箭头线条容器 - 连接图标1和图标2 */
.ai-g-main .g-arrow-line1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  justify-self: stretch;
  align-self: center;
  grid-column: 3 / 4;
  grid-row: 2 / 3;
  position: relative;
}

/* 箭头线条容器 - 连接图标2和图标3 */
.ai-g-main .g-arrow-line2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  justify-self: stretch;
  align-self: center;
  grid-column: 5 / 6;
  grid-row: 2 / 3;
  position: relative;
}

/* 箭头线条的横线部分 - 弹性宽度 */
.ai-g-main .g-arrow-line1 .sd-s,
.ai-g-main .g-arrow-line2 .sd-s {
  flex: 1;
  height: 2px;
  background: #bfdbfe;
  min-width: 40px;
}

/* 箭头字符 */
.ai-g-main .arrow-char {
  color: #bfdbfe;
  font-size: clamp(12px, 2.5vw, 16px);
  line-height: 1.5;
  margin: 0;
  text-align: center;
  flex-shrink: 0;
}

/* Process Logic 标题 */
.ai-g-main .g-process-logic1 {
  grid-column: 7 / 8;
  grid-row: 1 / 2;
  color: #94a3b8;
  font-size: clamp(16px, 3.5vw, 20px);
  font-weight: 700;
  line-height: 1.4;
  text-align: right;
  margin: 0;
  align-self: end;
  white-space: nowrap;
}

/* 流程描述 */
.ai-g-main .g-process-desc1 {
  grid-column: 7 / 8;
  grid-row: 2 / 4;
  color: #475569;
  font-size: 1.2rem;
  font-weight: bolder;
  line-height: 1.33;
  text-align: right;
  margin: 0;
  align-self: center;
  word-break: break-word;
  width: clamp(280px, 21vw, 400px);
}

/* ========== 平板设备适配 (769px - 1024px) ========== */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .ai-g-main .g-stat-area1 {
    gap: 12px 8px;
    padding: 20px 24px;
  }

  .ai-g-main .g-icon1,
  .ai-g-main .g-icon2,
  .ai-g-main .g-icon3 {
    width: 56px;
    height: 42px;
  }

  .ai-g-main .g-icon1 .sd-i,
  .ai-g-main .g-icon2 .sd-i,
  .ai-g-main .g-icon3 .sd-i {
    width: 26px;
    height: 17px;
  }

  .ai-g-main .g-stat-manual,
  .ai-g-main .g-stat-ai {
    white-space: normal;
    word-break: keep-all;
  }

  .ai-g-main .g-arrow-line1 .sd-s,
  .ai-g-main .g-arrow-line2 .sd-s {
    min-width: 30px;
  }
}

/* ========== 手机设备适配 (481px - 768px) - 横向排布 ========== */
@media screen and (min-width: 481px) and (max-width: 768px) {
  .ai-g-main .g-stat-area1 {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    grid-template-rows: auto auto auto auto;
    gap: 12px 8px;
    padding: 20px 16px;
    min-width: auto;
    width: 100%;
  }

  /* 效率标签 - 占据第一行全部 */
  .ai-g-main .g-stat-label1 {
    grid-column: 1 / -1;
    grid-row: 1 / 2;
    text-align: center;
    white-space: nowrap;
    font-size: 1rem;
    margin: 0 0 4px;
    align-self: center;
  }

  /* 手动数据 - 第一列 */
  .ai-g-main .g-stat-manual {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    text-align: center;
    white-space: nowrap;
    font-size: 1rem;
    line-height: 1.4;
    align-self: center;
    margin: 0;
  }

  /* AI数据 - 第五列 */
  .ai-g-main .g-stat-ai {
    grid-column: 5 / 6;
    grid-row: 2 / 3;
    text-align: center;
    white-space: nowrap;
    font-size: 1rem;
    line-height: 1.4;
    align-self: center;
    margin: 0;
  }

  /* 图标1 */
  .ai-g-main .g-icon1 {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
    width: 48px;
    height: 40px;
    justify-self: center;
    align-self: center;
  }

  /* 箭头线1 */
  .ai-g-main .g-arrow-line1 {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    min-width: 60px;
  }

  /* 图标2 */
  .ai-g-main .g-icon2 {
    grid-column: 3 / 4;
    grid-row: 3 / 4;
    width: 48px;
    height: 40px;
    justify-self: center;
    align-self: center;
  }

  /* 箭头线2 */
  .ai-g-main .g-arrow-line2 {
    grid-column: 4 / 5;
    grid-row: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    min-width: 60px;
  }

  /* 图标3 */
  .ai-g-main .g-icon3 {
    grid-column: 5 / 6;
    grid-row: 3 / 4;
    width: 48px;
    height: 40px;
    justify-self: center;
    align-self: center;
  }

  /* Process Logic 标题 */
  .ai-g-main .g-process-logic1 {
    grid-column: 1 / 3;
    grid-row: 4 / 5;
    text-align: right;
    white-space: nowrap;
    font-size: 0.875rem;
    align-self: center;
    margin: 0;
    padding-right: 8px;
  }

  /* 流程描述 */
  .ai-g-main .g-process-desc1 {
    grid-column: 3 / 6;
    grid-row: 4 / 5;
    text-align: left;
    font-size: 0.875rem;
    width: 100%;
    align-self: center;
    margin: 0;
    padding-left: 8px;
  }

  /* 图标内部SVG尺寸调整 */
  .ai-g-main .g-icon1 .sd-i,
  .ai-g-main .g-icon2 .sd-i,
  .ai-g-main .g-icon3 .sd-i {
    width: 24px;
    height: 16px;
  }

  /* 箭头线条样式调整 */
  .ai-g-main .g-arrow-line1 .sd-s,
  .ai-g-main .g-arrow-line2 .sd-s {
    width: 100%;
    min-width: 40px;
    height: 2px;
  }

  .ai-g-main .arrow-char {
    font-size: 10px;
  }
}

/* ========== 超小屏手机适配 (≤480px) - 优化横向布局 ========== */
@media screen and (max-width: 480px) {
  .ai-g-main .g-stat-area1 {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    grid-template-rows: auto auto auto auto;
    gap: 10px 6px;
    padding: 16px 12px;
    min-width: auto;
    width: 100%;
    margin: 0 auto;
  }

  /* 效率标签 - 占据第一行全部 */
  .ai-g-main .g-stat-label1 {
    grid-column: 1 / -1;
    grid-row: 1 / 2;
    text-align: center;
    white-space: nowrap;
    font-size: 0.875rem;
    margin: 0 0 4px;
    align-self: center;
  }

  /* 手动数据 - 第一列 */
  .ai-g-main .g-stat-manual {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    text-align: center;
    white-space: nowrap;
    font-size: 0.875rem;
    line-height: 1.3;
    align-self: center;
    margin: 0;
  }

  /* AI数据 - 第五列 */
  .ai-g-main .g-stat-ai {
    grid-column: 4 / 6;
    grid-row: 2 / 3;
    text-align: center;
    white-space: nowrap;
    font-size: 0.875rem;
    line-height: 1.3;
    align-self: center;
    margin: 0;
  }

  /* 图标1 */
  .ai-g-main .g-icon1 {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
    width: 40px;
    height: 34px;
    justify-self: center;
    align-self: center;
  }

  /* 箭头线1 */
  .ai-g-main .g-arrow-line1 {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 100%;
    min-width: 45px;
  }

  /* 图标2 */
  .ai-g-main .g-icon2 {
    grid-column: 3 / 4;
    grid-row: 3 / 4;
    width: 40px;
    height: 34px;
    justify-self: center;
    align-self: center;
  }

  /* 箭头线2 */
  .ai-g-main .g-arrow-line2 {
    grid-column: 4 / 5;
    grid-row: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 100%;
    min-width: 45px;
  }

  /* 图标3 */
  .ai-g-main .g-icon3 {
    grid-column: 5 / 6;
    grid-row: 3 / 4;
    width: 40px;
    height: 34px;
    justify-self: center;
    align-self: center;
  }

  /* Process Logic 标题 */
  .ai-g-main .g-process-logic1 {
    grid-column: 1 / 3;
    grid-row: 4 / 5;
    text-align: right;
    white-space: nowrap;
    font-size: 0.75rem;
    align-self: center;
    margin: 0;
    padding-right: 6px;
  }

  /* 流程描述 */
  .ai-g-main .g-process-desc1 {
    grid-column: 3 / 6;
    grid-row: 4 / 5;
    text-align: left;
    font-size: 0.75rem;
    width: 100%;
    align-self: center;
    margin: 0;
    padding-left: 6px;
    line-height: 1.3;
  }

  /* 图标内部SVG尺寸调整 */
  .ai-g-main .g-icon1 .sd-i,
  .ai-g-main .g-icon2 .sd-i,
  .ai-g-main .g-icon3 .sd-i {
    width: 20px;
    height: 14px;
  }

  /* 箭头线条样式调整 */
  .ai-g-main .g-arrow-line1 .sd-s,
  .ai-g-main .g-arrow-line2 .sd-s {
    width: 100%;
    min-width: 30px;
    height: 2px;
  }

  .ai-g-main .arrow-char {
    font-size: 8px;
  }
}

/* ========== 大屏幕优化 (≥1400px) ========== */
@media screen and (min-width: 1400px) {
  .ai-g-main .g-stat-area1 {
    max-width: 1400px;
  }

  .ai-g-main .g-arrow-line1 .sd-s,
  .ai-g-main .g-arrow-line2 .sd-s {
    min-width: 80px;
  }
}

/* 辅助样式 - 确保所有内容正确显示 */
.ai-g-main .g-stat-area1 .sd-s {
  box-sizing: border-box;
}

.ai-g-main .g-stat-area1 .sd-i {
  display: block;
}

/*--------------------------------------------------------------
# 四张卡片：消除创作障碍、AI 辅助构建、专注深度思考、高效思维体验 
--------------------------------------------------------------*/
.ai-g-main .features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 4rem;
  margin-bottom: 100px;
  border-radius: 1rem;
}

@media (max-width: 480px) {
  .ai-g-main .features-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

.ai-g-main .pro-feature {
  padding: 1.5rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border: 1px solid #f9f4f4;
  transition: all 0.3s ease;
  background-color: #ffff;
}

.ai-g-main .pro-feature:hover {
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.ai-g-main .pro-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  font-size: 1.125rem;
}

.ai-g-main .pro-icon.blue {
  width: 180px;
  height: 137px;
  border-radius: 16px;
  background: #eff6ff;
}

.ai-g-main .pro-feature h4 {
  font-weight: bolder;
  color: #1e293b;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.ai-g-main .pro-feature p {
  color: #7e8b9e;
  font-size: 1rem;
  line-height: 1.4;
}

.ai-g-main .value-icon1-svg {
  width: 82px;
  height: 63px;
  object-fit: contain;
}

.ai-g-main .value-icon2-svg {
  width: 82px;
  height: 62px;
  object-fit: contain;
}

.ai-g-main .value-icon3-svg {
  width: 81px;
  height: 59px;
  object-fit: contain;
}

.ai-g-main .value-icon4-svg {
  width: 82px;
  height: 60px;
  object-fit: contain;
}

/*--------------------------------------------------------------
# 一键智能成图，你的思维加速器
--------------------------------------------------------------*/
.ai-g-main .g-footer-outer {
  background: #16254c;
  text-align: center;
  height: 600px;
}

.ai-g-main .g-footer-img {
  width: 600px;
  height: auto;
  margin-top: 100px;
}

.ai-g-main .g-buttons-group {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

.ai-g-main .cta-arrow {
  width: 26px;
  height: 31px;
  object-fit: contain;
  vertical-align: bottom;
}

.ai-g-main .g-footer-btn {
  color: #ffffff;
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1.11;
  letter-spacing: 3.6px;
  text-align: center;
  width: 350px;
  padding: 25px 0;
  border-radius: 9999px;
  box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(37, 99, 235, 0.4) 0px 20px 50px 0px;
  background: linear-gradient(to right, #2563eb, #3b82f6);
  display: inline-block;
  margin: 50px 0;
}

.ai-g-main .g-footer-btn:hover {
  background: #0651f3;
}

@media (max-width: 480px) {
  .ai-g-main .ai-g-title {
    font-size: 2.6rem;
  }

  .ai-g-main .ai-g-p {
    font-size: 1.3rem;
  }

  .ai-g-main .ai-g-p1 {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .ai-g-main .ai-g-tag {
    font-size: 1rem;
  }

  .ai-g-main .features-section {
    padding: 0;
  }

  .ai-g-main .cta-arrow {
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: bottom;
  }

  .ai-g-main .g-footer-btn {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 900;
    line-height: 1.11;
    letter-spacing: 3.6px;
    text-align: center;
    width: 250px;
    padding: 20px 0;
    border-radius: 9999px;
    box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(37, 99, 235, 0.4) 0px 20px 50px 0px;
    background: linear-gradient(to right, #2563eb, #3b82f6);
    display: inline-block;
    margin: 50px 0;
  }

  .ai-g-main .quickbar-outer {
    height: 85px;
  }

  .ai-g-main .quickbar-title {
    height: 50px;
    color: #0066ff;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 10px 0 0 0;
  }

  .ai-g-main .quickbar-sub {
    height: 10px;
    color: #1e293b;
    font-size: 1rem;
    line-height: 1;
    line-height: 0;
  }

  .ai-g-main .sg-time {
    color: #2563eb;
    font-size: 1.3rem;
    font-weight: 900;
    line-height: 2;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 0;
  }

  .ai-g-main .sg-label {
    color: #9ca3af;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
    margin: 0;
  }

.ai-g-main .quickbar-icon-bg {
    width: 35px;
    height: 35px;
    border-radius: 9999px;
    background: #2563eb;
    position: relative;
    top: 25px;
    left: 5px;
    margin-right: 15px;
  }

.ai-g-main .quickbar-icon {
    width: 20px;
    height: 20px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

.ai-g-main .quickbar-width {
    width: 180px;
  }

.ai-g-main .chip1-right {
    width: 150px;
  }

  .ai-g-main .chip1-left-1 {
    margin: 0 5px;
  }

  .ai-g-main .g-footer-img {
    margin-top: 150px;
  }
}