* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "微软雅黑", sans-serif;
}

body {
  background: #f5f7fa;
  padding: 20px;
}

/* 顶部导航 */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

/* 操作指引 */
.guide {
  background: #e8f4ff;
  padding: 10px 15px;
  border-radius: 6px;
  color: #336699;
  margin-bottom: 20px;
  font-size: 14px;
}

/* 单词容器：5列网格 */
.word-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 20px;
  min-height: 600px;
}

/* 单词项 */
.word-item {
  padding: 10px;
  border-radius: 4px;
  background: #f9f9f9;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
}
.word-item:hover {
  background: #e8f4ff;
}

/* 释义卡片 */
.meaning-card {
  width: 300px;
  padding: 15px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  z-index: 999;
  pointer-events: none; /* 避免遮挡鼠标 */
}
.meaning-card .word {
  font-size: 20px;
  color: #409eff;
  font-weight: bold;
  margin-bottom: 5px;
}
.meaning-card .phonetic {
  color: #999;
  font-size: 14px;
  margin-bottom: 10px;
}
.meaning-card .meaning {
  color: #333;
  line-height: 1.5;
}

/* 分页按钮 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.pagination button {
  padding: 10px 30px;
  border: none;
  border-radius: 6px;
  background: #67c23a;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}
.pagination button:disabled {
  background: #ccc;
  cursor: not-allowed;
}
.pagination button:hover:not(:disabled) {
  background: #85ce61;
}

/* 通关弹窗 */
.success-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  width: 500px;
}
.modal-content h2 {
  color: #67c23a;
  margin-bottom: 20px;
}
.modal-content p {
  font-size: 18px;
  margin-bottom: 15px;
}
.modal-content button {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  background: #409eff;
  color: #fff;
  cursor: pointer;
}
.modal-content button:hover {
  background: #66b1ff;
}