/* 基础布局与样式 */
body {
  font-family: "微软雅黑", sans-serif;
  margin: 0;
  padding: 0;
  background: #f9f9f9;
  color: #333;
}

.header {
  background: #fff;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 20px;
}

#logo {
  height: 60px;
  width: auto;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

h1, h2 {
  color: #333;
}

h2 {
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.section {
  margin-bottom: 30px;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-group {
  margin: 10px 0;
}

button {
  padding: 8px 16px;
  margin-right: 10px;
  cursor: pointer;
  background: #409eff;
  color: #fff;
  border: none;
  border-radius: 4px;
  transition: background 0.3s;
}

button:hover {
  background: #66b1ff;
}

/* 折叠区域样式 */
.collapsible {
  background-color: #f0f7ff;
  color: #333;
  cursor: pointer;
  padding: 10px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 16px;
  margin: 10px 0;
  border-radius: 4px;
}

.collapsible:after {
  content: '\002B';
  color: #333;
  font-weight: bold;
  float: right;
  margin-left: 5px;
}

.active:after {
  content: "\2212";
}

.content {
  padding: 0 18px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
  background-color: #f9f9f9;
  margin-bottom: 10px;
  border-radius: 4px;
}

/* 分页样式 */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.pagination button {
  color: #333;
  background-color: #fff;
  border: 1px solid #ddd;
  margin: 0 4px;
}

.pagination button.active {
  background-color: #409eff;
  color: white;
  border: 1px solid #409eff;
}

.pagination button:hover:not(.active) {
  background-color: #ddd;
}

.word-item {
  display: inline-block;
  padding: 4px 8px;
  margin: 4px;
  cursor: pointer;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: all 0.3s;
}

.word-item:hover {
  background: #f0faff;
  border-color: #409eff;
}

.underline {
  text-decoration: underline;
  color: #f56c6c;
}

.status-indicator {
  margin-top: 10px;
  padding: 8px;
  border-radius: 4px;
  font-weight: bold;
}

.status-indicator.success {
  background-color: #e6ffed;
  color: #52c41a;
  border: 1px solid #b7eb8f;
}

.status-indicator.warning {
  background-color: #fff7e6;
  color: #fa8c16;
  border: 1px solid #ffe7ba;
}

/* 单词学习区域样式 */
.word-container {
  display: inline-block;
  margin: 0 8px 10px 0;
  text-align: center;
}

.word-text {
  font-size: 18px;
  margin-bottom: 5px;
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.word-text:hover {
  background: #f0faff;
  border-color: #409eff;
}

/* 高亮样式 */
.word-text.active {
  color: #fff;
  border-color: #9c27b0;
}

.translation-text {
  font-size: 14px;
  color: #666;
  min-height: 20px;
}

/* 导入导出按钮组 */
.import-export-group {
  margin: 10px 0;
}

/* 设置区域样式 */
.settings-group {
  padding: 15px;
  background-color: #f0f7ff;
  border-radius: 6px;
}

.setting-item {
  margin-bottom: 15px;
  padding: 8px 0;
}

.setting-item label {
  display: inline-block;
  width: 150px;
}

/* 页脚样式 */
.footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 50px;
}

/* 列表项样式 */
ul {
  list-style: none;
  padding: 0;
}

li {
  padding: 10px;
  border-bottom: 1px solid #eee;
}

/* 文本框样式 */
textarea, input[type="text"], input[type="number"] {
  width: 100%;
  padding: 8px;
  margin: 8px 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}

textarea {
  min-height: 100px;
  resize: vertical;
}