/* ===== 页面整体布局 ===== */
.ke-detail-page {
  background: #fff;
  padding-bottom: 60px;
  min-height: 100vh;
}
.ke-breadcrumb .breadcrumb-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 48px;
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #999;
}
.ke-breadcrumb a {
  color: #555;
  text-decoration: none;
}
.ke-breadcrumb a:hover { color: #387FFC; }
.ke-breadcrumb .sep { margin: 0 8px; color: #CCC; }
.ke-breadcrumb .current { color: #999; }
.ke-detail-page .center {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== 统一左右分栏容器 ===== */
.ke-detail-body {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding-top: 24px;
}
.ke-detail-left { flex: 1; min-width: 0; }
.ke-detail-main-card {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 6px 22px 0 rgba(169,169,169,0.2);
}

/* ===== 封面+信息 ===== */
.course-cover-info {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.course-cover-wrap { flex-shrink: 0; }
.course-cover-wrap .course-cover,
.course-cover-wrap .swiper-container {
  width: 400px;
  height: 228px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.course-cover-wrap .course-cover img,
.course-cover-wrap .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.course-cover-wrap .swiper-pagination-bullet {
  width: 8px; height: 8px;
  background: rgba(255,255,255,0.6);
  opacity: 1; border-radius: 50%;
}
.course-cover-wrap .swiper-pagination-bullet-active { background: #387FFC; }

/* ===== 课程信息 ===== */
.course-info { flex: 1; min-width: 0; }
.course-name {
  font-size: 24px; font-weight: 700; color: #1A1A1A;
  margin: 0 0 8px 0; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.course-brief {
  font-size: 14px; color: #555; line-height: 1.6;
  margin-bottom: 12px;
}
.course-tags {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px;
}
.course-tags .tag {
  padding: 3px 12px; border: 1px solid #387FFC;
  border-radius: 9999px; font-size: 12px; color: #387FFC;
  background: rgba(56,127,252,0.08);
}
.course-meta {
  display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px;
}
.course-meta .meta-item {
  display: flex; align-items: center; font-size: 14px; color: #555;
}
.course-meta .meta-item .key { color: #7F7F7F; width: 80px; flex-shrink: 0; }
.course-meta .meta-item .value { flex: 1; color: #333; }

/* ===== 价格 ===== */
.price-row {
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 12px; padding: 10px 14px;
  background: #FFF8F0; border-radius: 8px;
}
.price-label { font-size: 14px; color: #999; }
.price-value { font-size: 20px; font-weight: 700; color: #E85307; }
.price-link {
  font-size: 14px; color: #E85307; text-decoration: none;
  border-bottom: 1px dashed #E85307; cursor: pointer;
}
.price-link:hover { color: #D04A06; }

/* ===== 按钮 ===== */
.btns { display: flex; gap: 12px; }
.btn {
  flex: 1; height: 44px; border-radius: 4px; font-size: 16px;
  cursor: pointer; border: none; transition: background 150ms;
  font-family: "Microsoft YaHei","PingFang SC","Helvetica Neue",Helvetica,Arial,sans-serif;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-primary { background: #387FFC; color: #fff; font-weight: 600; }
.btn-primary:hover { background: #317AFC; }
.btn-outline { background: #fff; color: #387FFC; border: 1px solid #387FFC; font-weight: 500; }
.btn-outline:hover { background: rgba(56,127,252,0.05); }
.btn-sm { height: 36px; font-size: 14px; width: auto; flex: none; padding: 0 24px; display: inline-flex; align-items: center; gap: 4px; }

/* ===== 右栏 ===== */
.ke-detail-right { width: 280px; flex-shrink: 0; display: flex; flex-direction: column; }
.ke-sidebar-card {
  background: #fff; border-radius: 8px; padding: 24px;
  margin-bottom: 16px; box-shadow: 0 6px 22px 0 rgba(169,169,169,0.2);
}
/* flex order: 机构信息(0) → 表单(1) → 推荐课程(2) → 考试资讯(3) */
.ke-institution-block { order: 0; }
.ke-lead-form-block { order: 1; }
.ke-recommend-block { order: 2; }
.ke-examnews-block { order: 3; }

/* ===== 侧边栏模块标题统一 ===== */
.ke-sidebar-card .module-title {
  font-size: 16px;
  font-weight: 700;
  color: #1A1A1A;
  line-height: 1.4;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #F0F0F0;
}

/* 考试资讯标题：标题在左，查看更多在右 */
.ke-examnews-block .module-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ke-examnews-block .module-title .more {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 400;
  color: #999;
  line-height: 19px;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}

.ke-examnews-block .module-title .more svg {
  width: 14px;
  height: 14px;
  margin-left: 2px;
}

/* ===== 机构 ===== */
.ke-institution-block .inst-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.ke-institution-block .inst-logo {
  width: 56px; height: 56px; border-radius: 4px;
  object-fit: contain; flex-shrink: 0; background: #fff;
  border: 1px solid #F0F0F0; padding: 4px;
}
.ke-institution-block .inst-info {
  display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0;
}
.ke-institution-block .inst-stats {
  display: flex; flex-direction: column; gap: 2px;
}
.ke-institution-block .inst-name { font-size: 16px; font-weight: 700; color: #1A1A1A; }
.ke-institution-block .inst-link { color: #387FFC; text-decoration: none; }
.ke-institution-block .inst-link:hover { text-decoration: underline; }
.ke-institution-block .consult-btn {
  width: 100%; height: 36px; background: #fff; color: #387FFC;
  border: 1px solid #387FFC; border-radius: 4px; font-size: 14px;
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: 5px; font-weight: 500;
  transition: background 150ms;
}
.ke-institution-block .consult-btn:hover { background: rgba(56,127,252,0.05); }

/* ===== 留资表单 ===== */
.ke-lead-form-block {
  overflow: hidden;
}
.lead-form-header {
  /* 利用卡片自身的 padding，不额外设置 */
}
.lead-form-title {
  font-size: 16px; font-weight: 700; color: #1A1A1A;
  line-height: 1.4;
  margin-bottom: 4px;
}
.lead-form-subtitle {
  font-size: 12px; color: #999;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #F0F0F0;
}
.lead-form-body { /* 利用卡片自身的 padding */ }
.ke-lead-form-block .form-item { margin-bottom: 16px; }

/* 标签 */
.lead-label {
  display: block; font-size: 13px; font-weight: 500; color: #333;
  margin-bottom: 8px;
}

.lead-mobile {
  width: 100%; height: 44px; padding: 0 12px;
  border: 1px solid #E0E6EF; border-radius: 6px; font-size: 14px;
  color: #1A1A1A; box-sizing: border-box; outline: none;
  background: #fff; transition: border-color 150ms, box-shadow 150ms;
}
.lead-mobile:focus {
  border-color: #387FFC;
  box-shadow: 0 0 0 3px rgba(56,127,252,0.12);
}
.lead-mobile::placeholder { color: #C0C4CC; }
.lead-mobile.filled { color: #333; }

.lead-submit-btn {
  width: 100%; height: 46px;
  background: linear-gradient(135deg, #387FFC, #5B8EFC);
  color: #fff; border: none; border-radius: 6px;
  font-size: 16px; font-weight: 600; cursor: pointer;
  transition: all 200ms; letter-spacing: 2px;
}
.lead-submit-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(56,127,252,0.3);
}
.lead-submit-btn:active { transform: translateY(0); }
.lead-submit-btn:disabled {
  background: #C4C9D2; cursor: not-allowed;
  transform: none; box-shadow: none;
}
.lead-privacy {
  font-size: 12px; color: #C0C4CC; text-align: center; margin-top: 12px;
}


/* ===== 留资表单悬浮态（仅定位层叠，内部样式与静态完全一致） ===== */
.ke-lead-form-block.is-floating {
  order: 99;
  position: sticky;
  bottom: 16px;
  z-index: 100;
  box-shadow: 0 12px 48px rgba(0,0,0,0.18);
  animation: leadFloatIn 350ms cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes leadFloatIn {
  from { opacity: 0; transform: translateY(24px) scale(0.92); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== 点击CTA按钮高亮（用 transition 避免干扰悬浮态的 animation） ===== */
.ke-sidebar-card.is-highlight,
.ke-lead-form-block.is-floating.is-highlight {
  box-shadow: 0 0 0 8px rgba(56,127,252,0.18) !important;
  transition: box-shadow 400ms ease;
}

/* ===== 下方内容 ===== */
.ke-section {
  background: #fff; border-radius: 8px; padding: 24px;
  margin-bottom: 24px; box-shadow: 0 6px 22px 0 rgba(169,169,169,0.2);
}
.ke-section-title {
  font-size: 18px; font-weight: 700; color: #1A1A1A;
  padding-bottom: 12px; border-bottom: 1px solid #EEE; margin: 0 0 24px 0;
}
.detail-html { font-size: 14px; line-height: 1.75; color: #333; }
.detail-html p { margin-bottom: 12px; }
.detail-html img { max-width: 100%; height: auto; border-radius: 4px; }

/* ===== 重复 CTA ===== */
.ke-cta-repeat {
  background: #F0F7FF; border-radius: 8px; padding: 24px;
  margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between;
}
.ke-cta-repeat .cta-text { font-size: 16px; color: #333; }
.ke-cta-repeat .cta-btns { display: flex; gap: 8px; flex-shrink: 0; }

/* ===== 热门课程 ===== */
.hot-courses-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.hot-course-card {
  display: block; background: #fff; border-radius: 8px; overflow: hidden;
  text-decoration: none; border: 1px solid #F0F0F0;
  transition: box-shadow 250ms, transform 250ms;
}
.hot-course-card:hover {
  box-shadow: 0 8px 30px 0 rgba(169,169,169,0.28);
  transform: translateY(-2px);
}
.hot-course-card img { width: 100%; aspect-ratio: 493/281; object-fit: cover; }
.hot-course-card .title {
  display: block; font-size: 14px; font-weight: 600; color: #333;
  padding: 8px 12px; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.hot-course-card:hover .title { color: #387FFC; }

/* ===== 考试资讯 ===== */
.exam-news-list .news-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid #F0F0F0; text-decoration: none;
}
.exam-news-list .news-item:last-child { border-bottom: none; padding-bottom: 0; }
.exam-news-list .news-item:first-child { padding-top: 0; }
.exam-news-list .news-item .news-thumb {
  width: 110px; flex-shrink: 0; border-radius: 4px;
  background: #F5F5F5; overflow: hidden;
}
.exam-news-list .news-item .news-thumb img {
  width: 100%; height: auto; display: block;
}
.exam-news-list .news-item .news-info {
  flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center;
}
.exam-news-list .news-item .news-info .title {
  font-size: 13px; color: #333; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: 6px;
}
.exam-news-list .news-item:hover .news-info .title { color: #387FFC; }
.exam-news-list .news-item .news-info .time {
  font-size: 12px; color: #999;
}

/* ===== 内联 SVG 图标 ===== */
.icon-svg {
  flex-shrink: 0;
}
/* 非 flex 容器的图标间距 */
.lead-privacy .icon-svg {
  margin-right: 3px;
}

/* ===== 特色服务标签 ===== */
.course-specials {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.course-specials .tag-special {
  padding: 3px 12px;
  border: 1px solid #fa8c16;
  border-radius: 9999px;
  font-size: 12px;
  color: #fa8c16;
  background: #fff7e6;
}

/* ===== meta同行样式 ===== */
.course-meta-inline {
  display: flex;
  flex-direction: row;
  gap: 24px;
  margin-bottom: 16px;
}
.course-meta-inline .meta-item {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #555;
}
.course-meta-inline .meta-item .key { color: #7F7F7F; width: 80px; flex-shrink: 0; }
.course-meta-inline .meta-item .value { color: #333; }
.course-meta-inline .meta-sep { color: #CCC; }

/* ===== 课程说明区块 ===== */
.ke-course-info {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 6px 22px 0 rgba(169,169,169,0.2);
}
.ke-course-info-title {
  font-size: 18px;
  font-weight: 700;
  color: #1A1A1A;
  padding-bottom: 12px;
  border-bottom: 1px solid #EEE;
  margin: 0 0 16px 0;
}
.ke-course-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 32px;
}
.ke-course-info-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.ke-course-info-item .info-label {
  font-size: 14px;
  color: #7F7F7F;
  flex-shrink: 0;
  white-space: nowrap;
}
.ke-course-info-item .info-value {
  font-size: 14px;
  color: #333;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
/* 课程说明 - 服务保障对勾标签 */
.ke-course-info-item .info-tag-check {
  font-size: 14px;
  color: #333;
  margin-right: 20px;
}
.ke-course-info-item .info-tag-check .info-tag-icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 6px;
  margin-top: -2px;
}

/* 课程说明 - 适合人群圆点标签 */
.ke-course-info-item .info-tag-dot {
  font-size: 14px;
  color: #333;
  margin-right: 20px;
}
.ke-course-info-item .info-tag-dot::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #52c41a;
  margin-right: 6px;
  vertical-align: middle;
  margin-top: -2px;
}

/* ===== 机构信息推荐指数/分校/介绍 ===== */
.ke-institution-block .inst-stars {
  font-size: 14px;
  color: #666;
  display: flex; align-items: center; gap: 4px;
}
.ke-institution-block .inst-stars .star-icon {
  color: #ffc107;
  letter-spacing: 2px;
  font-size: 14px;
}
.ke-institution-block .inst-branch {
  font-size: 14px;
  color: #666;
}
.ke-institution-block .inst-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.75;
  padding-top: 12px;
  border-top: 1px solid #F0F0F0;
}

/* ===== CTA按钮缩小 ===== */
.btns .btn2, .btns .btn1 { height: 36px; line-height: 36px; font-size: 14px; padding: 0 20px; }

/* ===== 推荐课程（右侧栏） ===== */
.recommend-course-list {
  display: flex;
  flex-direction: column;
}
.recommend-course-item {
  display: flex;
  gap: 12px;
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid #F0F0F0;
}
.recommend-course-item:last-child { border-bottom: none; padding-bottom: 0; }
.recommend-course-item:first-child { padding-top: 0; }
.recommend-course-item img {
  width: 96px;
  height: 55px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  background: #F5F5F5;
}
.recommend-course-item .info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
}
.recommend-course-item .info .title {
  font-size: 13px;
  color: #333;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 500;
}
.recommend-course-item:hover .info .title { color: #387FFC; }
.recommend-course-item .info .price {
  font-size: 13px;
  color: #E85307;
  font-weight: 600;
}
