/* 培训课程页面专属样式 */

/* Banner 专属背景 */
.page5-banner {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #2563eb 100%);
  position: relative;
}
.page5-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1552664730-d307ca884978?w=1920&h=400&fit=crop') center/cover no-repeat;
  opacity: 0.15;
}
.page5-banner .container {
  position: relative;
  z-index: 2;
}

/* 主体布局 */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
  padding: 40px 0;
}

/* 内容区 */
.content-area {
  min-width: 0;
}

.section-header {
  margin-bottom: 28px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
  position: relative;
  padding-bottom: 12px;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}
.section-title.center {
  text-align: center;
}
.section-title.center::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-desc {
  color: var(--text-secondary);
  font-size: 14px;
}

/* 文章列表卡片改造 - 竖排布局适配 */
.list-content .article-card {
  flex-direction: column;
}
.list-content .article-card .card-thumb {
  width: 100%;
  height: 220px;
}

/* 侧边栏 */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.widget-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  background: var(--primary-color);
  padding: 14px 20px;
  margin: 0;
}

.widget-subtitle {
  padding: 16px 20px 0;
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
  text-align: center;
}

/* 咨询表单 */
.sidebar-form {
  padding: 20px;
}

.sidebar-form .form-group {
  margin-bottom: 14px;
}

.sidebar-form input,
.sidebar-form select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.sidebar-form input:focus,
.sidebar-form select:focus {
  border-color: var(--primary-color);
}

.btn-fullwidth {
  width: 100%;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
}

/* 课程优势 */
.advantage-list {
  padding: 16px 20px;
}

.advantage-list li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed #eee;
}
.advantage-list li:last-child {
  border-bottom: none;
}

.adv-icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
}

.advantage-list strong {
  display: block;
  font-size: 15px;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.advantage-list p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* 热门课程 */
.hot-course-list {
  padding: 16px 20px;
}

.hot-course-item {
  position: relative;
  padding: 14px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
  background: var(--secondary-color);
  transition: all 0.2s;
  cursor: pointer;
}
.hot-course-item:last-child {
  margin-bottom: 0;
}
.hot-course-item:hover {
  background: #eff6ff;
  transform: translateX(4px);
}

.hot-course-item h4 {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
  padding-left: 36px;
}

.hot-course-item p {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
  padding-left: 36px;
}

.hot-tag {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: #3b82f6;
  color: #fff;
  font-weight: 500;
}
.hot-tag.hot {
  background: var(--accent-color);
}
.hot-tag.new {
  background: #10b981;
}

/* 课程特色区 */
.course-features-section {
  background: var(--secondary-color);
  padding: 60px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.feature-card {
  background: #fff;
  border-radius: var(--border-radius);
  padding: 30px 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  border: 1px solid var(--border-color);
  transition: all 0.3s;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(37,99,235,0.12);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* 响应式适配 */
@media (max-width: 1024px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .main-layout {
    padding: 24px 0;
    gap: 20px;
  }
  .section-title {
    font-size: 20px;
  }
  .list-content .article-card .card-thumb {
    height: 180px;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
  }
  .course-features-section {
    padding: 40px 0;
  }
  .feature-card {
    padding: 24px 20px;
  }
}