/* Training Course List Styles - Combined */

/* =========================================
   Part 1: Protected Styles (Banner, Welcome, Nav)
   ========================================= */
  body{
    background: #fff;
  }
.training-course-list {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: "Microsoft YaHei", sans-serif;
}

.training-header {
  text-align: center;
  margin-bottom: 40px;
}

.training-header h1 {
  font-size: 32px;
  color: #333;
  margin-bottom: 10px;
}

.training-welcome-block {
  width: 50%; /* 加大宽度，约 li 的 3/5 -> 3.75/5 */
  min-width: 900px; /* 防止过小 */
  margin: 40px auto;
  border: 1px solid #ccc;
  position: relative;
  padding: 30px;
  box-sizing: border-box;
}

/* 贯穿线上文字处理 */
.training-welcome-block::before {
  content: "岛津培训中心欢迎您！";
  position: absolute;
  top: -20px; /* 调整文字位置以垂直居中于上边框 */
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  padding: 0 1px 0 10px; /* 右边间隔为5，左边保持10，以修正视觉居中 */
  color: #333;
  font-size: 28px; /* 加大两号，原20px */
  font-weight: bold;
}

.training-welcome-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.welcome-text-group p {
  margin: 5px 0;
  line-height: 1.6;
  font-size: 18px; /* 增大字体 */
}

.welcome-qr img {
  width: 100px;
  height: 100px;
  display: block;
}

.training-welcome-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  position: absolute;
  bottom: -20px; /* 下沉到下边框线 */
  left: 50%; /* 居中定位 */
  transform: translateX(-50%); /* 居中修正 */
 width: 50%;/* 设定一个合理的总宽度 */
  padding: 0 10px; /* 左右 10px 白色背景区域 */
  background: #fff; /* 遮挡下边线 */
}

.training-welcome-actions .btn {
  display: block;
  text-align: center;
  padding: 8px 0;
  text-decoration: none;
  transition: all 0.3s;
  box-sizing: border-box;
  font-size: 14px;
  font-weight: bold; /* PC端加粗 */
  width: 100%; /* 占满 flex item 空间 */
  flex: 1; /* 平分空间 */
}

/* 登录按钮样式 */
.btn-login {
  border: 1px solid #ccc;
  background: #fff;
  color: #333;
}

.btn-login:hover {
  border: 1px solid #dd0000;
  background: #fff;
  color: #dd0000;
}

/* 注册按钮样式 */
.btn-register {
  border: 1px solid #dd0000;
  background: #dd0000;
  color: #fff;
}

.btn-register:hover {
  border: 1px solid #dd0000;
  background: #fff;
  color: #dd0000;
}

.training-intro {
  font-size: 16px;
  color: #666;
}

.training-categories {
  margin-bottom: 30px;
}

.category-nav {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  /* flex-wrap: wrap; PC端不再换行 */
  gap: 0;
}

.category-nav li {
  flex: 1; /* 等宽 */
  text-align: center;
}

.category-nav li a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 10px;
  background: transparent;
  color: #333;
  text-decoration: none;
  transition: all 0.3s;
  border: 1px solid #cccccc;
  box-sizing: border-box; /* 确保边框计算在内 */
  height: 100%;
}

/* 避免双重边框：除了第一个li，其他li的a去掉左边框 */
.category-nav li + li a {
  border-left: none;
}

.category-nav li a::before {
  content: "";
  display: block;
  width: 30px;
  height: 30px;
  margin-right: 8px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

/* 特定图标设置 */
.category-nav li:nth-child(1) a::before {
  background-image: url('../images/icon_14.png');
}
.category-nav li:nth-child(2) a::before {
  background-image: url('../images/icon_05.png');
}
.category-nav li:nth-child(3) a::before {
  background-image: url('../images/icon_07.png');
}
.category-nav li:nth-child(4) a::before {
  background-image: url('../images/icon_09.png');
}
.category-nav li:nth-child(5) a::before {
  background-image: url('../images/icon_11.png');
}
.category-nav li:nth-child(6) a::before {
  background-image: url('../images/icon_11.png');
}

.category-nav li a:hover,
.category-nav li a.active {
  color: #dd0000;
  border-bottom: 3px solid #dd0000;
  padding-bottom: 13px; /* 补偿边框增加的2px，保持总高度不变 */
  background: #fff; /* 确保背景覆盖 */
}

.training-banner {
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-image: url('../images/banner_02.png');
  padding-top: 16.15%; /* 310/1920 */
}

/* =========================================
   Part 2: New Design Styles (Course Lists)
   ========================================= */

/* Category Sections General */
.category-section {
  padding: 40px 0; /* 移除左右 padding */
  margin-bottom: 30px;
}

.category-title {
  text-align: center;
  font-size: 24px;
  color: #000;
  font-weight: bold;
  margin-bottom: 30px;
  position: relative;
  border-bottom: none; /* Override original if any */
  padding-bottom: 0;
  margin-top: 40px;
}

/* Backgrounds */
.section-basic, .section-maintenance {
  background-image: url('../images/hbg_26.png');
  background-repeat: repeat;
  width: 100vw; /* 视口宽度 */
  margin-left: calc(-50vw + 50%); /* 居中校正 */
  padding-left: calc(50vw - 50%); /* 内容内缩 */
  padding-right: calc(50vw - 50%); /* 内容内缩 */
}

/* 内部容器，限制内容宽度 */
.course-list-wrapper, .maintenance-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.section-white {
  background-color: #fff;
}

/* Standard Course Grid (2 Columns) */
.course-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 40px;
  row-gap: 30px;
}

/* Standard Course Card */
.course-card-standard {
  background: #fff;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
  height: 100%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Optional subtle shadow */
}

.course-card-standard .course-link {
  display: flex;
  text-decoration: none;
  color: inherit;
  padding: 15px;
  align-items: center; /* Vertical center */
}

.course-thumb {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  margin-right: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.course-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.course-image-placeholder {
  width: 100%;
  height: 100%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 12px;
}

.course-content {
  flex: 1;
  overflow: hidden;
}

.course-card-standard .course-title {
  font-size: 16px;
  color: #000;
  font-weight: bold;
  margin: 0 0 10px 0;
  transition: color 0.3s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none !important; /* 强制移除下划线 */
}

.course-card-standard .course-link:hover {
    text-decoration: none;
}

.course-desc {
  font-size: 14px;
  color: #bbbbbb; /* 修改简介颜色 */
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Hover Effects (Standard) */
.course-card-standard:hover {
  border-left-color: #dd0000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* 增加悬停阴影 */
}

.course-card-standard:hover .course-title {
  color: #dd0000;
}

/* Mobile Arrow (Hidden on PC) */
.mobile-arrow {
  display: none;
}


/* Maintenance Section (Split Layout) */
.maintenance-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.maintenance-left {
  position: relative;
}

.maintenance-feature-image {
  width: 100%;
  height: 0;
  padding-bottom: 56.6%; /* 精确计算：(70px * 4 + 20px * 3) / 600px(假设宽度) ≈ 56.6% */
  /* 或者直接使用固定高度，如果右侧高度是固定的 */
  /* padding-bottom: calc((70px * 4) + (20px * 3)); 使用 calc 可能不适用于 padding-bottom 百分比基准 */
  /* 改用 min-height 配合 padding-bottom 或者直接 height */
  padding-bottom: 0;
  height: 340px; /* 70*4 + 20*3 = 280 + 60 = 340px */
  position: relative;
  overflow: hidden;
}

.maintenance-feature-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.maintenance-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  padding: 15px;
  box-sizing: border-box;
}

#maintenance-feature-title {
  color: #fff;
  font-size: 16px;
  font-weight: bold;
}

.maintenance-right {
  /* width: 50%; */
}

.maintenance-list {
  display: flex;
  flex-direction: column;
  gap: 20px; /* 增加卡片间距，原 15px */
  height: 100%; /* 占满父容器高度 */
  justify-content: space-between; /* 垂直均匀分布 */
}

.maintenance-card {
  background: #fff;
  height: 70px; /* 增加卡片高度，原 60px */
  display: flex;
  align-items: center;
  border-left: 3px solid transparent;
  transition: all 0.3s;
  padding: 0 20px;
}

.maintenance-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-decoration: none;
  color: #000;
}

.m-course-title {
  font-size: 16px;
  font-weight: bold;
  transition: color 0.3s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

/* Hover Effects (Maintenance) */
.maintenance-card:hover {
  border-left-color: #dd0000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* 增加悬停阴影 */
}

.maintenance-card:hover .m-course-title {
  color: #dd0000;
}

/* Pagination */
.course-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  gap: 10px;
}

.pagination-dot {
  width: 10px;
  height: 10px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
}

.pagination-dot.active {
  background: #dd0000;
}

.pagination-arrow {
  cursor: pointer;
  color: #ccc;
  font-size: 20px;
  user-select: none;
}

.pagination-arrow.enabled {
  color: #dd0000;
}

/* Not Found Section */
.section-not-found {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
  background-image: url('../images/mzdbg_30.png');
  background-size: cover;
  padding-top: 60px;
  padding-bottom: 60px;
}

.not-found-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.not-found-header h2 {
  font-size: 32px;
  margin-top: 30px;
  margin-bottom: 15px;
}

.not-found-header p {
  color: #666;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 0 20px;
}

.contact-card {
  background: #fff;
  border: 1px solid #ddd;
  border-top: 1px solid #ddd; /* Default top border */
  position: relative;
  padding: 30px 20px;
  transition: box-shadow 0.3s;
}

/* Custom Red Top Border Segment */
.contact-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: #dd0000;
  z-index: 1;
}

.city-row {
  color: #333;
  margin-bottom: 20px;
  font-size: 14px;
}

.phone-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.phone-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #eee;
  padding: 8px 20px;
  border-radius: 0;
  transition: box-shadow 0.3s;
  cursor: pointer;
  min-width: 180px;
  flex-direction: row-reverse; /* 图标换到右侧 */
  text-decoration: none; /* 去除链接下划线 */
  color: inherit; /* 继承父元素颜色 */
}

.phone-item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.icon-phone {
  width: 20px;
  height: 20px;
  background-image: url('../images/icon_22.png');
  background-size: contain;
  background-repeat: no-repeat;
  margin-left: 10px; /* 改为左边距 */
  margin-right: 0;
  transition: background-image 0.3s;
}

.phone-item:hover .icon-phone {
  background-image: url('../images/icon_25.png');
}

.phone-number {
  font-weight: bold;
  color: #333;
}


/* Modal Styles */
.training-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
}

.training-modal.active {
  display: block;
}

.training-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.training-modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 30px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  position: relative;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  text-align: center;
}

.training-modal-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
}

.training-modal-close:hover,
.training-modal-close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.training-modal-body p {
  margin: 10px 0;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

/* Responsive */
@media (max-width: 768px) {
  /* Protected Mobile Styles */
  /* Mobile Background & Layout Reset */
  .section-basic, .section-maintenance {
    background: #fff;
    background-image: none;
    width: auto;
    margin-left: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .category-section {
    padding: 20px 0;
  }

  .course-list-wrapper {
    overflow: hidden; /* 防止滑动时内容溢出 */
    margin: 0; /* 与欢迎块对齐 */
  }

  .training-banner {
    background-image: url('../images/banner_m_02.png');
    padding-top: 48.27%; /* 362/750 */
    margin-top: 20px;
  }

  /* 移动端欢迎块样式重置 */
  .training-welcome-block {
    width: 100%;
    min-width: 0; /* 重置最小宽度 */
    margin: 20px 0;
    border: none;
    padding: 0;
  }

  .training-welcome-block::before {
    display: none; /* 隐藏上边线文字 */
  }

  .training-welcome-content {
    flex-direction: row; /* 保持左右排列 */
    text-align: left;
    gap: 10px;
    align-items: flex-start; /* 顶部对齐或根据需要居中 */
    margin: 0 20px; /* 左右往里缩 */
  }

  .welcome-text-group {
    order: unset; /* 恢复默认顺序 */
    flex: 1; /* 占据剩余空间 */
  }
  
  .welcome-text-group p {
    font-size: 14px; /* 移动端字体稍小 */
  }

  .welcome-qr {
    order: unset; /* 恢复默认顺序 */
    flex-shrink: 0; /* 防止压缩 */
  }
  
  .welcome-qr img {
    margin: 0;
    width: 80px; /* 移动端二维码稍小 */
    height: 80px;
  }

  .training-welcome-actions {
    position: static; /* 恢复文档流 */
    margin-top: 20px;
    width: auto;
    padding: 0; /* 移动端不需要 */
    background: transparent; /* 移动端不需要 */
    transform: none; /* 移除居中偏移 */
  }

  .training-welcome-actions .btn {
    width: 33.75%; /* 按钮宽度适配 (45% * 0.75) */
    flex: 0 0 33.75%; /* 移动端覆盖 PC 端 flex 设置 */
    font-weight: normal; /* 移动端不加粗 */
  }

  .category-nav li a {
    flex-direction: column;
    padding: 10px 5px; /* 减小内边距以适应窄屏 */
    font-size: 14px; /* 稍微减小字体 */
    font-weight: normal; /* 移动端不加粗 */
  }

  .category-nav li a::before {
    margin-right: 0;
    margin-bottom: 5px;
  }

  /* New Design Mobile Styles */
  /* Layout Changes */
  .course-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  /* Mobile Title */
  .category-title {
    font-size: 18px;
    margin-bottom: 15px;
    margin-top: 20px;
  }
  
  .category-title::after {
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    background: #dd0000;
    margin: 10px 0 0;
  }
  
  .category-section {
    padding: 10px 0;
    margin-bottom: 10px;
  }

  /* Mobile Card Style (Accordion-like) */
  .course-card-standard {
    min-height: 50px;
    height: auto;
    border-left: none;
    border-bottom: 1px solid #eee;
    box-shadow: none;
  }
  
  .course-card-standard .course-link {
    padding: 10px;
    min-height: 50px;
    width: 100%; /* Add width */
    box-sizing: border-box; /* Add box-sizing */
    justify-content: space-between;
  }
  
  .course-thumb, .course-desc {
    display: none;
  }
  
  .course-content {
    display: flex;
    justify-content: flex-start; /* Was space-between */
    align-items: center;
    width: 100%;
    gap: 10px; /* Add gap */
  }
  
  .course-card-standard .course-title {
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
    white-space: normal; /* Allow wrap if needed, or keeping single line */
    flex: 1; /* Take remaining space */
  }
  
  .mobile-arrow {
    display: block;
    width: 10px;
    height: 10px;
    border-top: 2px solid #dd0000;
    border-right: 2px solid #dd0000;
    transform: rotate(45deg);
    order: -1; /* Move to front */
    flex-shrink: 0; /* Don't shrink */
  }
  
  /* Maintenance Mobile */
  .maintenance-layout {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 0;
  }
  
  .maintenance-left {
    display: none; /* Hide large image */
  }
  
  .maintenance-right {
    width: 100%;
  }

  .maintenance-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .maintenance-card {
    min-height: 50px;
    height: auto;
    padding: 0;
    border-left: none;
    border-bottom: 1px solid #eee;
  }

  .maintenance-link {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 50px;
    height: 100%;
    padding: 10px;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
    gap: 10px;
  }
  
  .m-course-title {
    font-size: 14px;
    line-height: 1.4;
    white-space: normal;
    font-weight: bold;
    flex: 1;
    color: #333;
  }
  
  .m-course-arrow {
    display: block;
    width: 10px;
    height: 10px;
    border-top: 2px solid #dd0000;
    border-right: 2px solid #dd0000;
    transform: rotate(45deg);
    order: -1; /* Move to front */
    flex-shrink: 0;
  }

  /* Not Found Section Mobile */
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .not-found-header h2 {
    font-size: 24px;
  }
}
