/*
Theme Name: 生肖星座主题
Theme URI: https://example.com/shengxiao-zodiac-theme
Description: 一个专为生肖星座类文章设计的WordPress主题，符合百度SEO优化规则。
Author: 创拓软件
Author URI: https://example.com
Version: 1.0
Text Domain: shengxiao-zodiac
Tags: 生肖, 星座, 生活方式, 个人博客, 响应式设计, SEO优化
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* 基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

/* 容器样式 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 头部样式 - 优化导航栏高度和设计 */
header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  padding: 0; /* 去掉顶部间距 */
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

header:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px; /* 固定导航栏高度 */
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #1a73e8;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo i {
  font-size: 28px;
}

nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin-left: 25px;
  position: relative;
}

nav ul li a {
  text-decoration: none;
  color: #5f6368;
  font-weight: 500;
  transition: color 0.3s, transform 0.3s;
  padding: 5px 0;
  position: relative;
}

nav ul li a:hover {
  color: #1a73e8;
  transform: translateY(-2px);
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #1a73e8;
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

/* 移动端菜单按钮 */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #5f6368;
  transition: transform 0.3s ease;
}

.menu-toggle:hover {
  transform: rotate(90deg);
}

/* 特色内容区域 */
.hero {
  background: linear-gradient(135deg, #1a73e8 0%, #4285f4 100%);
  color: white;
  padding: 60px 0;
  text-align: center;
  border-radius: 0 0 30px 30px;
  margin-bottom: 30px;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero p {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto 30px;
  opacity: 0.95;
}

/* 主要内容区域 - 减少布局间距 */
.main-content {
  padding: 40px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 25px; /* 减少间距 */
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  padding: 30px;
}

.content-area {
  flex: 1;
  min-width: 0;
}

/* 文章卡片样式 */
.post-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 30px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #f0f0f0;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.post-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover .post-thumbnail {
  transform: scale(1.03);
}

.post-content {
  padding: 15px;
}

.post-categories {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.post-category {
  background-color: #f0f7ff;
  color: #1a73e8;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.post-category:hover {
  background-color: #1a73e8;
  color: white;
  transform: translateY(-2px);
}

.post-title {
  font-size: 24px;
  margin-bottom: 15px;
  line-height: 1.3;
}

.post-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
  display: inline-block;
  position: relative;
}

.post-title a:hover {
  color: #1a73e8;
  transform: translateX(5px);
}

.post-excerpt {
  color: #5f6368;
  margin-bottom: 20px;
  line-height: 1.7;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #888;
  padding-top: 15px;
  border-top: 1px solid #f5f5f5;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #f0f0f0;
  transition: border-color 0.3s ease;
}

.post-author:hover .author-avatar {
  border-color: #1a73e8;
}

/* 侧边栏样式 */
.sidebar {
  width: 300px;
}

.widget {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 25px;
  margin-bottom: 25px;
  border: 1px solid #f0f0f0;
  transition: transform 0.3s, box-shadow 0.3s;
}

.widget:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.widget-title {
  font-size: 20px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f7ff;
  color: #333;
  position: relative;
}

.widget-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: #1a73e8;
}

/* 搜索框样式 */
.search-form {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.search-input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.search-button {
  background-color: #1a73e8;
  color: white;
  border: none;
  padding: 0 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s, transform 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-button:hover {
  background-color: #1557b0;
  transform: translateY(-2px);
}

.search-button i {
  font-size: 18px;
}

/* 热门文章样式 - 优化图文并茂展示 */
.popular-posts ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.popular-posts li {
  margin-bottom: 18px;
  display: flex;
  gap: 12px;
  transition: transform 0.3s ease;
}

.popular-posts li:hover {
  transform: translateX(5px);
}

.popular-post-thumbnail {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.popular-posts li:hover .popular-post-thumbnail {
  transform: scale(1.05);
}

.popular-post-content {
  flex: 1;
  min-width: 0;
}

.popular-post-content h4 {
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.4;
}

.popular-post-content a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.popular-post-content a:hover {
  color: #1a73e8;
}

.popular-post-date {
  font-size: 12px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 5px;
}

.popular-post-date i {
  font-size: 11px;
}

/* 页脚样式 */
footer {
  background-color: #202124;
  color: #fff;
  padding: 40px 0;
  margin-top: 60px;
  border-radius: 30px 30px 0 0;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column {
  flex: 1;
  min-width: 200px;
}

.footer-column h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #fff;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: #1a73e8;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}

.footer-column li:hover {
  transform: translateX(5px);
}

.footer-column a {
  color: #dadce0;
  text-decoration: none;
  transition: color 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-column a:hover {
  color: #1a73e8;
}

.footer-column a i {
  font-size: 12px;
  opacity: 0.7;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #3c4043;
  color: #dadce0;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .main-content {
    flex-direction: column;
    gap: 20px;
  }
  
  .sidebar {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 20px;
    flex-direction: column;
    gap: 15px;
  }
  
  nav ul.show {
    display: flex;
  }
  
  nav ul li {
    margin-left: 0;
  }
  
  .hero h1 {
    font-size: 36px;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 15px;
  }
  
  .hero h1 {
    font-size: 28px;
  }
  
  .hero p {
    font-size: 16px;
  }
  
  .post-title {
    font-size: 20px;
  }
  
  .main-content {
    padding: 15px;
  }
  
  .sidebar {
    width: 100%;
  }
  
  /* 手机端：减小两侧空间距 */
  .single-post {
    padding: 20px !important;
  }
  
  /* 手机端：底部footer只显示网站名称和备案号 */
  .footer-content {
    display: none;
  }
  
  .footer-bottom {
    padding-top: 20px;
    padding-bottom: 20px;
  }
  
  .footer-bottom > div {
    flex-direction: column !important;
    gap: 10px;
  }
}

/* 文章详情页样式 */
.single-post {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 30px; /* 调整文章内容padding */
  border: 1px solid #f0f0f0;
}

.single-post .post-title {
  font-size: 32px;
  margin-bottom: 20px;
  line-height: 1.3;
  color: #333;
}

.single-post .post-meta {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  color: #888;
}

.single-post .post-content {
  margin-bottom: 30px;
  line-height: 1.8;
  /* 使用默认字体，干净利索美观大方 */
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.single-post .post-content p {
  margin-bottom: 20px;
  text-align: justify;
}

.single-post .post-content h2 {
  font-size: 24px;
  margin: 30px 0 20px;
  color: #1a73e8;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f7ff;
}

.single-post .post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
  box-shadow: 0 3px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.single-post .post-content img:hover {
  transform: scale(1.01);
}

/* 相关文章样式 - 显示6条，包含标题、描述和时间 */
.related-posts {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid #eee;
}

.related-posts h3 {
  font-size: 24px;
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
}

.related-posts h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: #1a73e8;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.related-post-item {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: all 0.3s;
  border: 1px solid #f0f0f0;
}

.related-post-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.related-post-item .related-post-thumbnail {
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.related-post-item:hover .related-post-thumbnail {
  transform: scale(1.03);
}

.related-post-item .related-post-content {
  padding: 20px;
}

.related-post-item .related-post-title {
  font-size: 18px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.related-post-item .related-post-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

.related-post-item .related-post-title a:hover {
  color: #1a73e8;
}

.related-post-item .related-post-excerpt {
  font-size: 14px;
  color: #5f6368;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-post-item .related-post-meta {
  font-size: 13px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 15px;
}

.related-post-item .related-post-date {
  display: flex;
  align-items: center;
  gap: 5px;
}

.related-post-item .related-post-date i {
  font-size: 12px;
}

/* 分页样式 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
}

.pagination a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #5f6368;
  text-decoration: none;
  transition: all 0.3s;
}

.pagination a:hover {
  background-color: #1a73e8;
  color: white;
  border-color: #1a73e8;
}

.pagination .current {
  background-color: #1a73e8;
  color: white;
  border-color: #1a73e8;
}

/* 评论区样式 */
.comments {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid #eee;
}

.comments h3 {
  font-size: 24px;
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
}

.comments h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: #1a73e8;
}

.comment-form {
  margin-bottom: 40px;
}

.comment-form p {
  margin-bottom: 20px;
}

.comment-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.comment-form textarea {
  min-height: 150px;
  resize: vertical;
}

.comment-form input[type="submit"] {
  background-color: #1a73e8;
  color: white;
  border: none;
  padding: 12px 24px;
  width: auto;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s, transform 0.3s;
}

.comment-form input[type="submit"]:hover {
  background-color: #1557b0;
  transform: translateY(-2px);
}

.comment-list {
  list-style: none;
}

.comment {
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #eee;
  transition: transform 0.3s ease;
}

.comment:hover {
  transform: translateX(5px);
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.comment-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.comment-author-name {
  font-weight: 500;
  color: #333;
}

.comment-meta {
  font-size: 14px;
  color: #888;
}

.comment-content {
  margin-left: 63px;
  color: #5f6368;
  line-height: 1.7;
}

.comment-reply {
  margin-top: 15px;
  margin-left: 63px;
}

.comment-reply a {
  color: #1a73e8;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.comment-reply a:hover {
  color: #1557b0;
  text-decoration: underline;
}

/* 内容导读区样式 - 移除蓝条 */
.content-guide {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border: 1px solid #f0f0f0;
}

.content-guide h3 {
  margin-bottom: 15px;
  font-size: 18px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
}

.content-guide h3 i {
  color: #1a73e8;
  font-size: 20px;
}

.content-guide p {
  color: #5f6368;
  margin: 0;
  line-height: 1.6;
}

/* 文章标签样式 */
.post-tags {
  margin: 40px 0;
  padding: 20px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.post-tags span {
  font-weight: 500;
  margin-right: 15px;
  color: #333;
}

.post-tags a {
  display: inline-block;
  background-color: #f0f7ff;
  color: #1a73e8;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 14px;
  text-decoration: none;
  margin-right: 10px;
  margin-bottom: 10px;
  transition: all 0.3s;
  border: 1px solid transparent;
}

.post-tags a:hover {
  background-color: #1a73e8;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(26, 115, 232, 0.2);
}

/* 分享和收藏按钮样式 */
.share-favorite {
  margin: 30px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.share-buttons {
  display: flex;
  align-items: center;
  gap: 15px;
}

.share-buttons span {
  font-weight: 500;
  color: #333;
}

.share-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.share-buttons a:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.favorite-button button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
  color: #333;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.favorite-button button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border-color: #1a73e8;
  color: #1a73e8;
}

.favorite-button button i {
  color: #ffc107;
}

/* 上下篇导航样式 */
.post-navigation {
  margin: 40px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.prev-post,
.next-post {
  flex: 1;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
  background-color: #fff;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.prev-post:hover,
.next-post:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border-color: #1a73e8;
}

.prev-post a,
.next-post a {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 15px;
}

.next-post a {
  justify-content: flex-end;
}

.prev-post i,
.next-post i {
  color: #1a73e8;
  font-size: 20px;
}

.prev-post .post-nav-title,
.next-post .post-nav-title {
  font-weight: 500;
  color: #333;
  line-height: 1.4;
}

.prev-post .post-nav-label,
.next-post .post-nav-label {
  font-size: 14px;
  color: #888;
  margin-bottom: 5px;
}

/* 列表页左图右信息布局样式 */
.post-list-container {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.post-thumbnail-wrapper {
  flex: 0 0 220px;
  overflow: hidden;
  border-radius: 8px;
  padding: 22px;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-thumbnail-wrapper img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  transition: transform 0.3s;
  border-radius: 6px;
}

.post-thumbnail-wrapper:hover img {
  transform: scale(1.05);
}

.post-content {
  flex: 1;
}

.post-title {
  font-size: 17px;
  margin-bottom: 15px;
  line-height: 1.3;
  font-weight: normal;
}

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

.post-title a:hover {
  color: #1a73e8;
}

.post-excerpt {
  color: #666;
  margin-bottom: 15px;
  line-height: 1.6;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: #999;
}

.post-categories {
  order: -1;
  margin-right: auto;
}

.post-date {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* 热门文章样式 */
.popular-posts ul, .latest-posts ul {
  list-style: none;
}

/* 特色热门文章样式 */
.featured-post {
  margin-bottom: 20px;
}

.featured-post-link {
  display: block;
  text-decoration: none;
  color: #333;
}

.featured-post-thumbnail {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  transition: transform 0.3s;
}

.featured-post-link:hover .featured-post-thumbnail {
  transform: scale(1.02);
}

.featured-post-title {
  font-size: 16px;
  margin-bottom: 10px;
  font-weight: 600;
  line-height: 1.4;
}

.featured-post-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 13px;
  color: #999;
}

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

/* 标准文章列表样式（图文并茂） */
.standard-post {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
  align-items: flex-start;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}

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

.post-thumbnail-small {
  flex: 0 0 80px;
  height: 80px;
  overflow: hidden;
  border-radius: 6px;
}

.small-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.post-thumbnail-small:hover .small-thumbnail {
  transform: scale(1.05);
}

.post-info-small {
  flex: 1;
  min-width: 0;
}

.post-info-small h4 {
  font-size: 14px;
  margin-bottom: 8px;
  line-height: 1.4;
  font-weight: 500;
}

.post-info-small h4 a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-info-small h4 a:hover {
  color: #1a73e8;
}

.post-views-small {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #999;
}

/* 内容导读区 */
.content-guide {
  background-color: #f8f9fa;
  border-left: 0;
  border: 1px solid #e9ecef;
  padding: 20px;
  margin-bottom: 30px;
  border-radius: 8px;
}

.content-guide-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

.content-guide-list {
  list-style: none;
}

.content-guide-list li {
  margin-bottom: 8px;
}

.content-guide-list a {
  /* 修复超链接文字优化样式 */
  
  /* 基础超链接样式 */
  a {
    color: #1a73e8;
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
  }
  
  a:hover {
    color: #1557b0;
    text-decoration: underline;
  }
  
  /* 文章标题超链接优化 */
  .post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-block;
  }
  
  .post-title a:hover {
    color: #1a73e8;
    text-decoration: none;
    transform: translateX(3px);
  }
  
  /* 侧边栏链接优化 */
  .sidebar a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .sidebar a:hover {
    color: #1a73e8;
    text-decoration: none;
  }
  /* 文章标题超链接优化 */
  .post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    display: inline-block;
    position: relative;
  }
  
  .post-title a:hover {
    color: #1a73e8;
    transform: translateX(5px);
  }
  
  .post-excerpt {
    color: #5f6368;
    margin-bottom: 20px;
    line-height: 1.7;
  }
  
  .post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #888;
    padding-top: 15px;
    border-top: 1px solid #f5f5f5;
  }
  
  .post-author {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #f0f0f0;
    transition: border-color 0.3s ease;
  }
  
  .post-author:hover .author-avatar {
    border-color: #1a73e8;
  }
  
  /* 侧边栏样式 */
  .sidebar {
    width: 300px;
  }
  
  .widget {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #f0f0f0;
    transition: transform 0.3s, box-shadow 0.3s;
  }
  
  .widget:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
  
  .widget-title {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f7ff;
    color: #333;
    position: relative;
  }
  
  .widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #1a73e8;
  }
  
  /* 搜索框样式 */
  .search-form {
    display: flex;
    gap: 10px;
    align-items: stretch;
  }
  
  .search-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
  }
  
  .search-input:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
  }
  
  .search-button {
    background-color: #1a73e8;
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .search-button:hover {
    background-color: #1557b0;
    transform: translateY(-2px);
  }
  
  .search-button i {
    font-size: 18px;
  }
  
  /* 热门文章样式 - 优化图文并茂展示 */
  .popular-posts ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .popular-posts li {
    margin-bottom: 18px;
    display: flex;
    gap: 12px;
    transition: transform 0.3s ease;
  }
  
  .popular-posts li:hover {
    transform: translateX(5px);
  }
  
  .popular-post-thumbnail {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
  }
  
  .popular-posts li:hover .popular-post-thumbnail {
    transform: scale(1.05);
  }
  
  .popular-post-content {
    flex: 1;
    min-width: 0;
  }
  
  .popular-post-content h4 {
    margin-bottom: 6px;
    font-size: 15px;
    line-height: 1.4;
  }
  
  .popular-post-content a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  .popular-post-content a:hover {
    color: #1a73e8;
  }
  
  .popular-post-date {
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
  }
  
  .popular-post-date i {
    font-size: 11px;
  }
  
  /* 页脚样式 */
  footer {
    background-color: #202124;
    color: #fff;
    padding: 40px 0;
    margin-top: 60px;
    border-radius: 30px 30px 0 0;
  }
  
  .footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
  }
  
  .footer-column {
    flex: 1;
    min-width: 200px;
  }
  
  .footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
  }
  
  .footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #1a73e8;
  }
  
  .footer-column ul {
    list-style: none;
  }
  
  .footer-column li {
    margin-bottom: 12px;
    transition: transform 0.3s ease;
  }
  
  .footer-column li:hover {
    transform: translateX(5px);
  }
  
  .footer-column a {
    color: #dadce0;
    text-decoration: none;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  
  .footer-column a:hover {
    color: #1a73e8;
  }
  
  .footer-column a i {
    font-size: 12px;
    opacity: 0.7;
  }
  
  .footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #3c4043;
    color: #dadce0;
  }
  
  /* 响应式设计 */
  @media (max-width: 1024px) {
    .main-content {
      flex-direction: column;
      gap: 20px;
    }
    
    .sidebar {
      width: 100%;
    }
    
    .related-posts-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 768px) {
    /* 移动端菜单 */
    .nav-menu {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background-color: #fff;
      padding: 20px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      flex-direction: column;
      gap: 15px;
    }
    
    .nav-menu.active {
      display: flex;
    }
    
    .menu-toggle {
      display: block;
    }
    
    /* 移动端内容区域 */
    .content-area {
      padding: 20px !important;
    }
    
    .single-post {
      padding: 20px !important;
    }
    
    /* 列表页移动端样式 */
    .post-list-container {
      flex-direction: column;
      gap: 15px;
    }
    
    .post-thumbnail-wrapper {
      flex: none;
      width: 100%;
    }
    
    .post-thumbnail-wrapper img {
      height: 200px;
    }
    
    .related-posts-grid {
      grid-template-columns: 1fr;
    }
    
    .related-post-item {
      display: flex;
      gap: 15px;
      height: auto;
    }
    
    .related-post-thumbnail {
      flex: 0 0 120px;
      height: 120px;
    }
    
    .related-post-content {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }
    
    /* 侧边栏移动端样式 */
    .post-thumbnail-small {
      flex: 0 0 60px;
      height: 60px;
    }
    
    .featured-post-thumbnail {
      height: 150px;
    }
  }
  
  @media (max-width: 480px) {
    .logo {
      font-size: 20px;
    }
    
    .post-title {
      font-size: 20px;
    }
    
    .related-post-item {
      flex-direction: column;
    }
    
    .related-post-thumbnail {
      flex: none;
      width: 100%;
      height: 180px;
    }
  }
  
  /* 交互效果 */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .post-card {
    animation: fadeIn 0.5s ease-out;
  }
  
  /* 平滑滚动 */
  html {
    scroll-behavior: smooth;
  }
  
  /* 增强可访问性 */
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }

  /* 超链接文字优化样式 */
  /* 基础超链接样式 */
  a {
    color: #1a73e8;
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
  }

  a:hover {
    color: #1557b0;
    text-decoration: underline;
  }

  /* 文章标题超链接优化 */
  .post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-block;
  }

  .post-title a:hover {
    color: #1a73e8;
    text-decoration: none;
    transform: translateX(3px);
  }

  /* 侧边栏链接优化 */
  .sidebar a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
  }

  .sidebar a:hover {
    color: #1a73e8;
    text-decoration: none;
  }

  /* 内容导读区链接样式 */
  .content-guide-list a {
    color: #1a73e8;
    text-decoration: none;
    transition: all 0.3s ease;
  }

  .content-guide-list a:hover {
    color: #1557b0;
    text-decoration: underline;
  }