/* 培训页面样式 */

/* 页面头部样式 */
.page-header {
  background: linear-gradient(
    to bottom,
    var(--dark-color),
    rgba(var(--primary-rgb), 0.9)
  );
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgZmlsbD0iIzMzMzMzMyIgZmlsbC1vcGFjaXR5PSIwLjEiPgogICAgICAgICAgICA8cGF0aCBkPSJNMzYgMzRjMC0yLjIxLTEuNzktNC00LTRzLTQgMS43OS00IDQgMS43OSA0IDQgNCA0LTEuNzkgNC00eiIvPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+");
  opacity: 0.3;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
    color: var(--text-light);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-header p.lead {
  font-size: 1.25rem;
  line-height: 1.6;
  max-width: 3xl;
  margin: 0 auto;
  opacity: 0.95;
}

/* 培训服务概述 */
.training-overview {
  padding: 4rem 0;
  background-color: var(--bg-body);
}

.training-overview h2 {
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.training-overview h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

.training-overview p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* 培训统计数据 */
.training-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat-item {
  background-color: rgba(var(--primary-rgb), 0.1);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  text-align: center;
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-item h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-item p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}

/* 培训服务优势 */
.training-advantages {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.advantage-item {
  display: flex;
  align-items: flex-start;
  padding: 1rem;
  background-color: var(--bg-card);
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.advantage-item:hover {
  background-color: var(--bg-muted);
  border-left-color: var(--primary-color);
  transform: translateX(5px);
}

.training-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  margin-right: 1rem;
  flex-shrink: 0;
}

.advantage-item h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.advantage-item p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* 培训对象选项卡 */
.training-targets {
  padding: 4rem 0;
  background-color: var(--bg-muted);
}

.training-targets .container > .row:first-child {
  margin-bottom: 2.5rem;
}

.training-targets h2 {
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.training-targets p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 3xl;
  margin: 0 auto;
}

/* 选项卡导航 */
.training-tabs {
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--border-color);
  margin-top: 2rem;
  flex-wrap: wrap;
}

.training-tab {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.training-tab:hover {
  color: var(--primary-color);
}

.training-tab.active {
  color: var(--primary-color);
}

.training-tab.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--primary-color);
}

/* 选项卡内容 */
.training-content {
  margin-top: 2rem;
  display: none;
}

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

.training-content .bg-white {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease;
}

.training-content .bg-white:hover {
  box-shadow: var(--shadow);
}

.training-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.training-content p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.training-content ul {
  margin: 0;
  padding: 0;
}

.training-content li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
}

.training-content li i {
  color: var(--primary-color);
  margin-right: 0.5rem;
  margin-top: 0.25rem;
}

/* 培训课程 */
.training-courses {
  padding: 4rem 0;
  background-color: var(--bg-body);
}

.training-courses h2 {
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-align: center;
}

.training-courses p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 3xl;
  margin: 0 auto 3rem;
  text-align: center;
}

/* 课程卡片 */
.course-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.course-img {
  height: 180px;
  overflow: hidden;
}

.course-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.course-card:hover .course-img img {
  transform: scale(1.05);
}

.course-card .p-6 {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-category {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary-color);
  background-color: rgba(var(--primary-rgb), 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.course-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.course-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  text-align: left;
  flex: 1;
}

.course-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.course-details i {
  margin-right: 0.25rem;
}

.course-card .btn {
  width: 100%;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  background-color: var(--primary-color);
  border: none;
  border-radius: var(--border-radius);
  transition: background-color 0.3s ease;
}

.course-card .btn:hover {
  background-color: var(--primary-dark);
}

/* 培训形式 */
.training-formats {
  padding: 4rem 0;
  background-color: var(--bg-muted);
}

.training-formats h2 {
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-align: center;
}

.training-formats p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 3xl;
  margin: 0 auto 3rem;
  text-align: center;
}

/* 培训形式卡片 */
.format-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  height: 100%;
}

.format-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.format-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.format-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.format-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-align: center;
}

.format-card ul {
  text-align: left;
  margin: 0;
  padding: 0;
}

.format-card li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
}

.format-card li i {
  color: var(--primary-color);
  margin-right: 0.5rem;
  margin-top: 0.25rem;
}

/* 学习路径 */
.learning-path {
  padding: 4rem 0;
  background-color: var(--bg-body);
}

.learning-path h2 {
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-align: center;
}

.learning-path p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 3xl;
  margin: 0 auto 3rem;
  text-align: center;
}

/* 时间线 */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--primary-light);
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -1rem;
  top: 1rem;
  width: 20px;
  height: 20px;
  background-color: var(--primary-color);
  border-radius: 50%;
  border: 3px solid var(--bg-body);
  box-shadow: 0 0 0 2px var(--primary-light);
}

.timeline-item .bg-white {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease;
}

.timeline-item .bg-white:hover {
  box-shadow: var(--shadow);
}

.timeline-item h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.timeline-item p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  text-align: left;
}

.progress {
  height: 6px;
  border-radius: 3px;
  background-color: var(--secondary-light);
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-bar {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 3px;
}

.timeline-item .text-right {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* 常见问题 */
.training-faq {
  padding: 4rem 0;
  background-color: var(--bg-muted);
}

.training-faq h2 {
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-align: center;
}

.training-faq p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 3xl;
  margin: 0 auto 3rem;
  text-align: center;
}

/* 手风琴 */
.accordion {
  --bs-accordion-border-color: none;
  --bs-accordion-border-radius: var(--border-radius);
  --bs-accordion-inner-border-radius: var(--border-radius);
  --bs-accordion-btn-focus-box-shadow: none;
}

.accordion-item {
  margin-bottom: 1rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.accordion-button {
  padding: 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  background-color: var(--bg-card);
  border: none;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.accordion-button:hover {
  background-color: var(--bg-muted);
  color: var(--primary-color);
}

.accordion-button:not(.collapsed) {
  background-color: var(--bg-card);
  color: var(--primary-color);
  box-shadow: none;
}

.accordion-button::after {
  /* content: "下"; */
  font-family: "Bootstrap Icons";
  background-image: none;
  width: auto;
  height: auto;
  font-size: 1rem;
  margin-left: auto;
}

.accordion-button:not(.collapsed)::after {
  /* content: "上"; */
  transform: none;
  margin-left: auto;
}

.accordion-body {
  padding: 1rem;
  background-color: var(--bg-card);
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 联系咨询 */
.training-contact {
  padding: 4rem 0;
  background-color: var(--bg-body);
  text-align: center;
}

.training-contact h2 {
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.training-contact p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 2xl;
  margin-left: auto;
  margin-right: auto;
}

.training-contact .flex {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.training-contact .btn {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.training-contact .btn-primary {
  background-color: var(--primary-color);
  border: none;
}

.training-contact .btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.training-contact .btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background-color: transparent;
}

.training-contact .btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* 返回顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
}

/* 响应式设计 */

/* 大屏幕 (992px及以上) */
@media (min-width: 992px) {
  .page-header {
  padding-top: calc(var(--header-height) + var(--spacing-xxl));
    
  padding-bottom: var(--spacing-xxl);
    padding-bottom: 5rem;
  }

  .page-header h1 {
    font-size: 3rem;
  }

  .training-overview .row {
    gap: 0rem;
  }

  .training-courses .row {
    margin-left: -1rem;
    margin-right: -1rem;
  }

  .training-courses .col-md-4 {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .training-formats .row {
    margin-left: -1rem;
    margin-right: -1rem;
  }

  .training-formats .col-md-3 {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* 中等屏幕 (768px-991px) */
@media (max-width: 991px) {
  .page-header {
    padding-top: var(--header-height) + 4rem;
    padding-bottom: 4rem;
  }

  .page-header h1 {
    font-size: 2.25rem;
  }

  .training-overview .row {
    gap: 2rem;
  }

  .training-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .training-tabs {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .training-tab {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }

  .course-img {
    height: 160px;
  }

  .timeline {
    padding-left: 1.5rem;
  }

  .timeline-dot {
    left: -0.75rem;
    width: 16px;
    height: 16px;
  }
}

/* 小屏幕 (576px-767px) */
@media (max-width: 767px) {
  .page-header {
    padding-top: var(--header-height) + 3rem;
    padding-bottom: 3rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .page-header p.lead {
    font-size: 1rem;
  }

  .training-overview,
  .training-targets,
  .training-courses,
  .training-formats,
  .learning-path,
  .training-faq,
  .training-contact {
    padding: 3rem 0;
  }

  .training-overview h2,
  .training-targets h2,
  .training-courses h2,
  .training-formats h2,
  .learning-path h2,
  .training-faq h2,
  .training-contact h2 {
    font-size: 1.5rem;
  }

  .training-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .advantage-item {
    padding: 0.75rem;
  }

  .training-feature-icon {
    width: 36px;
    height: 36px;
  }

  .training-tabs {
    flex-direction: column;
    align-items: center;
  }

  .training-tab {
    width: 100%;
    text-align: center;
    padding: 0.75rem;
  }

  .course-img {
    height: 140px;
  }

  .format-card {
    padding: 1.5rem;
  }

  .timeline {
    padding-left: 1.25rem;
  }

  .timeline-item .p-6 {
    padding: 1.25rem;
  }

  .accordion-button {
    padding: 0.75rem;
    font-size: 0.875rem;
  }

  .training-contact .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 36px;
    height: 36px;
    font-size: 0.875rem;
  }
}

/* 超小屏幕 (小于576px) */
@media (max-width: 575px) {
  .page-header {
    padding-top: var(--header-height) + 2rem;
    padding-bottom: 2rem;
  }

  .page-header h1 {
    font-size: 1.75rem;
  }

  .training-overview,
  .training-targets,
  .training-courses,
  .training-formats,
  .learning-path,
  .training-faq,
  .training-contact {
    padding: 2rem 0;
  }

  .training-stats {
    grid-template-columns: 1fr;
  }

  .course-img {
    height: 120px;
  }

  .timeline-item {
    padding-bottom: 2rem;
  }

  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }
}

/* 动画效果增强 */
[data-aos] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-muted);
}

::-webkit-scrollbar-thumb {
  background: var(--secondary-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}
