 /* 容器 */
.container-pc {
  display: flex;
  align-items: flex-start;
  width: 1080px;
  margin: 20px auto;
  gap: 20px;
  box-sizing: border-box;
}

/* 左侧主区域 */
.main-pc {
  flex: 1;
  background: #fff;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* 单词选择区 */
.word-select {
  background: #fdfdfd;
  padding: 20px;
  border-radius: 8px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
  margin-bottom: 30px;
}

.word-select h2 {
  margin: 0 0 15px 0;
  font-size: 20px;
  color: #333;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}

/* 等级区 */
.levels {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.level {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 6px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.03);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.level:hover {
  background: #fff;
}

.level h3 {
  margin: 0;
  font-size: 16px;
  color: #333;
}

.level .more {
  font-size: 14px;
  color: #007bff;
  text-decoration: none;
}

.level .more:hover {
  text-decoration: underline;
}

/* 右侧推荐区 */
.main-right {
  width: 300px;
  background: #fff;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 8px;
  margin-top: 0px!important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.main-right h3 {
  margin-top: 0;
  font-size: 18px;
  color: #5d5d5d;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}

/* 推荐列表 */
.main-right ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
}

.main-right ul li {
  margin-bottom: 10px;
}

.main-right ul li a {
  text-decoration: none;
  color: #666;
  display: block;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.main-right ul li a:hover {
  background: #f0f8ff;
  color: #007bff;
}




.word-select {
  background: #fdfdfd;
  padding: 20px;
  border-radius: 8px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
  margin-bottom: 30px;
}

.word-select h2 {
  margin: 0 0 15px 0;
  font-size: 20px;
  color: #333;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}

/* 题目 */
.question {
  font-size: 18px;
  margin-bottom: 15px;
  color: #555;
}

/* 选项 */
.options {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
  display: flex;
  gap: 15px;
}

.options li {
  flex: 1;
}

.options button {
  width: 100%;
  padding: 12px 0;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.options button:hover {
  background: #f0f8ff;
}

.options button.selected {
  border-color: #38b0e5;
  background: #e6f3ff;
  color: #007bff;
}


/* 选项容器：分两排显示 */
.options {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 两列 */
  gap: 15px;
}

/* 选项按钮 */
.options li {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.options button {
  width: 100%;
  padding: 12px 0;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.options button:hover {
  background: #f0f8ff;
}

.options button.selected {
  border-color: #38b0e5;
  background: #e6f3ff;
  color: #007bff;
}

/* 详情按钮美化 */
.options .details {
  align-self: flex-end;  /* 右对齐 */
  font-size: 12px;
  padding: 2px 6px;
  background: #38b0e5;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s;
}

.options .details:hover {
  background: #2e8ad7;
}


/* 按钮容器居中 */
.btns {
  margin-top: 20px;
  display: flex;
  justify-content: center; /* 居中对齐 */
}


/* 按钮样式统一 */
.btns button {
  min-width: 200px;
  padding: 12px 0;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #38b0e5;
  background: #38b0e5;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

/* hover */
.btns button:hover {
  background: #2e8ad7;
}

/* 正确/错误提示 */
#result {
  margin-top: 10px;
  font-size: 16px;
  font-weight: bold;
}

/* 检查按钮 */
#check {
  min-width: 300px;  /* 拉长 */
  padding: 12px 0;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #38b0e5;
  background: #38b0e5;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

/* 检查按钮 hover */
#check:hover {
  background: #2e8ad7;
}

/* 下一题按钮 */
#next {
  min-width: 300px;  /* 与检查按钮一致 */
  padding: 12px 0;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #38b0e5;
  background: #38b0e5;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

/* 下一题 hover */
#next:hover {
  background: #2e8ad7;
}

.level-box {
  margin-top: 20px;
  padding: 10px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  box-shadow: 1px 1px 5px rgba(0,0,0,0.05);
}

.level-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
  font-weight: bold;
  font-size: 16px;
  color: #38b0e5;
}

.level-header .more {
  font-weight: normal;
  font-size: 12px;
  color: #999;
  text-decoration: none;
}

.level-header .more:hover {
  color: #38b0e5;
}

.level-list {
  margin-top: 10px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap; /* 自动换行 */
  gap: 10px;
}

.level-list li {
  background: #f5f5f5;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
  transition: all 0.2s;
}

.level-list li a {
  color: #555;
  text-decoration: none;
}

.level-list li:hover {
  background: #38b0e5;
}

.level-list li:hover a {
  color: #fff;
}

.level-btn {
  display: block;
  text-align: center;
  padding: 16px 0;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  letter-spacing: 0.5px;
  font-size: 14px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25); /* 微阴影提升对比度 */
}

/* Level 1：入门 - 清新绿 */
.level-1 {
  background: linear-gradient(45deg, #5cb85c, #7cd17c);
  color: #f7fff7!important; /* 柔白略带绿色调 */
  text-shadow: 0 1px 3px rgba(0, 80, 0, 0.4);
}

/* Level 2：基础 - 蓝色 */
.level-2 {
  background: linear-gradient(45deg, #0275d8, #4a9efc);
  color: #f5f9ff!important; /* 轻蓝白，避免刺眼 */
  text-shadow: 0 1px 3px rgba(0, 50, 120, 0.4);
}

/* Level 3：进阶 - 金橙 */
.level-3 {
  background: linear-gradient(45deg, #f0ad4e, #f9c97c);
  color: #fffdf6!important; /* 奶白，避免与浅橙冲突 */
  text-shadow: 0 1px 3px rgba(120, 60, 0, 0.4);
}

/* Level 4：精通 - 红色 */
.level-4 {
  background: linear-gradient(45deg, #d9534f, #f17474);
  color: #fff8f8!important; /* 略暖白，平衡红色 */
  text-shadow: 0 1px 3px rgba(80, 0, 0, 0.4);
}