@charset "utf-8";

/* ============================================================
   泰山学院 · 学习贯彻党的二十届四中全会精神专题网站
   红色党建主题样式表（webpluspro CMS 模板）
   类名与原模板保持一致，仅将配色由蓝色改为红色
   ============================================================ */

/* ---------- 全局重置 ---------- */
html,body,h1,h2,h3,h4,h5,h6,div,dl,dt,dd,ul,ol,li,p,blockquote,pre,hr,figure,table,caption,th,td,form,fieldset,legend,input,button,textarea,menu{margin:0;padding:0;}
header,footer,section,article,aside,nav,hgroup,address,figure,figcaption,menu,details{display:block;}
table{border-collapse:collapse;border-spacing:0;}
caption,th{text-align:left;font-weight:normal;}
html,body,fieldset,img,iframe,abbr{border:0;}
img{vertical-align:top;}
i,cite,em,var,address,dfn{font-style:normal;}
li{list-style:none;}
h1,h2,h3,h4,h5,h6,small{font-size:100%;}
a{text-decoration:none;color:inherit;}
a,button{cursor:pointer;}
body{background-color:#fdf9ed;color:#333;font-family:"微软雅黑","Microsoft YaHei","PingFang SC",sans-serif;font-size:15px;line-height:35px;}
.clear{clear:both;}
.clearfix:after{clear:both;content:".";display:block;height:0;visibility:hidden;}
.clearfix{display:block;}

/* ---------- 顶部横幅 ---------- */
.banner{position:relative;display:block;background-color:#fff;}
.banner img.ban{width:100%;display:block;}

/* 左上角校徽校名：紧贴红色横幅大图的最左上角
   banner-inner 覆盖层定位在横幅 (0,0)，logo 从该点开始排布；
   覆盖层不拦截鼠标，只有 logo 本身可点
   TSU5.png 自身四周留有透明留白，因此贴边也不会显得局促 */
.banner .banner-inner{
    position:absolute;left:0;top:0;
    pointer-events:none;
}
.banner .banner-inner img.logo{
    display:block;
    width:280px;height:auto;
    pointer-events:auto;
}

/* 搜索框已整体移除（模板中不再有 frag="窗口03" 搜索组件） */

/* ---------- 导航栏（保留原模板结构） ---------- */
#nav{background:#c7131a;border-top:4px solid #f7cd36;}
#nav .inner{max-width:1300px;margin:0 auto;}
#nav .inner .wp-panel{height:50px;}
#nav .inner .wp-panel .wp-window{height:50px;}
.wp-menu{width:100%;display:flex;justify-content:center;height:50px;margin:0 auto;}
.wp-menu .menu-item{float:left;height:auto;display:inline-block;position:relative;flex:1;text-align:center;}
.wp-menu .menu-item a.menu-link{
    display:block;padding:0 20px;text-align:center;line-height:50px;
    font-family:"微软雅黑";color:#fff;font-size:18px;font-weight:bold;
}
.wp-menu .menu-item.hover a.menu-link,
.wp-menu .menu-item:hover a.menu-link,
.wp-menu .menu-item.selected a.menu-link,
.wp-menu .menu-item a.hover{background-color:#942f22;text-decoration:none;color:#fff;}
/* 下拉子菜单 */
.sub-menu{display:none;position:absolute;left:0;top:50px;min-width:150px;z-index:999;background:#fff;box-shadow:0 0 10px rgba(170,4,11,0.2);}
.wp-menu .menu-item:hover > .sub-menu{display:block;}
.sub-menu .sub-item{position:relative;white-space:nowrap;vertical-align:top;}
.sub-menu .sub-item a{display:block;height:44px;line-height:44px;padding:0 15px;text-align:center;font-size:14px;color:#333;background:#fff;}
.sub-menu .sub-item:hover > a,
.sub-menu .sub-item a:hover{color:#fff;background-color:#c7131a;display:block;}
.menu-switch-arrow{display:none;}

/* ---------- 新闻列表通用基础样式 ----------
   列表页 / 详情页共用；首页的 .post .con 作用域规则会在后面覆盖它 */
.news_list li.news{position:relative;line-height:34px;padding-left:14px;}
.news_list li.news::before{
    content:"";position:absolute;left:2px;top:15px;width:7px;height:7px;
    background-color:#c7131a;transform:rotate(45deg);
}
.news_list li.news span.news_title{float:left;width:80%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.news_list li.news span.news_title a{color:#333;}
.news_list li.news span.news_title a:hover{color:#c21319;text-decoration:underline;}
.news_list li.news span.news_meta{float:right;margin-left:2px;color:#9c9c9c;font-size:15px;}

/* ---------- 首页内容区块（仿青岛大学「四中全会」专题站版式） ---------- */
.wrapper{width:100%;margin:0 auto;}
.wrapper .inner{max-width:1300px;margin:0 auto;}
.main1{background:#fdf9ed;}
.main1 .inner{padding-top:45px;overflow:hidden;}
.main2{background:#fdf9ed;}
.main2 .inner{padding-top:45px;padding-bottom:25px;overflow:hidden;}

/* 栏目标题栏：红色斜块标题 + 1px 细线 + 右侧「更多+」 */
.post{margin-bottom:0;}
.post .tt{overflow:hidden;border-bottom:1px solid #ddd;}
.post .tt .tit{float:left;height:54px;line-height:54px;font-size:26px;font-weight:normal;}
.post .tt .tit .title{
    display:block;float:left;height:54px;line-height:54px;
    padding:0 60px 0 20px;
    font-size:26px;color:#fff;font-family:"Microsoft yahei";
    /* 用渐变硬边做右侧斜切，比 transform 倾斜更安全（文字不会被拉斜） */
    background:linear-gradient(104deg,#c7131a 0%,#c7131a 80%,rgba(199,19,26,0) 80%);
}
.post .more_btn{float:right;height:54px;line-height:54px;}
.post .more_btn .more_text,.post .more_btn a{font-size:16px;cursor:pointer;color:#666;}
.post .more_btn a:hover,.post .more_btn .more_text:hover{color:#c21319;}
.post .con{padding:0;margin:0 auto;}

/* 首页文字列表（作用域限定在 .post .con 内，不影响列表页的 .news_list） */
.post .con .news_list{margin-top:15px;}
/* 右侧固定留出 76px 给日期（日期已改成 MM-dd 短格式，约 45px，留足余量），标题只吃剩下的宽度 */
.post .con .news_list li.news{line-height:42px;height:42px;padding-left:15px;padding-right:76px;box-sizing:border-box;}
.post .con .news_list li.news::before{left:0;top:18px;width:6px;height:6px;}
/* 日期改成绝对定位贴右，不再用 float。
   原因：CMS 输出的日期是 2026-11-14 这种 10 位格式，按字符宽度算约 85~90px，
   之前标题 float:left 占 87%，两者相加超过 100%，右侧浮动的日期就被挤到下一行，
   看起来就是"日期脱离标题跑到下面去了"。绝对定位不受总宽度影响，日期多长都不会换行 */
.post .con .news_list li.news span.news_title{float:none;display:block;width:auto;font-size:18px;}
.post .con .news_list li.news span.news_meta{
    position:absolute;right:0;top:0;margin-left:0;
    font-size:16px;color:#333;line-height:inherit;white-space:nowrap;
}

/* ---------- 图文混排（中央精神 / 学校动态） ----------
   同一个循环里用 nth-child 分两段：
   第 1、2 条 = 图片卡片（图 + 底部半透明标题条）；第 3 条起 = 文字列表 */
/* 卡片自带 22px 上间距，去掉列表整体的 15px，避免叠加 */
.post .con .news_list.mixed{margin-top:0;}
.news_list.mixed li.news:nth-child(-n+2){
    float:left;width:48%;margin:22px 4% 0 0;padding:0;
    height:auto;line-height:normal;
}
.news_list.mixed li.news:nth-child(2){margin-right:0;}
.news_list.mixed li.news:nth-child(3){clear:both;margin-top:15px;}
.news_list.mixed li.news:nth-child(-n+2)::before{display:none;}

/* 配图：padding-bottom 撑出 65% 比例，避免图片加载前后跳动 */
.news_list.mixed li.news:nth-child(-n+2) .news_pic{
    display:block;position:relative;width:100%;height:0;
    padding-bottom:65%;overflow:hidden;background:#f1e2d2;
}
.news_list.mixed li.news:nth-child(-n+2) .news_pic img{
    position:absolute;left:0;top:0;width:100%;height:100%;
    object-fit:cover;transition:transform .4s ease;
}
.news_list.mixed li.news:nth-child(-n+2):hover .news_pic img{transform:scale(1.06);}

/* {缩略图} 由 CMS 输出成 <a href="文章地址"><img width="320" .../></a> 整段 HTML，
   这里把这一整段撑满图片框：a 和 img 都用 100% 覆盖掉标签上写死的 width="320" */
.news_list.mixed li.news:nth-child(-n+2) .news_pic .pic_inner{
    display:block;position:absolute;left:0;top:0;width:100%;height:100%;
}
.news_list.mixed li.news:nth-child(-n+2) .news_pic .pic_inner a{
    display:block;width:100%;height:100%;
}

/* 图片底部的半透明标题条 */
.news_list.mixed li.news:nth-child(-n+2) .pic_title{
    position:absolute;left:0;right:0;bottom:0;
    padding:0 10px;height:36px;line-height:36px;
    background:rgba(0,0,0,.52);color:#fff;font-size:14px;
    overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
    z-index:2;                       /* 压在 CMS 输出的 <a><img> 之上 */
}
/* 卡片内不再重复显示标题和日期。
   必须带上 .post .con 前缀把权重提到 (0,6,1)，
   否则会被上面给文字行用的 (0,5,2) 规则盖掉，
   卡片下面就会多出一行空白标题，看起来像"大量空行" */
.post .con .news_list.mixed li.news:nth-child(-n+2) .news_title,
.post .con .news_list.mixed li.news:nth-child(-n+2) .news_meta{display:none;}
/* 文字条目不显示配图占位 */
.news_list.mixed li.news:nth-child(n+3) .news_pic{display:none;}

/* ---------- 权威解读：首条灰底重点稿 + 其余灰块标题 ---------- */
.post .con .news_list.jd li.news{padding-left:0;height:auto;line-height:normal;}
.post .con .news_list.jd li.news::before{display:none;}

/* 第 1 条：灰底重点文章（大写标题 + 红色下划线） */
.post .con .news_list.jd li.news:nth-child(1){
    margin-top:22px;padding:22px;background:#f8f3f3;min-height:200px;box-sizing:border-box;
}
.post .con .news_list.jd li.news:nth-child(1) .news_title{
    float:none;display:block;width:auto;height:auto;
    font-size:18px;font-weight:bold;color:#be1219;line-height:28px;
    padding-bottom:25px;border-bottom:2px solid #be1219;
    white-space:normal;overflow:hidden;text-overflow:clip;
}
.post .con .news_list.jd li.news:nth-child(1) .news_meta{display:none;}

/* 第 2 条起：浅灰块，鼠标经过时红色渐变自左向右铺满 */
.post .con .news_list.jd li.news:nth-child(n+2){
    position:relative;margin-top:20px;padding:16px 20px 16px 25px;
    box-sizing:border-box;
    background-color:#fcfcfc;
    background-image:linear-gradient(#be1219,#be1219);
    background-repeat:no-repeat;
    background-position:0 100%;
    background-size:0 100%;
    transition:background-size .3s ease,box-shadow .3s ease;
}
.post .con .news_list.jd li.news:nth-child(n+2):hover{background-size:100% 100%;box-shadow:0 0 10px #f6c2c2;}
.post .con .news_list.jd li.news:nth-child(n+2) .news_title{
    float:none;display:-webkit-box;width:auto;height:54px;
    font-size:18px;line-height:27px;color:#333;white-space:normal;
    overflow:hidden;text-overflow:ellipsis;
    -webkit-line-clamp:2;-webkit-box-orient:vertical;
}
.post .con .news_list.jd li.news:nth-child(n+2):hover .news_title{color:#fff;}
.post .con .news_list.jd li.news:nth-child(n+2) .news_meta{display:none;}

/* 首页双栏布局（中央精神+学校动态 / 权威解读+学习资料） */
.s2-l{float:left;width:48%;}
.s2-r{float:right;width:48%;}
.s3-l{float:left;width:48%;}
.s3-r{float:right;width:48%;}

/* ============================================================
   列表页
   ============================================================ */
#l-container{background:#fdf9ed;padding:30px 0 40px;}
#l-container .inner{max-width:1300px;margin:0 auto;}
.col_menu{width:240px;float:left;margin-right:-240px;position:relative;}
.col_menu .col_menu_head{line-height:50px;background-color:#c7131a;font-size:20px;color:#fff;text-align:center;}
.col_menu .col_menu_head h3.col_name{font-weight:normal;color:#fff;}
.col_menu .col_menu_head h3.col_name .col_name_text{display:block;line-height:50px;}
.col_menu .col_menu_con{border:1px solid #c7131a;border-top:none;padding:15px 20px;background:#fff;}
.col_list .wp_listcolumn .wp_column a{
    display:block;text-align:center;border:1px solid #e6c9c9;margin-bottom:8px;
    line-height:42px;font-size:16px;color:#333;background:#fff;
}
.col_list .wp_listcolumn .wp_column a:hover,
.col_list .wp_listcolumn .wp_column a.selected{color:#fff;background-color:#c7131a;border-color:#c7131a;}
.col_list .wp_listcolumn .sub_list{padding-left:10px;}
.col_list .wp_listcolumn .sub_list a{border:none;border-bottom:1px dashed #eee;margin-bottom:0;}
.col_list .wp_listcolumn .sub_list a .column-name{color:#666;}

.col_news{width:100%;min-height:500px;float:right;}
.col_news .col_news_box{margin-left:290px;background:#fff;border:1px solid #ece1d3;border-radius:4px;padding:25px 30px 35px;box-shadow:0 2px 8px rgba(170,4,11,0.06);}
.col_news_head{border-bottom:2px solid #c7131a;height:50px;}
.col_metas .col_title{display:inline-block;float:left;line-height:50px;}
.col_metas .col_title h2{float:left;display:inline-block;font-weight:bold;font-size:22px;line-height:50px;color:#c7131a;}
.col_metas .col_path{display:inline-block;float:right;white-space:nowrap;height:50px;line-height:50px;color:#999;font-size:14px;}
.col_metas .col_path a{color:#666;}
.col_news_con{padding:10px;}
.col_news_list{margin-top:10px;}
/* 列表页新闻条目（带虚线分隔） */
.col_news_list .news_list li.news{
    position:relative;padding:16px 4px 16px 20px;line-height:28px;
    border-bottom:1px dashed #999;
}
.col_news_list .news_list li.news::before{
    content:"";position:absolute;left:4px;top:26px;width:7px;height:7px;
    background-color:#c7131a;transform:rotate(45deg);
}
.col_news_list .news_list li.news .news_title{font-size:17px;}

/* ============================================================
   文章详情页
   ============================================================ */
#d-container{background:#fdf9ed;padding:30px 0 40px;}
#d-container .inner{max-width:1300px;margin:0 auto;}
.infobox{margin:0 auto;width:100%;float:right;}
.article{
    margin-left:290px;width:calc(100% - 290px);
    background:#fff;border:1px solid #ece1d3;border-radius:4px;
    padding:30px 40px 40px;box-shadow:0 2px 8px rgba(170,4,11,0.06);
    box-sizing:border-box;
}
.article h1.arti_title{
    font-size:24px;line-height:35px;padding-top:20px;padding-bottom:10px;
    text-align:center;border-bottom:1px dashed #787878;font-weight:bold;
}
.article h2.arti_title{text-align:center;font-size:18px;color:#666;padding-top:8px;}
.article .arti_metas{font-size:14px;line-height:26px;text-align:center;color:#888;padding:10px;border-top:1px solid #ececec;}
.article .arti_metas span{margin:0 5px;font-size:12px;color:#787878;}
.article .entry{overflow:hidden;margin:10px auto 0;}
.article .entry .read,.article .entry .read p{line-height:1.75;font-size:16px;color:#333;}
.article .entry .read p{margin-bottom:10px;text-indent:2em;}
.article .entry .read img{margin:0 auto;max-width:100%;}
.article .xl{float:right;font-size:14px;line-height:2;color:#666;}
.article .xl a{color:#333;}
.article .xl a:hover{color:#c21319;}
.article .close{clear:right;float:right;font-size:14px;}
.article .close a{color:#666;}

/* ---------- 页脚 ---------- */
#footer{clear:both;background:#aa040b;}
#footer .inner{max-width:1300px;margin:0 auto;color:#fff;padding:25px 0;text-align:center;font-size:16px;line-height:1.8;}
#footer .foot p{text-align:center;color:#fff;}

/* ---------- 响应式 ---------- */
@media screen and (max-width:1300px){
    .wrapper .inner,#nav .inner,#l-container .inner,#d-container .inner,#footer .inner{padding-left:15px;padding-right:15px;box-sizing:border-box;}
}
@media screen and (max-width:900px){
    .banner .banner-inner img.logo{width:200px;}
    .s2-l,.s3-l,.s2-r,.s3-r{float:none;width:100%;}
    .col_menu{float:none;width:100%;margin-right:0;margin-bottom:20px;}
    .col_news .col_news_box{margin-left:0;}
    .article{margin-left:0;width:100%;}
}
@media screen and (max-width:700px){
    .banner .banner-inner img.logo{width:140px;}
    /* 图片卡片在窄屏改为上下堆叠 */
    .news_list.mixed li.news:nth-child(-n+2){float:none;width:100%;margin-right:0;margin-bottom:12px;}
    .news_list.mixed li.news:nth-child(3){clear:none;}
    /* 栏目标题缩小 */
    .post .tt .tit,.post .tt .tit .title{height:40px;line-height:40px;font-size:18px;}
    .post .tt .tit .title{padding:0 35px 0 12px;
        background:linear-gradient(104deg,#c7131a 0%,#c7131a 82%,rgba(199,19,26,0) 82%);}
    .post .more_btn{height:40px;line-height:40px;}
    .post .more_btn .more_text,.post .more_btn a{font-size:14px;}
    .wp-menu .menu-item a.menu-link{font-size:15px;padding:0 8px;}
    .article{padding:20px;}
    .article h1.arti_title{font-size:20px;}
}
