/* 导航样式 */
.desktop-menu a.active,
.desktop-menu a:hover {
  color: #000;
  background: #FFF200;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(255, 242, 0, 0.15);
}

.sidebar-menu a.active,
.sidebar-menu a:hover {
  color: #000;
  background: #FFF200;
  font-weight: 600;
}

/* 基础工具类 */
.flex-col {
  display: flex;
  flex-direction: column;
}

.flex-row {
  display: flex;
  flex-direction: row;
}

.justify-between {
  justify-content: space-between;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.page {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
}

.section_1 {
  position: relative;
  width: 100%;
  background-color: #101729;
}

/* Banner图片 */
.banner-img {
  width: 100%;
  height: 1080px;
  background-image: url(/static/image/aitools/01-banner.jpg);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  position: relative;
}

.banner-img img {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
}

/* 技能拆解模块容器 */
.skill-section-wrapper {
  width: 100%;
  background-color: #020617;
  padding: 80px 0;
}

/* 冒险任务模块容器 - 优化黑色区域大小 */
.adventure-section-wrapper {
  width: 100%;
  background-color: #101729;
  overflow: hidden;
  padding: 40px 0;
}

/* 内容容器 */
.content-container {
  position: relative;
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 技能拆解区域样式 */
.skills-section {
  margin-bottom: 80px;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 50px;
}

.section-title {
  height: 93px;
  background: url("/static/image/aidouble/内页标题-bg.png") no-repeat center;
  background-size: 100% 100%;
  width: 701px;
  max-width: 90%;
  margin: 0 auto 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-title-text {
  color: rgba(255, 255, 255, 1);
  font-size: 56px;
  font-family: YouSheBiaoTiHei;
  line-height: 1.2;
}

/* 技能卡片样式 */
.skill-card {
  height: 194px;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  width: 100%;
  max-width: 676px;
  position: relative;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 30px 0 60px;
  overflow: hidden;
}

.box_7,
.block_5,
.block_6,
.block_7,
.block_8,
.block_9 {
  background-image: url("/static/image/aitools/技能模块-bg.png");
}

.skill-content {
  flex: 1;
  z-index: 2;
}

.skill-title {
  color: rgba(255, 255, 255, 1);
  font-size: 32px;
  font-family: SourceHanSansSC-Regular;
  padding-bottom: 15px;
  white-space: nowrap;
}

.skill-desc {
  color: rgba(183, 199, 248, 1);
  font-size: 20px;
  font-family: SourceHanSansSC-Regular;
  white-space: nowrap;
}

.skill-image-container {
  width: 257px;
  height: 134px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.skill-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.skill-card:hover .skill-image {
  transform: scale(1.05) rotate(2deg);
}

/* 标题区域样式 */
.system-title.overseas-title {
  height: auto;
  width: 100%;
  max-width: 800px;
  margin: 60px auto;
  background-image: url(/static/image/aidouble/内页标题-bg.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  padding: 20px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}


.skill-number {
  position: absolute;
  left: 15px;
  top: 15px;
  color: rgba(255, 255, 255, 1);
  font-size: 32px;
  font-family: SourceHanSansSC-Regular;
  line-height: 39px;
  z-index: 2;
}

/* 冒险任务主容器 */
.group_1 {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(30px, 8vw, 80px);
  margin: 40px 0;
  padding: 0 10px;
}

/* 任务卡片 - 优化黑色区域大小和内部布局 */
.block_1,
.block_3 {
  flex: 1 1 300px;
  max-width: 600px;
  height: auto;
  /* 改为自适应高度 */
  min-height: 400px;
  /* 最小高度保障内容 */
  background-image: url("/static/image/aitools/冒险任务模块-bg.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  position: relative;
  margin: 0 auto;
  padding: 20px 15px;
  /* 增加内边距 */
  box-sizing: border-box;
}

/* 任务标题 */
.text_1,
.text_6 {
  color: rgba(255, 255, 255, 1);
  font-size: clamp(22px, 5vw, 36px);
  font-family: SourceHanSansSC-Regular;
  line-height: 1.2;
  position: absolute;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

/* 任务内容容器 */
.block_2,
.group_2 {
  width: 90%;
  height: auto;
  /* 自适应高度 */
  min-height: 180px;
  background: url("/static/image/aitools/任务模块小-bg.png") no-repeat center;
  background-size: 100% 100%;
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  padding: 20px 15px;
  box-sizing: border-box;
}

/* 任务图片和文字容器 */
.image-text_1,
.image-text_2 {
  width: 90%;
  height: auto;
  min-height: 100px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 15px;
}

.image_2 {
  width: clamp(80px, 20vw, 106px);
  height: clamp(80px, 20vw, 106px);
  background: url("/static/image/aitools/111.png") no-repeat center;
  background-size: 100% 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  /* 防止图标被压缩 */
}

.image_2 .img1 {
  width: clamp(60px, 16vw, 78px);
  height: clamp(70px, 18vw, 90px);
  display: block;
  margin: 0 auto;
}

.image_2 .img2 {
  width: clamp(70px, 18vw, 90px);
  height: clamp(50px, 14vw, 70px);
  display: block;
  margin: 0 auto;
}

.text-group_1,
.text-group_2 {
  flex: 1;
  height: auto;
  min-height: 64px;
}

/* 任务描述 - 核心优化：强制换行 */
.text_2,
.text_7 {
  width: 100%;
  color: rgba(255, 255, 255, 1);
  font-size: clamp(15px, 3vw, 21px);
  font-family: SourceHanSansSC-Regular;
  line-height: 1.6;
  white-space: normal;
  /* 允许换行 */
  word-wrap: break-word;
  /* 强制长单词换行 */
}

/* 任务奖励 - 优化换行 */
.text-wrapper_1,
.text-wrapper_3 {
  width: 100%;
  margin-top: 10px;
  white-space: normal;
  /* 允许换行 */
}

.text_3,
.text_4,
.text_8,
.text_9,
.text_10 {
  color: rgba(183, 199, 248, 1);
  font-size: clamp(13px, 3vw, 18px);
  font-family: SourceHanSansSC-Regular;
  line-height: 1.6;
}

.text_4,
.text_9 {
  color: rgba(95, 190, 255, 1);
}

/* 任务按钮 - 保障完整显示 */
.text-wrapper_2,
.text-wrapper_4 {
  height: clamp(50px, 12vw, 72px);
  width: clamp(160px, 50vw, 308px);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  position: absolute;
  bottom: 25px;
  /* 调整底部距离 */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.text-wrapper_2 {
  background-image: url("/static/image/aitools/完成-btn.png");
}

.text-wrapper_2:hover {
  background-image: url("/static/image/aitools/完成-btn-选中.png");
}

.text-wrapper_4 {
  background-image: url("/static/image/aitools/完成-btn.png");
}

.text-wrapper_4:hover {
  background-image: url("/static/image/aitools/完成-btn-选中.png");
}

.text_5,
.text_11 {
  line-height: 1;
  margin: 0;
  white-space: nowrap;
  font-family: SourceHanSansSC;
  font-weight: 400;
  font-size: clamp(16px, 4vw, 24px);
  color: #000000;
}



/* 平板及以上（768px+）- 两列布局 */
@media (min-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
  }

  .block_1,
  .block_3 {
    max-width: 48%;
    min-height: 448px;
  }

  /* 桌面端文字不换行 */
  .text_2,
  .text_7 {
    white-space: nowrap;
  }

  .text-wrapper_1,
  .text-wrapper_3 {
    white-space: nowrap;
  }
}

/* 移动端（767px以下）- 单列布局 */
@media (max-width: 767px) {

  /* 标题适配 */
  .section-title {
    height: clamp(60px, 15vw, 93px);
  }

  .section-title-text {
    font-size: clamp(30px, 8vw, 56px);
  }

  /* Banner适配 */
  .banner-img {
    height: clamp(300px, 60vh, 600px);
    /* 缩小移动端Banner高度 */
    background-size: cover;
    background-position: center;
  }

  /* 技能卡片适配 */
  .skill-card {
    height: clamp(150px, 40vw, 194px);
    padding: 0 20px 0 40px;
  }

  .skill-number {
    font-size: clamp(24px, 6vw, 32px);
  }

  .skill-title {
    font-size: clamp(20px, 5vw, 32px);
    padding-bottom: 8px;
  }

  .skill-desc {
    font-size: clamp(14px, 4vw, 20px);
    white-space: normal;
  }

  .skill-image-container {
    width: clamp(100px, 30vw, 257px);
    height: clamp(80px, 20vw, 134px);
  }

  /* 冒险任务模块 - 单列布局 */
  .adventure-section {
    margin-top: 20px;
    padding: 20px 0;
  }

  .group_1 {
    margin: 20px 0;
    flex-direction: column;
    gap: 30px;
  }

  .block_1,
  .block_3 {
    width: 100%;
    max-width: 100%;
    min-height: 380px;
  }

  .block_2,
  .group_2 {
    top: 70px;
  }
}

/* 小屏手机适配（480px以下） */
@media (max-width: 480px) {
  .content-container {
    width: 95%;
    padding: 0 10px;
  }

  .skill-section-wrapper {
    padding: 40px 0;
  }

  .skills-grid {
    gap: 20px;
    margin-top: 20px;
  }

  /* 进一步缩小黑色区域 */
  .block_1,
  .block_3 {
    min-height: 350px;
    padding: 15px 10px;
  }

  .block_2,
  .group_2 {
    top: 65px;
    min-height: 160px;
  }

  /* 按钮进一步缩小 */
  .text-wrapper_2,
  .text-wrapper_4 {
    height: clamp(45px, 12vw, 60px);
    bottom: 20px;
  }
}

/* 超小屏手机（360px以下） */
@media (max-width: 360px) {

  .block_1,
  .block_3 {
    min-height: 330px;
  }

  .text_2,
  .text_7 {
    font-size: 14px;
  }

  .text_3,
  .text_4,
  .text_8,
  .text_9,
  .text_10 {
    font-size: 12px;
  }
}