/* 基础样式 */
body, ul { margin: 0; padding: 0; }
body {
  font-size: 15px;
  font-family: "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background-color: #fcefe3;
  color: #333;
}
* {
  box-sizing: border-box;
}
ul { list-style-type: none; }
ol li { list-style: decimal; }
h1, h2, h3, h4 { margin: 0; padding: 0; border: 0; vertical-align: baseline; }

a {
  text-decoration: none;
  color: #f28c28;
  transition: color 0.3s ease;
}
a:hover {
  color: #ff6f61;
}

/* 区块通用 */
.global-width {
  width: 80%;
  margin: 0 auto;
  max-width: 1280px;
}
.box {
  background: #fff;
  border: 1px solid #f1d6b8;
  padding: 20px;
  border-radius: 6px;
}

/* 布局 */
.content {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
}
.content .main { width: 75%; }
.content .aside { width: calc(100% - 75% - 20px); }

.header {
  margin-bottom: 5rem;
  background: #fff5e1;
  padding: 20px 0;
}
.header .menu li {
  display: inline-block;
  margin-right: 20px;
  font-size: 15px;
  color: #555;
  position: relative;
}
.current-menu-item,
.header .menu li:hover {
  color: #f28c28;
}

/* 导航菜单下拉 */
ul.drop {
  display: none;
  position: absolute;
  background: #fffef9;
  padding: 5px 0;
  border: 1px solid #f1d6b8;
  border-radius: 4px;
}
ul.drop li a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: #444;
}
ul.drop li a:hover {
  background: #fff2dc;
  color: #f28c28;
}
li.menu-item:hover ul.drop {
  display: block;
}

/* 搜索图标样式 */
.search_ico span::before {
  border: 2px solid #f28c28;
}
.search_ico span::after {
  background: #f28c28;
}

/* 搜索框 */
.search {
  position: absolute;
  right: 0;
  background: #fff;
  border: 1px solid #f1d6b8;
  display: none;
  padding: 10px;
  border-radius: 4px;
}
.search-ipt {
  width: 200px;
  height: 32px;
  padding: 0 10px;
  border: none;
  font-size: 14px;
  color: #555;
}
.search button {
  background: none;
  cursor: pointer;
  border: none;
  color: #f28c28;
}

/* 文章内容 */
.post .post-title {
  font-size: 22px;
  font-weight: bold;
  color: #f28c28;
}
.post .post-title a {
  color: #444;
}
.post .post-title a:hover {
  color: #f28c28;
}
.post .post-content {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dotted #f1d6b8;
}
.post .post-content a {
  color: #ff6f61;
  text-decoration: underline;
}
.post .post-content a:hover {
  color: #d44a38;
}

/* 页码样式 */
.pagebar {
  text-align: center;
  margin: 20px 0;
}
.page-numbers {
  display: inline-block;
  margin: 0 5px;
  padding: 6px 12px;
  background: #fff;
  border-radius: 4px;
  color: #555;
  border: 1px solid #f1d6b8;
}
.page-numbers:hover,
span.page-numbers {
  background: #f28c28;
  color: #fff;
  border-color: #f28c28;
}

/* 评论框 */
.jz-comment-box {
  border: 1px solid #f1d6b8;
  padding: 10px;
  background: #fff;
  border-radius: 4px;
}
.jz-comment input,
.jz-comment textarea {
  width: 100%;
  font-size: 14px;
  border: 1px solid #f1d6b8;
  padding: 8px;
  margin-bottom: 10px;
  background: #fffdf9;
  color: #333;
}
.jz-comment input.button {
  background: #f28c28;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}
.jz-comment input.button:hover {
  background: #d46b10;
}

/* 页脚 */
.footer {
  margin-top: 30px;
  text-align: center;
  font-size: 12px;
  color: #888;
  padding: 20px 0;
  background: #fff5e1;
  border-top: 1px solid #f1d6b8;
}

/* 返回顶部 */
#go-to-top {
  background: rgba(242, 140, 40, 0.8);
}
#go-to-top:hover {
  background: #d46b10;
}
#go-to-top::before {
  color: #fff;
}

/* 响应式 */
@media only screen and (max-width: 1200px) {
  .content {
    flex-direction: column;
  }
  .content .main,
  .content .aside {
    width: 100%;
  }
  .header {
    text-align: center;
  }
  .search {
    position: static;
    width: 100%;
  }
}
