@import "https://cdnjs.cloudflare.com/ajax/libs/lxgw-wenkai-screen-webfont/1.7.0/lxgwwenkaiscreenr.css";

:root {
  --bg-color: #ffffff;
  --text-color: #000000;
  --link-color: #000000;
  --header-title-color: #000000;
  --header-subtitle-color: #000000;
  --blockquote-bg: #f0f0f0;
  --blockquote-text: #57606a;
  --blockquote-border: darkcyan;
  --code-bg: #f6f8fa;
  --code-text: #24292e;
  --border-color: #000;
  --post-link-color: #0969da;
  --line-color: #482936;
}

[data-theme="dark"] {
  --bg-color: #1a1a1a;
  --text-color: #e0e0e0;
  --link-color: #e0e0e0;
  --header-title-color: #e0e0e0;
  --header-subtitle-color: #bbbbbb;
  --blockquote-bg: #333333;
  --blockquote-text: #cccccc;
  --blockquote-border: #4a8a8a;
  --code-bg: #2d2d2d;
  --code-text: #e0e0e0;
  --border-color: #e0e0e0;
  --post-link-color: #66b0ff;
  --line-color: #8a8a8a;
}

body {
  font-family: "LXGW WenKai Screen R", "Bree Serif", sans-serif;
  -webkit-font-smoothing: antialiased;
  margin: 0 20px;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

article.site-article {
  max-width: 40%;
  min-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

a {
  color: var(--link-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.header-title {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 32px;
}

.header-title a {
  color: var(--header-title-color);
}

.header-subtitle {
  color: var(--header-subtitle-color);
}

.header-items {
  margin: 10px 0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.header-line {
  width: 100%;
  border-width: 2px;
  border-color: var(--line-color);
  border-style: solid none none none;
}

.hero-image-container {
  text-align: center;
  margin: 15px 0;
  overflow: hidden;
  height: 203px;
  border-radius: 8px;
}

.hero-image {
  width: 100%;
  height: 203px;
  object-fit: cover;
  object-position: center center;
  border-radius: inherit;
  border: 1px solid var(--border-color);
  display: block;
}

#posts-list {
  min-height: 400px;
}

.site-date-catalog {
  font-size: 2rem;
  color: rgb(86, 132, 21);
}

.posts-line {
  font-size: 1.2rem;
  margin: 12px 0;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
}

.posts-date time {
  font-weight: 800;
  font-style: italic;
}

.posts-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.posts-title a {
  color: var(--post-link-color);
}

.home-posts-list .posts-title a {
  color: var(--link-color);
}

.posts-category {
  font-size: 0.8rem;
  border: var(--border-color) 2px solid;
  border-radius: 5px;
  padding: 2px 8px;
}

.post-header {
  margin-bottom: 20px;
}

.post-title {
  font-size: 2rem;
  margin-top: 0;
}

.about-page .header-items {
  justify-content: center;
  margin-top: 20px;
}

.about-page .post-main {
  margin-top: 24px;
}

.about-header {
  margin-top: 28px;
  margin-bottom: 28px;
  text-align: center;
}

.about-header .post-title {
  font-size: 2.2rem;
  letter-spacing: 0.03em;
}

.post-meta {
  display: flex;
  gap: 8px;
  font-weight: 700;
}

.post-tag {
  border: var(--border-color) 2px solid;
  border-radius: 5px;
  padding: 0 6px;
}

.about-avatar {
  width: 210px;
  height: 210px;
  margin: 0 auto 40px;
  border-radius: 50%;
  overflow: hidden;
}

.about-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  display: block;
}

.markdown-body p {
  font-size: 20px;
  line-height: 1.85;
  text-align: justify;
}

.markdown-body blockquote {
  margin: 0;
  padding: 0.05em 1em;
  color: var(--blockquote-text);
  border-left: 0.3em solid var(--blockquote-border);
  background-color: var(--blockquote-bg);
  border-radius: 10px;
}

.markdown-body code {
  padding: 0.2em 0.4em;
  font-size: 0.9em;
  background-color: var(--code-bg);
  color: var(--code-text);
  border-radius: 8px;
}

.markdown-body pre {
  font-size: 17px;
  padding: 8px;
  overflow: auto;
  background-color: var(--code-bg);
  border-radius: 10px;
  color: var(--code-text);
}

.comments-section {
  margin-top: 40px;
  border-top: 2px solid var(--line-color);
  padding-top: 12px;
}

.comments-title {
  margin: 0 0 8px;
}

.comments-hint {
  opacity: 0.8;
}

.site-footer {
  margin-top: 50px;
  margin-bottom: 30px;
}

@media screen and (max-width: 900px) {
  article.site-article {
    max-width: 100%;
    min-width: 300px;
  }

  .header-title,
  .header-subtitle,
  .header-items {
    text-align: center;
    justify-content: center;
  }

  .posts-line {
    font-size: 16px;
    grid-template-columns: 72px 1fr;
  }

  .posts-category {
    display: none;
  }

  .about-avatar {
    width: 170px;
    height: 170px;
  }

  .about-header {
    margin-top: 16px;
    margin-bottom: 20px;
  }

  .markdown-body p {
    font-size: 18px;
  }
}
