/* 小学五年级语文古诗抽查系统样式 */

/* 基础样式 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&display=swap');

:root {
  --primary-color: #4a6fa5;
  --primary-dark: #3a5a8c;
  --primary-light: #6b8bc7;
  --secondary-color: #f8b400;
  --secondary-light: #ffc947;
  --text-color: #333333;
  --text-light: #666666;
  --light-gray: #f5f5f5;
  --border-color: #e0e0e0;
  --success-color: #4caf50;
  --error-color: #f44336;
  --warning-color: #ff9800;
  --info-color: #2196f3;
  --white: #ffffff;
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 8px 32px rgba(0, 0, 0, 0.2);
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
  --gradient-bg: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Noto Serif SC', serif;
  color: var(--text-color);
  line-height: 1.6;
  background: var(--gradient-bg);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(74, 111, 165, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(248, 180, 0, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 头部样式 */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-light);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
}

.logo:hover {
  transform: translateY(-2px);
}

.logo i {
  margin-right: 10px;
  font-size: 1.8rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.logo-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 25px;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 25px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.nav-link:hover::before {
  opacity: 0.1;
}

.nav-link:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* 主内容区域 */
.main-content {
  padding: 2rem 0;
  min-height: calc(100vh - 200px);
}

.section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 0.8rem;
  text-align: center;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-secondary);
  border-radius: 2px;
}

/* 卡片样式 */
.card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: var(--shadow-medium);
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 25px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  font-size: 1rem;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(74, 111, 165, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(74, 111, 165, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, #6c757d, #868e96);
  color: white;
  box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(74, 111, 165, 0.3);
}

/* 首页样式 */
.hero {
  text-align: center;
  padding: 4rem 0;
  position: relative;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-light);
  margin-bottom: 3rem;
  animation: fadeInUp 1s ease 0.2s both;
}

.test-modes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.4s both;
}

/* 测试配置选项样式 */
.test-config {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-medium);
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: fadeInUp 1s ease 0.3s both;
}

.config-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.config-item {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  min-width: 200px;
}

.config-item label {
  margin-bottom: 0.8rem;
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.config-select {
  padding: 0.8rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  min-width: 120px;
  transition: all 0.3s ease;
}

.config-select:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1);
}

/* 年级选择样式 */
.grade-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.grade-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  transition: all 0.3s ease;
  user-select: none;
  border: 2px solid transparent;
  backdrop-filter: blur(5px);
}

.grade-checkbox:hover {
  background: rgba(74, 111, 165, 0.1);
  transform: translateY(-2px);
}

.grade-checkbox input:checked + span {
  font-weight: 600;
  color: var(--primary-color);
}

.grade-checkbox:has(input:checked) {
  background: rgba(74, 111, 165, 0.15);
  border-color: var(--primary-color);
}

.grade-checkbox input {
  margin-right: 8px;
  accent-color: var(--primary-color);
}

/* 测试模式卡片样式 */
.mode-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: var(--shadow-medium);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.4s ease;
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.mode-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.mode-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-heavy);
  border-color: var(--primary-color);
}

.mode-card:hover::before {
  opacity: 0.05;
}

.mode-card:hover .mode-icon {
  transform: scale(1.1) rotate(5deg);
  color: var(--primary-color);
}

.mode-card:hover .mode-title {
  color: var(--primary-color);
}

.mode-icon {
  font-size: 3rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1.2rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.mode-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--text-color);
  transition: color 0.3s ease;
}

.mode-description {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 测试页面样式 */
.test-container {
  max-width: 800px;
  margin: 0 auto;
}

.poem-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.poem-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.poem-author {
  font-size: 1rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.poem-grade {
  display: inline-block;
  font-size: 0.9rem;
  color: white;
  background-color: var(--secondary-color);
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  margin-top: 0.5rem;
}

.poem-content {
  font-size: 1.2rem;
  line-height: 2;
  margin-bottom: 2rem;
}

.poem-line {
  margin-bottom: 0.5rem;
  text-align: center;
}

.blank-input {
  width: 2rem;
  height: 2rem;
  text-align: center;
  font-size: 1.2rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  margin: 0 0.25rem;
}

.blank-input.correct {
  border-color: var(--success-color);
  background-color: rgba(76, 175, 80, 0.1);
}

.blank-input.incorrect {
  border-color: #dc3545;
  background-color: rgba(220, 53, 69, 0.1);
}

/* 正确答案样式 */
.correct-answer {
  display: inline-block;
  color: #28a745;
  font-weight: bold;
  margin-left: 5px;
  position: relative;
  top: -1px;
  font-size: 1.1em;
  animation: fadeIn 0.5s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.options-container {
  margin-top: 1.5rem;
}

.option {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.option:hover {
  background-color: var(--light-gray);
}

.option input[type="radio"] {
  margin-right: 0.75rem;
}

.option.correct {
  border-color: var(--success-color);
  background-color: rgba(76, 175, 80, 0.1);
}

.option.incorrect {
  border-color: var(--error-color);
  background-color: rgba(244, 67, 54, 0.1);
}

.recitation-input {
  width: 100%;
  padding: 1rem;
  font-size: 1.2rem;
  line-height: 1.8;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  resize: vertical;
  font-family: 'Noto Serif SC', serif;
}

.recitation-input.correct {
  border-color: var(--success-color);
  background-color: rgba(76, 175, 80, 0.1);
}

.recitation-input.incorrect {
  border-color: var(--error-color);
  background-color: rgba(244, 67, 54, 0.1);
}

.test-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

.result {
  text-align: center;
  padding: 1rem;
  border-radius: 4px;
  margin: 1.5rem 0;
  font-weight: 600;
}

.result.correct {
  background-color: rgba(76, 175, 80, 0.1);
  color: var(--success-color);
}

.result.incorrect {
  background-color: rgba(244, 67, 54, 0.1);
  color: var(--error-color);
}

/* 收藏按钮 */
.favorite-btn {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: #666;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.favorite-btn:hover {
  border-color: var(--secondary-color);
  color: var(--secondary-color);
}

.favorite-btn.favorited {
  background-color: rgba(248, 180, 0, 0.1);
  border-color: var(--secondary-color);
  color: var(--secondary-color);
}

/* 结果页面样式 */
.result-container {
  max-width: 600px;
  margin: 0 auto;
}

.result-summary {
  text-align: center;
  margin-bottom: 2rem;
}

.result-accuracy {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.result-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.result-detail {
  background-color: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.detail-label {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.25rem;
}

.detail-value {
  font-size: 1.2rem;
  font-weight: 600;
}

.result-evaluation {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.result-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* 历史记录页面样式 */
.history-list {
  margin-bottom: 2rem;
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
}

.history-mode {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.history-date {
  font-size: 0.9rem;
  color: #666;
}

.history-accuracy {
  font-weight: 600;
}

.accuracy-value {
  color: var(--primary-color);
}

.history-actions {
  display: flex;
  gap: 0.5rem;
}

.view-result {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.view-result:hover {
  text-decoration: underline;
}

/* 最近结果卡片 */
.result-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.result-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.3rem;
}

.result-mode {
  font-weight: 600;
}

.result-date {
  font-size: 0.85rem;
  color: #666;
}

.result-body {
  margin-bottom: 0.3rem;
}

.result-accuracy {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.95rem;
}

.result-count {
  font-size: 0.85rem;
  color: #555;
}

.result-footer {
  margin-top: 0.3rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .test-modes {
    flex-direction: column;
    align-items: center;
  }
  
  .mode-card {
    width: 100%;
    max-width: 300px;
  }
  
  .config-row {
    flex-direction: column;
  }
  
  .config-item {
    width: 100%;
  }
  
  .result-details {
    grid-template-columns: 1fr;
  }
  
  .history-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .history-accuracy {
    margin: 0.5rem 0;
  }
}

/* 导出结果样式 */
.export-section {
  margin: 1.5rem 0;
  text-align: center;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.export-note {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #6c757d;
}

/* 历史记录页面样式 */
.history-actions {
  display: flex;
  gap: 0.5rem;
}

.history-stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: 2rem;
  padding: 1.5rem;
}

.stats-item {
  text-align: center;
}

.stats-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
}

.stats-label {
  font-size: 0.9rem;
  color: #6c757d;
  margin-top: 0.25rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

/* 关于系统部分 */
.about-section .card {
  padding: 1.2rem;
}

.about-features {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.8rem;
  width: 100px;
}

.feature i {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.feature span {
  font-weight: 500;
}

/* 页脚样式 */
.footer {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2rem 0;
  margin-top: 4rem;
  text-align: center;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.footer p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.95rem;
}

/* 文本居中工具类 */
.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 2rem;
}

/* 美化历史记录和结果卡片 */
.history-item {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: var(--shadow-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.history-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

/* 最近测试结果区域 */
#recent-results {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-medium);
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-height: 200px;
  position: relative;
}

#recent-results:empty::before {
  content: '暂无测试记录';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-light);
  font-size: 1.1rem;
  font-style: italic;
}

#recent-results:empty::after {
  content: '📚';
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  opacity: 0.5;
}

.result-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(5px);
  border-radius: 12px;
  box-shadow: var(--shadow-light);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  margin-bottom: 1rem;
  border-left: 4px solid var(--primary-color);
}

.result-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
  border-left-color: var(--secondary-color);
}

/* 美化统计数据 */
.history-stats {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: var(--shadow-medium);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stats-item {
  position: relative;
}

.stats-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background: var(--border-color);
}

.stats-item:last-child::after {
  display: none;
}

.stats-value {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 2.2rem;
}

/* 美化导出部分 */
.export-section {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: var(--shadow-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 美化关于功能部分 */
.about-features {
  gap: 1rem;
}

.feature {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.feature:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-light);
}

.feature i {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 2.2rem;
  transition: transform 0.3s ease;
}

.feature:hover i {
  transform: scale(1.1);
}

/* 测试页面特定样式 */
.test-container {
  max-width: 900px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease;
}

.test-instruction {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(74, 111, 165, 0.05);
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
}

.test-instruction p {
  font-size: 1.1rem;
  color: var(--primary-color);
  font-weight: 500;
  margin: 0;
}

.poem-header {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}

.poem-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.poem-author {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  font-style: italic;
}

.poem-grade {
  display: inline-block;
  background: var(--gradient-secondary);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.9rem;
  font-weight: 500;
}

.poem-content {
  font-size: 1.3rem;
  line-height: 2;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--text-color);
}

.poem-line {
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.poem-line:hover {
  transform: translateX(5px);
}

/* 填空输入框样式 */
.blank-input {
  display: inline-block;
  border: none;
  border-bottom: 2px solid var(--primary-color);
  background: transparent;
  padding: 0.2rem 0.5rem;
  margin: 0 0.3rem;
  font-size: inherit;
  font-family: inherit;
  text-align: center;
  min-width: 2em;
  transition: all 0.3s ease;
}

.blank-input:focus {
  outline: none;
  border-bottom-color: var(--secondary-color);
  background: rgba(248, 180, 0, 0.1);
}

.blank-input.correct {
  border-bottom-color: var(--success-color);
  background: rgba(76, 175, 80, 0.1);
  color: var(--success-color);
}

.blank-input.incorrect {
  border-bottom-color: var(--error-color);
  background: rgba(244, 67, 54, 0.1);
  color: var(--error-color);
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.correct-answer {
  color: var(--success-color);
  font-weight: 600;
  background: rgba(76, 175, 80, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-left: 0.5rem;
  animation: fadeIn 0.5s ease;
}

/* 选择题样式 */
.options-container {
  margin: 2rem 0;
}

.option {
  display: block;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.option:hover {
  background: rgba(74, 111, 165, 0.05);
  border-color: var(--primary-color);
  transform: translateX(5px);
}

.option input[type="radio"] {
  margin-right: 1rem;
  accent-color: var(--primary-color);
}

.option.correct {
  background: rgba(76, 175, 80, 0.1);
  border-color: var(--success-color);
  color: var(--success-color);
}

.option.incorrect {
  background: rgba(244, 67, 54, 0.1);
  border-color: var(--error-color);
  color: var(--error-color);
}

/* 默写输入框样式 */
.recitation-input {
  width: 100%;
  min-height: 200px;
  padding: 1.5rem;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-size: 1.2rem;
  line-height: 1.8;
  font-family: inherit;
  resize: vertical;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.recitation-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1);
}

.recitation-input.correct {
  border-color: var(--success-color);
  background: rgba(76, 175, 80, 0.05);
}

.recitation-input.incorrect {
  border-color: var(--error-color);
  background: rgba(244, 67, 54, 0.05);
}

/* 测试操作按钮 */
.test-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.favorite-btn {
  background: transparent;
  border: 2px solid var(--border-color);
  color: var(--text-light);
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.favorite-btn:hover {
  border-color: var(--secondary-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
}

.favorite-btn.favorited {
  background: var(--gradient-secondary);
  border-color: var(--secondary-color);
  color: white;
  box-shadow: 0 4px 15px rgba(248, 180, 0, 0.3);
}

/* 结果消息样式 */
.result {
  padding: 1.5rem;
  border-radius: 12px;
  margin: 1.5rem 0;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 500;
  animation: fadeIn 0.5s ease;
}

.result.correct {
  background: rgba(76, 175, 80, 0.1);
  border: 2px solid var(--success-color);
  color: var(--success-color);
}

.result.incorrect {
  background: rgba(244, 67, 54, 0.1);
  border: 2px solid var(--error-color);
  color: var(--error-color);
}

/* 加载动画 */
#loading {
  padding: 4rem 0;
  color: var(--text-light);
}

#loading p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.spinner i {
  color: var(--primary-color);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 滚动动画 */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* 额外的动画效果 */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* 特殊效果类 */
.animate-slide-left {
  animation: slideInLeft 0.8s ease;
}

.animate-slide-right {
  animation: slideInRight 0.8s ease;
}

.animate-bounce-in {
  animation: bounceIn 0.8s ease;
}

/* 悬浮效果增强 */
.hover-lift {
  transition: all 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}

/* 渐变文字效果 */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gradient-text-secondary {
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 玻璃态效果增强 */
.glass-effect {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* 成功/错误状态动画 */
.success-pulse {
  animation: successPulse 1s ease;
}

.error-shake {
  animation: errorShake 0.5s ease;
}

@keyframes successPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); box-shadow: 0 0 20px rgba(76, 175, 80, 0.5); }
  100% { transform: scale(1); }
}

@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* 加载状态 */
.loading-dots {
  display: inline-block;
}

.loading-dots::after {
  content: '';
  animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
  0%, 20% { content: ''; }
  40% { content: '.'; }
  60% { content: '..'; }
  80%, 100% { content: '...'; }
}

/* 结果页面样式 */
.result-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.result-summary {
  margin: 2rem 0;
  padding: 2rem;
  background: rgba(74, 111, 165, 0.05);
  border-radius: 16px;
  border: 1px solid rgba(74, 111, 165, 0.1);
}

.result-accuracy {
  font-size: 3rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}

.result-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.result-detail {
  background: rgba(255, 255, 255, 0.8);
  padding: 1.5rem;
  border-radius: 12px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.detail-label {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.detail-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
}

.result-evaluation {
  background: rgba(248, 180, 0, 0.1);
  border: 2px solid var(--secondary-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--secondary-color);
}

.result-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

/* 响应式优化 */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .test-modes {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .config-row {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .config-item {
    width: 100%;
    min-width: auto;
  }
  
  .grade-checkboxes {
    justify-content: center;
  }
  
  .about-features {
    flex-direction: column;
    align-items: center;
  }
  
  .feature {
    width: 200px;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .nav-links {
    gap: 1rem;
  }
  
  .nav-link {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
  
  /* 测试页面响应式 */
  .test-container {
    padding: 1.5rem;
  }
  
  .poem-title {
    font-size: 1.6rem;
  }
  
  .poem-content {
    font-size: 1.1rem;
  }
  
  .test-actions {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .test-actions > div {
    display: flex;
    gap: 1rem;
  }
  
  .favorite-btn {
    order: 2;
  }
  
  .recitation-input {
    min-height: 150px;
    font-size: 1rem;
  }
  
  .result-details {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .result-actions {
    flex-direction: column;
    gap: 1rem;
  }
  
  .result-accuracy {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .test-modes {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .poem-title {
    font-size: 1.4rem;
  }
  
  .poem-content {
    font-size: 1rem;
  }
  
  .test-actions > div {
    flex-direction: column;
  }
  
  .result-accuracy {
    font-size: 2rem;
  }
  
  .btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }
}