html,
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1e293b;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  min-height: 100vh;
  flex-direction: column;
}
.blog-bg-wrap {
  width: 100vw;
  background: #f8fafc;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.blog-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 24px rgba(30,41,59,0.06);
  position: relative;
  z-index: 1;
}
@media (max-width: 767px) {
  .blog-container {
    padding: 0 8px;
    border-radius: 0;
    box-shadow: none;
  }
}
.pink-link-context a,
.indigo-link-context a,
.blue-link-context a {
  color: #2563eb !important;
}
.pink-link-context a:hover,
.indigo-link-context a:hover,
.blue-link-context a:hover {
  color: #3b82f6 !important;
}
.simple-article {
  margin-bottom: 30px;
}
article .article-title h1 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 2.2em;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 16px;
  color: #0f172a;
  letter-spacing: -0.02em;
}
article a:not(.chip):not(.blog-nav-link) {
  color: #2563eb;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
article a:not(.chip):not(.blog-nav-link):hover {
  color: #3b82f6;
  border-bottom-color: #3b82f6;
}
article .article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 0.9em;
  color: #64748b;
}
article .article-meta time a {
  color: #64748b !important;
  border: none !important;
}
article .article-meta time a:hover {
  color: #2563eb !important;
}
article .article-meta .read-times-container {
  margin-left: 0;
}
article .article-tags {
  margin-bottom: 24px;
}
article .article-tags .tag-badge {
  display: inline-block;
  padding: 3px 12px;
  margin: 0 6px 6px 0;
  font-size: 0.8em;
  color: #2563eb;
  background: rgba(37,99,235,0.08);
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s;
}
article .article-tags .tag-badge:hover {
  background: rgba(37,99,235,0.18);
}
article .entry {
  font-size: 17px;
  line-height: 1.85;
  color: #1e293b;
}
@media (max-width: 480px) {
  article .entry {
    font-size: 15px;
    line-height: 1.7;
  }
}
article .entry p {
  margin-top: 0;
  margin-bottom: 1.2em;
  text-align: justify;
  text-justify: inter-ideograph;
  word-break: break-word;
  text-indent: 2em;
}
article .entry p:last-child {
  margin-bottom: 0;
}
article .entry h1 + p,
article .entry h2 + p,
article .entry h3 + p,
article .entry h4 + p,
article .entry h5 + p,
article .entry h6 + p,
article .entry ul + p,
article .entry ol + p,
article .entry blockquote + p,
article .entry pre + p,
article .entry table + p,
article .entry iframe + p,
article .entry figure + p {
  text-indent: 0;
}
article .entry li p,
article .entry blockquote p,
article .entry table p,
article .entry .copyright-notice p {
  text-indent: 0;
}
article .entry ul,
article .entry ol {
  margin: 0 0 1.2em;
  padding-left: 1.6em;
}
article .entry ul li,
article .entry ol li {
  margin: 0.38em 0;
  line-height: inherit;
  word-break: break-word;
}
article .entry ul li::marker,
article .entry ol li::marker {
  color: #64748b;
}
article .entry ul li > p,
article .entry ol li > p {
  margin-top: 0.35em;
  margin-bottom: 0.35em;
  text-indent: 0;
}
article .entry ul li > ul,
article .entry ol li > ul,
article .entry ul li > ol,
article .entry ol li > ol {
  margin-top: 0.45em;
  margin-bottom: 0;
}
article .entry ul ul,
article .entry ol ul,
article .entry ul ol,
article .entry ol ol {
  margin-top: 0.45em;
  margin-bottom: 0;
}
article .entry h1,
article .entry h2,
article .entry h3,
article .entry h4,
article .entry h5,
article .entry h6 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 700;
  color: #0f172a;
  margin-top: 2em;
  margin-bottom: 0.6em;
  line-height: 1.4;
}
article .entry h1:first-child,
article .entry h2:first-child,
article .entry h3:first-child,
article .entry h4:first-child,
article .entry h5:first-child,
article .entry h6:first-child {
  margin-top: 0;
}
article .entry h1 {
  font-size: 1.6em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid #e2e8f0;
}
article .entry h2 {
  font-size: 1.4em;
  padding-bottom: 0.25em;
  border-bottom: 1px solid #e2e8f0;
}
article .entry h3 {
  font-size: 1.2em;
}
article .entry h4,
article .entry h5,
article .entry h6 {
  font-size: 1.05em;
}
article .entry iframe {
  max-width: 100%;
  border-radius: 8px;
}
article .copyright-notice {
  margin-top: 3em;
  padding: 1em 1.5em;
  background: #f8fafc;
  border-left: 4px solid #2563eb;
  border-radius: 0 8px 8px 0;
  font-size: 0.9em;
  color: #64748b;
}
article .toc-link {
  color: #2563eb;
  text-decoration: none;
  font-size: 0.85em;
  transition: color 0.2s;
}
article .toc-link:hover {
  color: #3b82f6;
}
article .toc-child {
  margin-left: 1em;
}
article .image-size-200 {
  text-align: center;
}
article .image-size-200 img {
  width: 60%;
}
article .image-size-200 a:hover {
  border-left-color: #2196f3;
}
article pre {
  padding: 16px 20px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.9em;
  line-height: 1.6;
  background: #1e293b;
  color: #e2e8f0;
}
article .line:after {
  content: '';
  display: inline-block;
}
article code,
article pre {
  font-family: "Fira Code", Consolas, Monaco, "Courier New", monospace;
}
article p code,
article li code {
  margin: 0 3px;
  padding: 2px 7px;
  border-radius: 5px;
  border: none;
  color: #0f172a;
  background: #f1f5f9;
  font-size: 0.9em;
}
figure.highlight {
  margin: 1.5em 0;
  border-radius: 8px;
  overflow: hidden;
  background: #1e293b;
}
figure.highlight td {
  padding: 0;
}
figure.highlight pre {
  margin: 0;
  overflow: auto;
  border-radius: 0;
}
figure.highlight figcaption {
  padding: 8px 16px;
  background: rgba(0,0,0,0.15);
  color: #94a3b8;
  font-size: 0.82em;
}
figure.highlight figcaption a {
  position: absolute;
  right: 16px;
  color: #94a3b8;
}
figure.highlight .gutter {
  width: 40px;
  text-align: right;
  padding-right: 12px;
  color: #475569;
  user-select: none;
}
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 3em;
  padding-top: 2em;
  border-top: 1px solid #e2e8f0;
  background: transparent;
  color: inherit;
  width: auto;
  height: auto;
  line-height: inherit;
  box-shadow: none;
}
@media (max-width: 576px) {
  .post-nav {
    grid-template-columns: 1fr;
  }
}
.post-nav-item {
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  text-decoration: none;
  color: #1e293b;
  transition: all 0.2s;
}
.post-nav-item:hover {
  border-color: #2563eb;
  box-shadow: 0 2px 12px rgba(37,99,235,0.1);
}
.post-nav-item.next {
  text-align: right;
  align-items: flex-end;
}
.post-nav-item .post-nav-label {
  font-size: 0.8em;
  color: #64748b;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.post-nav-item .post-nav-title {
  font-size: 0.95em;
  font-weight: 600;
  color: #0f172a;
}
.blog-container img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  background: none;
  border: none;
  padding: 0;
  display: block;
  margin: 16px auto;
  cursor: zoom-in;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.blog-container img:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}
article .entry img {
  max-width: 100%;
  max-height: 40vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  background: none;
  border: none;
  padding: 0;
  display: block;
  margin: 16px auto;
  cursor: zoom-in;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
article .entry img:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}
.img-lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  z-index: 100000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}
.img-lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}
.img-lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  margin: 0;
  cursor: zoom-out;
}
.img-lightbox-overlay .img-lightbox-caption {
  color: #fff;
  margin-top: 12px;
  font-size: 14px;
  text-align: center;
  max-width: 80vw;
}
strong {
  font-weight: 600;
}
blockquote {
  margin: 1.5em 0;
  padding: 1em 1.5em;
  border-left: 4px solid #2563eb;
  background: #f8fafc;
  border-radius: 0 8px 8px 0;
  color: #64748b;
}
blockquote p {
  margin: 0;
}
table {
  margin-bottom: 1.5em;
  border-collapse: collapse;
  width: 100%;
}
table th,
table td {
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  text-align: left;
}
table th {
  background: #f8fafc;
  font-weight: 600;
}
table tr:hover td {
  background: #f1f5f9;
}
hr {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 2em 0;
}
.page-nav {
  display: none;
}
article .gallery .control {
  opacity: 0;
  transition: 0.3s;
}
article .gallery:hover .control {
  opacity: 1;
}
article .gallery .prev,
article .gallery .next {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  cursor: pointer;
}
article .gallery .prev:before,
article .gallery .next:before {
  position: absolute;
  font: 24px/1 FontAwesome;
  text-align: center;
  width: 24px;
  text-shadow: 0 0 15px rgba(0,0,0,0.5);
  color: #fff;
  margin-top: -12px;
  top: 50%;
}
article .gallery .prev {
  left: 0;
}
article .gallery .prev:before {
  content: '\f053';
  left: 10px;
}
article .gallery .next {
  right: 0;
}
article .gallery .next:before {
  content: '\f054';
  right: 10px;
}
.noscript {
  background: rgba(0,0,0,0.5);
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  z-index: 9999;
  animation: noscript-slide 6s;
}
.noscript p {
  margin: 0;
  padding: 0 30px;
  color: #fff;
}
.read-times-container {
  margin-left: 0;
}
.read-times-container .fa-solid {
  margin-right: 4px;
}
.blog-footer {
  margin-top: auto;
  padding: 20px 0;
  text-align: center;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 0.85em;
}
.blog-footer a {
  color: #64748b;
  text-decoration: none;
}
.blog-footer a:hover {
  color: #2563eb;
}
@-moz-keyframes noscript-slide {
  0% {
    top: -100px;
  }
  50% {
    top: -100px;
  }
  100% {
    top: 0;
  }
}
@-webkit-keyframes noscript-slide {
  0% {
    top: -100px;
  }
  50% {
    top: -100px;
  }
  100% {
    top: 0;
  }
}
@-o-keyframes noscript-slide {
  0% {
    top: -100px;
  }
  50% {
    top: -100px;
  }
  100% {
    top: 0;
  }
}
@keyframes noscript-slide {
  0% {
    top: -100px;
  }
  50% {
    top: -100px;
  }
  100% {
    top: 0;
  }
}
