* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

a {
  color: #4a90d9;
  text-decoration: none;
}
a:hover {
  color: #2d5fa6;
  text-decoration: underline;
}

.container, #header .header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
}

#header {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}
#header .header-inner {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
#header .logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  position: absolute;
  left: 0;
}
#header .logo-container .logo {
  height: 40px;
  width: auto;
}
#header .logo-container .site-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
}
#header #nav-main .nav-list {
  display: flex;
  list-style: none;
  gap: 20px;
}
#header #nav-main .nav-list .nav-item .nav-link {
  color: #333;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background-color 0.3s;
}
#header #nav-main .nav-list .nav-item .nav-link:hover {
  background-color: #f5f5f5;
  text-decoration: none;
}
#header .menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  position: absolute;
  right: 20px;
}
#header .menu-toggle .hamburger-line {
  width: 24px;
  height: 2px;
  background-color: #333;
}

#main {
  padding: 30px 0;
}
#main .container .content-wrapper, #main #header .header-inner .content-wrapper, #header #main .header-inner .content-wrapper {
  display: flex;
  gap: 30px;
  width: 100%;
}
#main .container .content-wrapper .main-content, #main #header .header-inner .content-wrapper .main-content, #header #main .header-inner .content-wrapper .main-content {
  flex: 1;
  min-width: 0;
}
#main .container .content-wrapper #sidebar, #main #header .header-inner .content-wrapper #sidebar, #header #main .header-inner .content-wrapper #sidebar {
  width: 300px;
  flex-shrink: 0;
}

.post-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.post-card .post-header {
  margin-bottom: 15px;
}
.post-card .post-header .post-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.post-card .post-header .post-title a {
  color: #333;
}
.post-card .post-header .post-title a:hover {
  color: #4a90d9;
}
.post-card .post-header .post-meta {
  font-size: 0.9rem;
  color: #666;
}
.post-card .post-header .post-meta span {
  margin-right: 15px;
}
.post-card .post-header .post-meta span i {
  margin-right: 5px;
}
.post-card .post-excerpt {
  color: #666;
  margin-bottom: 15px;
}
.post-card .post-meta-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #666;
}
.post-card .post-meta-bottom .post-meta-left {
  display: flex;
  gap: 15px;
}
.post-card .post-meta-bottom .post-meta-left span i {
  margin-right: 5px;
}
.post-card .post-meta-bottom .post-meta-left .post-category a {
  color: #666;
}
.post-card .post-meta-bottom .post-meta-left .post-category a:hover {
  color: #4a90d9;
}
.post-card .post-meta-bottom .post-meta-right .read-more {
  display: inline-block;
  padding: 4px 12px;
  background-color: #4a90d9;
  color: white;
  border-radius: 4px;
  font-size: 0.85rem;
  transition: background-color 0.3s;
}
.post-card .post-meta-bottom .post-meta-right .read-more:hover {
  background-color: #2d5fa6;
  text-decoration: none;
  color: white;
}

.widget {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.widget .widget-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #4a90d9;
}
.widget .widget-title i {
  margin-right: 8px;
  color: #4a90d9;
}

.search-widget {
  margin-bottom: 15px;
  position: relative;
}
.search-widget .search-input-wrapper {
  position: relative;
}
.search-widget .search-input {
  width: 100%;
  padding: 6px 12px;
  border: 1px solid #eee;
  border-radius: 15px;
  font-size: 0.8rem;
  outline: none;
  transition: border-color 0.3s;
  box-sizing: border-box;
}
.search-widget .search-input:focus {
  border-color: #4a90d9;
}
.search-widget .search-result {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 5px;
  max-height: 250px;
  overflow-y: auto;
  background-color: white;
  border: 1px solid #eee;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
}
.search-widget .search-result.active {
  display: block;
}
.search-widget .search-result .search-empty {
  color: #666;
  text-align: center;
  padding: 10px;
  font-size: 0.8rem;
}
.search-widget .search-result .search-item {
  padding: 8px 12px;
  border-bottom: 1px solid #eee;
}
.search-widget .search-result .search-item:last-child {
  border-bottom: none;
}
.search-widget .search-result .search-item a {
  font-weight: 500;
  font-size: 0.85rem;
  display: block;
  color: #333;
}
.search-widget .search-result .search-item a:hover {
  color: #4a90d9;
  text-decoration: none;
}
.search-widget .search-result .search-item .search-excerpt {
  font-size: 0.75rem;
  color: #666;
  margin-top: 3px;
}

.author-widget .author-info {
  text-align: center;
}
.author-widget .author-info .author-avatar {
  margin-bottom: 15px;
}
.author-widget .author-info .author-avatar img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}
.author-widget .author-info .author-avatar .avatar-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: #4a90d9;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
}
.author-widget .author-info .author-name {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 10px;
}
.author-widget .author-info .author-desc {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 15px;
}
.author-widget .author-info .author-contacts {
  display: flex;
  justify-content: center;
  gap: 15px;
}
.author-widget .author-info .author-contacts .contact-link {
  color: #666;
}
.author-widget .author-info .author-contacts .contact-link:hover {
  color: #4a90d9;
}

.category-widget ul, .category-widget .category-list, .category-widget .recent-list, .category-widget .links-list, .tag-widget ul, .tag-widget .category-list, .tag-widget .recent-list, .tag-widget .links-list, .recent-posts-widget ul, .recent-posts-widget .category-list, .recent-posts-widget .recent-list, .recent-posts-widget .links-list, .links-widget ul, .links-widget .category-list, .links-widget .recent-list, .links-widget .links-list {
  list-style: none;
}
.category-widget ul li, .category-widget ul .category-item, .category-widget ul .recent-item, .category-widget ul .link-item, .category-widget .category-list li, .category-widget .category-list .category-item, .category-widget .category-list .recent-item, .category-widget .category-list .link-item, .category-widget .recent-list li, .category-widget .recent-list .category-item, .category-widget .recent-list .recent-item, .category-widget .recent-list .link-item, .category-widget .links-list li, .category-widget .links-list .category-item, .category-widget .links-list .recent-item, .category-widget .links-list .link-item, .tag-widget ul li, .tag-widget ul .category-item, .tag-widget ul .recent-item, .tag-widget ul .link-item, .tag-widget .category-list li, .tag-widget .category-list .category-item, .tag-widget .category-list .recent-item, .tag-widget .category-list .link-item, .tag-widget .recent-list li, .tag-widget .recent-list .category-item, .tag-widget .recent-list .recent-item, .tag-widget .recent-list .link-item, .tag-widget .links-list li, .tag-widget .links-list .category-item, .tag-widget .links-list .recent-item, .tag-widget .links-list .link-item, .recent-posts-widget ul li, .recent-posts-widget ul .category-item, .recent-posts-widget ul .recent-item, .recent-posts-widget ul .link-item, .recent-posts-widget .category-list li, .recent-posts-widget .category-list .category-item, .recent-posts-widget .category-list .recent-item, .recent-posts-widget .category-list .link-item, .recent-posts-widget .recent-list li, .recent-posts-widget .recent-list .category-item, .recent-posts-widget .recent-list .recent-item, .recent-posts-widget .recent-list .link-item, .recent-posts-widget .links-list li, .recent-posts-widget .links-list .category-item, .recent-posts-widget .links-list .recent-item, .recent-posts-widget .links-list .link-item, .links-widget ul li, .links-widget ul .category-item, .links-widget ul .recent-item, .links-widget ul .link-item, .links-widget .category-list li, .links-widget .category-list .category-item, .links-widget .category-list .recent-item, .links-widget .category-list .link-item, .links-widget .recent-list li, .links-widget .recent-list .category-item, .links-widget .recent-list .recent-item, .links-widget .recent-list .link-item, .links-widget .links-list li, .links-widget .links-list .category-item, .links-widget .links-list .recent-item, .links-widget .links-list .link-item {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}
.category-widget ul li:last-child, .category-widget ul .category-item:last-child, .category-widget ul .recent-item:last-child, .category-widget ul .link-item:last-child, .category-widget .category-list li:last-child, .category-widget .category-list .category-item:last-child, .category-widget .category-list .recent-item:last-child, .category-widget .category-list .link-item:last-child, .category-widget .recent-list li:last-child, .category-widget .recent-list .category-item:last-child, .category-widget .recent-list .recent-item:last-child, .category-widget .recent-list .link-item:last-child, .category-widget .links-list li:last-child, .category-widget .links-list .category-item:last-child, .category-widget .links-list .recent-item:last-child, .category-widget .links-list .link-item:last-child, .tag-widget ul li:last-child, .tag-widget ul .category-item:last-child, .tag-widget ul .recent-item:last-child, .tag-widget ul .link-item:last-child, .tag-widget .category-list li:last-child, .tag-widget .category-list .category-item:last-child, .tag-widget .category-list .recent-item:last-child, .tag-widget .category-list .link-item:last-child, .tag-widget .recent-list li:last-child, .tag-widget .recent-list .category-item:last-child, .tag-widget .recent-list .recent-item:last-child, .tag-widget .recent-list .link-item:last-child, .tag-widget .links-list li:last-child, .tag-widget .links-list .category-item:last-child, .tag-widget .links-list .recent-item:last-child, .tag-widget .links-list .link-item:last-child, .recent-posts-widget ul li:last-child, .recent-posts-widget ul .category-item:last-child, .recent-posts-widget ul .recent-item:last-child, .recent-posts-widget ul .link-item:last-child, .recent-posts-widget .category-list li:last-child, .recent-posts-widget .category-list .category-item:last-child, .recent-posts-widget .category-list .recent-item:last-child, .recent-posts-widget .category-list .link-item:last-child, .recent-posts-widget .recent-list li:last-child, .recent-posts-widget .recent-list .category-item:last-child, .recent-posts-widget .recent-list .recent-item:last-child, .recent-posts-widget .recent-list .link-item:last-child, .recent-posts-widget .links-list li:last-child, .recent-posts-widget .links-list .category-item:last-child, .recent-posts-widget .links-list .recent-item:last-child, .recent-posts-widget .links-list .link-item:last-child, .links-widget ul li:last-child, .links-widget ul .category-item:last-child, .links-widget ul .recent-item:last-child, .links-widget ul .link-item:last-child, .links-widget .category-list li:last-child, .links-widget .category-list .category-item:last-child, .links-widget .category-list .recent-item:last-child, .links-widget .category-list .link-item:last-child, .links-widget .recent-list li:last-child, .links-widget .recent-list .category-item:last-child, .links-widget .recent-list .recent-item:last-child, .links-widget .recent-list .link-item:last-child, .links-widget .links-list li:last-child, .links-widget .links-list .category-item:last-child, .links-widget .links-list .recent-item:last-child, .links-widget .links-list .link-item:last-child {
  border-bottom: none;
}

.tag-widget .tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag-widget .tag-cloud .tag-link {
  padding: 3px 10px;
  background-color: #f5f5f5;
  border-radius: 3px;
  font-size: 0.9rem;
}
.tag-widget .tag-cloud .tag-link:hover {
  background-color: #4a90d9;
  color: white;
  text-decoration: none;
}

.paginator .paginator-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
}
.paginator .paginator-inner .prev-page, .paginator .paginator-inner .next-page {
  padding: 5px 15px;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.paginator .paginator-inner .prev-page.disabled, .paginator .paginator-inner .next-page.disabled {
  color: #666;
  cursor: not-allowed;
}
.paginator .paginator-inner .page-numbers {
  display: flex;
  gap: 5px;
}
.paginator .paginator-inner .page-numbers .page-number {
  padding: 5px 10px;
  border-radius: 4px;
}
.paginator .paginator-inner .page-numbers .page-number.current {
  background-color: #4a90d9;
  color: white;
}

#footer {
  background-color: #fff;
  padding: 20px 0;
  text-align: center;
  color: #666;
  font-size: 0.9rem;
  border-top: 1px solid #eee;
}
#footer .footer-info {
  margin-top: 10px;
}
#footer .footer-info p {
  margin: 5px 0;
}

@media (max-width: 768px) {
  #header .header-inner {
    justify-content: space-between;
  }
  #header .logo-container {
    position: static;
  }
  #header .menu-toggle {
    display: flex;
    position: static;
  }
  #header #nav-main {
    display: none;
  }
  #header #nav-main.active {
    display: block;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
  }
  #header #nav-main.active .nav-list {
    flex-direction: column;
    gap: 10px;
  }
  #main .container .content-wrapper, #main #header .header-inner .content-wrapper, #header #main .header-inner .content-wrapper {
    flex-direction: column;
  }
  #main .container .content-wrapper #sidebar, #main #header .header-inner .content-wrapper #sidebar, #header #main .header-inner .content-wrapper #sidebar {
    width: 100%;
  }
}
.post-full {
  background-color: #fff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}
.post-full .post-header {
  margin-bottom: 20px;
}
.post-full .post-header .post-title {
  font-size: 2rem;
  margin-bottom: 15px;
}
.post-full .post-header .post-meta {
  font-size: 0.9rem;
  color: #666;
}
.post-full .post-header .post-meta span {
  margin-right: 15px;
}
.post-full .post-header .post-meta span i {
  margin-right: 5px;
}
.post-full .post-toc {
  background-color: #f5f5f5;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
}
.post-full .post-toc .toc-title {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.post-full .post-toc ul {
  list-style: none;
  padding-left: 15px;
}
.post-full .post-toc ul li {
  margin: 5px 0;
}
.post-full .post-content {
  line-height: 1.8;
  margin-bottom: 30px;
}
.post-full .post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}
.post-full .post-content pre {
  background-color: #f8f8f8;
  padding: 15px;
  border-radius: 4px;
  overflow-x: auto;
}
.post-full .post-footer {
  border-top: 1px solid #eee;
  padding-top: 20px;
}
.post-full .post-footer .post-tags-bottom {
  margin-bottom: 20px;
}
.post-full .post-footer .post-tags-bottom h4 {
  margin-bottom: 10px;
}
.post-full .post-footer .post-tags-bottom .tag-link {
  display: inline-block;
  padding: 3px 10px;
  background-color: #f5f5f5;
  border-radius: 3px;
  margin-right: 8px;
  margin-bottom: 8px;
  font-size: 0.9rem;
}
.post-full .post-footer .post-nav {
  display: flex;
  justify-content: space-between;
}
.post-full .post-footer .post-nav .prev-post, .post-full .post-footer .post-nav .next-post {
  max-width: 45%;
}
.post-full .post-footer .post-nav .prev-post a, .post-full .post-footer .post-nav .next-post a {
  display: block;
}
.post-full .post-footer .post-nav .prev-post a .nav-label, .post-full .post-footer .post-nav .next-post a .nav-label {
  font-size: 0.9rem;
  color: #666;
}
.post-full .post-footer .post-nav .prev-post a .nav-title, .post-full .post-footer .post-nav .next-post a .nav-title {
  font-weight: bold;
}

.archive-page {
  background-color: #fff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.archive-page .page-title {
  font-size: 1.8rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #4a90d9;
}
.archive-page .archive-year {
  font-size: 1.5rem;
  margin: 20px 0 10px;
  color: #4a90d9;
}
.archive-page .archive-item {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
}
.archive-page .archive-item .archive-date {
  min-width: 50px;
  color: #666;
  font-size: 0.9rem;
}
.archive-page .archive-item .archive-title {
  flex: 1;
}
.archive-page .archive-item .archive-title a {
  font-weight: 500;
}
.archive-page .archive-item .archive-title .archive-category {
  margin-left: 10px;
  font-size: 0.85rem;
  color: #666;
}
.archive-page .archive-item .archive-title .archive-category a {
  font-weight: normal;
}

.page-full {
  background-color: #fff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.page-full .page-header {
  margin-bottom: 20px;
}
.page-full .page-header .page-title {
  font-size: 1.8rem;
}
.page-full .page-content {
  line-height: 1.8;
}