/*
Theme Name: New RTUCN
Theme URI: https://rtucn.xyz
Description: 太联新网站WP主题测试
Version: 0.1
Author: wasserbogen
Author URI: http://wasserbogen.com
Tags: custom header and footer, responsive layout, full width slide, two columns, widgets
*/

* {
	box-sizing: border-box;
}


body {
	font-family: Arial, Helvetica, sans-serif;
	background-color: black;
	background-image: url("https://wasserbogen.net/xref/sky.gif");
	margin:0;
	width: 100%;
	color: ghostwhite;
	line-height: 1.5;
	letter-spacing: 1;
  }

html, body {
  scroll-behavior: smooth;
}

/* 清除浮动，对两栏+底部布局使用时，必须也只需加在main里，使main能包裹浮动的两栏，从而footer正常 */
.clearfix::after {
  content: "";
  clear: both;
  display: table;
}



/* 顶部 header - 全宽 */
header {
	background: rgba(0,0,0,0.5);
	width: 100%;
	border-bottom: none;
	text-align: center; /* 把内含header-box居中 */
	z-index: 100;
	position: sticky; /* 这两条是为了让header出现在衬底幻灯片衬底之前，光写z-index没用，必须加上sticky才有用，但sticky只要不配合写上具体位置，它就不会固定在一处不动 */
	}
	
.header-box {
	width: 100%;
	max-width: 1340px; /* 1300内宽 + 20padding */
	height: 50px;
	margin: 0 auto; /* 这是为了左右居中 */
	padding: 0 20px;
	text-align: left;
	background: rgba(255,255,255,0);
	}
.site-title {
    line-height: 50px; /* 这是为了垂直居中 */
	font-size: 24px;
	font-weight: bold;
	margin: 0; /* 一定要加这条，不然firefox里会在header之上出现空白行，其它浏览器不会 */
	background: linear-gradient(to right, skyblue, white, white, skyblue);
	-webkit-background-clip: text;
	color: transparent;
	width: fit-content;
}	


/* 导航条 */
nav {
	background: rgba(0,0,0,0.65);
	width: 100%;
	margin: 0;
	text-align: center; /* 把内含nav-box居中 */
	position: sticky;
	top: -1px;
	z-index: 100;
	border-bottom: 0px rgba(255,255,255,0.7) solid;
	overflow: hidden;
	}

.nav_single {
	background: linear-gradient(to right, rgba(189,226,244,0.8), rgba(140,205,223,0.3), rgba(0,0,0,0));
	position: static; /* 文章和页面时使用 */
	}

.nav_single-box,
.nav-box {
	width: 100%;
	max-width: 1340px; /* 1300内宽 + 20padding */
	height: 40px;
	margin: 0 auto;
	padding: 0 20px;
	text-align: right;
	font-size: 16px;
	color: Floralwhite;
	line-height: 40px;
	letter-spacing: 2;
	text-transform: uppercase;
	background: rgba(255,255,255,0);  
}

.nav_single-box a:link,
.nav-box a:link {
	text-decoration: none;
	color: floralwhite;
	cursor: pointer;
 }
.nav_single-box a:visited,
.nav-box a:visited {
	color: floralwhite;
 }
.nav_single-box a:hover,
.nav-box a:hover {
	color: white;
	text-shadow: 0 0 5px white, 0 0 15px mistyrose, 0 0 30px pink, 0 0 50px deeppink;
	background: rgba(0,0,0,0);
 }

	
	
/* 幻灯片框 */
.slide_holder {
	width: 100%;
	height: calc(100vh - 90px);
	margin: 0;
	border-top: none;
	}
.slide {
	width: 100%;
	height: 100vh; /* 这里和上面的高度不同，设了幻灯片图片全高，衬在header和nav下方，跟z-index一起实现 */
	position: absolute;
	top: 0;
	}
.slide_img {
	object-fit: cover;
	width: 100%;
	height: 100vh; 
	z-index: -100;
	animation: animate1 4s forwards; /* 幻灯片1秒后自动变暗 */
	}
@keyframes animate1 {
    25% {
        opacity: 1;
		}
    100% {
        opacity: 0.6;
    }
}

	/* 幻灯片左右导航 */
.slide_prev,
.slide_next {
	cursor: pointer;
	user-select: none;
	position: absolute;
	top: 50vh;
	margin: 0;
	width: 50px;
	height: 100px;
	text-align: left;
	padding-left: 10px;
	line-height: 100px;
	color: white;
	font-size: 25px;
	transition: 0.6s ease;
	background: rgba(0,0,0,0.25);
	border-radius: 0 50px 50px 0;
	}
.slide_next {
	right: 0;
	text-align: right;
	padding-right: 10px;
	border-radius: 50px 0 0 50px;
	}

.slide_prev:hover,
.slide_next:hover {
	background-color: rgba(255,255,255,0.55);
	color: black;
	text-decoration: none;
	}
	
	/* 幻灯片圆点导航，目前没启用 */
.slide_dot {
	cursor: pointer;
	position: absolute;
	bottom: 70px;
	height: 10px;
	width: 10px;
	margin: 0 5px;
	margin-left: 20px;
	background: rgba(255,255,255,0.6);
	border-radius: 50%;
	transition: background-color 0.6s ease;
	display: none;
	}
.slide_dot:hover {
	background-color: rgba(255,255,255,1);	
	}

	/* 幻灯片信息带 */
.slide_band {
	position: absolute;
	bottom: 150px;
	height: 50px;
	width: 100%;
	text-align: center; /* 把内含slide_band-box居中 */
	padding: 0 10px;
	background-color: rgba(255,0,255,0);	
	animation: animate2 3s;
	}
@keyframes animate2 {
    0% {
        opacity: 0;
	}
	25% { 
			opacity: 0;
		}
    100% {
        opacity: 1;
    }
	}
.slide_band-box {
	background: rgba(0,0,0,0);
	width: calc(100% - 20px);
	max-width: 1340px;
	margin: 0 auto; /* 这是为了左右居中 */
	line-height: 50px;
	text-align: center; /* 把内含slider_title居中 */
	border-bottom: 0px rgba(255,255,255,0.7) solid;
	}
.slide_title {
	margin: 0;
	padding: 0;
	font-size: 24px;
	font-weight: bold;
	line-height: 1.3;
	letter-spacing: 0.8;
	text-align: left;
	}
.slide_title_meta {
	font-size: 14px; 
	font-weight: normal; 
	color: #ccc;
	}
.slide_title a:hover,
.slide_title_meta a:hover {
	opacity: 0.75;
	}
.slide_title a:link,
.slide_title a:visited,
.slide_title_meta a:link,
.slide_title_meta a:visited {
	color: #ddd;
	padding-right: 2px;
	padding-left: 2px;
	}

.slide_band .line_solid   {
	margin: 5px 10px;
	}

    /* 幻灯片上的向下箭头 */
.down_arrow {
	cursor: pointer;
	position: absolute;
	bottom: 30px;
	transform: rotate(-90deg);
	}
.down_arrow span{
    display: block;
    width: 22px;
    height: 22px;
    border-bottom: 4px solid rgba(255,255,255,0.9);
    border-right: 4px solid rgba(255,255,255,0.9);
    animation: animate 2s infinite;
}
.down_arrow span:hover {
    border-bottom: 4px solid white;
    border-right: 4px solid white;
}
@keyframes animate {
    0% {
        opacity: 0;
        transform: rotate(135deg) translate(0px, 0px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(135deg) translate(5px, 5px);
    }
}

#news {
	position: absolute;
	top: calc(100vh - 39px);
	}/* 这是为了让向下箭头滚到幻灯片刚好结束的位置 */
	


/* 以下为中部主体 */

/* 中部主体 main - 全宽但不超过1340 */
.main {
	width: 100%;
	max-width: 1340px; /* 1300内宽 + 20padding */
	margin: 0 auto;
	padding: 0;
	background: rgba(255,255,255,0);
	min-height: calc(100vh - 121px); 
	/* 终于搞定页面高度不够时footer保持在底下的问题了！用这个计算方式，100的当前视窗高度减去header50 + nav40 + footer30 + border1 = 121px，一定要精确，然后footer不要设负margin-top就可以，设了反而不对 */
	}
	
.main_single {
	min-height: calc(100vh - 71px); 
	/* 文章和页面没有幻灯片和顶部时使用 */
	position: relative;
	}

/* 以下为左右并排的两栏布局 */
/* 左内容 article - 左起70% - 中部主体七三开 */
.article {
	float: left;
	width: 70%;
	background: ;
	padding: 20px;
	text-align: center;
}
.article-box {
	background: rgba(255,255,255,0); 
	width: 100%; 
	max-width: 1000px;
	margin: 0 auto; 
	/* 主页上不用，post和page的文章主体用，暂时设为full width无侧栏 */
	}
	
.postcard {
	max-height: 250px;
	background: rgba(255,255,255,0.15);
	margin-bottom: 20px;
	overflow: hidden;
	display: flex;
	justify-content: space-between;
	}
.postcard_image_holder {
	max-width: 100%; /* 原来这条应该设成100%才对，这样图片由下面的thumbnail固定宽度决定，无论图片多宽文本框都不会侵入图片右侧 */
	max-height: 250px;
	height: 100%;
	display: flex;
	align-items: center;
	overflow: ; /* 当卡片框变小，文本会侵入图片右沿，加上这句使图片被侵入部分隐藏，是最简单的解决办法，虽然并没有解决根本问题，图片的右侧会看不到，但不会太离谱；但现在找到了解决办法，不需要这条了 */
	}
.postcard_text_holder {
	min-height: 100%;
	width: 100%;
	display: flex;
	flex-direction: column;
	padding: 0 10px;
	text-align: left;
	}
.postcard_text_variable {
	width: 100%;
	height: calc(100% - 40px);
	max-height: 210px;
	padding: 10px;
	overflow: hidden;
	}
.postcard_text_variable p {
	margin: 5px 0;
	max-height: 210px;
	overflow: hidden;     
  	text-overflow: ellipsis;
  	display:-webkit-box; 
	-webkit-box-orient:vertical;
	-webkit-line-clamp:4; 
	}
.postcard_text_variable h3 {
	font-size: 20px;
	margin: 10px 0 10px 0;
	color: Floralwhite;
	overflow: hidden;     
  	text-overflow: ellipsis;
  	display:-webkit-box; 
	-webkit-box-orient:vertical;
	-webkit-line-clamp:2; 
	}
.postcard_text_bottom {
	width: calc(100% - 20px);
	height: 40px;
	line-height: 40px;
	font-size: 14px;
	margin: 0 10px ;
	border-top: 0.5px rgba(255,255,255,0.5) solid;
	color: #999;
}
.postcard_thumbnail {
	object-fit: cover;
	width: 350px;
	height: 250px;
}




/* 右侧栏 sidebar - 右起30% */
.sidebar {
	float: right;
	width: 30%;
	padding: 20px;
	text-align: center;
	background:  rgba(255,255,255,0);
	border-left: none;
}

.sidebar-box {
	width: 100%;
	max-width: 450px;
	text-algin: left;
	margin: 0 auto;
	background: ;
	}

.sidebar_title_band {
	width: 100%;
	text-align: center;
	margin: 0 0 20px 0;
	display: flex;
	justify-content: center;
	}
.sidebar_title {
	font-size: 14px;
	color: Floralwhite;
	font-weight: bold;
	padding: 0 5px 0 8px;
	margin: 0;
	min-width: fit-content;
	display: inline-block;
	letter-spacing: 3;
	}
.sidebar_title_line {
	margin: 10px 0;
	width: 100%;
	border-top: 1px white dotted;
	display: inline-block;
	}

.sidebar li {
	padding-bottom: 10px;
	}
.sidebar ul {
	list-style: none;
	padding-bottom: ;
	}
	
.sidebar .line_invisible {
	margin-top: -10px;
	display: none;
	}
	
.postslip {
	width: 100%;
	height: 60px;
	margin-bottom: 20px;
	overflow: hidden;
	background: rgba(255,255,255,0);
	letter-spacing: 1;
	}
.postslip p {
	font-size: 15px;
	color: white;
	overflow: hidden;     
  	text-overflow: ellipsis; /* 标题超过2行就省略 */
  	display:-webkit-box; 
	-webkit-box-orient:vertical;
	-webkit-line-clamp:2; 
	}
.postslip_image_holder {
	float: left;
	width: 60px;
	height: 60px;
	background: ;
	}
.postslip_text_holder {
	float: left;
	max-width: calc(100% - 60px);
	height: 100%;
	padding: 0;
	text-align: left;
	}
.postslip_thumbnail {
	object-fit: cover;
	height: 100%;
	width: 100%;
}

.postnote {
	width: 100%;
	height: 50px;
	margin-bottom: 20px;
	overflow: hidden;
	background: rgba(255,255,255,0);
	letter-spacing: 1;
	}
.postnote_image_holder {
	float: left;
	width: 60px;
	height: 60px;
	text-align: right;
	background: ;
	}
.postnote_text_holder {
	float: left;
	max-width: calc(100% - 60px);
	height: 100%;
	padding: 0;
	text-align: left;
	}
.postnote_thumbnail {
	object-fit: cover;
	height: 50px;
	width: 50px;
	border-radius: 50%;
	}

.postslip h5,
.postnote h5 {
	font-size: 15px;
	font-weight: normal;
	color: #ddd;
	margin: 0;
	padding: 5px 10px;
	white-space: nowrap; /* 标题超过1行就省略 */
	text-overflow:ellipsis;
	overflow:hidden;
	}
.postslip h5 {
	margin-top: 3px;
	margin-bottom: -3px;
	}
.postnote h5 {
	margin-bottom: -5px;
	}
	
.postslip h5 a:hover,
.postnote h5 a:hover {
	color: white;
	text-shadow: 0 0 5px white, 0 0 10px skyblue;
	}
.postslip_meta,	
.postnote_author,
.postnote_meta {
	font-size: 14px;
	color: #777;
	}
.postslip_meta,	
.postnote_author {
	padding-left: 10px;
	}
.postnote_author:before {
	content: "作者：";
	}
.postnote_author a:link,
.postnote_author a:visited {
	color: #bbb;
	}
.postnote_author a:hover {
	color: #97c5db;
	}
.postslip_meta a:link,
.postslip_meta a:visited,
.postnote_meta a:link,
.postnote_meta a:visited {
	color: #777;
	}
.postslip_meta a:hover,
.postnote_meta a:hover {
	color: #ddd;
	}

/* 底部 footer - 全宽 */
footer {
	width: 100%;
	margin: 0;
	border-top: 0.8px solid rgba(255,255,255,0.7);
	text-align: center; /* 把内含footer-box居中 */
	background: ;
	}
.footer-box {
    width: 100%;
	height: 30px;
	margin: 0 auto;
	max-width: 1340px; /* 1300内宽 + 20padding */
	padding: 0 20px;
	background: rgba(255,255,255,0);
	text-align: right;
	color: #97c5db;
	font-size: 12px;
	line-height: 30px;
	letter-spacing: 0.6;
	text-transform: capitalize;
	white-space: nowrap;
	}	

	
	
	
/* 以下是响应式版面设计 */

/* 超大屏 */
@media screen and (min-width: 1340px) {

.site-title {
    line-height: 50px; 
	font-size: 30px;
	}	
.slider_title {
	padding: 0 20px;
	}
}


/* 以下两条纯粹为postcard框图片文本细调而设置 */
@media screen and (max-width: 1060px) {
.postcard_thumbnail {
	width: 300px;
	}
.main_single {
	min-height: calc(100vh - 151px);
	}
}

@media screen and (max-width: 920px) {
.postcard_thumbnail {
	width: 270px;
	}
.article,
.sidebar {
	padding: 20px 10px;
	}
}

@media screen and (max-width: 850px) {
.postcard_thumbnail {
	width: 250px;
	}
}

/* 以下纯粹为侧栏的信息部分细调而设置 */
@media screen and (max-width: 1100px) and (min-width: 801px) {
.postnote_meta {
	display: none;
	}
}

/* 小屏 - 上下两栏布局 - 紫字系 */
@media screen and (max-width: 800px) /* 到时改成800 */
{
.header-box { 
	text-align: center;
	display: ;
	}
.nav-box { 
	text-align: center;
	}
.slide_title {
	text-align: center;
	font-size: 20px;
	}
.slide_title_meta {
	font-size: 14px;
	}

.sidebar {
	width: 100%;
	background: linear-gradient(to top, rgba(103,144,162,0.65), rgba(0,0,0,0));
	border-top: 0px dotted white;
	border-left: none;
	margin-top: 0;
	color: ;
	}
.sidebar .line_invisible {
	display: block;
	}

.article {
	width: 100%;
	padding: 20px 15px 0 15px;
	}
	
.postcard_thumbnail {
	width: 350px;
	}
	
}

@media screen and (max-width: 700px) {
.postcard_thumbnail {
	width: 270px;
	}
}

@media screen and (max-width: 600px) {
.article {
	padding: 20px 10px 0 10px;
	}
	
.postcard {
	height: auto;
	max-height: none;
	display: table;
	max-height: none;
	}
.postcard_image_holder {
	float: left;
	width: 100%;
	max-width: 100%;
	max-height: none;
	}
.postcard_text_holder {
	float: right;
	width: 100%;
	max-width: 100%;
	height: auto;
	padding: 0 5px;
	}
.postcard_thumbnail {
	object-fit: cover;
	height: auto;
	max-height: none;
	width: 100%;
	}
.sidebar .line_invisible {
	display: none;
	}

}

	
/* 全局文字、点和线样式 */
.alignright {
	float:right; 
	text-align: right;
	}

.skyblue {
	color: #6ec0fa;
	}
.rosepink {
	color: hotpink;
	}

p {
	font-size: 16px;
	line-height: 1.5;
	color: #ddd;
	}
	
a:link {
	text-decoration: none;
	color: white;
	cursor: pointer;
	}
a:hover {
	color: #6ec0fa;
	}
a:visited {
	color: white;
	}

.line_solid {
	margin: 10px 0;
	border-top: 0.7px white solid;
	}
.line_dot {
	margin: 10px 0;
	border-top: 1px white dotted;
	}
.line_invisible {
	margin: 10px 0;
	border-top: 0.2px rgba(255,255,255,0.15) solid;
	}

	
.topnone {
	display: none;
}

.dot {
	height: 4px;
	width: 4px;
	margin: 2px 5px;
	background: white;
	border-radius: 50%;
	display: inline-block;
	}
.skyblue_bg { 
	background: #6ec0fa;
	}
.rosepink_bg {
	background: hotpink;
	}


/* 单帖和单页 */
.single_return {
	max-width: 1000px; 
	margin: 0 auto;
	padding: 0 20px;
	text-align: left; 
	font-size: 16px;
	position: absolute;
	bottom: 10px;
	}

.single_return a:link,
.single_return a:visited {
	color: #ddd;
	}
.single_return a:hover {
	color: white;
	text-shadow: 0 0 5px white, 0 0 10px dodgerblue;
	}


