/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft YaHei", sans-serif;
}

body {
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 导航栏 */
.navbar {
  background: #2c3e50;
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
}

.nav-links a.active,
.nav-links a:hover {
  color: #3498db;
}

/* 欢迎区域 */
.hero {
  text-align: center;
  padding: 60px 0;
  background: white;
  margin: 20px 0;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

/* 文章区域 */
.articles {
  margin: 40px 0;
}

.articles h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  border-left: 4px solid #3498db;
  padding-left: 10px;
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.date {
  color: #7f8c8d;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background: #3498db;
  color: white;
  text-decoration: none;
  border-radius: 4px;
}

.btn:hover {
  background: #2980b9;
}

/* 关于我 */
.about {
  background: white;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 40px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 弹窗样式 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
}

.modal-content {
  background: white;
  margin: 10% auto;
  padding: 30px;
  width: 90%;
  max-width: 700px;
  border-radius: 8px;
  position: relative;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
}

/* 底部 */
footer {
  background: #2c3e50;
  color: white;
  text-align: center;
  padding: 20px 0;
  margin-top: 20px;
}

/* 响应式 */
@media (max-width: 600px) {
  .navbar .container {
    flex-direction: column;
    gap: 10px;
  }
}