:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #93c5fd;
  --secondary: #4f46e5;
  --accent: #7c3aed;
  --text: #1e293b;
  --text-light: #64748b;
  --text-lighter: #94a3b8;
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --border-dark: #cbd5e1;
  --radius: 12px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1280px;
  --header-height: 72px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header Styles */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-light);
  position: relative;
  padding: 8px 0;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text);
  z-index: 100;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-card);
  z-index: 90;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--header-height) 24px 24px;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.mobile-menu-link {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
  padding: 12px 0;
  width: 100%;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.mobile-menu-link.active {
  color: var(--primary);
}

/* Main Content Layout */
.main-content {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 40px;
  padding: 40px 0;
}

/* Search Form */
.search-container {
  margin-bottom: 2px;
  background-color: var(--primary);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.search-container::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="rgba(255,255,255,0.1)"><path d="M30,30 Q50,10 70,30 T90,50 Q70,70 50,90 T10,50 Q30,30 50,10 T90,30 Q70,50 90,70 T70,90 Q50,70 30,90 T10,70 Q30,50 10,30 T30,10 Q50,30 70,10 T90,30"></path></svg>');
  background-size: 100px;
  opacity: 0.5;
}

.search-title {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.search-description {
  color: rgba(255,255,255,0.9);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.search-form {
  display: flex;
  max-width: 100%;
  position: relative;
  z-index: 1;
}

.search-input {
  flex-grow: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 6px 0 0 6px;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.search-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}

.search-button {
  padding: 0 16px;
  background-color: var(--accent);
  color: white;
  border: none;
  border-radius: 0 6px 6px 0;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-button:hover {
  background-color: var(--secondary);
}

/* Featured Posts */
.featured-posts {
  margin-bottom: 32px;
  width: 100%;
  overflow: hidden;
}

.featured-posts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.featured-posts-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
}

.featured-posts-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 20px;
  background-color: var(--accent);
  border-radius: 2px;
}

.featured-posts-container {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  align-items: stretch;
}

.featured-posts-container::-webkit-scrollbar {
  height: 6px;
}

.featured-posts-container::-webkit-scrollbar-track {
  background: var(--bg);
  border-radius: 3px;
}

.featured-posts-container::-webkit-scrollbar-thumb {
  background-color: var(--primary-light);
  border-radius: 3px;
}

.featured-post-card {
  min-width: 240px;
  max-width: 280px;
  width: 100%;
  background-color: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.featured-post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-dark);
}

.featured-post-image-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 比例 */
  overflow: hidden;
}

.featured-post-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.featured-post-card:hover .featured-post-image {
  transform: scale(1.05);
}

.featured-post-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.featured-post-category {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  background-color: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  align-self: flex-start;
}

.featured-post-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.4;
}

.featured-post-meta {
  display: flex;
  gap: 12px;
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.featured-post-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.featured-post-excerpt {
  margin-bottom: 16px;
  color: var(--text);
  line-height: 1.6;
  font-size: 0.875rem;
  flex-grow: 1;
}

.featured-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 8px 16px;
  background-color: var(--primary);
  color: white;
  border-radius: 6px;
  transition: var(--transition);
  align-self: flex-start;
  margin-top: auto;
}

.featured-read-more:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
}

/* Latest Posts Section */
.latest-posts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 20px;
  background-color: var(--primary);
  border-radius: 2px;
}

.category-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.category-button {
  padding: 6px 12px;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
}

.category-button:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-light);
  color: var(--primary-dark);
}

.category-button.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.post-card {
  background-color: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-dark);
}

.post-image-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 比例 */
  overflow: hidden;
}

.post-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.post-card:hover .post-image {
  transform: scale(1.02);
}

.post-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.post-category {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  background-color: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-category.frontend {
  background-color: #dbeafe;
  color: #1e40af;
}

.post-category.backend {
  background-color: #e0e7ff;
  color: #3730a3;
}

.post-category.architecture {
  background-color: #ede9fe;
  color: #5b21b6;
}

.post-category.database {
  background-color: #f0fdf4;
  color: #166534;
}

.post-category.devops {
  background-color: #ecfdf5;
  color: #065f46;
}

.post-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.4;
}

.post-meta {
  display: flex;
  gap: 16px;
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.post-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-excerpt {
  margin-bottom: 20px;
  color: var(--text);
  line-height: 1.7;
  flex-grow: 1;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 8px 16px;
  background-color: var(--primary);
  color: white;
  border-radius: 6px;
  transition: var(--transition);
  align-self: flex-start;
  margin-top: auto;
}

.read-more:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  gap: 8px;
}

.pagination-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background-color: var(--bg);
  color: var(--text);
  font-weight: 500;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.pagination-button:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-light);
  color: var(--primary-dark);
}

.pagination-button.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
}

.pagination-button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 关于页面样式 */
.about-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.about-card {
  background-color: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  border: 1px solid var(--border);
}

.about-content {
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 32px;
}

.about-content p {
  margin-bottom: 16px;
}

/* Sidebar Styles */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: sticky;
  top: calc(var(--header-height) + 20px);
  height: fit-content;
}

.sidebar-card {
  background-color: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  border: 1px solid var(--border);
}

/* Author Profile Card */
.author-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.author-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
  border: 3px solid var(--primary-light);
}

.author-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.author-bio {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.6;
}

.author-social {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.author-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--bg);
  border-radius: 50%;
  color: var(--text-light);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.author-social-link:hover {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Popular Posts */
.popular-post {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.popular-post:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.popular-post-image {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.popular-post-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.popular-post-title {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.popular-post-views {
  font-size: 0.75rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  background-color: var(--bg);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-light);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.tag:hover {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Newsletter Form */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.newsletter-text {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.6;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-input {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.875rem;
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-submit {
  padding: 10px 14px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
}

.form-submit:hover {
  background-color: var(--primary-dark);
}

/* Footer Styles */
footer {
  background-color: var(--bg-card);
  padding: 60px 0 24px;
  margin-top: 40px;
  border-top: 1px solid var(--border);
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-column-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
}

.footer-about {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--text-light);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-link:hover {
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--bg);
  border-radius: 50%;
  color: var(--text-light);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.social-link:hover {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.copyright {
  text-align: center;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-light);
  font-size: 0.75rem;
}

/* Loading State */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 40px 0;
  color: var(--text-light);
}

/* Schema Markup (hidden) */
.schema-markup {
  display: none;
}

/* 文章详情页样式 start */
/* ===== 文章详情页 - 简约风格 ===== */
.post-detail-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  color: var(--text);
  position: static;
}

/* 头部区域 */
.detail-post-header {
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  position: static;
  top: auto;
  background: none;
  z-index: auto;
}

.detail-post-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  position: static;
}

.detail-post-title {
  font-size: 1.8rem;
  line-height: 1.3;
  margin: 1rem 0;
  font-weight: 600;
  color: var(--text);
}

.detail-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: var(--text-light);
  font-size: 0.875rem;
  margin: 1.5rem 0;
}

.detail-post-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* 文章特色图 */
.detail-post-featured-image {
  margin: 2rem 0;
  border-radius: 8px;
  overflow: hidden;
}

.detail-post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* 正文内容 */
.detail-post-content {
  line-height: 1.8;
  font-size: 1.05rem;
}

.detail-post-content > * + * {
  margin-top: 1.5rem;
}

.detail-post-content h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
  color: var(--text);
  font-weight: 600;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.detail-post-content h3 {
  font-size: 1.25rem;
  margin: 2rem 0 1rem;
  font-weight: 600;
}

.detail-post-content p {
  margin: 1.25rem 0;
}

.detail-post-content a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid var(--primary-light);
  transition: all 0.2s ease;
}

.detail-post-content a:hover {
  color: var(--primary-dark);
  border-bottom-color: var(--primary);
}

.detail-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 1.5rem auto;
  display: block;
}

.detail-post-content pre {
  background-color: #f8fafc;
  padding: 1.25rem;
  border-radius: 6px;
  overflow-x: auto;
  border: 1px solid var(--border);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 1.5rem 0;
}

.detail-post-content code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  background-color: rgba(175, 184, 193, 0.2);
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
}

/* 标签区域 */
.detail-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 3rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.detail-tag {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background-color: var(--bg);
  border-radius: 4px;
  font-size: 0.8rem;
  border: 1px solid var(--border);
  color: var(--text-light);
  transition: all 0.2s ease;
}

.detail-tag:hover {
  background-color: var(--primary-light);
  color: var(--primary-dark);
  border-color: var(--primary-light);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .detail-post-detail-container {
    padding: 1.5rem 1rem;
  }

  .detail-post-title {
    font-size: 1.5rem;
  }

  .detail-post-meta {
    gap: 1rem;
    font-size: 0.8rem;
  }

  .detail-post-content {
    font-size: 1rem;
  }

  .detail-post-content h2 {
    font-size: 1.3rem;
  }
}
/* 文章详情页样式 end */

/* Responsive Styles */
@media (max-width: 1024px) {
  .main-content {
    grid-template-columns: 1fr;
    grid-template-areas:
            "content"
            "sidebar";
  }

  .content-left {
    grid-area: content;
  }

  .sidebar {
    grid-area: sidebar;
    position: static;
    margin-top: 40px;
    gap: 24px;
  }

  .sidebar-card {
    width: 100%;
  }

}

@media (max-width: 900px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .main-content {
    padding: 20px 0;
    gap: 20px;
  }

  .sidebar {
    margin-top: 30px;
  }

  .sidebar-card {
    padding: 16px;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .latest-posts-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-container {
    padding: 16px;
  }

  .search-title {
    font-size: 1.25rem;
  }

  .featured-post-card {
    min-width: 200px;
    max-width: 220px;
  }

  /*文章详情页 start*/

  /*文章详情页 end*/
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .post-image-container {
    padding-bottom: 56.25%;
  }

  .popular-post {
    flex-direction: column;
  }

  .popular-post-image {
    width: 100%;
    height: 120px;
  }

  .featured-post-card {
    min-width: 180px;
    max-width: 200px;
  }
}



/* 响应式调整 */
@media (max-width: 768px) {
  .about-card {
    padding: 16px;
  }
}