/* ========================================
   张学教育官网 - 项目详情页（学历提升/资格证通用）
   ======================================== */

.detail-page {
  width: 100%;
  padding-bottom: 60px;
}

.detail-hero {
  background: linear-gradient(135deg, #014DB2 0%, #001B4D 100%);
  padding: 80px 0 50px;
  text-align: center;
  color: #fff;
}

.detail-hero__container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 40px;
}

.detail-hero__tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  backdrop-filter: blur(4px);
}

.detail-hero__title {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.detail-hero__slogan {
  font-size: 18px;
  opacity: 0.85;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* 属性标签行 */
.detail-attrs {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.detail-attr {
  display: inline-block;
  padding: 7px 20px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  font-size: 14px;
  color: rgba(255,255,255,0.95);
  font-weight: 500;
}

/* 内容容器 — 左右分栏布局 */
.detail-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 40px 0;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 420px);
  gap: 48px;
  align-items: start;
}

/* 左侧文字区 */
.detail-section__left {
  min-width: 0;
}

.detail-section__block {
  margin-bottom: 44px;
}

.detail-section__heading {
  font-size: 24px;
  font-weight: 700;
  color: #0A1628;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-section__heading::before {
  content: '';
  width: 4px;
  height: 24px;
  background: #014DB2;
  border-radius: 2px;
  display: inline-block;
}

.detail-section__sub {
  font-size: 15px;
  color: #6B7280;
  line-height: 1.7;
  margin-top: 10px;
}

/* 列表样式 */
.detail-list {
  list-style: none;
  padding: 0;
  margin-top: 16px;
}

.detail-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  font-size: 15px;
  color: #374151;
  line-height: 1.65;
  border-bottom: 1px solid #F3F4F6;
}

.detail-list li:last-child {
  border-bottom: none;
}

.detail-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 10px;
  width: 20px;
  height: 20px;
  background: #E8F0FE;
  color: #014DB2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

/* 流程步骤 */
.detail-process {
  counter-reset: step;
  display: grid;
  gap: 0;
  margin-top: 20px;
  position: relative;
  padding-left: 32px;
}

.detail-process::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: #E5E7EB;
}

.detail-process__item {
  position: relative;
  padding: 16px 0 16px 30px;
  counter-increment: step;
}

.detail-process__item::before {
  content: counter(step);
  position: absolute;
  left: -22px;
  top: 14px;
  width: 28px;
  height: 28px;
  background: #014DB2;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  z-index: 1;
}

.detail-process__text {
  font-size: 15px;
  color: #374151;
  line-height: 1.6;
}

/* 优势卡片 */
.detail-advantages {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.detail-adv-card {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  padding: 22px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.detail-adv-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(1,77,178,0.08);
}

.detail-adv-card__icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #014DB2, #0066FF);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
}

.detail-adv-card__text {
  font-size: 14px;
  color: #374151;
  line-height: 1.6;
}

/* 底部 CTA */
.detail-cta {
  max-width: 960px;
  margin: 56px auto 0;
  padding: 52px 40px;
  background: linear-gradient(135deg, #014DB2 0%, #001B4D 100%);
  border-radius: 20px;
  text-align: center;
  color: #fff;
}

.detail-cta__text {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.4;
}

.detail-cta__btn {
  display: inline-block;
  padding: 14px 42px;
  background: #F59E0B;
  color: #0A1628;
  font-size: 16px;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.detail-cta__btn:hover {
  background: #D97706;
  transform: scale(1.03);
}

/* 加载态 */
.detail-loading {
  text-align: center;
  padding: 100px 20px;
  color: #9CA3AF;
  font-size: 16px;
}

/* 相关推荐（底部） */
.detail-related {
  max-width: 960px;
  margin: 60px auto 0;
  padding: 0 40px;
}

.detail-related__title {
  font-size: 22px;
  font-weight: 700;
  color: #0A1628;
  margin-bottom: 20px;
  text-align: center;
}

.detail-related__cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.detail-related__card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  padding: 20px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.detail-related__card:hover {
  border-color: #014DB2;
  box-shadow: 0 6px 20px rgba(1,77,178,0.08);
  transform: translateY(-2px);
}

.detail-related__name {
  font-size: 15px;
  font-weight: 700;
  color: #0A1628;
  margin-bottom: 6px;
}

.detail-related__desc {
  font-size: 12px;
  color: #6B7280;
  line-height: 1.5;
}

/* ========================================
   右侧图片展示区 — 主图 + 缩略图模式
   ======================================== */
.detail-gallery {
  position: sticky;
  top: 80px;
  width: 100%;
  height: fit-content;
}

/* 主图展示区 */
.gallery-main {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #F3F4F6;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 14px;
  transition: opacity 0.35s ease;
}

/* 图片计数角标 */
.gallery-counter {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 4px 10px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

/* 缩略图列表 */
.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.gallery-thumbs::-webkit-scrollbar {
  display: none;
}

/* 单个缩略图 */
.gallery-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 54px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2.5px solid transparent;
  transition: border-color 0.2s ease, transform 0.2s ease;
  background: #F3F4F6;
}

.gallery-thumb:hover {
  transform: translateY(-2px);
}

.gallery-thumb--active {
  border-color: #014DB2;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 空状态提示 */
.detail-gallery--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 300px;
  background: #F9FAFB;
  border-radius: 20px;
  border: 2px dashed #E5E7EB;
  color: #9CA3AF;
  font-size: 14px;
}

/* 响应式：窄屏时图片区下移 */
@media (max-width: 1024px) {
  .detail-section {
    grid-template-columns: 1fr;
    padding: 32px 24px 0;
  }

  .detail-gallery {
    position: static;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
  }

  .gallery-thumb {
    width: 80px;
    height: 60px;
  }
}
