@charset "UTF-8";
/* 分页样式 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid #eee;
}
.pagination a, .pagination span {
  margin: 0 10px;
  padding: 8px 16px;
  text-decoration: none;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: all 0.3s;
}
.pagination a:hover {
  background: #f5f5f5;
}
.pagination .pagination-prev,
.pagination .pagination-next {
  background: #f8f9fa;
}
.pagination .pagination-current {
  background: #1abc9c;
  color: white;
  border-color: #1abc9c;
}

/* 响应式分页 */
@media (max-width: 768px) {
  .pagination {
    flex-wrap: wrap;
    text-align: center;
  }
  .pagination .pagination-prev,
  .pagination .pagination-next {
    order: 1;
    width: calc(50% - 20px);
    margin: 10px 5px;
  }
  .pagination .pagination-current {
    order: 0;
    width: 100%;
    margin-bottom: 15px;
  }
}
/* 博客文章样式 */
.post-article {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}

.post-header {
  margin-bottom: 50px;
}
.post-header .post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  color: #7f8c8d;
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.post-header .post-meta > * {
  margin-right: 20px;
  position: relative;
}
.post-header .post-meta > *:not(:last-child)::after {
  content: "•";
  position: absolute;
  right: -15px;
}
.post-header .post-meta .post-category {
  color: #1abc9c;
  font-weight: 500;
}
.post-header .post-title {
  font-size: 2.4rem;
  line-height: 1.3;
  margin-bottom: 15px;
  color: #2c3e50;
  position: relative;
}
.post-header .post-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 70px;
  height: 4px;
  background: #1abc9c;
}
.post-header .post-subtitle {
  font-size: 1.4rem;
  color: #555;
  font-weight: 400;
  margin-top: 30px;
  margin-bottom: 30px;
  line-height: 1.6;
}
.post-header .post-tags {
  display: flex;
  flex-wrap: wrap;
  margin-top: 30px;
}
.post-header .post-tags .tag {
  background: #f0f7ff;
  color: #3498db;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-right: 10px;
  margin-bottom: 10px;
  transition: all 0.3s;
}
.post-header .post-tags .tag:hover {
  background: #3498db;
  color: white;
}
.post-header .post-cover {
  margin: 40px 0 30px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.post-header .post-cover img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}
.post-header .post-cover figcaption {
  padding: 10px 15px;
  background: #f9f9f9;
  color: #7f8c8d;
  font-size: 0.9rem;
  text-align: center;
}

.post-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}
.post-content > * {
  margin-bottom: 1.8rem;
}
.post-content h2, .post-content h3, .post-content h4 {
  color: #2c3e50;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  position: relative;
}
.post-content h2::after, .post-content h3::after, .post-content h4::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background: #1abc9c;
}
.post-content h2 {
  font-size: 1.8rem;
}
.post-content h2::after {
  width: 60px;
}
.post-content h3 {
  font-size: 1.5rem;
}
.post-content h4 {
  font-size: 1.3rem;
}
.post-content p {
  text-align: justify;
}
.post-content a {
  color: #3498db;
  text-decoration: none;
  border-bottom: 1px solid rgba(52, 152, 219, 0.3);
  transition: all 0.3s;
}
.post-content a:hover {
  color: #1abc9c;
  border-bottom-color: #1abc9c;
}
.post-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem auto;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.post-content blockquote {
  border-left: 4px solid #1abc9c;
  background: #f9f9f9;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  color: #555;
  font-style: italic;
  border-radius: 0 5px 5px 0;
  position: relative;
}
.post-content blockquote::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 10px;
  font-size: 4rem;
  color: rgba(26, 188, 156, 0.1);
  font-family: serif;
}
.post-content blockquote p:last-child {
  margin-bottom: 0;
}
.post-content pre {
  background: #2d2d2d;
  color: #f8f8f2;
  padding: 1.5rem;
  border-radius: 5px;
  overflow-x: auto;
  margin: 2rem 0;
  font-size: 0.95rem;
  line-height: 1.5;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.post-content code {
  font-family: "Fira Code", Consolas, Monaco, "Andale Mono", monospace;
}
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}
.post-content table th, .post-content table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}
.post-content table th {
  background: #f9f9f9;
  font-weight: 600;
}
.post-content table tr:hover {
  background: #f5fbfa;
}

.post-footer {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #f0f0f0;
}
.post-footer .post-author {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 50px;
}
.post-footer .post-author .author-info {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}
.post-footer .post-author .author-info .author-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 20px;
  border: 3px solid #f0f0f0;
}
.post-footer .post-author .author-info h4 {
  margin: 0 0 5px;
  font-size: 1.3rem;
}
.post-footer .post-author .author-info p {
  margin: 0;
  color: #7f8c8d;
}
.post-footer .post-author .author-meta {
  display: flex;
  color: #7f8c8d;
  font-size: 0.9rem;
}
.post-footer .post-author .author-meta > span {
  margin-right: 20px;
  position: relative;
}
.post-footer .post-author .author-meta > span:not(:last-child)::after {
  content: "•";
  position: absolute;
  right: -15px;
}
.post-footer .post-navigation {
  display: flex;
  justify-content: space-between;
  margin-bottom: 50px;
}
.post-footer .post-navigation a {
  display: block;
  width: calc(50% - 15px);
  padding: 20px;
  border-radius: 8px;
  background: #f9f9f9;
  color: #555;
  text-decoration: none;
  transition: all 0.3s;
}
.post-footer .post-navigation a:hover {
  background: #1abc9c;
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.post-footer .post-navigation a span {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: #7f8c8d;
}
.post-footer .post-navigation a h4 {
  margin: 0;
  font-size: 1.1rem;
}
.post-footer .post-navigation .prev-post {
  text-align: left;
}
.post-footer .post-navigation .next-post {
  text-align: right;
}
.post-footer .related-posts {
  margin-bottom: 50px;
}
.post-footer .related-posts h3 {
  font-size: 1.5rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
}
.post-footer .related-posts h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: #1abc9c;
}
.post-footer .related-posts .related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
@media (max-width: 768px) {
  .post-footer .related-posts .related-grid {
    grid-template-columns: 1fr;
  }
}
.post-footer .related-posts .related-card {
  display: block;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
  text-decoration: none;
  color: #333;
}
.post-footer .related-posts .related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.post-footer .related-posts .related-card:hover h4 {
  color: #1abc9c;
}
.post-footer .related-posts .related-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}
.post-footer .related-posts .related-card .related-content {
  padding: 15px;
}
.post-footer .related-posts .related-card .related-content h4 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  transition: color 0.3s;
}
.post-footer .related-posts .related-card .related-content time {
  color: #7f8c8d;
  font-size: 0.85rem;
}
.post-footer .post-comments h3 {
  font-size: 1.5rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
}
.post-footer .post-comments h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: #1abc9c;
}
.post-footer .post-comments .comments-placeholder {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  color: #7f8c8d;
}
.post-footer .post-comments .comments-placeholder a {
  color: #1abc9c;
  text-decoration: none;
}
.post-footer .post-comments .comments-placeholder a:hover {
  text-decoration: underline;
}

/* 导航栏样式 */
.navbar {
  background: white; /* 改为白色背景 */
  padding: 1.5rem 0;
  border-bottom: 1px solid #eee; /* 底部细线分隔 */
}
.navbar .container {
  max-width: 100%; /* 导航栏全宽 */
  padding: 0 50px; /* 与内容区对齐 */
  display: flex;
  justify-content: space-between; /* 关键：左右对齐 */
  align-items: center;
}
.navbar a {
  color: #333;
  font-weight: 500;
  margin-right: 30px;
  position: relative;
}
.navbar a:after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #1abc9c;
  transition: width 0.3s;
}
.navbar a:hover:after, .navbar a.active:after {
  width: 100%;
}

/* 导航链接容器 */
.nav-links {
  display: flex;
  flex: 1; /* 占据剩余空间 */
}
.nav-links a {
  margin-right: 30px;
}

/* 侧边栏样式 */
.sidebar {
  padding: 25px;
  border-right: 1px solid #f0f0f0;
}
.sidebar .profile {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 25px;
}
.sidebar .profile .avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #f9f9f9;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}
.sidebar .profile h2 {
  margin: 15px 0 10px;
}
.sidebar .profile p {
  color: #666;
  font-size: 0.95rem;
}
.sidebar .contacts h3 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #555;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}
.sidebar .contacts ul {
  list-style: none;
  padding-left: 0;
}
.sidebar .contacts ul li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}
.sidebar .contacts ul li::before {
  content: "•";
  color: #1abc9c;
  margin-right: 8px;
}

/* 搜索容器 - 右侧对齐 */
.search-container {
  position: relative;
  margin-left: auto;
}
@media (max-width: 768px) {
  .search-container {
    margin-left: 0;
    width: 100%;
    margin-top: 15px;
    order: 3;
  }
}

/* 搜索表单 */
.search-form {
  display: flex;
  position: relative;
}
.search-form #search-input {
  width: 200px;
  padding: 10px 15px;
  padding-right: 40px;
  border: 1px solid #e0e0e0;
  border-radius: 30px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: #f8f9fa;
}
.search-form #search-input:focus {
  outline: none;
  border-color: #1abc9c;
  box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.1);
  background: white;
  width: 250px;
}
.search-form button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #7f8c8d;
  padding: 5px;
}
.search-form button:hover {
  color: #1abc9c;
}
.search-form button svg {
  display: block;
}

/* 悬浮式搜索结果 */
.search-results {
  position: absolute;
  top: 100%;
  right: 0;
  width: 350px;
  max-height: 400px;
  overflow-y: auto;
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  margin-top: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
}
.search-results.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.search-results .search-result-item {
  display: block;
  padding: 15px;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  color: #333;
  transition: background 0.2s;
}
.search-results .search-result-item:last-child {
  border-bottom: none;
}
.search-results .search-result-item:hover {
  background: #f8f9fa;
}
.search-results .search-result-item h4 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: #2c3e50;
  display: flex;
  align-items: center;
}
.search-results .search-result-item h4:before {
  content: "→";
  margin-right: 8px;
  color: #1abc9c;
}
.search-results .search-result-item .search-result-meta {
  display: flex;
  font-size: 0.85rem;
  color: #7f8c8d;
  margin-bottom: 8px;
}
.search-results .search-result-item .search-result-meta span {
  display: flex;
  align-items: center;
  margin-right: 15px;
}
.search-results .search-result-item .search-result-meta span svg {
  margin-right: 5px;
}
.search-results .search-result-item .search-excerpt {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
}
.search-results .search-result-item .search-excerpt mark {
  background: rgba(26, 188, 156, 0.3);
  color: inherit;
  padding: 0 2px;
  border-radius: 3px;
}
.search-results .no-results {
  padding: 20px;
  text-align: center;
  color: #7f8c8d;
}
.search-results .no-results p {
  margin: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .search-results {
    width: 100%;
    left: 0;
    right: auto;
  }
}
/* 专栏页面样式 */
.category-layout {
  padding: 40px 0;
}
.category-layout .category-header {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}
.category-layout .category-header h1 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: #2c3e50;
  position: relative;
}
.category-layout .category-header h1::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 70px;
  height: 4px;
  background: #1abc9c;
}
.category-layout .category-header .category-description {
  color: #7f8c8d;
  font-size: 1.1rem;
  max-width: 800px;
  line-height: 1.7;
}
.category-layout .category-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 50px;
}
@media (max-width: 992px) {
  .category-layout .category-content {
    grid-template-columns: 1fr;
  }
}
.category-layout .category-posts .post-card {
  border-bottom: 1px solid #f5f5f5;
  padding: 30px 0;
}
.category-layout .category-posts .post-card:last-child {
  border-bottom: none;
}
.category-layout .category-posts .post-card .post-meta {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: #7f8c8d;
}
.category-layout .category-posts .post-card .post-meta time {
  margin-right: 20px;
}
.category-layout .category-posts .post-card .post-meta .post-tags {
  display: flex;
  flex-wrap: wrap;
}
.category-layout .category-posts .post-card .post-meta .post-tags .tag {
  background: #f0f7ff;
  color: #3498db;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  margin-right: 8px;
}
.category-layout .category-posts .post-card h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}
.category-layout .category-posts .post-card h2 a {
  color: #2c3e50;
  transition: color 0.3s;
  text-decoration: none;
}
.category-layout .category-posts .post-card h2 a:hover {
  color: #1abc9c;
}
.category-layout .category-posts .post-card .post-excerpt {
  color: #555;
  line-height: 1.7;
  margin-bottom: 20px;
}
.category-layout .category-posts .post-card .read-more {
  color: #1abc9c;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.category-layout .category-posts .post-card .read-more::after {
  content: "→";
  margin-left: 5px;
  transition: transform 0.3s;
}
.category-layout .category-posts .post-card .read-more:hover::after {
  transform: translateX(5px);
}
.category-layout .category-sidebar {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 25px;
  align-self: start;
  position: sticky;
  top: 20px;
}
@media (max-width: 992px) {
  .category-layout .category-sidebar {
    position: relative;
    top: 0;
    margin-top: 40px;
  }
}
.category-layout .category-sidebar .category-info {
  margin-bottom: 30px;
}
.category-layout .category-sidebar .category-info h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #2c3e50;
  position: relative;
  padding-bottom: 10px;
}
.category-layout .category-sidebar .category-info h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: #1abc9c;
}
.category-layout .category-sidebar .category-info p {
  color: #555;
  line-height: 1.7;
}
.category-layout .category-sidebar .category-info .category-stats {
  display: flex;
  margin-top: 20px;
}
.category-layout .category-sidebar .category-info .category-stats .stat {
  text-align: center;
  padding: 15px;
  background: white;
  border-radius: 8px;
  margin-right: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  min-width: 100px;
}
.category-layout .category-sidebar .category-info .category-stats .stat .number {
  display: block;
  font-size: 1.8rem;
  font-weight: bold;
  color: #1abc9c;
  line-height: 1.2;
}
.category-layout .category-sidebar .category-info .category-stats .stat .label {
  font-size: 0.9rem;
  color: #7f8c8d;
}
.category-layout .category-sidebar .related-categories h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #2c3e50;
  position: relative;
  padding-bottom: 10px;
}
.category-layout .category-sidebar .related-categories h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: #1abc9c;
}
.category-layout .category-sidebar .related-categories ul {
  list-style: none;
  padding-left: 0;
}
.category-layout .category-sidebar .related-categories ul li {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}
.category-layout .category-sidebar .related-categories ul li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.category-layout .category-sidebar .related-categories ul li a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.3s;
}
.category-layout .category-sidebar .related-categories ul li a:hover {
  color: #1abc9c;
  text-decoration: underline;
}
.category-layout .category-sidebar .related-categories ul li span {
  float: right;
  color: #7f8c8d;
  font-size: 0.9rem;
}
.category-layout .no-posts {
  text-align: center;
  padding: 60px 20px;
  background: #f9f9f9;
  border-radius: 8px;
  grid-column: 1/-1;
}
.category-layout .no-posts p {
  font-size: 1.2rem;
  color: #7f8c8d;
  margin-bottom: 25px;
}
.category-layout .no-posts .btn {
  display: inline-block;
  padding: 12px 30px;
  background: #1abc9c;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s;
}
.category-layout .no-posts .btn:hover {
  background: #16a085;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-container {
  max-width: 900px; /* A4纸宽度约800px，留出额外空间 */
  margin: 0 auto; /* 居中 */
  background: white; /* 内容区域白色背景 */
  min-height: 100vh;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* 纸张阴影效果 */
  padding: 0 50px; /* 左右留白 */
  position: relative;
}

.home-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 50px;
  padding: 40px 0;
}

.recent-posts {
  padding-right: 20px;
}
.recent-posts h2 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: #2c3e50;
  position: relative;
}
.recent-posts h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background: #1abc9c;
}

.post-preview {
  border-bottom: 1px solid #f5f5f5;
  padding-bottom: 25px;
  margin-bottom: 30px;
}
.post-preview h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.post-preview h3 a {
  color: #2c3e50;
  transition: color 0.3s;
  text-decoration: none;
}
.post-preview h3 a:hover {
  color: #1abc9c;
}
.post-preview time {
  color: #7f8c8d;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 12px;
}
.post-preview p {
  color: #555;
  line-height: 1.7;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .page-container {
    padding: 0 20px;
  }
  .navbar .container {
    padding: 0 20px;
  }
  .navbar .container a {
    margin-right: 15px;
    font-size: 0.95rem;
  }
  .home-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .sidebar {
    border-right: none;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 40px;
    margin-bottom: 30px;
  }
}

/*# sourceMappingURL=main.css.map */