/* ============================================================
   学习贯彻党的二十届五中全会精神专题网站 · 山东青年政治学院
   版式参考：山东大学专题网站（分屏滚动布局）
   设计标识参考：山东青年政治学院专题网站（深红金党徽风格）
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-snap-type: y proximity; scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "SimSun", serif;
  color: #333;
  background: #fdfaf3;
  line-height: 1.8;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
.px1400 { width: 1400px; max-width: 92vw; margin: 0 auto; }
.clear { clear: both; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  background: rgba(126, 17, 21, .96);
  box-shadow: 0 2px 12px rgba(80, 8, 10, .35);
}
.nav ul {
  display: flex; justify-content: center; align-items: center;
  height: 56px; gap: 8px;
}
.nav a {
  display: block; padding: 8px 34px;
  color: #f7ddba; font-size: 17px; letter-spacing: 2px;
  border-radius: 4px; transition: .25s;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav a.on, .nav a.on:hover {
  color: #8e1418; font-weight: 700;
  background: linear-gradient(180deg, #fdf0c8 0%, #eec25f 100%);
  box-shadow: inset 0 -2px 0 rgba(140, 20, 24, .35);
}

/* ---------- 网站群（Visual SiteBuilder）导航组件兼容 ---------- */
/* 组件自行输出 ul/li/a，且常把 ul 嵌在 li 内，故用后代选择器统一接管 */
.nav ul, .nav ol { list-style: none; margin: 0; padding: 0; }
.nav li { list-style: none; float: none; }
/* 内层 ul 不再重复撑高 */
.nav ul ul { height: auto; }
/* 链接样式：兼容组件任意层级与自带样式 */
.nav ul li a,
.nav ul li a:link,
.nav ul li a:visited {
  display: block;
  padding: 8px 34px;
  color: #f7ddba;
  font-size: 17px;
  letter-spacing: 2px;
  line-height: 1.8;
  border-radius: 4px;
  background: none;
  border: none;
  text-decoration: none;
  transition: .25s;
}
.nav ul li a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
/* 选中态：兼容组件常见“当前栏目”类名 */
.nav ul li a.on,
.nav ul li a.cur,
.nav ul li a.active,
.nav ul li a.current,
.nav ul li.on > a,
.nav ul li.cur > a,
.nav ul li.active > a,
.nav ul li.current > a {
  color: #8e1418;
  font-weight: 700;
  background: linear-gradient(180deg, #fdf0c8 0%, #eec25f 100%);
  box-shadow: inset 0 -2px 0 rgba(140, 20, 24, .35);
}
/* 组件自带的小图标/分隔符一般不需要 */
.nav ul li a img { display: none; }

/* ---------- 首屏大横幅（山青院标识） ---------- */
.banner-full {
  min-height: 100vh; scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  position: relative; overflow: hidden; text-align: center;
  padding: 80px 5vw 30px;
  background: url(banner.jpg) no-repeat center center;
  background-size: cover;
}
.emblem {
  width: 96px; height: 96px; margin-bottom: 26px; position: relative; z-index: 2;
  filter: drop-shadow(0 4px 10px rgba(90, 10, 12, .5));
  animation: floatIn 1s ease both;
}
@keyframes floatIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.school-name {
  position: relative; z-index: 2;
  font-size: 24px; letter-spacing: 8px; color: #f6d27a; margin-bottom: 14px;
  font-weight: 600;
  text-shadow: 0 2px 6px rgba(80, 8, 10, .5);
}
.banner-title {
  position: relative; z-index: 2;
  font-size: clamp(34px, 4.6vw, 62px); font-weight: 800; letter-spacing: 5px; line-height: 1.4;
  background: linear-gradient(180deg, #fff6d8 0%, #f8dd93 45%, #eab84c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 6px rgba(70, 5, 8, .55));
}
.banner-sub {
  position: relative; z-index: 2;
  margin-top: 18px; font-size: 16px; letter-spacing: 6px; color: rgba(247, 221, 186, .8);
}
/* 校园建筑线稿 */
.skyline { position: relative; z-index: 1; margin-top: 5vh; width: min(760px, 86vw); opacity: .9; }
/* 下滑提示 */
.scroll-hint {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: rgba(247, 221, 186, .85); font-size: 13px; letter-spacing: 3px;
  animation: hintFloat 2.2s ease-in-out infinite; z-index: 2;
}
@keyframes hintFloat { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- 分屏栏目 ---------- */
.sec {
  scroll-snap-align: start;
  padding: 70px 0 60px;
}
.sec.cream { background: #fdfaf3; }
.sec.redpaper {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, #fbe9d0 0%, rgba(251, 233, 208, 0) 60%),
    #fdfaf3;
}
/* 栏目标题（山青院党徽 + 红字样式） */
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 44px; border-bottom: 3px solid #9e1f24; padding-bottom: 14px;
}
.sec-head .l { display: flex; align-items: center; gap: 14px; }
.sec-head .tit-ico { width: 44px; height: 44px; }
.sec-head h2 {
  font-size: 32px; color: #9e1f24; letter-spacing: 4px; font-weight: 800;
}
.sec-head .more { font-size: 15px; color: #8c8c8c; transition: .2s; }
.sec-head .more:hover { color: #b51010; }

/* ---- 山青行动：图左文右 · 行式列表 ---- */
.news { display: flex; flex-direction: column; }
.yw { display: block; transition: .25s; }
.yw:hover { transform: translateY(-4px); }
.yw .pic {
  aspect-ratio: 4/3; border-radius: 6px; overflow: hidden; position: relative;
  background: linear-gradient(135deg, #a82328 0%, #7d1216 100%);
}
.ph-tag {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; color: #f6d27a;
}
.ph-tag .ico { font-size: 40px; opacity: .9; }
.ph-tag .cap { font-size: 14px; letter-spacing: 2px; color: rgba(246, 210, 122, .85); }
.yw .text h2 {
  font-size: 19px; color: #333; margin-top: 0; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.yw .text p {
  color: #666; font-size: 15px; margin-top: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.yw .date { color: #8c8c8c; font-size: 14px; margin-top: 10px; }
.yw:hover h2 { color: #b51010; }
.news .yw { display: flex; gap: 24px; align-items: flex-start;
  padding: 24px 0; border-bottom: 1px dashed #e3d3b8; }
.news .yw:last-child { border-bottom: none; }
.news .yw .pic { order: -1; width: 300px; flex: none; }
.news .yw .text { flex: 1; min-width: 0; }
.news .yw .date { margin: 0 0 6px; }

/* ---- 中央精神：双列卡片 ---- */
.study { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 30px; }
.study li a {
  display: block; background: #fff; border: 1px solid #efe2c8; border-radius: 8px;
  padding: 22px 26px; transition: .25s; box-shadow: 0 3px 14px rgba(158, 31, 36, .06);
}
.study li a:hover {
  transform: translateY(-4px); box-shadow: 0 10px 24px rgba(158, 31, 36, .14);
  border-color: #eec25f;
}
.study .bt {
  display: flex; align-items: center; gap: 10px; font-weight: 700;
  font-size: 17px; color: #9e1f24; line-height: 1.5;
}
.study .bt::before { content: "◆"; color: #eec25f; font-size: 13px; flex: none; }
.study p {
  margin-top: 8px; color: #777; font-size: 14px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---- 评论解读：均分双列列表 ---- */
.pljd { display: block; }
.pljd ul { column-count: 2; column-gap: 70px; }
.pljd li { break-inside: avoid; border-bottom: 1px dashed #e3d3b8; }
.pljd li a {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 4px; color: #333; font-size: 16px; transition: .2s;
}
.pljd li a::before { content: "★"; color: #eec25f; font-size: 13px; flex: none; }
.pljd li a:hover { color: #b51010; padding-left: 10px; }

/* ---------- 页脚 ---------- */
.foot {
  background: #7d1216; color: #f0cfa4; text-align: center;
  padding: 34px 0; font-size: 14px; letter-spacing: 1px; line-height: 2;
}

/* ============================================================
   栏目索引页
   ============================================================ */
/* 栏目页横幅：纯CSS方案——无需修改HTML
   图片区用::before绘制，原横幅内h1变形为图片下方的栏目标题条（与首页板块标题同款） */
.page-banner {
  padding: 0; background: none; text-align: left;
}
.page-banner::before {
  content: ""; display: block;
  aspect-ratio: 1920 / 880; /* 按banner图原始比例撑高，完整显示不裁切 */
  background: url(banner.jpg) no-repeat center center;
  background-size: cover;
}
.page-banner .emblem { display: none; }
.page-banner h1 {
  display: flex; align-items: center; gap: 14px;
  width: 1400px; max-width: 92vw; margin: 28px auto 30px;
  font-size: 32px; font-weight: 800; letter-spacing: 4px; line-height: 1.3;
  color: #9e1f24; -webkit-text-fill-color: #9e1f24;
  background: none; filter: none;
  border-bottom: 3px solid #9e1f24; padding-bottom: 14px;
}
.page-banner h1::before {
  content: ""; flex: none; width: 44px; height: 44px;
  background: url(tit-ico.png) no-repeat center / contain;
}
.crumbs {
  background: #f8f1e0; border-bottom: 1px solid #efe2c8;
  font-size: 14px; color: #8c8c8c;
}
.crumbs .px1400 { padding: 12px 0; }
.crumbs a { color: #9e1f24; }
.crumbs a:hover { text-decoration: underline; }

.list-wrap { padding: 50px 0 70px; }
.list-wrap ul { background: #fff; border: 1px solid #efe2c8; border-radius: 10px; padding: 10px 44px; }
.list-wrap li { border-bottom: 1px dashed #e3d3b8; }
.list-wrap li:last-child { border-bottom: none; }
.list-wrap li a {
  display: flex; align-items: center; gap: 16px; padding: 24px 2px; transition: .2s;
}
.list-wrap li .dot {
  flex: none; width: 9px; height: 9px; transform: rotate(45deg);
  background: #eec25f; margin-top: 2px;
}
.list-wrap li h3 {
  flex: 1; font-size: 18px; font-weight: 600; color: #333;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.list-wrap li .dt { flex: none; color: #8c8c8c; font-size: 14px; }
.list-wrap li a:hover h3 { color: #b51010; }

.pager { display: flex; justify-content: center; gap: 10px; margin-top: 36px; }
.pager a, .pager span {
  min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #e0cba4; border-radius: 4px; color: #9e1f24; font-size: 15px; padding: 0 14px;
}
.pager span.cur { background: #9e1f24; border-color: #9e1f24; color: #f8dd93; font-weight: 700; }
.pager a:hover { background: #fdf0c8; }

/* ============================================================
   文章展示页
   ============================================================ */
.article-wrap { padding: 44px 0 70px; }
.article {
  background: #fff; border: 1px solid #efe2c8; border-radius: 10px;
  padding: 54px 70px 60px; max-width: 1100px; margin: 0 auto;
}
.article h1 {
  text-align: center; color: #9e1f24; font-size: 28px; line-height: 1.6;
  font-weight: 800; letter-spacing: 1px;
}
.art-meta {
  display: flex; justify-content: center; gap: 26px; flex-wrap: wrap;
  margin: 20px 0 0; color: #8c8c8c; font-size: 14px;
}
.art-rule {
  width: 220px; height: 3px; margin: 22px auto 34px;
  background: linear-gradient(90deg, rgba(238, 194, 95, 0), #eec25f 30%, #eec25f 70%, rgba(238, 194, 95, 0));
  border-radius: 2px;
}
.article .body p { text-indent: 2em; margin-bottom: 14px; font-size: 17px; color: #333; line-height: 2.1; }
.article .body .fig {
  margin: 28px auto; max-width: 680px;
}
.article .body .fig .pic { aspect-ratio: 16/9; border-radius: 6px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #a82328 0%, #7d1216 100%); }
.article .body .fig figcaption { text-align: center; color: #8c8c8c; font-size: 13px; margin-top: 10px; }
.art-links {
  margin-top: 36px; background: #fdf6e8; border: 1px solid #f0dfba; border-radius: 8px; padding: 18px 26px;
}
.art-links h4 { color: #9e1f24; font-size: 16px; margin-bottom: 8px; }
.art-links li { list-style: square; margin-left: 20px; color: #b51010; font-size: 15px; padding: 3px 0; }
.art-links li a { color: #b51010; }
.art-links li a:hover { text-decoration: underline; }
.art-nav {
  max-width: 1100px; margin: 26px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.art-nav a {
  display: block; background: #fff; border: 1px solid #efe2c8; border-radius: 8px;
  padding: 16px 22px; color: #555; font-size: 15px; transition: .2s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.art-nav a:hover { border-color: #eec25f; color: #b51010; }
.art-nav a strong { color: #9e1f24; margin-right: 8px; font-weight: 700; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .nav ul { flex-wrap: wrap; height: auto; padding: 8px 0; gap: 0; }
  .nav ul li a, .nav a { padding: 8px 16px; font-size: 15px; letter-spacing: 1px; }
  .news, .study, .art-nav { grid-template-columns: 1fr; }
  .pljd ul { column-count: 1; }
  .news .yw { flex-direction: column; }
  .news .yw .pic { width: 100%; }
  .sec { padding: 60px 0 50px; }
  .article { padding: 34px 26px; }
  .list-wrap ul { padding: 4px 20px; }
  .list-wrap li a { flex-wrap: wrap; }
  .list-wrap li h3 { white-space: normal; }
  .school-name { letter-spacing: 4px; }
}

/* ---------- 山青行动板块：兼容网站群组件输出的散乱子元素 ---------- */
/* 组件会把空标题<li>、多个.news-r直接输出在.news内 */
.news > li { display: none; }
.news > .news-r:empty { display: none; }
/* 多个.news-r容器并入统一列表（其内部条目成为列表行） */
.news > .news-r { display: contents; }
/* 组件输出的真实照片位于图片占位容器内，强制等比填充防溢出变形 */
.pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* 评论解读栏目组件输出的空<ul>占位隐藏 */
.pljd ul:empty { display: none; }
