/* 字母王国样式 */

/* 标签页 */
.nav-tabs {
  display: flex;
  gap: 10px;
}

.tab {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  padding: 10px 24px;
  border-radius: 25px;
  color: white;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s;
}

.tab.active {
  background: white;
  color: #667eea;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* 字母网格 */
.alphabet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.letter-card {
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  color: white;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.letter-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.letter-big {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.letter-small {
  font-size: 1rem;
  opacity: 0.9;
}

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

.modal-content {
  background: white;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  position: relative;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
  color: #7f8c8d;
  transition: color 0.2s;
}

.close:hover {
  color: #333;
}

.letter-large {
  font-size: 6rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.letter-word {
  font-size: 1.8rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 10px;
}

.letter-cn {
  font-size: 1.2rem;
  color: #7f8c8d;
  margin-bottom: 20px;
}

.letter-emoji {
  font-size: 4rem;
  margin-bottom: 30px;
}

/* 测验容器 */
.quiz-container {
  max-width: 600px;
  margin: 40px auto;
}

.quiz-header {
  text-align: center;
  margin-bottom: 30px;
}

.quiz-header h2 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 10px;
}

.quiz-header p {
  color: #7f8c8d;
  font-size: 1.1rem;
}

.quiz-progress {
  text-align: center;
  font-size: 1.2rem;
  color: #667eea;
  font-weight: 600;
  margin-bottom: 30px;
}

.quiz-question {
  background: white;
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.question-emoji {
  font-size: 5rem;
  margin-bottom: 20px;
}

.question-word {
  font-size: 1.8rem;
  font-weight: 600;
  color: #2c3e50;
}

.quiz-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.quiz-option {
  background: white;
  border: 2px solid #e0e0e0;
  padding: 20px;
  border-radius: 12px;
  font-size: 2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  color: #2c3e50;
}

.quiz-option:hover:not(:disabled) {
  border-color: #667eea;
  background: #f8f9ff;
  transform: translateY(-2px);
}

.quiz-option:disabled {
  cursor: not-allowed;
}

.center {
  display: block;
  margin: 30px auto 0;
}

/* 测验结果 */
.quiz-result {
  text-align: center;
  padding: 30px;
}

.result-score {
  font-size: 4rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}

.result-message {
  font-size: 1.3rem;
  color: #2c3e50;
  margin-bottom: 30px;
}

/* 响应式 */
@media (max-width: 768px) {
  .alphabet-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  }

  .letter-big {
    font-size: 2rem;
  }

  .letter-small {
    font-size: 0.9rem;
  }

  .quiz-options {
    grid-template-columns: 1fr;
  }

  .question-word {
    font-size: 1.5rem;
  }
}
