/*
Theme Name: Mukti
Author: Mukti
Text Domain: mukti
*/

:root {
  --primary-color: #7f89a6;
  --primary-light-color: #bbc8d9;
}

@font-face {
  font-family: anni;
  src: url("./assets/font/annifont.ttf");
}

body {
  margin: 0;
  background: url(./assets/images/bg.gif);
  color: #333;
  position: relative;
  font-family: PingfangSC-light, sans-serif;
}
a {
  text-decoration: none;
  color: #666;
}
div#content a {
  color: var(--primary-color);
}
a:active,
a:hover,
div#content a:hover {
  color: #ff4e00;
}
ul,
ol {
  list-style: none;
  padding: 0;
}
img {
  max-width: 100%;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: normal;
  margin: 0;
}
input[type="submit"] {
  border: 0;
}
:focus {
  outline: none;
}

/* -- Common Classes Start -- */
.meta-sep {
  margin: 0 0.5em;
}
a.post-edit-link {
  display: inline-block;
  height: 24px;
  line-height: 24px;
  padding: 0 8px;
  border-radius: 2px;
  background: var(--primary-light-color);
  font-size: 12px;
  color: #fff !important;
  position: absolute;
  right: 8px;
  bottom: 8px;
}
a.post-edit-link:hover {
  background: var(--primary-color);
}
/* -- 提交按钮 Submit -- */

input[type="submit"] {
  border-radius: 2px;
  background: var(--primary-light-color);
  color: #fff;
}
input[type="submit"]:hover {
  cursor: pointer;
  background: var(--primary-color);
}
/* Navigation */
/* 翻页 */
div.card-list div.navigation {
  clear: both;
  padding: 8px;
}
div.card-list div.navigation a {
  display: inline-block;
  padding: 8px 16px;
  margin-right: 8px;
  border-radius: 2px;
  background: var(--primary-light-color);
  color: #fff !important;
}
div.card-list div.navigation a:hover {
  background: var(--primary-color);
}
div#container div#content div.navigation {
  clear: both;
  width: 100%;
  margin: 1em 0;
  font-size: 14px;
  text-align: center;
  text-transform: uppercase;
  overflow: hidden;
}
div#container div#content div.navigation div {
  width: 45%;
}
div#container div#content div.navigation div.nav-next {
  float: right;
  text-align: left;
}
div#container div#content div.navigation div.nav-prev {
  float: left;
  text-align: right;
}
/* Read More */
a.read-more {
  display: inline-block;
  height: 30px;
  line-height: 30px;
  padding: 0 10px;
  border-radius: 2px;
  background: #f5f6f7;
}
a.read-more:hover {
  background: #bbc8d9;
  color: #fff !important;
}
/* -- List -- */
h2.list-title {
  margin: 32px auto 16px;
  text-align: center;
  font-size: 2em !important;
}
/* -- Common Classes End -- */

/* -- Header -- */
div#header {
  width: 184px;
  background: #7f89a6;
  text-align: center;
  position: absolute;
  top: 0;
  left: 0;
}
div#header h1 {
  margin: 0;
}
div#header h1 a {
  display: block;
  height: 64px;
  line-height: 64px;
  font-size: 24px;
  font-family: anni;
  font-weight: normal;
  transition: 0.5s;
}
div#header h1 a:hover {
  letter-spacing: 2px;
}

/* -- Footer -- */
div#footer {
  clear: both;
  display: flex;
  justify-content: space-between;
  align-items: top;
  height: 12px;
  padding: 24px;
  background: #000;
  font-size: 12px;
  color: #ccc;
}
div#footer a {
  color: #ccc;
}
div#footer a:hover {
  color: #fff;
}

/* -- 回到顶部 - Start -- */
a.back-top {
  display: none;
  position: fixed;
  bottom: 60px;
  right: 10px;
  width: 40px;
  height: 36px;
  line-height: 16px;
  padding-top: 4px;
  border-radius: 4px;
  color: #fff;
  background: #bbc8d9;
  text-align: center;
}
a.back-top:hover {
  background: #7f89a6;
  color: #fff;
  text-decoration: none;
}
/* -- 回到顶部 - End -- */

/* -- Container -- */
div#container {
  float: right;
  width: 100%;
  margin: 0 0 0 -184px;
  background: #eee;
}
div#container div#content {
  margin: 0 0 0 184px;
  background: url(./assets/images/bg.gif);
  overflow: hidden; /* 避免上边距重叠 */
}

/* -- Sidebar -- */
div.sidebar {
  float: left;
  width: 184px;
  height: auto;
  min-height: calc(100vh - 205px);
  padding: 64px 0 16px;
  background: #eee;
  font-size: 13px;
}
/* -- Side Box -- */
div.sidebar .side-box .widget {
  border-top: 1px solid #e0e0e0;
  margin: 16px;
  padding-top: 8px;
}
div.sidebar .side-box .widget p {
  margin: 0;
}
div.sidebar h3 {
  font-size: 14px;
  text-transform: uppercase;
}
/* -- Sidebar UL -- */
div.sidebar ul li {
  line-height: 175%;
  padding: 0;
}
div.sidebar ul li.current-cat {
  font-weight: bold;
  color: #ff4e00;
}
div.sidebar ul li ul {
  padding: 0;
}
div.sidebar ul li ul li {
  margin: 0 0 0 0.5em;
}
/* -- Sidebar Widget Start -- */
/* -- Sidebar Avatar -- */
div.sidebar .avatar {
  display: block;
  width: 120px;
  margin: 16px auto;
  background: linear-gradient(
    60deg,
    #f79533,
    #f37055,
    #ef4e7b,
    #a166ab,
    #5073b8,
    #1098ad,
    #07b39b,
    #6fba82
  );
  padding: 5px;
  border-radius: 50%;
  overflow: hidden;
  transition: 0.5s;
}
div.sidebar .avatar:hover {
  transform: rotate(60deg);
}
div.sidebar .avatar:hover a {
  transform: rotate(-60deg);
}
div.sidebar .avatar a {
  display: block;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: url(./assets/images/avatar.png) no-repeat 0 top;
  transition: 0.5s;
}
div.sidebar .avatar a:hover {
  background-position: 0 bottom;
}
/* -- Sidebar 特色按钮 -- */
.color-btn {
  display: inline-block;
  height: 24px;
  line-height: 24px;
  margin: 0 5px 0 0;
  padding: 0 10px 0 0;
  background: linear-gradient(40deg, #f79533, #f37055, #ef4e7b, #a166ab);
  font-size: 12px;
  color: #fff;
  border-radius: 4px;
  overflow: hidden;
  transition: 0.2s;
}
.color-btn:before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 8px;
  margin: 0 5px;
  background: #fff;
  vertical-align: middle;
}
.color-btn:hover {
  background: linear-gradient(
    40deg,
    #a166ab,
    #5073b8,
    #1098ad,
    #07b39b,
    #6fba82
  );
  color: #fff;
  text-decoration: none;
}
/* -- 邮件订阅 使用 Jetpack 插件实现 -- */
.widget_blog_subscription p {
  margin: 0;
}
.widget_blog_subscription .widget-title {
  display: none;
}
.widget_blog_subscription #subscribe-text {
  color: #999;
  font-size: 12px;
  padding-bottom: 8px;
}
#subscribe-email input {
  height: 24px;
  padding: 0 4px;
  border: 0;
  font-size: 14px;
}
#subscribe-submit button {
  margin: 4px 0 0;
  padding: 4px 8px;
  border: 0;
  border-radius: 2px;
  background: var(--primary-light-color);
  color: #fff;
  font-size: 12px;
}
#subscribe-submit button:hover {
  background: var(--primary-color);
}
/* -- Sidebar Search -- */
.widget_search .widget-title {
  display: none;
}
div.widget_search #s {
  width: 112px;
  height: 24px;
  line-height: 24px;
  padding: 0 4px;
  border: 0;
  font-size: 14px;
  vertical-align: middle;
}
div.widget_search #searchsubmit {
  width: 24px;
  height: 24px;
  line-height: 72px;
  border: 0;
  border-radius: 2px;
  color: #fff;
  font-size: 12px;
  overflow: hidden;
  vertical-align: middle;
  background: url(./assets/images/search.svg) no-repeat center center;
  background-color: var(--primary-light-color);
  background-size: 20px auto;
}
div.widget_search #searchsubmit:hover {
  background-color: var(--primary-color);
  cursor: pointer;
}
/* -- Sidebar Widget End -- */
/* -- Content -- */
div#container div#content h1,
div#container div#content h2,
div#container div#content h3,
div#container div#content h4,
div#container div#content h5,
div#container div#content h6 {
  margin: 1em 0 0.5em;
  font-weight: 400;
  line-height: 120%;
}
div#container div#content h1 {
  font-size: 1.8em;
  border-top: 1px dashed #e0e0e0;
  padding-top: 20px;
}
div#container div#content h2 {
  font-size: 1.65em;
}
div#container div#content h3 {
  font-size: 1.5em;
}
div#container div#content h4 {
  font-size: 1.35em;
}
div#container div#content h5 {
  font-size: 1.2em;
}
div#container div#content h6 {
  font-size: 1em;
  font-weight: bold;
}
/* -- Top Menu -- */
.top-menu {
  background: #f9fafb;
  margin: 0;
  height: 40px;
  overflow: hidden;
}
.top-menu li {
  float: left;
}
.top-menu li a {
  display: inline-block;
  line-height: 40px;
  padding: 0 24px;
  color: #7f89a6;
  font-size: 14px;
}
.top-menu li a:hover {
  background: #bbc8d9;
  color: #fff !important;
}
/* -- Single -- */
/* Main 的作用是布局，是否可以去掉，只保留下级 entry ? */
div#container div#content div#main {
  /* -- TODO: 需要使用媒体查询显示右侧组件 -- */
  max-width: 768px;
  margin: 0 auto;
  padding: 24px 0;
}
div#container div#content div#main div.entry {
  max-width: 720px;
  padding: 24px;
  background: #fff;
  border-radius: 4px;
}
div#container div#content div#main div.entry .entry-title {
  margin: 0;
  padding: 0;
  border: 0;
  text-align: center;
  font-family: georgia, times, serif;
}
div#container div#content div#main div.entry div.entry-meta {
  line-height: 175%;
  margin: 2em 0;
  padding: 0.5em 0.2em;
  border-bottom: 1px solid #e0e0e0;
  border-top: 1px solid #e0e0e0;
  font-size: 12px;
}
/* 内容 Content */
div#container div#content div#main div.entry div.entry-content {
  line-height: 250%;
  font-family: "LXGW WenKai";
  font-size: 16px;
  position: relative;
}
div#container div#content div#main div.entry div.entry-content em {
  font-size: 14px;
  color: #999;
}
div#container div#content div#main div.entry div.entry-content img + em,
div#container div#content div#main div.entry div.entry-content img + br + em {
  display: inline-block;
  transform: translateY(-16px);
}
div#container div#content div#main div.entry div.entry-content pre code {
  line-height: 120%;
  font-size: 14px;
}
div#container div#content div#main div.entry div.entry-content p code {
  display: inline-block;
  line-height: 100%;
  padding: 4px 8px;
  border-radius: 4px;
  background: #f5f6f7;
  color: var(--primary-color);
  font-size: 14px;
}
div#container div#content div#main div.entry div.entry-content ul {
  line-height: 200%;
  padding-left: 24px;
  list-style: circle;
  font-size: 14px;
  font-family: PingfangSC-light, sans-serif;
}
/* Single Table */
div#container div#content div#main div.entry div.entry-content table {
  border-collapse: collapse;
  width: 100%;
}
div#container div#content div#main div.entry div.entry-content th,
div#container div#content div#main div.entry div.entry-content td {
  border: 1px solid #e6e6e6;
  padding: 8px;
  line-height: 150%;
  font-family: PingfangSC-light, sans-serif;
  font-size: 14px;
}
div#container div#content div#main div.entry div.entry-content th {
  background: #f5f6f7;
}
/* -- Donate -- */
.entry-donate {
  padding: 20px 0 0;
  font-size: 14px;
  border-top: 1px solid #e0e0e0;
  text-align: center;
}
.donate-item {
  display: inline-block;
  width: 150px;
  margin: 0 50px;
}
.donate-item img {
  width: 100%;
}

/* -- 电梯导航 Elevator -- */
#elevator {
  position: fixed;
  right: 12px;
  top: 64px;
  line-height: 24px;
  background: rgba(255, 255, 255, 0.8);
  padding: 16px 8px;
  width: 200px;
  overflow-y: scroll;
  max-height: calc(100vh - 16px);
}
#elevator a {
  display: block;
  font-size: 16px;
  height: 24px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  color: #666;
}
#elevator a:hover {
  font-weight: 600;
  color: #7f89a6;
}
#elevator a.h1 {
  font-size: 16 px;
}
#elevator a.h2 {
  margin-left: 8px;
  font-size: 16px;
}
#elevator a.h3 {
  margin-left: 16px;
  font-size: 15px;
}
#elevator a.h4 {
  margin-left: 24px;
  font-size: 14px;
}
#elevator a.h5 {
  margin-left: 28px;
  font-size: 13px;
}
#elevator a.h6 {
  margin-left: 32px;
  font-size: 12px;
}

/* -- Search -- */
#main-search-input {
  width: 240px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #e0e0e0;
}
#main-search-submit {
  height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 2px;
  background: #bbc8d9;
  color: #fff;
  cursor: pointer;
}
#main-search-submit:hover {
  background: #7f89a6;
}

/* -- List -- */
div.list-item h3 {
  height: 24px;
  line-height: 24px;
  padding: 0 0 8px 0;
  border-bottom: 1px dashed #e0e0e0;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
div.list-item div.list-item-meta {
  line-height: 16px;
  padding: 4px 0;
  font-size: 12px;
  color: #666;
}
div.list-item div.list-excerpt p {
  margin: 0;
}
/* -- Normal List -- */
div.list {
  width: 720px;
  margin: 24px auto;
}
div.list div.list-item {
  margin: 24px 0;
  padding: 24px 24px;
  border-radius: 4px;
  background: #fff;
  font-size: 14px;
  position: relative;
}
div.list div.list-item div.list-excerpt {
  display: flex;
  height: 171px;
  line-height: 182%;
  padding: 8px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  /* display: -webkit-box; */
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
}
div.list div.list-item div.list-excerpt div.list-thumb {
  min-width: 256px;
  padding-top: 4px;
}
div.list div.list-item div.list-excerpt img {
  max-width: 144px;
}
div.list div.list-item div.list-excerpt div.list-thumb img {
  max-width: 240px;
}
div.list div.list-item div.list-item-meta {
  height: 16px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

/* Card List */
div.card-list {
  width: 100%;
  padding: 16px;
  overflow: hidden; /* 清除浮动 */
}
div.card-list div.list-item {
  float: left;
  width: 256px;
  margin: 8px;
  padding: 16px;
  border-radius: 4px;
  background: #fff;
  font-size: 14px;
  position: relative;
}
div.card-list div.list-item div.list-excerpt {
  height: 224px;
  line-height: 182%;
  padding: 8px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 9;
  -webkit-box-orient: vertical;
}
div.card-list div.list-item div.list-excerpt img {
  /* max-height: 200px; */
}
div.card-list div.list-item div.list-item-meta {
  height: 16px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

/* -- 评论 Comments-- */
div.comments ol.comment-list li {
  background: #f5f6f7;
  margin: 16px 0 0;
  padding: 12px 16px 12px 64px;
  border-radius: 4px;
  position: relative;
}
div.comments ol.comment-list li.bypostauthor {
  padding-left: 64px;
  margin-top: -8px;
  border-radius: 0 0 4px 4px;
}
div.comments ol.comment-list li.bypostauthor div.comment-wrap {
  padding: 12px 16px 12px 64px;
  border-radius: 4px;
  background: #f0f0f0;
  position: relative;
}
div.comments ol.comment-list li .comment-meta .comment-author {
  font-size: 14px;
  font-weight: 600;
}
div.comments
  ol.comment-list
  li.bypostauthor
  .comment-meta
  .comment-author::after {
  content: "";
  display: block;
  width: 32px;
  height: 32px;
  position: absolute;
  left: -36px;
  top: 8px;
  background: url(./assets/images/reply.svg) no-repeat center center;
  background-size: 100% auto;
  transform: rotateY(180deg) rotate(-75deg);
  opacity: 0.5;
}
div.comments ol.comment-list li .comment-meta .comment-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  position: absolute;
  left: 16px;
  top: 16px;
}
div.comments ol.comment-list li.bypostauthor .comment-meta span.fn.n:after {
  content: " (作者)";
  font-size: 12px;
  font-weight: 400;
}
div.comments ol.comment-list li .comment-text {
  font-size: 14px;
  padding: 8px 0 0;
}
div.comments ol.comment-list li .comment-text p {
  margin: 0;
}
/* -- 评论表单 Comment Form -- */
div.comment-form {
  padding-top: 8px;
}

/* -- 未梳理 评论表单 -- */
div.comment-form div.form-textarea textarea {
  display: block;
  width: 604px;
  height: 100px;
  padding: 4px;
  border: 1px solid #e0e0e0;
  border-radius: 2px;
  resize: none;
}
div.comment-form div.form-input {
  margin-top: 8px;
}
div.comment-form div.form-input input {
  height: 24px;
  padding: 4px;
  border: 1px solid #e0e0e0;
  border-radius: 2px;
}
div.comment-form input[type="submit"] {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 16px;
}
div.comment-form span.req-field {
  color: #ff4e00;
}

/* -- Media Query -- */
/* TODO: card 宽度改为百分比，根据媒体查询修改 */
@media screen and (max-width: 1180px) {
  div#container div#content {
    padding-right: 0;
  }
  #elevator {
    display: none;
  }
}
@media screen and (max-width: 782px) {
  div#header {
    /* TODO: */
    background: #000;
  }
  div.sidebar {
    display: none;
  }
  div#container div#content {
    margin: 0;
  }
}
@media screen and (max-width: 600px) {
  div#header {
    /* TODO: */
    background: #666;
  }
  div.sidebar {
    display: none;
  }
  div#container div#content {
    margin: 0;
  }
}
@media screen and (max-width: 400px) {
  div#header {
    /* TODO: */
    background: #ccc;
  }
  div.sidebar {
    display: none;
  }
  div#container div#content {
    margin: 0;
  }
}
