@charset "utf-8";
/* =====================================================================
   effects.css —— 招生网视觉增强补丁
   引入位置：放在 style.css / media.css / slick.css 之后
   纯视觉增强，不改变任何原有布局与内容结构
   ===================================================================== */

:root{
  --fx-blue:#3366cc;
  --fx-cyan:#00c2ff;
  --fx-gold:#f6b500;
  --fx-ease:cubic-bezier(.22,.9,.28,1);
}

/* ---------------------------------------------------------------------
   0. 平滑滚动 + 自定义滚动条
   --------------------------------------------------------------------- */
html{ scroll-behavior:smooth; }

@media (min-width:993px){
  ::-webkit-scrollbar{ width:10px; height:10px; }
  ::-webkit-scrollbar-track{ background:#eef2fa; }
  ::-webkit-scrollbar-thumb{
    background:linear-gradient(180deg,#4d84e0,#1c4fb0);
    border-radius:10px; border:2px solid #eef2fa;
  }
  ::-webkit-scrollbar-thumb:hover{
    background:linear-gradient(180deg,#00c2ff,#3366cc);
  }
}

/* ---------------------------------------------------------------------
   1. 顶部滚动进度条
   --------------------------------------------------------------------- */
#fx-progress{
  position:fixed; left:0; top:0; height:3px; width:0;
  z-index:99999; pointer-events:none;
  background:linear-gradient(90deg,#00e0ff,#3366cc 45%,#7b5cff);
  box-shadow:0 0 12px rgba(51,102,204,.85);
  transition:width .12s linear, opacity .45s ease;
}
#fx-progress.fx-done{ opacity:0; }

/* ---------------------------------------------------------------------
   2. 主导航吸顶 + 毛玻璃 + 菜单下划线光效
   --------------------------------------------------------------------- */
@media (min-width:993px){
  #nav{
    position:sticky; top:0; z-index:900;
    transition:box-shadow .35s ease, background-color .35s ease;
  }
  #nav.fx-stuck{
    background:rgba(45,95,190,.94);
    box-shadow:0 8px 26px rgba(15,66,155,.35);
    -webkit-backdrop-filter:saturate(180%) blur(10px);
    backdrop-filter:saturate(180%) blur(10px);
  }
}

.nav .wp-menu .menu-item > a.menu-link{ position:relative; }
.nav .wp-menu .menu-item > a.menu-link::after{
  content:"";
  position:absolute; left:50%; bottom:9px;
  width:0; height:2px; border-radius:2px;
  background:linear-gradient(90deg,#00e0ff,#ffffff);
  transform:translateX(-50%);
  transition:width .38s var(--fx-ease);
  pointer-events:none;
}
.nav .wp-menu .menu-item:hover > a.menu-link::after{ width:56%; }

/* ---------------------------------------------------------------------
   3. 首屏 banner 图片 Ken Burns 缓慢缩放
   --------------------------------------------------------------------- */
.mbanner .focus{ overflow:hidden; }
.mbanner .focus img,
.mySwiperbanner .swiper-slide img{
  animation:fxKenBurns 18s ease-in-out infinite alternate;
  will-change:transform;
}
@keyframes fxKenBurns{
  from{ transform:scale(1) translateZ(0); }
  to  { transform:scale(1.07) translateZ(0); }
}

/* ---------------------------------------------------------------------
   4. 快捷导航卡片（main1 / link_icon）—— 光泽扫过 + 悬浮抬升 + 鼠标光晕
   --------------------------------------------------------------------- */
.con.link_icon li.news .news_box{
  position:relative;
  overflow:hidden;
  border-radius:12px;
  transition:transform .45s var(--fx-ease), box-shadow .45s var(--fx-ease);
}
/* 覆盖原来会变半透明的 hover */
.con.link_icon li.news.clearfix .news_box:hover{
  opacity:1;
  transform:translateY(-8px) scale(1.02);
  box-shadow:0 18px 34px rgba(0,0,0,.22);
}
/* 斜向光泽扫过 */
.con.link_icon li.news .news_box::before{
  content:"";
  position:absolute; top:-20%; left:-160%;
  width:55%; height:140%;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.5),transparent);
  transform:skewX(-20deg);
  pointer-events:none;
  z-index:2;
}
.con.link_icon li.news:hover .news_box::before{
  animation:fxShineSweep .85s ease forwards;
}
@keyframes fxShineSweep{
  from{ left:-160%; }
  to  { left:170%; }
}
/* 图标悬浮放大旋转（叠加原有效果） */
.con.link_icon li.news:hover .link_icon .icon{
  transform:rotateY(360deg) scale(1.08);
}

/* ---------------------------------------------------------------------
   5. 鼠标光晕跟随（.fx-spot 由 JS 自动添加）
   --------------------------------------------------------------------- */
.fx-spot{ position:relative; }
.fx-spot::after{
  content:"";
  position:absolute; left:0; top:0; right:0; bottom:0;
  border-radius:inherit;
  pointer-events:none;
  background:radial-gradient(180px circle at var(--fx-mx,50%) var(--fx-my,50%),
             rgba(255,255,255,.32), transparent 65%);
  opacity:0;
  transition:opacity .35s ease;
  z-index:3;
}
.fx-spot:hover::after{ opacity:1; }

/* ---------------------------------------------------------------------
   6. main3 数据模块 —— 背景流光 + 金色数字流光 + 装饰浮动
   --------------------------------------------------------------------- */
.main3 .inner{
  background-image:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.25), transparent 50%),
    radial-gradient(circle at 78% 82%, rgba(0,140,255,.45), transparent 55%),
    radial-gradient(circle at 12% 88%, rgba(255,255,255,.16), transparent 50%);
  background-size:180% 180%,180% 180%,180% 180%;
  background-repeat:no-repeat;
  animation:fxMain3Flow 18s ease-in-out infinite alternate;
}
@keyframes fxMain3Flow{
  0%  { background-position:  0%   0%, 100% 100%,  50% 100%; }
  50% { background-position: 60%  40%,  20%  30%,   0%   0%; }
  100%{ background-position:100% 100%,   0%   0%, 100%  50%; }
}

/* 金色数字流光文字 */
@supports ((-webkit-background-clip:text) or (background-clip:text)){
  .main3 .s7{
    background-image:linear-gradient(100deg,
      #ffd35c 0%, #f6b500 22%, #fff6d0 50%, #f6b500 78%, #ffd35c 100%);
    background-size:250% 100%;
    -webkit-background-clip:text;
            background-clip:text;
    -webkit-text-fill-color:transparent;
            color:transparent;
    animation:fxGoldFlow 3.6s linear infinite;
    filter:drop-shadow(0 4px 10px rgba(0,0,0,.18));
  }
  @keyframes fxGoldFlow{ to{ background-position:-250% 0; } }
}

.s101{
  text-shadow:0 1px 4px rgba(0,0,0,.35), 0 0 26px rgba(255,255,255,.35);
}

/* 装饰角标轻轻浮动 */
.btnLR::before{ animation:fxFloatY 5s ease-in-out infinite; }
.btnLR::after { animation:fxFloatY 6.5s ease-in-out infinite reverse; }
.btn80::before{ animation:fxFloatY 4.5s ease-in-out infinite; }
@keyframes fxFloatY{
  0%,100%{ transform:translateY(0); }
  50%    { transform:translateY(-8px); }
}

/* ---------------------------------------------------------------------
   7. main9 专业设置卡片 —— 标题扫光 + 悬浮立体
   --------------------------------------------------------------------- */
.m9texttitle{
  overflow:hidden;
}
.m9texttitle::after{
  content:"";
  position:absolute; top:0; left:-160%;
  width:55%; height:100%;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.55),transparent);
  transform:skewX(-18deg);
  pointer-events:none;
  animation:fxTitleShine 6s ease-in-out infinite;
}
@keyframes fxTitleShine{
  0%,68% { left:-160%; }
  100%   { left:170%;  }
}
.m9XYZY > li:hover .m9texttitle::after{
  animation:fxTitleShine .9s ease forwards;
}

/* 卡片内部列表项过渡更顺滑 */
.m9text li{
  transition:background-color .3s ease, color .3s ease, padding-left .3s ease;
}
.m9text li:hover{ padding-left:12px; }

/* ---------------------------------------------------------------------
   8. main4 新闻列表 —— 标题滑入 + 左侧渐变竖条
   --------------------------------------------------------------------- */
#d3 .news_title{
  display:block;
  position:relative;
  padding-left:14px;
  line-height:1.5;
  font-size:18px;
  font-weight:700;
  color:#1b2a6b;
}
#d3 .news_title::before{
  content:"";
  position:absolute; left:0; top:50%;
  width:4px; height:1.05em;
  border-radius:2px;
  background:linear-gradient(180deg,#3366cc,#00c2ff);
  transform:translateY(-50%);
}

#d4 li.news{
  position:relative;
  transition:background-color .3s ease;
}
#d4 li.news:hover{ background:rgba(51,102,204,.06); }
#d4 li.news .news_title{
  display:inline-block;
  transition:transform .35s var(--fx-ease), color .35s ease;
}
#d4 li.news:hover .news_title{
  transform:translateX(6px);
  color:#3366cc;
}
#d4 li.news .news_meta{
  transition:color .35s ease;
}
#d4 li.news:hover .news_meta{ color:#3366cc; }

/* 院长说专业播放图标呼吸脉冲 */
.post-26 .bf img{
  animation:fxPulse 2.4s ease-in-out infinite;
}
@keyframes fxPulse{
  0%,100%{ transform:scale(1);    filter:drop-shadow(0 0 0 rgba(0,194,255,0)); }
  50%    { transform:scale(1.12); filter:drop-shadow(0 0 10px rgba(0,194,255,.9)); }
}

/* ---------------------------------------------------------------------
   9. 图片 hover 统一遮罩渐变
   --------------------------------------------------------------------- */
.news_tu .news_box,
.post-26 .news_box,
.post-22 .news_box{
  border-radius:8px;
  overflow:hidden;
}
.news_tu .news_imgs::after,
.post-26 .news_imgs::after{
  content:"";
  position:absolute; left:0; top:0; right:0; bottom:0;
  background:linear-gradient(180deg,rgba(0,60,150,0) 45%,rgba(0,40,120,.45) 100%);
  opacity:0;
  transition:opacity .45s ease;
  pointer-events:none;
}
.news_tu .news_box:hover .news_imgs::after,
.post-26 .news_box:hover .news_imgs::after{
  opacity:1;
}

/* ---------------------------------------------------------------------
   10. 滚动入场动画（.fx-reveal 由 JS 自动添加）
   --------------------------------------------------------------------- */
.fx-js .fx-reveal{
  opacity:0;
  transform:translateY(46px);
  transition:opacity .85s var(--fx-ease), transform .85s var(--fx-ease);
  will-change:opacity, transform;
}
.fx-js .fx-reveal.fx-in{
  opacity:1;
  transform:translateY(0);
}

/* ---------------------------------------------------------------------
   11. 返回顶部按钮
   --------------------------------------------------------------------- */
.fx-backtop{
  position:fixed; right:28px; bottom:120px;
  width:52px; height:52px;
  border:0; padding:0; border-radius:50%;
  background:linear-gradient(135deg,#4d84e0,#1c4fb0);
  box-shadow:0 10px 24px rgba(28,79,176,.42);
  cursor:pointer;
  z-index:9000;
  opacity:0; pointer-events:none;
  transform:translateY(20px) scale(.8);
  transition:all .45s var(--fx-ease);
}
.fx-backtop.fx-show{ opacity:1; pointer-events:auto; transform:translateY(0) scale(1); }
.fx-backtop::before{
  content:"";
  position:absolute; left:50%; top:54%;
  width:12px; height:12px;
  border-left:2px solid #fff;
  border-top:2px solid #fff;
  transform:translate(-50%,-50%) rotate(45deg);
}
.fx-backtop:hover{
  transform:translateY(-4px) scale(1.07);
  box-shadow:0 16px 32px rgba(28,79,176,.55);
}

/* ---------------------------------------------------------------------
   12. 鼠标星光尾迹
   --------------------------------------------------------------------- */
.fx-spark{
  position:fixed;
  width:8px; height:8px; margin:-4px 0 0 -4px;
  border-radius:50%;
  background:radial-gradient(circle,#00c2ff 0%,rgba(51,102,204,0) 70%);
  pointer-events:none;
  z-index:99997;
  animation:fxSparkFade .8s ease-out forwards;
}
@keyframes fxSparkFade{
  0%  { transform:scale(1);   opacity:.9; }
  100%{ transform:scale(.15) translateY(-22px); opacity:0; }
}

/* ---------------------------------------------------------------------
   13. 无障碍：用户开启“减弱动态效果”时全部降级
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
    scroll-behavior:auto !important;
  }
  .fx-js .fx-reveal{ opacity:1; transform:none; }
}

/* =====================================================================
   修复 main3 底部数据模块在 PC 端超出被切掉的问题
   ===================================================================== */

/* 1. 容器设置：允许换行、居中对齐、限制宽度 */
.main3 .m3text10 {
  width: 100%;
  box-sizing: border-box;
  padding: 0 15px;
  display: flex;
  flex-wrap: wrap;       /* 允许换行 */
  justify-content: center;
  align-items: center !important; /* 让文字和数字底部对齐更整齐 */
  gap: 12px 24px !important; /* 上下间距12px，左右间距24px */
}

/* 2. 隐藏掉源码里那些多余的空 <li> 标签（它们极大地挤占了空间） */
.main3 .m3text10 > li:empty {
  display: none !important;
}

/* 3. 确保每一项内部不换行 */
.main3 .m3text10 > li {
  white-space: nowrap;
}

/* 4. 稍微收敛一下 PC 端的字号，防止一行塞不下 */
@media (min-width: 769px) and (max-width: 1350px) {
  .main3 .m3text10 .s7 { font-size: 34px !important; }
  .main3 .m3text10 .s1 { font-size: 16px !important; }
}

/* 5. 手机端更舒服的排版 */
@media (max-width: 768px) {
  .main3 .m3text10 {
    gap: 10px 12px !important;
  }
  .main3 .m3text10 .s7 { font-size: 28px !important; }
  .main3 .m3text10 .s1 { font-size: 15px !important; }
}

/* 6. 顺手修复一下上半部分：如果“办学历史”也超出了，让两个块换行居中 */
.main3 .m3text {
  flex-wrap: wrap;
  padding: 0 10px;
}
.main3 .m3text1 {
  margin-right: 0 !important; /* 去掉原代码里硬编码的 margin-right: 98px; */
  width: auto;
}


/* =====================================================================
   暴力修复 main3 底部数据模块被切偏的问题
   ===================================================================== */

/* 1. 修复上半部分偏右的问题：干掉原代码里硬编码的 98px 边距 */
.main3 .m3text1 {
    margin-right: 0 !important;
}
.main3 .m3text {
    display: flex !important;
    justify-content: center !important;
    padding: 0 !important;
    gap: 30px !important;
}

/* 2. 修复下半部分被切的问题 */
.main3 .m3text10 {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: baseline !important;
    margin: 30px auto 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 1200px !important;
    /* 关键：把原代码里的 gap 压小，防止挤出去 */
    gap: 15px 25px !important; 
    box-sizing: border-box !important;
}

/* 3. 干掉原代码里那些导致错位的空 <li> 标签 */
.main3 .m3text10 > li:empty {
    display: none !important;
}

/* 4. 强制重置内部的 <li>，清除所有的 margin 和浮动干扰 */
.main3 .m3text10 > li {
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    display: flex !important;
    align-items: baseline !important;
    white-space: nowrap !important; /* 强制文字和数字不换行 */
}

/* 5. 稍微把数字缩小一点，确保在 1366 等较小屏幕上也绝不会被切 */
.main3 .m3text10 .s7 {
    font-size: 32px !important;
    line-height: 1 !important;
}
.main3 .m3text10 .s1 {
    font-size: 16px !important;
    line-height: 1 !important;
}

/* 6. 手机端自适应 */
@media (max-width: 768px) {
    .main3 .m3text10 { gap: 10px 15px !important; }
    .main3 .m3text10 .s7 { font-size: 26px !important; }
    .main3 .m3text10 .s1 { font-size: 14px !important; }
}
/* 取消数字的倾斜 */
.main3 .s7, 
.main3 .s70 {
    font-style: normal !important;
}

