/* =========================================================
   清晨教育 - 非标机械方案设计系统课 课程页样式
   蓝白色调 · 与整站风格一致 · 响应式
   ========================================================= */

/* ---------- Banner 满屏大图 ---------- */
.course-banner {
  position: relative;
  width: 100%;
  height: 450px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.course-banner-bg,
.course-banner-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.course-banner-bg img {
  object-fit: cover;
  object-position: center;
}
.course-banner-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10, 37, 64, 0.88) 0%, rgba(10, 76, 176, 0.62) 45%, rgba(11, 99, 229, 0.25) 100%);
}
.course-banner-inner {
  position: relative;
  z-index: 2;
  color: var(--white);
}
.course-banner-inner .hero-tag {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
}
.course-banner-inner h1 {
  font-size: 42px;
  line-height: 1.35;
  letter-spacing: 2px;
  margin-bottom: 16px;
  text-shadow: 0 4px 24px rgba(10, 37, 64, 0.45);
}
.course-banner-inner p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 28px;
}
.course-banner-points {
  display: grid;
  width: min(100%, 600px);
  margin: 0 0 28px;
  padding: 0;
  color: rgba(255, 255, 255, 0.9);
  list-style: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
}
.course-banner-points li {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  color: inherit;
  font-size: 18px;
  line-height: 1.6;
}
.course-banner-points svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  overflow: visible;
  color: #fff;
  fill: none;
}
.course-banner-points path {
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.course-banner-inner .hero-actions { margin-bottom: 0; }

/* ---------- 实战课程推荐 ---------- */
.course-rec-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}
.course-rec-card::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--blue), #5ea2ff);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.course-rec-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-6px); }
.course-rec-card:hover::after { transform: scaleX(1); }
.course-rec-media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  line-height: 0;
}
.course-rec-media img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.course-rec-card:hover .course-rec-media img { transform: scale(1.06); }
.course-rec-body { padding: 22px 22px 26px; }
.course-rec-body h3 {
  font-size: 19px;
  color: var(--blue-deep);
  margin-bottom: 8px;
}
.course-rec-body p {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.8;
}

/* ---------- 行业前景 ---------- */
.prospect-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.prospect-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--blue), #5ea2ff);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.prospect-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-6px); }
.prospect-card:hover::before { transform: scaleX(1); }
.prospect-num {
  font-size: 34px;
  font-weight: 800;
  color: var(--blue-light);
  -webkit-text-stroke: 1px var(--blue);
  display: block;
  margin-bottom: 12px;
}
.prospect-card h3 { font-size: 20px; color: var(--blue-deep); margin-bottom: 10px; }
.prospect-card p { font-size: 14px; color: var(--text-sub); }

/* ---------- 系统课四阶段对照表 ---------- */
.stage-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: var(--white);
  -webkit-overflow-scrolling: touch;
}
.stage-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  text-align: center;
}
.stage-table th,
.stage-table td {
  padding: 18px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  line-height: 1.8;
}
.stage-table thead th {
  background: linear-gradient(120deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  border-bottom: none;
}
.stage-table thead th:first-child {
  background: var(--blue-deep);
}
.stage-table tbody th {
  background: var(--bg-alt);
  color: var(--blue-deep);
  font-weight: 600;
  white-space: nowrap;
  width: 110px;
}
.stage-table tbody tr:last-child th,
.stage-table tbody tr:last-child td { border-bottom: none; }
.stage-table tbody tr { transition: background 0.25s ease; }
.stage-table tbody tr:hover td { background: #f2f7ff; }
.stage-table td strong { color: var(--blue); font-size: 15px; }
.stage-badge {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

/* 手机端四阶段卡片（桌面端隐藏） */
.stage-mobile-list { display: none; }
.stage-mobile-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stage-mobile-card summary {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 10px 12px;
  list-style: none;
  cursor: pointer;
}
.stage-mobile-card summary::-webkit-details-marker { display: none; }
.stage-mobile-card summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.stage-mobile-card[open] summary::after { transform: rotate(225deg); }
.stage-mobile-card summary:focus-visible {
  outline: 3px solid rgba(11, 99, 229, 0.25);
  outline-offset: -3px;
}
.stage-mobile-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
}
.stage-mobile-title { min-width: 0; }
.stage-mobile-phase {
  display: block;
  margin-bottom: 1px;
  color: var(--text-sub);
  font-size: 11px;
  line-height: 1.3;
}
.stage-mobile-title strong {
  display: block;
  overflow: hidden;
  color: var(--blue-deep);
  font-size: 15px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stage-mobile-stats {
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
  text-align: right;
  white-space: nowrap;
}
.stage-mobile-detail {
  margin: 0;
  padding: 2px 12px 12px;
  border-top: 1px dashed var(--border);
}
.stage-mobile-detail > div {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 8px;
  padding: 8px 0;
}
.stage-mobile-detail > div + div { border-top: 1px solid #eef3f9; }
.stage-mobile-detail dt {
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
}
.stage-mobile-detail dd {
  margin: 0;
  color: var(--text-sub);
  font-size: 12px;
  line-height: 1.6;
}
.stage-mobile-compensation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
.stage-mobile-salary {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.stage-mobile-role {
  color: var(--text-sub);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
}

/* 屏幕阅读器专用（SEO / 无障碍） */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1024px) {
  .course-banner { height: 400px; }
  .course-banner-inner h1 { font-size: 34px; }
}

@media (max-width: 980px) {
  /* 表格最小宽度约 900px，空间不足时改为阶段卡片 */
  .stage-table-wrap { display: none; }
  .stage-mobile-list {
    display: grid;
    gap: 10px;
  }
}

@media (max-width: 768px) {
  .course-banner { height: 340px; }
  .course-banner-inner h1 { font-size: 27px; letter-spacing: 1px; }
  .course-banner-inner p { font-size: 15px; }
  .course-banner-points li { font-size: 15px; }
  .course-banner-points svg { width: 16px; height: 16px; flex-basis: 16px; }
  .course-banner-inner .hero-tag { padding: 5px 12px; }
  .course-rec-grid { grid-template-columns: repeat(2, 1fr); }
  .prospect-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .prospect-grid .prospect-card {
    padding: 16px 12px;
  }
  .prospect-grid .prospect-card::before { transform: scaleX(1); }
  .prospect-grid .prospect-num {
    margin-bottom: 6px;
    font-size: 22px;
    line-height: 1;
  }
  .prospect-grid .prospect-card h3 {
    margin-bottom: 6px;
    font-size: 16px;
  }
  .prospect-grid .prospect-card p {
    font-size: 13px;
    line-height: 1.55;
  }

}

@media (max-width: 480px) {
  .course-banner { height: 300px; }
  .course-banner-inner h1 { font-size: 23px; }
  .course-banner-points {
    gap: 7px 14px;
    margin-bottom: 20px;
  }
  .course-banner-points li { font-size: 13px; }
  .course-banner-points svg { width: 14px; height: 14px; flex-basis: 14px; }
  .course-rec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .course-rec-card { min-width: 0; }
  .course-rec-body { padding: 12px 10px 14px; }
  .course-rec-grid .course-rec-body h3 {
    margin-bottom: 5px;
    font-size: 14px;
    line-height: 1.35;
  }
  .course-rec-grid .course-rec-body p {
    font-size: 12px;
    line-height: 1.55;
  }
}

/* ---------- 01-04 步骤卡片 ---------- */
.about-steps { align-items: stretch; }
.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.step-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--blue), #5ea2ff);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.step-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-6px); }
.step-card:hover::before { transform: scaleX(1); }
.step-num {
  font-size: 34px;
  font-weight: 800;
  color: var(--blue-light);
  -webkit-text-stroke: 1px var(--blue);
  display: block;
  margin-bottom: 12px;
}
.step-card h3 {
  font-size: 20px;
  color: var(--blue-deep);
  margin-bottom: 12px;
}
.step-card .check-list { margin-bottom: 0; }

@media (max-width: 768px) {
  .about-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .about-steps .step-card {
    min-width: 0;
    padding: 14px 12px;
  }
  .about-steps .step-card::before { transform: scaleX(1); }
  .about-steps .step-num {
    margin-bottom: 5px;
    font-size: 20px;
    line-height: 1;
  }
  .about-steps .step-card h3 {
    margin-bottom: 7px;
    font-size: 15px;
  }
  .about-steps .check-list li {
    padding-left: 16px;
    font-size: 12px;
    line-height: 1.5;
  }
}
