/* =========================================================
   漯医专题 · 页面级覆盖（不改动协和原版样式表）
   ========================================================= */

/* 1) 首屏主视觉：由 <img> 改为 CSS 背景图，用 cover 裁切代替拉伸，
      与 home3bg.png 等区块背景的连接方式一致 */
.banner .bgimg{
  background-image:url(../image/banner1.jpg);
  background-repeat:no-repeat;
  background-position:center center;
  background-size:cover;
}

/* 2) 鸟瞰图上半部偏亮，白色导航读不出来，加一层自上而下的压暗
      （位于图片之上、页头之下） */
.banner .bgimg::after{
  content:"";
  position:absolute;
  left:0;right:0;top:0;
  height:250px;
  background:linear-gradient(180deg, rgba(12,9,7,.78) 0%, rgba(12,9,7,.45) 45%, rgba(12,9,7,0) 100%);
  pointer-events:none;
}

/* 3) 影音区块的竖排标题图（71×1860）带有长竖线，按协和原页面让它自然
      延伸到下一区块，与「漯医历程」「漯医文化」的红色线条连成一条 */
.home3{
  overflow:visible;
}

/* ---- 漯医历程：按北京协和的版式统一 ----------------------------------
   背景同「今昔协和」（白底）；标题改用协和式图片标题并居中；
   模块内部保留「160·协和历程」的结构，仅调颜色以适配浅底。            */
.lc-sec.section3{
  background:#fff url(../image/temp/home4bg.png) no-repeat top center;
  background-size:100% auto;
  padding:calc(1.0 * var(--u)) 0 calc(1.15 * var(--u));
}
.lc-sec .wp{
  width:min(1460px, 92vw);
  margin:0 auto;
}
.lc-sec .lc-head-img{
  position:relative;
  z-index:2;
  text-align:center;
  margin:calc(0.55 * var(--u)) 0 calc(0.30 * var(--u));
}
.lc-sec .lc-head-img img{
  display:inline-block;
  width:209px;
  max-width:52%;
  height:auto;
}
/* 虚线引线原为米白色（配红底），浅底上反相为深色 */
.lc-sec .s3-line-text img{
  filter:invert(1);
  opacity:.55;
}

/* 1) 年份刻度：Swiper 默认给 .swiper-slide 加了 overflow:hidden，
      把落在 slide 下沿的年份刻度裁掉了，这里放开（横向仍由容器裁切） */
.lc-sec .s3-bottom .swiper-slide{overflow:visible;}

/* 线稿底纹在标题区域压一层白，保证「漯医历程」四字清楚 */
.lc-sec.section3::before{
  content:"";
  position:absolute;
  left:0;right:0;top:0;
  height:calc(1.5 * var(--u));
  background:linear-gradient(180deg, rgba(255,255,255,.9) 0%, rgba(255,255,255,.45) 55%, rgba(255,255,255,0) 100%);
  pointer-events:none;
  z-index:1;
}
.lc-sec .wp{position:relative;z-index:2;}


/* ---- 5) 放大弹窗：改为视口固定、居中、关闭按钮固定在右上角 -------------- */
.lc-sec .s3-popup{
  position:fixed;
  top:0;left:0;
  width:100%;height:100%;
  background:rgba(0,0,0,.82);
}
.lc-sec .s3-popup-inner{padding:0;}
.lc-sec .s3-popup .picbox{
  width:auto;height:auto;
  max-width:86vw;max-height:82vh;
}
.lc-sec .s3-popup .picbox img{
  position:static;
  transform:none;
  max-width:86vw;max-height:82vh;
  object-fit:contain;
  box-shadow:0 18px 60px rgba(0,0,0,.45);
}
.lc-sec .s3-popup .close-btn{
  top:26px;right:30px;
  width:46px;height:46px;
  border-radius:50%;
  background:rgba(255,255,255,.14);
}
.lc-sec .s3-popup .close-btn::before,.lc-sec .s3-popup .close-btn::after{
  width:22px;height:2px;
}

/* ---- 6) 放大镜按钮：蓝底改枣红 ---- */
.lc-sec .s3-zoom-btn{
  background:linear-gradient(-30deg,#7C1F19 0%,#A93226 100%);
  box-shadow:0 10px 22px rgba(124,31,25,.32);
}
.lc-sec .s3-zoom-btn:hover{
  box-shadow:0 14px 28px rgba(124,31,25,.42);
}

/* ---- 7) 影音：把圆盘上的音符/音频徽标统一换成视频播放键 ---- */
.home3 .con .rt .item2 .play,
.home3 .con .rt .item3 .play{position:relative;}

.home3 .con .rt .item2 .play::before,
.home3 .con .rt .item3 .play::before{
  content:"";
  position:absolute;
  left:50%;top:50%;
  transform:translate(-50%,-50%);
  width:125px;height:125px;   /* 与原 play 图同尺寸，完整覆盖底层音符图 */
  border-radius:50%;
  background:linear-gradient(180deg,#F3DDB7 0%,#E7CE86 100%);
  box-shadow:0 6px 16px rgba(120,80,30,.22);
}
.home3 .con .rt .item2 .play::after,
.home3 .con .rt .item3 .play::after{
  content:"";
  position:absolute;
  left:50%;top:50%;
  transform:translate(-45%,-50%);
  width:0;height:0;
  border-left:28px solid #fff;
  border-top:18px solid transparent;
  border-bottom:18px solid transparent;
  filter:drop-shadow(0 1px 2px rgba(120,70,20,.35));
}

/* ---- 8) 红色装饰线：只保留竖排标题图自带的那条竖线 -------------------
   原先另有一段 CSS 画的 .lc-corner 把竖线续到「漯医文化」标题横线上，
   按最新要求整段移除，竖线到竖排标题图底部为止，不再向横线延伸。 */


/* ---- 9) 侧边栏：色块缩小、整体下移到合适高度 ----
   global.js 的 scrollShow() 会再设一次 margin-top:-height/2，
   与 CSS 的 translateY(-50%) 叠加后等于整体上移了一个半高，这里抵掉。
   right：保留原设计"贴边露一条、悬停滑出"的交互，但色块缩小后总宽只有 52px，
   原 -57px 会把整条推出屏幕（连悬停都点不到），所以改成 -38px，
   露出 14px 可点击的边条，hover 时由 global.css 的 .x-sidebar:hover{right:0} 滑出。 */
.x-sidebar{top:58%;margin-top:0 !important;right:-38px;}
.x-sidebar .side-item{padding:6px;border-radius:4px;}
.x-sidebar .side-item + .side-item{margin-top:4px;}
.x-sidebar .side-unit{width:40px;height:40px;}
.x-sidebar .side-unit .middle-cont{font-size:12px;line-height:1.25;}


/* ---- 10) 首屏主视觉：110 周年字样（版式参考建院160周年页） ----------------
   三级信息：巨大「110 周年」/ 中文一行（院名 + 建院110周年）/ 英文一行（院名 + 年份）
   文字用金色渐变裁切上色，靠一层柔和暗压提亮可读性，不遮挡下方建筑。       */

/* 主标题专用字：思源宋体 Heavy（SIL OFL，可自由嵌入与子集化）。
   只切了「0-9 周 年」12 个字形，woff2 仅 1.6KB，不影响首屏加载；
   若浏览器未拿到该字体，回落到本机思源宋体 / 方正小标宋 / 宋体加粗。 */
@font-face{
  font-family:"yqSerifHeavy";
  src:url(../fonts/yq-serif-heavy.woff2) format("woff2");
  font-weight:400 900;
  font-display:swap;
}

.banner .bn-scrim{
  position:absolute;
  left:0;right:0;top:0;
  height:76%;
  background:
    radial-gradient(84% 54% at 50% 38%, rgba(5,7,14,.56) 0%, rgba(5,7,14,.34) 52%, rgba(5,7,14,0) 100%),
    linear-gradient(180deg, rgba(5,7,14,.40) 0%, rgba(5,7,14,.32) 52%, rgba(5,7,14,0) 100%);
  pointer-events:none;
  z-index:1;
}
.banner .bn-hd{
  position:absolute;
  left:0;right:0;
  top:50%;
  transform:translateY(-50%);   /* 整块在首屏垂直居中 */
  z-index:2;
  text-align:center;
  pointer-events:none;
  font-family:"yqSerifHeavy", "Bodoni MT", Didot, Georgia, "Times New Roman", serif;
}

.banner .bn-hd .n,
.banner .bn-hd .u,
.banner .bn-hd .bn-cn,
.banner .bn-hd .bn-en{
  background-image:linear-gradient(180deg,#FDF6E5 0%,#F3E2BC 30%,#E2C58C 62%,#C89C58 100%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  color:#E7CE86;                 /* 不支持 background-clip 时的兜底 */
  filter:drop-shadow(0 2px 5px rgba(0,0,0,.80)) drop-shadow(0 8px 26px rgba(0,0,0,.55));
}

.banner .bn-num{
  display:flex;
  align-items:baseline;
  justify-content:center;
  line-height:1;
}
.banner .bn-num .n{
  font-family:"yqSerifHeavy","Source Han Serif SC","Noto Serif SC","FZXiaoBiaoSong-B05S","SimSun",serif;
  font-size:clamp(100px, 15.1vw, 290px);
  font-weight:900;
  letter-spacing:-.01em;
  text-indent:-.01em;
}
.banner .bn-num .u{
  font-family:"yqSerifHeavy","Source Han Serif SC","Noto Serif SC","Songti SC","STSong","SimSun",serif;
  font-size:clamp(42px, 6.45vw, 124px);
  font-weight:900;
  margin-left:.13em;
  letter-spacing:.02em;
}

.banner .bn-cn{
  margin-top:clamp(14px, 1.85vw, 34px);
  font-family:"yqSerifHeavy","Source Han Serif SC","Noto Serif SC","Songti SC","STSong","SimSun",serif;
  font-size:clamp(19px, 2.36vw, 45px);
  font-weight:900;
  letter-spacing:.16em;
  text-indent:.16em;
  line-height:1.2;
}
.banner .bn-cn .gap{display:inline-block;width:1.2em;}

.banner .bn-en{
  margin-top:clamp(10px, 1.16vw, 22px);
  font-family:"yqSerifHeavy",Georgia, "Times New Roman", serif;
  font-size:clamp(14px, 1.55vw, 30px);
  font-weight:900;
  letter-spacing:.2em;
  text-indent:.2em;
  line-height:1.2;
  opacity:.95;
}
.banner .bn-en .dot{
  font-style:normal;
  font-size:.42em;
  vertical-align:.3em;
  margin:0 .85em;
}

@media screen and (max-width:768px){
  .banner .bn-hd{top:12%;}
  .banner .bn-scrim{height:78%;}
}


/* ---- 11) 漯医文化：中间大图右移；使命 / 愿景 / 漯医精神 提到图之上 ----
   原 left:210px（页面 x 432..1481）压住了「使命」(x…466) 与「愿景」(x…524)。
   右移到 left:312px（页面 x 534..1583），左缘正好让开愿景的右边界；
   同时把这三块遮罩的层级抬到大图之上（图 z-index 由 2 降为 1），
   这样即便有交叠也是"色块压图"，与原版"色块压在照片上"的层次一致。 */
.home5 .bottom .img{left:312px;z-index:1;}
.home5 .bottom .lf .item:nth-child(3),   /* 使命 */
.home5 .bottom .lf .item:nth-child(4),   /* 愿景 */
.home5 .bottom .lf .item:nth-child(7){   /* 漯医精神 */
  z-index:2;
}


/* ---- 12) 动画系统（沿用协和页那套 WOW.js + animate.css，不额外引入库）----
   分工：栏目标题 fadeInDown / 正文与图片 fadeInUp / 竖排标题与两侧 fadeInLeft·Right /
   数据与卡片 fadeIn + 错峰 data-wow-delay。已有动画的节点保持原样，只补此前无动画的
   首屏三行、新闻两列、数读 17 格、漯医历程整块。 */

/* 弱化动效偏好：系统开启"减少动态效果"时只保留淡入，去掉位移 */
@media (prefers-reduced-motion: reduce){
  .banner .bn-num.animated,
  .banner .bn-cn.animated,
  .banner .bn-en.animated,
  .home1 .list1.animated,
  .home1 .list2.animated,
  .lc-sec .s3-big-year.animated{
    animation-name:fadeIn !important;
  }
}

/* ---- 13) 页底：备案信息 + 微信公众号/预约挂号二维码 --------------------
   沿用 zfhome.css 的 .x-footer（233px 红底、居中白字），只补一层两列骨架：
   左侧为地址 / 电话 / 版权 / 备案号（备案号外链工信部与公安备案平台），
   右侧为两张二维码，统一放在白色卡片上，避免深色码压在红底上识别率下降。 */
.x-footer .ft-in{
  width:min(1160px, 92vw);
  gap:60px;
}
.x-footer .ft-in .text{
  text-align:left;
}
.x-footer .ft-in .text .p{
  line-height:1.95;
}
.x-footer .ft-in .text .p a:first-child{
  padding-left:0;
}
.x-footer .ft-in .text .p a:first-child{
  padding-left:0;
}
.x-footer .ft-in .text .p.p1 a{
  padding-left:5px;
  padding-right:5px;
  opacity:.92;
}
.x-footer .ft-in .text .p.p1 a:first-child{
  padding-left:0;
}
.x-footer .ft-in .text .p.p1 a:first-child{
  padding-left:0;
}
.x-footer .ft-in .text .p.p1 a:hover{
  opacity:1;
  text-decoration:underline;
}
.x-footer .ft-qr{
  gap:26px;
  flex:0 0 auto;
}
.x-footer .ft-qr .q{
  width:106px;
  text-align:center;
}
.x-footer .ft-qr .q .pic{
  background:#fff;
  padding:6px;
  border-radius:3px;
  line-height:0;
  box-shadow:0 2px 10px rgba(0,0,0,.18);
}
.x-footer .ft-qr .q .pic img{
  display:block;
  width:94px;
  height:auto;
}
.x-footer .ft-qr .q span{
  display:block;
  margin-top:9px;
  font-size:14px;
  line-height:1;
  letter-spacing:.08em;
  color:#fff;
  opacity:.92;
}
@media screen and (max-width:900px){
  .x-footer .ft-in{
    flex-direction:column;
    gap:22px;
  }
  .x-footer .ft-in .text{
    text-align:center;
  }
}
