/* ============================================================
   PAGE TRAINING — 营销培训 + PAGE CONTACT
   拓跋云 V4
   ============================================================ */

/* ─── Training ──────────────────────────────── */
/* training-hero & contact-hero styles now in components.css (unified banner system) */

.training-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ─── Training Course Cards (upgraded) ──────────────────────────────── */
.training-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition-base);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
}
.training-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: var(--red-100); }
.training-card .tc-image { width: 100%; height: 200px; object-fit: cover; }

/* tc-content — card body (fixed: was tc-body in CSS but tc-content in HTML) */
.training-card .tc-content { padding: 28px; flex: 1; display: flex; flex-direction: column; }

/* tc-tag — red pill badge */
.training-card .tc-tag {
  display: inline-block;
  width: fit-content;
  font-size: 13px;
  color: var(--red-500);
  font-weight: 700;
  padding: 5px 14px;
  border: 1.5px solid var(--red-200);
  border-radius: 20px;
  background: var(--red-50);
  margin-bottom: 14px;
  letter-spacing: 1px;
}

/* Title */
.training-card h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 12px;
  color: var(--text-primary);
}

/* Description */
.training-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
  flex: 1;
}

/* tc-meta — pill tags row */
.training-card .tc-meta {
  font-size: 12px;
  color: var(--text-tertiary);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.training-card .tc-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: var(--gray-50);
  border-radius: 20px;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
}

/* Button area */
.training-card .btn-outline {
  align-self: flex-start;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: 1.5px solid var(--red-500);
  color: var(--red-500);
  background: transparent;
  transition: var(--transition-base);
}
.training-card .btn-outline:hover {
  background: var(--red-500);
  color: #fff;
  border-color: var(--red-500);
}

.training-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 32px 0; }
.training-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}
.training-feature .tf-icon { font-size: 24px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--red-50); border-radius: var(--radius-md); flex-shrink: 0; }
.training-feature .tf-text { font-size: 14px; font-weight: 500; }

/* tf-item — extended feature card style (used on training index page) */
.tf-item {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: var(--transition-base);
}
.tf-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.tf-item .tf-icon {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.tf-item h4 {
  font-size: 17px;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.tf-item p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Course detail - Curriculum accordion */
.curriculum-module {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}
.curriculum-module .cm-header {
  background: var(--gray-50);
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: none;
  width: 100%;
  font-family: var(--font-sans);
  color: var(--text-primary);
}
.curriculum-module .cm-header:hover { background: var(--red-50); }
.curriculum-module .cm-body {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base), padding var(--transition-base);
}
.curriculum-module.open .cm-body { max-height: 1200px; padding: 16px 20px; }
.curriculum-module .cm-body ul { list-style: none; padding: 0; }
.curriculum-module .cm-body h4 { font-size: 15px; font-weight: 700; margin: 16px 0 8px; color: var(--text-primary); }
.curriculum-module .cm-body p { font-size: 14px; line-height: 1.8; color: var(--text-secondary); }
.curriculum-module .cm-body li { font-size: 14px; padding: 6px 0; color: var(--text-secondary); display: flex; align-items: center; gap: 8px; }
.curriculum-module .cm-body li::before { content: '▸'; color: var(--red-500); }

/* Module header children */
.cm-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--red-500);
  font-family: var(--font-en);
  white-space: nowrap;
  flex-shrink: 0;
}
.cm-title {
  font-size: 16px;
  font-weight: 600;
  flex: 1;
  margin: 0 12px;
}
.cm-icon {
  font-size: 20px;
  color: var(--red-500);
  font-weight: 700;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}
.curriculum-module.open .cm-icon { transform: rotate(45deg); }
.cm-duration {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 12px;
  font-weight: 500;
}

/* ─── Course Overview ───────────────────────────── */
.course-overview {
  max-width: 860px;
  margin: 0 auto;
}
.co-text {
  font-size: 15px;
  line-height: 2;
  color: var(--text-secondary);
}
.co-text p { margin-bottom: 16px; }
.co-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  padding: 24px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
}
.co-highlight {
  flex: 1;
  min-width: 120px;
  text-align: center;
  padding: 8px 12px;
  background: var(--red-50);
  border-radius: var(--radius-md);
}
.co-highlight strong {
  display: block;
  font-size: 18px;
  color: var(--red-500);
  font-family: var(--font-en);
  margin-bottom: 2px;
}
.co-highlight span {
  display: block;
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ─── Trainer Profile (redesigned) ──────────────── */
.trainer-section {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 40px;
  align-items: start;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 40px;
}
.trainer-image {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.trainer-name {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}
.trainer-role {
  font-size: 14px;
  color: var(--red-500);
  font-weight: 600;
  margin-bottom: 16px;
}
.trainer-bio {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.9;
}
.trainer-bio p {
  margin-bottom: 12px;
}
.trainer-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* Trainer quote card */
.trainer-quote {
  margin: 20px 0 0;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--red-500);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  position: relative;
}
.trainer-quote .tq-icon {
  position: absolute;
  top: 20px;
  left: 28px;
  color: var(--red-100);
  opacity: 0.5;
}
.trainer-quote blockquote {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  font-style: italic;
  padding-left: 48px;
  margin: 0;
}

/* ─── Learning Outcomes ────────────────────────── */
.learning-outcomes {
  max-width: 800px;
  margin: 0 auto;
}
.lo-item {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-light);
}
.lo-item:last-child { border-bottom: none; }
.lo-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red-500);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-en);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lo-item h4 {
  font-size: 17px;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.lo-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ─── Who Should Attend ────────────────────────── */
.who-should {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.ws-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition-fast);
}
.ws-card:hover {
  border-color: var(--red-200);
  box-shadow: var(--shadow-card);
}
.ws-card h4 {
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.ws-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ─── Enrollment Info ──────────────────────────── */
.enrollment-info {
  max-width: 760px;
  margin: 0 auto;
}
.ei-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ei-item {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.ei-item h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--red-500);
  margin-bottom: 8px;
}
.ei-item p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.ei-cta {
  text-align: center;
  margin-top: 28px;
}

/* ─── Trainer Highlights (team stats grid) ──────── */
.trainer-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}
.trainer-highlight {
  background: var(--red-50);
  border: 1px solid var(--border-red);
  border-radius: var(--radius-lg);
  padding: 16px 14px;
  text-align: center;
  transition: var(--transition-fast);
}
.trainer-highlight:hover {
  background: var(--red-100);
  transform: translateY(-2px);
}
.trainer-highlight strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--red-500);
  font-family: var(--font-en);
  line-height: 1.2;
}
.trainer-highlight span {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.4;
}

/* ─── Student Results Story Lines ─────────────── */
.story-results {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.story-row {
  display: flex;
  align-items: stretch;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition-base);
}
.story-row:hover {
  border-color: var(--red-200);
  box-shadow: var(--shadow-card);
}
.story-row.reverse {
  flex-direction: row-reverse;
}

/* ─── Data (number) side ─── */
.story-data {
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 36px 24px;
  background: linear-gradient(135deg, var(--red-50) 0%, #fff 100%);
  text-align: center;
}
.story-stat {
  padding: 12px 8px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.6);
}
.story-stat strong {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: var(--red-500);
  font-family: var(--font-en);
  line-height: 1.1;
  letter-spacing: -1px;
}
.story-stat span {
  display: block;
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 2px;
  font-weight: 500;
}

/* ─── Quote side ─── */
.story-quote {
  flex: 1;
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.story-q-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.story-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--red-500);
  background: var(--red-50);
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid var(--border-red);
  white-space: nowrap;
  flex-shrink: 0;
}
.story-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}
.story-quote > p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-secondary);
  margin: 0;
  position: relative;
  padding-left: 20px;
}
.story-quote > p::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -2px;
  font-size: 28px;
  color: var(--red-200);
  font-family: Georgia, serif;
  line-height: 1;
}

/* ─── Training Detail Page Responsive ──────────── */
@media (max-width: 768px) {
  .course-overview,
  .curriculum-modules,
  .learning-outcomes,
  .enrollment-info { max-width: 100%; }
  .co-highlights { padding: 16px; gap: 8px; }
  .co-highlight { min-width: 80px; padding: 6px 10px; }
  .co-highlight strong { font-size: 16px; }
  .trainer-section { grid-template-columns: 1fr; padding: 24px; }
  .trainer-image { max-width: 240px; }
  .who-should { grid-template-columns: 1fr; }
  .ei-grid { grid-template-columns: 1fr; }
  .lo-item { gap: 14px; padding: 18px 0; }
  .lo-icon { width: 36px; height: 36px; font-size: 14px; }
  .cm-title { font-size: 14px; }
  .ei-item { padding: 18px; }
  .training-grid { grid-template-columns: 1fr; }
  .training-card .tc-image { height: 180px; }
  .training-card .tc-content { padding: 22px; }
  .training-card h3 { font-size: 18px; }
  .training-card p { font-size: 13px; }
  .training-card .tc-tag { font-size: 12px; padding: 4px 12px; }
  .training-card .tc-meta { gap: 8px; margin-bottom: 16px; }
  .training-card .tc-meta span { padding: 3px 10px; font-size: 11px; }
  .training-card .btn-outline { padding: 9px 18px; font-size: 13px; }
  .trainer-quote { padding: 20px; }
  .trainer-quote blockquote { font-size: 14px; padding-left: 0; }
  .trainer-quote .tq-icon { display: none; }
  .trainer-highlights { grid-template-columns: 1fr; gap: 8px; }
  .trainer-highlight { padding: 14px 12px; }
  .trainer-highlight strong { font-size: 20px; }
  .story-row { flex-direction: column !important; }
  .story-data { flex: none; flex-direction: row; padding: 20px 24px; gap: 12px; }
  .story-stat { flex: 1; padding: 8px 4px; }
  .story-stat strong { font-size: 24px; }
  .story-quote { padding: 24px; }
  .story-q-header { flex-wrap: wrap; gap: 8px; }
  .story-name { white-space: normal; }
  .story-quote > p { font-size: 13px; padding-left: 16px; }
  .story-quote > p::before { font-size: 22px; }
}
