/* ------------------
 * Global style
 * --------------- */
*, *:before, *:after {
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}
body {
	background: url(img/bg.png);
	color: #444;
	font-family: "Microsoft JhengHei","Microsoft YaHei",Verdana,sans-serif;
	font-size: 1rem;
}

a {
	color: #834b27;
	text-decoration: none;
}
a:hover, a:active {
	text-decoration: underline;
}
pre, code { 
  background: #F3F3F3;
  font-family: Menlo, Monaco, Consolas, "Lucida Console", "Courier New", monospace;
  font-size: .92857em;
}
code { padding: 2px 4px; color: #B94A48; }
pre {
  padding: 8px;
  overflow: auto;
  max-height: 400px;
}
pre code {
  padding: 3px;
  color: #444;
}

blockquote {
  margin: 1em 0;
  padding-left: 1.5em;
  border-left: 4px solid #eee;
  color: #666;
}

table {
  border: 1px solid #ddd;
  width: 100%;
}
table th,
table td {
  padding: 5px 10px;
  border: 1px solid #eee;
}
table th {
  background: #f3f3f3;
}

h1, h2, h3, h4, h5, h6 {}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
textarea {
  padding: 5px;
  border: 1px solid #d0ad9a;
  width: 100%;
  background-color: #fffcf5;
  border-radius: 2px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
textarea {
  resize: vertical;
}




/* ------------------
 * Header
 * --------------- */

#header {
	padding-top: 12px;
}

#logo {
	float: left;
	height: 50px;
}
#logo img {
	height: 100%;
}


/* Navigation menu */
#nav-menu {
	position: relative;
	height: 88px;
	margin: 0;
	padding: 0;
	overflow-x: auto;
	white-space: nowrap;
}
@media (max-width: 992px) {


.menu-scroll-block {
	position: relative;
}
.menu-scroll-block:after {
	position: absolute;
	content: "";
	top: 0;
	right: 9px;
	width: 20px;
	height: 87px;
	background: url(img/menu-scroll-block.png) no-repeat 0 0;
	z-index: 10;
}
}
/*#nav-menu a {
  display: block;
  margin-right: -1px;
  padding: 0 20px;
  border: 1px solid #EEE;
  border-bottom: none;
  height: 32px;
  line-height: 32px;
  color: #444;
  float: left;
}
#nav-menu a:hover,
#nav-menu .current {
  background: #F6F6F6;
}*/
.menu-list {
	display: flex;
	width: 1020px;
	height:86px;
	align-items:baseline;
	flex-direction: row;
	flex-wrap: nowrap;
	margin: 0;
	padding: 0;
	list-style: none;
	border: solid #a4672e;
	border-width: 0 1px 0 1px;
	background:#a4672e;
}
.menu-list li {
	margin: 0;
	padding: 0;
	list-style: none;
}
.menu-list>li {
	margin: 0;
	padding: 0;
	border-right: 1px solid #895127;
}
.menu-list>li:last-child {
		border-width: 0;
}
.menu-list>li>a {
	font-weight: bold;
	padding: 10px 15px;
	display: block;
	color: #f0f0f0;
	text-decoration: none;
}
.menu-list>li ul a {
	color: #7c4328;
	font-size: 0.925rem;
	text-decoration: none;
}
.menu-list>li>ul>li>ul, .menu-list>li.category-active>ul>li>ul {display: none;}
.menu-list>li.category-active>a{color:#F8F011}
.menu-list>li.category-active, .menu-list>li:hover {background: #895127;}
.menu-list>li>ul {
	float: left;
	padding: 15px 0;
	position: absolute;
	top:38px;
	left: 0px;
	display: none;
	width: 1020px;
	border: solid #d0ad9a;
	border-width: 0 1px 1px 1px;
	background: #fffcf5;
	color: #7c4328;
	z-index:9;
}
.menu-list>li>ul >li {
	float: left;
	margin-left: 8px;
}
.menu-list>li.category-active>ul {z-index:8;}
.menu-list>li.category-active>ul, .menu-list>li:hover>ul  { display: block; }
.menu-list li category-active a { display: inline; color: #7c4328;}
.menu-list li category-active a:hover {text-decoration: underline;}


/* Search */
#search {
  position: relative;
  margin-top: 12px;
}
#search input {
  padding-right: 30px;
}
#search button {
  position: absolute;
  right: 4px;
  top: 2px;
  border: none;
  padding: 0;
  width: 24px;
  height: 24px;
  background: transparent url(img/icon-search.png) no-repeat center center;
  direction: ltr; /* fix RTL language */
  text-indent: -9999em;
}

@media 
(-webkit-min-device-pixel-ratio: 2), 
(min-resolution: 192dpi) {
  #search button {
    background-image: url(img/icon-search@2x.png);
    -webkit-background-size: 24px 24px;
    -moz-background-size: 24px 24px;
    -o-background-size: 24px 24px;
    background-size: 24px 24px;
  }
}


/* ------------------
 * Main
 * --------------- */

.post {
	position: relative;
	margin-top: 20px;
	border-bottom: 1px solid #EEE;
	background-color: #fffcf5;
	border: 1px solid #d0ad9a;
}
.post-crumbs {
	position: relative;
	margin: 0;
	padding: 0 24px;
	min-height: 33px;
	line-height: 33px;
	border-bottom: 1px solid #f2d2b5;
	background-color: #fff7e8;
	color: #834b27;
	font-size: 16px;
}
.post-crumbs:before {
	position: absolute;
	content: "";
	top: 2px;
	left: 2px;
	width: 22px;
	height: 22px;
	background: url(img/common.png) no-repeat;
}
.post-crumbs:after {
	position: absolute;
	content: "";
	top: 2px;
	right: 2px;
	width: 22px;
	height: 22px;
	background: url(img/common.png) no-repeat -22px 0;
}
.post-title {
	margin: 10px 20px;
	padding:20px 0;
	color: #834b27;
	text-align: center;
	border-bottom: 1px dashed #b2b2b2;
	font-size: 1.4em;
}
.post-content {
	padding: 0 20px;
	line-height: 1.8;
	font-size: 18px;
}
.post-content p {
	text-indent: 36px;
}
.post .tags {
	padding: 0 20px;
}

.post-near {
  list-style: none;
  margin: 30px 0;
  padding: 0;
  color: #999;
}
.post-near li {
  margin: 10px 0;
}

.archive-title {
  margin: 1em 0 -1em;
  padding-top: 20px;
  color: #999;
  font-size: 1em;
}
.more {
  text-align: center;
}
.more a {
  border: none;
}
.protected .text {
  width: 50%;
}

/* Page nav */

.page-navigator {
  list-style: none;
  margin: 25px 0;
  padding: 0;
  text-align: center;
}
.page-navigator li {
  display: inline-block;
  margin: 0 4px;
}
.page-navigator a {
  display: inline-block;
  padding: 0 10px;
  height: 30px;
  line-height: 30px;
}
.page-navigator a:hover {
  background: #EEE;
  text-decoration: none;
}

.page-navigator .current a {
  color: #444;
  background: #EEE;
}

/* ------------------
 * Comment list
 * --------------- */
#comments {
  padding-top: 15px;
}
.comment-list, .comment-list ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.comment-list li {
  padding: 14px;
  margin-top: 10px;
  border: 1px solid #EEE;
}
.comment-list li.comment-level-odd {
  background: #F6F6F3;
}
.comment-list li.comment-level-even {
  background: #FFF;
}
.comment-list li.comment-by-author {
  background: #FFF9E8;
}
.comment-list li .comment-reply {
  text-align: right;
  font-size: .92857em;
}
.comment-meta a {
  color: #999;
  font-size: .92857em;
}
.comment-author {
  display: block;
  margin-bottom: 3px;
  color: #444;
}
.comment-author .avatar {
  float: left;
  margin-right: 10px;
}
.comment-author cite {
  font-weight: bold;
  font-style: normal;
}

/* Comment reply */
.comment-list .respond {
  margin-top: 15px;
  border-top: 1px solid #EEE;
}
.respond .cancel-comment-reply {
  float: right;
  margin-top: 15px;
  font-size: .92857em;
}
#comment-form label {
  display: block;
  margin-bottom: .5em;
  font-weight: bold;
}
#comment-form .required:after {
  content: " *";
  color: #C00;
}

/* ------------------
 * secondary
 * --------------- */
#secondary {
	word-wrap: break-word;
}
.widget {
	margin-top: 20px;
	background-color: #fffcf5;
	border: 1px solid #d0ad9a;
}
.hd {
	position: relative;
	border-bottom: 1px solid #f2d2b5;
	background-color: #fff7e8;
}
.hd h3 {
	margin: 0;
	padding: 0 24px;
	min-height: 33px;
	line-height: 33px;
	color: #834b27;
	font-size: 16px;
}
.hd:before {
	position: absolute;
	content: "";
	top: 2px;
	left: 2px;
	width: 22px;
	height: 22px;
	background: url(img/common.png) no-repeat;
}
.hd:after {
	position: absolute;
	content: "";
	top: 2px;
	right: 2px;
	width: 22px;
	height: 22px;
	background: url(img/common.png) no-repeat -22px 0;
}
.bd ul {
	list-style: none;
	padding: 0 20px;
}
.bd li {
}
.category-list li {
	float: left;
}
.bd li a {
}
.category-list li a, .new-list a{
	margin: 4px 0;
	height:25px;
	line-height: 25px;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
}
.tools {
	padding: 0 20px;
}
.tip {
	padding: 0 20px;
	line-height: 1.8;
}
.tip p img {
	float: left;
	margin-right: 20px;
}

.chouqian .sbtn, .iczb-grail1, .iczb-grail2, .iczb-grail3, .iczb-title, .iczb-title2 {
	background-image: url(img/qianshi/chouqian.png);
	background-repeat: no-repeat;
}
.iczb-grail1 {
	background-position: -356px 0;
	height: 64px;
	width: 98px;
}
.iczb-grail2 {
	background-position: -258px 0;
	height: 64px;
	width: 98px;
}
.iczb-grail3 {
	background-position: -160px 0;
	height: 64px;
	width: 98px;
}
.chouqian .sbtn {
	background-position: 0 0;
	height: 50px;
	width: 160px;
}
.chouqian {
	margin: 15px 0 40px;
	text-align: center;
	overflow: hidden;
}
.chouqian .con {
	text-align: center;
}
.chouqian .hide {
	display: none;
}
.chouqian .sign {
	display: block;
	width: 280px;
	height: 230px;
	margin: 0 auto;
}
.chouqian .text {
	height: 34px;
	line-height: 34px;
	font-size: 16px;
	color: #333;
	margin: 10px 0;
}
.chouqian .num {
	display: inline-block;
	min-width: 42px;
	min-width: 32px;
	font-size: 22px;
	font-weight: bold;
	text-align: center;
}
.chouqian .grail {
	display: inline-block;
	vertical-align: top;
	margin: 43px 0 38px;
}
.chouqian .stip {
	font-size: 16px;
	color: #666666;
	margin-bottom: 20px;
}
.chouqian .red {
	color: #d0381f;
}
.chouqian .green {
	color: #5ab042;
}
.chouqian .sbtn {
@extend .iczb-btn;
	line-height: 46px;
	text-align: center;
	font-size: 18px;
	font-weight: bold;
	letter-spacing: 1px;
	color: #fff;
	margin: 10px auto 0;
	cursor: pointer;
	user-select: none;
	&:hover{
		opacity: 0.9;
	}
	&.disabled{
		cursor: default;
		opacity: 0.5 !important;
	}
}




/* ------------------
 * Footer 
 * --------------- */
#footer {
  padding: 20px 0 10px;
  line-height: 1.5;
  text-align: center;
  color: #999;
}


/* -----------------
 * Error page
 * -------------- */
.error-page {
  margin-top: 100px;
  margin-bottom: 100px;
}


/* -----------------
 * Content format
 *--------------- */
.post-content h2, .comment-content h2 {
  font-size: 1.28571em;
}
.post-content img, .comment-content img,
.post-content video, .comment-content video {
  max-width: 100%;
}
.post-content a img,
.comment-content a img {
  background: #FFF;
  position: relative;
  bottom: -4px;  /* hidden img parent link border  */
}
.post-content hr, .comment-content hr {
  margin: 2em auto;
  width: 100px;
  border: 1px solid #E9E9E9;
  border-width: 2px 0 0 0;
}


/* -----------------
 * Misc
 *--------------- */
.aligncenter, div.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.alignleft {
  float: left;
}
.alignright {
  float: right;
}
img.alignleft {
  margin: 0 15px 0 0;
}
img.alignright {
  margin: 0 0 0 15px;
}


/* -----------------
 * Responsive
 *--------------- */
@media (max-width: 767px) {
  #nav-menu a {
    float: none;
    display: inline-block;
    margin: 0 -2px;
  }
}

@media (max-width: 768px) {
  #header,
  .post-title,
  .post-meta {
    text-align: center;
  }
}

@media (min-width: 992px) {

}

@media (min-width: 1200px) {
  .container {
    max-width: 1040px;
  }
}


/*
* Hide from both screenreaders and browsers: h5bp.com/u
*/
.hidden {
  display: none !important;
  visibility: hidden; }

/*
* Hide only visually, but have it available for screenreaders: h5bp.com/v
*/
.sr-only {
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px; }

/*
* Extends the .sr-only class to allow the element to be focusable
* when navigated to via the keyboard: h5bp.com/p
*/
.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto; }

/*
* Hide visually and from screenreaders, but maintain layout
*/
.invisible {
  visibility: hidden; }
