/* =========================================================
   厦门工学院 具身智能产业学院 — 首页样式
   风格参照 010563 模板：蓝色门户风 + 云朵底纹
   ========================================================= */

:root {
  --blue: #2263C4;          /* 主蓝：栏目签、日期块 */
  --blue-dark: #174E93;     /* 深蓝：页头渐变深端 */
  --blue-nav: #1B5AA6;      /* 导航条蓝 */
  --blue-light: #E8F1FB;    /* 浅蓝：按钮底 */
  --blue-border: #C9DCF2;   /* 浅蓝描边 */
  --orange: #F5A623;        /* 强调橙：搜索钮、轮播页码 */
  --text: #333;
  --muted: #8A97A6;
  --line: #E1EAF4;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font: 15px/1.75 "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  overflow-x: hidden; /* 兜底：小屏下避免个别元素把页面撑出横向滚动条 */
  /* 云朵底纹：按视口比例分布的白色云雾 + 浅蓝底，贴近模板的蓝天白云氛围 */
  background:
    radial-gradient(ellipse 48% 28% at 10% 6%,  rgba(255,255,255,.85) 0%, rgba(255,255,255,0) 70%),
    radial-gradient(ellipse 42% 24% at 86% 16%, rgba(255,255,255,.78) 0%, rgba(255,255,255,0) 68%),
    radial-gradient(ellipse 46% 26% at 24% 30%, rgba(255,255,255,.70) 0%, rgba(255,255,255,0) 70%),
    radial-gradient(ellipse 50% 28% at 78% 44%, rgba(255,255,255,.75) 0%, rgba(255,255,255,0) 70%),
    radial-gradient(ellipse 44% 24% at 14% 58%, rgba(255,255,255,.68) 0%, rgba(255,255,255,0) 68%),
    radial-gradient(ellipse 48% 26% at 88% 72%, rgba(255,255,255,.75) 0%, rgba(255,255,255,0) 70%),
    radial-gradient(ellipse 46% 26% at 30% 86%, rgba(255,255,255,.70) 0%, rgba(255,255,255,0) 70%),
    radial-gradient(ellipse 42% 24% at 82% 96%, rgba(255,255,255,.80) 0%, rgba(255,255,255,0) 68%),
    linear-gradient(180deg, #C6DDF5 0%, #DDEBF9 35%, #EAF4FC 70%, #E4F0FB 100%);
  background-attachment: fixed;
}

.container { max-width: 1300px; margin: 0 auto; padding: 30px 16px; }
a { text-decoration: none; color: inherit; transition: color .2s; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

[hidden] { display: none !important; }

.main-bcg {
  background: url(../images/robots-cross.png) center top / 100% auto no-repeat, linear-gradient(180deg, #E2EDF9 0%, #EAF4FC 55%, #E4F0FB 100%);
  background-position: center bottom;
}

/* ---------------- 栏目标题（蓝色签 + 贯穿线） ---------------- */
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  border-bottom: 2px solid var(--blue); margin-bottom: 16px;
}
.sec-tab {
  background: var(--blue); color: #fff; font-size: 19px; font-weight: 700;
  letter-spacing: 3px; padding: 9px 24px; border-radius: 2px 2px 0 0;
}
.more { color: #98A5B4; font-size: 14px; padding-bottom: 7px; }
.more:hover { color: var(--blue); }

/* ---------------- 页头 ---------------- */
.site-header { margin-top: 24px; background: linear-gradient(135deg, #2F76C6 0%, #1B5AA6 55%, #174E93 100%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 24px 16px; }
.header-bcg {
     background: url(../images/header-robots.jpg);
    background-size: 100% 100%;
}
/* 标识图：单张横图，整幅含「校徽 + 厦门工学院（书法中英文）+ 私立大學印章 + 分隔竖线 + 院名」，
   由 Python/Pillow 脚本合成（3x 源 1779x174，宽高比 10.22:1，透明底，专为深色页头设计）。
   页面上整幅等比缩放 —— 院名字号已无法单独设置，随图高同步变化：
   图高 58px 时院名 29px，与合成前的 CSS 文字渲染结果逐像素对齐。
   用 height 定高、width 自适应；object-fit:contain 保证被窄屏挤压时等比缩小而不是拉扁。
   合成参数（源图按 3x 绘制）：微软雅黑 Bold 87px、字距 15px、与校标间距 48px、
   竖线 3px rgba(255,255,255,.35)、文字左内边距 48px、行盒高 117px（29*1.35*3）；
   基线 = (174-117)/2 + 半行距 + ascent - 1（末位 -1 是逐像素配准扫描出的实测校准量）。 */
.brand { display: flex; align-items: center; min-width: 0; }
.brand img {
  height: 60px; width: auto; max-width: 100%; min-width: 0;
  object-fit: contain; object-position: left center;
}

.header-tools { display: flex; align-items: center; gap: 18px; }
.search-form {
  display: flex; align-items: center; background: #fff; border-radius: 999px;
  padding: 5px 5px 5px 18px; width: 290px;
}
.search-form input {
  border: 0; outline: none; flex: 1; min-width: 0;
  font-size: 15px; color: #555; background: transparent;
}
.search-form input::placeholder { color: #AAB6C4; }
.search-form button {
  width: 32px; height: 32px; border-radius: 50%; border: 0; flex: 0 0 auto;
  background: var(--orange); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* ---------------- 主导航 ---------------- */
.main-nav { background: linear-gradient(180deg, #2063B8, #1B5AA6); }
.nav-list { display: flex; }
.nav-list li { flex: 1; text-align: center; position: relative; }

.nav-list a {
  display: block; color: #fff; font-size: 19px; letter-spacing: 2px; padding: 15px 0;
  transition: background .2s;
}
.nav-list a:hover, .nav-list a.active { background: #2F76C6; }
.nav-list >li>a {
  font-weight: bold;
}

/* 鼠标移到下拉层上时父项要"续上"高亮，否则从父项移入子菜单父项就熄火了。
   用「li:hover」而非类名锚点：下拉层 .sub-nav 是 li 的后代，鼠标停在它上面时 li 仍处于
   :hover，续亮自然成立；没有子菜单的 li 早被 .nav-list a:hover 覆盖，不会多出样式。 */
.nav-list > li:hover > a,
.nav-list > li:focus-within > a { background: #2F76C6; }

.sub-nav {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 60;
  padding: 6px 0; background: #fff; border-radius: 0 0 3px 3px;
  box-shadow: 0 10px 22px rgba(14,42,79,.18);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
/* 下拉层显隐：只要 li 里真的有 .sub-nav 就会展开，无需额外的状态类 */
.nav-list > li:hover > .sub-nav,
.nav-list > li:focus-within > .sub-nav { opacity: 1; visibility: visible; transform: translateY(0); }
/* 下拉层里的 li 不能继承主导航的 flex:1 与白字，也不要竖分隔线 */
.nav-list .sub-nav li { flex: none; }
.nav-list .sub-nav li + li::before { display: none; }
.nav-list .sub-nav a { padding: 9px 12px; font-size: 15px; font-weight: 400; letter-spacing: 1px; color: #33475C; }
.nav-list .sub-nav a:hover { background: var(--blue-light); color: var(--blue); }

/* ---------------- 导航容器与「移动端抽屉」开关 ---------------- */
.nav-bar { display: flex; align-items: stretch; padding: 0;}
/* .nav-drawer 在桌面端只是「包一层」：它替原先的 .nav-list 当 .nav-bar 的 flex 子项，
   自己再当 flex 容器把 .nav-list 拉伸到满高 —— 与改造前 ul 直接被拉伸的几何相同。 */
.nav-drawer { flex: 1 1 auto; display: flex; min-width: 0; }
.nav-list { width: 100%; }
.nav-toggle, .drawer-head, .nav-mask { display: none; }



/* ---------------- 首屏：欢迎主图轮播（slick 驱动，支持图片 / 视频） ---------------- */
.main1 {
  margin-top: 16px;
}
.hero-slider {
  position: relative; height: 630px; border-radius: 3px; overflow: hidden;
  background: #0E2A4F;
}
/* slick 生成的 list / track 需要撑满容器高度 */
.hero-slider .slick-list, .hero-slider .slick-track { height: 100%; }
/* slick 初始化前，避免多个 slide 纵向堆叠闪烁 */
.hero-slider:not(.slick-initialized) > .hero-item ~ .hero-item { display: none; }
.hero-item { position: relative; height: 100%; }

.hero-item .hero-media { position: relative; width: 100%; height: 100%; }
.hero-item .hero-media img, .hero-item .hero-media video {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; object-fit: cover;
}

/* ---------------- 轮播：手动滑动 / 触摸优化 ---------------- */
/* slick.css 里「touch-action」那一行是被注释掉的。浏览器默认把触摸手势交给页面滚动，
   手指稍微一斜就被判为纵向滚动、touchmove 随即被 cancel，表现就是「滑不动」。
   pan-y = 纵向仍交给页面滚动，横向留给轮播 —— 手机上既不误触翻页，也能顺畅左右滑。 */
.hero-slider .slick-list, .feature-slider .slick-list { touch-action: pan-y; }
/* 桌面端按住拖动的手型反馈 */
.hero-slider .slick-list { cursor: grab; }
.hero-slider .slick-list.dragging { cursor: grabbing; }
/* 禁止图片 / 视频的原生拖拽：否则浏览器会先把 mousedown 变成原生 drag，
   slick 的鼠标拖动翻页会中途失效，还会拖出半透明的「幽灵图」 */
.hero-slider img, .hero-item video, .feature-item img { -webkit-user-drag: none; }

/* 视频型轮播项角标 */
.hero-badge {
  position: absolute; top: 16px; left: 16px; z-index: 3;
  background: rgba(23,78,147,.85); color: #fff; font-size: 14px;
  padding: 4px 14px; border-radius: 3px; letter-spacing: 1px;
}

.hero-item .hero-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 56px 86px 26px 30px; color: #fff;
  background: linear-gradient(transparent, rgba(10,35,70,.78));
}
.hero-item strong { font-size: 27px; letter-spacing: 3px; display: block; }
.hero-item span { font-size: 13px; letter-spacing: 2px; opacity: .85; }


.hero-slider .slick-prev, .hero-slider .slick-next {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 68px; margin: 0; padding: 0; border: 0; border-radius: 0;
  outline: none; cursor: pointer; background: #0000009e;;
  color: transparent; font-size: 0; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s;
}
.hero-slider .slick-prev { left: 0; }
.hero-slider .slick-next { right: 0; }
.hero-slider .slick-prev:hover, .hero-slider .slick-next:hover { background: var(--blue); }
.slick-prev, .slick-next {display:none !important;}
.hero-slider:hover .slick-next,.hero-slider:hover .slick-prev {display:block !important;}
/* 箭头符号用伪元素绘制，避开按钮内的 "Previous" / "Next" 文本 */
.hero-slider .slick-prev:before, .hero-slider .slick-next:before {
  content: "‹"; font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 28px; line-height: 1; color: #fff; opacity: 1;
}
.hero-slider .slick-next:before { content: "›"; }

/* 底部指示点：slick 生成的圆点 */
.hero-slider .slick-dots {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  width: auto; margin: 0; padding: 0; display: flex; gap: 10px; z-index: 3;
}
.hero-slider .slick-dots li {
  width: 12px; height: 12px; margin: 0; padding: 0; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.9); background: rgba(255,255,255,.35);
  cursor: pointer; transition: background .25s;
}
.hero-slider .slick-dots li.slick-active { background: var(--orange); border-color: var(--orange); }
/* 注意：本项目所用精简版 slick 的 changeSlide 用 $(event.target).parent().index() 取索引，
   即「点击目标的父元素必须是 li」。所以 button 不能隐藏，必须让它透明铺满 li，
   否则点到的是 li 本身，parent() 变成 <ul>，index() 恒为 0 —— 点哪个点都只会跳回第 1 张。
   外观仍由 li 的背景色与描边呈现，button 只负责接住点击。 */
.hero-slider .slick-dots li button {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  width: auto; height: auto; margin: 0; padding: 0; border: 0;
  background: none; font-size: 0; line-height: 0; color: transparent;
  cursor: pointer;
}

/* ---------------- 新闻动态：双栏 ---------------- */
/* 距上方首屏轮播留出更宽的呼吸区；左图占 2 份、右侧列表占 1 份 */
/* 注意：必须写成 minmax(0, Nfr)，否则右侧 nowrap 的标题/摘要会把该列 min-content 顶宽，比例被挤偏 */
.news-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 30px; }

/* 左：单篇头图，三篇滚动（撑满右栏高度，两侧底边对齐） */
.news-feature { display: flex; flex-direction: column; }
.feature-slider {
  position: relative; flex: 1 1 auto;
  border-radius: 3px; overflow: hidden; background: #0E2A4F;
}
.feature-slider .slick-list, .feature-slider .slick-track { height: 100%; }
.feature-slider:not(.slick-initialized) > .feature-item ~ .feature-item { display: none; }
.feature-item { position: relative; height: 100%; }
.feature-item img { width: 100%; height: 100%; object-fit: cover; }
.feature-item .feature-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 36px 16px 34px; color: #fff; font-size: 16px; font-weight: 700;
  letter-spacing: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: linear-gradient(transparent, rgba(10,35,70,.8));
}

/* 右下角数字页码：slick 生成，数字由 li 内的 button 承载
   （不要改成 li::before + counter 并把 button 隐藏 —— 那样点击会失效，原因见上） */
.feature-slider .slick-dots {
  position: absolute; right: 14px; bottom: 12px; left: auto; width: auto;
  margin: 0; padding: 0; display: flex; gap: 7px; z-index: 2;
}
.feature-slider .slick-dots li {
  width: 21px; height: 21px; margin: 0; padding: 0; border: 0; border-radius: 2px;
  background: rgba(255,255,255,.45); cursor: pointer;
  transition: background .25s;
}
.feature-slider .slick-dots li.slick-active { background: var(--orange); }
.feature-slider .slick-dots li button {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  width: auto; height: auto; margin: 0; padding: 0; border: 0;
  background: none; color: #fff; font-size: 13px; line-height: 1;
  font-family: inherit; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* 右：近期列表（平铺在底纹上，不用卡片） */
.news-list-panel { padding: 0; }
.news-top li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.news-top li:last-child { border-bottom: 0; }
.date-box {
  flex: 0 0 50px; width: 50px; height: 50px; background: var(--blue);
  border-radius: 2px; color: #fff; text-align: center; overflow: hidden;
}
.date-box b { display: block; font-size: 18px; line-height: 1.15; margin-top: 5px; }
.date-box i { display: block; font-style: normal; font-size: 12px; opacity: .85; }
.news-top .txt { min-width: 0; }
.news-top .news_title a{
  font-weight: 700; font-size: 16px; line-height: 1.5; display: block;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.news-top a:hover { color: var(--blue); }
.news-top p { color: var(--muted); font-size: 13px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.news-plain li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.news-plain li:last-child { border-bottom: 0; }
.news-plain a { font-size: 15px; display: flex; align-items: center; min-width: 0; }
.news-plain a::before { content: ""; width: 4px; height: 4px; background: var(--blue); margin-right: 9px; flex: 0 0 auto; }
.news-plain a span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.news-plain a:hover { color: var(--blue); }
.news-plain time { color: #A6B2C0; font-size: 13px; flex: 0 0 auto; margin-left: 14px; }

/* ---------------- 三栏：人才培养 | 通知公告 | 友情链接 ---------------- */
.tri-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; align-items: start;    padding: 18px 20px;background: rgba(255, 255, 255, .52);}
.panel { padding: 0; }

/* 人才培养：与通知公告同构（日期块 + 文字） */
.link-list li { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.link-list li:last-child { border-bottom: 0; }

.link-list .date-box b { font-size: 17px; margin-top: 5px; }
.link-list a { font-size: 16px; line-height: 1.55; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.link-list a:hover { color: var(--blue); }

/* 通知公告：日期移到右侧的单行文字日期，去掉蓝色方块（与列表页 list.html 同款）
   注意：本栏是三栏中的一栏，1440 下仅 369px 宽。单行日期连缩进占 87px，标题只剩 270px，
   19 字以上的长标题放不下 —— 故标题取单行省略（配 title 属性可悬停看全称），
   而不是折两行留一个孤字、也不是压成两行日期（那样标题能放全但日期变两行）。 */
.notice-list li { display: flex; align-items: baseline; gap: 11px; padding: 20px 0; border-bottom: 1px solid var(--line);justify-content: space-between;}
.notice-list li:last-child { border-bottom: 0; }
.notice-list a {
  flex: 1 1 auto; max-width: 316px; font-size: 16px; line-height: 1.6;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;display: block;
}
.notice-list a:hover { color: var(--blue); }
.notice-date {
  font-size: 13px; line-height: 1; color: #7B8A99;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: .2px; white-space: nowrap;
}
.tri-row .news_title {
  max-width: 80%;
}

/* 友情链接：列表语义 ul > li > a。
   原来每个 a 自带 margin-bottom，改结构后把这层行间距交给 li ——
   a 是整块按钮，外边距留在 li 上语义更干净（li 负责排布，a 负责外观）。 */
.friend-links li { margin-bottom: 12px; }
.friend-links li:last-child { margin-bottom: 0; }
.friend-links a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--blue-light); border: 1px solid var(--blue-border); border-radius: 2px;
  padding: 13px; color: var(--blue); font-size: 16px; transition: .25s;
}
.friend-links a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.friend-links a::before {
  content: ""; width: 16px; height: 16px; background: currentColor; flex: 0 0 auto;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ---------------- 学院风采：向左滚动 ---------------- */
.gallery { overflow: hidden; }
.gallery-track { display: flex; width: max-content; }
.gallery-track.is-rolling { animation: marquee 28s linear infinite; }
.gallery:hover .gallery-track.is-rolling { animation-play-state: paused; }
.gallery-item { width: 300px; margin-right: 20px; }


.gallery-track.is-static { margin: 0 auto; max-width: 100%; }
.gallery-track.is-static .gallery-item { flex-shrink: 1; min-width: 0; }
.gallery-track.is-static .gallery-item:last-child { margin-right: 0; }
.gallery-item .ph {display: block; border-radius: 2px; overflow: hidden; background: #0E2A4F; }
.gallery-item img { width: 100%; height: 180px; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item p { text-align: center; margin-top: 10px; font-size: 15px; color: #4A5A6A; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------- 快捷导航 ---------------- */
.quick-nav {
  display: flex; align-items: center; flex-wrap: wrap; gap: 14px;
  border-top: 2px solid var(--blue); padding-top: 18px;
}
.quick-nav strong { color: var(--blue-dark); font-size: 16px; letter-spacing: 1px; margin-right: 6px; }

.quick-links { display: contents; }
.quick-links li { display: flex; margin-right: 16px;}
.quick-nav a {
  background: var(--blue-light); border: 1px solid var(--blue-border); border-radius: 2px;
  padding: 9px 20px; font-size: 15px; color: var(--blue); transition: .25s;
}
.quick-nav a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------------- 页脚 ---------------- */
/* .site-footer { margin-top: 40px; } */
.footer-info {
  background: linear-gradient(90deg, #1E5CA9, #174E93); color: rgba(255,255,255,.92);
  text-align: center; padding: 24px 16px; font-size: 14px; letter-spacing: 1px;
}
.footer-info span { margin: 0 16px; white-space: nowrap; }
.footer-copy { background: #113C73; color: rgba(255,255,255,.55); text-align: center; font-size: 13px; padding: 14px 16px; }

/* =========================================================
   响应式：电脑端（>1024） / 平板端（641–1024） / 手机端（≤640）
   断点说明：
     ≤1024  平板横屏、小笔记本 —— 收字号与留白，布局结构不变
     ≤860   平板竖屏、大屏手机 —— 主栏全部单列
     ≤640   手机 —— 进一步收紧尺寸与控件
   ========================================================= */

/* ---------------- 平板横屏 / 小笔记本 ---------------- */
@media (max-width: 1024px) {
  .container { margin: 24px auto; }
  .brand-logo { height: 50px; }
  .nav-list a { font-size: 16px; padding: 13px 0; }
  .hero-slider { height: 400px; }
  .hero-item strong { font-size: 23px; }

  .news-row, .tri-row { gap: 24px; }
  .news-row { margin-top: 54px; }
  /* 三栏在 ≤1024 还没塌成单栏，通知公告这一栏只剩约 310px，单行标题会被截掉十来个字。
     这一段放宽为折两行（line-clamp:2）：宁可行高略有参差，也不丢字。 */
  .notice-list a { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .notice-list li { align-items: center; }
}
/* ---------------- 平板竖屏 / 大屏手机：主栏单列 ---------------- */
@media (max-width: 860px) {
  /* 页头在移动端只剩「品牌」一行 —— 搜索框被脚本搬进了下方导航条左侧（见 .nav-bar 段），
     页头高度因此再省一行。.search-form 的宽度仍留一档，作为脚本未生效时的兜底。 */
  .header-inner { flex-direction: column; gap: 14px; padding: 20px 16px; }
  .header-tools { width: 100%; justify-content: flex-start; }
  .search-form { width: 240px; max-width: 100%; }

  /* ---------- 导航：收成一行「导航 + 三横线」按钮，点击从右侧滑入抽屉 ---------- */
  body.nav-open { overflow: hidden; }        /* 抽屉展开时锁住背景滚动 */
  .main-nav .nav-bar { margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 16px; }
  .nav-bar .search-form { flex: 1 1 auto; width: auto; min-width: 0; max-width: 400px; }


  .nav-toggle {
    display: flex; align-items: center; justify-content: center; gap: 14px;
    flex: 0 0 auto; margin-left: auto; padding: 13px 0 13px 6px;
    border: 0; background: none; border-radius: 4px;
    color: #fff; font-size: 20px; font-weight: 700; letter-spacing: 4px;
    font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  /* letter-spacing 会在最后一个字后面也留空隙，使整组看起来偏左，补回来 */
  .nav-toggle-txt { padding-left: 4px; }
  /* 三横线：宽 40px、线粗 4px、间隙 4px，整体高度与「导航」字高相当 */
  .nav-toggle-bars { display: flex; flex-direction: column; justify-content: space-between; width: 40px; height: 20px; }
  .nav-toggle-bars b { display: block; height: 4px; border-radius: 2px; background: #fff; }
  .nav-toggle:active { background: rgba(255,255,255,.1); }

  /* 遮罩：铺满视口，点击任意处收起 */
  .nav-mask {
    display: block; position: fixed; inset: 0; z-index: 190;
    background: rgba(10,32,60,.45);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  body.nav-open .nav-mask { opacity: 1; visibility: visible; }

  /* 抽屉本体：面板资格从 .nav-list 移到外层 .nav-drawer ——
     「导航 + 关闭」头部条与菜单列表现在是兄弟节点，滑动的是整块面板。 */
  .nav-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 200;
    display: block; width: min(80vw, 300px); padding: 0;
    background: #fff; overflow-y: auto; -webkit-overflow-scrolling: touch;
    box-shadow: -10px 0 30px rgba(14,42,79,.3);
    transform: translateX(101%); transition: transform .3s cubic-bezier(.4,0,.2,1);
  }
  body.nav-open .nav-drawer { transform: translateX(0); }

  /* 菜单列表：面板内部的普通块级列表，纵向堆叠 */
  .nav-list { display: block; width: auto; }

  /* 抽屉头部：深蓝条 + 关闭按钮 */
  .nav-drawer .drawer-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 15px 16px; color: #fff; text-align: left;
    background: linear-gradient(135deg, #2F76C6 0%, #1B5AA6 100%);
  }
  .drawer-head strong { font-size: 17px; font-weight: 700; letter-spacing: 4px; }
  .drawer-close {
    display: flex; align-items: center; justify-content: center;
    border: 0; background: none; padding: 5px;
    color: #fff; cursor: pointer; opacity: .9;
  }
  .drawer-close:hover, .drawer-close:active { opacity: 1; }

  /* 一级菜单项：白底深字、左对齐；抽屉里子菜单常驻展开（见下方 .sub-nav 复位） */
  .nav-list > li > a {
    display: flex; align-items: center; padding: 14px 18px;
    font-size: 16px; letter-spacing: 1px; text-align: left;
    color: #25323F; border-bottom: 1px solid var(--line);
  }
  .nav-list > li > a:hover, .nav-list > li > a.active { background: var(--blue-light); color: var(--blue); }

  /* 子菜单：浅蓝底 + 缩进 + 圆点，与一级项区分层次 */
  .nav-list .sub-nav {
    position: static; opacity: 1; visibility: visible; transform: none;
    padding: 4px 0; border-radius: 0; box-shadow: none;
    background: #F5F9FE; border-bottom: 1px solid var(--line);
  }
  .nav-list .sub-nav li { flex: none; }
  .nav-list .sub-nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 18px 11px 34px; font-size: 14px; letter-spacing: 0; text-align: left;
    color: #5A6B7C; border: 0;
  }
  .nav-list .sub-nav a::before {
    content: ""; flex: 0 0 auto; width: 5px; height: 5px;
    border-radius: 50%; background: #B9CCE2;
  }
  .nav-list .sub-nav a:hover { background: #E8F1FB; color: var(--blue); }
  .nav-list .sub-nav a:hover::before { background: var(--blue); }

  /* 新闻 / 三栏全部单列（gap 自动变成行间距）
     必须写 minmax(0, 1fr)：1fr 隐含 minmax(auto, 1fr)，而 auto 最小值取内容的
     min-content —— 轮播的 track 宽度依赖容器宽度、容器宽度又依赖内容，
     在窄屏下会形成正反馈把元素撑到几百万像素（实测过 756 万 px 的横向溢出）。 */
  .news-row, .tri-row { grid-template-columns: minmax(0, 1fr); }
  .news-row { margin-top: 36px; }
  /* 单列时左图恢复 16:9，不再纵向拉伸去凑右栏高度 */
  .news-feature { display: block; }
  .feature-slider { flex: none; aspect-ratio: 16 / 9; min-height: 0; }


  .hero-slider { height: 300px; }
  .hero-item strong { font-size: 20px; letter-spacing: 1px; }
  .hero-item span { display: none; }
  .hero-slider .slick-prev, .hero-slider .slick-next { width: 36px; height: 56px; }
  .hero-slider .slick-prev:before, .hero-slider .slick-next:before { font-size: 24px; }

  .gallery-item { width: 260px; }
  .gallery-item img { height: 156px; }

  /* ≤4 张不滚动时改为可横向滑动：窄屏下 4 张平分会压成几十像素宽 */
  .gallery.is-static { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .gallery-track.is-static { width: max-content; gap: 0; justify-content: flex-start; }
  .gallery-track.is-static .gallery-item {
    flex: 0 0 auto; width: 260px; max-width: none; margin-right: 20px;
  }

  .footer-info span { display: block; margin: 6px 0; }
}

/* ---------------- 手机 ---------------- */
@media (max-width: 640px) {
  body { font-size: 14px; }
  .container { margin: 0 auto; padding: 12px; }

  /* 手机上把整幅标识图改成「宽度驱动」：≤860 起 .header-inner 已是纵向排列，
     .brand 宽度取 fit-content 并被可用宽度限住，图片 width:100% 正好铺满这一行 ——
     院名因此能在窄屏拿到最大可能的尺寸。
     不能用固定 height（如 clamp(28px,8vw,52px)）：那只是上限，宽度不够时图片
     反被压回 object-fit 的 letterbox 里，上下留白、尺寸更小。
     max-height:52 是「与上一档（≤1024 的 50px）平顺衔接」的封顶：
     不加的话 640px 视口下图片会涨到 60px 高（院名 30px），跨过 640 断点时有可见跳变。 */
  .brand-logo { height: auto; width: 100%; max-width: 100%; max-height: 52px; }
  .search-form { width: 200px; }   /* 兜底：脚本未生效时留在页头也不至于拉满整行 */
  .main-nav .nav-bar { padding: 10px 12px; }   /* 与 .container 的手机端左右 12px 保持一致 */
  .nav-toggle { padding: 12px 0 12px 6px; font-size: 19px; gap: 12px; }
  .nav-toggle-bars { width: 28px; height: 18px; }
  .nav-toggle-bars b { height: 3px; }


  .sec-head { margin-bottom: 12px; }
  .sec-tab { font-size: 16px; padding: 8px 16px; letter-spacing: 2px; }
  .more { font-size: 13px; padding-bottom: 5px; }

  /* 轮播：高度、箭头、指示点同步收小 */
  .hero-slider { height: 200px; }
  .hero-item strong { font-size: 17px; letter-spacing: 0; }
  .hero-item .hero-cap { padding: 34px 56px 16px 14px; }
  .hero-slider .slick-prev, .hero-slider .slick-next { width: 30px; height: 46px; }
  .hero-slider .slick-prev:before, .hero-slider .slick-next:before { font-size: 20px; }
  .hero-slider .slick-dots { bottom: 10px; gap: 8px; }
  .hero-slider .slick-dots li { width: 10px; height: 10px; }

  .hero-badge { top: 10px; left: 10px; font-size: 12px; padding: 3px 10px; }
  .feature-item .feature-cap { font-size: 14px; padding: 26px 12px 24px; }
  .feature-slider .slick-dots { right: 10px; bottom: 10px; gap: 6px; }
  .feature-slider .slick-dots li { width: 19px; height: 19px; }
  .feature-slider .slick-dots li button { font-size: 12px; }

  /* 列表：日期块与文字同步收小，避免长标题被截得太狠 */
  .date-box { flex: 0 0 40px; width: 40px; height: 40px; }
  .date-box b { font-size: 16px; margin-top: 3px; }
  .date-box i { font-size: 9px; }
  .link-list .date-box { flex: 0 0 40px; width: 40px; height: 40px; }
  .link-list .date-box b { font-size: 16px; }
  .news-top a, .news-plain a, .link-list a, .notice-list a { font-size: 15px; }
  .news-top p { font-size: 12px; }
  .news-plain time { font-size: 12px; margin-left: 10px; }
  .notice-list li { gap: 10px; }
  .notice-date { font-size: 12px; padding-left: 10px; letter-spacing: .3px; }

  .gallery-item { width: 220px; margin-right: 14px; }
  .gallery-track.is-static .gallery-item { width: 220px; margin-right: 14px; }
  .gallery-item img { height: 130px; }
  .gallery-item p { font-size: 13px; margin-top: 8px; }

  .quick-nav { gap: 10px; padding-top: 14px; }
  .quick-nav strong { font-size: 14px; }
  .quick-nav a { padding: 8px 14px; font-size: 13px; }

  .friend-links a { font-size: 15px; padding: 12px; }
  .footer-info { font-size: 13px; padding: 20px 12px; }
  .footer-info span { margin: 4px 0; }
  .footer-copy { font-size: 12px; padding: 12px; }
}

/* =========================================================
   内页：栏目列表页（list.html）/ 内容页（displayinfo.html）
   与首页共用页头、导航、页脚、蓝色栏目签与日期块，
   仅新增面包屑、左栏栏目导航、列表、分页、正文排版等内页专属组件。
   ========================================================= */

/* ---------------- 面包屑 ---------------- */
.page-crumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  font-size: 13px; color: var(--muted); margin-bottom: 16px;
}
.page-crumb .home { color: var(--blue); }
.page-crumb .home:hover { text-decoration: underline; }
.page-crumb .home::before {
  content: ""; display: inline-block; width: 13px; height: 13px; margin-right: 5px;
  vertical-align: -2px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-8 9 8'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-8 9 8'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3C/svg%3E") no-repeat center / contain;
}
.page-crumb i { font-style: normal; color: #C3CFDC; }
.page-crumb strong { font-weight: 400; color: #4A5A6A; }

/* ---------------- 内页骨架：左栏目 + 右内容 ---------------- */
/* 同 news-row：必须 minmax(0, …)，否则右侧长标题会把该列 min-content 顶宽 */
.inner-row { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 30px; align-items: start; }
.main-col { min-width: 0; }

/* ---------------- 左栏：栏目导航 ---------------- */
.side-panel { margin-bottom: 24px; }

.side-title {
  background: var(--blue); color: #fff; font-size: 17px; font-weight: 700;
  letter-spacing: 2px; padding: 11px 18px; border-radius: 2px 2px 0 0;
}
.side-nav { border: 1px solid var(--blue-border); border-top: 0; background: rgba(255,255,255,.66); }
.side-nav li { border-bottom: 1px solid var(--line); }
.side-nav li:last-child { border-bottom: 0; }
.side-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; font-size: 15px; color: #46586B;
}
.side-nav a::after { content: "›"; color: #B4C2D2; font-size: 16px; line-height: 1; }
.side-nav a:hover { background: var(--blue-light); color: var(--blue); }
.side-nav li.active a { background: var(--blue-light); color: var(--blue); font-weight: 700; }
.side-nav li.active a::after { color: var(--blue); }

.side-contact {
  border: 1px solid var(--blue-border); border-top: 0; background: rgba(255,255,255,.66);
  padding: 14px 16px; font-size: 13px; line-height: 1.9; color: #5A6978;
}
.side-contact p { margin-bottom: 6px; }
.side-contact p:last-child { margin-bottom: 0; }
.side-contact b { font-weight: 400; color: var(--blue-dark); }

/* ---------------- 列表页：栏目头 + 文章列表 ---------------- */
.list-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  border-bottom: 2px solid var(--blue); padding-bottom: 9px;
}
.list-head h2 { font-size: 19px; font-weight: 700; letter-spacing: 2px; color: var(--blue-dark); }
.list-head .stat { font-size: 13px; color: var(--muted); padding-bottom: 2px; }

/* 列表项：标题在左、日期在右；日期用文字排版，不用色块 */
.art-list {
  min-height: 400px;
}
.art-list > li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.art-list > li:last-child { border-bottom: 0; }
.art-t {
  flex: 1 1 auto; min-width: 0;
  font-size: 16px; line-height: 1.6; color: #25323F;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.art-t:hover { color: var(--blue); }

.art-date {
  flex: 0 0 auto; position: relative; padding-left: 17px;
  font-size: 13px; line-height: 1; color: #7B8A99;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: .6px; white-space: nowrap;
}


/* ---------------- 列表页：分页 ---------------- */
.pager {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line);
}
.pager-info { font-size: 13px; color: var(--muted); }
.pager-btns { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.pager-btns a, .pager-btns .pg-jump {
  min-width: 36px; height: 36px; padding: 0 12px; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--blue-border); background: #fff; color: #4A5A6A; border-radius: 2px;
}
.pager-btns a:hover { background: var(--blue-light); border-color: var(--blue); color: var(--blue); }
.pager-btns a.on { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; }
.pager-btns a.disabled { color: #BCC8D6; background: #F5F8FC; cursor: not-allowed; }
.pager-btns a.disabled:hover { background: #F5F8FC; border-color: var(--blue-border); color: #BCC8D6; }
.pager-btns .pg-jump { gap: 5px; color: var(--muted); font-size: 13px; min-width: 0; }
.pager-btns .pg-jump input {
  width: 42px; height: 24px; text-align: center; font-size: 13px; font-family: inherit;
  color: #4A5A6A; border: 1px solid var(--blue-border); border-radius: 2px; outline: none;
}
.pager-btns .pg-jump input:focus { border-color: var(--blue); }
.pager-btns .pg-go {
  height: 24px; padding: 0 10px; font-size: 13px; font-family: inherit; cursor: pointer;
  background: var(--blue-light); border: 1px solid var(--blue-border); color: var(--blue); border-radius: 2px;
}
.pager-btns .pg-go:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------------- 内容页：正文 ---------------- */
.article {
  background: #fff; border: 1px solid #E3ECF6; border-radius: 3px;
  padding: 32px 38px 28px; box-shadow: 0 1px 4px rgba(23,78,147,.05);
}
.article-title { font-size: 26px; font-weight: 700; line-height: 1.55; text-align: center; color: #1B3A5E; }

.article-meta {
  margin-top: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line);
  text-align: center; font-size: 13px; line-height: 2; color: var(--muted);
}
.article-meta span { margin: 0 10px; white-space: nowrap; }
.article-meta .fs-btn {
  border: 0; background: none; padding: 0 3px; font-size: 13px; font-family: inherit;
  color: var(--blue); cursor: pointer;
}
.article-meta .fs-btn.on { font-weight: 700; text-decoration: underline; }
.article-meta .print-btn { color: var(--blue); }

.article-body { margin-top: 26px; font-size: 17px; line-height: 2.05; color: #333; }
.article-body.fs-m { font-size: 17px; }
.article-body.fs-l { font-size: 19px; }
.article-body.fs-s { font-size: 15px; }
.article-body p { margin-bottom: 16px; }
.article-body p:last-child { margin-bottom: 0; }
.article-body h2 {
  text-indent: 0; margin: 26px 0 12px; padding-left: 11px;
  font-size: 18px; line-height: 1.5; color: var(--blue-dark);
  border-left: 4px solid var(--blue);
}
.article-body figure { margin: 22px 0; text-indent: 0; }
.article-body figure img { width: 100%; border-radius: 2px; }
.article-body figcaption { margin-top: 10px; text-align: center; font-size: 13px; color: var(--muted); text-indent: 0; }
.article-body blockquote {
  margin: 20px 0; padding: 14px 20px; text-indent: 0; line-height: 1.9;
  font-size: 15px; color: #3E5C7C; background: var(--blue-light); border-left: 4px solid var(--blue);
}
.article-body ul { margin: 0 0 16px; padding-left: 4px; text-indent: 0; }
.article-body ul li { position: relative; padding-left: 18px; margin-bottom: 8px; font-size: 16px; line-height: 1.9; }
.article-body ul li::before {
  content: ""; position: absolute; left: 2px; top: 13px;
  width: 5px; height: 5px; background: var(--blue);
}
.article-body table { width: 100%; border-collapse: collapse; margin: 20px 0; text-indent: 0; font-size: 15px; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; line-height: 1.7; }
.article-body th { background: var(--blue-light); color: var(--blue-dark); font-weight: 700; }


.article-body  p { line-height:1.75; font-size:14px; color:#333;}  /**阅读字体**/
.article-body img {margin:0 auto; max-width:940px!important; _width:expression(this.width > 940 ? "940px" : this.width); }   /**文章阅读部分图片大小限制**/
.article-body  table{margin:0 auto; border:none!important;}
.wp_articlecontent {
  background: #fff;
  padding: 20px;
}
.wp_articlecontent p {
    font-size: 16px!important;
    line-height: 32px!important;
    font-family: "Microsoft YaHei" !important;
}
.wp_articlecontent span{    font-size: 16px!important;
    line-height: 32px!important;
    font-family: "Microsoft YaHei" !important;}
.wp_articlecontent font{    font-size: 16px!important;
    line-height: 32px!important;
    font-family: "Microsoft YaHei" !important;}
.wp_entry img {
  margin: 0 auto;
  max-width: 100%;
}

/* ---------------- 内页响应式 ---------------- */
@media (max-width: 1024px) {
  .inner-row { grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
  .article { padding: 26px 26px 24px; }
  .article-body img { max-width: 100% !important;}
}

@media (max-width: 860px) {
  /* 窄屏：左栏换到内容上方，栏目导航改双列，避免把正文推到屏幕之外 */
  .inner-row { grid-template-columns: minmax(0, 1fr); }
  .side-panel { margin-bottom: 18px; }
  .side-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side-nav li:nth-child(odd):not(:last-child) { border-right: 1px solid var(--line); }
  .article-title { font-size: 22px; }
  .article-body ul li { font-size: 15px; }
  .art-list {
    min-height: auto;
  }
  .lxwm {
    display: none;
  }
}

@media (max-width: 640px) {
  .page-crumb { font-size: 12px; margin-bottom: 12px; }

  .side-title { font-size: 16px; padding: 10px 14px; letter-spacing: 1px; }
  .side-nav a { font-size: 14px; padding: 10px 12px; }

  .list-head h2 { font-size: 17px; letter-spacing: 1px; }
  .list-head .stat { font-size: 12px; }
  .art-list > li { gap: 12px; padding: 12px 0; align-items: flex-start; }
  .art-t { font-size: 15px; white-space: normal; } /* 手机不再单行截断，标题完整可读 */
  /* 标题可能折成两行，日期随首行对齐（3px 补偿 15px/1.6 行高与 12px 日期的基线差） */
  .art-date { font-size: 12px; padding-left: 13px; letter-spacing: .3px; margin-top: 3px; }
  .art-date::before { height: 12px; margin-top: -6px; }

  .pager { flex-direction: column; align-items: stretch; gap: 14px; }
  .pager-info { text-align: center; }
  .pager-btns { justify-content: center; gap: 6px; }
  .pager-btns a { min-width: 32px; height: 32px; padding: 0 9px; font-size: 13px; }
  .pager-btns .pg-jump { height: 32px; padding: 0 8px; }
  .pager-btns .pg-jump input { width: 36px; }
  .pager-btns .pg-go { height: 24px; padding: 0 8px; }

  .article { padding: 20px 16px 18px; }
  .article-title { font-size: 19px; letter-spacing: 0; }
  .article-sub { font-size: 13px; }
  .article-meta { font-size: 12px; line-height: 1.9; }
  .article-meta span { margin: 0 6px; }
  .article-body { font-size: 16px; line-height: 1.95; }
  .article-body.fs-l { font-size: 18px; }
  .article-body.fs-s { font-size: 14px; }
  .article-body h2 { font-size: 16px; margin: 22px 0 10px; }
  .article-body table { font-size: 13px; }
  .article-body th, .article-body td { padding: 8px 9px; }
  .article-files { font-size: 13px; padding: 14px; }
  .article-nav { font-size: 13px; }
}
