/*
Theme Name: 名校志向塾（mingxiaozxs）
Theme URI: https://www.mingxiaozxs.com
Author: 名校志向塾 IT部
Author URI: https://www.mingxiaozxs.com
Description: 名校志向塾国内品牌站经典主题（Classic Theme）。基于原 mingxiaozxs.com（ThinkPHP8）前端源码手动拆解：CSS/JS/图片完整沿用，首页轮播与合格实绩数字后台可改，最新动态/学员心声/名校资讯、讲师（lecturer）、课程（course）、合格实绩（success_case）为动态内容，校区页面由 page-campus.php 承载。ACF 可选，未安装时用主题原生字段面板维护。
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: mingxiaozxs
Tags: classic-theme, education, bootstrap
*/

/* 主题全部样式位于 assets/css/main.css（由 functions.php 挂载），
   本文件仅保留 WordPress 主题识别头信息与少量主题级补充样式。 */

/* 全国及海外校区聚合入口（页脚） */
.campuses-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 1.6rem;
}
.campuses-label {
  color: #ffb15e;
  margin-right: 10px;
  font-weight: bold;
}
.campuses-row .campus-link {
  color: #fff;
  padding: 0 8px;
  line-height: 2.6rem;
}
.campuses-row .campus-link:hover {
  color: #ffb15e;
  text-decoration: none;
}
.campuses-row .campus-tag {
  font-size: 1.2rem;
  color: #6085c8;
  padding-left: 2px;
}
.campuses-row .campus-plain {
  padding: 0 8px;
  color: #c9d4e6;
  line-height: 2.6rem;
}

/* 列表/详情兜底：无特色图片时使用占位 */
.mxs-no-thumb {
  background: #eef2f8 center center no-repeat;
  min-height: 120px;
}

/* =========================================================================
   交付方式徽标：区分「国内开设 / 国内衔接 / 赴日后 / 线上」
   配色偏克制，避免抢课程标题的视觉权重
   ========================================================================= */
.mxs-badge {
  display: inline-block;
  font-size: 1.2rem;
  line-height: 1.9rem;
  padding: 0 8px;
  border-radius: 2px;
  border: 1px solid transparent;
  margin-left: 4px;
  vertical-align: middle;
  white-space: nowrap;
}
.mxs-badge-cn {
  color: #1f7a45;
  background: #eaf7f0;
  border-color: #b7e2c8;
}
.mxs-badge-cn-jp {
  color: #2a5aa0;
  background: #eaf1fb;
  border-color: #c2d5ef;
}
.mxs-badge-jp {
  color: #777;
  background: #f2f2f2;
  border-color: #e0e0e0;
}
.mxs-badge-online {
  color: #b5651d;
  background: #fff3e6;
  border-color: #f6d6b3;
}

/* 卡片内徽标换行占位，避免挤压标题 */
.meko-news-tags .mxs-badge {
  margin-left: 0;
  margin-right: 6px;
}

/* =========================================================================
   校区教学点卡片（北京可多条，西安一条）
   ========================================================================= */
.mxs-venue-card {
  border: 1px solid #e3eaf4;
  background: #fff;
  padding: 16px 18px;
  margin-bottom: 15px;
  height: 100%;
  border-radius: 3px;
}
.mxs-venue-card:hover {
  border-color: #c2d5ef;
  box-shadow: 0 2px 10px rgba(40, 65, 112, 0.08);
}
.mxs-venue-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.mxs-venue-name {
  font-size: 1.7rem;
  color: #284170;
  font-weight: bold;
  margin-right: 8px;
}
.mxs-venue-type {
  font-size: 1.2rem;
  color: #fff;
  background: #6085c8;
  padding: 1px 8px;
  border-radius: 2px;
}
.mxs-venue-type.is-consult {
  background: #ffb15e;
  color: #7a4a10;
}
.mxs-venue-line {
  font-size: 1.4rem;
  color: #555;
  line-height: 2.2rem;
}
.mxs-venue-line b {
  color: #284170;
  font-weight: normal;
  display: inline-block;
  min-width: 56px;
}

/* =========================================================================
   校区「联系与到校」信息栅格 + 交通指引
   ========================================================================= */
.mxs-contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.mxs-contact-cell {
  flex: 1 1 220px;
  min-width: 0;
  background: #f7fafe;
  border: 1px solid #e3eaf4;
  border-top: 3px solid #6085c8;
  border-radius: 3px;
  padding: 14px 16px;
}
.mxs-contact-label {
  font-size: 1.3rem;
  color: #7b879c;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.mxs-contact-value {
  font-size: 1.7rem;
  color: #284170;
  font-weight: bold;
  line-height: 2.4rem;
  word-break: break-word;
}
.mxs-contact-value a {
  color: #284170;
}
.mxs-contact-value a:hover {
  color: #e08c2c;
}
.mxs-contact-addr {
  font-size: 1.45rem;
  line-height: 2.2rem;
  font-weight: normal;
}
.mxs-contact-hint {
  font-size: 1.2rem;
  color: #8b94a6;
  line-height: 1.9rem;
  margin-top: 6px;
}
.mxs-contact-btn {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: normal;
  line-height: 3.2rem;
  padding: 0 20px;
  border-radius: 2px;
  cursor: pointer;
  background: #ffb15e;
  color: #fff;
  border-bottom: 2px solid #e29a49;
  text-align: center;
}
.mxs-contact-btn:hover {
  background: #ffa845;
  color: #fff;
}
.mxs-map-line {
  margin-top: 10px;
  font-size: 1.4rem;
}
.mxs-map-line a {
  color: #6085c8;
}
.mxs-transit-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e3eaf4;
}
.mxs-transit-table th {
  width: 82px;
  text-align: center;
  vertical-align: middle;
  font-weight: normal;
  font-size: 1.4rem;
  color: #284170;
  background: #f2f6fc;
  border-bottom: 1px solid #e3eaf4;
  padding: 10px 8px;
}
.mxs-transit-table td {
  font-size: 1.4rem;
  color: #555;
  line-height: 2.2rem;
  border-bottom: 1px solid #eef3fa;
  padding: 10px 14px;
}
.mxs-transit-table tr:last-child th,
.mxs-transit-table tr:last-child td {
  border-bottom: 0;
}
.mxs-transit-note {
  margin-top: 8px;
  font-size: 1.3rem;
  color: #8b94a6;
  line-height: 2rem;
}

/* 白底正文里的文字链接：.a-link 是白字（给深色底用的），这里单独给色 */
.mxs-txt-link {
  color: #284170;
}
.mxs-txt-link:hover,
.mxs-txt-link:focus,
.mxs-txt-link:visited {
  color: #c07f22;
}
@media (max-width: 767px) {
  .mxs-contact-cell {
    flex: 1 1 100%;
  }
  .mxs-transit-table th {
    width: 64px;
    font-size: 1.3rem;
  }
  .mxs-transit-table td {
    padding: 10px 10px;
  }
}

/* =========================================================================
   国内备考 → 赴日后衔接 路径图
   ========================================================================= */
.mxs-path {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  /* 显式给宽度：auto 在本主题的容器里会被算成 0，导致三列被压成竖条 */
  width: 100%;
  margin-top: 12px;
}
.mxs-path-step {
  flex: 1 1 0;
  /* 不设最小宽度：窄容器里允许收缩，否则三列并排会把页面撑出横向滚动 */
  min-width: 0;
  position: relative;
  background: #f5f8fd;
  border: 1px solid #e3eaf4;
  border-radius: 3px;
  padding: 14px 16px;
  margin: 0 22px 10px 0;
}
.mxs-path-step:last-child {
  margin-right: 0;
}
.mxs-path-step:after {
  content: "";
  position: absolute;
  right: -16px;
  top: 50%;
  margin-top: -6px;
  border-left: 10px solid #c2d5ef;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.mxs-path-step:last-child:after {
  display: none;
}
.mxs-path-stage {
  font-size: 1.6rem;
  color: #284170;
  font-weight: bold;
}
.mxs-path-place {
  display: inline-block;
  font-size: 1.2rem;
  color: #6085c8;
  border: 1px solid #c2d5ef;
  border-radius: 2px;
  padding: 0 6px;
  margin-left: 6px;
  vertical-align: middle;
}
.mxs-path-place.is-jp {
  color: #b5651d;
  border-color: #f6d6b3;
}
.mxs-path-desc {
  font-size: 1.3rem;
  color: #666;
  line-height: 2rem;
  margin-top: 6px;
}

/* =========================================================================
   品牌信任层：数字条 + 沿革时间线
   ========================================================================= */
.mxs-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  border-top: 1px solid #e3eaf4;
  border-bottom: 1px solid #e3eaf4;
  padding: 18px 0;
  margin: 20px 0;
}
.mxs-stat {
  flex: 1 1 0;
  min-width: 140px;
  text-align: center;
  border-right: 1px solid #e3eaf4;
}
.mxs-stat:last-child {
  border-right: 0;
}
.mxs-stat-num {
  font-size: 3rem;
  color: #284170;
  font-weight: bold;
  line-height: 3.4rem;
}
.mxs-stat-label {
  font-size: 1.3rem;
  color: #888;
}

.mxs-timeline {
  position: relative;
  margin: 20px 0 0 0;
  padding-left: 26px;
  border-left: 2px solid #e3eaf4;
}
.mxs-timeline-item {
  position: relative;
  padding: 0 0 22px 0;
}
.mxs-timeline-item:before {
  content: "";
  position: absolute;
  left: -33px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6085c8;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #c2d5ef;
}
.mxs-timeline-item.is-cn:before {
  background: #ffb15e;
  box-shadow: 0 0 0 2px #f6d6b3;
}
.mxs-timeline-year {
  font-size: 1.8rem;
  color: #284170;
  font-weight: bold;
  margin-right: 10px;
}
.mxs-timeline-title {
  font-size: 1.5rem;
  color: #333;
  font-weight: bold;
}
.mxs-timeline-desc {
  font-size: 1.4rem;
  color: #666;
  line-height: 2.2rem;
  margin-top: 4px;
}

/* =========================================================================
   全国校区聚合页
   ========================================================================= */
.mxs-campus-cards {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -8px;
}
.mxs-campus-card {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0 8px;
  margin-bottom: 16px;
  box-sizing: border-box;
}
@media (max-width: 767px) {
  .mxs-campus-card {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .mxs-path {
    display: block;
  }
  .mxs-path-step {
    width: 100%;
    margin-right: 0;
    margin-bottom: 10px;
  }
  .mxs-path-step:after {
    display: none;
  }
  .mxs-stat {
    flex: 0 0 50%;
    max-width: 50%;
    margin-bottom: 12px;
    border-right: 0;
  }
}
.mxs-campus-card-inner {
  border: 1px solid #e3eaf4;
  background: #fff;
  padding: 18px;
  height: 100%;
  border-radius: 3px;
}
.mxs-campus-card-inner:hover {
  border-color: #c2d5ef;
  box-shadow: 0 2px 10px rgba(40, 65, 112, 0.08);
}
.mxs-campus-city {
  font-size: 2rem;
  color: #284170;
  font-weight: bold;
}
.mxs-campus-tagline {
  font-size: 1.3rem;
  color: #ffb15e;
  margin-left: 8px;
}
.mxs-campus-addr {
  font-size: 1.4rem;
  color: #666;
  line-height: 2.2rem;
  margin-top: 8px;
}
.mxs-network-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 10px -6px 0;
}
.mxs-network-item {
  flex: 0 0 25%;
  max-width: 25%;
  padding: 0 6px;
  margin-bottom: 12px;
  box-sizing: border-box;
}
@media (max-width: 991px) {
  .mxs-network-item {
    flex: 0 0 50%;
    max-width: 50%;
  }
}
.mxs-network-inner {
  border: 1px solid #e9eef6;
  background: #fafcff;
  padding: 12px 14px;
  border-radius: 3px;
  text-align: center;
}
.mxs-network-city {
  font-size: 1.6rem;
  color: #284170;
  font-weight: bold;
}
.mxs-network-note {
  font-size: 1.2rem;
  color: #999;
  margin-top: 2px;
}

/* 顶部「日本总部官网」入口：显著但不抢国内站点主体 */
.top-jp-link {
  display: inline-block;
  font-size: 1.3rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 2px;
  padding: 2px 10px;
  margin-top: 6px;
}
.top-jp-link:hover,
.top-jp-link:focus {
  color: #ffb15e;
  border-color: #ffb15e;
  text-decoration: none;
}

/* 合格实绩列表（page-success-case.php） */
.mxs-success-filter {
  margin: 10px 0 0;
}
.mxs-success-filter .btn {
  margin: 3px;
  border-radius: 3px;
}
.mxs-success-table th {
  background: #f2f6fb;
  text-align: center;
}
.mxs-success-table td {
  vertical-align: middle;
}
.mxs-success-table td:first-child,
.mxs-success-table td:nth-child(2),
.mxs-success-table td:last-child {
  text-align: center;
}

/* =========================================================================
   资讯卡片（首页「名校资讯」、校区页课程卡、课程归档）
   说明：原模板只输出标记、缺这一段样式，图片按原始尺寸渲染会撑破栅格，
   视觉上像被拉变形。这里统一用固定比例容器 + object-fit: cover 裁切。
   ========================================================================= */
.meko-news-item {
  margin-bottom: 20px;
}
.meko-news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 4px;
  overflow: hidden;
  -webkit-transition: box-shadow 0.25s ease, transform 0.25s ease;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.meko-news-card:hover {
  box-shadow: 0 8px 24px rgba(40, 65, 112, 0.12);
  -webkit-transform: translateY(-2px);
  transform: translateY(-2px);
}
/* 固定 5:3 比例，图片以 cover 方式裁切，任何原始尺寸都不会变形 */
.meko-news-img {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 60%;
  background: #eef2f8;
  overflow: hidden;
}
.meko-news-img > a {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.meko-news-img img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  object-position: center center;
}
.meko-news-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 12px 14px 14px;
}
.meko-news-tags {
  margin-bottom: 6px;
  font-size: 1.2rem;
  line-height: 2rem;
  color: #284170;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.meko-news-cate {
  display: inline-block;
  padding: 0 8px;
  margin-right: 6px;
  background: #eef3fb;
  color: #284170;
  border-radius: 2px;
  font-size: 1.2rem;
  line-height: 2rem;
  vertical-align: middle;
}
.meko-news-sub {
  color: #9aa5b5;
  font-size: 1.2rem;
  vertical-align: middle;
}
.meko-news-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  height: 4.8rem;
  margin-bottom: 6px;
  overflow: hidden;
  color: #222;
  font-size: 1.6rem;
  font-weight: bold;
  line-height: 2.4rem;
  text-align: justify;
}
.meko-news-desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  height: 6rem;
  overflow: hidden;
  margin-bottom: 0;
  color: #888;
  font-size: 1.3rem;
  line-height: 2rem;
  text-align: justify;
}
.meko-news-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #f1f4f8;
  color: #9aa5b5;
  font-size: 1.2rem;
}
.meko-news-date {
  display: inline-flex;
  align-items: center;
}
.meko-news-more {
  color: #284170;
  font-size: 1.2rem;
}
.meko-news-more:hover {
  color: #ff8c1a;
  text-decoration: none;
}
.meko-news-card a:hover {
  text-decoration: none;
}

/* =========================================================================
   首页「最新动态 / 学员心声」首图
   原图是原站大图，容器只有 3/12 栅格宽，不限尺寸会溢出压住右侧文字
   ========================================================================= */
.index-news-featured > a {
  display: block;
  overflow: hidden;
  border-radius: 3px;
}
.index-news-featured img {
  display: block;
  width: 100% !important;
  height: 108px !important;
  object-fit: cover;
  object-position: center center;
}
@media (max-width: 767px) {
  .meko-news-img {
    padding-bottom: 56%;
  }
  .meko-news-title {
    height: 4.4rem;
    font-size: 1.5rem;
    line-height: 2.2rem;
  }
  .meko-news-desc {
    height: auto;
    max-height: 5.4rem;
    -webkit-line-clamp: 3;
  }
  .index-news-featured img {
    height: 82px !important;
  }
}

/* ===== 在线咨询：浮动入口 + 微信活码弹层 ===== */
.mxs-consult-fab {
  position: fixed;
  right: 18px;
  bottom: 92px;
  z-index: 9990;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 17px 11px 13px;
  border: 0;
  border-radius: 999px;
  background: #6085c8;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 1px;
  color: #fff;
  box-shadow: 0 8px 22px rgba(48, 84, 150, 0.32);
  cursor: pointer;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s, opacity 0.2s, visibility 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.mxs-consult-fab svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
  flex: 0 0 auto;
}
.mxs-consult-fab:hover {
  background: #4c72b8;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(48, 84, 150, 0.4);
  color: #fff;
  text-decoration: none;
}
.mxs-consult-fab:focus {
  outline: none;
  color: #fff;
}
.mxs-consult-fab:focus-visible {
  outline: 2px solid #ffb15e;
  outline-offset: 3px;
}
/* 移动端滚到页脚时收起，避免压住电话 / 版权行 */
.mxs-consult-fab.is-docked {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
}
/* 旧商桥按钮（.open_shangqiao）现在由站内弹层接管 */
.open_shangqiao,
.mxs-wecom-trigger,
.mxs-enroll-trigger {
  cursor: pointer;
}
html.mxs-qr-open .mxs-consult-fab,
html.mxs-enroll-open .mxs-consult-fab {
  display: none;
}
@media (max-width: 768px) {
  .mxs-consult-fab {
    right: 12px;
    bottom: 74px;
    padding: 10px 15px 10px 12px;
    font-size: 13px;
  }
  .mxs-consult-fab svg {
    width: 17px;
    height: 17px;
  }
}

.mxs-qr-modal {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100000;
  display: none;
}
.mxs-qr-modal.is-open {
  display: block;
}
.mxs-qr-modal.is-open .mxs-qr-mask {
  animation: mxs-qr-fade 0.18s ease both;
}
.mxs-qr-modal.is-open .mxs-qr-dialog {
  animation: mxs-qr-pop 0.22s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}
@keyframes mxs-qr-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes mxs-qr-pop {
  from { opacity: 0; transform: translate(-50%, -47%) scale(0.96); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.mxs-qr-mask {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.62);
}
.mxs-qr-dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 340px;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 26px 24px 20px;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  text-align: center;
}
.mxs-qr-dialog:focus {
  outline: none;
}
.mxs-qr-close {
  position: absolute;
  right: 8px;
  top: 4px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  color: #9aa3af;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.mxs-qr-close:hover {
  color: #4b5563;
}
.mxs-qr-title {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
}
.mxs-qr-sub {
  margin-top: 6px;
  font-size: 13px;
  color: #6b7280;
}
.mxs-qr-imgbox {
  width: 236px;
  max-width: 100%;
  margin: 16px auto 0;
  padding: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
}
.mxs-qr-imgbox img {
  display: block;
  width: 100%;
  height: auto;
}
.mxs-qr-tip {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.6;
  color: #9ca3af;
}
.mxs-qr-mobile-tip {
  display: none;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.6;
  color: #c2410c;
}
.mxs-qr-modal.is-mobile .mxs-qr-mobile-tip {
  display: block;
}
.mxs-qr-imgbox {
  position: relative;
}
.mxs-qr-fallback {
  padding: 64px 10px;
  font-size: 13px;
  line-height: 1.7;
  color: #b45309;
}
.mxs-qr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.mxs-qr-btn {
  display: block;
  flex: 1 1 0;
  min-width: 0;
  padding: 11px 8px;
  border: 1px solid #d7dde7;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: #4a5568;
  text-align: center;
  text-decoration: none;
  transition: background 0.16s, border-color 0.16s, color 0.16s;
}
.mxs-qr-btn:hover {
  border-color: #6085c8;
  background: #f5f9ff;
  color: #3f63a8;
  text-decoration: none;
}
.mxs-qr-btn-primary,
.mxs-qr-btn-primary:hover {
  border-color: #6085c8;
  background: #6085c8;
  color: #fff;
}
.mxs-qr-btn-primary:hover {
  border-color: #4c72b8;
  background: #4c72b8;
  color: #fff;
}
html.mxs-qr-open,
html.mxs-qr-open body {
  overflow: hidden;
}

@media (max-width: 768px) {
  .mxs-qr-dialog {
    left: 24px;
    right: 24px;
    width: auto;
    max-width: none;
    max-height: calc(100vh - 24px);
    margin: 0;
    padding: 24px 18px 18px;
    transform: translateY(-50%);
  }
  .mxs-qr-modal.is-open .mxs-qr-dialog {
    animation-name: mxs-qr-pop-m;
  }
  @keyframes mxs-qr-pop-m {
    from { opacity: 0; transform: translateY(-47%) scale(0.96); }
    to   { opacity: 1; transform: translateY(-50%) scale(1); }
  }
  .mxs-qr-imgbox {
    width: 200px;
  }
  .mxs-qr-title {
    font-size: 18px;
  }
  .mxs-qr-btn {
    padding: 11px 6px;
    font-size: 13px;
  }
}

/* ===== 在线报名表单弹层 ===== */
.mxs-enroll-modal {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100001;
  display: none;
}
.mxs-enroll-modal.is-open {
  display: block;
}
.mxs-enroll-mask {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.62);
}
.mxs-enroll-dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 460px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  padding: 28px 30px 24px;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}
.mxs-enroll-close {
  position: absolute;
  right: 8px;
  top: 4px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  color: #9aa3af;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.mxs-enroll-close:hover {
  color: #4b5563;
}
.mxs-enroll-title {
  font-size: 21px;
  font-weight: 700;
  color: #1f2937;
  text-align: center;
}
.mxs-enroll-sub {
  margin: 7px 0 20px;
  font-size: 13px;
  line-height: 1.6;
  color: #6b7280;
  text-align: center;
}
.mxs-field {
  margin-bottom: 14px;
}
.mxs-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}
.mxs-field label em {
  font-style: normal;
  color: #e5533d;
}
.mxs-field input[type="text"],
.mxs-field input[type="tel"],
.mxs-field select,
.mxs-field textarea {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  line-height: 1.5;
  color: #1f2937;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}
.mxs-field select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%236b7280' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 30px;
}
.mxs-field textarea {
  resize: vertical;
  min-height: 74px;
}
.mxs-field input:focus,
.mxs-field select:focus,
.mxs-field textarea:focus {
  outline: none;
  border-color: #6085c8;
  box-shadow: 0 0 0 3px rgba(96, 133, 200, 0.16);
}
.mxs-enroll-modal[data-mode="enroll"] .mxs-field-assess {
  display: none;
}
.mxs-enroll-trigger {
  cursor: pointer;
}
.mxs-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.mxs-enroll-msg {
  display: none;
  margin-bottom: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  background: #fdeceb;
  font-size: 13px;
  line-height: 1.6;
  color: #c0392b;
}
.mxs-enroll-msg.is-show {
  display: block;
}
.mxs-enroll-submit {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-radius: 999px;
  background: #6085c8;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.mxs-enroll-submit:hover {
  background: #4c72b8;
}
.mxs-enroll-submit:disabled {
  background: #a8b9d8;
  cursor: default;
}
.mxs-enroll-privacy {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: #9ca3af;
  text-align: center;
}
.mxs-enroll-dialog.is-done .mxs-enroll-sub {
  display: none;
}
.mxs-enroll-success {
  padding: 10px 0 4px;
  text-align: center;
}
.mxs-enroll-ok {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #eaf7f0;
  font-size: 28px;
  line-height: 56px;
  color: #2e9e6b;
}
.mxs-enroll-oktitle {
  font-size: 19px;
  font-weight: 700;
  color: #1f2937;
}
.mxs-enroll-oktext {
  margin: 8px 0 20px;
  font-size: 13px;
  line-height: 1.7;
  color: #6b7280;
}
html.mxs-enroll-open,
html.mxs-enroll-open body {
  overflow: hidden;
}

@media (max-width: 768px) {
  .mxs-enroll-dialog {
    left: 16px;
    right: 16px;
    width: auto;
    max-width: none;
    max-height: calc(100vh - 32px);
    padding: 24px 18px 18px;
    transform: translateY(-50%);
    border-radius: 12px;
  }
  .mxs-enroll-title {
    font-size: 19px;
  }
}

/* ===== 首页师资团队（修复错位：统一卡片高度 / 图片比例 / 文字截断） ===== */
#teacher {
  padding: 0 15px;
}
@media (min-width: 992px) {
  #teacher {
    max-width: 1170px;
  }
}
#teacher .swiper-wrapper {
  align-items: stretch;
}
#teacher .swiper-slide {
  height: auto;
  align-items: stretch;
  justify-content: flex-start;
}
#teacher .swiper-slide > .col-xs-12 {
  float: none;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 20px;
}
#teacher .faculty-photo {
  overflow: hidden;
  border-radius: 6px 6px 0 0;
  background: #e9edf6;
}
#teacher .faculty-photo a {
  display: block;
}
#teacher .faculty-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 799 / 769;
  object-fit: cover;
  transition: transform 0.4s ease;
}
#teacher .faculty-photo:hover img {
  transform: scale(1.03);
}
#teacher .faculty-purplebox {
  flex: 1 1 auto;
  padding: 14px 16px !important;
}
#teacher .faculty-title {
  font-size: 18px;
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#teacher .faculty-textps {
  float: none;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
}
#teacher .faculty-text {
  height: 40px;
  margin-top: 2px;
  font-size: 12px;
  line-height: 20px;
  -webkit-line-clamp: 2;
}
#teacher .swiper-pagination {
  position: static;
  margin-top: 16px;
}
#teacher .swiper-pagination-bullet {
  background: #6085c8;
  opacity: 0.25;
}
#teacher .swiper-pagination-bullet-active {
  width: 18px;
  border-radius: 4px;
  opacity: 1;
}
@media (max-width: 767px) {
  #teacher {
    padding: 0 6px;
  }
  #teacher .faculty-purplebox {
    padding: 10px 12px !important;
  }
  #teacher .faculty-title {
    font-size: 15px;
  }
  #teacher .faculty-textps {
    font-size: 10px;
  }
  #teacher .faculty-text {
    height: 36px;
    font-size: 11px;
    line-height: 18px;
  }
}

/* ------------------------------------------------------------------
 * 先知计划专题：导航高亮 / 首页入口 / 页脚入口
 * ------------------------------------------------------------------ */
.index-menu-bg-li.mxs-nav-prophet {
  background: linear-gradient(180deg, #d8b75f 0%, #c19a34 100%) !important;
}
.index-menu-bg-li.mxs-nav-prophet > a {
  color: #1a1305 !important;
  font-weight: 600;
  letter-spacing: 1px;
}
.index-menu-bg-li.mxs-nav-prophet.index-menu-bg-li-active {
  background: linear-gradient(180deg, #f0d68a 0%, #d4af37 100%) !important;
}
/* 移动端折叠菜单里的专题入口 */
.mxs-mobile-prophet > a {
  color: #a8842a !important;
  font-weight: 600;
}

/* 首页：专题入口条 */
.mxs-home-prophet {
  background: linear-gradient(90deg, #0d0c08 0%, #171307 55%, #0d0c08 100%);
  border-top: 1px solid rgba(212, 175, 55, 0.28);
  border-bottom: 1px solid rgba(212, 175, 55, 0.28);
}
.mxs-home-prophet-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 14px 0;
  text-decoration: none !important;
}
.mxs-home-prophet-badge {
  flex: 0 0 auto;
  padding: 2px 9px;
  border-radius: 4px;
  background: linear-gradient(135deg, #f2d98f, #d4af37);
  color: #1a1305;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}
.mxs-home-prophet-title {
  font-size: 15px;
  color: #e9dcc0;
}
.mxs-home-prophet-title b {
  font-size: 17px;
  color: #f0d68a;
  letter-spacing: 1px;
}
.mxs-home-prophet-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}
.mxs-home-prophet-cta {
  margin-left: auto;
  padding: 7px 16px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 999px;
  font-size: 13px;
  color: #f0d68a;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.mxs-home-prophet-inner:hover .mxs-home-prophet-cta {
  background: #d4af37;
  color: #1a1305;
}

/* 页脚：专题入口条 */
.mxs-footer-prophet {
  background: #131109;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}
.mxs-footer-prophet-link {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 13px 0;
  text-decoration: none !important;
  color: rgba(255, 255, 255, 0.7);
}
.mxs-footer-prophet-tag {
  padding: 1px 8px;
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 4px;
  font-size: 11px;
  color: #f0d68a;
  letter-spacing: 1px;
}
.mxs-footer-prophet-link strong {
  font-size: 16px;
  color: #f0d68a;
  letter-spacing: 1px;
}
.mxs-footer-prophet-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.44);
}
.mxs-footer-prophet-go {
  margin-left: auto;
  font-size: 13px;
  color: #d4af37;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .mxs-home-prophet-inner {
    gap: 4px 10px;
    padding: 12px 0;
  }
  .mxs-home-prophet-title {
    flex: 1 1 100%;
    font-size: 14px;
  }
  .mxs-home-prophet-title b {
    font-size: 16px;
  }
  .mxs-home-prophet-meta {
    display: none;
  }
  .mxs-home-prophet-cta {
    padding: 6px 12px;
    font-size: 12px;
  }
  .mxs-footer-prophet-link {
    gap: 4px 10px;
  }
  .mxs-footer-prophet-sub {
    flex: 1 1 100%;
  }
  .mxs-footer-prophet-go {
    margin-left: 0;
  }
}

/* ------------------------------------------------------------------
 * 资讯列表（分类/归档）：缩略图定尺 + 等比例裁切，修复图片溢出错位
 * ------------------------------------------------------------------ */
.news-list-box {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  overflow: hidden;
  padding: 15px !important;
  box-sizing: border-box;
}
.news-list-box::after {
  content: none;
}
.news-list-img {
  flex: 0 0 210px;
  width: 210px !important;
  max-width: 42%;
  padding: 0 !important;
  float: none !important;
}
.news-list-img a {
  display: block;
  border-radius: 4px;
  overflow: hidden;
  background: #eef1f5;
  line-height: 0;
}
.news-list-img img {
  display: block;
  width: 100% !important;
  height: 150px !important;
  max-height: 150px;
  object-fit: cover;
  object-position: center;
  border: 0;
}
.news-list-text-box {
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0;
  padding: 0 !important;
  float: none !important;
}
.news-list-text-title {
  padding-top: 0;
  font-size: 1.7rem;
  line-height: 2.4rem;
  font-weight: 700;
}
.news-list-text-title a {
  color: #333;
  display: inline;
}
.news-list-text-title a:hover {
  color: #1a6fd4;
}
.news-list-ps {
  display: inline-block;
  vertical-align: 1px;
  margin-right: 6px;
  padding: 0 6px;
  font-size: 1.2rem !important;
  line-height: 20px;
  font-weight: 400;
  white-space: nowrap;
  border-radius: 3px;
}
.news-list-text-time {
  margin-top: 4px;
  font-size: 1.2rem;
  line-height: 20px;
  color: #999;
  padding: 0 !important;
  float: none !important;
  width: auto !important;
}
.news-list-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin-top: 6px !important;
  font-size: 1.3rem;
  line-height: 2.1rem;
  color: #666;
  text-indent: 0;
  text-align: justify;
  float: none !important;
  width: auto !important;
}

@media (max-width: 992px) {
  .news-list-img {
    flex: 0 0 170px;
    width: 170px !important;
  }
  .news-list-img img {
    height: 122px !important;
    max-height: 122px;
  }
}

@media (max-width: 768px) {
  .news-list-leftpadding {
    padding: 0 10px !important;
    margin-top: 0;
  }
  .news-list-box {
    gap: 10px;
    padding: 10px !important;
    border-top-width: 3px;
  }
  .news-list-img {
    flex: 0 0 34%;
    width: 34% !important;
    max-width: none;
  }
  .news-list-img img {
    height: auto !important;
    max-height: none;
    aspect-ratio: 4 / 3;
  }
  .news-list-text-title {
    font-size: 1.5rem;
    line-height: 2rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
  .news-list-text {
    -webkit-line-clamp: 2;
    font-size: 1.3rem;
    line-height: 1.9rem;
    margin-top: 4px !important;
  }
  .news-list-text-time {
    margin-top: 2px;
  }
  .news-list-ps {
    font-size: 1.1rem !important;
    line-height: 17px;
    padding: 0 4px;
    margin-right: 4px;
  }
}

/* ------------------------------------------------------------------
 * 主导航「留学动态」下拉：政策解读 / 院校库 入口
 * ------------------------------------------------------------------ */
.dropdown-menu .mxs-dd-feature > a {
  font-weight: 700;
}
.dropdown-menu .mxs-dd-feature > a span {
  display: block;
  margin-top: 1px;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
  opacity: 0.82;
}

/* 主导航下拉：加宽 + 深色文字
   main.css 把 .dropdown-menu 固定成橙色底 + 白色字（带 !important），
   白字压在 #ffb15e 上对比度只有 2 出头，长条目的副标题基本读不清。
   这里保持品牌橙底，文字改深棕，并把面板加宽避免副标题折行。 */
.index-menu-bg-ul .dropdown-menu {
  min-width: 250px;
  padding: 8px 0;
  box-shadow: 0 10px 24px rgba(20, 35, 60, 0.2);
}
.index-menu-bg-ul .dropdown-menu > li > a {
  padding: 9px 18px !important;
  color: #3b2a12 !important;
  white-space: normal;
  line-height: 1.55;
}
.index-menu-bg-ul .dropdown-menu > li > a:hover,
.index-menu-bg-ul .dropdown-menu > li > a:focus {
  color: #1d1408 !important;
  background-color: #ffe7c9 !important;
}
.index-menu-bg-ul .dropdown-menu .mxs-dd-feature > a span {
  color: #705633;
  opacity: 1;
}
.index-menu-bg-ul .dropdown-menu .divider {
  margin: 6px 0;
  background-color: rgba(255, 255, 255, 0.7);
}
.dropdown-menu .divider {
  margin: 4px 0;
  background-color: rgba(255, 255, 255, 0.5);
}

/* ------------------------------------------------------------------
 * 资讯列表页顶部：政策 / 院校库 交叉入口
 * ------------------------------------------------------------------ */
.mxs-news-cross {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 0;
}
.mxs-news-cross a {
  flex: 1 1 210px;
  display: block;
  padding: 12px 16px;
  border: 1px solid #e3e8ef;
  border-left: 3px solid #1a6fd4;
  border-radius: 4px;
  background: #f8fafd;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.mxs-news-cross a:hover {
  border-left-color: #d4af37;
  background: #f2f7ff;
}
.mxs-news-cross b {
  display: block;
  font-size: 15px;
  color: #16233a;
}
.mxs-news-cross span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #7a8698;
}
@media (max-width: 768px) {
  .mxs-news-cross a {
    flex: 1 1 100%;
    padding: 10px 12px;
  }
}
