<style>
/* 全局基础样式 */
body { 
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
  line-height: 1.7; 
  max-width: 900px; 
  margin: 0 auto; 
  padding: 25px 20px; 
  color: #333; 
  background-color: #fafafa;
}

/* 顶部欢迎区样式 */
.hero { 
  text-align: center; 
  margin-bottom: 45px; 
  padding: 40px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
.hero h1 { 
  font-size: 2.5em; 
  margin-bottom: 15px; 
  font-weight: 700;
}
.hero-subtitle { 
  font-size: 1.2em; 
  margin: 15px 0; 
  opacity: 0.95;
}
.hero p {
  font-size: 1.1em;
  opacity: 0.9;
}

/* 卡片模块样式 */
.card { 
  background-color: #ffffff; 
  border-radius: 12px; 
  padding: 30px; 
  margin-bottom: 35px; 
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); 
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
} 
.card:hover { 
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12); 
  transform: translateY(-2px);
}
.card h2 { 
  margin-top: 0; 
  color: #2c3e50; 
  border-bottom: 2px solid #3498db; 
  padding-bottom: 12px;
  font-size: 1.5em;
  font-weight: 600;
}

/* 信息网格布局 */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.info-item {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #3498db;
}
.info-item h3 {
  margin: 0 0 10px 0;
  color: #2c3e50;
  font-size: 1.1em;
}
.info-item p {
  margin: 0;
  color: #555;
}

/* 技能容器 */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 20px;
}
.skill-category {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 10px;
  border-top: 4px solid #e74c3c;
}
.skill-category h3 {
  margin: 0 0 15px 0;
  color: #2c3e50;
  font-size: 1.2em;
}
.skill-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.skill-category li {
  padding: 8px 0;
  border-bottom: 1px solid #e9ecef;
  color: #555;
}
.skill-category li:last-child {
  border-bottom: none;
}

/* 项目网格布局 */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 20px;
}
.project-item {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 10px;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}
.project-item:hover {
  background: #ffffff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.project-item h3 {
  margin: 0 0 15px 0;
  color: #2c3e50;
  font-size: 1.2em;
}
.project-item p {
  color: #555;
  margin-bottom: 15px;
}

/* 项目标签 */
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  background: #3498db;
  color: white;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.85em;
  font-weight: 500;
}

/* 文章预览 */
.posts-preview {
  margin-top: 20px;
}
.post-item {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  border-left: 4px solid #27ae60;
}
.post-item h3 {
  margin: 0 0 8px 0;
}
.post-item h3 a {
  color: #2c3e50;
  text-decoration: none;
}
.post-item h3 a:hover {
  color: #3498db;
}
.post-date {
  color: #7f8c8d;
  font-size: 0.9em;
  margin: 0 0 10px 0;
}
.more-posts {
  text-align: center;
  color: #7f8c8d;
  font-style: italic;
  margin-top: 20px;
}

/* 社交媒体网格 */
.social-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 25px;
  background: #f8f9fa;
  border-radius: 25px;
  text-decoration: none;
  color: #2c3e50;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}
.social-link:hover {
  background: #3498db;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}
.social-icon {
  font-size: 1.2em;
}

/* 分隔线样式 */
.divider { 
  border: 0; 
  height: 2px; 
  background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.3), transparent); 
  margin: 40px 0; 
}

/* 响应式设计 */
@media (max-width: 768px) {
  body {
    padding: 15px 10px;
  }
  .hero h1 {
    font-size: 2em;
  }
  .hero-subtitle {
    font-size: 1.1em;
  }
  .card {
    padding: 20px;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
  .skills-container {
    grid-template-columns: 1fr;
  }
  .project-grid {
    grid-template-columns: 1fr;
  }
  .social-grid {
    flex-direction: column;
    align-items: center;
  }
}

/* 链接样式 */
a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: #2980b9;
  text-decoration: underline;
}

/* 代码样式 */
code {
  background: #f1f2f6;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9em;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}
</style>
