/* ============================================================
   芜湖学院马克思主义学院 · 网站改版设计稿（按 V1.1 方案重做）
   视觉蓝本：重庆医科大学马克思主义学院官网（#A40000 红绸党建风）
   配色规范：方案 V1.1 表 5（#B01F24 / #7A1116 / #C9A063 / #FAF7F2 / #17285F）
   全部图片取自老站 www.uwh.edu.cn/my 的真实素材，无占位图
   ============================================================ */

:root {
  --red: #B01F24;          /* 学院红：导航、栏目标题、按钮 */
  --red-dark: #7A1116;     /* 深红：页头、轮播遮罩 */
  --red-target: #A40000;   /* 蓝本站深红：红绸渐变 */
  --red-light: #C7363B;
  --gold: #C9A063;         /* 辅助金：细线、序号、五星 */
  --gold-soft: #E6CDA2;
  --cream: #FAF7F2;        /* 米白页面底色 */
  --cream-2: #F3ECE3;
  --paper: #FFFFFF;
  --ink: #2B2B2B;
  --ink-2: #4A4A4A;
  --muted: #6B6B6B;
  --faint: #99928B;
  --line: #E9E1D8;
  --blue: #17285F;         /* 学校蓝：顶栏与页脚一致性 */
  --wrap: 1220px;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --shadow: 0 8px 28px -14px rgba(70, 20, 20, .22);
  --shadow-sm: 0 2px 8px rgba(70, 20, 20, .06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans); font-size: 16px; line-height: 1.75;
  color: var(--ink); background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; background: none; border: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ── 顶部学校条：最深的墨红 ─────────────────────── */
.topbar { background: #4A0A0F; color: rgba(255,255,255,.76); font-size: 12.5px; }
.topbar .wrap { height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-left span { letter-spacing: .04em; }
.topbar-right a { color: var(--gold-soft); font-size: 12px; padding: 2px 12px; border: 1px solid rgba(230,205,162,.5); border-radius: 999px; transition: background .18s, color .18s; }
.topbar-right a:hover { background: var(--gold-soft); color: #4A0A0F; }
.topbar .sep { display: none; }

/* ── 院名页头：中明度红渐变，与顶条 / 导航拉开明度层次 ── */
.masthead {
  position: relative; overflow: hidden;
  background:
    radial-gradient(55% 130% at 88% 0%, rgba(230,205,162,.16), transparent 62%),
    linear-gradient(112deg, #7C0D12 0%, #9E171D 54%, #741016 100%);
}
.masthead::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 160% at 4% 120%, rgba(255,255,255,.08), transparent 60%),
    linear-gradient(90deg, transparent 0%, rgba(0,0,0,.12) 100%);
}
.masthead::after {
  content: ""; position: absolute; right: -80px; top: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  border: 1px solid rgba(230,205,162,.22);
  box-shadow: 0 0 0 38px rgba(230,205,162,.05), 0 0 0 76px rgba(230,205,162,.035);
  pointer-events: none;
}
.masthead .wrap {
  position: relative; z-index: 2;
  min-height: 136px; display: flex; align-items: center; gap: 30px;
  padding-top: 24px; padding-bottom: 24px;
}
.brand { display: block; flex: 1; min-width: 0; }
.brand img { width: 452px; max-width: 100%; height: auto; }
.brand-note { display: none; }
.head-tools { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.motto-mini img { width: 176px; opacity: .72; }
.search {
  display: flex; align-items: center; gap: 8px;
  width: 220px; height: 38px; padding: 0 14px;
  border: 1px solid rgba(230,205,162,.55); border-radius: 999px;
  background: rgba(255,255,255,.12);
  transition: border-color .18s, background .18s;
}
.search:focus-within { border-color: var(--gold-soft); background: rgba(255,255,255,.22); }
.search input { flex: 1; min-width: 0; outline: 0; border: 0; background: transparent; color: #fff; font-size: 13px; }
.search input::placeholder { color: rgba(255,255,255,.72); }
.search button { display: grid; place-items: center; color: var(--gold-soft); }

.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid rgba(230,205,162,.5); border-radius: 8px; place-items: center; }
.nav-toggle i { display: block; width: 18px; height: 2px; background: var(--gold-soft); margin: 3px 0; }

/* ── 主导航：亮学院红 + 投影，条目等宽分散 ──────── */
.mainnav { position: sticky; top: 0; z-index: 60; background: var(--red); box-shadow: 0 8px 20px -8px rgba(60,8,10,.5); }
.mainnav .wrap { display: flex; align-items: stretch; height: 60px; padding: 0 24px; }
.nav-list { display: flex; align-items: stretch; justify-content: space-between; width: 100%; }
.nav-list > li { position: relative; flex: 1 1 0%; }
.nav-list > li > a {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 60px; padding: 0 11px;
  color: rgba(255,255,255,.96); font-size: 14.5px; font-weight: 500; letter-spacing: .03em; white-space: nowrap;
  transition: background .18s, color .18s;
}
.nav-list > li > a::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 0; height: 3px;
  background: var(--gold-soft); transform: scaleX(0); transition: transform .2s;
}
.nav-list > li:hover > a { background: rgba(0,0,0,.12); }
.nav-list > li:hover > a::after { transform: scaleX(1); }
.nav-list > li.on > a { background: var(--cream); color: var(--red-dark); font-weight: 700; }
.nav-list > li.on > a::after { transform: scaleX(1); }
.subnav {
  position: absolute; top: 60px; left: 0; min-width: 168px; padding: 8px;
  background: #fff; border-top: 2px solid var(--gold); border-radius: 0 0 10px 10px;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.nav-list > li:hover .subnav { opacity: 1; visibility: visible; transform: translateY(0); }
.subnav a { display: block; padding: 9px 13px; font-size: 14px; color: var(--ink-2); border-radius: 6px; white-space: nowrap; }
.subnav a:hover { background: var(--cream-2); color: var(--red); padding-left: 18px; }
.nav-mask { display: none; }

/* ── 首页轮播：主站真实大 banner 图，无红色图层 ───── */
/* 封面图统一 1920×600（3.2:1）；padding-top 百分比让高度随宽度等比变化，图片完整不裁切 */
.banner { position: relative; width: 100%; height: 0; padding-top: 31.25%; overflow: hidden; background: #E8E2D8; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.slide.on { opacity: 1; }
.slide-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: center;
}
/* 仅保留一层中性深色渐变保证左侧白字可读，不再叠红色图层 */
.slide::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(20,18,16,.62) 0%, rgba(20,18,16,.28) 42%, transparent 74%);
}
.slide-inner {
  position: relative; z-index: 3; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  max-width: var(--wrap); margin: 0 auto; padding: 0 24px;
}
.slide-stars { display: flex; gap: 9px; margin-bottom: 18px; }
.slide-stars svg { width: 19px; height: 19px; color: var(--gold); filter: drop-shadow(0 2px 4px rgba(0,0,0,.25)); }
.slide-kicker {
  font-size: 13px; letter-spacing: .2em; color: var(--gold-soft); margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.slide-kicker::before { content: ""; width: 26px; height: 1px; background: var(--gold); }
.slide h2 {
  font-family: var(--serif); font-size: 42px; line-height: 1.35; font-weight: 700;
  color: #fff; letter-spacing: .06em; max-width: 18em;
  text-shadow: 0 3px 16px rgba(0,0,0,.55);
}
.slide h2 em { font-style: normal; color: var(--gold-soft); }
.slide p { margin-top: 14px; font-size: 15px; color: rgba(255,255,255,.9); max-width: 30em; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.banner-motto { margin-top: 24px; }
.banner-motto img { width: 260px; opacity: .9; filter: drop-shadow(0 2px 8px rgba(0,0,0,.4)); }
.banner-dots { position: absolute; z-index: 5; bottom: 22px; left: 0; right: 0; display: flex; justify-content: center; gap: 9px; }
.banner-dots button { width: 26px; height: 4px; border-radius: 3px; background: rgba(255,255,255,.55); transition: background .2s, width .2s; }
.banner-dots button.on { width: 40px; background: var(--gold); }

/* ── Banner 下方快捷入口（沿用上一版六格链接条） ───── */
.quick { background: var(--paper); border-bottom: 1px solid var(--line); }
.quick .wrap { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.q-item { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 18px 10px; transition: background .18s; }
.q-item + .q-item::before { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 1px; background: var(--line); }
.q-item:hover { background: var(--cream-2); }
.q-icon { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 10px; display: grid; place-items: center; background: var(--cream-2); color: var(--red); transition: background .18s, color .18s, transform .18s; }
.q-item:hover .q-icon { background: var(--red); color: #fff; transform: translateY(-2px); }
/* 内置图标是 1em 的内联 SVG，这里给个固定尺寸，跟原来的占位图标一致 */
.q-icon svg { width: 21px; height: 21px; }
.q-text b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.35; }

/* ── 通用区块标题（目标站式：宋体 + 红旗 + 查看更多） ── */
.sec { padding: 54px 0; }
.sec.tint { background: var(--cream-2); }
.sec.white { background: var(--paper); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.sec-title { display: flex; align-items: center; gap: 12px; }
.sec-title h2 {
  font-family: var(--serif); font-size: 27px; font-weight: 700;
  color: #1B1B1B; letter-spacing: .06em; line-height: 1.2;
}
.sec-title .flag { width: 30px; height: 24px; color: var(--red); }
.sec-title .en { font-size: 11px; letter-spacing: .16em; color: var(--faint); text-transform: uppercase; margin-top: 4px; }
.sec-more { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); white-space: nowrap; padding-bottom: 4px; }
.sec-more:hover { color: var(--red); gap: 10px; }

/* ── 第一区：通知公告 ｜ 新闻动态 ───────────────── */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: 42px; align-items: stretch; }
.notice-col { display: flex; flex-direction: column; min-width: 0; }

/* 单/双行标题都能适应：各行按内容高度自适应，剩余空间均分；单行不塌陷、双行不截断 */
.notice-list { flex: 1; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 6px 22px 12px; box-shadow: var(--shadow-sm); }
.notice-row { flex: 1 1 auto; min-height: 62px; display: flex; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.notice-row:last-child { border-bottom: 0; }
.datebox {
  flex: 0 0 68px; text-align: center; padding: 6px 0 5px;
  background: var(--cream-2); border: 1px solid var(--line); border-radius: 8px;
  transition: background .2s, border-color .2s;
}
.datebox b { display: block; font-family: var(--serif); font-size: 20px; line-height: 1.15; color: var(--red); font-weight: 700; }
.datebox span { display: block; font-size: 10.5px; color: var(--muted); letter-spacing: .04em; }
.notice-row:hover .datebox { background: var(--red); border-color: var(--red); }
.notice-row:hover .datebox b, .notice-row:hover .datebox span { color: #fff; }
.notice-row .nt { font-size: 15px; line-height: 1.7; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notice-row:hover .nt { color: var(--red); }

/* 图片新闻轮播：独立数据源；红色蒙板只占下缘 42%，不挡图片主体 */
.news-slider { position: relative; }
.news-slider-viewport { position: relative; height: 286px; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); background: var(--red-dark); }
.news-lead { position: absolute; inset: 0; display: block; opacity: 0; transition: opacity .55s ease; }
.news-lead.on { opacity: 1; }
.news-lead img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; transition: transform .5s ease; }
.news-lead:hover img { transform: scale(1.03); }
.news-lead::after {
  content: ""; position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 34%;
  background: linear-gradient(0deg, rgba(122,17,22,.86) 0%, rgba(122,17,22,.42) 45%, transparent 100%);
}
.news-lead .cap { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 20px 22px 15px; color: #fff; }
.news-lead .cap time { display: block; font-size: 12px; letter-spacing: .08em; color: var(--gold-soft); margin-bottom: 5px; }
.news-lead .cap h3 { font-family: var(--serif); font-size: 18px; line-height: 1.45; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-arrow { position: absolute; z-index: 4; top: 46%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.88); color: var(--red-dark); opacity: 0; transition: opacity .2s, background .2s; }
.news-slider:hover .news-arrow { opacity: 1; }
.news-arrow:hover { background: #fff; }
.news-arrow.prev { left: 12px; }
.news-arrow.next { right: 12px; }
.news-dots { position: absolute; z-index: 4; right: 14px; top: 14px; display: flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 999px; background: rgba(20,18,16,.36); }
.news-dots button { width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.55); transition: width .2s, background .2s; }
.news-dots button.on { width: 20px; background: var(--gold-soft); }

.news-list { margin-top: 16px; }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list li:last-child { border-bottom: 0; }
.news-list a { display: flex; align-items: baseline; gap: 16px; padding: 12px 2px; }
.news-list a:hover { padding-left: 6px; }
.news-list time { flex: 0 0 auto; font-size: 12.5px; color: var(--red); font-variant-numeric: tabular-nums; }
.news-list .t { flex: 1; min-width: 0; font-size: 15px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-list a:hover .t { color: var(--red); }

/* ── 第二区：学习园地 ｜ 思政微讲坛 ─────────────── */
.quad { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); background: var(--paper); }
.panel-head h3 { position: relative; padding-left: 14px; font-family: var(--serif); font-size: 20px; font-weight: 700; letter-spacing: .06em; color: var(--red-dark); }
.panel-head h3::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 20px; border-radius: 2px; background: var(--red); }
.panel-head .ph-en { font-family: var(--sans); font-size: 10.5px; letter-spacing: .14em; color: var(--faint); margin-left: 10px; }
.panel-head .more { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.panel-head .more:hover { color: var(--red); }
.panel-body { padding: 10px 22px 18px; }
.panel-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.panel-row:last-child { border-bottom: 0; }
.panel-row .dot { width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); flex: 0 0 5px; }
.panel-row .t { flex: 1; min-width: 0; font-size: 14.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel-row time { font-size: 12px; color: var(--faint); flex: 0 0 auto; }
.panel-row:hover .t { color: var(--red); }

/* 首页栏目卡片：只显示真实条目，不显示子栏目 */
.entry-list { padding: 6px 20px 12px; }
/* 条目行（首页学习园地 / 思政微讲坛）：标题只有一行时，标题与日期盒垂直居中，
   和首页通知公告 .notice-row 的处理方式保持一致。
   原来是 flex-start——单行标题会比日期盒中心高约 14px，看着没对齐；
   标题两行时（行高 45px）与日期盒（51px）接近，居中与顶对齐肉眼无差别。 */
.entry-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.entry-row:last-child { border-bottom: 0; }
.entry-date { flex: 0 0 62px; padding: 6px 0; border-radius: 8px; background: var(--cream-2); text-align: center; }
.entry-date b { display: block; font-family: var(--serif); font-size: 17px; line-height: 1.1; color: var(--red-dark); }
.entry-date span { display: block; font-size: 10px; color: var(--muted); margin-top: 3px; }
.entry-t { flex: 1; min-width: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.entry-row:hover .entry-t { color: var(--red); }

/* 思政微讲坛：一条主推内容 + 普通条目 */
.quad .panel { display: flex; flex-direction: column; }
.forum-body { flex: 1; display: flex; flex-direction: column; padding: 18px 20px 12px; }
.forum-feature { position: relative; display: block; flex: 1 1 auto; min-height: 150px; height: auto; border-radius: 10px; overflow: hidden; }
.forum-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.forum-feature:hover img { transform: scale(1.04); }
.forum-feature::after { content: ""; position: absolute; inset: auto 0 0 0; height: 58%; background: linear-gradient(0deg, rgba(20,18,16,.86), transparent); }
.ff-cap { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 14px 16px; color: #fff; }
.ff-tag { display: inline-block; font-size: 10.5px; letter-spacing: .08em; padding: 2px 8px; border-radius: 999px; background: var(--red); margin-bottom: 7px; }
.ff-cap h4 { font-family: var(--serif); font-size: 16px; line-height: 1.45; font-weight: 700; }
.ff-cap time { display: block; font-size: 11.5px; color: rgba(255,255,255,.78); margin-top: 5px; }
.forum-body .entry-list { flex: 0 0 auto; padding: 0; margin-top: 8px; }

/* 人文之光分区：标题 + 查看更多 + 两个视频条目 */
.humanity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.humanity-card { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); transition: border-color .2s, transform .2s; }
.humanity-card:hover { border-color: var(--red); transform: translateY(-2px); }
.hc-cover { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--red-dark); }
.hc-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.humanity-card:hover .hc-cover img { transform: scale(1.04); }
.hc-play { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; color: #fff; }
.hc-play svg { width: 40px; height: 40px; filter: drop-shadow(0 2px 8px rgba(0,0,0,.45)); }
.hc-body { min-width: 0; }
.hc-body h3 { font-family: var(--serif); font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.humanity-card:hover .hc-body h3 { color: var(--red); }
.hc-body time { display: block; font-size: 12.5px; color: var(--muted); margin-top: 10px; }

.forum-groups { display: grid; gap: 14px; }
.forum-group { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.forum-group h4 {
  padding: 10px 16px; font-size: 14.5px; font-weight: 600; color: var(--red-dark);
  background: var(--cream-2); display: flex; align-items: center; justify-content: space-between;
}
.forum-group h4 span { font-size: 11.5px; color: var(--faint); font-weight: 400; }
.forum-group ul { padding: 4px 16px 10px; }
.forum-group li a { display: flex; gap: 10px; align-items: baseline; padding: 8px 0; font-size: 14px; color: var(--ink-2); }
.forum-group li a:hover { color: var(--red); }
.forum-group li time { font-size: 11.5px; color: var(--faint); margin-left: auto; flex: 0 0 auto; }

/* ── 风采展示（横向滚动） ───────────────────────── */
.showcase-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.showcase-ctrl { display: flex; gap: 8px; }
.showcase-ctrl button {
  width: 44px; height: 44px; border: 1px solid var(--red); border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: var(--red);
  box-shadow: 0 6px 16px -8px rgba(122,17,22,.7);
  transition: all .18s;
}
.showcase-ctrl button:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-2px); }
.showcase-track {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 2px 16px; scrollbar-width: thin;
}
.showcase-track::-webkit-scrollbar { height: 6px; }
.showcase-track::-webkit-scrollbar-thumb { background: #D9C9B4; border-radius: 4px; }
.teacher-card {
  flex: 0 0 176px; scroll-snap-align: start;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .22s, box-shadow .22s;
}
.teacher-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.teacher-photo { aspect-ratio: 3 / 4; overflow: hidden; background: var(--cream-2); }
.teacher-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
/* 无证件照时只用文字排版，不生成任何占位图片 */
.teacher-photo.text {
  display: grid; place-items: center;
  background: linear-gradient(150deg, #F7F1E8, #EFE4D6);
  color: var(--red-dark);
}
.teacher-photo.text b { font-family: var(--serif); font-size: 40px; font-weight: 700; letter-spacing: .08em; }
.teacher-card .tc-body { padding: 12px 10px 14px; text-align: center; }
.teacher-card .tc-body b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.teacher-card .tc-body span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ── 页脚 ───────────────────────────────────────── */
.footer { background: var(--red-dark); color: rgba(255,255,255,.72); font-size: 13.5px; }
.footer .wrap { padding-top: 46px; padding-bottom: 22px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 38px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.14); }
.footer-brand img.logo { width: 330px; max-width: 100%; }
.footer-brand p { margin-top: 14px; line-height: 1.9; color: rgba(255,255,255,.6); max-width: 26em; }
.footer h5 { color: #fff; font-size: 14px; letter-spacing: .1em; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.footer h5::before { content: ""; width: 3px; height: 13px; background: var(--gold); border-radius: 2px; }
.footer li { margin-bottom: 8px; }
.footer a:hover { color: var(--gold-soft); padding-left: 3px; }
.footer .info div { display: flex; gap: 8px; margin-bottom: 8px; }
.footer .info span:first-child { color: rgba(255,255,255,.45); flex: 0 0 auto; }
.footer-bottom { padding-top: 18px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: rgba(255,255,255,.45); }
.footer-bottom .count { color: var(--gold-soft); }

/* ── 内页：面包屑条（2026-11-20 去掉导航下方红块页头，只留面包屑） ── */
.page-head {
  position: relative;
  padding: 13px 0;
  background: transparent;
  border-bottom: 1px solid var(--line);
}
.page-head::after { content: none; }
.page-head .wrap { position: relative; z-index: 2; }
/* 大标题视觉上去掉，但保留给读屏/搜索引擎（面包屑里已经有同样的文字） */
.page-head h1,
.page-head .en {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.crumb { margin-top: 0; font-size: 13px; color: var(--ink-2); display: flex; gap: 8px; flex-wrap: wrap; }
.crumb a { color: var(--ink-2); }
.crumb a:hover { color: var(--red); }
.crumb .sp { color: var(--faint); }

/* ── 内页：左侧红块标题区 + 右侧内容 ────────────── */
.inner { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 36px; align-items: start; }
/* 没有左侧栏目导航的页面：单列占满（2026-11-20 改版方案「内容页/栏目页不放侧栏导航」） */
.inner.no-side { grid-template-columns: minmax(0, 1fr); }
/* 教师简历侧栏：红块头是「姓名 + 职称」，职称别沿用栏目名那种大写疏排 */
.teacher-nav .side-head { padding: 18px 20px 16px; }
.teacher-nav .side-head b { display: block; font-size: 19px; }
.teacher-nav .side-head span { font-size: 12.5px; letter-spacing: .06em; text-transform: none; color: rgba(255,255,255,.9); margin-top: 6px; }
.side { position: sticky; top: 76px; }
.side-head { background: linear-gradient(140deg, var(--red), var(--red-dark)); color: #fff; padding: 22px 22px 20px; border-radius: 12px 12px 0 0; }
.side-head b { font-family: var(--serif); font-size: 20px; letter-spacing: .08em; }
.side-head span { display: block; font-size: 10.5px; letter-spacing: .16em; color: rgba(255,255,255,.6); text-transform: uppercase; margin-top: 5px; }
.side ul { background: var(--paper); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; padding: 8px; box-shadow: var(--shadow-sm); }
.side li a { display: block; padding: 11px 14px; font-size: 14.5px; color: var(--ink-2); border-radius: 8px; }
.side li a:hover { background: var(--cream-2); color: var(--red); }
.side li a.on { background: var(--cream-2); color: var(--red-dark); font-weight: 600; }
.side-nav li a { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.side-nav li a em { font-style: normal; font-size: 12px; color: var(--faint); }
.side-nav li a.on em { color: var(--red); }
.faculty-group { scroll-margin-top: 96px; }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); }

/* 列表 */
.list-body { padding: 6px 28px 22px; }
.list-row { display: flex; gap: 20px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.list-row:last-of-type { border-bottom: 0; }
.list-row .lr-date { flex: 0 0 74px; text-align: center; border-right: 1px solid var(--line); padding-right: 16px; }
.list-row .lr-date b { display: block; font-family: var(--serif); font-size: 23px; line-height: 1.15; color: var(--red); }
.list-row .lr-date span { display: block; font-size: 11.5px; color: var(--faint); }
.list-row .lr-body { flex: 1; min-width: 0; }
.list-row h4 { font-size: 16.5px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row:hover h4 { color: var(--red); }
.list-row p { font-size: 13.5px; color: var(--muted); margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row .go { color: var(--faint); flex: 0 0 auto; }
.pager { display: flex; justify-content: center; gap: 8px; padding: 30px 0 6px; }
.pager a, .pager span { min-width: 38px; height: 38px; padding: 0 12px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font-size: 14px; }
.pager a:hover { border-color: var(--red); color: var(--red); }
.pager .on { background: var(--red); border-color: var(--red); color: #fff; }
.pager .dis { color: var(--faint); background: var(--cream-2); }

/* 文章详情 */
.article { padding: 40px 52px 34px; }
.article h1 { font-family: var(--serif); font-size: 27px; line-height: 1.6; text-align: center; font-weight: 700; }
.art-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--faint); }
.art-body { padding-top: 26px; font-size: 16px; line-height: 1.75; color: var(--ink-2); }
.art-body p { text-indent: 2em; margin-bottom: 1.1em; }
.art-body img { width: 100%; max-width: 720px; margin: 24px auto; border-radius: 8px; height: auto !important; }
/* 编辑器写进正文的图片带内联 width/height（如 415px×260px，比例和原图不符会拉变形），
   内联优先级高于样式表，必须用 !important 才能让高度回到原图比例 */
/* 视频：后台编辑器目前不能设大小和对齐（已登记待办），这里先用 CSS 给一个默认 16:9 尺寸并居中。
   不用 !important 压 height——将来编辑器支持后，用户写入的内联宽高/比例优先级高于样式表，
   会自动按用户设置生效，这里只需要在用户没设时兜底。
   aspect-ratio 是 Chrome 88+ 才有的，老内核用 min(56.25vw, 405px) 近似（正文列最大 720px）。 */
.art-body video {
  display: block; width: 100%; max-width: 720px; margin: 16px auto;
  height: min(56.25vw, 405px); background: #000; object-fit: contain;
}
@supports (aspect-ratio: 16 / 9) {
  .art-body video { height: auto; aspect-ratio: 16 / 9; }
}
/* 正文图片的对齐跟后台一致：编辑器把图放在 <figure style="text-align:center"> 里，
   靠 figure 的 text-align 居中；而全局 img 是 display:block，text-align 对块级元素无效，
   所以 figure 里的图改成 inline-block，让 figure 的居中真正生效；边距交给 figure 自己的
   margin（编辑器写了 .5em 0），这里不再叠 24px */
.art-body figure img { display: inline-block; margin: 0; vertical-align: middle; }
/* 教师简历那类浮动照片（figure float:left）：上下 24px 是给独立居中插图的，
   浮动图自带 .5em 1em 边距，再叠 24px 会让照片上下空一块、右侧正文起始位置下移，这里归零 */
.art-body figure[style*="float"] img { display: block; margin: 0; }
.art-body h3 { font-family: var(--serif); font-size: 18px; color: var(--ink); margin: 1.5em 0 .7em; padding-left: 12px; border-left: 3px solid var(--red); }
.art-body ul { margin: 0 0 1.1em 2em; }
.art-body li { list-style: disc; margin-bottom: .4em; }

/* 教师简介：只有标题是模板字段，职务 / 照片 / 分节 / 末尾更新时间都是正文内容（内联 style，净化器会剥离 class） */
.teacher-head { display: flex; align-items: flex-start; gap: 28px; flex-wrap: wrap; }
.teacher-intro { flex: 1; min-width: 220px; }
.teacher-intro h1 { text-align: left; font-size: 27px; }
.teacher-bio figure img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; margin: 0; border-radius: 10px; display: block; }
.teacher-bio::after { content: ""; display: block; clear: both; }
.teacher-bio h3 { clear: both; }
.art-body h3, .art-body p[id] { scroll-margin-top: 90px; }
.art-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.art-nav a { padding: 14px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.art-nav a span { display: block; font-size: 11.5px; color: var(--faint); margin-bottom: 2px; }
.art-nav a:hover { color: var(--red); border-color: var(--red); }
.art-nav a.next { text-align: right; }

/* 师资力量分组 */
.faculty-group { margin-bottom: 36px; }
.faculty-group:last-child { margin-bottom: 0; }
.faculty-group h3 { font-family: var(--serif); font-size: 20px; color: var(--ink); padding-left: 13px; border-left: 4px solid var(--red); margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.faculty-group h3 em { font-style: normal; font-size: 12px; font-weight: 400; color: var(--faint); }
.faculty-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.quick-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.quick-jump a { padding: 6px 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 13.5px; color: var(--ink-2); }
.quick-jump a:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* 组织机构表格 */
.org-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.org-table th, .org-table td { border: 1px solid var(--line); padding: 13px 16px; text-align: left; vertical-align: top; }
.org-table th { background: var(--cream-2); color: var(--red-dark); font-weight: 600; width: 150px; }
.org-table td { color: var(--ink-2); }
.table-scroll { overflow-x: auto; }

/* 视频列表、竞赛入口 */
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.video-card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.video-cover { position: relative; aspect-ratio: 16 / 9; background: var(--red-dark); overflow: hidden; }
.video-cover img { width: 100%; height: 100%; object-fit: cover; }
.video-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(122,17,22,.6), transparent 60%); }
.video-cover .play { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; color: #fff; }
.video-cover .play svg { width: 44px; height: 44px; opacity: .9; }
.video-body { padding: 14px 16px 18px; }
.video-body h4 { font-size: 15px; font-weight: 600; color: var(--ink); }
.video-body time { display: block; margin-top: 6px; font-size: 12px; color: var(--faint); }
.video-player { scroll-margin-top: 90px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 22px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 26px; box-shadow: var(--shadow-sm); }
.video-player video { width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; background: var(--red-dark); object-fit: cover; }
.vp-tag { display: inline-block; font-size: 11px; letter-spacing: .08em; padding: 3px 10px; border-radius: 999px; background: var(--red); color: #fff; }
.vp-info h3 { font-family: var(--serif); font-size: 20px; line-height: 1.5; color: var(--ink); margin-top: 12px; }
.vp-info time { display: block; font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.video-card.on { border-color: var(--red); box-shadow: var(--shadow); }
.video-archive { display: inline-block; margin-top: 22px; font-size: 13.5px; color: var(--red); }
.video-archive:hover { text-decoration: underline; }

.contest-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.contest-card { padding: 22px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; border-top: 3px solid var(--red); }
.contest-card h4 { font-family: var(--serif); font-size: 18px; color: var(--ink); }
.contest-card dl { margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.contest-card dl div { display: flex; gap: 10px; margin-bottom: 6px; }
.contest-card dt { flex: 0 0 76px; color: var(--faint); }
.contest-card .cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 8px 18px; border-radius: 999px; background: var(--red); color: #fff; font-size: 13.5px; }
.contest-card .cta:hover { background: var(--red-dark); }

/* 返回顶部 */
.backtop { position: fixed; right: 24px; bottom: 26px; z-index: 80; width: 44px; height: 44px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; place-items: center; color: var(--red); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s; }
.backtop.show { opacity: 1; visibility: visible; transform: translateY(0); }
.backtop:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* ── 响应式：平板 / 手机 ─────────────────────────── */
@media (max-width: 1024px) {
  .wrap { padding: 0 20px; }
  .masthead .wrap { min-height: 116px; }
  .brand img { width: 380px; }
  .motto-mini { display: none; }
  .nav-list > li { flex: 0 0 auto; }
  .nav-list > li > a { padding: 0 8px; font-size: 13.5px; }
  .mainnav .wrap { overflow-x: auto; scrollbar-width: none; }
  .mainnav .wrap::-webkit-scrollbar { display: none; }
  .slide h2 { font-size: 30px; }
  .quick .wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .q-item + .q-item::before { display: none; }
  .duo { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .quad { gap: 22px; }
  .notice-row { min-height: 58px; }
  .news-slider-viewport { height: 250px; }
  .entry-list { padding: 4px 16px 10px; }
  .humanity-card { grid-template-columns: 180px minmax(0, 1fr); gap: 14px; }
  .video-player { grid-template-columns: minmax(0, 1fr); }
  .inner { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .side { position: static; }
  .side ul { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .faculty-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .video-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .article { padding: 32px 28px 28px; }
  .list-body { padding: 6px 20px 18px; }
}

@media (max-width: 760px) {
  body { font-size: 15px; }
  .wrap { padding: 0 16px; }
  /* 手机页头：Logo + 搜索图标 + 折叠导航同一排，横向导航条不再占位 */
  .masthead .wrap { min-height: 76px; gap: 10px; flex-wrap: nowrap; padding-top: 12px; padding-bottom: 12px; }
  .brand img { width: 230px; }
  .brand-note { display: none; }
  .head-tools { width: auto; gap: 10px; }
  .search { position: relative; flex: 0 0 38px; width: 38px; height: 38px; padding: 0; justify-content: center; border-radius: 50%; }
  .search input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
  /* right 留出折叠按钮的宽度，避免展开的搜索条盖住右上角按钮 */
  .search.open { position: absolute; left: 16px; right: 62px; top: 50%; transform: translateY(-50%); z-index: 6; flex-basis: auto; width: auto; height: 42px; padding: 0 14px; justify-content: flex-start; border-radius: 999px; background: #fff; border-color: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.22); }
  .search.open input { position: static; flex: 1; width: auto; height: auto; opacity: 1; pointer-events: auto; color: var(--ink); font-size: 14px; }
  .search.open input::placeholder { color: var(--faint); }
  .search.open button { color: var(--red); }
  .nav-toggle { display: grid; width: 40px; height: 40px; flex: 0 0 40px; }
  /* static + 零高度：去掉红色横条占位，同时不再创建层叠上下文，抽屉才能盖过遮罩 */
  .mainnav { position: static; z-index: auto; height: 0; background: transparent; box-shadow: none; }
  .mainnav .wrap { height: 0; padding: 0; overflow: visible; }
  .nav-list { position: fixed; top: 0; left: 0; bottom: 0; width: 280px; max-width: 82vw; background: var(--red-dark); z-index: 120; display: block; overflow-y: auto; padding: 18px 0; transform: translateX(-102%); transition: transform .26s ease; box-shadow: 8px 0 30px rgba(0,0,0,.25); }
  .nav-list.open { transform: translateX(0); }
  .nav-mask.open { display: block; position: fixed; inset: 0; z-index: 110; background: rgba(0,0,0,.45); }
  .nav-list > li > a { height: auto; width: auto; justify-content: flex-start; padding: 13px 22px; font-size: 15.5px; }
  .nav-list > li.on > a { background: rgba(255,255,255,.14); color: #fff; }
  .nav-list > li > a::after { display: none; }
  .subnav { position: static; opacity: 1; visibility: visible; transform: none; background: rgba(0,0,0,.18); border: 0; box-shadow: none; border-radius: 0; padding: 2px 12px 8px; min-width: 0; }
  .subnav a { color: rgba(255,255,255,.8); padding: 7px 12px; }
  .subnav a:hover { background: rgba(255,255,255,.12); color: #fff; padding-left: 12px; }
  .slide-stars, .slide-kicker, .slide p, .banner-motto { display: none; }
  .slide h2 { font-size: 20px; letter-spacing: .02em; }
  .slide-inner { padding: 0 16px; }
  .banner-dots { bottom: 8px; }
  .quick .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .q-item { justify-content: flex-start; padding: 14px 8px; }
  .q-icon { width: 34px; height: 34px; flex-basis: 34px; }
  .q-text b { font-size: 13.5px; }
  .q-text span { display: none; }
  .sec { padding: 38px 0; }
  .sec-title h2 { font-size: 22px; }
  .sec-title .flag { width: 24px; height: 20px; }
  .quad { grid-template-columns: 1fr; }
  .humanity-grid { grid-template-columns: 1fr; }
  .humanity-card { grid-template-columns: 140px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .hc-body h3 { font-size: 15px; }
  .hc-play svg { width: 32px; height: 32px; }
  .side-nav ul { display: flex; flex-wrap: wrap; }
  .side-nav li { flex: 1 1 auto; }
  .side-nav li a { justify-content: center; padding: 9px 12px; }
  .video-player { padding: 12px; }
  .vp-info h3 { font-size: 17px; }
  .news-slider-viewport { height: 210px; }
  .news-arrow { opacity: 1; width: 30px; height: 30px; }
  .news-lead .cap { padding: 20px 16px 14px; }
  .news-lead .cap h3 { font-size: 16.5px; }
  .entry-list { padding: 4px 14px 10px; }
  .entry-t { font-size: 14px; }
  .news-lead { height: 214px; }
  .news-lead .cap h3 { font-size: 17px; }
  .notice-list { padding: 4px 16px 10px; }
  .teacher-card { flex-basis: 140px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-brand img.logo { width: 280px; }
  .page-head { padding: 11px 0; }
  .side ul { grid-template-columns: 1fr; }
  .faculty-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .video-grid, .contest-grid { grid-template-columns: 1fr; }
  .article { padding: 24px 18px 22px; }
  .teacher-head { gap: 16px; }
  /* 内联 float 优先级高，窄屏用 !important 取消环绕，避免正文被挤成窄条 */
  .teacher-bio figure { float: none !important; width: 150px !important; margin: 0 auto 16px !important; }
  .article h1 { font-size: 21px; }
  .art-body { font-size: 15.5px; }
  .art-nav { grid-template-columns: 1fr; }
  .list-body { padding: 4px 14px 14px; }
  .list-row { gap: 12px; padding: 16px 0; }
  .list-row .lr-date { flex-basis: 60px; padding-right: 10px; }
  .list-row .lr-date b { font-size: 22px; }
  .list-row p { display: none; }
  .backtop { right: 14px; bottom: 16px; }
}
