
/* 全局样式 - 主色调 蓝 #2D6DA1 */
:root {
  --primary-color: #2D6DA1;
  --secondary-color: #ff7d00;
  --light-color: #f8f9fa;
}
a{ text-decoration: none;}
img{ max-width:100%;}
body {
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;
  padding-top: 72px;
  background-color: #f5f7fa;
}

/* 导航栏 */
.navbar {
  background-color: var(--primary-color) !important;
  box-shadow: 0 2px 15px rgba(0,0,0,0.12);
}

.navbar-brand {
  font-weight: bold;
  font-size: 1.5rem;
}

/* Banner 增强版 */
.banner {
  background: linear-gradient(rgba(45, 109, 161, 0.88), rgba(45, 109, 161, 0.88)), url('/static/images/ban.jpg');
  background-size: cover;
  background-position: center 30%;
  color: white;
  padding: 85px 0;
  text-align: center;
  position: relative;
}

.banner h1 {
  text-shadow: 0 2px 5px rgba(0,0,0,0.2);
  letter-spacing: 1px;
}

.banner .lead {
  font-size: 1.3rem;
  font-weight: 400;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* 合作按钮专属 */
.btn-cooperate {
  background: linear-gradient(95deg, #ff8c2c, #ff6200);
  border: none;
  color: white;
  font-weight: bold;
  padding: 12px 32px;
  border-radius: 50px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.2);
  transition: all 0.25s ease;
  letter-spacing: 1px;
}

.btn-cooperate:hover {
  transform: translateY(-3px);
  background: linear-gradient(95deg, #ff9f3c, #ff7b2c);
  box-shadow: 0 12px 24px rgba(0,0,0,0.25);
  color: white;
}

/* 板块通用 */
.section {
  padding: 20px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title h2 {
  font-weight: bold;
  color: var(--primary-color);
  display: inline-block;
  padding-bottom: 15px;
  position: relative;
}

.section-title h2::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 3px;
  background-color: var(--secondary-color);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.section-title p {
  color: #666;
  margin-top: 15px;
}
.case-item{ margin-top: 20px;}

/* 售后QQ群样式 */
.shouhouqq {
  background: #fff;
  padding: 18px 25px;
  border-radius: 10px;
  font-size: 16px;
  color: #333;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  margin: 20px auto 30px;
  max-width: 1300px;
  border-left: 5px solid var(--primary-color);
}
.shouhouqq b {
  color: var(--primary-color);
  font-size: 17px;
  margin-right: 8px;
}

/* 项目基础信息 */
.project-info-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 30px;
  margin-bottom: 30px;
}

/* 左侧图片框 - 高度400px，图片居中隐藏溢出 */
.project-img {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  height: 400px;
  background-color: #f0f2f5;
  text-align: center;
}
.project-img img {
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.info-item {
  margin-bottom: 15px;
  font-size: 1rem;
  line-height: 1.7;
}

.info-item strong {
  color: var(--primary-color);
  width: 110px;
  display: inline-block;
}

/* 版本下载卡片 */
.version-item {
  background: white;
  border-radius: 10px;
  padding: 20px 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  height: 100%;
  position: relative;
}

.version-title {
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.version-title i {
  font-size: 18px;
  color: var(--secondary-color);
}

.version-desc {
  color: #666;
  margin-bottom: 15px;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* 播放按钮样式 80x80px */
.play-video-wrapper {
  margin-bottom: 15px;
  display: flex;
}
.play-video-btn {
  width: 90px;
  height: 60px;
  background-color: var(--primary-color);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.play-video-btn:hover {
  background-color: #ff7d00;
  transform: scale(1.05);
}
.play-video-btn i {
  font-size: 40px;
  color: white;
  margin-left: 4px;
}

/* 缩略图样式 120x120 边框圆角 */
.version-thumb-wrapper {
  margin-bottom: 15px;
}
.version-thumb-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.version-thumb-img:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-color: var(--primary-color);
}

.download-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  transition: 0.3s;
}

.download-btn:hover {
  background-color: #235a8a;
  color: white;
}

/* 学员反馈 */
.student-card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  margin-bottom: 20px;
}

.student-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin: 0 auto 15px;
  overflow: hidden;
  border: 3px solid var(--primary-color);
}

.student-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.student-name {
  font-weight: bold;
  color: var(--primary-color);
}

.student-profit {
  color: var(--secondary-color);
  font-weight: bold;
  font-size: 1.1rem;
}

/* 信誉保障 - 案例区域水平滚动 + 3:4缩略图 */
.case-scroll-container {
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  padding-bottom: 15px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.case-scroll-container::-webkit-scrollbar {
  height: 8px;
}
.case-scroll-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}
.case-scroll-container::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}
.case-row-flex {
  display: flex;
  flex-wrap: nowrap;
  gap: 15px;
  margin: 0;
}
.case-col-item {
  flex: 0 0 auto;
  width: 120px;
}
.case-img {
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: 0.2s;
  background: #f8f9fa;
  aspect-ratio: 3 / 4;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.case-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: 0.3s;
}
.case-img:hover img {
  transform: scale(1.03);
}
.case-title {
  color: #000;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

/* ========= 独立相册弹窗样式 ========= */
.gallery-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 10000;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.gallery-modal .swiper {
  width: 100%;
  height: 100%;
  background: #000;
}
.gallery-modal .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
}
.gallery-modal .swiper-slide img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  width: auto;
  height: auto;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.gallery-close {
  position: absolute;
  top: 20px;
  right: 25px;
  color: white;
  font-size: 36px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
  background: rgba(0,0,0,0.5);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  backdrop-filter: blur(5px);
  transition: 0.2s;
}
.gallery-close:hover {
  background: rgba(255,255,255,0.2);
}
.gallery-index {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  color: white;
  background: rgba(0,0,0,0.6);
  padding: 6px 12px;
  border-radius: 30px;
  width: fit-content;
  margin: 0 auto;
  font-size: 14px;
  z-index: 10001;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

/* 电脑端导航箭头 */
.gallery-swiper-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10002;
  transition: all 0.2s;
  color: white;
  font-size: 28px;
  font-weight: bold;
  backdrop-filter: blur(4px);
}
.gallery-swiper-nav:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-50%) scale(1.05);
}
.gallery-swiper-prev {
  left: 20px;
}
.gallery-swiper-next {
  right: 20px;
}

/* 加盟合作 */
.join-section {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.06);
}

.join-content {
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.9;
}

/* 右侧悬浮QQ群 */
.float-qq-group {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  background: white;
  padding: 20px;
  border-radius: 10px 0 0 10px;
  box-shadow: -3px 3px 15px rgba(0,0,0,0.1);
  z-index: 998;
  width: 180px;
}

.qq-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
  font-weight: bold;
  margin-bottom: 15px;
  font-size: 16px;
}

.qq-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 14px;
  color: #333;
}

/* 页脚 */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: 45px 0 25px;
  text-align: center;
}

footer p {
  margin: 0;
  opacity: 0.9;
}

.modal-video-body video {
  width: 100%;
  max-height: 80vh;
  outline: none;
}
.modal-img-body {
  text-align: center;
}
.modal-img-body img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
}

#xmjs{line-height:2.5}

/* 项目卡片 */
.project-card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  overflow: hidden;
  cursor: pointer;
  max-width: 250px;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.project-card .card-body {
  text-align: center;
  padding: 10px;
}

.project-card .card-title {
  color: var(--primary-color);
  font-weight: bold;
  margin-bottom: 8px;
}

.project-card .card-text {
  color: var(--secondary-color);
  font-weight: 500;
  margin-top: 10px;
}

.card-img-top {
  height: 140px;
  object-fit: cover;
}

/* 工具链接 */
.tool-item {
  padding: 18px;
  text-align: center;
  background: white;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: 0.3s;
}

.tool-item:hover {
  transform: translateY(-3px);
}

.tool-item a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
}

.tool-item a:hover {
  color: var(--secondary-color);
}

/* ========= 全新美化弹窗 (滚动条在内容区，关闭按钮固定) ========= */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9998;
  display: flex;
  justify-content: center;
  align-items: center;
}

.popup-container {
  width: 90%;
  max-width: 760px;
  max-height: 85vh;
  background: white;
  border-radius: 28px;
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* 弹窗头部 (固定区域，包含标题和关闭按钮) */
.popup-header-fixed {
  padding: 20px 26px 12px;
  border-bottom: 1px solid #eef2f9;
  background: white;
  position: sticky;
  top: 0;
  z-index: 2;
}

.popup-header-fixed h2 {
  font-size: 1.9rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-color), #1f4e74);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
  text-align: center;
}

.popup-header-fixed .sub {
  font-size: 0.95rem;
  color: var(--secondary-color);
  font-weight: 500;
  letter-spacing: 1px;
  text-align: center;
}

.popup-close-fixed {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  color: #6c757d;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  transition: 0.2s;
  z-index: 3;
}

.popup-close-fixed:hover {
  background-color: #ffeded;
  color: var(--secondary-color);
  transform: scale(1.05);
}

/* 弹窗滚动内容区 ———— 滚动条仅在此区域内 */
.popup-scroll-area {
  flex: 1;
  overflow-y: auto;
  padding: 8px 26px 28px;
  scrollbar-width: thin;
}
.popup-scroll-area img{ max-width:100% !important;}
.popup-scroll-area::-webkit-scrollbar {
  width: 5px;
}
.popup-scroll-area::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}
.popup-scroll-area::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

/* 内部内容样式复用 */
.section-badge {
  background: #f0f7ff;
  padding: 6px 14px;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-color);
  display: inline-block;
  margin-bottom: 14px;
}

.game-tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 8px;
}

.game-tag {
  background: #eef2fa;
  color: #1f4e74;
  padding: 5px 12px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 500;
}

.warning-box {
  background: #fff3e0;
  border-left: 5px solid var(--secondary-color);
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.85rem;
  margin: 18px 0;
  font-weight: 500;
}

.join-highlight {
  background: linear-gradient(105deg, #eef5fc 0%, #ffffff 100%);
  border-radius: 20px;
  padding: 16px 18px;
  margin: 20px 0 16px;
  border: 1px solid rgba(45, 109, 161, 0.15);
}

.project-list {
  margin-top: 12px;
}

.project-item {
  border-radius: 14px;
}

.project-item strong {
  color: var(--primary-color);
  font-size: 0.9rem;
}

.project-desc {
  font-size: 0.85rem;
  color: #2c3e4e;
  margin-top: 4px;
  line-height: 1.4;
}

.quote-text {
  background: #f8f9fc;
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 0.85rem;
  color: #2c3e50;
  margin: 18px 0;
  border: 1px solid #e9edf2;
}

.qq-group-footer {
  background: #eef2fa;
  border-radius: 20px;
  padding: 14px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--primary-color);
  margin-top: 20px;
  margin-bottom: 8px;
}

/* 悬浮按钮 */
.popup-float-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: #ff6200;
  color: white;
  display: none;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(45,109,161,0.4);
  font-size: 14px;
  z-index: 999;
  transition: 0.3s;
}

.popup-float-btn:hover {
  transform: scale(1.08);
}

/* 项目卡片 —— 左右布局样式（独立CSS） */
.project-card-layout {
  display: flex !important;
  align-items: center !important;
  padding: 8px 20px !important;
  gap: 10px !important;
  text-align: left !important;
}
/* 左侧字母区域 */
.project-card-left {
  width: 20%;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* 大字母样式 */
.project-card-letter {
  font-size: 42px;
  font-weight: 900;
  color: var(--primary-color);
  line-height: 1;
}
/* 右侧内容区域 + 左侧浅竖线 */
.project-card-right {
  width: 80%;
  padding-left: 16px;
  border-left: 1px solid #e4e4e4;
}

/* 项目筛选按钮样式 */
.project-filter-bar {
  text-align: center;
  margin-bottom: 30px;
}
.filter-btn {
  padding: 6px 8px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
  font-size: 14px;
}
.filter-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.filter-btn.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

/* 媒体查询 全部整合 */
@media (max-width: 768px) {
  /* 相册弹窗 */
  .gallery-swiper-nav {
    display: none;
  }
  .gallery-close {
    top: 12px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 28px;
  }
  .gallery-index {
    bottom: 15px;
    font-size: 12px;
    padding: 4px 12px;
  }

  /* 右侧悬浮QQ群 */
  .float-qq-group {
    display: none;
  }

  /* Banner */
  .banner {
    padding: 60px 0;
  }
  .banner .lead {
    font-size: 1rem;
  }
  .btn-cooperate {
    padding: 8px 24px;
    font-size: 1rem;
  }
  .popup-header-fixed {
    padding: 16px 20px 10px;
  }
  .popup-scroll-area {
    padding: 8px 20px 24px;
  }
  .popup-header-fixed h2 {
    font-size: 1.6rem;
  }

  /* 项目卡片移动端布局 */
  .project-card .card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left !important;
    padding: 20px 14px;
  }
  .project-card .card-title {
    margin-bottom: 0 !important;
  }
  .project-card .card-text {
    margin-top: 0 !important;
    white-space: nowrap;
  }

  /* 项目左右卡片移动端 */
  .project-card-letter {
    font-size: 36px;
  }
  .project-card-layout {
    padding: 16px !important;
  }
  .project-img{ height:auto;}
  .project-img img{ height:auto; max-width:100%;}
}