/* 原仓库 TypeWords 原版 style.css - 完整无删减 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

body {
  background-color: #f8f9fa;
  color: #333;
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

header {
  background-color: #4299e1;
  color: white;
  padding: 20px;
  text-align: center;
}

header h1 {
  font-size: 24px;
  margin-bottom: 10px;
}

.controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 20px;
}

.controls select, .controls button {
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  font-size: 14px;
  cursor: pointer;
}

.controls select {
  background-color: white;
  color: #333;
}

.controls button {
  background-color: #38b2ac;
  color: white;
  transition: background-color 0.2s;
}

.controls button:hover {
  background-color: #319795;
}

main {
  padding: 30px 20px;
}

.stats {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 30px;
}

.stat-item {
  text-align: center;
  flex: 1;
  min-width: 80px;
}

.stat-item .label {
  font-size: 12px;
  color: #718096;
  margin-bottom: 5px;
  display: block;
}

.stat-item .value {
  font-size: 24px;
  font-weight: 600;
  color: #2d3748;
}

.word-display {
  background-color: #f7fafc;
  padding: 40px 20px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 30px;
}

#currentWord {
  font-size: 36px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 15px;
}

#nextWord {
  font-size: 18px;
  color: #718096;
  opacity: 0.7;
}

.input-area {
  text-align: center;
  margin-bottom: 30px;
}

#wordInput {
  width: 100%;
  max-width: 500px;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 18px;
  outline: none;
  transition: border-color 0.2s;
}

#wordInput:focus {
  border-color: #4299e1;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.feedback {
  text-align: center;
  font-size: 18px;
  height: 24px;
  margin-bottom: 20px;
}

.feedback.correct {
  color: #48bb78;
}

.feedback.error {
  color: #e53e3e;
}

footer {
  text-align: center;
  padding: 20px;
  background-color: #f7fafc;
  color: #718096;
  font-size: 14px;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  position: relative;
}

.modal-content h2 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #2d3748;
}

.setting-item {
  margin-bottom: 15px;
}

.setting-item label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  color: #4a5568;
}

.setting-item select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 14px;
}

#saveSettings {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 6px;
  background-color: #4299e1;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s;
}

#saveSettings:hover {
  background-color: #3182ce;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  color: #718096;
  cursor: pointer;
}

.close:hover {
  color: #e53e3e;
}

@media (max-width: 768px) {
  .stats {
    gap: 10px;
  }

  .stat-item .value {
    font-size: 20px;
  }

  #currentWord {
    font-size: 28px;
  }

  #wordInput {
    font-size: 16px;
    padding: 10px 14px;
  }
}
