/*
 * =========================================================
 * 浙江工业大学 MBA/MEM 专题页 - 特殊/定制样式表 (custom.less)
 * 遵循原则：常规样式已全面使用 Tailwind 工具类在 HTML 中表达，
 * 此处仅保留复杂的深层选择器、Swiper 交互、伪元素装饰与特定字体排版。
 * =========================================================
 */
/* ---------------------------------------------------------
   [全局排版] 模块大标题双语混合排版与光标符号
   --------------------------------------------------------- */
.sec-title {
  text-align: left;
  margin-bottom: 30px;
}
.sec-title h2 {
  font-family: "SourceHanSerifCN-Bold", "Source Han Serif CN", "Noto Serif SC", "STSong", serif;
  font-weight: 700;
  font-size: 36px;
  color: #0d3cca;
  line-height: 1.2;
  letter-spacing: 0.5px;
}
.sec-title h2 em {
  font-family: inherit;
  font-style: normal;
  margin-left: 0.15em;
  font-size: 0.9em;
}
.sec-title .en {
  margin-top: 6px;
  font-family: "AGaramondPro", "Times New Roman", "SourceHanSerifCN-Bold", serif;
  font-style: italic;
  font-size: 24px;
  color: #bab9b9;
  text-transform: uppercase;
  line-height: 1.2;
  letter-spacing: 0.5px;
}
.sec-title.is-light h2 {
  color: #ffffff;
}
.sec-title.is-light .en {
  color: rgba(255, 255, 255, 0.7);
}
@media (max-width: 768px) {
  .sec-title {
    margin-bottom: 20px;
  }
  .sec-title h2 {
    font-size: 26px;
  }
  .sec-title .en {
    font-size: 13px;
  }
}
/* ---------------------------------------------------------
   [模块 02] 数据看工大 - 自定义圆点伪元素对齐
   --------------------------------------------------------- */
.part2-list {
  color: #4a4a4a;
  max-width: 1200px;
}
.part2-list li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 2px;
  text-align: justify;
}
.part2-list li::before {
  content: "·";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: #4a4a4a;
}
/* ---------------------------------------------------------
   [模块 03] 项目介绍 - 辅色浅金标题与左右图文边缘虚化渐变遮罩
   --------------------------------------------------------- */
.part3-sub-title {
  color: #ffdbb7;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.part3-sub-line {
  background: linear-gradient(90deg, rgba(255, 219, 183, 0.85) 0%, rgba(255, 219, 183, 0) 100%);
}
.part3-intro-list {
  text-align: justify;
  color: rgba(255, 255, 255, 0.95);
}
.part3-intro-list strong {
  font-weight: 700;
  color: #ffffff;
  font-size: 15px;
}
@media (min-width: 768px) {
  .part3-intro-list strong {
    font-size: 16px;
  }
}
@media (min-width: 1280px) {
  .part3-intro-list strong {
    font-size: 17px;
  }
}
/* 卡片1与卡片2图文交界处的双向平滑渐变层 */
.part3-fade-right {
  background: linear-gradient(to right, rgba(5, 51, 190, 0) 0%, #0533be 100%);
}
.part3-fade-left {
  background: linear-gradient(to left, rgba(5, 51, 190, 0) 0%, #0533be 100%);
}
/* ---------------------------------------------------------
   [模块 05] 课程体系 - 徽章衰减渐变、多列复杂表格流与轮播控制
   --------------------------------------------------------- */
.course-module-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 523px;
  min-height: 61px;
  padding: 0.5rem 1.5rem;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1.5px;
  border-radius: 4px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .course-module-badge {
    min-height: 48px;
    font-size: 16px;
  }
}
.course-module-badge.bg-badge-blue {
  background: linear-gradient(90deg, rgba(13, 60, 202, 0.05) 0%, #0d3cca 28%, #0d3cca 72%, rgba(13, 60, 202, 0.05) 100%);
}
.course-module-badge.bg-badge-orange {
  background: linear-gradient(90deg, rgba(224, 114, 25, 0.05) 0%, #e07219 28%, #e07219 72%, rgba(224, 114, 25, 0.05) 100%);
}
/* 必修模块课程专用布局：左侧1列(占1份)，右侧跨2列(占2份且通栏表头) */
.course-panel-compulsory {
  display: grid;
  grid-template-columns: 1fr 2.1fr;
  gap: 1.5rem 3rem;
}
@media (max-width: 991px) {
  .course-panel-compulsory {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
@media (max-width: 768px) {
  /* 仅左列较长的专业学位课开启一行两列，避免右侧已经分两列的选修课被二次打碎拉高 */
  .course-panel-compulsory > div:first-child ul,
  .course-panel-elective ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0.75rem;
    row-gap: 0.25rem;
  }
}
/* 方向选修课模块专用布局：严格2列并排 (左3个模块，右3个模块) */
.course-panel-elective {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 3.5rem;
  row-gap: 1.5rem;
}
@media (max-width: 768px) {
  .course-panel-elective {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 1.25rem;
  }
}
/* MEM课程体系卡片背景：忠实设计稿 background: #0d3cca, opacity: 0.06，直角无圆角 */
.mem-course-card {
  background: rgba(13, 60, 202, 0.06);
  border-radius: 0;
}
/* 课程轮播指示器与按钮：移动端隐藏方形翻页按钮，精致保留居中胶囊分页指示器 */
@media (max-width: 768px) {
  .course-nav {
    display: none !important;
  }
  .course-pagination {
    display: flex !important;
    justify-content: center;
    align-items: center;
    margin-top: 1.25rem !important;
    margin-bottom: 0.5rem;
  }
}
.course-pagination .swiper-pagination-bullet {
  width: 22px;
  height: 5px;
  border-radius: 3px;
  background: #cbd5e1;
  opacity: 1;
  transition: all 0.3s ease;
}
.course-pagination .swiper-pagination-bullet-active {
  background: #0d3cca;
  width: 32px;
}
/* 轮播翻页按钮深度定制 (Swiper 标准 DOM 覆盖) */
.course-nav .swiper-button-prev,
.reason-nav .swiper-button-prev,
.course-nav .swiper-button-next,
.reason-nav .swiper-button-next {
  position: static;
  width: 44px;
  height: 44px;
  margin: 0;
  background: #0d3cca;
  color: #ffffff;
  border-radius: 4px;
  transition: all 0.2s ease;
}
@media (max-width: 768px) {
  .course-nav .swiper-button-prev,
  .reason-nav .swiper-button-prev,
  .course-nav .swiper-button-next,
  .reason-nav .swiper-button-next {
    width: 38px;
    height: 38px;
  }
}
.course-nav .swiper-button-prev:hover,
.reason-nav .swiper-button-prev:hover,
.course-nav .swiper-button-next:hover,
.reason-nav .swiper-button-next:hover {
  opacity: 0.9;
}
.course-nav .swiper-button-next,
.reason-nav .swiper-button-next {
  background: #ffdbb7;
  color: #8c4e12;
}
.course-nav .swiper-button-next:hover,
.reason-nav .swiper-button-next:hover {
  background: #f7cb9f;
}
.course-nav .swiper-button-prev::after,
.reason-nav .swiper-button-prev::after,
.course-nav .swiper-button-next::after,
.reason-nav .swiper-button-next::after {
  font-size: 16px;
  font-weight: 700;
}
@media (max-width: 768px) {
  .course-nav .swiper-button-prev::after,
  .reason-nav .swiper-button-prev::after,
  .course-nav .swiper-button-next::after,
  .reason-nav .swiper-button-next::after {
    font-size: 14px;
  }
}
/* ---------------------------------------------------------
   [模块 06] 代表师资 - 桌面网格与移动端折叠/展开逻辑
   --------------------------------------------------------- */
.teacher-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem 0;
}
@media (max-width: 1024px) {
  .teacher-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.teacher-card {
  text-align: center;
}
.teacher-card img {
  width: 138px;
  height: 139px;
  object-fit: contain;
  display: block;
  margin: 0 auto 0.85rem;
  background: transparent;
  border: none;
  box-shadow: none;
}
.teacher-card .name {
  color: #0d3cca;
  font-weight: 700;
  margin-bottom: 0.35rem;
  font-size: 17px;
}
.teacher-card .bio {
  font-size: 13px;
  line-height: 1.75;
  color: #555555;
}
.teacher-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.5rem auto 0;
  padding: 0.6rem 2rem;
  color: #0d3cca;
  background: #eef3ff;
  border: 1px solid rgba(13, 60, 202, 0.2);
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}
.teacher-toggle-btn:hover {
  background: #e0ebff;
}
.teacher-toggle-btn .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
  font-size: 12px;
}
.teacher-toggle-btn.is-open .arrow {
  transform: rotate(180deg);
}
/* ---------------------------------------------------------
   [模块 09] 奖助体系 - 响应式加粗文字阶梯
   --------------------------------------------------------- */
.award-text-bold b {
  color: #0d3cca;
  font-weight: 700;
  font-size: 15px;
}
@media (min-width: 1024px) {
  .award-text-bold b {
    font-size: 15.5px;
  }
}
@media (min-width: 1280px) {
  .award-text-bold b {
    font-size: 16.5px;
  }
}
/* ---------------------------------------------------------
   [模块 10] 招生流程 - 步骤卡片倒角渐变边框、小三角指针及箭头
   --------------------------------------------------------- */
.process-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}
@media (max-width: 1024px) {
  .process-row {
    flex-wrap: wrap;
  }
}
.process-step {
  flex: 1;
  text-align: center;
}
@media (max-width: 1024px) {
  .process-step {
    flex: 1 1 42%;
  }
}
@media (max-width: 768px) {
  .process-step {
    flex: 1 1 100%;
  }
}
.process-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 1.25rem;
  background: #0d3cca;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(13, 60, 202, 0.25);
}
.process-icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.process-card {
  position: relative;
  background-image: linear-gradient(180deg, #ffffff 0%, #f4f5f9 100%);
  border-style: solid;
  border-width: 1px;
  border-image-source: linear-gradient(0deg, #0d3cca 0%, #3377f4 100%);
  border-image-slice: 1;
  padding: 1.5rem 1rem 1.25rem;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(13, 60, 202, 0.04);
  /* 顶部小三角气泡指示器 */
}
.process-card::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-top: 1px solid #2e71f0;
  border-left: 1px solid #2e71f0;
  z-index: 2;
}
.process-card h3 {
  color: #0d3cca;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 16px;
}
.process-card p {
  font-size: 13px;
  color: #555555;
  line-height: 1.6;
}
.process-arrow {
  width: 28px;
  height: 88px;
  flex-shrink: 0;
  position: relative;
}
.process-arrow::after {
  content: "";
  position: absolute;
  top: 36px;
  left: 6px;
  width: 12px;
  height: 12px;
  border-right: 2px solid #8eacf0;
  transform: rotate(45deg);
}
@media (max-width: 1024px) {
  .process-arrow {
    display: none;
  }
}
/* ---------------------------------------------------------
   [模块 11] 十大理由 - 纯文字精致商务卡片轮播
   --------------------------------------------------------- */
#reasonSwiper {
  overflow: hidden;
  padding: 10px 4px 20px;
}
#reasonSwiper .swiper-slide {
  position: relative;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: #0d3cca;
  border-radius: 16px;
  padding: 32px 28px 34px;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(13, 60, 202, 0.16);
  box-sizing: border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.35s ease;
  /* 内部文字排版：纯文字容器，占满 slide */
}
#reasonSwiper .swiper-slide:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(13, 60, 202, 0.24);
}
#reasonSwiper .swiper-slide .copy {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
#reasonSwiper .swiper-slide .copy h3 {
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
#reasonSwiper .swiper-slide .copy p {
  font-size: 14.5px;
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0;
  text-align: justify;
  letter-spacing: 0.15px;
}
/* 十大理由数字圆圈分页器定制 */
.reason-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  margin-top: 2rem;
}
.reason-pagination .swiper-pagination-bullet {
  width: 28px;
  height: 28px;
  background: transparent;
  opacity: 1;
  color: #64748b;
  font-size: 14px;
  line-height: 28px;
  text-align: center;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}
.reason-pagination .swiper-pagination-bullet:hover {
  color: #0d3cca;
}
.reason-pagination .swiper-pagination-bullet-active {
  background: #0d3cca;
  color: #ffffff;
  font-weight: 700;
}
/* ---------------------------------------------------------
   [模块 12] 底部二维码尺寸微调
   --------------------------------------------------------- */
.contact-footer .qr-item img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  background: #ffffff;
  padding: 4px;
}
/* ---------------------------------------------------------
   [移动端特别适配 (<= 768px)]
   --------------------------------------------------------- */
@media (max-width: 768px) {
  /* 模块06 代表师资：移动端去卡片化底色、加精致虚线，并限制前4个显示 */
  .teacher-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .teacher-grid:not(.is-expanded) .teacher-card:nth-child(n + 5) {
    display: none !important;
  }
  .teacher-grid:not(.is-expanded) .teacher-card:nth-child(4) {
    border-bottom: none;
  }
  .teacher-card {
    display: flex;
    align-items: center;
    text-align: left;
    background: transparent;
    padding: 0.85rem 0;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px dashed #e0e7f5;
  }
  .teacher-card:last-child {
    border-bottom: none;
  }
  .teacher-card img {
    width: 86px;
    height: 86px;
    flex-shrink: 0;
    margin: 0 1rem 0 0;
  }
  .teacher-card .teacher-info {
    flex: 1;
    min-width: 0;
  }
  .teacher-card .name {
    font-size: 16px;
    margin-bottom: 0.25rem;
  }
  .teacher-card .bio {
    font-size: 11px;
    line-height: 1.5;
    color: #666666;
  }
  .teacher-toggle-btn {
    display: inline-flex;
    padding: 0.35rem 1.25rem;
    font-size: 12px;
    margin: 1rem auto 0;
    gap: 0.35rem;
  }
  .teacher-toggle-btn .arrow {
    font-size: 10px;
  }
  .reason-pagination {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 1rem;
    padding: 0 4px;
  }
  .reason-pagination .swiper-pagination-bullet {
    width: 24px;
    height: 24px;
    line-height: 24px;
    font-size: 12px;
    flex-shrink: 0;
  }
  /* 模块10 招生流程：移动端从上下居中堆叠优化为紧凑优雅的垂直时间轴/左图右文卡片 */
  .process-row {
    flex-direction: column;
    gap: 1.25rem;
  }
  .process-step {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 0.85rem;
    width: 100%;
    position: relative;
    /* 连接线：连接各个步骤 */
  }
  .process-step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 25px;
    top: 56px;
    bottom: -16px;
    width: 2px;
    background: linear-gradient(180deg, rgba(13, 60, 202, 0.4) 0%, rgba(13, 60, 202, 0.1) 100%);
    z-index: 1;
  }
  .process-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    margin: 2px 0 0 0;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(13, 60, 202, 0.22);
  }
  .process-icon img {
    width: 26px;
    height: 26px;
  }
  .process-card {
    flex: 1;
    min-width: 0;
    min-height: auto;
    padding: 0.85rem 1rem;
    border-radius: 6px;
    /* 指针从正上方改为指向左侧图标 */
  }
  .process-card::before {
    top: 20px;
    left: -8px;
    transform: rotate(-45deg);
    border-top: 1px solid #2e71f0;
    border-left: 1px solid #2e71f0;
  }
  .process-card h3 {
    font-size: 14px;
    margin-bottom: 0.25rem;
  }
  .process-card p {
    font-size: 11.5px;
    line-height: 1.5;
  }
  .contact-footer .qr-item img {
    width: 88px;
    height: 88px;
  }
  /* 模块11 十大理由：小屏幕边距与通透留白适配 */
  #part11 {
    padding-top: 2.2rem;
    padding-bottom: 2.5rem;
  }
  #part11 .sec-title {
    margin-bottom: 1.5rem;
  }
  #reasonSwiper {
    padding: 6px 4px 16px;
    margin-bottom: 0.5rem;
  }
  #reasonSwiper .swiper-slide {
    width: auto;
    border-radius: 16px;
    overflow: hidden;
    background: #0d3cca;
    padding: 24px 20px 26px;
  }
  #reasonSwiper .swiper-slide .copy {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }
  #reasonSwiper .swiper-slide .copy h3 {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
  }
  #reasonSwiper .swiper-slide .copy p {
    font-size: 13.5px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.95);
    text-align: justify;
  }
  .reason-pagination {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 1.6rem;
    padding: 0 4px;
  }
  .reason-pagination .swiper-pagination-bullet {
    width: 26px;
    height: 26px;
    line-height: 26px;
    font-size: 12px;
    flex-shrink: 0;
  }
}
