#header {
  background: #fff;
  box-shadow: none;
  border-bottom: 1px solid #e1e1e1;
  position: sticky;
  top: 0;
  z-index: 100;
}
#header .header-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#header .logo-wrap {
  text-align: left;
}
#header .logo-wrap .logo {
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  color: #2c2c2c;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.05em;
  line-height: 1.3;
}
#header .logo-wrap .logo .logo-icon {
  width: 1.2em;
  height: 1.2em;
  flex-shrink: 0;
}
#header .logo-wrap .subtitle {
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 15px;
  font-weight: 400;
  color: #999;
  margin-top: 8px;
  display: block;
  letter-spacing: 0.02em;
  font-style: italic;
}
#header #main-nav {
  display: flex;
  gap: 30px;
}
#header #main-nav .main-nav-link {
  color: #3d3d3d;
  font-size: 15px;
  transition: all 0.3s ease;
}
#header #main-nav .main-nav-link:hover {
  color: #8b7d6b;
}
#header #main-nav #main-nav-toggle {
  display: none;
  cursor: pointer;
  font-size: 20px;
}
#header #main-nav .theme-toggle {
  background: none;
  border: 2px solid #e1e1e1;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 18px;
}
#header #main-nav .theme-toggle:hover {
  background: rgba(168,152,133,0.1);
  border-color: #a89885;
}
#header #main-nav .theme-toggle .theme-icon {
  font-size: 20px;
  transition: all 0.3s ease;
}
@media (max-width: 767px) {
  #header .header-inner {
    padding: 15px 20px;
  }
  #header .logo-wrap .logo {
    font-size: 22px;
  }
  #header .logo-wrap .logo .logo-icon {
    width: 1.2em;
    height: 1.2em;
  }
  #header .logo-wrap .subtitle {
    font-size: 14px;
  }
  #header #main-nav {
    display: none;
  }
  #header #main-nav.show {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }
  #header #main-nav-toggle {
    display: block;
  }
}
.post {
  margin: 40px 0;
  padding-bottom: 40px;
  border-bottom: 1px solid #e1e1e1;
}
.post:last-child {
  border-bottom: none;
}
.post .post-title {
  font-family: "Noto Serif SC", Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  font-size: 28px;
  font-weight: 600;
  color: #2c2c2c;
  margin: 0 0 10px;
  line-height: 1.4;
}
.post .post-title a {
  color: #2c2c2c;
  transition: all 0.3s ease;
}
.post .post-title a:hover {
  color: #8b7d6b;
}
.post .post-meta {
  font-size: 14px;
  color: #999;
  margin-bottom: 20px;
}
.post .post-meta .post-time,
.post .post-meta .post-categories,
.post .post-meta .post-tags {
  margin-right: 20px;
}
.post .post-meta .post-time a,
.post .post-meta .post-categories a,
.post .post-meta .post-tags a {
  color: #8b7d6b;
}
.post .post-excerpt {
  font-size: 18px;
  line-height: 1.8;
  color: #3d3d3d;
  margin-bottom: 15px;
}
.post .post-excerpt p {
  margin: 0;
}
.post .post-more {
  display: inline-block;
  margin-top: 10px;
  color: #8b7d6b;
  font-size: 15px;
  transition: all 0.3s ease;
}
.post .post-more:hover {
  color: #6b5d4b;
}
.post .post-more:after {
  content: " →";
}
.article .article-header {
  margin-bottom: 40px;
  text-align: center;
}
.article .article-header .article-title {
  font-family: "Noto Serif SC", Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  font-size: 2.5em;
  font-weight: 600;
  color: #2c2c2c;
  margin: 0 0 20px;
  line-height: 1.3;
}
.article .article-header .article-meta {
  font-size: 14px;
  color: #999;
}
.article .article-header .article-meta .article-time,
.article .article-header .article-meta .article-categories,
.article .article-header .article-meta .article-tags {
  margin: 0 10px;
}
.article .article-header .article-meta .article-time a,
.article .article-header .article-meta .article-categories a,
.article .article-header .article-meta .article-tags a {
  color: #8b7d6b;
}
.article .article-content {
  font-size: 18px;
  line-height: 1.8;
  color: #3d3d3d;
}
.article .article-content p {
  margin: 1.5em 0;
}
.article .article-content h2,
.article .article-content h3,
.article .article-content h4,
.article .article-content h5,
.article .article-content h6 {
  margin-top: 2em;
}
.article .article-content img {
  margin: 2em auto;
}
.article .article-content blockquote {
  margin: 2em 0;
}
.article .article-footer {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid #e1e1e1;
}
.article .article-footer .article-tags {
  font-size: 14px;
  color: #999;
}
.article .article-footer .article-tags .tag {
  display: inline-block;
  margin-right: 10px;
  padding: 4px 12px;
  background: rgba(168,152,133,0.1);
  border-radius: 15px;
  color: #8b7d6b;
  transition: all 0.3s ease;
}
.article .article-footer .article-tags .tag:hover {
  background: rgba(168,152,133,0.2);
}
.archive-page .archive-title {
  font-family: "Noto Serif SC", Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  font-size: 2em;
  font-weight: 600;
  color: #2c2c2c;
  margin: 0 0 40px;
  text-align: center;
}
.archive-page .archive-year {
  margin: 40px 0 20px;
}
.archive-page .archive-year .year {
  font-family: "Noto Serif SC", Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  font-size: 1.5em;
  font-weight: 600;
  color: #8b7d6b;
  display: inline-block;
  padding-bottom: 10px;
  border-bottom: 2px solid #a89885;
}
.archive-page .archive-post {
  margin: 20px 0;
  padding-left: 120px;
  position: relative;
}
.archive-page .archive-post .post-date {
  position: absolute;
  left: 0;
  top: 0;
  width: 100px;
  font-size: 14px;
  color: #999;
  text-align: right;
}
.archive-page .archive-post .post-title {
  font-family: "Noto Serif SC", Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  font-size: 1.2em;
  font-weight: 500;
  margin: 0;
}
.archive-page .archive-post .post-title a {
  color: #2c2c2c;
  transition: all 0.3s ease;
}
.archive-page .archive-post .post-title a:hover {
  color: #8b7d6b;
}
.archive-page .archive-post .post-tags {
  font-size: 13px;
  color: #999;
  margin-top: 5px;
}
.archive-page .archive-post .post-tags a {
  color: #8b7d6b;
  margin-right: 10px;
}
.category-page .page-title,
.tag-page .page-title {
  font-family: "Noto Serif SC", Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  font-size: 2em;
  font-weight: 600;
  color: #2c2c2c;
  margin: 0 0 40px;
  text-align: center;
}
.category-page .category-list,
.tag-page .category-list,
.category-page .tag-list,
.tag-page .tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}
.category-page .category-item,
.tag-page .category-item,
.category-page .tag-item,
.tag-page .tag-item {
  padding: 10px 20px;
  background: rgba(168,152,133,0.1);
  border-radius: 20px;
  transition: all 0.3s ease;
}
.category-page .category-item:hover,
.tag-page .category-item:hover,
.category-page .tag-item:hover,
.tag-page .tag-item:hover {
  background: rgba(168,152,133,0.2);
}
.category-page .category-item a,
.tag-page .category-item a,
.category-page .tag-item a,
.tag-page .tag-item a {
  color: #8b7d6b;
  text-decoration: none;
}
#footer {
  background: transparent;
  border-top: 1px solid #e1e1e1;
  margin-top: 60px;
  padding: 40px 0;
}
#footer .outer {
  text-align: center;
}
#footer #footer-info {
  font-size: 14px;
  color: #999;
}
#footer #footer-info .footer-left {
  margin-bottom: 10px;
}
#footer #footer-info .footer-right a {
  color: #8b7d6b;
  margin: 0 10px;
}
.pagination {
  margin: 60px 0 40px;
  text-align: center;
}
.pagination .page-number,
.pagination .prev,
.pagination .next,
.pagination .space {
  display: inline-block;
  margin: 0 5px;
  padding: 8px 16px;
  background: rgba(168,152,133,0.05);
  border-radius: 4px;
  color: #3d3d3d;
  transition: all 0.3s ease;
}
.pagination .page-number:hover,
.pagination .prev:hover,
.pagination .next:hover,
.pagination .space:hover {
  background: rgba(168,152,133,0.15);
  color: #8b7d6b;
}
.pagination .current {
  background: #8b7d6b;
  color: #fff;
}
.pagination .current:hover {
  background: #6b5d4b;
  color: #fff;
}
.category-page h1.page-title,
.tag-page h1.page-title {
  font-family: "Noto Serif SC", Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  font-size: 2.5em;
  font-weight: 600;
  color: #2c2c2c;
  text-align: center;
  margin-bottom: 40px;
}
.category-list,
.tag-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.category-item,
.tag-item {
  padding: 15px 20px;
  background: rgba(168,152,133,0.05);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.category-item:hover,
.tag-item:hover {
  background: rgba(168,152,133,0.1);
  transform: translateX(5px);
}
.category-item a,
.tag-item a {
  color: #3d3d3d;
  font-size: 18px;
  text-decoration: none;
  font-family: "Noto Serif SC", Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  font-weight: 500;
}
html[data-theme="dark"] .category-page h1.page-title,
html[data-theme="dark"] .tag-page h1.page-title {
  color: #f0f0f0 !important;
}
html[data-theme="dark"] .category-item,
html[data-theme="dark"] .tag-item {
  background: rgba(184,169,154,0.1);
}
html[data-theme="dark"] .category-item:hover,
html[data-theme="dark"] .tag-item:hover {
  background: rgba(184,169,154,0.15);
}
html[data-theme="dark"] .category-item a,
html[data-theme="dark"] .tag-item a {
  color: #e0e0e0 !important;
}
body {
  background: #f9f7f1;
  font-family: "Noto Serif SC", Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  font-size: 16px;
  color: #3d3d3d;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.outer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
a {
  color: #8b7d6b;
  text-decoration: none;
  transition: all 0.3s ease;
}
a:hover {
  color: #6b5d4b;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Noto Serif SC", Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  font-weight: 600;
  color: #2c2c2c;
  margin-top: 1.5em;
  margin-bottom: 0.8em;
  line-height: 1.4;
}
h1 {
  font-size: 2em;
}
h2 {
  font-size: 1.75em;
  border-bottom: 1px solid #e1e1e1;
  padding-bottom: 0.3em;
}
h3 {
  font-size: 1.5em;
}
h4 {
  font-size: 1.25em;
}
h5,
h6 {
  font-size: 1em;
}
p {
  margin: 1em 0;
  text-align: justify;
}
ul,
ol {
  margin: 1em 0;
  padding-left: 2em;
}
li {
  margin: 0.5em 0;
}
blockquote {
  margin: 1.5em 0;
  padding: 0.5em 1.5em;
  border-left: 4px solid #a89885;
  background: rgba(168,152,133,0.05);
  color: #666;
  font-style: italic;
}
blockquote footer {
  margin-top: 0.5em;
  font-size: 0.9em;
  color: #999;
}
blockquote footer cite {
  font-style: normal;
}
blockquote footer cite:before {
  content: "—";
  padding: 0 0.5em;
}
code {
  font-family: "Source Code Pro", Consolas, Monaco, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: #f6f6f4;
  padding: 0.2em 0.4em;
  border-radius: 3px;
}
pre {
  font-family: "Source Code Pro", Consolas, Monaco, Menlo, Consolas, monospace;
  font-size: 0.9em;
  line-height: 1.6;
  margin: 1.5em 0;
  overflow-x: auto;
  max-width: 100%;
  background: #f6f6f4;
  padding: 1em;
  border-radius: 2px;
  word-wrap: normal;
  white-space: pre;
}
pre code {
  background: none;
  padding: 0;
}
table {
  width: 100%;
  margin: 1.5em 0;
  border-collapse: collapse;
  font-size: 0.95em;
}
table th,
table td {
  padding: 0.8em 1em;
  border: 1px solid #e1e1e1;
  text-align: left;
}
table th {
  background: rgba(168,152,133,0.1);
  font-weight: 600;
}
table tr:nth-child(even) {
  background: rgba(0,0,0,0.02);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5em auto;
  border-radius: 2px;
  box-shadow: none;
}
hr {
  border: none;
  border-top: 1px solid #e1e1e1;
  margin: 2em 0;
}
#main {
  max-width: 1100px;
  margin: 40px auto;
  padding: 40px;
  background: #fff;
  box-shadow: none;
  border-radius: 2px;
}
@media (max-width: 767px) {
  #main {
    padding: 20px;
    margin: 20px;
  }
}
html[data-theme="dark"] body {
  background: #2c2c2c;
  color: #e0e0e0 !important;
}
html[data-theme="dark"] p,
html[data-theme="dark"] li,
html[data-theme="dark"] td,
html[data-theme="dark"] th,
html[data-theme="dark"] span {
  color: #e0e0e0 !important;
}
html[data-theme="dark"] .article-content,
html[data-theme="dark"] .article-content p,
html[data-theme="dark"] .article-entry,
html[data-theme="dark"] .article-entry p {
  color: #e0e0e0 !important;
}
html[data-theme="dark"] .article-entry li,
html[data-theme="dark"] .article-content li {
  color: #e0e0e0 !important;
}
html[data-theme="dark"] .post-excerpt,
html[data-theme="dark"] .post-excerpt p {
  color: #e0e0e0 !important;
}
html[data-theme="dark"] .post-meta,
html[data-theme="dark"] .article-meta {
  color: #aaa !important;
}
html[data-theme="dark"] #main {
  background: #363636;
  box-shadow: none;
}
html[data-theme="dark"] #header {
  background: #363636;
  border-bottom: 1px solid #444 !important;
}
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6 {
  color: #f0f0f0 !important;
}
html[data-theme="dark"] h2 {
  border-bottom: 1px solid #555;
}
html[data-theme="dark"] a {
  color: #b8a99a;
}
html[data-theme="dark"] a:hover {
  color: #d4c4b4;
}
html[data-theme="dark"] .logo {
  color: #f0f0f0 !important;
}
html[data-theme="dark"] .subtitle {
  color: #bbb !important;
  font-style: italic !important;
}
html[data-theme="dark"] #main-nav a,
html[data-theme="dark"] .main-nav-link {
  color: #e0e0e0 !important;
}
html[data-theme="dark"] #main-nav a:hover,
html[data-theme="dark"] .main-nav-link:hover {
  color: #fff !important;
}
html[data-theme="dark"] .nav-icon {
  color: #e0e0e0 !important;
}
html[data-theme="dark"] .post-title,
html[data-theme="dark"] .article-title {
  color: #fff !important;
}
html[data-theme="dark"] .post-title a,
html[data-theme="dark"] .article-title a {
  color: #fff !important;
}
html[data-theme="dark"] .post-title a:hover,
html[data-theme="dark"] .article-title a:hover {
  color: #d4c4b4 !important;
}
html[data-theme="dark"] .post-excerpt,
html[data-theme="dark"] .post-excerpt p,
html[data-theme="dark"] .article-entry,
html[data-theme="dark"] .article-entry p {
  color: #ccc !important;
}
html[data-theme="dark"] .article-meta,
html[data-theme="dark"] .post-meta,
html[data-theme="dark"] .article-tag-list-link {
  color: #999 !important;
}
html[data-theme="dark"] blockquote {
  background: rgba(184,169,154,0.1);
  border-left: 4px solid #b8a99a;
  color: #d0d0d0 !important;
}
html[data-theme="dark"] code {
  background: #404040;
  color: #e8e8e8 !important;
}
html[data-theme="dark"] pre {
  background: #404040;
}
html[data-theme="dark"] pre code {
  background: none;
}
html[data-theme="dark"] table th,
html[data-theme="dark"] table td {
  border: 1px solid #555;
  color: #e0e0e0 !important;
}
html[data-theme="dark"] table th {
  background: rgba(184,169,154,0.15);
  color: #f0f0f0 !important;
}
html[data-theme="dark"] table tr:nth-child(even) {
  background: rgba(255,255,255,0.02);
}
html[data-theme="dark"] hr {
  border-top: 1px solid #555;
}
html[data-theme="dark"] .theme-toggle {
  border-color: #555 !important;
}
html[data-theme="dark"] .theme-toggle:hover {
  background: rgba(184,169,154,0.15) !important;
  border-color: #b8a99a !important;
}
html[data-theme="dark"] #footer {
  background: transparent !important;
  border-top: 1px solid #444 !important;
}
html[data-theme="dark"] #footer #footer-info {
  color: #aaa !important;
}
html[data-theme="dark"] #footer #footer-info a {
  color: #b8a99a !important;
}
html[data-theme="dark"] #footer #footer-info a:hover {
  color: #d4c4b4 !important;
}
.article-entry .highlight {
  display: block !important;
  overflow-x: auto !important; /* Force scrollbar */
  width: 100% !important;
  background: #f6f6f4;
}
.article-entry .highlight table {
  table-layout: fixed; /* Prevent table from forcing width */
  width: 100%;
  display: block; /* Make table scrollable if needed */
}
/* Hide the gutter (line numbers) on mobile if it causes issues */
@media (max-width: 767px) {
  .article-entry .highlight .gutter {
    display: none;
  }
}
