:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --text-color: #333;
  --background-color: #f8f9fa;
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  margin: 0;
}

/* 会员栏样式 */
.member-bar {
  background-color: var(--primary-color);
  padding: 0.8rem;
  text-align: right;
}

.member-links a {
  color: white;
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.9rem;
}

/* 导航栏样式 */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--secondary-color);
}

/* 横幅样式 */
.banner {
  background: linear-gradient(135deg, #3498db, #2c3e50);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
}

/* 文章网格布局 */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.article-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.article-card:hover {
  transform: translateY(-5px);
}

.article-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-content {
  padding: 1.5rem;
}

.meta {
  color: #666;
  font-size: 0.9rem;
}

/* 分页样式 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
}

.page-button {
  padding: 0.5rem 1rem;
  background-color: var(--secondary-color);
  color: white;
  border-radius: 4px;
  text-decoration: none;
}

/* 投稿表单样式 */
.contribute-form {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}

.file-upload {
  position: relative;
  margin-top: 0.5rem;
}

.upload-button {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: var(--secondary-color);
  color: white;
  border-radius: 4px;
  cursor: pointer;
}

.submit-button {
  width: 100%;
  padding: 1rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    padding: 1rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
  }

  .article-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .banner {
    padding: 2rem 1rem;
  }
}
