/* 博客页面样式 */
.blog-container {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    margin-top: 80px;
}

.blog-sidebar {
    flex: 0 0 250px;
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.blog-main {
    flex: 1;
}

.tags-cloud {
    margin-bottom: 2rem;
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-item {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #f0f0f0;
    border-radius: 15px;
    font-size: var(--tag-size);
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: #e0e0e0;
}

.tag-count {
    font-size: 0.8em;
    color: #666;
}

.categories-list {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.categories-list ul {
    list-style: none;
    padding: 0;
}

.categories-list li {
    margin-bottom: 0.5rem;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.categories-list a:hover {
    background-color: #f0f0f0;
}

.blog-header {
    margin-bottom: 2rem;
}

.blog-header h1 {
    font-size: 2rem;
    color: #333;
    margin: 0;
}

.blog-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.blog-item:hover {
    transform: translateY(-2px);
}

.blog-item h2 {
    margin: 0 0 1rem;
    font-size: 1.5rem;
}

.blog-item h2 a {
    color: #333;
    text-decoration: none;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.blog-categories a {
    color: #666;
    text-decoration: none;
}

.blog-excerpt {
    color: #444;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.blog-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag-link {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #f0f0f0;
    border-radius: 15px;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
}

.read-more {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background: #0056b3;
}

@media (max-width: 768px) {
    .blog-container {
        flex-direction: column;
        margin-top: 60px;
        padding: 1rem;
    }
    
    .blog-sidebar {
        flex: none;
        width: 100%;
        position: static;
        max-height: none;
    }

    .blog-header h1 {
        font-size: 1.5rem;
    }
}

/* 博客列表页面样式 */
.blog-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.blog-header {
  text-align: center;
  margin-bottom: 3rem;
}

.blog-header h1 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 1rem;
}

.blog-header p {
  font-size: 1.2rem;
  color: #666;
}

.blog-post {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eee;
}

.blog-post h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.blog-post h2 a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

.blog-post h2 a:hover {
  color: #007bff;
}

.post-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

.post-meta span {
  margin-right: 1rem;
}

.post-categories a {
  color: #666;
  text-decoration: none;
  margin-right: 0.5rem;
}

.post-categories a:hover {
  color: #007bff;
}

.post-excerpt {
  color: #444;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.read-more {
  display: inline-block;
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}

.read-more:hover {
  text-decoration: underline;
}

/* 分页样式 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 3rem;
}

.pagination a,
.pagination span {
  margin: 0 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
}

.pagination a:hover {
  background-color: #f8f9fa;
}

.pagination .current-page {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}

/* 文章页面样式 */
.post {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.post-header {
  text-align: center;
  margin-bottom: 3rem;
}

.post-title {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 1rem;
}

.post-content {
  line-height: 1.8;
  color: #333;
}

.post-content h2 {
  font-size: 1.8rem;
  margin: 2rem 0 1rem;
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content img {
  max-width: 100%;
  height: auto;
  margin: 2rem 0;
}

.post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.post-tags {
  margin-bottom: 2rem;
}

.post-tags a {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  margin: 0.3rem;
  background-color: #f8f9fa;
  border-radius: 3px;
  color: #666;
  text-decoration: none;
}

.post-tags a:hover {
  background-color: #e9ecef;
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

.post-navigation a {
  color: #007bff;
  text-decoration: none;
}

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