/* 文章列表样式 */
.posts-list {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

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

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

.page-description {
  font-size: 1.1rem;
  color: #666;
}



.post-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 1rem;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.post-card-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.post-card-title a {
  color: #333;
  text-decoration: none;
}

.post-card-title a:hover {
  color: #FF6F61;
}

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

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

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

.post-card-summary {
  color: #555;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.post-card-footer {
  margin-top: 1rem;
}

.post-tag {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-link {
  background: #f0f0f0;
  color: #666;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.8rem;
  text-decoration: none;
  transition: background 0.2s ease;
}

.tag-link:hover {
  background: #FF6F61;
  color: white;
}

/* 单篇文章样式 */
.post-single {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

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

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

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

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

.post-summary {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  font-style: italic;
  color: #555;
}

.post-content {
  line-height: 1.8;
  color: #333;
  font-size: 1.1rem;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #333;
}

.post-content h1 { font-size: 2rem; }
.post-content h2 { font-size: 1.7rem; }
.post-content h3 { font-size: 1.4rem; }

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

.post-content ul,
.post-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content blockquote {
  border-left: 4px solid #FF6F61;
  padding-left: 1rem;
  margin: 2rem 0;
  font-style: italic;
  color: #666;
}

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

.post-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.post-tag-list strong {
  margin-right: 0.5rem;
}

/* 标签页面样式 */
.tag-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.tag-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* 标签云样式 */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
  justify-content: center;
}

.tag-item {
  background: #f0f0f0;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  transition: background 0.2s ease;
}

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

.tag-item .tag-link {
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
}

.tag-item:hover .tag-link {
  color: white;
}

.tag-count {
  font-size: 0.8rem;
  opacity: 0.7;
}



.tag-section {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  background: #fff;
  margin-bottom: 1rem;
}

.tag-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tag-title a {
  color: #333;
  text-decoration: none;
}

.tag-posts {
  font-size: 0.9rem;
}

.tag-post {
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tag-post a {
  color: #333;
  text-decoration: none;
  flex: 1;
}

.tag-post time {
  color: #666;
  font-size: 0.8rem;
}

/* 标签下拉菜单样式 */
.tag-dropdown {
  position: relative;
  display: inline-block;
}

.tag-dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 300px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 1000;
  border-radius: 8px;
  padding: 1rem;
  top: 100%;
  left: 0;
}

.tag-dropdown:hover .tag-dropdown-content {
  display: block;
}

.tag-dropdown .tag-section {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.tag-dropdown .tag-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.tag-dropdown .tag-title {
  font-weight: bold;
  color: #333;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.tag-dropdown .tag-posts {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem 0;
}

.tag-dropdown .tag-post {
  margin-bottom: 0.3rem;
}

.tag-dropdown .tag-post a {
  color: #666;
  text-decoration: none;
  font-size: 0.8rem;
  line-height: 1.4;
}

.tag-dropdown .tag-post a:hover {
  color: #FF6F61;
}

.tag-dropdown .view-all-link {
  color: #FF6F61;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
}

.tag-dropdown .view-all-link:hover {
  text-decoration: underline;
}

/* 导航链接样式 */
.tag-navigation {
  margin-top: 2rem;
  text-align: center;
}

.back-link {
  color: #FF6F61;
  text-decoration: none;
  font-size: 1rem;
}

.back-link:hover {
  text-decoration: underline;
}

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

.pagination a {
  color: #FF6F61;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid #FF6F61;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.pagination a:hover {
  background: #FF6F61;
  color: white;
}

.page-info {
  color: #666;
  font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .posts-list,
  .post-single,
  .tag-page,
  .tag-page {
    padding: 1rem;
  }
  
  .page-title,
  .post-title {
    font-size: 2rem;
  }
  
  .tag-cloud {
    gap: 0.5rem;
  }
  
  .tag-item {
    padding: 0.3rem 0.8rem;
  }
} 