* {
	-webkit-box-sizing: border-box; 
	-moz-box-sizing: border-box; 
	box-sizing: border-box; 
	-webkit-text-size-adjust: none;
}

html, body {
	height: 100%; 
	margin: 0; 
	padding: 0; 
	border: 0;
}
body {
	font-family: Arial,'Times New Roman','Microsoft YaHei',SimHei; 
	align-items: center; 
	justify-content: center;
}
figure {
	display: block;
}

ul,ol,figure,form {
	margin: 0; 
	padding: 0;
}
img {
	border: 0; 
	vertical-align: middle;
}

html{
	background-image: url(/photo/holybg.jpg);
	background-color: #232323;
	background-position: center center;
	background-size: cover;
	background-repeat: no-repeat;
	background-attachment: scroll;
}
#page{
	display: -webkit-flex; 
	display: flex; 
	background-color: rgba(85,85,85,0); 
	color: #eee; min-height: 100%;
	-webkit-transition: background-color ease 5s;
	-moz-transition: background-color ease 5s;
	-ms-transition: background-color ease 5s;
	transition: background-color ease 5s;
}
a {
	color: #eee; 
	text-decoration: none;
}
a:hover {
	color: #fff; 
	text-decoration: underline;
}

#card {
	position: relative; 
	margin: auto;
	-webkit-transition: width ease .5s, height ease .5s;
	-moz-transition: width ease .5s, height ease .5s;
	-ms-transition: width ease .5s, height ease .5s;
	transition: width ease .5s, height ease .5s;
}
#card header { 
	position: relative; 
	color: #dde;
	text-align: center;
	-webkit-transition: color ease 5s;
	-moz-transition: color ease 5s;
	-ms-transition: color ease 5s;
	transition: color ease 5s;
}
#card h2 {
	margin-top: .5em;
}
#card ul {
	position: relative; 
	padding: 0;
	-webkit-transition: width ease .5s, height ease .5s;
	-moz-transition: width ease .5s, height ease .5s;
	-ms-transition: width ease .5s, height ease .5s;
	transition: width ease .5s, height ease .5s;
}
#card li {
	position: absolute; 
	list-style: none; 
	width: 250px; 
	height: 190px; 
	overflow: hidden; 
	line-height: 190px; 
	background-color: rgba(78, 78, 78, .6); 
	text-align: center; 
	font-size: 4rem; 
	/* border-radius: 10px 10px; */
	-webkit-transition: background-color ease .3s, top ease .5s, left ease .5s, width ease .5s, height ease .5s;
	-moz-transition: background-color ease .3s, top ease .5s, left ease .5s, width ease .5s, height ease .5s;
	-ms-transition: background-color ease .3s, top ease .5s, left ease .5s, width ease .5s, height ease .5s;
	transition: background-color ease .3s, top ease .5s, left ease .5s, width ease .5s, height ease .5s;
}
#card li.aboutbx {
	height: 90px; 
	line-height: 90px; 
	font-size: 2rem;
}
#card li.quarter {
	width: 120px; 
	height: 90px; 
	line-height: 90px; 
	font-size: 2rem;
}
#card li.mailbx {
	width: 120px; 
	font-size: 2rem;
}
#card a {
	display: inline-block; 
	width: 100%; 
	height: 100%; 
	overflow: hidden;
}
#card a:hover {
	text-decoration: none;
}
#card li span {
	position: absolute; 
	top: 100%; 
	left: 0; 
	width: 100%; 
	height: 100%; 
	opacity: 0; 
	font-size: 62.5%;
	-webkit-transition: top ease .3s, opacity ease .3s;
	-moz-transition: top ease .3s, opacity ease .3s;
	-ms-transition: top ease .3s, opacity ease .3s;
	transition: top ease .3s, opacity ease .3s;
}
#card li i {
	display: inline-block; 
	width: 100%; 
	height: 100%;
	-webkit-transition: opacity ease .3s, font-size ease .3s, color ease .3s;
	-moz-transition: opacity ease .3s, font-size ease .3s, color ease .3s;
	-ms-transition: opacity ease .3s, font-size ease .3s, color ease .3s;
	transition: opacity ease .3s, font-size ease .3s, color ease .3s;
}
#card li:hover i {
	opacity: 0; 
	font-size: 10%;
}
#card li:hover span {
	display: block; 
	top: 0; 
	opacity: 1;
}
#link-blog {
	left: 0; 
	top: 0;
}
#link-blog:hover {
	background-color: #97B4FF;
}
#link-about:hover {
	background-color: #A88AFF;
}
#link-github:hover {
	background-color: #7E7FE8;
}
#link-mail:hover {
	background-color: #7EB7E8;
}
#link-mail span:after {
	content: "Email"; 
}
#link-zhihu:hover {
	background-color: #8AE8FF;
}
#link-weibo:hover {
	background-color: #72E8E0;
}
#link-wechat:hover {
	background-color: #7DFFD1;
}
#link-weibo span {
	top: 0;
}
#card ul:after {
	content: ""; 
	clear: both; 
	display: block;
}

@media (min-width: 801px) {
	#card {
		width: 780px;
	}
	#card ul {
		width: 780px; 
		height: 200px;
	}
	#link-blog {
		left: 0; 
		top: 0;
	}
	#link-about {
		left: 260px; 
		top: 0;
	}
	#link-mail {
		left: 520px; 
		top: 0;
	}
	#link-weibo {
		left: 390px; 
		top: 100px;
	}
	#link-github {
		left: 650px; 
		top: 0;
	}
	#link-zhihu {
		left: 650px; 
		top: 100px;
	}
	#link-wechat {
		left: 260px; 
		top: 100px;
	}
	#card ul {
		-webkit-transition: width ease .5s;
		-moz-transition: width ease .5s;
		-ms-transition: width ease .5s;
		transition: width ease .5s;
	}
}

/*处理手机端*/
@media (max-width: 550px) {
	body.device-mobile #page {
		display: block; 
		padding: 20px 0;
	}
}

@media (min-width: 641px) and (max-width: 800px) {
	#card,#card ul{
		-webkit-transition: width ease .5s;
		-moz-transition: width ease .5s;
		-ms-transition: width ease .5s;
		transition: width ease .5s;
	}
}

@media (min-width: 551px) and (max-width: 800px) {
	#card { 
		width: 520px;
	}
	#card ul {
		width: 520px; 
		height: 300px;
	}
	#link-about {
		left: 260px; 
		top: 0;
	}
	/*
	li#link-mail.half {
		left: 0; 
		top: 210px; 
		width: 305px;
	}
	*/
	#link-mail {
		left: 260px;
		top: 100px;
	}
	#link-weibo {
		left: 130px;
		top: 200px;
	}
	#link-github {
		left: 390px; 
		top: 100px;
	}
	#link-zhihu {
		left: 390px; 
		top: 200px;
	}
	#link-wechat {
		left: 0; 
		top: 200px;
	}
}

@media (min-width: 451px) and (max-width: 550px) {
	#card {
		width: 410px;
	}
	#card ul{ 
		width: 410px; 
		height: 410px;
	}
	#link-about {
		left: 0; 
		top: 200px;
	}
	#link-mail {
		left: 260px; 
		top: 200px; 
	}
	#link-weibo {
		left: 130px; 
		top: 300px;
	}
	#link-github {
		left: 260px; 
		top: 0;
	}
	#link-zhihu {
		left: 260px; 
		top: 100px;
	}
	#link-wechat {
		left: 0; 
		top: 300px;
	}
}
@media (max-width: 480px){
	#card,#card ul{
		-webkit-transition: none;
		-moz-transition: none;
		-ms-transition: none;
		transition: none;
	}
}
@media (max-width: 450px) {
	#card{
		width: 100%; 
		height: 100%; 
		padding: 10px;
	}
	#card ul{
		width: 0; 
		height: 0; 
		padding: 50%;
	}
	#card li{
		width: 100%;
		height: 49%;
	}
	#card li.mailbx {
		width: 49%; 
		height: 23.5%;
		line-height: 90px;
	}
	#card li.aboutbx {
		width: 49%; 
		height: 23.5%;
	}
	#card li.quarter{
		width: 23.5%; 
		height: 23.5%;
	}
	#card li a{
		position: absolute;
		left: 0;
		top: 0;
	}
	#link-blog {
		line-height: 100px;
	}
	#link-about {
		left: 0; 
		top: 51%;
	}
	#link-mail {
		left: 51%; 
		top: 51%;
	}
	#link-weibo {
		left: 51%; 
		top: 76.5%;
	}
	#link-github {
		left: 0%; 
		top: 76.5%;
	}
	#link-zhihu {
		left: 25.5%; 
		top: 76.5%;
	}
	#link-wechat {
		left: 76.5%; 
		top: 76.5%;
	}
}
@media (max-width: 320px) {
	#card li {
		line-height: 147px;
	}
	#card li.mailbx {
		line-height: 70px;
	}
	#card li.bx {
		line-height: 70px;
	}
	#card li.quarter {
		line-height: 70px;
	}
}

/* user update */
.my_site_name {
	margin: 10px 0;
	font-size: 96px;
	font-weight: normal;
	-webkit-transition: font-size ease .5s;
	-moz-transition: font-size ease .5s;
	-ms-transition: font-size ease .5s;
	transition: font-size ease .5s;
}
.my_site_slogan {
	font-family: consolas, 'Source Code Pro', monaco, monospace;
	font-size: 24px;
	margin: 0;
	letter-spacing: -1px;
	-webkit-transition: font-size ease .5s;
	-moz-transition: font-size ease .5s;
	-ms-transition: font-size ease .5s;
	transition: font-size ease .5s;
}
.blank_line {
	height: 50px;
	-webkit-transition: height ease .5s;
	-moz-transition: height ease .5s;
	-ms-transition: height ease .5s;
	transition: height ease .5s;
}
@media (max-width: 600px) {
	.blank_line {
		height: 30px;
	}
	.my_site_name {
		margin: 6px 0;
	}
}
@media (max-width: 450px) {
	.blank_line {
		height: 20px;
	}
	.my_site_name {
		margin: 4px 0;
		font-size: 84px;
	}
	.my_site_slogan {
		font-size: 22px;
	}
}
@media (max-width: 320px) {
    .blank_line {
		height: 10px;
	}
	.my_site_name {
		margin: 3px 0;
		font-size: 72px;
	}
	.my_site_slogan {
		font-size: 20px;
	}
}

/* dialog */
.modal {
	position: fixed;
	top: 50%;
	left: 50%;
	margin-left: -150px;
	margin-top: -285px;
	overflow-y: auto;
	padding: 1em;
	background: #fff;
	z-index: 100;
	opacity: 0;
	pointer-events: none;
	-webkit-transition: all 0.25s ease-out;
	-moz-transition: all 0.25s ease-out;
	-ms-transition: all 0.25s ease-out;
	-o-transition: all 0.25s ease-out;
	transition: all 0.25s ease-out;
}
.modal a {
	margin-bottom: 0;
}
.modal.show {
	opacity: 1;
	pointer-events: auto;
}
.fancy.modal {
	box-shadow: 0 3px 6px rgba(0,0,0,0.25);
	border: 1px solid #bbb;
	background: -webkit-linear-gradient(top,#fff,#ddd);
	background: -moz-linear-gradient(top,#fff,#ddd);
	background: linear-gradient(top,#fff,#ddd);
	-webkit-transform:translateY(-100%);
	-moz-transform:translateY(-100%);
	-ms-transform:translateY(-100%);
	-o-transform:translateY(-100%);
	transform:translateY(-100%);
}
.fancy.show {
	-webkit-transform:translateY(0%);
	-moz-transform:translateY(0%);
	-ms-transform:translateY(0%);
	-o-transform:translateY(0%);
	transform:translateY(0%);
}
.wechat_img {
	background-image: url("/photo/wechat_img.jpg");
	width: 266px;
	height: 266px;
	background-size: contain;
}
.button {
	-webkit-appearance: none;
	-webkit-font-smoothing: antialiased;
	background-color: #999;
	border-radius: 2px;
	box-shadow: rgba(0, 0, 0, 0.2) 0px -2px 0px 0px inset;
	color: rgb(255, 255, 255);
	cursor: pointer;
	display: inline-block;
	font-family: 'Proxima Nova', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-size: 16px;
	font-weight: bold;
	margin: 15px 0;
	padding: 10px 24px;
	text-decoration: none;
	transition-delay: 0s;
	transition-duration: 0.3s;
	transition-property: background-color;
	transition-timing-function: ease-out;
}
.button:hover {
	text-decoration: none;
	background-color: #666;
}