/*! modern-normalize | MIT License | https://github.com/sindresorhus/modern-normalize */
/* Document
   ========================================================================== */
/**
 * Use a better box model (opinionated).
 */
html {
  box-sizing: border-box;
}
*,
*::before,
*::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
/**
 * Use a more readable tab size (opinionated).
 */
:root {
  -moz-tab-size: 4;
  tab-size: 4;
}
/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
  line-height: 1.15;
  /* 1 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
}
/* Sections
   ========================================================================== */
/**
 * Remove the margin in all browsers.
 */
body {
  margin: 0;
  font-size: 14px;
}
/**
 * Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
 */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
}
/* Grouping content
   ========================================================================== */
/**
 * Add the correct height in Firefox.
 */
hr {
  height: 0;
}
/* Text-level semantics
   ========================================================================== */
/**
 * Add the correct text decoration in Chrome, Edge, and Safari.
 */
abbr[title] {
  text-decoration: underline dotted;
}
/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
  font-weight: bolder;
}
/**
 * 1. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp,
pre {
  font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, Courier, monospace;
  /* 1 */
  font-size: 1em;
  /* 2 */
}
/**
 * Add the correct font size in all browsers.
 */
small {
  font-size: 80%;
}
/**
 * Prevent `sub` and `sup` elements from affecting the line height in all browsers.
 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sub {
  bottom: -0.25em;
}
sup {
  top: -0.5em;
}
/* Forms
   ========================================================================== */
/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  /* 1 */
  font-size: 100%;
  /* 1 */
  line-height: 1.15;
  /* 1 */
  margin: 0;
  /* 2 */
}
/**
 * Remove the inheritance of text transform in Edge and Firefox.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
  /* 1 */
  text-transform: none;
}
/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type='button'],
[type='reset'],
[type='submit'] {
  -webkit-appearance: button;
}
/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type='button']::-moz-focus-inner,
[type='reset']::-moz-focus-inner,
[type='submit']::-moz-focus-inner {
  border-style: none;
  padding: 0;
}
/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type='button']:-moz-focusring,
[type='reset']:-moz-focusring,
[type='submit']:-moz-focusring {
  outline: 1px dotted ButtonText;
}
/**
 * Correct the padding in Firefox.
 */
fieldset {
  padding: 0.35em 0.75em 0.625em;
}
/**
 * Remove the padding so developers are not caught out when they zero out `fieldset` elements in all browsers.
 */
legend {
  padding: 0;
}
/**
 * Add the correct vertical alignment in Chrome and Firefox.
 */
progress {
  vertical-align: baseline;
}
/**
 * Correct the cursor style of increment and decrement buttons in Safari.
 */
[type='number']::-webkit-inner-spin-button,
[type='number']::-webkit-outer-spin-button {
  height: auto;
}
/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type='search'] {
  -webkit-appearance: textfield;
  /* 1 */
  outline-offset: -2px;
  /* 2 */
}
/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type='search']::-webkit-search-decoration {
  -webkit-appearance: none;
}
/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
  -webkit-appearance: button;
  /* 1 */
  font: inherit;
  /* 2 */
}
/* Interactive
   ========================================================================== */
/*
 * Add the correct display in Chrome and Safari.
 */
summary {
  display: list-item;
}
/* a11y-dark theme */
/* Based on the Tomorrow Night Eighties theme: https://github.com/isagalaev/highlight.js/blob/master/src/styles/tomorrow-night-eighties.css */
/* @author: ericwbailey */
/* Comment */
.hljs-comment,
.hljs-quote {
  color: #d4d0ab;
}
/* Red */
.hljs-variable,
.hljs-template-variable,
.hljs-tag,
.hljs-name,
.hljs-selector-id,
.hljs-selector-class,
.hljs-regexp,
.hljs-deletion {
  color: #ffa07a;
}
/* Orange */
.hljs-number,
.hljs-built_in,
.hljs-builtin-name,
.hljs-literal,
.hljs-type,
.hljs-params,
.hljs-meta,
.hljs-link {
  color: #f5ab35;
}
/* Yellow */
.hljs-attribute {
  color: #ffd700;
}
/* Green */
.hljs-string,
.hljs-symbol,
.hljs-bullet,
.hljs-addition {
  color: #abe338;
}
/* Blue */
.hljs-title,
.hljs-section {
  color: #00e0e0;
}
/* Purple */
.hljs-keyword,
.hljs-selector-tag {
  color: #dcc6e0;
}
.hljs {
  display: block;
  overflow-x: auto;
  background: #2b2b2b;
  color: #f8f8f2;
  padding: 0.5em;
}
.hljs-emphasis {
  font-style: italic;
}
.hljs-strong {
  font-weight: bold;
}
@media screen and (-ms-high-contrast: active) {
  .hljs-addition,
  .hljs-attribute,
  .hljs-built_in,
  .hljs-builtin-name,
  .hljs-bullet,
  .hljs-comment,
  .hljs-link,
  .hljs-literal,
  .hljs-meta,
  .hljs-number,
  .hljs-params,
  .hljs-string,
  .hljs-symbol,
  .hljs-type,
  .hljs-quote {
    color: highlight;
  }
  .hljs-keyword,
  .hljs-selector-tag {
    font-weight: bold;
  }
}
body {
  background: #f8f9fa;
  color: #495057;
  font-size: 16px;
}
html.dark-mode body,
.dark-mode {
  background-color: #1a1c1e;
  /* 深色模式背景色 - 更深的灰黑色 */
  color: #b5afa6;
  /* 深色模式文本颜色 */
}
a {
  text-decoration: none;
  color: #495057;
}
.dark-mode a {
  color: #91a7ff;
}
.sidebar {
  width: 320px;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  background-color: #7c8280;
  background-size: cover;
  background-position: center;
  background-image: url('../media/images/sidebar-bg.webp');
  /* 使用WebP格式优化图片 */
  display: flex;
  flex-direction: column;
  overflow-y: scroll;
}
.sidebar .menu-btn {
  display: none;
}
.sidebar .search-container {
  padding: 0 16px 20px;
}
.sidebar .search-container .search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.sidebar .search-container .search-input-wrapper .search-icon,
.sidebar .search-container .search-input-wrapper .clear-icon {
  position: absolute;
  right: 12px;
  color: #dee2e6;
  opacity: 0.7;
}
.sidebar .search-container .search-input-wrapper .clear-icon {
  cursor: pointer;
}
.sidebar .search-container .search-input-wrapper .clear-icon:hover {
  opacity: 1;
}
.sidebar .search-container .search-highlight {
  background-color: rgba(255, 235, 59, 0.3);
  color: #fff;
}
.sidebar .search-container #search-input {
  width: 100%;
  padding: 10px;
  border-radius: 20px;
  border: none;
  outline: none;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.1);
  color: #dee2e6;
  -webkit-text-fill-color: #dee2e6 !important;
  -webkit-box-shadow: 0 0 0px 1000px transparent inset !important;
  -webkit-appearance: none;
  appearance: none;
}
.sidebar .search-container #search-input::-webkit-input-placeholder {
  color: #dee2e6 !important;
  opacity: 0.7;
}
.sidebar .search-container #search-input::-moz-placeholder {
  color: #dee2e6 !important;
  opacity: 0.7;
}
.sidebar .search-container #search-input:-ms-input-placeholder {
  color: #dee2e6 !important;
  opacity: 0.7;
}
.sidebar .search-container #search-input:focus {
  color: #dee2e6 !important;
  -webkit-text-fill-color: #dee2e6 !important;
}
.dark-mode .sidebar .search-container #search-input {
  background: rgba(255, 255, 255, 0.1);
  color: #dee2e6 !important;
  -webkit-text-fill-color: #dee2e6 !important;
  -webkit-box-shadow: 0 0 0px 1000px transparent inset !important;
}
.dark-mode .sidebar .search-container #search-input::-webkit-input-placeholder {
  color: #dee2e6 !important;
  opacity: 0.7;
}
.dark-mode .sidebar .search-container #search-input::-moz-placeholder {
  color: #dee2e6 !important;
  opacity: 0.7;
}
.dark-mode .sidebar .search-container #search-input:-ms-input-placeholder {
  color: #dee2e6 !important;
  opacity: 0.7;
}
.sidebar .search-container .search-results {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-top: 10px;
  max-height: 300px;
  overflow-y: auto;
}
.dark-mode .sidebar .search-container .search-results {
  background: rgba(255, 255, 255, 0.1);
}
.sidebar .search-container .search-results .search-result-item {
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.dark-mode .sidebar .search-container .search-results .search-result-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.sidebar .search-container .search-results .search-result-item:last-child {
  border-bottom: none;
}
.sidebar .search-container .search-results .search-result-item a {
  color: #dee2e6;
  text-decoration: none;
}
.dark-mode .sidebar .search-container .search-results .search-result-item a {
  color: #dee2e6;
}
.sidebar .search-container .search-results .search-result-item a:hover {
  color: #dee2e6;
}
.dark-mode .sidebar .search-container .search-results .search-result-item a:hover {
  color: #dee2e6;
}
.sidebar .search-container .search-results .search-result-item .search-result-title {
  font-weight: bold;
  margin-bottom: 5px;
  color: #dee2e6;
}
.sidebar .search-container .search-results .search-result-item .search-result-preview {
  font-size: 12px;
  color: #dee2e6;
}
.dark-mode .sidebar .search-container .search-results .search-result-item .search-result-preview {
  color: #dee2e6;
}
.sidebar .top-container {
  text-align: center;
  padding: 48px 16px;
  flex: 1;
}
.sidebar .top-container .site-logo {
  width: 80px;
  height: 80px;
  border-radius: 50% !important;
  border: 2px solid #F1F3F5;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
  object-fit: cover;
  background-color: #e9ecef;
  display: inline-block;
  flex-shrink: 0;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
}
.dark-mode .sidebar .top-container .site-logo {
  border-color: #33393e;
  background-color: #2b3035;
}
.sidebar .top-container .site-title {
  font-size: 24px;
  padding: 32px 0;
  color: #dee2e6;
}
.dark-mode .sidebar .top-container .site-title {
  color: #dee2e6;
}
.sidebar .top-container .site-nav {
  display: block;
  padding: 8px 16px;
  margin: 16px 0;
  color: #dee2e6 !important;
  transition: all 0.3s;
}
.sidebar .top-container .site-nav:hover {
  color: #dee2e6 !important;
}
.dark-mode .sidebar .top-container .site-nav {
  color: #dee2e6 !important;
}
.dark-mode .sidebar .top-container .site-nav:hover {
  color: #dee2e6 !important;
}
.sidebar .bottom-container {
  padding: 24px 16px;
  color: #dee2e6;
  font-size: 12px;
}
.sidebar .bottom-container .site-description {
  padding: 16px 0;
}
.sidebar .bottom-container a {
  color: #dee2e6;
}
.sidebar .bottom-container .theme-toggle-container {
  margin-bottom: 16px;
}
.sidebar .bottom-container .theme-toggle-container .theme-toggle-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #dee2e6;
  padding: 8px 12px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-size: 12px;
  transition: all 0.3s ease;
}
.sidebar .bottom-container .theme-toggle-container .theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}
.sidebar .bottom-container .theme-toggle-container .theme-toggle-btn i {
  margin-right: 6px;
  font-size: 14px;
}
.main-container {
  margin-left: 320px;
}
.content-container {
  max-width: 1064px;
  margin: 0 auto;
  padding: 48px 32px;
}
.post-item {
  display: flex;
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid #ced4da;
}
.post-item:last-of-type {
  border-bottom: none;
}
.post-item .left {
  flex: 1;
}
.post-item .left .post-title {
  font-size: 24px;
  transition: all 0.3s;
  color: #495057;
}
.post-item .left .post-title:hover {
  color: #212529;
}
.dark-mode .post-item .left .post-title {
  color: #b5afa6;
}
.dark-mode .post-item .left .post-title:hover {
  color: #a09a92;
}
.post-item .left .post-date {
  font-size: 18px;
  padding: 24px 0;
  color: #adb5bd;
}
.dark-mode .post-item .left .post-date {
  color: #8a857e;
}
.post-item .left .post-abstract {
  line-height: 24px;
  font-size: 18px;
  color: #868e96;
}
.dark-mode .post-item .left .post-abstract {
  color: #a09a92;
}
.post-item .right {
  flex-shrink: 0;
  margin-left: 24px;
  width: 38.2%;
}
.post-item .right .feature-container {
  padding-top: 56.25%;
  background-size: cover;
  background-position: center;
  border-radius: 3px;
  box-shadow: 0 2px 5px rgba(0, 0, 25, 0.1), 0 5px 75px 1px rgba(0, 0, 50, 0.2);
  position: relative;
  overflow: hidden;
}
.post-item .right .feature-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 3px;
}
.dark-mode .post-item .right .feature-container::before {
  opacity: 0.5;
  /* 增加深色模式下的压暗效果 */
}
/* Pagination Styling */
.pagination-wrapper {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px dashed #e9ecef;
}
.dark-mode .pagination-wrapper {
  border-top-color: #2b3035;
}
.pagination-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}
.infinite-scroll-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  color: #6c757d;
  transition: color 0.2s;
}
.infinite-scroll-toggle:hover {
  color: #333333;
}
.dark-mode .infinite-scroll-toggle {
  color: #8a857e;
}
.dark-mode .infinite-scroll-toggle:hover {
  color: #b5afa6;
}
.infinite-scroll-toggle .infinite-scroll-checkbox {
  display: none;
}
.infinite-scroll-toggle .infinite-scroll-checkbox:checked + .toggle-slider {
  background-color: #333333;
}
.infinite-scroll-toggle .infinite-scroll-checkbox:checked + .toggle-slider::before {
  transform: translateX(14px);
}
.dark-mode .infinite-scroll-toggle .infinite-scroll-checkbox:checked + .toggle-slider {
  background-color: #e9ecef;
}
.dark-mode .infinite-scroll-toggle .infinite-scroll-checkbox:checked + .toggle-slider::before {
  background-color: #1a1c1e;
}
.infinite-scroll-toggle .toggle-slider {
  position: relative;
  width: 32px;
  height: 18px;
  background-color: #dee2e6;
  border-radius: 18px;
  transition: background-color 0.25s ease;
  display: inline-block;
}
.infinite-scroll-toggle .toggle-slider::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #ffffff;
  transition: transform 0.25s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.dark-mode .infinite-scroll-toggle .toggle-slider {
  background-color: #383e45;
}
.infinite-scroll-toggle .toggle-text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}
.pagination-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 16px;
  width: 100%;
}
.pagination-container .pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #495057;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.pagination-container .pagination-btn:hover:not(.disabled) {
  transform: translateY(-1px);
  border-color: #ced4da;
  color: #212529;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
}
.pagination-container .pagination-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}
.dark-mode .pagination-container .pagination-btn {
  background: #25282c;
  border-color: #33393e;
  color: #b5afa6;
}
.dark-mode .pagination-container .pagination-btn:hover:not(.disabled) {
  border-color: #495057;
  color: #e9ecef;
}
.pagination-container .pagination-numbers {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pagination-container .pagination-numbers .page-num {
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #495057;
  background: #ffffff;
  border: 1px solid #e9ecef;
  text-decoration: none;
  transition: all 0.2s ease;
}
.pagination-container .pagination-numbers .page-num:hover:not(.active) {
  background: #f8f9fa;
  border-color: #adb5bd;
  color: #212529;
}
.pagination-container .pagination-numbers .page-num.active {
  background: #333333;
  color: #ffffff;
  border-color: #333333;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.dark-mode .pagination-container .pagination-numbers .page-num {
  background: #25282c;
  border-color: #33393e;
  color: #b5afa6;
}
.dark-mode .pagination-container .pagination-numbers .page-num:hover:not(.active) {
  background: #2c3035;
  color: #e9ecef;
}
.dark-mode .pagination-container .pagination-numbers .page-num.active {
  background: #e9ecef;
  color: #1a1c1e;
  border-color: #e9ecef;
}
.pagination-container .pagination-numbers .page-ellipsis {
  color: #adb5bd;
  padding: 0 2px;
  user-select: none;
  font-size: 13px;
}
.dark-mode .pagination-container .pagination-numbers .page-ellipsis {
  color: #6c757d;
}
.pagination-container .pagination-jump {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #6c757d;
  margin-left: 8px;
}
.dark-mode .pagination-container .pagination-jump {
  color: #8a857e;
}
.pagination-container .pagination-jump .page-jump-input {
  width: 50px;
  height: 34px;
  padding: 0 4px;
  text-align: center;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  background: #ffffff;
  font-size: 13px;
  color: #212529;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -moz-appearance: textfield;
}
.pagination-container .pagination-jump .page-jump-input:focus {
  border-color: #4c6ef5;
  box-shadow: 0 0 0 3px rgba(76, 110, 245, 0.12);
}
.dark-mode .pagination-container .pagination-jump .page-jump-input {
  background: #25282c;
  border-color: #33393e;
  color: #e9ecef;
}
.dark-mode .pagination-container .pagination-jump .page-jump-input:focus {
  border-color: #748ffc;
  box-shadow: 0 0 0 3px rgba(116, 143, 252, 0.2);
}
.pagination-container .pagination-jump .page-jump-input::-webkit-inner-spin-button,
.pagination-container .pagination-jump .page-jump-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.pagination-container .pagination-jump .page-jump-btn {
  height: 34px;
  padding: 0 12px;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  background: #f8f9fa;
  color: #495057;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pagination-container .pagination-jump .page-jump-btn:hover {
  background: #e9ecef;
  color: #212529;
  border-color: #ced4da;
}
.dark-mode .pagination-container .pagination-jump .page-jump-btn {
  background: #2c3035;
  border-color: #383e45;
  color: #dee2e6;
}
.dark-mode .pagination-container .pagination-jump .page-jump-btn:hover {
  background: #343a40;
  color: #ffffff;
}
@media (max-width: 640px) {
  .pagination-container {
    gap: 10px 6px;
  }
  .pagination-container .pagination-numbers {
    order: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 4px;
    gap: 4px;
  }
  .pagination-container .pagination-numbers .page-num {
    min-width: 32px;
    height: 32px;
    font-size: 13px;
    padding: 0 6px;
  }
  .pagination-container .pagination-numbers .page-ellipsis {
    font-size: 12px;
    padding: 0 1px;
  }
  .pagination-container .prev {
    order: 2;
    padding: 6px 10px;
    font-size: 12px;
    white-space: nowrap;
  }
  .pagination-container .pagination-jump {
    order: 3;
    margin-left: 0;
    margin-top: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 12px;
  }
  .pagination-container .pagination-jump .jump-label {
    font-size: 12px;
  }
  .pagination-container .pagination-jump .page-jump-input {
    width: 38px;
    height: 30px;
    padding: 0 2px;
    font-size: 12px;
  }
  .pagination-container .pagination-jump .jump-unit {
    font-size: 12px;
    white-space: nowrap;
  }
  .pagination-container .pagination-jump .page-jump-btn {
    height: 30px;
    padding: 0 8px;
    font-size: 12px;
    white-space: nowrap;
  }
  .pagination-container .next {
    order: 4;
    padding: 6px 10px;
    font-size: 12px;
    white-space: nowrap;
  }
  .pagination-container .prev:hover,
  .pagination-container .next:hover {
    transform: translateY(0px);
  }
}
@media (max-width: 640px) and (max-width: 420px) {
  .pagination-container .pagination-jump .jump-label {
    display: none;
  }
}
.infinite-scroll-status {
  text-align: center;
  padding: 12px 0;
}
.infinite-scroll-status .stream-loading-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.infinite-scroll-status .stream-load-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 28px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid #e9ecef;
  font-size: 13px;
  font-weight: 500;
  color: #495057;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.infinite-scroll-status .stream-load-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: #ced4da;
  color: #212529;
}
.infinite-scroll-status .stream-load-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.dark-mode .infinite-scroll-status .stream-load-btn {
  background: #25282c;
  border-color: #33393e;
  color: #b5afa6;
}
.dark-mode .infinite-scroll-status .stream-load-btn:hover:not(:disabled) {
  border-color: #495057;
  color: #e9ecef;
}
.infinite-scroll-status .stream-load-btn .loading-spinner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
}
.infinite-scroll-status .stream-load-btn .loading-spinner i {
  font-size: 14px;
}
.infinite-scroll-status .stream-hint {
  font-size: 13px;
  color: #adb5bd;
  display: flex;
  align-items: center;
  gap: 12px;
}
.infinite-scroll-status .stream-hint::before,
.infinite-scroll-status .stream-hint::after {
  content: "";
  height: 1px;
  width: 30px;
  background: #e9ecef;
  opacity: 0.6;
}
.dark-mode .infinite-scroll-status .stream-hint {
  color: #6c757d;
}
.dark-mode .infinite-scroll-status .stream-hint::before,
.dark-mode .infinite-scroll-status .stream-hint::after {
  background: #33393e;
}
@keyframes streamFadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.stream-fade-in {
  animation: streamFadeInUp 0.4s ease forwards;
}
.post-detail {
  max-width: 720px;
  margin: 0 auto;
}
.post-detail .feature-container {
  padding-top: 56.25%;
  background-size: cover;
  background-position: center;
  border-radius: 3px;
  box-shadow: 0 2px 5px rgba(0, 0, 25, 0.1), 0 5px 75px 1px rgba(0, 0, 50, 0.2);
  margin-bottom: 24px;
  position: relative;
}
.post-detail .feature-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 3px;
}
.dark-mode .post-detail .feature-container::before {
  opacity: 0.3;
}
.post-detail .post-title {
  font-size: 40px;
}
.post-detail .post-date {
  font-size: 18px;
  padding: 24px 0;
  color: #adb5bd;
}
.post-detail .post-content h1,
.post-detail .post-content h2,
.post-detail .post-content h3,
.post-detail .post-content h4,
.post-detail .post-content h5,
.post-detail .post-content h6 {
  margin: 16px 0;
  color: #495057;
}
.dark-mode .post-detail .post-content h1,
.dark-mode .post-detail .post-content h2,
.dark-mode .post-detail .post-content h3,
.dark-mode .post-detail .post-content h4,
.dark-mode .post-detail .post-content h5,
.dark-mode .post-detail .post-content h6 {
  color: #b5afa6;
}
.post-detail .post-content a {
  color: #495057;
  border-bottom: 1px dotted #495057;
  transition: all 0.3s;
}
.post-detail .post-content a:hover {
  color: #212529;
  border-bottom: 1px dotted #212529;
}
.dark-mode .post-detail .post-content a {
  color: #91a7ff;
  border-bottom: 1px dotted #91a7ff;
}
.dark-mode .post-detail .post-content a:hover {
  color: #dbe4ff;
  border-bottom: 1px dotted #dbe4ff;
}
.post-detail .post-content img {
  display: block;
  box-shadow: 0 2px 5px rgba(0, 0, 25, 0.1), 0 5px 75px 1px rgba(0, 0, 50, 0.2);
  max-width: 100%;
  border-radius: 2px;
  margin: 24px auto;
}
.post-detail .post-content p {
  line-height: 1.725;
  margin-bottom: 24px;
  font-size: 18px;
  color: #495057;
}
.dark-mode .post-detail .post-content p {
  color: #b5afa6;
}
.post-detail .post-content p code,
.post-detail .post-content ul code,
.post-detail .post-content ol code {
  padding: 0 3px;
  margin: 0 2px;
  background: #e9ecef;
  font-size: 0.9em;
  border-radius: 2px;
  border: 1px solid #dee2e6;
  display: inline-block;
  line-height: 1.5;
  color: #868e96;
}
.post-detail .post-content blockquote {
  background: #e9ecef;
  padding: 16px;
  border-left: 3px solid #7048e8;
  border-radius: 2px;
  margin-bottom: 16px;
}
.dark-mode .post-detail .post-content blockquote {
  background: #252729;
  border-left: 3px solid #9775fa;
}
.post-detail .post-content blockquote p {
  color: #868e96;
  margin-bottom: 0;
}
.dark-mode .post-detail .post-content blockquote p {
  color: #a09a92;
}
.post-detail .post-content code {
  font-size: 14px;
  font-family: 'Source Code Pro', Consolas, Menlo, Monaco, 'Courier New', monospace;
  padding: 2em 1em 1em;
  border-radius: 5px;
  line-height: 1.375;
  position: relative;
  background: #343a40;
  color: #f1f3f5;
  display: block;
}
.post-detail .post-content code:after {
  content: 'CODE';
  display: block;
  position: absolute;
  left: 8px;
  top: 4px;
  font-size: 14px;
  font-weight: bold;
  color: #868e96;
}
.dark-mode .post-detail .post-content code:after {
  color: #a09a92;
}
.post-detail .post-content table {
  border-collapse: collapse;
  margin: 1rem 0;
  display: block;
  overflow-x: auto;
}
.post-detail .post-content tr {
  border-top: 1px solid #dfe2e5;
}
.post-detail .post-content td,
.post-detail .post-content th {
  border: 1px solid #dfe2e5;
  padding: 0.6em 1em;
}
.post-detail .post-content ul,
.post-detail .post-content ol {
  color: var(--c-base-blacklight);
  padding-left: 24px;
  line-height: 1.725;
  margin-bottom: 16px;
}
.post-detail .post-content strong {
  font-weight: bolder;
}
.post-detail .post-content em {
  color: #868e96;
}
.dark-mode .post-detail .post-content em {
  color: #8a857e;
}
.post-detail .post-content hr {
  height: 0;
  border: 2px solid #dee2e6;
  margin-bottom: 24px;
}
.dark-mode .post-detail .post-content hr {
  border-color: #4a4a4a;
}
.anchor-list {
  display: block;
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 5px;
  padding: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
  max-height: 60vh;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.anchor-list.visible {
  opacity: 1;
  visibility: visible;
}
.anchor-list .anchor-title {
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
  text-align: center;
  font-size: 14px;
}
.anchor-list ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.anchor-list li {
  margin: 5px 0;
  font-size: 12px;
}
.anchor-list li a {
  color: #666;
  text-decoration: none;
  display: block;
  padding: 3px 0;
  transition: all 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.anchor-list li a:hover {
  color: #3498db;
  transform: translateX(3px);
}
.anchor-list li a.active {
  color: #3498db;
  font-weight: bold;
}
.anchor-list ul ul {
  padding-left: 10px;
}
.dark-mode .anchor-list {
  background: rgba(35, 35, 35, 0.9);
}
.dark-mode .anchor-list .anchor-title {
  color: #b5afa6;
}
.dark-mode .anchor-list li a {
  color: #a09a92;
}
.dark-mode .anchor-list li a:hover {
  color: #3498db;
}
.anchor-list-toggle {
  font-weight: bold;
  color: #333;
  text-align: center;
  font-size: 14px;
  cursor: pointer;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  user-select: none;
  background: #f8f9fa;
  border-radius: 8px 8px 0 0;
  margin: 0 -12px 12px -12px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.anchor-list-toggle .toggle-icon {
  position: absolute;
  right: 24px;
  transition: transform 0.3s ease;
}
.dark-mode .anchor-list-toggle {
  color: #b5afa6;
  border-bottom: 1px solid #444;
  background: #2d2d2d;
}
@media (max-width: 1507px) {
  .anchor-list {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: auto;
    max-height: none;
    opacity: 1;
    visibility: visible;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    background: #f8f9fa;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #e9ecef;
    margin: 24px 0 32px 0;
  }
  .anchor-list .anchor-title {
    display: none;
  }
  .anchor-list #anchor-content {
    padding: 0 16px 16px 16px;
  }
  .anchor-list.narrow-screen {
    display: block;
  }
}
.back-to-top {
  transition: opacity 0.3s ease, transform 0.3s ease;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  color: #dee2e6;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  backdrop-filter: blur(10px);
}
.back-to-top.hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}
.back-to-top i {
  font-size: 20px;
  color: #333333;
}
.dark-mode .back-to-top i {
  color: #f0f0f0;
}
.back-to-top:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15), 0 3px 6px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.3);
}
.back-to-top:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.15);
}
.back-to-top.hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}
.dark-mode .back-to-top {
  background: rgba(255, 255, 255, 0.1);
  color: #dee2e6;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), /* 深色模式下的阴影 */ 0 2px 4px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.dark-mode .back-to-top:hover {
  background: rgba(255, 255, 255, 0.2);
  /* 悬停时的深色效果 */
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25), /* 悬停时的阴影 */ 0 3px 6px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
@media (min-width: 1507px) {
  .back-to-top {
    right: calc((100vw - 1507px) / 2 + 20px);
  }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .anchor-list.narrow-screen {
    margin: 20px 16px;
  }
  .anchor-list-toggle {
    padding: 11px 14px;
    font-size: 13px;
  }
}
@media (max-width: 800px) {
  .anchor-list.narrow-screen {
    margin: 20px 16px;
  }
}
@media (max-width: 480px) {
  .anchor-list.narrow-screen {
    margin: 20px 12px;
  }
  .anchor-list-toggle {
    padding: 10px 12px;
    font-size: 13px;
    flex-wrap: wrap;
  }
  #anchor-content {
    padding: 0 12px 12px 12px !important;
  }
  li {
    font-size: 11px !important;
  }
}
@media (max-width: 360px) {
  .anchor-list-toggle {
    font-size: 12px;
    padding: 8px 10px;
  }
  .anchor-list-toggle .toggle-icon {
    margin-left: 5px;
  }
}
.tag {
  display: inline-block;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 16px;
  background: #e9ecef;
  color: #868e96;
  margin: 16px 16px 16px 0;
  transition: all 0.3s;
}
.tag:hover {
  background: #dee2e6;
  color: #495057;
  transform: translateY(-3px);
}
.dark-mode .tag {
  background: #3a3a3a;
  color: #a09a92;
}
.dark-mode .tag:hover {
  background: #4a4a4a;
  color: #b5afa6;
}
.next-post {
  border-top: 1px solid #868e96;
  border-bottom: 1px solid #868e96;
  padding: 24px 0;
  margin: 32px 0;
}
.dark-mode .next-post {
  border-top: 1px solid #5a5a5a;
  border-bottom: 1px solid #5a5a5a;
}
.next-post .post-title {
  font-size: 24px;
}
.next-post .next {
  color: #868e96;
}
.dark-mode .next-post .next {
  color: #5a5a5a;
}
.archives-title,
.tag-list-title,
.current-tag {
  color: #495057;
  padding-bottom: 48px;
  font-size: 32px;
}
.dark-mode .archives-title,
.dark-mode .tag-list-title,
.dark-mode .current-tag {
  color: #b5afa6;
}
.archives-container {
  padding-bottom: 32px;
}
.archives-container .year {
  font-size: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #ced4da;
  margin: 16px 0;
  color: #868e96;
}
.dark-mode .archives-container .year {
  color: #a09a92;
  border-bottom: 1px solid #868e96;
}
.archives-container .post {
  padding-bottom: 16px;
}
.archives-container .post .post-title {
  font-size: 18px;
  transition: all 0.3s;
  color: #495057;
}
.archives-container .post .post-title:hover {
  color: #212529;
}
.dark-mode .archives-container .post .post-title {
  color: #b5afa6;
}
.dark-mode .archives-container .post .post-title:hover {
  color: #a09a92;
}
@media (max-width: 800px) {
  .sidebar {
    position: relative;
    width: 100% !important;
    height: 80px;
    overflow: hidden;
    transition: height 0.382s ease-in-out;
  }
  .sidebar.full-height {
    height: 100vh;
  }
  .sidebar .sidebar-content {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
  }
  .sidebar .top-header-container {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
  }
  .sidebar .top-header-container .menu-btn {
    display: block;
    position: relative;
    width: 48px;
    height: 48px;
  }
  .sidebar .top-header-container .menu-btn .line {
    width: 32px;
    height: 2px;
    background: #e9ecef;
    border-radius: 2px;
    position: absolute;
    right: 0;
    top: 23px;
  }
  .sidebar .top-header-container .menu-btn:before,
  .sidebar .top-header-container .menu-btn:after {
    content: '';
    display: block;
    width: 32px;
    height: 2px;
    background: #e9ecef;
    border-radius: 2px;
    position: absolute;
    right: 0;
  }
  .sidebar .top-header-container .menu-btn:before {
    top: 12px;
  }
  .sidebar .top-header-container .menu-btn:after {
    bottom: 12px;
  }
  .sidebar .top-container {
    text-align: left;
    padding: 0 16px;
  }
  .sidebar .top-container .site-title-container {
    display: flex;
    align-items: center;
  }
  .sidebar .top-container .site-logo {
    width: 48px;
    height: 48px;
    border-radius: 50% !important;
    object-fit: cover;
    background-color: #e9ecef;
    display: inline-block;
    flex-shrink: 0;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
  }
  .dark-mode .sidebar .top-container .site-logo {
    border-color: #33393e;
    background-color: #2b3035;
  }
  .sidebar .top-container .site-title {
    display: inline;
    padding: 0 8px;
    font-size: 18px;
  }
  .sidebar .top-container .search-container {
    padding: 20px 0 16px 0;
    margin-top: 14px;
  }
  .sidebar .top-container .search-container #search-input {
    width: 100%;
    padding: 8px 12px;
    border-radius: 20px;
    border: none;
    outline: none;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1);
    color: #dee2e6;
  }
  .sidebar .top-container .search-container .search-results {
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 5px;
    max-height: 200px;
    overflow-y: auto;
  }
  .dark-mode .sidebar .top-container .search-container .search-results {
    background: #2d2d2d;
  }
  .main-container {
    margin-left: 0 !important;
    width: 100%;
    box-sizing: border-box;
  }
  .content-container {
    padding: 24px 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .post-item {
    display: flex;
    flex-direction: column-reverse;
    padding-bottom: 20px;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
  }
  .post-item .right {
    display: block;
    width: 100%;
    margin-left: 0;
    margin-bottom: 16px;
    flex: none;
    box-sizing: border-box;
  }
  .post-item .right .feature-container {
    width: 100%;
    padding-top: 56.25%;
    position: relative;
    box-sizing: border-box;
  }
  .post-item .left {
    width: 100%;
    flex: none;
    box-sizing: border-box;
  }
  .post-item .left .post-title {
    font-size: 20px;
  }
  .post-item .left .post-date {
    font-size: 14px;
    padding: 12px 0;
  }
  .post-item .left .post-abstract {
    font-size: 15px;
  }
  .post-detail .post-title {
    font-size: 28px;
  }
  .post-detail .post-date {
    font-size: 16px;
    padding: 16px 0;
  }
  .post-detail .feature-container {
    margin-bottom: 16px;
    position: relative;
  }
  .post-detail .feature-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 3px;
  }
  .dark-mode .post-detail .feature-container::before {
    opacity: 0.6;
    /* 调整深色模式下的压暗效果到合适程度 */
  }
  .post-detail .post-content p {
    font-size: 16px;
  }
  .next-post {
    margin: 24px 0;
    padding: 16px 0;
  }
  .archives-title,
  .tag-list-title,
  .current-tag {
    font-size: 28px;
    padding-bottom: 32px;
  }
  .tag {
    margin: 8px 8px 8px 0;
  }
  .tag:hover {
    transform: translateY(0px);
  }
}
.social-container .social-link {
  color: #dee2e6;
  font-size: 16px;
  margin: 4px 8px;
}
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.5);
}
.dark-mode ::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}
.dark-mode ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
}
.dark-mode ::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.1);
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #3498db;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.dark-mode input[type="range"] {
  background: rgba(255, 255, 255, 0.1);
}
.dark-mode input[type="range"]::-webkit-slider-thumb {
  background: #3498db;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}
/* Search Modal */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}
.dark-mode .search-overlay {
  background: rgba(0, 0, 0, 0.45);
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideDown {
  from {
    transform: translateY(-12px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.search-modal {
  width: 620px;
  max-width: calc(100vw - 32px);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  overflow: hidden;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  animation: slideDown 0.2s ease;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}
.dark-mode .search-modal {
  background: rgba(30, 32, 37, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}
.search-header {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.dark-mode .search-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.search-icon,
.search-close {
  color: #888;
  transition: color 0.2s ease;
}
.dark-mode .search-icon,
.dark-mode .search-close {
  color: #aaa;
}
.search-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0 16px;
  font-size: 16px;
  outline: none;
  color: #333;
}
.dark-mode .search-input {
  color: #eee;
}
.search-kbd {
  font-size: 12px;
  color: #888;
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 12px;
}
.dark-mode .search-kbd {
  background: rgba(255, 255, 255, 0.1);
}
.search-results {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0;
}
.search-results::-webkit-scrollbar {
  width: 6px;
}
.search-results::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 3px;
}
.dark-mode .search-results::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
}
.search-result-item {
  display: block;
  padding: 12px 20px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}
.search-result-item:hover,
.search-result-item.is-active {
  background-color: rgba(0, 0, 0, 0.04);
}
.dark-mode .search-result-item:hover,
.dark-mode .search-result-item.is-active {
  background-color: rgba(255, 255, 255, 0.06);
}
.search-result-item__title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
  color: #333;
}
.dark-mode .search-result-item__title {
  color: #eee;
}
.search-result-item__title mark,
.search-result-item__excerpt mark {
  background-color: rgba(66, 185, 131, 0.2);
  color: #42b983;
  padding: 0 3px;
  border-radius: 3px;
}
.search-result-item__excerpt {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 8px;
}
.dark-mode .search-result-item__excerpt {
  color: #aaa;
}
.search-result-item__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #888;
}
.search-result-item__tags {
  display: flex;
  gap: 6px;
}
.search-result-item__tag {
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
}
.dark-mode .search-result-item__tag {
  background: rgba(255, 255, 255, 0.1);
}
.search-empty {
  padding: 30px 20px;
  text-align: center;
  color: #888;
}
.search-btn {
  cursor: pointer;
}
@media (max-width: 640px) {
  .search-overlay {
    padding-top: 16px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .search-modal {
    width: 100%;
    max-width: 100%;
    max-height: calc(100vh - 32px);
    border-radius: 12px;
  }
  .search-header {
    padding: 12px 14px;
  }
  .search-input {
    font-size: 15px;
    padding: 0 8px;
  }
  .search-kbd {
    display: none;
  }
  .search-result-item {
    padding: 10px 14px;
  }
}
.feature-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
  max-width: 100%;
}
