* {
  margin: 0;
  padding: 0;
}

a,
a:visited,
a:active,
a:hover {
  word-break: break-all;
  color: #458588;
  text-decoration: none;
}

a:hover {
  color: #83a598;
  text-decoration: underline;
}

.gopher {
  height: 20px;
}

.gopher::after {
  content: "";
  display: inline-block;
  vertical-align: top;
  animation: gopherwave 2s infinite;
}

.gopher:hover::after {
  animation: gopherwave 0.5s infinite;
}

@keyframes gopherwave {

  0%,
  100% {
    content: "(╯‵□′)╯︵┻━┻";
    /* content: "ˏʕ⚆ϖ⚆ʔˎ"; */
    color: #689d6a;
  }

  50% {
    content: "┳━┳ ノ( ゜-゜ノ)";
    /* content: "`ʕ◔ϖ◔ʔ´"; */
    color: #8ec07c;
  }
}

body {
  font-family:"Source Code Pro",  "Go","Noto Serif SC", "Helvetica Neue";
  font-size: 15px;
  background: #282828;
  color: #ebdbb2;
  max-width: 60em;
  margin: 0 auto;
}

body>header::after {
  content: "";
  display: block;
  clear: both;
}

body>header,
main,
body>footer {
  margin: 5em 0;
  padding: 0 4em;
}

body>footer {
  text-align: center;
}

body>footer>* {
  margin: 2em 0;
  display: block;
}

.rss,
.rss:visited,
.rss:hover,
.rss:active {
  color: #f26522;
}

.pagination>.left {
  float: left;
}

.logo {
  /* background: no-repeat top left/64px 64px url("https://blogpic-1308403500.file.myqcloud.com/avatar/small-head-king.jpg"); */
  background: no-repeat top left/64px 64px url("https://nicopcat.github.io/static/android-chrome-192x192.png");
  min-height: 64px;
  padding: 0 0 0 calc(64px + 1em);
  margin-top: -1em;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

body>header>.left>h1>a {
  font-weight: normal;
  color: #d79921;
}

body>header nav {
  text-align: right;
}

nav>ul {
  list-style-type: none;
  margin: 1em 0.5em;
}

nav>ul>li {
  margin: 0.5em 0.2em;
  display: inline-block;
  
}

nav>ul>li>a:hover {
  text-decoration: underline;
  color: #d79921;
}

nav>ul>li>a {
  background-color: rgb(31, 29, 29);
  padding: 0.3em 0.4em;
  font-size: 1em;
  /* box-shadow: 1px 1px 0 white; */
}

header>nav>.social_links {
  display: none;
}

/* @media starts  */
@media (max-width: 500px) {
  .logo {
    float: none;
    /* padding: 0; */
  }

  /* header {
    text-align: center;
  } */

  nav {
    margin: 2em 0.5em;
  }

  nav>ul {
    text-align: center;
    display: block;
  }

  body>header,
  main,
  body>footer,
  main>article {
    /* margin: 3em 1em; */
    margin: 3em 0;
  }

  body>main {
    padding: 0 .5em;
  }

  body>header,
  main,
  body>footer {
    margin: 4em 0;
    padding: 0 2em;
  }

  article>.body blockquote {
    margin-left: 0.5em !important;
    padding-left: 0.5em !important;
  }

  article>.body pre code {
    font-size: 16px ;
  }

  article {
    padding: 1em
  }
}

/* @media query ends  */

article {
  background: #fffbe9;
  color: #3c3836;
  padding: 2em;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.25);
  margin: 5em 0 1.5em 0;
}

article>header {
  /* mod */
  text-align: left;
  border-bottom: 1px solid #ebdbb2;
  margin-bottom: 1em;
  padding-bottom: 1em;
}

article>footer {
  border-top: 1px solid #ebdbb2;
  margin-top: 1em;
  padding-top: 1em;
}

.button {
  color: #ebdbb2;
  background: #458588;
  padding: 1em;
  cursor: pointer;
  display: inline-block;
}

article>header::after {
  content: "";
  display: block;
  clear: both;
}

article>header>h1 {
  font-size: 1.6em;
  float: left;
  margin-bottom: 1em;
}

article>header>time,
.disqus-comment-count {
  color: #7c6f64;
  float: right;
}

article>p {
  margin: 1em 0;
}

article>footer {
  margin-top: 1em;
}

article>.body pre code {
  margin: 2em 0;
  font-family: "Source Code Pro","Hack", monospace;
  display: block;
  padding: 1em 1em;
  background-color: #292828;
  color: #ebdbb2;
  overflow-x: auto;
  line-height: 1.6em;
  border-radius: 3px;
  font-size: 14px;
}

article>.body code {
  font-family: "Source Code Pro","Hack", consolas, monospace;
  display: inline;
  margin: 0 1px;
  padding: 0.2em 0.4em;
  /* background: #ebdbb2;
  color: #458588; */
  background-color: #d79720;
  color: #fff;
  /* border: 1px solid #d6d6d6; */
  border-radius: 4px;
  font-size: 14px;
  /* word-break: break-all; */
}

.alert.alert-warning {
  background: #d79921;
  border: 1px solid #b57614;
  padding: 1em;
}

article>.body h1,
article>.body h2,
article>.body h3,
article>.body h4,
article>.body h5,
article>.body h6 {
  margin-top: 1.5em;
}

/* 新增 */
article>.body h1{
  font-size: 1.2em;
  color: #dd4f23;
}

article>.body h1::before {
  content: "# ";
  color: #dd4f23;
}

/* article>.body h2::before {
  content: "&& ";
  color: #d79720;
} */
article>.body h2 {
  font-size: 1.1em;
  color: #d79720;
}

/* article>.body h3::before {
  content: "$$$ ";
  color: #458588;
} */

article>.body h3 {
  font-size: 1em;

  color: #458588;
}

article>.body hr {
  margin: 1em 0;
  border: 0;
  border-bottom: 1px solid #ebdbb2;
}

article>.body blockquote {
  margin-left: 1em;
  padding-left: 2em;
  border-left: 2px solid #ebdbb2;
}

article>.body ol,
article>.body ul {
  /* margin-left: 3em; */
  margin-left: 1em;
}


article>.body {
  /* line-height: 1.4em; */
  line-height: 1.8em;
}

article>.body p {
  margin: 1em 0;
}

article>.body img {
  max-width: 100%;
  margin: 1em auto;
  display: block;
}

.pagination .left,
.pagination .right {
  display: inline-block;
  width: 50%;
  min-height: 1em;
}

.pagination .right {
  text-align: right;
}

.pagination a,
.pagination a:visited,
.pagination a:active,
.pagination a:hover {
  color: #d79921;
}

.pagination a:hover {
  color: #fabd2f;
}

.pagination time {
  display: block;
  color: #665c54;
}

/* friend */
.friendurl {
  text-decoration: none !important;
  color: black;
  box-shadow: none !important;
}

.myfriend {
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  /* padding: 2px; */
  margin-top: 20px !important;
  margin-left: 14px !important;
  background-color: #fff;
}

.frienddiv {
  overflow: hidden;
  height: 100px;
  width: 45%;
  display: inline-block !important;
  border-radius: 5px;
  background: none;

  -webkit-transition: all ease-out 0.3s;
  -moz-transition: all ease-out 0.3s;
  -o-transition: all ease-out 0.3s;
  transition: all ease-out 0.3s;
}

.dark .frienddiv:hover {
  background: var(--code-bg);
}

.frienddiv:hover {
  background: var(--theme);
  transition: transform 1s;
  -webkit-transform: scale(1.1);
  -moz-transform: scale(1.1);
  -ms-transform: scale(1.1);
  -o-transform: scale(1.1);
  transform: scale(1.1);
}

.frienddiv:hover .frienddivleft img {
  transition: 0.4s !important;
  -webkit-transition: 0.4s !important;
  -moz-transition: 0.4s !important;
  -o-transition: 0.4s !important;
  -ms-transition: 0.4s !important;
}

.frienddivleft {
  width: 92px;
  float: left;
  margin-right: -5px;
}

.frienddivright {
  margin-top: 18px;
  margin-right: 18px;
}

.friendname {
  color: #458588;
  /* text-overflow: ellipsis; */
  font-size: 100%;
  margin-bottom: 5px;
  color: var(--primary);
}

.friendinfo {
  text-overflow: hidden;
  font-size: 14px;
  color: var(--primary);
}

@media screen and (max-width: 500px) {
  article>.body pre code {
    margin: 2em 0;
    font-family: "Source Code Pro","Hack", monospace;
    display: block;
    padding: 1em 1em;
    background-color: #292828;
    color: #ebdbb2;
    overflow-x: auto;
    line-height: 1.6em;
    border-radius: 3px;
    font-size: 13px;
  }
  
  article>.body code {
    font-family: "Source Code Pro","Hack", consolas, monospace;
    display: inline;
    margin: 0 1px;
    padding: 0.2em 0.4em;
    /* background: #ebdbb2;
    color: #458588; */
    background-color: #d79720;
    color: #fff;
    /* border: 1px solid #d6d6d6; */
    border-radius: 4px;
    font-size: 13px;
    /* word-break: break-all; */
  }
  /* .frienddiv {
    width: 42%;
  } */

  .friendinfo {
    display: none;
  }

  .frienddivleft {
    /* width: 84px; */
    width: 75px;
    margin: auto;
  }

  .frienddivright {
    height: 100%;
    margin: auto;
    display: flex;
    align-items: center;
    font-size: 16px
    /* justify-content: center; */
  }

  .friendname {
    /* font-size: 16px; */
    font-size: 0.8em;
  }
}

.buttons .button:hover {
  background-color: var(--code-bg);
}

.highlight {
  border-radius: 6px !important;
}

mark {
  padding: .1em .2em;
  background-color:#fabd2f21;
}

/* bb点啥 */
#ispeak .xk-card {
  color: var(--primary);
  user-select: auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  /* background-color: #2b2929; */
}

.dark #ispeak .xk-card {
  background-color: #2b2929;
  color: #ccc;
}

#ispeak .xk-card .xk-card-time {
  text-shadow: none;
}

#ispeak .xk-card-content {
  white-space: unset;
}

#ispeak .xk-card-content>p {
  font-weight: 450;
  margin: 0 auto;
}

#ispeak .xk-card-content img {
  max-height: 60vh;
  margin: 0 auto;
  border-radius: 0.4rem;
  margin-bottom: 1rem;
}

#ispeak .xk-card-header {
  margin-bottom: 0.5rem;
  color: var(--primary);
}

#ispeak .xk-card .xk-card-header .xk-card-name .avatar-img {
  margin: 0 auto;
}

#ispeak .xk-card-label {
  padding: 0 5px;
  font-weight: 550;
  border-radius: 3px;
  box-shadow: 0 -1px 0 rgb(27 31 35 / 12%);
  font-size: 14px;
  cursor: pointer;
  user-select: none;
  margin-right: 10px;
  background-image: linear-gradient(to top,
      #d79823dc 0%,
      #6e4c0e5a 100%) !important;
}


/*菜单 tags styles statr here*/
.body .tags {
  display: flex;
  flex-flow: row wrap;
}

.body .tags span,
main .tags li a {
  margin: 0.5em 0.8em;
  list-style: none;
  border: 1px solid rgba(206, 135, 59, 0.727);
  border-radius: 4px;
  padding: .2em .5em;
  display: inline-block;
  transition: transform 0.6s ease;
}


.body .tags span:hover,
main .tags li a:hover {
  transform: translateX(4px);
  box-shadow: 2px 2px 0px #7a4d20;
  text-decoration: none;
}

main .tags li {
  list-style: none;
  display: inline-block;
}

/* tags styles end here*/


/* breadcrumbs statr here */
.breadcrumb {
  margin-top: 1em;
  clear: both;
  list-style: none;
  display: flex;
  justify-content: flex-start;
  /* flex-wrap: wrap; */
  /* align-items: flex-start; */
}

.breadcrumb li {
  line-height: 1.2em;
  display: inline;
  white-space: nowrap;
}

.breadcrumb li+li:before {
  content: ">";
  padding: 0.3rem;
}

.breadcrumb li:last-child a {
  /* text-decoration: underline wavy sandybrown; */
}

/* top */
.backtop {
  display: none;
  color: #b3b1b1;
  position: fixed;
  right: 25px;
  bottom: 22px;
  width: 40px;
  height: 40px;
  z-index: 999998;
}

/* 设置滚动条的样式 */
::-webkit-scrollbar {
  width: 14px;
}

/* 外层轨道 */
::-webkit-scrollbar-track {
  -webkit-box-shadow-: inset006pxrgba(0, 0, 0, 0.3);
  border-radius: 10px;
  background: rgba(84, 84, 84, 0.4);
  -webkit-box-shadow-: inset006pxrgba(0, 0, 0, 0.5);
}

/* 滚动条滑块本块 */
::-webkit-scrollbar-thumb {
  background-color: rgba(235, 219, 178, 0.15);
  border-radius: 10px;
}

table{
  border-collapse:collapse;
  margin: 1rem auto;
}

table thead,
table tr{
  margin: .5rem;
  color:#407b7c;
  background-color:  rgb(255, 255, 255);
  border: 1px solid rgb(186, 186, 186);

}
table thead{
  border-bottom: 2px solid rgb(187, 187, 187);
}

table tr td{
  padding: 0.3rem .6rem;
}