/* 基础样式重置 */
* {
  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: #2c3e50;
  background: #ffffff;
  min-height: 100vh;
}

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

/* 头部样式 */
header {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 20px 0;
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header h1 {
  font-size: 1.8em;
  font-weight: 700;
}

header h1 a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.3s ease;
}

header h1 a:hover {
  color: #3498db;
}

header .site-description {
  color: #7f8c8d;
  font-size: 1.1em;
}

/* 导航菜单样式 */
.nav-menu {
  margin-top: 15px;
}

.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-menu a {
  color: #34495e;
  text-decoration: none;
  font-weight: 500;
  padding: 5px 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-menu a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #3498db;
  transition: width 0.3s ease;
}

.nav-menu a:hover {
  color: #3498db;
}

.nav-menu a:hover:after {
  width: 100%;
}

/* 文章列表样式 */
.post-list {
  margin-bottom: 50px;
}

.post-item {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.post-title {
  margin-bottom: 12px;
  font-size: 1em;
}

.post-title a {
  color: #2c3e50;
  text-decoration: none;
  font-size: 1.8em;
  font-weight: 700;
  transition: color 0.3s ease;
}

.post-title a:hover {
  color: #3498db;
}

.post-meta {
  color: #7f8c8d;
  font-size: 0.95em;
  margin-bottom: 12px;
}

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

.read-more a {
  color: #3498db;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.read-more a:hover {
  color: #2980b9;
  text-decoration: underline;
}

/* 文章页面样式 */
.post {
  background-color: #fff;
  padding: 40px 0;
}

.post-content {
  margin-top: 30px;
  color: #2c3e50;
  line-height: 1.8;
}

.post-content h1,
.post-content h2,
.post-content h3 {
  margin: 2em 0 1em;
  color: #2c3e50;
  font-weight: 600;
}

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

.post-content ul,
.post-content ol {
  margin: 1em 0;
  padding-left: 2em;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5em 0;
}

/* 页脚样式 */
footer {
  text-align: center;
  padding: 24px 0;
  color: #7f8c8d;
  font-size: 0.9em;
  margin-top: 50px;
}

.article-detail h1 {
  font-size: 2em;
}

.article-detail h2 {
  font-size: 1.6em;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  .nav-menu ul {
    flex-wrap: wrap;
    gap: 15px;
  }
  
  .post-item {
    padding: 20px;
  }
  
  .post {
    padding: 20px 0;
  }
  
  .post-title a {
    font-size: 1.5em;
  }
}