/**
 * Theme Name: Class+
 * Author: moyu
 * Author URI: http://www.20theme.com
 * Version: 1.0
 * Description: Class+ is a clean and responsive magazine WordPress Theme.
 * Text Domain: twenty-theme
 * Domain Path: /languages/
 * License: GNU General Public License
 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
 * Tags: three-columns, theme-options, right-sidebar, custom-background, custom-menu, threaded-comments
 */

/*
This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.

 Class+ is based on Underscores http://underscores.me/, (C) 2012-2014 Automattic, Inc.

Resetting and rebuilding styles have been helped along thanks to the fine work of
Bootstrap http://getbootstrap.com/
*/

/*--------------------------------------------------------------
 * reset
 *------------------------------------------------------------*/
@red: #ff4629;
@hover-color: #428bca;
@widget-link: #38485a;
@site-width: 1230px;
.trans {
	-webkit-transition: all .3s;
	-moz-transition: all .3s;
	-o-transition: all .3s;
	transition: all .3s;
}
::selection {
	background-color: #38485a;
	color: #fff;
}
a {
	text-decoration: none;
	.trans;
	&:hover {
		color: #428bca;
		text-decoration: none;
	}
}
h1, h2, h3, h4, h5, h6 {
	color: #2a3744;
}
.btn {
	border-radius: 0 !important;
}
/* =WordPress Core
-------------------------------------------------------------- */
.entry-content p.wp-caption-text, .entry-content p.gallery-caption, article.type-page .the-content p.wp-caption-text, article.type-page .the-content p.gallery-caption {
  color: #999999;
  font-size: 12px;
  text-align: center;
}
.sticky .post-format-badge { 
  color: #2999C4;
}
.bypostauthor > article.comment .commenter a{
    color: #1ABC9C;
}
.gallery-item img{
  border: none!important;
  -moz-border-radius: 2px;
  -webkit-border-radius: 2px;
  border-radius: 2px;
}
.gallery-item
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float:right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto
}

.wp-caption {
    background: #fff;
    max-width: 100%; 
    padding: 5px 0 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 100%;
    padding: 0;
    width: auto;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    border-radius: 2px;
}

.wp-caption p.wp-caption-text, article.type-page .the-content .wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 8px 0 0;
}
/*--------------------------------------------------------------
 * Header
 *------------------------------------------------------------*/
.site-header {
	position: fixed;
	top:0;
	left: 0;
	z-index: 999;
	width: 100%;
	min-width: 640px;
	padding: 0 15px;
	background: #2a3744;
}
.nav-inner {
	max-width: @site-width;
	width: 100%;
	margin: 0 auto;
	background: #2a3744;
	height: 40px;
	.main-navigation {
		float: left;
	}
	.site-nav {
		margin: 0;
		padding: 0;
		list-style: none;
		font-weight: lighter;
		> li {
			float: left;
			line-height: 40px;
			position: relative;
			&.current-page > a {
				background-color: lighten(#2a3744, 10%);
			}
			> a {
				padding: 11px;
				font-size: 14px;
				line-height: 18px;
				color: #c0ccdb;
				.trans;
				&:hover {
					background-color: lighten(#2a3744, 10%);
				}
			}
			.sub-menu {
				position: absolute;
				top:100%;
				left: 0;
				margin: 0;
				padding: 0;
				list-style: none;
				display: none;
				background-color: darken(#2a3744, 10%);
				z-index: 999;
				.sub-menu {
					position: absolute;
					left: 100%;
					top:0;
				}
				li {
					position: relative;
					float: none;
					a {
						font-size: 14px;
						line-height: 18px;
						padding: 7px 22px 11px 22px;
						border-bottom: 1px solid rgba(255, 255, 255, 0.1);
						color: darken(#c0ccdb, 10%);
						min-width: 120px;
						white-space: nowrap;
						display: block;
					}
				}
			}
		}
	}
	.site-search {
		line-height: 40px;
		float: right;
		.searchform {
			position: relative;
			#s {
				width: 220px;
				height: 26px;
				font-size: 14px;
				line-height: 16px;
				background: #fff;
				border: none;
				padding: 5px 30px 5px 5px;
				outline: none;
				box-shadow: none;
			}
			#searchsubmit {
				position: absolute;
				width: 30px;
				height: 30px;
				right: 0;
				top: 5px;
				background: transparent;
				outline: none;
				box-shadow: none;
				border: none;
				z-index: 999;
			}
			.search-icon {
				font-size: 18px;
				position: absolute;
				right: 5px;
				top:0;
				z-index: 998;
			}
		}
	}
}
/*--------------------------------------------------------------
 * Main
 *------------------------------------------------------------*/
.site-content {
	padding: 25px;
	width: @site-width;
	background: #fff;
	min-height: 500px;
	display: block;
	margin: 100px auto;
	&.site-read-mod {
		max-width: 920px;
		padding: 25px;
		width: 100%;
		#side-content, #secondary {
			display: none;
		}
		#primary {
			padding: 0;
			width: 100%;
		}
		#main-content {
			width: 100%;
			padding: 0;
		}
	}
}
#primary {
	float: left;
}
#side-content {
	width: 160px;
	float: left;
}
#main-content {
	padding: 0 30px;
	width: 760px;
	float: left;
	overflow: hidden;
	img {
		max-width: 100%;
		height: auto;
	}
}

#secondary {
	width: 260px;
	float: right;
}

.list-categories {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 16px;
	> li {
		margin-bottom: 30px;
		> a {
			line-height: 30px;
			margin-bottom: 10px;
			font-weight: bold;
			color: @red;
			text-transform: uppercase;
		}
		.sub-menu {
			margin: 0;
			padding: 0;
			list-style: none;
			font-size: 14px;
			li {
				a {
					color: @widget-link;
					line-height: 30px;
					&:hover {
						color: @hover-color;
					}
				}
			}
		}
	}
}
/*--------------------------------------------------------------
 * post & page
 *------------------------------------------------------------*/

/** page **/
.page-header {
	margin-top: 0;
}
.page-title {
	margin: 0;
	line-height: 48px;
}
.entry-meta {
	font-size: 12px;
	color: #aaa;
	margin-bottom: 5px;
}
.categories-links {
	font-weight: 500;
	display: block;
	color: #fff;
	font-size: 14px;
	text-transform: uppercase;
	margin-bottom: 10px;
	a {
		padding: 0 20px;
		margin-right: 5px;
		color: #fff;
		display: inline-block;
		text-align: center;
		background-color: @red;
		line-height: 30px;
		height: 30px;
		&:hover {
			background-color: darken(@red, 10%)
		}
	}
}
/**** post style ****/
.post-list {
	position: relative;
	padding: 0 0 40px 0;
	margin-bottom: 40px;
	border-bottom: 1px solid #e5e5e5;
	.entry-thumbnail {
		margin: 0;
		background-color: #e4e4e4;
		width: 28.571%;
		max-width: 200px;
		float: left;
		overflow: hidden;
		img {
			width: 100%;
			height: auto;
		}
	}
	.entry-body {
		width: 65.714%;
		float: right;
	}
	.entry-title {
		font-weight: 300;
		margin: 10px 0;
		a {
			color: #555;
			&:hover {
				color: #111;
			}
		}
	}
	.entry-summary {

	}
}
.post-pagination {
	text-align: center;
	margin: 15px auto;
	a {
		position: relative;
		padding: 3px 4px;
		margin-right: 7px;
		color: #fff;
  		background-color: #dadada;
  		border-radius: 3px;
  		-webkit-border-radius: 3px;
  		text-align: center;
	}
}
/** navigation-paging **/
.navigation-paging {
	display: block;
	margin: 0 0 1.5em;
	overflow: hidden
}
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
}
.pagination {
	float: right;
  	margin: 20px 0;
}
.pagination ul {
  display: inline-block;
  *display: inline;
  margin-bottom: 0;
  margin-left: 0;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
  *zoom: 1;
  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.pagination ul > li {
  display: inline;
}
.pagination a,
.pagination span {
  float: left;
  padding: 2px 8px;
  line-height: 20px;
  text-decoration: none;
  font-weight: normal;
  background-color: #FAFAFA;
  border: 1px solid #dddddd;
  color: #828282;
  margin-left: 5px;
}
.pagination a:hover,
.pagination a:focus,
.pagination span.current {
  background-color: @red;
  color: white;
  border-color: @red;
}
.pagination span.current {
  color: white;
  border-color: @red;
  cursor: default;
}
.post-navigation {
	.nav-links {
		border: 1px solid #e5e5e5;
		padding: 5px 0;
		.nav-previous, .nav-next {
			width: 50%;
			float: right;
			padding: 0 10px;
			overflow: hidden;
		}
		.nav-previous {
			float: left;
			border-right: 1px solid #e5e5e5;
		}
	}
}
/** single post **/
.single-post {
	.entry-title {
		margin: 0 0 15px 0;
	}
	.entry-meta {
		border-width: 1px 0;
		border-style: solid;
		border-color: #e5e5e5;
		padding: 10px 0;
		line-height: 30px;
		margin: 0 0 15px 0;
		.categories-links {
			display: inline-block;
			margin-bottom: 0;
		}
		.entry-actions {
			float: right;
			a {
				margin-left: 5px;
				color: #444;
				font-size: 14px;
				line-height: 30px;
				&:hover {
					color: @red;
				}
			}
		}
	}
	.entry-footer {
		margin-top: 15px;
	}
	.entry-tags {
		padding-bottom: 4px;
		margin-bottom: 10px;
		border-bottom: 1px solid #e5e5e5;
	}
	.entry-box {
		margin-bottom: 15px;
	}
}
.alert {
	a {
		color: #245269;
		font-weight: 700;
		&:hover {
			text-decoration: underline;
		}
	}
}
/** 评论 **/
.comments-area {

}
.comment-list {
	margin: 0;
	padding: 0;
	list-style: none;
	li {
		padding-bottom: 15px;
		margin-bottom: 15px;
		border-bottom: 1px solid #e5e5e5;
	}
	.children {
		margin: 0 0 0 40px;
		padding: 0;
	}
	.comment-author {
		margin-bottom: 15px;
	}
	.comment-reply-link {
		color: @red;
		&:hover {
			color: #333;
		}
	}
}
#respond {
	border-top: 1px solid #e5e5e5;
	#commentform {
		border: 1px solid #e5e5e5;
		position: relative;
		max-height: 58px;
		overflow: hidden;
		margin-bottom: 0;
		-webkit-border-radius: 2px;
		-moz-border-radius: 2px;
		border-radius: 2px;
		&.active {
			max-height: 10000px;
			-webkit-transition: max-height 10s;
			-moz-transition: max-height 10s;
			-o-transition: max-height 10s;
			transition: max-height 10s;
		}
	}
	p {
		margin-bottom: 0;
		position: relative;
	}
	input[type="text"] {
		padding: 5px 45px 5px 15px;
		max-width: 100%;
		min-width: 100%;
		margin-bottom: 0;
		border-width: 1px 0 0;
		border-color: #e5e5e5;
		border-style: solid;
		outline: none;
		-webkit-appearance: none;
		-webkit-box-sizing: border-box;
		-moz-box-sizing: border-box;
		box-sizing: border-box;
		-webkit-border-radius: 0;
		-moz-border-radius: 0;
		border-radius: 0;
	}
	i {
		position: absolute;
		top: 8px;
		right: 10px;
		color: #aaa;
		-webkit-transition: all .5s;
		-moz-transition: all .5s;
		-o-transition: all .5s;
		transition: all .5s;
	}
	#comment {
		outline: none;
		border: 0;
		width: 100%;
		min-height: 58px;
		padding: 15px 100px 15px 15px;
		margin: 0;
		overflow: hidden; 
		word-wrap: break-word; 
		resize: none; 
		height: 62px;
	}
	.form-submit {
		position: absolute;
		top: 10px;
		right: 10px;
	}
	#submit {
		background: #3498db;
		border: 0;
		-webkit-border-radius: 2px;
		-moz-border-radius: 2px;
		border-radius: 2px;
		color: #fff;
		font-size: 16px;
		line-height: 1;
		padding: 9px 20px;
		text-align: center;
		-webkit-transition: all .25;
		-moz-transition: all .25;
		-o-transition: all .25;
		transition: all .25;
		vertical-align: middle;
	}
}
/*--------------------------------------------------------------
 * Widget
 *------------------------------------------------------------*/
.widget-container {
	margin-bottom: 30px;
	ul {
		margin: 0;
		padding: 0;
		list-style: none;
	}
	a {
		color: @widget-link;
		&:hover {
			color: @hover-color;
		}
	}
}
.footer-nav .widget-container {
	margin-bottom: 0;
}
.widget-title {
	color: @red;
	margin-top: 0;
}
/** posts loop **/
.widget-posts-list {
	margin: 0;
	padding: 0;
	list-style: none;
	li {
		padding-bottom: 15px;
		margin-bottom: 15px;
		border-bottom: 1px solid #e5e5e5;
		.widget-post-thumb {
			float: left;
			width: 90px;
			margin-right: 15px;
			overflow: hidden;
		}
		.widget-post-header {
			.widget-post-title {
				margin-top: 0;
			}
			.widget-post-excerpt {
				font-size: 12px;
			}
		}
	}
}
/** archive **/
.widget_archive, .widget_categories {
	ul {
		li {
			a {
				line-height: 30px;
			}
		}
	}
	.count {
		float: right;
		margin-left: 0.3em;
		color: #666;
		font-weight: normal;
	}
}
/** search **/
.widget_search {
	
}
.widget_search .search-form {
	position: relative;
	overflow: hidden;
}
.widget_search input[type="search"] {
	width: 100%;
	padding:5px 45px 5px 5px;
	outline: none;
	border: 1px solid #e5e5e5;
}
.widget_search .search-submit {
	position: absolute;
	right: 0;
	top: 0;
	border: 0;
	background: #3498db;
	height: 32px;
	color: #fff;
	display: inline-block;
}
/** tag could **/
.tagcloud a, .page-tags a {
	font-size: 12px !important;
	padding: 2px 8px;
	background-color: #EEF1F3;
	border:1px solid #E5E5E5;
	margin: 0 3px 6px 0;
	position: relative;
	display: inline-block;
	color: #A3A3A3;
	-webkit-transition: background-color, color 0.2s linear;
	-moz-transition: background-color, color 0.2s linear;
	transition: background-color, color 0.2s linear;
}
.tagcloud a:hover, .page-tags a:hover {
	color: #fff;
	background-color: #2195de;
	text-decoration: none;
	border-color: #2195de;
}
/** recent posts & recent comments **/
.widget_recent_entries, .widget_recent_comments {
	li {
		padding-bottom: 5px;
		margin-bottom: 5px;
	}
}
/** Calender **/
#wp-calendar {
    width:100%;
    font-weight: normal;
}
#wp-calendar caption {

    border-color: #EEEEEE;
    border-style: solid solid none;
    border-width: 1px 1px 0;
    color: #777777;
    font-size: 12px;
    font-weight: bold;
    padding: 8px 0;
    text-transform: uppercase;
}
#wp-calendar > tbody {
	border-width: 0 1px 1px 1px;
	border-color: #eeeeee;
	border-style: solid;
}
#wp-calendar tr td {
	text-align: center;
	position: relative;
}
#wp-calendar > tbody td,#wp-calendar > tbody th {
	border: 1px solid #e5e5e5;
}
#wp-calendar tr td a {
	position: relative;
	padding: 2px 5px;
	color: #999;
}
#wp-calendar tr td#today {
	background-color: #e5e5e5;
	color: white;
	border: none;
}
#wp-calendar tr td#today a {
	color: white;
}
#wp-calendar thead tr {
    background: #fafafa;
    border: 1px solid #eee;
}
#wp-calendar thead tr th{
    padding:5px
}
#wp-calendar thead tr td {

}
.widget_calendar .widget-wrapper td {
    border:1px solid #eeeeee;
    padding:4px;
    text-align: center;
}
.widget_calendar .widget-wrapper td.post a {
    color:#fff;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase
}

.widget_calendar .widget-wrapper tfoot td.pad,
td#next,
td#prev {
    border:0px
}

td#next {
    text-align: right
}
td#prev {
    text-align: left
}
td#next a,
td#prev a {
    color:#777777;
    text-decoration: none;
    font-weight: bold;
    padding-top:10px;
    display: block;
    text-transform: uppercase
}
td#prev a {
	text-align: left;
}
td#next a {
	text-align: right;
}
.widget_calendar .widget-wrapper {
    padding:10px
}
.site-footer {
	width: 100%;
	min-width: 640px;
	background: #212a34;
	padding: 30px 15px;
	.footer-area {
		width: @site-width;
		margin: 0 auto;
		.footer-nav {
			ul {
				margin: 0 60px 0 0;
				padding: 0;
				list-style: none;
				float: left;
				li {
					a {
						color: #556678;
						line-height: 30px;
						&:hover {
							color: lighten(#556678, 10%);
						}
					}
				}
			}
		}
		.site-info {
			text-align: right;
			margin-top: 30px;
			padding-top: 15px;
			color: #556678;
			border-top: 1px solid rgba(255, 255, 255, 0.1);
		}
	}
}
/*--------------------------------------------------------------
 * responsive
 *------------------------------------------------------------*/
@media (max-width: 1230px) {
	.nav-inner {
		width: 100%;
	}
	.site-content {
		width: 100%;
		padding-right: 285px;
		position: relative;
	}
	.site-footer {
		width: 100%;
		.footer-area {
			width: 100%;
		}
	}
	#primary {
		position: relative;
		width: 100%;
		padding-left: 160px;
	}
	#side-content {
		position: absolute;
		left: 25px;
	}
	#main-content {
		padding: 0 25px;
		width: 100%;
	}
	#secondary {
		position: absolute;
		right: 25px;
	}
} 
@media (max-width: 1160px ) {
	.site-content {
		width: 1000px;
	}
	#primary {
		padding-left: 0;
		padding-right: 30px;
	}
	#main-content {
		float: none;
		padding: 0;
	}
	#side-content {
		position: relative;
		left: 0;
		float: none;
		padding-bottom: 15px;
		margin-bottom: 15px;
		border-bottom: 1px solid #e5e5e5;
		width: 100%;
		.list-categories {
			li {
				float: left;
				margin-right: 10px;
				margin-bottom: 0;
				.sub-menu {
					display: none;
				}
			}
		}
	}
	#content_single {
		#side-content {
			display: none;
		}
	}
}
@media (max-width: 980px) {
	.site-header {
		min-width: 640px;
	}
	.site-content {
		max-width: 768px;
		min-width: 640px;
		width: 100%;
		padding-right: 25px;
	}
	.site-footer {
		.footer-area {
			min-width: 640px;
		}
	}
	#primary {
		padding-right: 0;
	}
	#secondary {
		display: none;
	}
}