/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* 标题样式 */
h1 {
  text-align: center;
  color: white;
  margin-bottom: 30px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  font-size: 36px;
  font-weight: bold;
}

h1:nth-child(2) {
  font-size: 24px;
  margin-top: 50px;
  margin-bottom: 20px;
}

/* 按钮样式 */
button {
  display: block;
  margin: 0 auto 30px;
  padding: 12px 30px;
  background: white;
  color: #667eea;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

button:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* 学生列表样式 */
ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

li {
  background: white;
  border-radius: 10px;
  padding: 20px;
  min-width: 250px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-align: center;
}

li:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

li h3 {
  color: #667eea;
  margin-bottom: 10px;
  font-size: 18px;
}

li p {
  margin: 5px 0;
  color: #666;
  font-size: 14px;
}

/* 加载状态 */
.loading {
  text-align: center;
  color: white;
  font-size: 18px;
  margin: 20px 0;
}

/* 错误状态 */
.error {
  text-align: center;
  color: #ff6b6b;
  font-size: 18px;
  margin: 20px 0;
  padding: 10px;
  background: rgba(255, 107, 107, 0.1);
  border-radius: 5px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  h1 {
    font-size: 28px;
  }

  h1:nth-child(2) {
    font-size: 20px;
  }

  li {
    min-width: 200px;
    padding: 15px;
  }

  button {
    padding: 10px 20px;
    font-size: 14px;
  }
}