/* 主题优化 - 浅色主题 */
body {
  background-color: #f9f9f9;
  color: #333333;
  font-family: 'Open Sans', sans-serif;
  transition: background-color 0.3s ease;
}

.site-header {
  border-top: 5px solid #007423; /* 从蓝色 #4285f4 改为深绿色 */
  border-bottom: 1px solid #e5e5e5;
  background-color: #ffffff;
}

.site-title, .site-title:visited {
  color: #007423; /* 从蓝色 #4285f4 改为深绿色 */
  font-weight: bold;
}

.site-nav .page-link {
  color: #333333;
}

.post-list-heading {
  color: #007423; /* 从蓝色 #4285f4 改为深绿色 */
}

.post-link {
  color: #007423; /* 从蓝色 #4285f4 改为深绿色 */
  transition: color 0.3s ease;
}

.post-link:hover {
  color: #34a853; /* 保持绿色悬停效果 */
  text-decoration: none;
}

.footer-heading {
  color: #007423; /* 从蓝色 #4285f4 改为深绿色 */
}

.site-footer {
  background-color: #ffffff;
  border-top: 1px solid #e5e5e5;
}

/* 炫酷卡片样式 */
.post-list > li {
  background-color: rgba(255, 255, 255, 0.85); /* 半透明背景 */
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-list > li:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* 粒子效果容器 */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
}

/* 内容层 */
.wrapper {
  position: relative;
  z-index: 1;
  width: 96%;  /* 默认占用宽度 */
  margin: 0 auto;
  max-width: 90%;  /* 使用百分比而不是固定像素 */
  max-width: -webkit-calc(1400px - (30px * 2));  /* 为旧版webkit浏览器设置上限 */
  max-width: calc(1400px - (30px * 2));  /* 将最大宽度从800px增加到1400px */
}

/* 增强响应式设计 */
@media screen and (min-width: 1200px) and (max-width: 1600px) {
  .wrapper {
    width: 85%;
    max-width: 1400px;
  }
  
  /* 调整网格比例 */
  .home-grid {
    grid-template-columns: minmax(350px, 40%) 1fr;
  }
}

@media screen and (min-width: 1601px) {
  .wrapper {
    width: 75%;
    max-width: 1800px;  /* 超宽屏幕允许更宽的内容区 */
  }
  
  /* 调整网格比例 */
  .home-grid {
    grid-template-columns: minmax(400px, 35%) 1fr;
  }
  
  /* 增大字体 */
  body {
    font-size: 18px;
  }
}

@media screen and (max-width: 1199px) {
  .wrapper {
    width: 92%; 
    max-width: 1000px;
  }
  
  /* 调整网格比例 */
  .home-grid {
    grid-template-columns: minmax(320px, 45%) 1fr;
    gap: 20px;
  }
}

@media screen and (max-width: 768px) {
  .wrapper {
    width: 95%;
  }
  
  /* 手机端改为单列布局 */
  .home-grid {
    grid-template-columns: 1fr;
  }
  
  /* 其他小屏幕适配 */
  .tech-stack {
    grid-template-columns: 1fr;
  }
}

/* 增强内联代码块可读性 */
code.language-plaintext {
  background-color: #f1f1f1 !important;
  color: #007423 !important; /* 修改代码文本颜色 */
  padding: 3px 5px;
  border-radius: 3px;
  border: 1px solid #ddd;
  font-weight: 500;
}

/* 代码块样式优化 */
.highlight {
  background-color: #f8f8f8;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #e8e8e8;
}

.highlight pre {
  background-color: transparent;
  border: none;
  padding: 16px;
}

.highlight code {
  background-color: transparent;
  color: #333333;
}

/* 全局链接颜色 */
a {
  color: #007423 !important; /* 强制所有链接为深绿色 */
}

a:hover {
  color: #009e2f !important; /* 悬停时为亮绿色 */
}

/* 保持某些特殊链接颜色 */
.post-link, .site-title, .footer-heading, .contact-button, .nav-button.active {
  color: inherit !important; /* 这些元素使用各自定义的颜色 */
}

/* 在文件末尾添加主页介绍样式 */

/* 主页介绍样式 */
.home-intro {
  background-color: rgba(249, 249, 249, 0.85); /* 半透明背景 */
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 30px;
  border-left: 4px solid #007423;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

.home-intro h2 {
  color: #007423;
  margin-top: 0;
  border-bottom: 2px solid #e5e5e5;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 25px 0;
}

.feature-item {
  background-color: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-item h3 {
  color: #007423;
  margin-top: 0;
  font-size: 1.2em;
  margin-bottom: 10px;
}

.intro-footer {
  font-style: italic;
  text-align: center;
  margin-top: 25px;
  color: #555;
  font-weight: 500;
}

/* 移动设备响应式调整 */
@media (max-width: 768px) {
  .feature-list {
    grid-template-columns: 1fr;
  }
}

/* 主页新布局样式 - 添加到文件末尾 */

/* 主页网格布局 */
.home-grid {
  display: grid;
  grid-template-columns: minmax(400px, 45%) 1fr;
  gap: 30px;
  margin-top: 0;
  background-color: transparent;
}

/* 重置原有的home-intro样式，适应新布局 */
.home-intro {
  background-color: rgba(249, 249, 249, 0.85); /* 半透明背景 */
  border-radius: 12px;
  padding: 25px;
  border-left: 4px solid #007423;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  height: fit-content;
  margin-bottom: 0;
}

/* 功能卡片垂直排列 */
.feature-card {
  display: flex;
  background-color: rgba(255, 255, 255, 0.85); /* 半透明白色 */
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-icon {
  font-size: 2em;
  margin-right: 15px;
  display: flex;
  align-items: center;
}

.feature-content {
  flex: 1;
}

.feature-content h3 {
  color: #007423;
  margin: 0 0 8px 0;
  font-size: 1.1em;
}

.feature-content p {
  margin: 0;
  font-size: 0.95em;
  color: #555;
}

/* 右侧内容区域样式 */
.home-content {
  display: flex;
  flex-direction: column;
  background-color: transparent;
}

/* 项目展示链接样式 */
.project-showcase-link {
  margin-bottom: 25px;
}

.showcase-button {
  display: flex;
  align-items: center;
  background-color: #007423;
  color: white !important;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  width: fit-content;
}

.showcase-button:hover {
  background-color: #009e2f;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.showcase-icon {
  font-size: 1.5em;
  margin-right: 10px;
}

.showcase-text {
  font-size: 1.1em;
}

/* 文章列表样式优化 */
.home-content .post-list-heading {
  color: #007423;
  border-bottom: 2px solid #e5e5e5;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

/* 移动设备响应式布局 */
@media (max-width: 768px) {
  .home-grid {
    grid-template-columns: 1fr;
  }
  
  .home-intro {
    margin-bottom: 20px;
  }
  
  .feature-list {
    grid-template-columns: 1fr;
  }
}

/* 调整页脚布局以适应更宽的设计 */
.footer-col-1 {
  width: -webkit-calc(30% - (30px / 2));
  width: calc(30% - (30px / 2));
}

.footer-col-2 {
  width: -webkit-calc(20% - (30px / 2));
  width: calc(20% - (30px / 2));
}

.footer-col-3 {
  width: -webkit-calc(50% - (30px / 2));
  width: calc(50% - (30px / 2));
}

/* 起始页样式 */
.start-page {
  position: relative;
  min-height: 100vh; /* 改为最小高度而非固定高度 */
  height: auto; /* 允许根据内容扩展 */
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  padding-bottom: 120px; /* 增加底部填充，为按钮留出足够空间 */
  overflow: visible; /* 改为visible确保内容不被裁剪 */
}

.start-container {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 60px; /* 添加下边距给按钮留空间 */
}

/* 华丽的开始按钮 */
.start-button {
  position: relative;
  padding: 20px 60px;
  font-size: 24px;
  font-weight: bold;
  color: white;
  background: linear-gradient(135deg, #007423 0%, #34a853 100%);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 116, 35, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.start-button:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #34a853 0%, #007423 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.start-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 116, 35, 0.4);
}

.start-button:hover:before {
  opacity: 1;
}

.start-text {
  margin-right: 10px;
}

.start-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.start-button:hover .start-icon {
  transform: translateY(5px);
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* 导航按钮区域 */
.navigation-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 40px 0 60px 0;
  width: 100%;
  position: absolute;
  bottom: 20px; /* 从底部上移20px */
  background-color: transparent;
  z-index: 10; /* 确保按钮在其他元素上方 */
}

.nav-button {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  background-color: white;
  border: 2px solid #007423;
  border-radius: 12px;
  color: #007423;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.nav-button.active, .nav-button:hover:not(.disabled) {
  background-color: #007423;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.nav-icon {
  font-size: 1.2em;
  margin-right: 10px;
}

.nav-button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: #999;
  color: #999;
}

/* 主内容区域 */
.main-content {
  min-height: 100vh;
  background-color: transparent; /* 改为透明背景 */
}

/* 确保内容区域处于按钮下方 */
.home-grid {
  margin-top: 0;
}
.page-content {
  background-color: transparent;
}