/* =====================================================================
   马承英语官网 · 2026 V2 版样式（参考 infypower.cn 高级企业科技风）
   ---------------------------------------------------------------------
   设计要点：
   - 字体：阿里巴巴普惠体（PuHuiTi 3.0，本地 woff2 自托管）
   - 首页头部透明悬浮于全屏影像之上，滚动后变白色实底
   - 白底大留白分区、克制的深蓝点缀、去除花哨装饰
   - 类名统一 mk- 前缀，避免与旧版样式冲突
   ===================================================================== */

/* ---------- pjax 顶部加载进度条 ---------- */
#mkPjaxBar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 99999;
  background: linear-gradient(90deg, #2b6cf6, #6ea8ff);
  transform: scaleX(0);
  transform-origin: 0 50%;
  opacity: 0;
  transition: transform .35s ease, opacity .3s ease;
  pointer-events: none;
}
#mkPjaxBar.on { transform: scaleX(.75); opacity: 1; }

/* ---------- 阿里巴巴普惠体 @font-face ---------- */
@font-face {
  font-family: "Alibaba PuHuiTi";
  src: url("/static/fonts/PuHuiTi-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Alibaba PuHuiTi";
  src: url("/static/fonts/PuHuiTi-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Alibaba PuHuiTi";
  src: url("/static/fonts/PuHuiTi-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- 显隐工具类（mk- 前缀） ----------
   旧版样式里 .hidden{display:none!important} 带 !important，
   会压过 Tailwind 的响应式显隐类，因此新 UI 一律用本组类。 */
.mk-hide { display: none; }
@media (min-width: 768px) {
  .mk-md-flex { display: flex; }
}
@media (min-width: 1024px) {
  .mk-lg-flex { display: flex; }
}

/* ---------- 全局基础 ---------- */
body {
  font-family: "Alibaba PuHuiTi", "PingFang SC", "Microsoft YaHei",
    "Helvetica Neue", Arial, sans-serif;
  background: #fff;
  color: #111827;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- 顶部导航 ---------- */
.mk-site-header {
  z-index: 999;
  transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
/* 首页：透明悬浮模式（fixed，压在全屏 Hero 上） */
.mk-site-header.mk-ghost {
  position: fixed;
  left: 0; right: 0; top: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.38), rgba(0,0,0,0));
}
/* 内页 / 滚动后：白色实底（sticky 需要 top 才能吸附跟随滚动） */
.mk-site-header.mk-solid {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(17, 24, 39, .07);
}
/* 透明模式下整体文字为白色 */
.mk-ghost .mk-navlink { color: rgba(255, 255, 255, .92); }
.mk-ghost .mk-navlink:hover { color: #fff; background: rgba(255,255,255,.14); }
.mk-ghost .mk-navlink.mk-active { color: #fff; }
/* LOGO 双版本切换：悬浮态显示白色剪影（无白底块），实底态显示透明底彩色版 */
.mk-logo-ghost { display: none; }
.mk-ghost:not(.mk-solid) .mk-logo-color { display: none; }
.mk-ghost:not(.mk-solid) .mk-logo-ghost {
  display: block;
  filter: drop-shadow(0 2px 8px rgba(15, 23, 42, .35));
}
.mk-ghost .mk-auth-ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.mk-ghost .mk-auth-ghost:hover { background: rgba(255,255,255,.14); }
.mk-ghost .mk-auth-fill { background: #fff; color: #111827; }

/* 导航链接 */
.mk-navlink {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 9px 15px;
  font-size: 15px;
  font-weight: 500;
  color: #1f2937;
  transition: color .2s, background-color .2s;
  white-space: nowrap;
}
.mk-navlink:hover { color: #2b6cf6; }
.mk-navlink.mk-active { color: #2b6cf6; font-weight: 700; }
.mk-navlink.mk-active::after {
  content: "";
  position: absolute;
  left: 15px; right: 15px; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: #2b6cf6;
}

/* 下拉子栏目（2026-09-18 改版）：锚定在当前导航项正下方的小型下拉卡，
   悬停哪个导航项就只弹它自己的子栏目，不再是整宽大白块 */
/* navitem 撑满导航条整高 + 作为下拉的定位基准 */
.mk-navitem { position: relative; align-self: stretch; display: flex; align-items: center; }
.mk-meganav {
  position: absolute;
  left: 50%; top: 100%;
  min-width: 176px;
  transform: translate(-50%, 10px);
  z-index: 60;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, .07);
  border-radius: 10px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, .14);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  transition-delay: .08s; /* 收起延迟：快速斜向划过时不闪烁 */
}
.mk-navitem:hover .mk-meganav,
.mk-navitem:focus-within .mk-meganav {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}
/* 小下拉不需要内层栅格与标题行 */
.mk-meganav-in { width: max-content; max-width: none; padding: 0; }
.mk-meganav-head { display: none; }
.mk-meganav-menu { margin-top: 0; display: block; }
.mk-meganav-menu a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 22px;
  font-size: 15px;
  color: #0f172a;
  white-space: nowrap;
  transition: background .15s ease;
}
.mk-meganav-menu a::before { display: none; }
.mk-meganav-menu a::after { display: none; }
.mk-meganav-menu a em {
  font-style: normal;
  font-size: 12px;
  color: #2b6cf6;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .25s, transform .25s;
}
.mk-meganav-menu a em::before { content: "\2192"; }
.mk-meganav-menu a:hover { background: #f4f8ff; }
.mk-meganav-menu a:hover span { color: #2b6cf6; font-weight: 600; }
.mk-meganav-menu a:hover em { opacity: 1; transform: translateX(0); }

/* 透明悬浮头部悬停展开面板时：整条头部变白底深字（与 infypower 一致） */
.mk-site-header.mk-ghost.mk-nav-open {
  background: #fff;
  box-shadow: 0 1px 0 rgba(17, 24, 39, .07);
}
.mk-site-header.mk-ghost.mk-nav-open .mk-navlink { color: #1f2937; }
.mk-site-header.mk-ghost.mk-nav-open .mk-navlink:hover { color: #2b6cf6; background: transparent; }
.mk-site-header.mk-ghost.mk-nav-open .mk-navlink.mk-active { color: #2b6cf6; }
.mk-site-header.mk-ghost.mk-nav-open .mk-logo-color { display: block; }
.mk-site-header.mk-ghost.mk-nav-open .mk-logo-ghost { display: none; }
.mk-site-header.mk-ghost.mk-nav-open .mk-auth-ghost { color: #1f2937; border-color: #e5e7eb; }
.mk-site-header.mk-ghost.mk-nav-open .mk-auth-ghost:hover { background: #f3f4f6; }
.mk-site-header.mk-ghost.mk-nav-open .mk-auth-fill { background: #111827; color: #fff; }
.mk-site-header.mk-ghost.mk-nav-open .mk-burger { color: #1f2937; border-color: #e5e7eb; }

/* 移动端抽屉：登录/注册按钮基础色（保证任意头部状态下可见） */
.mk-auth-fill { background: #2b6cf6; color: #fff; }
.mk-auth-ghost { color: #1f2937; border-color: #d1d5db; }

/* ---------- 宽幅 Hero（2026-09-18 改版：按原图 2000×650 比例整幅展示） ---------- */
/* section 高度 = 屏宽 × 650/2000（32.5vw），与上传原图比例一致，桌面端整幅无裁切；
   窄屏时用 min-height 兜底（图片按 cover 裁切两侧），超大屏封顶 650px（原图高度） */
.mk-hero-sec {
  height: 32.5vw;
  min-height: 360px;
  max-height: 650px;
}
/* 显式撑满父级 section（不依赖 Tailwind inset-0），幻灯片与图片铺满全屏 */
.mk-hero.swiper-container {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%;
  height: 100%;
}
.mk-hero .swiper-wrapper { height: 100%; }
.mk-hero .swiper-slide { height: 100%; }
.mk-hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
}
/* 底部渐暗，保证白色文字可读 */
.mk-hero-shade {
  background: linear-gradient(180deg,
    rgba(6, 12, 28, .35) 0%,
    rgba(6, 12, 28, .05) 40%,
    rgba(6, 12, 28, .62) 100%);
}
/* 滚动提示：鼠标滚轮示意 */
@keyframes mkScrollDot {
  0%   { transform: translateY(0);   opacity: 1; }
  70%  { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0);   opacity: 0; }
}
.mk-scroll-dot { animation: mkScrollDot 1.8s ease-in-out infinite; }

/* ---------- 卡片 ---------- */
.mk-card {
  transition: transform .28s ease, box-shadow .28s ease;
}
.mk-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px -20px rgba(15, 23, 42, .22);
}
.mk-card img { transition: transform .5s ease; }
.mk-card:hover img { transform: scale(1.05); }

/* ---------- 查看详情箭头 ---------- */
.mk-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #2b6cf6;
  transition: gap .2s;
}
.mk-more:hover { gap: 10px; }

/* ---------- 大数字统计 ---------- */
.mk-stat-num {
  font-weight: 300;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
}

/* ---------- 移动端菜单 ---------- */
#mkMobileMenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
#mkMobileMenu.mk-open { max-height: 75vh; overflow-y: auto; }
.mk-burger span {
  display: block;
  width: 22px; height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: all .25s;
}
.mk-burger.mk-on span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mk-burger.mk-on span:nth-child(2) { opacity: 0; }
.mk-burger.mk-on span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
/* 透明模式下汉堡按钮为白色 */
.mk-site-header .mk-burger { color: #1f2937; border-color: #e5e7eb; }

/* ---------- 区块标题（左对齐高级风） ---------- */
.mk-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}
.mk-section-title {
  font-size: 30px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 1px;
}
.mk-section-sub {
  margin-top: 10px;
  font-size: 15px;
  color: #9ca3af;
}

/* ---------- 页脚 ---------- */
.mk-footer { background: #0a0f1e; }
.mk-footer a { transition: color .2s; }
.mk-footer a:hover { color: #fff; }

/* ---------- 登录 / 注册 / 退出 / 忘记密码弹窗（2026 V2 风格） ----------
   结构沿用 Bootstrap modal（定位/遮罩不变），仅重绘视觉层；
   所有规则限定在 .mk-modal 下，不影响内页其他弹窗。 */
.mk-modal .modal-dialog {
  max-width: 440px;
  margin: 4vh auto;
}
/* 整体限高：标题/底部按钮固定，表单区内部滚动，保证小屏也不被截断 */
.mk-modal .modal-content {
  display: flex;
  flex-direction: column;
  max-height: 92vh;
}
.mk-modal .modal-header,
.mk-modal .modal-footer { flex-shrink: 0; }
.mk-modal .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #d6dae2 transparent;
}
.mk-modal .modal-body::-webkit-scrollbar { width: 6px; }
.mk-modal .modal-body::-webkit-scrollbar-thumb { background: #d6dae2; border-radius: 3px; }
.mk-modal .modal-body::-webkit-scrollbar-track { background: transparent; }
.mk-modal .small-dialog .modal-content { text-align: center; }
.mk-modal .modal-content {
  position: relative;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 32px 80px -24px rgba(10, 15, 30, .45);
  overflow: hidden;
  font-family: "Alibaba PuHuiTi", "PingFang SC", "Microsoft YaHei", sans-serif;
}
/* 关闭按钮：右上角圆形灰底 × */
.mk-modal .close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 5;
  width: 34px; height: 34px;
  border-radius: 999px;
  background: #f3f4f6;
  opacity: 1;
  transition: background-color .2s;
}
.mk-modal .close::before,
.mk-modal .close::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 14px; height: 2px;
  border-radius: 2px;
  background: #6b7280;
}
.mk-modal .close::before { transform: translate(-50%, -50%) rotate(45deg); }
.mk-modal .close::after  { transform: translate(-50%, -50%) rotate(-45deg); }
.mk-modal .close:hover { background: #e5e7eb; }
/* 头部：居中标题 + 副标语 */
.mk-modal .modal-header {
  padding: 34px 36px 0;
  border: 0;
  text-align: center;
}
.mk-modal .modal-title {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 1px;
}
.mk-modal .modal-header p {
  margin: 10px auto 0;
  max-width: 330px;
  font-size: 13px;
  line-height: 1.7;
  color: #9ca3af;
}
/* 表单区 */
.mk-modal .modal-body { padding: 26px 36px 4px; }
.mk-modal .input { margin-bottom: 14px; }
.mk-modal .input input,
.mk-modal .input select {
  display: block;
  width: 100%;
  height: 46px;
  padding: 0 15px;
  font-size: 14px;
  font-family: inherit;
  color: #1f2937;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  box-shadow: none;
}
.mk-modal .input input::placeholder { color: #b0b7c3; }
.mk-modal .input input:focus,
.mk-modal .input select:focus {
  border-color: #2b6cf6;
  box-shadow: 0 0 0 3px rgba(43, 108, 246, .12);
}
/* 省市区三联选择（mk-region 加在 .input 上，保证 .next() 错误提示逻辑不变） */
.mk-modal .input.mk-region { display: flex; flex-wrap: wrap; gap: 10px; }
.mk-modal .input.mk-region .error_msg { flex-basis: 100%; }
.mk-modal .input select {
  flex: 1;
  min-width: 0;
  padding: 0 10px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%239ca3af' stroke-width='1.6' stroke-linecap='round' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
/* 图片验证码 / 短信验证码行 */
.mk-modal .input.verify { display: flex; gap: 10px; }
.mk-modal .input.verify input { flex: 1; min-width: 0; }
.mk-modal .input.verify .verify-img {
  width: 118px; height: 46px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}
.mk-modal .input.verify .btn {
  width: 132px; height: 46px;
  flex-shrink: 0;
  font-size: 13px;
  font-family: inherit;
  color: #2b6cf6;
  background: #eef4ff;
  border: 0;
  border-radius: 12px;
  padding: 0;
  transition: background-color .2s;
}
.mk-modal .input.verify .btn:hover { background: #dfeaff; }
.mk-modal .input.verify .btn[disabled] { color: #9ca3af; background: #f3f4f6; }
/* 错误提示（JS 通过 display 控制显隐） */
.mk-modal .error_msg {
  display: none;
  padding: 6px 2px 0;
  font-size: 13px;
  color: #ef4444;
  text-align: left;
}
/* 弹窗内下拉 / 文本域 / 选择底（个人中心微课弹窗等复用） */
.mk-modal .select-bg { margin-bottom: 14px; }
.mk-modal .modal-body select,
.mk-modal .modal-body textarea,
.mk-modal .select-bg select {
  display: block;
  width: 100%;
  padding: 11px 15px;
  font-size: 14px;
  font-family: inherit;
  color: #1f2937;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  box-shadow: none;
}
.mk-modal .modal-body select:focus,
.mk-modal .modal-body textarea:focus,
.mk-modal .select-bg select:focus {
  border-color: #2b6cf6;
  box-shadow: 0 0 0 3px rgba(43, 108, 246, .12);
}
.mk-modal .modal-body textarea { min-height: 110px; resize: vertical; }
.mk-modal .upload label { display: block; margin-bottom: 8px; font-size: 13px; color: #6b7280; }
.mk-modal .upload .btn {
  padding: 9px 20px;
  font-size: 13px;
  font-family: inherit;
  color: #2b6cf6;
  background: #eef4ff;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .2s;
}
.mk-modal .upload .btn:hover { background: #dfeaff; }
.mk-modal .upload .before { margin-top: 8px; font-size: 12px; color: #b0b7c3; }
.mk-modal .upload .img img { width: 80px; height: 54px; object-fit: cover; border-radius: 8px; }
.mk-modal .upload .img { margin-top: 10px; }
/* 忘记密码链接 */
.mk-modal .forget-pwd { margin-top: -6px; text-align: right; }
.mk-modal .forget-pwd a { font-size: 13px; color: #9ca3af; transition: color .2s; }
.mk-modal .forget-pwd a:hover { color: #2b6cf6; }
/* 底部：主按钮 + 切换提示 */
.mk-modal .modal-footer {
  padding: 18px 36px 32px;
  border: 0;
  text-align: center;
}
.mk-modal .modal-footer .btn-orange {
  display: block;
  width: 100%;
  height: 48px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  letter-spacing: 4px;
  color: #fff;
  background: linear-gradient(135deg, #2b6cf6, #1d4fd7);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 12px 24px -10px rgba(43, 108, 246, .55);
  transition: filter .2s, transform .2s;
}
.mk-modal .modal-footer .btn-orange:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.mk-modal .modal-footer .tip {
  margin: 16px 0 0;
  font-size: 13px;
  color: #9ca3af;
}
.mk-modal .modal-footer .tip a { color: #2b6cf6; }
/* 小屏适配：贴边显示 + 收紧内边距 */
@media (max-width: 640px) {
  .mk-modal .modal-dialog { margin: 24px 12px; }
  .mk-modal .modal-content { max-height: calc(100vh - 48px); border-radius: 16px; }
  .mk-modal .modal-header { padding: 26px 22px 0; }
  .mk-modal .modal-header p { max-width: none; }
  .mk-modal .modal-body { padding: 20px 22px 4px; }
  .mk-modal .modal-footer { padding: 14px 22px 24px; }
}

/* ---------- 登录 / 注册 / 退出 / 忘记密码弹窗结束 ---------- */

/* ---------- 登录 / 注册独立页（原弹窗改为整页完成） ---------- */
.mk-auth {
  min-height: calc(100vh - 72px);
  padding: 56px 16px 96px;
  background:
    radial-gradient(600px 300px at 15% 0%, rgba(43, 108, 246, .10), transparent 60%),
    radial-gradient(600px 300px at 85% 100%, rgba(43, 108, 246, .08), transparent 60%),
    linear-gradient(180deg, #f6f8fc 0%, #eef2f9 100%);
}
.mk-auth-card {
  max-width: 500px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 48px -20px rgba(15, 23, 42, .22);
}
@media (max-width: 640px) {
  .mk-auth { padding: 28px 12px 64px; }
  .mk-auth-card { border-radius: 16px; }
  .mk-auth-card .modal-header { padding: 30px 24px 0; }
  .mk-auth-card .modal-body { padding: 22px 24px 4px; }
  .mk-auth-card .modal-footer { padding: 14px 24px 28px; }
}

/* ---------- 内页通用：栏目影像横幅 ----------
   结构：<section.mk-page-hero><img#header-banner>遮罩+面包屑+标题</section>
   图片 src 由 base.html 脚本按当前栏目注入 */
.mk-page-hero {
  position: relative;
  height: 400px;   /* 2026-09-14 V2.0：横幅加高，极光更有纵深感 */
  overflow: hidden;
  background: #0a0f1e;
}
/* 静态横幅图已停用：改用极光动画画布（base.html mkAuroraInit 注入） */
.mk-page-hero > img { display: none; }
.mk-page-hero .mk-aurora {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.mk-page-hero .mk-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,12,28,.30) 0%, rgba(6,12,28,.05) 45%, rgba(6,12,28,.66) 100%);
}
.mk-page-hero-inner {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 34px;
}
.mk-page-title {
  margin-top: 10px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
}
.mk-page-sub {
  margin-top: 8px;
  font-size: 14px;
  color: rgba(255,255,255,.72);
}
@media (max-width: 767px) {
  .mk-page-hero { height: 240px; }   /* 2026-09-14 V2.0：移动端同步加高 */
  .mk-page-hero-inner { padding-bottom: 22px; }
  .mk-page-title { font-size: 22px; letter-spacing: 1px; }
}

/* ---------- 内页通用：面包屑 ---------- */
.mk-crumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255,255,255,.66);
}
.mk-crumb a { color: rgba(255,255,255,.66); transition: color .2s; }
.mk-crumb a:hover { color: #fff; }
.mk-crumb > a + a::before,
.mk-crumb > span::before {
  content: "/";
  margin: 0 8px;
  color: rgba(255,255,255,.35);
}
.mk-crumb .mk-crumb-cur { color: #fff; }

/* ---------- 内页通用：工具栏（搜索 + 子栏目 Tab） ---------- */
.mk-toolbar {
  background: #fff;
  border-bottom: 1px solid #eef0f4;
}
.mk-toolbar-in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
/* 搜索框（沿用旧机制：隐藏 submit + 图标触发点击）
   V2.1 改版：整体靠右（红框位），白底极简 + 蓝色聚焦光圈 */
.mk-searchbox {
  order: 9;                        /* 搜索框永远排到工具栏行尾（Tab/筛选在前） */
  margin-left: auto;               /* 推到工具栏右侧；同排有 Tab 时 Tab 留左 */
  display: flex;
  align-items: center;
  gap: 10px;
  width: 320px;
  max-width: 100%;
  height: 42px;
  padding: 0 16px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  transition: border-color .2s, box-shadow .2s;
}
.mk-searchbox:hover { border-color: #cfd6e4; }
.mk-searchbox:focus-within {
  border-color: #2b6cf6;
  box-shadow: 0 0 0 3px rgba(43, 108, 246, .12), 0 1px 2px rgba(15, 23, 42, .04);
}
.mk-searchbox input[type="text"] {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 14px;
  font-family: inherit;
  color: #1f2937;
}
.mk-searchbox input[type="text"]::placeholder { color: #9ca3af; }
.mk-searchbox .mk-search-icon {
  flex-shrink: 0;
  width: 18px; height: 18px;
  cursor: pointer;
  color: #9ca3af;
  transition: color .2s, transform .2s;
}
.mk-searchbox .mk-search-icon:hover { color: #2b6cf6; transform: scale(1.1); }
/* 小屏：搜索框占满整行，依旧在 Tab 下方右侧语义不变 */
@media (max-width: 767px) {
  .mk-searchbox { width: 100%; margin-left: 0; }
}
/* 子栏目 Tab */
.mk-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.mk-tabs em.item {
  display: inline-block;
  padding: 11px 30px;
  font-size: 16px;
  font-weight: 500;
  font-style: normal;
  color: #4b5563;
  background: #f3f4f6;
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  transition: all .2s;
}
.mk-tabs em.item:hover { color: #2b6cf6; background: #e8efff; }
.mk-tabs em.item:active { transform: scale(.94); }
.mk-tabs em.item.active {
  color: #fff;
  font-weight: 600;
  background: linear-gradient(135deg, #3d7bff, #1d4fd7);
  box-shadow: 0 12px 24px -8px rgba(43,108,246,.65);
}
/* 脱离 .mk-tabs 容器独立使用的 Tab（如论坛排序） */
em.item.mk-tab-standalone {
  display: inline-block;
  padding: 11px 30px;
  font-size: 16px;
  font-weight: 500;
  font-style: normal;
  color: #4b5563;
  background: #f3f4f6;
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  transition: all .2s;
}
em.item.mk-tab-standalone:hover { color: #2b6cf6; background: #e8efff; }
em.item.mk-tab-standalone:active { transform: scale(.94); }
em.item.mk-tab-standalone.active {
  color: #fff;
  font-weight: 600;
  background: linear-gradient(135deg, #3d7bff, #1d4fd7);
  box-shadow: 0 12px 24px -8px rgba(43,108,246,.65);
}

/* ---------- 内页通用：内容容器与面板 ---------- */
.mk-page-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 16px 64px;
}
@media (min-width: 768px) { .mk-page-body { padding: 48px 16px 80px; } }
.mk-panel {
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 18px;
  box-shadow: 0 18px 40px -28px rgba(15,23,42,.18);
}

/* ---------- 内页通用：筛选行 ---------- */
.mk-filter { padding: 4px 0; }
.mk-filter .mk-filter-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed #eef0f4;
}
.mk-filter .mk-filter-row:last-child { border-bottom: 0; }
.mk-filter em.mk-filter-label {
  flex-shrink: 0;
  padding-top: 7px;
  font-size: 15px;
  font-style: normal;
  font-weight: 600;
  color: #0f172a;
}
.mk-filter ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.mk-filter ul li {
  list-style: none;
  padding: 8px 22px;
  font-size: 15px;
  font-weight: 500;
  color: #4b5563;
  background: #f6f8fb;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  transition: all .2s;
}
.mk-filter ul li:hover { color: #2b6cf6; background: #e8efff; }
.mk-filter ul li:active { transform: scale(.94); }
.mk-filter ul li.active {
  color: #fff;
  font-weight: 600;
  background: linear-gradient(135deg, #3d7bff, #1d4fd7);
  border-color: transparent;
  box-shadow: 0 10px 20px -8px rgba(43,108,246,.6);
}
.mk-filter ul li input[type="radio"] { display: none; }

/* ---------- 内页通用：新闻/活动列表 ---------- */
.mk-news-list { display: grid; gap: 18px; }
.mk-news-item {
  display: flex;
  gap: 22px;
  padding: 20px;
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 16px;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.mk-news-item:hover {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: 0 24px 48px -24px rgba(15,23,42,.22);
}
.mk-news-item .mk-news-img {
  flex-shrink: 0;
  width: 220px;
  height: 140px;
  overflow: hidden;
  border-radius: 12px;
  background: #f3f4f6;
}
.mk-news-item .mk-news-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.mk-news-item:hover .mk-news-img img { transform: scale(1.05); }
.mk-news-item h3 {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  transition: color .2s;
}
.mk-news-item:hover h3 { color: #2b6cf6; }
.mk-news-item .mk-news-date {
  flex-shrink: 0;
  font-size: 13px;
  color: #9ca3af;
  font-variant-numeric: tabular-nums;
}
.mk-news-item p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.8;
  color: #6b7280;
}
@media (max-width: 767px) {
  .mk-news-item { flex-direction: column; gap: 12px; padding: 14px; }
  .mk-news-item .mk-news-img { width: 100%; height: 180px; }
}

/* ---------- 内页通用：教材封面网格 ---------- */
.mk-book-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
@media (min-width: 640px)  { .mk-book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .mk-book-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.mk-book-grid .mk-book-item {
  text-align: center;
  min-width: 0;
}
.mk-book-item .mk-book-cover {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: #f6f8fb;
  box-shadow: 0 10px 24px -14px rgba(15,23,42,.25);
  transition: transform .28s, box-shadow .28s;
}
.mk-book-item:hover .mk-book-cover {
  transform: translateY(-5px);
  box-shadow: 0 26px 44px -22px rgba(15,23,42,.32);
}
.mk-book-item .mk-book-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform .5s;
}
.mk-book-item:hover .mk-book-cover img { transform: scale(1.04); }
.mk-book-item p {
  margin-top: 12px;
  font-size: 14px;
  color: #374151;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mk-book-item:hover p { color: #2b6cf6; }

/* ---------- 内页通用：视频卡片网格 ---------- */
.mk-video-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 20px;
}
@media (min-width: 640px)  { .mk-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .mk-video-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mk-video-item .mk-video-cover {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: #0a0f1e;
  aspect-ratio: 16 / 9;
}
.mk-video-item .mk-video-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s, opacity .3s;
}
.mk-video-item:hover .mk-video-cover img { transform: scale(1.05); opacity: .85; }
.mk-video-item .mk-video-play {
  position: absolute;
  left: 50%; top: 50%;
  z-index: 2;
  width: 46px; height: 46px;
  transform: translate(-50%, -50%) scale(.9);
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all .25s;
}
.mk-video-item:hover .mk-video-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.mk-video-item .mk-video-play::after {
  content: "";
  margin-left: 3px;
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent #2b6cf6;
}
.mk-video-item .mk-video-time {
  position: absolute;
  right: 10px; bottom: 10px;
  z-index: 2;
  padding: 3px 10px;
  font-size: 12px;
  color: #fff;
  background: rgba(10,15,30,.66);
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.mk-video-item h5 {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 500;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .2s;
}
.mk-video-item:hover h5 { color: #2b6cf6; }
.mk-video-item .mk-video-teacher {
  margin-top: 4px;
  font-size: 13px;
  color: #9ca3af;
}

/* ---------- 内页通用：分页 ---------- */
.mk-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
}
.mk-pager a { display: inline-flex; }
.mk-pager .mk-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  font-size: 14px;
  color: #4b5563;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  transition: all .2s;
  font-variant-numeric: tabular-nums;
}
.mk-pager .mk-page-btn:hover { color: #2b6cf6; border-color: #2b6cf6; }
.mk-pager .mk-page-btn.active {
  color: #fff;
  font-weight: 500;
  background: #2b6cf6;
  border-color: #2b6cf6;
}
.mk-pager .mk-page-total {
  margin-left: 6px;
  font-size: 13px;
  color: #9ca3af;
}
.mk-pager .mk-page-jump {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  font-size: 13px;
  color: #6b7280;
}
.mk-pager .mk-page-jump input {
  width: 52px;
  height: 34px;
  padding: 0 8px;
  font-size: 13px;
  text-align: center;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  outline: none;
  font-family: inherit;
  transition: border-color .2s;
}
.mk-pager .mk-page-jump input:focus { border-color: #2b6cf6; }
.mk-pager .mk-page-jump button {
  height: 34px;
  padding: 0 14px;
  font-size: 13px;
  font-family: inherit;
  color: #fff;
  background: #0f172a;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color .2s;
}
.mk-pager .mk-page-jump button:hover { background: #2b6cf6; }

/* ---------- 内页通用：文章详情排版（富文本） ---------- */
.mk-article { max-width: 860px; margin: 0 auto; }
.mk-article-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.5;
  color: #0f172a;
}
@media (min-width: 768px) { .mk-article-title { font-size: 30px; } }
.mk-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 14px;
  padding-bottom: 22px;
  font-size: 13px;
  color: #9ca3af;
  border-bottom: 1px solid #eef0f4;
}
.mk-rich {
  padding-top: 26px;
  font-size: 15px;
  line-height: 2;
  color: #374151;
  word-break: break-word;
}
.mk-rich p { margin: 0 0 14px; }
.mk-rich img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 8px auto;
  display: block;
}
.mk-rich h1, .mk-rich h2, .mk-rich h3, .mk-rich h4 {
  margin: 22px 0 12px;
  font-weight: 700;
  color: #0f172a;
}
.mk-rich table { max-width: 100%; border-collapse: collapse; }
.mk-rich td, .mk-rich th { border: 1px solid #e5e7eb; padding: 6px 10px; }
.mk-rich a { color: #2b6cf6; }
.mk-rich video { max-width: 100%; }
/* 上一篇 / 下一篇 */
.mk-prevnext {
  display: grid;
  gap: 10px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #eef0f4;
}
@media (min-width: 640px) { .mk-prevnext { grid-template-columns: 1fr 1fr; } }
.mk-prevnext a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  color: #6b7280;
  transition: color .2s;
}
.mk-prevnext a:hover { color: #2b6cf6; }
.mk-prevnext a span { color: #9ca3af; margin-right: 6px; }

/* ---------- 教材详情页：Tab 切换（沿用 .setStorage/.change-tab 交互） ---------- */
.mk-book-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid #eef0f4;
  padding-bottom: 14px;
}
.mk-book-tabs em.setStorage {
  padding: 8px 22px;
  font-size: 14px;
  font-style: normal;
  color: #4b5563;
  background: #f3f4f6;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s;
}
.mk-book-tabs em.setStorage:hover { color: #2b6cf6; }
.mk-book-tabs em.setStorage.active {
  color: #fff;
  font-weight: 500;
  background: #2b6cf6;
  box-shadow: 0 8px 16px -8px rgba(43,108,246,.6);
}
.mk-book-detail-top {
  display: grid;
  gap: 30px;
  align-items: start;
}
@media (min-width: 768px) { .mk-book-detail-top { grid-template-columns: 300px 1fr; } }
.mk-book-detail-top .mk-book-pic {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #f6f8fb;
  box-shadow: 0 24px 48px -24px rgba(15,23,42,.3);
}
.mk-book-detail-top .mk-book-pic img { width: 100%; display: block; }

/* ---------- 教师资料：下载按钮（锁定态需登录） ---------- */
.mk-dl {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  font-size: 13px;
  color: #2b6cf6;
  background: #eef4ff;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s;
}
.mk-dl::before {
  content: "";
  width: 12px; height: 12px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 3v12m0 0l-4.5-4.5M12 15l4.5-4.5M4 20h16'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 3v12m0 0l-4.5-4.5M12 15l4.5-4.5M4 20h16'/%3E%3C/svg%3E") no-repeat center / contain;
}
.mk-dl:hover { background: #2b6cf6; color: #fff; }
.mk-dl-lock { color: #9ca3af; background: #f3f4f6; }
.mk-dl-lock::before {
  -webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Crect x='5' y='10' width='14' height='10' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 018 0v3'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Crect x='5' y='10' width='14' height='10' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 018 0v3'/%3E%3C/svg%3E");
}
.mk-dl-lock:hover { background: #e5e7eb; color: #6b7280; }

/* ---------- 内页通用：表单输入 ---------- */
.mk-input {
  display: block;
  width: 100%;
  padding: 11px 15px;
  font-size: 14px;
  font-family: inherit;
  color: #1f2937;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.mk-input:focus {
  border-color: #2b6cf6;
  box-shadow: 0 0 0 3px rgba(43, 108, 246, .12);
}

/* ---------- 动画课堂：教材系列卡 + 课次列表 ---------- */
.mk-series-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.mk-series-tabs em.item {
  display: inline-block;
  min-width: 150px;
  min-height: 56px;
  border-radius: 14px;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  transition: transform .25s, box-shadow .25s, opacity .25s;
  opacity: .82;
}
.mk-series-tabs em.item:hover { opacity: 1; transform: translateY(-2px); }
.mk-series-tabs em.item.active {
  opacity: 1;
  box-shadow: 0 14px 28px -12px rgba(43,108,246,.5);
  outline: 3px solid #2b6cf6;
  outline-offset: 2px;
}
.mk-lesson-card {
  display: flex;
  gap: 22px;
  padding: 20px;
  margin-bottom: 18px;
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 16px;
}
.mk-lesson-card .mk-lesson-cover {
  flex-shrink: 0;
  width: 190px;
  height: 130px;
  overflow: hidden;
  border-radius: 12px;
  background: #f3f4f6;
}
.mk-lesson-card .mk-lesson-cover img { width: 100%; height: 100%; object-fit: cover; }
.mk-lesson-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 14px;
}
.mk-lesson-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-lesson-chips .mk-lesson-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  font-size: 13px;
  color: #4b5563;
  background: #f6f8fb;
  border: 1px solid #eef0f4;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s;
}
.mk-lesson-chips .mk-lesson-chip:hover {
  color: #fff;
  background: #2b6cf6;
  border-color: #2b6cf6;
}
.mk-lesson-chips .mk-lesson-chip .mk-lesson-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  font-size: 11px;
  color: #fff;
  background: #c3d4fb;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.mk-lesson-chips .mk-lesson-chip:hover .mk-lesson-num { background: rgba(255,255,255,.35); }
@media (max-width: 767px) {
  .mk-lesson-card { flex-direction: column; gap: 14px; }
  .mk-lesson-card .mk-lesson-cover { width: 100%; height: 170px; }
}

/* ---------- 教材录音：音频卡 ---------- */
.mk-audio-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 20px;
}
@media (min-width: 768px)  { .mk-audio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .mk-audio-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mk-audio-card {
  display: flex;
  gap: 18px;
  padding: 18px;
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 16px;
  transition: transform .25s, box-shadow .25s;
}
.mk-audio-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 44px -24px rgba(15,23,42,.22);
}
.mk-audio-card .mk-audio-cover {
  position: relative;
  flex-shrink: 0;
  width: 110px;
  height: 146px;
  overflow: hidden;
  border-radius: 12px;
  background: #f3f4f6;
}
.mk-audio-card .mk-audio-cover img { width: 100%; height: 100%; object-fit: cover; }
.mk-audio-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.5;
}
.mk-audio-card p {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.7;
  color: #9ca3af;
}
.mk-audio-card audio {
  width: 100%;
  margin-top: 10px;
  height: 36px;
  outline: none;
}
@media (max-width: 480px) {
  .mk-audio-card { flex-direction: column; }
  .mk-audio-card .mk-audio-cover { width: 100%; height: 180px; }
}

/* ---------- 个人中心：微课管理表格与筛选 ---------- */
.weike-manager .weike-header {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}
.weike-manager .select-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}
.weike-manager .select-wrap select {
  height: 40px;
  padding: 0 14px;
  font-size: 13px;
  font-family: inherit;
  color: #4b5563;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  outline: none;
  transition: border-color .2s;
}
.weike-manager .select-wrap select:focus { border-color: #2b6cf6; }
.weike-manager .weike-search { display: flex; gap: 8px; }
.weike-manager .weike-search button {
  height: 40px;
  padding: 0 18px;
  font-size: 13px;
  font-family: inherit;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s;
}
.weike-manager .weike-search button:first-child { background: #0f172a; color: #fff; }
.weike-manager .weike-search button:first-child:hover { background: #2b6cf6; }
.weike-manager .weike-search .wk_pop { background: #eef4ff; color: #2b6cf6; }
.weike-manager .weike-search .wk_pop:hover { background: #2b6cf6; color: #fff; }
.weike-manager table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  font-size: 14px;
}
.weike-manager th {
  padding: 12px 14px;
  font-weight: 700;
  color: #0f172a;
  text-align: left;
  background: #f6f8fb;
  white-space: nowrap;
}
.weike-manager th:first-child { border-radius: 10px 0 0 10px; }
.weike-manager th:last-child { border-radius: 0 10px 10px 0; }
.weike-manager td {
  padding: 12px 14px;
  border-top: 1px solid #eef0f4;
  color: #4b5563;
}
.weike-manager td .btn { margin-right: 10px; color: #2b6cf6; cursor: pointer; }
.weike-manager td .btn:hover { color: #1d4fd7; }
.weike-manager .status-pass { color: #16a34a; }

/* ---------- 返回顶部 ---------- */
#mkBackTop {
  transition: opacity .25s, transform .25s;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}
#mkBackTop.mk-show { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ---------- 首页透明头部：滚动后切换为白底 ----------
   说明：首页头部保持 fixed 悬浮，仅切换背景与文字颜色；
   .mk-ghost.mk-solid 组合优先级高于单类，覆盖颜色方案。 */
.mk-site-header.mk-ghost.mk-solid { position: fixed; }
.mk-site-header.mk-ghost.mk-solid .mk-navlink { color: #1f2937; }
.mk-site-header.mk-ghost.mk-solid .mk-navlink:hover { color: #2b6cf6; background: transparent; }
.mk-site-header.mk-ghost.mk-solid .mk-navlink.mk-active { color: #2b6cf6; }
.mk-site-header.mk-ghost.mk-solid .mk-auth-ghost { color: #1f2937; border-color: #e5e7eb; }
.mk-site-header.mk-ghost.mk-solid .mk-auth-ghost:hover { background: #f3f4f6; }
.mk-site-header.mk-ghost.mk-solid .mk-auth-fill { background: #111827; color: #fff; }
.mk-site-header.mk-ghost.mk-solid .mk-burger { color: #1f2937; border-color: #e5e7eb; }

/* ---------- 内页通用：左侧筛选 + 右侧内容 布局 ---------- */
.mk-split { display: flex; align-items: flex-start; gap: 26px; }
.mk-split > .mk-side-panel {
  width: 25%;
  flex-shrink: 0;
  position: sticky;
  top: 88px;
}
.mk-side-panel .mk-filter { padding: 2px 0; }
.mk-side-panel .mk-filter-row {
  display: block;
  padding: 12px 0;
  border-bottom: 1px dashed #eef0f4;
}
.mk-side-panel .mk-filter-row:first-child { padding-top: 6px; }
.mk-side-panel .mk-filter-row:last-child { border-bottom: 0; padding-bottom: 4px; }
.mk-side-panel em.mk-filter-label {
  display: block;
  padding: 0 0 10px;
  font-size: 14px;
}
.mk-split-main { flex: 1; min-width: 0; }
/* 右侧内容变窄后，网格列数相应降档 */
@media (min-width: 1024px) {
  .mk-split-main .mk-book-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mk-split-main .mk-video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .mk-split-main .mk-audio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* 窄屏：退回上下堆叠，筛选面板置顶 */
@media (max-width: 1023px) {
  .mk-split { display: block; }
  .mk-split > .mk-side-panel { position: static; width: 100%; margin-bottom: 22px; }
}


/* ============================================
   联系我们 · 负责人名片卡 hover 放大（2026-09-14）
   鼠标移上卡片轻微放大 + 阴影加深，移出平滑恢复
   ============================================ */
.mk-contact-card {
  transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
@media (hover: hover) {
  .mk-contact-card:hover {
    transform: scale(1.03);
    box-shadow: 0 14px 36px rgba(15, 42, 90, .14);
    z-index: 2;
  }
}

/* ============================================
   联系我们 · 名片 3 列竖版卡片（2026-09-14 二次改版）
   每行 3 张等大卡片；二维码图占满卡片上部、统一正方形等大；
   hover 放大沿用 .mk-contact-card
   ============================================ */
.mk-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px)  { .mk-contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* 桌面档：列数由页面上的「每行数量」控件写入的 CSS 变量决定（默认 4，可调 2~5） */
@media (min-width: 1024px) { .mk-contact-grid { grid-template-columns: repeat(var(--mk-contact-cols, 4), minmax(0, 1fr)); } }
/* 每行数量控制条：靠右对齐，窄屏下变为上下两行 */
.mk-contact-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 14px;
}
.mk-contact-cols-label { font-size: 13px; color: #6b7280; }
.mk-contact-cols-select {
  font-size: 13px;
  color: #374151;
  padding: 5px 8px;
  border: 1px solid #d7dbe3;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  outline: none;
}
.mk-contact-cols-select:focus { border-color: #2563eb; }
.mk-contact-card3 {
  display: flex;
  flex-direction: column;
  overflow: hidden;          /* 裁掉图片圆角外的部分，卡片圆角完整 */
  padding: 0;
}
/* 图片区：统一正方形、占满卡片宽度（图片在框内最大化且每张等大） */
.mk-card3-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f6f8fb;       /* 图未铺满时的底色 */
}
.mk-card3-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;       /* 二维码不裁切；底色兜底 */
  display: block;
}
/* 信息区：固定结构，保证各卡高度一致 */
.mk-card3-info {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mk-card3-info h3 { font-size: 16px; line-height: 1.3; }
.mk-card3-job { font-size: 13px; color: #9ca3af; }
.mk-card3-lines { font-size: 13px; color: #6b7280; line-height: 1.7; }
