body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: #4a4b4f;
    background-color: #eceae4;
}

.container {
    max-width: 1000px;
    /* Adjusted for approximately 80 characters */
    margin: 0 auto;
    padding: 60px 20px;
}

h1 {
    font-size: 28px;
    margin: 0 0 10px 0;
    color: #4a4b4f;
}
h2 {
    font-size: 26px;
}
h3 {
    font-size: 23px;
}
h4 {
    font-size: 20px;

}
h1,h2,h3,h4 {
    font-family: 'Source Serif Pro', serif;
    font-weight: 600;

}

p {
    margin: 0 0 10px 0;
    line-height: 1.7;
}

a {
    color: #8f6a60;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

a:hover {
    color: #6b5046;
}

blockquote {
    border-left: 4px solid #7a7d4f;
    background-color: #e2e2d5;
    padding: 15px 15px 5px 15px;
    margin: 20px 0;
    border-radius: 5px;
}

.section {
    margin-bottom: 40px;
}

.works-title {
    font-weight: 600;
    margin-bottom: 15px;
    color: #4a4b4f;
}

.work-item {
    margin-bottom: 12px;
    line-height: 1.6;
}

.work-link {
    display: block;
    text-decoration: none;
    color: #4a4b4f;
}

.work-link:hover {
    opacity: 0.8;
}

.work-title {
    font-weight: 500;
}

.publication {
    color: #8f6a60;
}

.year {
    color: #9d9d9d;
}

.description {
    color: #9d9d9d;
    font-style: italic;
    margin-top: 4px;
}

.contact {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e5e5e5;
}

.footer-image {
    margin-top: 30px;
    text-align: left;
}

.footer-image img {
    width: 60px;
    height: auto;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .container {
        padding: 40px 20px;
    }


    body {
        font-size: 17px;
    }
}

/* Code block styling with horizontal scrolling */
pre {
    background-color: #e2e2d5 !important;
    padding: 16px;
    padding-top: 28px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 20px 0;
    max-height: 400px;
    scrollbar-width: thin;
}

code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 14px;
    line-height: 1.5;
}

pre code {
    display: block;
    white-space: pre !important;
    word-wrap: normal !important;
    word-break: normal;
    overflow-x: auto;
    scrollbar-width: thin;
}

/* Inline code styling */
p code,
li code,
h1 code,
h2 code,
h3 code {
    background-color: #ddddcf;
    padding: 3px 5px;
    border-radius: 3px;
    font-size: 0.9em;
    white-space: pre-wrap;
    word-wrap: break-word;
}

html {
    scrollbar-color: #7a7d4f #cbc7be;
    /* thumb颜色 + track颜色 */
}


/* Force MathJax block equations to be scrollable and not overflow container */
.post-content mjx-container[display="true"] {
    display: block;
    text-align: center;
    margin: 1em 0;
    overflow-x: auto !important;
    overflow-y: visible !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
    padding-top: 1em;
    padding-bottom: 1em;
    min-height: unset;
}

/* Prevent inner math from breaking out of container */
.post-content mjx-container[display="true"] mjx-math {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    white-space: pre;
    box-sizing: border-box;
    min-height: unset;
}

/* Remove vertical scroll from .post-content as well */
.post-content {
    overflow-x: auto;
    overflow-y: visible;
}

/* Center images in posts */
.post-content img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-top: 1.5em;
    margin-bottom: 1.5em;
}

/* Image captions */
.post-content img+em {
    display: block;
    text-align: center;
    font-size: 0.9em;
    color: #777;
    margin-top: -1em;
    margin-bottom: 1.5em;
}

/* alt */
.image-caption {
    color: #84726b;
}

/* single.html */

  .post-container {
    max-width: 750px; /* Adjusted for approximately 80 characters */
    margin: 0 auto;
    padding: 0 20px;
  }
  
  .post-header {
    margin-bottom: 40px;
  }
  
  .post-title {
    font-family: 'Source Serif Pro', serif;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #4a4b4f;
  }
  
  .post-date {
    color: #9d9d9d;
    font-style: italic;
    margin-bottom: 20px;
  }
  
  .post-description {
    font-style: italic;
    color: #666;
    margin-bottom: 30px;
    font-size: 17px;
  }
  
  .post-content {
    line-height: 1.8;
  }
  


  .post-content p {
    margin-bottom: 20px;
  }
  
  .post-content img {
    display: block;
    height: auto;
    margin: 2rem auto;
    border-radius: 4px;
  }
  
  /* Style for image captions (typically placed in an <em> tag after an image) */
  .post-content img + em {
    display: block;
    text-align: center;
    font-size: 0.9em;
    color: #777;
    margin-top: -0.5rem;
    margin-bottom: 2rem;
  }
  
  .post-content em {
    color: #666;
  }
  
  .back-link {
    display: inline-block;
    margin-top: 50px;
    margin-bottom: 30px;
    color: #8f6a60;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
  }
  
  .back-link:hover {
    color: #6b5046;
  }
  .single-tag{
    font-family: 'Source Serif Pro', serif;
    font-weight: 500;
    font-size:18px;
    margin-right:5px;
    border-radius: 6px;
    color:hsl(106, 15%, 45%)

  }

    .single-tag:hover{
    color:hsl(106, 20%, 27%);
  }

  /* 隐藏头像 */
.wl-user {
  display: none ;
}
