/* Minimal refined theme for Typecho default */
body {
  background: #fafafa;
  color: #2b2b2b;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.75;
}

a { color: #3d63dd; text-decoration: none; }
a:hover, a:active { color: #243b8f; }
pre, code { background: #f3f5f7; font-family: Menlo, Monaco, Consolas, monospace; font-size: .92em; }
code { padding: 2px 5px; color: #c44536; border-radius: 6px; }
.code-block {
  margin: 1.15em 0 1.35em; border: 1px solid #e5e7eb; border-radius: 16px; overflow: hidden;
  background: #0d1117; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.code-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.06); background: #111827;
}
.code-lang {
  font-size: 12px; line-height: 1; text-transform: uppercase; letter-spacing: .08em;
  color: #cbd5e1; font-weight: 600;
}
pre {
  position: relative; margin: 0; padding: 16px 18px; overflow: auto; border-radius: 0;
  border: none; background: #0d1117; box-shadow: none;
}
pre code { display: block; padding: 0; color: inherit; white-space: pre; background: transparent; }
blockquote { margin: 1.2em 0; padding: .2em 0 .2em 1em; border-left: 3px solid #d9dfe8; color: #667085; }
table { border-collapse: collapse; border: 1px solid #e8ebf0; width: 100%; }
table th, table td { padding: 8px 12px; border: 1px solid #eef1f4; }
table th { background: #f7f8fa; }
h1, h2, h3, h4, h5, h6 { color: #111827; font-family: inherit; line-height: 1.35; }
input[type="text"], input[type="email"], input[type="url"], input[type="password"], textarea {
  padding: 10px 12px; border: 1px solid #e6e8ec; width: 100%; border-radius: 12px; box-sizing: border-box; background: #fff;
}
textarea { resize: vertical; }
.post-meta a, .post-content a, .widget a, .comment-content a { border-bottom: 1px solid rgba(61,99,221,.18); }
.post-meta a:hover, .post-content a:hover, .widget a:hover, .comment-content a:hover { border-bottom-color: transparent; }
#header { padding: 38px 0 18px; border-bottom: 1px solid #eceff3; background: rgba(250,250,250,.95); backdrop-filter: blur(6px); }
.site-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
#logo { color: #111827; font-size: 2.1em; font-weight: 700; letter-spacing: -.02em; }
#logo img { max-height: 64px; }
.description { margin: 8px 0 0; color: #8b93a1; font-size: .98em; font-style: normal; }
#nav-menu { margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
#nav-menu a {
  display: inline-flex; align-items: center; justify-content: center; padding: 8px 14px; border: 1px solid #e9edf2; border-radius: 999px;
  height: auto; line-height: 1.2; color: #4b5563; float: none; background: #fff;
}
#nav-menu a:hover, #nav-menu .current { background: #111827; border-color: #111827; color: #fff; }
#search { position: relative; margin-top: 0; min-width: 220px; }
#search input { padding-right: 38px; background: #fff; }
#search button {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%); border: none; padding: 0; width: 20px; height: 20px;
  background: transparent url(img/icon-search.png) no-repeat center center; direction: ltr; text-indent: -9999em; opacity: .65;
}
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  #search button { background-image: url(img/icon-search@2x.png); background-size: 20px 20px; }
}
.post {
  padding: 26px 0 30px; border-bottom: 1px solid #edf0f3;
}
.post-single { border-bottom: none; }
.post-title { margin: .25em 0 .6em; font-size: 1.8em; line-height: 1.35; }
#main .post:not(.post-single) .post-title { font-size: 1.5em; }
.post-meta {
  margin: 0 0 18px; padding: 0; color: #98a2b3; font-size: .95em; display: flex; flex-wrap: wrap; gap: 8px 14px;
}
.post-meta li { display: inline-block; margin: 0; padding-left: 0; border-left: none; }
.post-content { line-height: 1.95; color: #374151; font-size: 15.5px; }
.post-content h2 { margin-top: 2.2em; margin-bottom: .9em; font-size: 1.42em; letter-spacing: -.01em; }
.post-content h3 { margin-top: 1.6em; margin-bottom: .7em; font-size: 1.16em; }
.post-content p { margin: 1.1em 0; }
.post-content ul, .post-content ol { margin: 1em 0 1.2em; padding-left: 1.4em; }
.post-content li { margin: .45em 0; }
.post-content img, .post-content video, .comment-content img, .comment-content video { max-width: 100%; border-radius: 14px; }
.post-content hr, .comment-content hr { margin: 2em auto; width: 100px; border: 1px solid #e5e7eb; border-width: 2px 0 0 0; }
.post-near { list-style: none; margin: 24px 0 8px; padding: 0; color: #6b7280; }
.post-near li { margin: 10px 0; }
.archive-title { margin: 1.2em 0 0; padding-top: 10px; color: #6b7280; font-size: 1em; }
.more { text-align: center; }
.more a { border: none; }
.page-navigator { list-style: none; margin: 30px 0; padding: 0; text-align: center; }
.page-navigator li { display: inline-block; margin: 0 4px; }
.page-navigator a { display: inline-block; padding: 0 12px; min-width: 36px; height: 36px; line-height: 36px; border-radius: 999px; }
.page-navigator a:hover, .page-navigator .current a { background: #111827; color: #fff; text-decoration: none; }
#comments { padding-top: 10px; }
.comment-list, .comment-list ol { list-style: none; margin: 0; padding: 0; }
.comment-list li { padding: 16px; margin-top: 12px; border: 1px solid #eceff3; border-radius: 16px; background: #fff; }
.comment-list li.comment-level-odd, .comment-list li.comment-level-even, .comment-list li.comment-by-author { background: #fff; }
.comment-list li .comment-reply { text-align: right; font-size: .93em; }
.comment-meta a { color: #98a2b3; font-size: .93em; }
.comment-author { display: block; margin-bottom: 3px; color: #374151; }
.comment-author .avatar { float: left; margin-right: 10px; border-radius: 50%; }
.comment-author cite { font-weight: 600; font-style: normal; }
.comment-list .respond { margin-top: 15px; border-top: 1px solid #edf0f3; }
.respond .cancel-comment-reply { float: right; margin-top: 15px; font-size: .93em; }
#comment-form label { display: block; margin-bottom: .5em; font-weight: 600; }
#comment-form .required:after { content: " *"; color: #C00; }
#secondary { padding-top: 22px; word-wrap: break-word; }
.widget { margin-bottom: 22px; padding: 18px; border: 1px solid #eceff3; border-radius: 18px; background: #fff; }
.widget-title { margin: 0 0 12px; font-size: 1em; }
.widget-list { list-style: none; padding: 0; margin: 0; }
.widget-list li { margin: 8px 0; line-height: 1.7; }
.widget-list li ul { margin-left: 15px; }
.simple-list li { color: #4b5563; }
.site-card { background: #fcfcfd; }
#footer { padding: 2.5em 0 3.5em; line-height: 1.7; text-align: center; color: #98a2b3; }
.error-page { margin-top: 100px; margin-bottom: 100px; }
.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; }
.post-toc {
  margin: 0 0 24px; padding: 14px 16px; border: 1px solid #e8ebf0; border-radius: 16px; background: #fff;
}
.post-toc-title { font-weight: 700; color: #111827; margin-bottom: 10px; }
.post-toc ul { list-style: none; margin: 0; padding: 0; }
.post-toc li { margin: 6px 0; }
.post-toc .toc-level-3 { padding-left: 14px; font-size: .96em; }
.source-card {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 0 0 1.35em;
  padding: 12px 14px; border: 1px solid #e8ebf0; border-radius: 16px; background: #fbfcfe;
}
.source-label {
  display: inline-flex; align-items: center; justify-content: center; padding: 4px 10px; border-radius: 999px;
  background: #eef2ff; color: #3d63dd; font-size: 12px; font-weight: 600;
}
.copy-btn {
  width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06);
  color: #dbe4f0; border-radius: 10px; padding: 0; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
}
.copy-btn:hover { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.2); }
.copy-btn.copied { background: #1f6feb; color: #fff; border-color: #1f6feb; }
.copy-icon { line-height: 1; transform: translateY(-.5px); }
.archive-page .archive-intro { color: #6b7280; margin-top: -6px; }
.archive-group { margin: 22px 0 28px; }
.archive-group-title { font-size: 1.12em; margin-bottom: 10px; }
.archive-list { list-style: none; margin: 0; padding: 0; }
.archive-list li { display: flex; gap: 14px; padding: 8px 0; border-bottom: 1px dashed #edf0f3; }
.archive-date { width: 48px; color: #98a2b3; flex: 0 0 auto; }
@media (max-width: 767px) {
  body { font-size: 14px; }
  .site-top { flex-direction: column; align-items: flex-start; }
  #search { width: 100%; min-width: 0; }
  #nav-menu { gap: 8px; }
  #nav-menu a { padding: 8px 12px; }
}
@media (max-width: 768px) {
  #header, .post-title, .post-meta { text-align: left; }
}
@media (min-width: 1200px) {
  .container { max-width: 980px; }
}
.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; }
