/* ==========================================================================
   XT 培训频道（training.css）
   --------------------------------------------------------------------------
   只放这一页特有的品牌外观。
   栅格、按钮、卡片、折叠面板、弹窗全部用 Bootstrap 原生件：
     栅格 → container / row / col-*
     按钮 → btn / btn-primary / btn-outline-primary / btn-sm
     卡片 → card / card-body / card-title / card-text
     折叠 → accordion
     弹窗 → modal
     筛选 → nav / nav-pills
   尺寸、颜色、圆角统一在 xt-theme.css，这里不重复定义。
   ========================================================================== */

/* ---------- 首屏：深底 + 亮绿强调 ---------- */
.hero {
  padding-block: clamp(2rem, 4vw, 3.5rem) clamp(2rem, 3.5vw, 3rem);
  background: #19221b;
  color: #eef4e9;
}
.hero .page-title {
  margin: 0 0 1rem;
  color: #f4f8ee;
}
.hero .page-title span { color: var(--xt-accent); }
.hero-tag {
  display: inline-block;
  margin: 0 0 1.1rem;
  font-size: var(--xt-fs-label);
  font-weight: 600;
  letter-spacing: .04em;
  color: #bbcf9e;
}
.hero-description {
  max-width: 34rem;
  margin: 0 0 1.5rem;
  color: #cbd8c4;
}

/* ---------- 三级培训矩阵 ---------- */
.framework {
  padding: 1.25rem 1.4rem;
  border-radius: 12px;
  background: #26342a;
}
.framework-title {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  font-size: .8125rem;
  font-weight: 600;
  color: #eef4e9;
}
.framework-title span:last-child {
  font-size: .6875rem;
  font-weight: 400;
  color: #a8bda3;
}
.framework-row {
  padding: .8rem .95rem;
  margin-top: .45rem;
  border-radius: 8px;
  background: #334538;
}
.framework-row:nth-child(3) { background: #3a4c3d; }
.framework-row:nth-child(4) { background: #405541; }

.level-en { display: none; }
.level-title {
  display: block;
  margin: 0 0 .3rem;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.35;
  color: #f1f5ec;
}
/* 层级说明：小号附加信息，置于层级标题正下方 */
.level-goal {
  display: block;
  margin: 0;
  padding-top: .15rem;
  font-size: .6875rem;
  line-height: 1.6;
  color: #a8bda3;
}
.level-courses {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: .4rem;
  padding-top: .45rem;
}
.level-courses .btn { white-space: nowrap; }
.level-courses small {
  font-size: .6875rem;
  opacity: .8;
  margin-inline: .2rem;
}

/* ---------- 方法说明条 ---------- */
.method-note {
  padding-block: 1.4rem;
  background: #eef1e9;
  font-size: .8125rem;
  line-height: 1.75;
}
.method-note .body-copy {
  margin: 0 0 .4rem;
  font-size: .8125rem;
  line-height: 1.75;
  color: #536b59;
}
.method-note .body-copy:last-child { margin-bottom: 0; }
.method-note .method-lead {
  font-weight: 600;
  color: #304533;
}

/* ---------- 区块通用 ---------- */
.section { padding-block: clamp(2rem, 3.2vw, 2.75rem); }

.section-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.section-top .xt-label {
  font-size: .75rem;
  letter-spacing: .04em;
  text-transform: none;
  color: #61725d;
}
.section-top-en { display: none; }

.intro-head { margin-block: 1.25rem 1.5rem; }
.intro-head .xt-label { margin-bottom: .4rem; }
.intro-head .section-heading { margin: 0; }
.intro-head .body-copy { margin: 0; color: #52634e; }
.learning-intro .body-copy { max-width: 54rem; margin-top: .75rem; }

/* 标题里的强调尾段：与全站主色浅调一致 */
.section-heading em {
  font-style: normal;
  color: #6d8d2b;
}

/* ---------- 专家区 ---------- */
.expert-section {
  padding-block: clamp(2rem, 3.2vw, 2.75rem) 1.25rem;
  background: #e9eee3;
  color: #1d3028;
}
.expert-carousel { padding-top: 1.1rem; }
.expert-track {
  display: flex;
  gap: .875rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.expert-card {
  flex: 0 0 100%;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: #f8faf5;
  scroll-snap-align: start;
}
.expert-card-copy { padding: 1.4rem 1.75rem; }
.expert-name {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 650;
}
.expert-name small {
  margin-left: .75rem;
  font-size: .625rem;
  font-weight: 400;
  letter-spacing: .15em;
  color: #82917b;
}
.expert-card-role {
  margin: .55rem 0;
  font-size: .8125rem;
  color: #496042;
}
.expert-card-photo {
  width: 180px;
  min-height: 200px;
}
.expert-card-photo img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 220px;
  object-fit: cover;
  object-position: center 15%;
}
.expert-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .6rem;
  font-size: .6875rem;
  color: #71836d;
}
.expert-controls b { font-weight: 400; margin-left: .75rem; }

/* ---------- 各区块底色 ---------- */
.cases { background: #f7f6ef; }
.learning { background: #f0f3ed; }
.delivery { background: #fff; }
.faq { background: #f4f6f1; }
.contact {
  padding-block: clamp(2rem, 3.2vw, 2.5rem);
  background: #dfe9d4;
}

/* ---------- 行业筛选：nav-pills ---------- */
.case-tabs { margin-bottom: 1rem; }
.case-tabs .nav-link {
  padding: .5rem 1rem;
  border: 0;
  border-radius: 999px;
  background: #e9eee4;
  color: #556a5c;
  font-size: .8125rem;
}
.case-tabs .nav-link:hover { background: #dfe6d8; color: #2c4433; }
.case-tabs .nav-link.active { background: #263e2d; color: #fff; }

/* ---------- 案例卡与说明 ---------- */
.case-grid { margin-bottom: .25rem; }
.case-subtitle {
  margin: 0 0 .6rem;
  font-size: .8125rem;
  font-weight: 500;
  color: #78907a;
}
.case-caption {
  margin: 1rem 0 0;
  font-size: .6875rem;
  line-height: 1.8;
  color: #89998a;
}

/* ---------- 小屏：只调字号与紧凑度，栅格交给 Bootstrap ---------- */
@media (max-width: 575.98px) {
  .framework { padding: 1rem; }
  .framework-row { padding: .7rem .8rem; }
  .level-title { font-size: 1.1rem; }
  .level-courses .btn { font-size: .75rem; }
  .expert-card-photo { width: 100px; min-height: 160px; }
  .expert-card-photo img { max-height: none; }
  .expert-card-copy { padding: 1.1rem; }
  .expert-name { font-size: 1.4rem; }
  .expert-name small { display: block; margin: .3rem 0 0; }
}

/* ==========================================================================
   课程详情页（9 页共用）
   --------------------------------------------------------------------------
   这一组仍按原样保留，等培训首页样板验收通过后，再连同 gen_course_pages.py
   一起换成 Bootstrap 原生件。当前只保证不因样式重写而破版。
   ========================================================================== */
.detail-hero {
  padding: var(--xt-hero-top) var(--xt-gutter) var(--xt-hero-bottom);
  background: #253b30;
  color: #f2f4e8;
}
.detail-hero h1 {
  margin: .9rem 0;
  font-size: clamp(2.4rem, 5.5vw, 4.75rem);
  font-weight: 500;
  line-height: 1.2;
}
.detail-hero > p:last-child {
  max-width: 650px;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #c5d2c2;
}
.back-link { font-size: .75rem; color: #c1d0c0; }

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 12%;
  padding: 62px var(--xt-gutter);
}
.detail-side p {
  font-size: .8125rem;
  line-height: 1.9;
  color: #728173;
}
.detail-body section {
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--xt-line);
}
.detail-body h2 { margin-bottom: 1.25rem; font-size: 1.5625rem; }
.detail-body p,
.detail-body li {
  font-size: .875rem;
  line-height: 2;
  color: #586d5e;
}
.detail-body li { margin: .5rem 0; }
.detail-body .side-link { margin-top: .5rem; }

.status {
  padding: .3rem .55rem;
  border: 1px solid #a0866d;
  font-size: .6875rem;
  color: #e4b994;
}
.kicker {
  margin: 0 0 1.4rem;
  font: 600 10px Arial, sans-serif;
  letter-spacing: .18em;
  color: #849b89;
}
.side-link {
  display: inline-block;
  margin-top: .75rem;
  font-size: .8125rem;
  color: var(--xt-brand);
}
.side-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* 详情页的醒目入口按钮（待铺开阶段换成 btn btn-primary） */
.contact-link {
  display: inline-block;
  margin-top: 1rem;
  padding: .6rem 1.1rem;
  border-radius: 6px;
  background: #263e2d;
  color: #fff;
  font-size: .8125rem;
  font-weight: 600;
}
.contact-link:hover { background: #33523b; }

@media (max-width: 575.98px) {
  .detail-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2.8rem var(--xt-gutter);
  }
  .detail-hero { padding: 2.8rem var(--xt-gutter); }
}
