/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

/* Header */
.site-header {
  border-top: 3px solid #424242;
  border-bottom: 1px solid #e8e8e8;
  min-height: 56px;
  position: relative;
  background-color: #fff;
}

.wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header .wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  padding-bottom: 15px;
}

.site-title {
  font-size: 26px;
  font-weight: 300;
  letter-spacing: -1px;
  margin-bottom: 0;
  color: #424242;
  text-decoration: none;
}

.site-title:hover {
  color: #111;
}

.site-nav {
  line-height: 54px;
}

.site-nav .page-link {
  color: #111;
  line-height: 1.5;
  margin-left: 20px;
  text-decoration: none;
}

.site-nav .page-link:hover {
  color: #424242;
}

.lang-switcher {
  display: inline-block;
  margin-left: 20px;
}

.lang-link {
  color: #111;
  text-decoration: none;
  font-size: 14px;
  padding: 4px 8px;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.lang-link:hover {
  background-color: #f5f5f5;
  border-color: #424242;
  color: #424242;
}

/* Main content */
.page-content {
  padding: 30px 0;
  flex: 1;
}

/* Home page */
.home {
  padding: 20px 0;
}

.hero {
  text-align: center;
  padding: 40px 0;
  margin-bottom: 40px;
}

.hero .site-title {
  font-size: 42px;
  margin-bottom: 10px;
}

.site-description {
  font-size: 18px;
  color: #666;
  margin-top: 10px;
}

.intro-section {
  text-align: center;
  padding: 50px 0;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.intro-text {
  font-size: 20px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 30px;
  font-style: italic;
}

.intro-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.posts-title {
  font-size: 28px;
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8e8e8;
}

.post-list {
  list-style: none;
}

.post-list > li {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e8e8e8;
}

.post-list > li:last-child {
  border-bottom: none;
}

.post-meta {
  font-size: 14px;
  color: #828282;
  margin-bottom: 8px;
}

.post-views {
  color: #828282;
  font-size: 14px;
}

.post-views #busuanzi_value_page_pv {
  font-weight: 500;
  color: #666;
}

.post-list .post-link {
  color: #111;
  text-decoration: none;
  font-size: 24px;
  font-weight: 400;
}

.post-list .post-link:hover {
  color: #424242;
}

.post-excerpt {
  color: #666;
  margin-top: 10px;
  line-height: 1.6;
}

.post-tags {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  background-color: #f5f5f5;
  border-radius: 12px;
  font-size: 12px;
  color: #666;
}

/* Post page */
.post {
  padding: 20px 0;
}

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

.post-title {
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #111;
}

.post-content {
  font-size: 16px;
  line-height: 1.8;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 400;
  line-height: 1.3;
}

.post-content h1 { font-size: 32px; }
.post-content h2 { font-size: 28px; }
.post-content h3 { font-size: 24px; }
.post-content h4 { font-size: 20px; }

.post-content p {
  margin-bottom: 15px;
}

.post-content ul,
.post-content ol {
  margin-bottom: 15px;
  padding-left: 30px;
}

.post-content li {
  margin-bottom: 8px;
}

.post-content code {
  padding: 2px 6px;
  background-color: #f5f5f5;
  border-radius: 3px;
  font-size: 14px;
  font-family: 'Courier New', monospace;
}

.post-content pre {
  background-color: #f5f5f5;
  border-radius: 5px;
  padding: 15px;
  overflow-x: auto;
  margin-bottom: 20px;
}

.post-content pre code {
  background-color: transparent;
  padding: 0;
}

.post-content blockquote {
  border-left: 4px solid #ddd;
  padding-left: 20px;
  margin-left: 0;
  color: #666;
  font-style: italic;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  margin: 20px 0;
}

.post-content a {
  color: #2563eb;
  text-decoration: none;
}

.post-content a:hover {
  text-decoration: underline;
}

.post-navigation {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid #e8e8e8;
  display: flex;
  justify-content: space-between;
}

.prev-post,
.next-post {
  color: #2563eb;
  text-decoration: none;
  max-width: 45%;
}

.prev-post:hover,
.next-post:hover {
  text-decoration: underline;
}

/* About page */
.about {
  padding: 20px 0;
}

.about h1 {
  font-size: 36px;
  margin-bottom: 20px;
}

.about p {
  margin-bottom: 15px;
  line-height: 1.8;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

/* Footer */
.site-footer {
  border-top: 1px solid #e8e8e8;
  padding: 30px 0;
  margin-top: 50px;
}

.footer-col-wrapper {
  font-size: 15px;
  color: #828282;
  margin-bottom: 20px;
}

.footer-col {
  margin-bottom: 15px;
  text-align: center;
}

.footer-text {
  margin-bottom: 15px;
  color: #666;
}

.footer-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-button {
  display: inline-block;
  padding: 8px 20px;
  background-color: #f5f5f5;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid #e8e8e8;
  transition: all 0.3s ease;
  font-size: 14px;
}

.footer-button:hover {
  background-color: #333;
  color: #fff;
  border-color: #333;
}

.social-media-list {
  list-style: none;
}

.social-media-list li {
  margin-bottom: 5px;
}

.social-media-list a {
  color: #828282;
  text-decoration: none;
}

.social-media-list a:hover {
  color: #111;
}

.copyright {
  text-align: center;
  color: #828282;
  font-size: 14px;
}

.author-info {
  text-align: center;
  color: #666;
  font-size: 13px;
  line-height: 1.6;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e8e8e8;
}

/* Responsive */
@media screen and (max-width: 600px) {
  .site-header .wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    margin-top: 10px;
  }

  .site-nav .page-link {
    margin-left: 0;
    margin-right: 15px;
  }

  .hero .site-title {
    font-size: 32px;
  }

  .post-title {
    font-size: 28px;
  }

  .post-navigation {
    flex-direction: column;
    gap: 15px;
  }

  .prev-post,
  .next-post {
    max-width: 100%;
  }
}

