/* ------------------------------------
 * 极简 · 有活力配色 Typecho 主题
 * --------------------------------- */

body {
  background: var(--color-bg);
  color: var(--color-text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 90%;
  line-height: 1.7;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:active {
  color: var(--color-accent);
}

pre, code {
  background: var(--color-bg-light);
  color: var(--color-accent);
  font-family: "JetBrains Mono", Menlo, Monaco, Consolas, monospace;
  font-size: .95em;
  border-radius: var(--radius-main);
}
pre {
  padding: 12px;
  overflow: auto;
  max-height: 400px;
}
code { padding: 2px 6px; }
pre code {
  display: block;
  padding: 3px;
  color: var(--color-accent);
  background: transparent;
}

blockquote {
  margin: 1.2em 0;
  padding-left: 1em;
  border-left: 3px solid var(--color-accent);
  color: var(--color-text-secondary);
  background: #fafcff;
}

table {
  border: 1px solid var(--color-border);
  width: 100%;
  border-collapse: collapse;
}
table th,
table td {
  padding: 8px 14px;
  border: 1px solid var(--color-border);
}
table th {
  background: var(--color-bg-light);
  color: var(--color-primary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: inherit;
  color: var(--color-text-main);
  font-weight: 700;
}
h1 { font-size: 2.2em; }
h2 { font-size: 1.5em; }
h3 { font-size: 1.2em; }

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
textarea {
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  border-radius: var(--radius-main);
  font-size: 1em;
  transition: border-color .2s;
}
input:focus, textarea:focus {
  border-color: var(--color-primary);
  outline: none;
}
textarea { resize: vertical; }

.post-meta,
.archive-title,
.comment-meta a,
#footer {
  color: var(--color-text-secondary);
}

.post-meta a,
.post-content a,
.widget a,
.comment-content a {
  border-bottom: 1.5px solid #b3e1fc;
  transition: border-color .2s;
}
.post-meta a:hover,
.post-content a:hover,
.widget a:hover,
.comment-content a:hover {
  border-bottom-color: var(--color-primary);
}

/* Header */
#header {
  padding-top: 40px;
  border-bottom: 1px solid var(--color-border);
}
#logo {
  color: var(--color-text-main);
  font-size: 2.2em;
  font-weight: bold;
}
#logo img {
  max-height: 64px;
}
.description {
  margin: .6em 0 0;
  color: #b0b0b0;
  font-style: italic;
  font-size: 1em;
}

/* Navigation menu */
#nav-menu {
  margin: 28px 0 0;
  padding: 0;
}
#nav-menu a {
  display: block;
  margin-right: 0;
  padding: 0 22px;
  border: none;
  border-radius: 6px 6px 0 0;
  height: 36px;
  line-height: 36px;
  color: #444;
  background: transparent;
  transition: background .2s, color .2s;
  float: left;
}
#nav-menu a:hover,
#nav-menu .current {
  background: #f5faff;
  color: var(--color-primary);
}

/* Search */
#search {
  position: relative;
  margin-top: 18px;
}
#search input {
  padding-right: 34px;
}
#search button {
  position: absolute;
  right: 6px;
  top: 3px;
  border: none;
  padding: 0;
  width: 26px;
  height: 26px;
  background: transparent url(img/icon-search.png) no-repeat center center;
  background-size: 26px 26px;
  text-indent: -9999em;
  cursor: pointer;
}

/* 支持高分屏 */
@media
(-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
  #search button {
    background-image: url(img/icon-search@2x.png);
    background-size: 26px 26px;
  }
}

/* Main */
.post {
  padding: 20px 0 28px;
  border-bottom: 1px solid var(--color-border);
}
.post-title {
  margin: .83em 0;
  font-size: 1.45em;
  font-weight: 600;
}
.post-meta {
  margin-top: -0.5em;
  font-size: .97em;
}
.post-meta li {
  display: inline-block;
  margin: 0 8px 0 0;
  padding-left: 12px;
  border-left: 1px solid var(--color-border);
}
.post-meta li:first-child {
  margin-left: 0;
  padding-left: 0;
  border: none;
}
.post-content {
  line-height: 1.7;
}
.post .tags {
  clear: both;
}

.post-near {
  list-style: none;
  margin: 30px 0;
  padding: 0;
  color: #bbb;
}
.post-near li {
  margin: 10px 0;
}

.archive-title {
  margin: 1.2em 0 -1em;
  padding-top: 22px;
  font-size: 1.07em;
}

.more {
  text-align: center;
}
.more a {
  border: none;
}

/* 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,
.page-navigator .current a {
  display: inline-block;
  padding: 0 12px;
  height: 32px;
  line-height: 32px;
  border-radius: 5px;
  color: var(--color-primary);
  background: var(--color-bg-light);
  transition: background .2s, color .2s;
}
.page-navigator a:hover,
.page-navigator .current a {
  background: var(--color-primary);
  color: #fff;
}

/* Comment list */
#comments {
  padding-top: 15px;
}
.comment-list, .comment-list ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.comment-list li {
  padding: 16px;
  margin-top: 12px;
  border: 1px solid var(--color-bg-light);
  border-radius: var(--radius-main);
  background: #fafcff;
}
.comment-list li.comment-level-odd {
  background: var(--color-bg);
}
.comment-list li.comment-level-even {
  background: #fafcff;
}
.comment-list li.comment-by-author {
  background: #fffbe6;
}
.comment-list li .comment-reply {
  text-align: right;
  font-size: .97em;
}
.comment-meta a {
  color: var(--color-text-secondary);
  font-size: .97em;
}
.comment-author {
  display: block;
  margin-bottom: 3px;
  color: var(--color-text-main);
  font-weight: 600;
}
.comment-author .avatar {
  float: left;
  margin-right: 10px;
}
.comment-author cite {
  font-weight: bold;
  font-style: normal;
}

.comment-list .respond {
  margin-top: 15px;
  border-top: 1px solid var(--color-border);
}
.respond .cancel-comment-reply {
  float: right;
  margin-top: 15px;
  font-size: .97em;
}
#comment-form label {
  display: block;
  margin-bottom: .5em;
  font-weight: bold;
}
#comment-form .required:after {
  content: " *";
  color: var(--color-warning);
}

/* 侧栏 secondary */
#secondary {
  padding-top: 15px;
  word-wrap: break-word;
}
.widget {
  margin-bottom: 30px;
}
.widget-list {
  list-style: none;
  padding: 0;
}
.widget-list li {
  margin: 5px 0;
  line-height: 1.6;
}
.widget-list li ul {
  margin-left: 15px;
}

/* Footer */
#footer {
  padding: 2.5em 0 1.5em;
  line-height: 1.5;
  text-align: center;
  color: #bbb;
  font-size: 1em;
}

/* Error page */
.error-page {
  margin-top: 100px;
  margin-bottom: 100px;
}

/* Content format */
.post-content, .comment-content {
  line-height: 1.7;
  word-wrap: break-word;
}
.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: var(--color-bg);
  position: relative;
  bottom: -4px;
}
.post-content hr, .comment-content hr {
  margin: 2em auto;
  width: 100px;
  border: 1px solid var(--color-border);
  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;
}

/* 响应式 */
@media (max-width: 767px) {
  body { font-size: 82.5%; }
  #nav-menu a {
    float: none;
    display: inline-block;
    margin: 0 0 6px 0;
  }
}
@media (max-width: 768px) {
  #header, .post-title, .post-meta { text-align: center; }
}
@media (min-width: 992px) {
  /* 可自定义更大屏的布局 */
}
@media (min-width: 1200px) {
  .container {
    max-width: 952px;
  }
}

/* 辅助隐藏等 */
.hidden {
  display: none !important;
  visibility: hidden;
}
.sr-only {
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}
.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto;
}
.invisible {
  visibility: hidden;
}
