/* 卡通化全局样式 - 动物主题 */

/* 字体设置 - 更加卡通友好 */
body {
  font-family: 'Comic Sans MS', 'Chalkboard SE', 'Marker Felt', 'Microsoft YaHei', 'PingFang SC', 'Arial Rounded MT Bold', sans-serif !important;
  background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%) !important;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* 动物装饰元素 */
.animal-decoration {
  position: fixed;
  z-index: -1;
  opacity: 0.15;
  font-size: 4em;
  animation: float 15s infinite ease-in-out;
}

.animal-1 { top: 15%; left: 8%; animation-delay: 0s; }
.animal-2 { top: 25%; right: 12%; animation-delay: 3s; }
.animal-3 { bottom: 20%; left: 10%; animation-delay: 6s; }
.animal-4 { bottom: 30%; right: 8%; animation-delay: 9s; }
.animal-5 { top: 40%; left: 20%; animation-delay: 12s; }
.animal-6 { top: 60%; right: 15%; animation-delay: 15s; }

/* 云朵装饰 */
.cloud-decoration {
  position: fixed;
  z-index: -1;
  opacity: 0.15;
  font-size: 4em;
  animation: float 15s infinite ease-in-out;
  animation-play-state: paused; /* 默认暂停 */
  pointer-events: none;
}

.cloud-decoration.in-view {
  animation-play-state: running; /* 可见时播放 */
}

/* 云朵位置 */
.cloud-1 { top: 10%; left: 5%; animation-delay: 0s; }
.cloud-2 { top: 5%; right: 10%; animation-delay: 5s; }
.cloud-3 { bottom: 10%; left: 15%; animation-delay: 10s; }
.cloud-4 { bottom: 5%; right: 20%; animation-delay: 15s; }

/* 漂浮动画 - 降低频率 */
@keyframes float {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  50% { transform: translateY(-20px) translateX(10px); }
}

/* ========== 动物主题按钮样式 ========== */
.el-button {
  border-radius: 30px !important;
  font-weight: bold !important;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25) !important;
  border: 4px solid !important;
  padding: 12px 20px !important;
  font-size: 1em !important;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
  
  /* WCAG AA 合规：最小触摸区域 44x44px */
  min-width: 44px !important;
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.el-button:hover {
  transform: translateY(-6px) scale(1.08) rotate(2deg) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35) !important;
  border-color: #ffd700 !important;
}

/* 动物主题输入框 */
.el-input__inner {
  border-radius: 25px !important;
  border: 4px solid #ffd700 !important;
  padding: 15px 22px !important;
  font-size: 1.2em !important;
  background: white !important;
  box-shadow: inset 0 3px 10px rgba(0,0,0,0.15) !important;
  transition: all 0.3s ease !important;
}

.el-input__inner:focus {
  border-color: #ff6b6b !important;
  box-shadow: inset 0 3px 15px rgba(255, 107, 107, 0.3) !important;
}

/* 动物主题卡片 - 带波浪边框 */
.card-animal {
  background: white !important;
  border-radius: 35px !important;
  box-shadow: 0 15px 40px rgba(0,0,0,0.25) !important;
  border: 5px solid #ffd700 !important;
  padding: 30px !important;
  transition: all 0.5s ease !important;
  position: relative;
  overflow: hidden;
}

.card-animal::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  width: 100%;
  height: 30px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0v46.29c47.79 22.2 103.59 32.17 158 28 70.36-5.37 136.33-33.31 206.8-37.5 73.84-4.36 147.54 16.88 218.2 35.26 69.27 18 138.3 24.88 209.4 13.08 36.15-6 69.85-17.84 104.45-29.34C985.29 5.37 1105.02 0 1200 0v120H0z' fill='%23ffd700'/%3E%3C/svg%3E");
  background-size: cover;
  background-repeat: no-repeat;
}

.card-animal::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 100%;
  height: 30px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0v46.29c47.79 22.2 103.59 32.17 158 28 70.36-5.37 136.33-33.31 206.8-37.5 73.84-4.36 147.54 16.88 218.2 35.26 69.27 18 138.3 24.88 209.4 13.08 36.15-6 69.85-17.84 104.45-29.34C985.29 5.37 1105.02 0 1200 0v120H0z' fill='%23ffd700'/%3E%3C/svg%3E");
  background-size: cover;
  background-repeat: no-repeat;
  transform: scaleY(-1);
}

.card-animal:hover {
  transform: translateY(-10px) scale(1.05) rotate(1deg) !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35) !important;
}

/* 动物主题标题 */
.animal-title {
  font-size: 2.8em !important;
  font-weight: bold !important;
  color: #ff6b6b !important;
  text-shadow: 5px 5px 10px rgba(0,0,0,0.4) !important;
  margin-bottom: 25px !important;
  background: linear-gradient(45deg, #ff6b6b, #ffd700, #4ecdc4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 300% 300%;
  animation: gradientShift 3s ease infinite;
}

/* 动物主题副标题 */
.animal-subtitle {
  font-size: 1.5em !important;
  color: #4ecdc4 !important;
  font-weight: 600 !important;
  text-shadow: 3px 3px 6px rgba(0,0,0,0.3) !important;
  background: linear-gradient(45deg, #4ecdc4, #a8edea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 动物主题分隔线 */
.animal-divider {
  border-top: 5px dashed #ffd700 !important;
  margin: 40px 0 !important;
  position: relative;
}

.animal-divider::before {
  content: '🐾';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2em;
  color: #ff6b6b;
  animation: bounce 2s infinite;
}

/* 动物主题标签 */
.animal-badge {
  background: linear-gradient(135deg, #ff6b6b 0%, #ffa502 100%) !important;
  color: white !important;
  padding: 12px 28px !important;
  border-radius: 30px !important;
  font-weight: bold !important;
  font-size: 1.2em !important;
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5) !important;
  display: inline-block !important;
  border: 3px solid white !important;
  animation: pulse 2s infinite;
}

/* 动物主题进度条 */
.animal-progress {
  height: 15px !important;
  border-radius: 20px !important;
  background: #f0f0f0 !important;
  overflow: hidden !important;
  border: 3px solid #ffd700 !important;
}

.animal-progress .el-progress-bar__outer {
  border-radius: 20px !important;
}

/* 动物主题通知 */
.el-notification {
  border-radius: 30px !important;
  border: 4px solid #ffd700 !important;
  box-shadow: 0 12px 35px rgba(0,0,0,0.4) !important;
  background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%) !important;
}

/* 动物主题对话框 */
.el-dialog {
  border-radius: 40px !important;
  border: 5px solid #ffd700 !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5) !important;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
}

.el-dialog__header {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%) !important;
  border-radius: 35px 35px 0 0 !important;
  padding: 25px !important;
  position: relative;
  overflow: hidden;
}

.el-dialog__header::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0v46.29c47.79 22.2 103.59 32.17 158 28 70.36-5.37 136.33-33.31 206.8-37.5 73.84-4.36 147.54 16.88 218.2 35.26 69.27 18 138.3 24.88 209.4 13.08 36.15-6 69.85-17.84 104.45-29.34C985.29 5.37 1105.02 0 1200 0v120H0z' fill='%23ffd700'/%3E%3C/svg%3E");
  background-size: cover;
  background-repeat: no-repeat;
}

.el-dialog__title {
  font-size: 2em !important;
  font-weight: bold !important;
  color: #ff6b6b !important;
  text-shadow: 3px 3px 6px rgba(0,0,0,0.3) !important;
  background: linear-gradient(45deg, #ff6b6b, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 动物主题表格/列表项 */
.animal-list-item {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
  border-radius: 25px !important;
  padding: 25px !important;
  margin: 15px 0 !important;
  border: 4px solid #e9ecef !important;
  transition: all 0.4s ease !important;
  position: relative;
  overflow: hidden;
}

.animal-list-item::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0v46.29c47.79 22.2 103.59 32.17 158 28 70.36-5.37 136.33-33.31 206.8-37.5 73.84-4.36 147.54 16.88 218.2 35.26 69.27 18 138.3 24.88 209.4 13.08 36.15-6 69.85-17.84 104.45-29.34C985.29 5.37 1105.02 0 1200 0v120H0z' fill='%23ffd700'/%3E%3C/svg%3E");
  background-size: cover;
  background-repeat: no-repeat;
}

.animal-list-item:hover {
  border-color: #ffd700 !important;
  transform: scale(1.05) rotate(1deg) !important;
  box-shadow: 0 12px 35px rgba(255, 215, 0, 0.4) !important;
}

/* 动物主题图标 */
.animal-icon {
  font-size: 2.2em !important;
  transition: transform 0.3s ease !important;
}

.animal-icon:hover {
  animation: bounce 0.6s ease !important;
}

/* 动物主题文本 */
.animal-text {
  font-size: 1.3em !important;
  line-height: 1.7 !important;
  color: #2d3748 !important;
}

/* 动画效果 */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(8deg); }
  75% { transform: rotate(-8deg); }
}

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

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-30px) rotate(5deg); }
  50% { transform: translateY(-20px) rotate(-5deg); }
  75% { transform: translateY(-40px) rotate(3deg); }
}

@keyframes drift {
  0%, 100% { transform: translateX(0px); }
  25% { transform: translateX(-20px); }
  50% { transform: translateX(20px); }
  75% { transform: translateX(-10px); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.wiggle {
  animation: wiggle 2s infinite !important;
}

.pulse {
  animation: pulse 1.8s infinite !important;
}

/* 动物角色动画 */
.animal-character {
  transition: transform 0.3s ease !important;
}

.animal-character:hover {
  animation: animalDance 1.5s ease-in-out !important;
}

/* ========== 装饰性元素样式 ========== */

/* 漂浮的云朵装饰 - 默认暂停，仅在可见时播放 */
.cloud-decoration {
  position: fixed;
  z-index: -1;
  opacity: 0.15;
  font-size: 4em;
  animation: float 15s infinite ease-in-out;
  animation-play-state: paused; /* 默认暂停 */
  pointer-events: none;
}

.cloud-decoration.in-view {
  animation-play-state: running; /* 可见时播放 */
}

/* 云朵位置 */
.cloud-1 { top: 10%; left: 5%; animation-delay: 0s; }
.cloud-2 { top: 5%; right: 10%; animation-delay: 5s; }
.cloud-3 { bottom: 10%; left: 15%; animation-delay: 10s; }
.cloud-4 { bottom: 5%; right: 20%; animation-delay: 15s; }

/* 漂浮动画 - 降低频率 */
@keyframes float {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  50% { transform: translateY(-20px) translateX(10px); }
}

/* ========== 动物主题按钮样式 ========== */
.el-button {
  border-radius: 30px !important;
  font-weight: bold !important;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25) !important;
  border: 4px solid !important;
  padding: 12px 20px !important;
  font-size: 1em !important;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
  
  /* WCAG AA 合规：最小触摸区域 44x44px */
  min-width: 44px !important;
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.el-button:hover {
  transform: translateY(-6px) scale(1.08) rotate(2deg) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35) !important;
  border-color: #ffd700 !important;
}

/* 动物主题输入框 */
.el-input__inner {
  border-radius: 25px !important;
  border: 4px solid #ffd700 !important;
  padding: 15px 22px !important;
  font-size: 1.2em !important;
  background: white !important;
  box-shadow: inset 0 3px 10px rgba(0,0,0,0.15) !important;
  transition: all 0.3s ease !important;
}

.el-input__inner:focus {
  border-color: #ff6b6b !important;
  box-shadow: inset 0 3px 15px rgba(255, 107, 107, 0.3) !important;
}

/* 动物主题卡片 - 带波浪边框 */
.card-animal {
  background: white !important;
  border-radius: 35px !important;
  box-shadow: 0 15px 40px rgba(0,0,0,0.25) !important;
  border: 5px solid #ffd700 !important;
  padding: 30px !important;
  transition: all 0.5s ease !important;
  position: relative;
  overflow: hidden;
}

.card-animal::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  width: 100%;
  height: 30px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0v46.29c47.79 22.2 103.59 32.17 158 28 70.36-5.37 136.33-33.31 206.8-37.5 73.84-4.36 147.54 16.88 218.2 35.26 69.27 18 138.3 24.88 209.4 13.08 36.15-6 69.85-17.84 104.45-29.34C985.29 5.37 1105.02 0 1200 0v120H0z' fill='%23ffd700'/%3E%3C/svg%3E");
  background-size: cover;
  background-repeat: no-repeat;
}

.card-animal::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 100%;
  height: 30px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0v46.29c47.79 22.2 103.59 32.17 158 28 70.36-5.37 136.33-33.31 206.8-37.5 73.84-4.36 147.54 16.88 218.2 35.26 69.27 18 138.3 24.88 209.4 13.08 36.15-6 69.85-17.84 104.45-29.34C985.29 5.37 1105.02 0 1200 0v120H0z' fill='%23ffd700'/%3E%3C/svg%3E");
  background-size: cover;
  background-repeat: no-repeat;
  transform: scaleY(-1);
}

.card-animal:hover {
  transform: translateY(-10px) scale(1.05) rotate(1deg) !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35) !important;
}

/* 动物主题标题 */
.animal-title {
  font-size: 2.8em !important;
  font-weight: bold !important;
  color: #ff6b6b !important;
  text-shadow: 5px 5px 10px rgba(0,0,0,0.4) !important;
  margin-bottom: 25px !important;
  background: linear-gradient(45deg, #ff6b6b, #ffd700, #4ecdc4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 300% 300%;
  animation: gradientShift 3s ease infinite;
}

/* 动物主题副标题 */
.animal-subtitle {
  font-size: 1.5em !important;
  color: #4ecdc4 !important;
  font-weight: 600 !important;
  text-shadow: 3px 3px 6px rgba(0,0,0,0.3) !important;
  background: linear-gradient(45deg, #4ecdc4, #a8edea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 动物主题分隔线 */
.animal-divider {
  border-top: 5px dashed #ffd700 !important;
  margin: 40px 0 !important;
  position: relative;
}

.animal-divider::before {
  content: '🐾';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2em;
  color: #ff6b6b;
  animation: bounce 2s infinite;
}

/* 动物主题标签 */
.animal-badge {
  background: linear-gradient(135deg, #ff6b6b 0%, #ffa502 100%) !important;
  color: white !important;
  padding: 12px 28px !important;
  border-radius: 30px !important;
  font-weight: bold !important;
  font-size: 1.2em !important;
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5) !important;
  display: inline-block !important;
  border: 3px solid white !important;
  animation: pulse 2s infinite;
}

/* 动物主题进度条 */
.animal-progress {
  height: 15px !important;
  border-radius: 20px !important;
  background: #f0f0f0 !important;
  overflow: hidden !important;
  border: 3px solid #ffd700 !important;
}

.animal-progress .el-progress-bar__outer {
  border-radius: 20px !important;
}

/* 动物主题通知 */
.el-notification {
  border-radius: 30px !important;
  border: 4px solid #ffd700 !important;
  box-shadow: 0 12px 35px rgba(0,0,0,0.4) !important;
  background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%) !important;
}

/* 动物主题对话框 */
.el-dialog {
  border-radius: 40px !important;
  border: 5px solid #ffd700 !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5) !important;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
}

.el-dialog__header {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%) !important;
  border-radius: 35px 35px 0 0 !important;
  padding: 25px !important;
  position: relative;
  overflow: hidden;
}

.el-dialog__header::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0v46.29c47.79 22.2 103.59 32.17 158 28 70.36-5.37 136.33-33.31 206.8-37.5 73.84-4.36 147.54 16.88 218.2 35.26 69.27 18 138.3 24.88 209.4 13.08 36.15-6 69.85-17.84 104.45-29.34C985.29 5.37 1105.02 0 1200 0v120H0z' fill='%23ffd700'/%3E%3C/svg%3E");
  background-size: cover;
  background-repeat: no-repeat;
}

.el-dialog__title {
  font-size: 2em !important;
  font-weight: bold !important;
  color: #ff6b6b !important;
  text-shadow: 3px 3px 6px rgba(0,0,0,0.3) !important;
  background: linear-gradient(45deg, #ff6b6b, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 动物主题表格/列表项 */
.animal-list-item {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
  border-radius: 25px !important;
  padding: 25px !important;
  margin: 15px 0 !important;
  border: 4px solid #e9ecef !important;
  transition: all 0.4s ease !important;
  position: relative;
  overflow: hidden;
}

.animal-list-item::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0v46.29c47.79 22.2 103.59 32.17 158 28 70.36-5.37 136.33-33.31 206.8-37.5 73.84-4.36 147.54 16.88 218.2 35.26 69.27 18 138.3 24.88 209.4 13.08 36.15-6 69.85-17.84 104.45-29.34C985.29 5.37 1105.02 0 1200 0v120H0z' fill='%23ffd700'/%3E%3C/svg%3E");
  background-size: cover;
  background-repeat: no-repeat;
}

.animal-list-item:hover {
  border-color: #ffd700 !important;
  transform: scale(1.05) rotate(1deg) !important;
  box-shadow: 0 12px 35px rgba(255, 215, 0, 0.4) !important;
}

/* 动物主题图标 */
.animal-icon {
  font-size: 2.2em !important;
  transition: transform 0.3s ease !important;
}

.animal-icon:hover {
  animation: bounce 0.6s ease !important;
}

/* 动物主题文本 */
.animal-text {
  font-size: 1.3em !important;
  line-height: 1.7 !important;
  color: #2d3748 !important;
}

/* 动画效果 */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(8deg); }
  75% { transform: rotate(-8deg); }
}

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

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-30px) rotate(5deg); }
  50% { transform: translateY(-20px) rotate(-5deg); }
  75% { transform: translateY(-40px) rotate(3deg); }
}

@keyframes drift {
  0%, 100% { transform: translateX(0px); }
  25% { transform: translateX(-20px); }
  50% { transform: translateX(20px); }
  75% { transform: translateX(-10px); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.wiggle {
  animation: wiggle 2s infinite !important;
}

.pulse {
  animation: pulse 1.8s infinite !important;
}

/* 动物角色动画 */
.animal-character {
  transition: transform 0.3s ease !important;
}

.animal-character:hover {
  animation: animalDance 4s infinite ease-in-out;
}

/* ========== 动物角色动画 - 优化为悬停触发 ========== */

/* 旋转文字 - 从无限循环改为悬停触发 */
.animated-text {
  display: inline-block !important;
  transition: transform 0.3s ease !important;
}

.animated-text:hover {
  animation: rotate 1s ease !important;
}

/* 颜色渐变文字 */
.animated-gradient-text {
  background: linear-gradient(
    -45deg,
    #ee7752,
    #e73c7e,
    #23a6d5,
    #23d5ab
  );
  background-size: 300% 300% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: gradientShift 3s ease infinite !important;
  animation-play-state: paused; /* 默认暂停 */
}

.animated-gradient-text:hover {
  animation-play-state: running; /* 悬停时播放 */
}

/* 跳跃元素 - 从无限循环改为悬停触发 */
.jump-element {
  font-size: 2em !important;
  color: #ff6b6b !important;
  transition: transform 0.3s ease !important;
}

.jump-element:hover {
  animation: bounce 0.6s ease !important;
}

/* 脉冲元素 - 从无限循环改为悬停触发 */
.pulse-element {
  display: inline-block !important;
  border: 3px solid white !important;
  transition: all 0.3s ease !important;
}

.pulse-element:hover {
  animation: pulse 0.8s ease !important;
}

/* ========== 动物图标动画 - 优化为悬停触发 ========== */
.animal-icon {
  font-size: 2.2em !important;
  transition: transform 0.3s ease !important;
}

.animal-icon:hover {
  animation: bounce 0.6s ease !important;
}

/* 摇摆动画 - 从无限循环改为悬停触发 */
.wiggle {
  transition: transform 0.3s ease !important;
}

.wiggle:hover {
  animation: wiggle 0.8s ease !important;
}

/* 脉冲动画 - 从无限循环改为悬停触发 */
.pulse {
  transition: transform 0.3s ease !important;
}

.pulse:hover {
  animation: pulse 0.8s ease !important;
}

/* 动物角色动画 - 从无限循环改为悬停触发 */
.animal-character {
  transition: transform 0.3s ease !important;
}

.animal-character:hover {
  animation: animalDance 1.5s ease-in-out !important;
}

/* ========== 游戏元素动画 - 优化为悬停触发 ========== */
.float-element {
  transition: transform 0.4s ease !important;
}

.float-element:hover {
  animation: float 1.5s ease-in-out !important;
}

.pulse-element-game {
  transition: transform 0.3s ease !important;
}

.pulse-element-game:hover {
  animation: pulse 1.2s ease !important;
}

.bounce-element {
  transition: transform 0.2s ease !important;
}

.bounce-element:hover {
  animation: bounce 0.5s ease !important;
}

.slide-in-element {
  animation: slideIn 0.6s ease-out forwards !important;
  animation-play-state: paused; /* 默认暂停 */
}

.slide-in-element.active {
  animation-play-state: running; /* 激活时播放 */
}

/* ========== 彩纸掉落动画 - 优化为事件触发 ========== */
.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: #f00;
  opacity: 0.7;
  animation: confetti-fall 3s linear forwards !important; /* 减少持续时间 */
  animation-play-state: paused; /* 默认暂停 */
}

.confetti-piece.falling {
  animation-play-state: running; /* 掉落时播放 */
}

/* ========== 彩虹渐变动画 - 优化为悬停触发 ========== */
.rainbow-text {
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background: linear-gradient(
    45deg,
    red, orange, yellow, green, blue, indigo, violet
  ) !important;
  background-size: 300% 300% !important;
  animation: rainbowGradient 3s ease infinite !important;
  animation-play-state: paused; /* 默认暂停 */
}

.rainbow-text:hover {
  animation-play-state: running; /* 悬停时播放 */
}

/* 旋转动画 - 从无限循环改为悬停触发 */
.spinning-element {
  background: conic-gradient(
    from 0deg at 50% 50%,
    transparent 70%,
    rgba(0,0,0,0.2) 70%
  ) !important;
  transition: transform 0.5s ease !important;
}

.spinning-element:hover {
  animation: spin 2s linear !important; /* 悬停时播放 */
}

/* ========== 按钮动画 - 优化为悬停触发 ========== */
.el-button.pulse-animation,
button.pulse-animation {
  transition: transform 0.3s ease !important;
}

.el-button.pulse-animation:hover,
button.pulse-animation:hover {
  animation: buttonPulse 0.8s ease-in-out !important;
}

.el-button.bounce-animation,
button.bounce-animation {
  transition: transform 0.3s ease !important;
}

.el-button.bounce-animation:hover,
button.bounce-animation:hover {
  animation: buttonBounce 0.6s ease-in-out !important;
}

.el-button.wiggle-animation,
button.wiggle-animation {
  transition: transform 0.3s ease !important;
}

.el-button.wiggle-animation:hover,
button.wiggle-animation:hover {
  animation: buttonWiggle 0.8s ease-in-out !important;
}

/* 渐变流动 - 从无限循环改为悬停触发 */
button.gradient-flow {
  background-size: 200% 200% !important;
  transition: all 0.3s ease !important;
}

button.gradient-flow:hover {
  animation: gradientFlow 1.5s ease !important;
}

/* 呼吸发光 - 从无限循环改为悬停触发 */
.el-button.glow-breath,
button.glow-breath {
  transition: box-shadow 0.3s ease !important;
}

.el-button.glow-breath:hover,
button.glow-breath:hover {
  animation: glowBreath 1.5s ease-in-out !important;
}

/* 彩虹边框 - 从无限循环改为悬停触发 */
button.rainbow-border {
  border: 4px solid transparent !important;
  border-image-slice: 1 !important;
  transition: all 0.3s ease !important;
}

button.rainbow-border:hover {
  animation: rainbowBorder 1.5s linear !important;
}

/* 闪烁星星 - 从无限循环改为悬停触发 */
.el-button.star-sparkle::before,
button.star-sparkle::before {
  transition: opacity 0.3s ease !important;
}

.el-button.star-sparkle:hover::before,
button.star-sparkle:hover::before {
  animation: starSparkle 1s ease-in-out !important;
}

/* ========== 减少动画干扰 ========== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  /* 保留必要的过渡效果 */
  button,
  input,
  textarea,
  select {
    transition: none !important;
    animation: none !important;
  }
}

/* ========== 工具提示动画 - 优化为事件触发 ========== */
.tooltip {
  box-shadow: 0 5px 20px rgba(0,0,0,0.3) !important;
  z-index: 1000 !important;
  animation: tooltipFade 0.3s ease !important;
  animation-play-state: paused; /* 默认暂停 */
}

.tooltip.visible {
  animation-play-state: running; /* 显示时播放 */
}

/* 响应式断点 */
@media (max-width: 768px) {
  .animal-title {
    font-size: 2.2em !important;
  }
  
  .animal-subtitle {
    font-size: 1.3em !important;
  }
  
  .el-button {
    padding: 12px 22px !important;
    font-size: 1.1em !important;
  }
  
  .card-animal {
    padding: 25px !important;
  }
  
  .animal-decoration {
    font-size: 3em;
  }
  
  .cloud-decoration {
    font-size: 4em;
  }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 游戏化全局样式 */

/* 基础样式重置 */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Comic Sans MS', 'Chalkboard SE', 'Marker Felt', 'Microsoft YaHei', 'Press Start 2P', 'Nunito', cursive, sans-serif;
  background: linear-gradient(135deg, #6ecbf5 0%, #c2e9fb 100%);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* 游戏卡片样式 */
.game-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 20px;
  margin: 15px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border: 3px solid #ffd166;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.game-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: rotate(45deg);
  transition: all 0.6s ease;
  z-index: 1;
}

.game-card:hover::before {
  transform: rotate(45deg) translate(20%, 20%);
}

/* 游戏按钮样式 */
.game-button {
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(37, 117, 252, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.game-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2575fc 0%, #6a11cb 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(37, 117, 252, 0.6);
}

.game-button:active {
  transform: translateY(1px);
}

.game-button:hover::after {
  opacity: 1;
}

.game-button.secondary {
  background: linear-gradient(135deg, #ff9966 0%, #ff5e62 100%);
  box-shadow: 0 5px 15px rgba(255, 94, 98, 0.4);
}

.game-button.secondary:hover {
  box-shadow: 0 8px 20px rgba(255, 94, 98, 0.6);
}

/* 游戏进度条样式 */
.game-progress-bar {
  height: 20px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  margin: 10px 0;
}

.game-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4299e1, #68d391);
  border-radius: 10px;
  width: 0;
  transition: width 0.5s ease;
  position: relative;
}

.game-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(
    -45deg,
    rgba(255,255,255,.2) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255,255,255,.2) 50%,
    rgba(255,255,255,.2) 75%,
    transparent 75%,
    transparent
  );
  background-size: 30px 30px;
  animation: progress-shine 2s infinite linear;
}

@keyframes progress-shine {
  0% { background-position: 0 0; }
  100% { background-position: 30px 30px; }
}

/* 游戏徽章样式 */
.badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  text-align: center;
}

.badge-success {
  background: linear-gradient(135deg, #68d391, #4299e1);
  color: white;
}

.badge-warning {
  background: linear-gradient(135deg, #f6e05e, #f6ad55);
  color: #2d3748;
}

.badge-info {
  background: linear-gradient(135deg, #63b3ed, #4299e1);
  color: white;
}

/* 游戏动画 */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0.5deg); }
  50% { transform: translateY(-15px) rotate(-0.5deg); }
}

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
  40% {transform: translateY(-20px);}
  60% {transform: translateY(-10px);}
}

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

/* 游戏元素动画 */
.float-element {
  animation: float 4s infinite ease-in-out;
}

.pulse-element {
  animation: pulse 2s infinite ease-in-out;
}

.bounce-element {
  animation: bounce 1s infinite;
}

.slide-in-element {
  animation: slideIn 0.6s ease-out forwards;
}

/* 游戏字体样式 */
.game-title-font {
  font-family: 'Press Start 2P', 'Nunito', cursive, sans-serif;
  font-weight: bold;
}

.game-text-font {
  font-family: 'Comic Sans MS', 'Chalkboard SE', 'Marker Felt', 'Microsoft YaHei', sans-serif;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .game-card {
    margin: 10px 0;
    padding: 15px;
  }
  
  .game-button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* 特殊游戏效果 */
.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: #f00;
  opacity: 0.7;
  animation: confetti-fall 5s linear forwards;
}

@keyframes confetti-fall {
  0% { transform: translateY(-100px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* 游戏提示框 */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltip-text {
  visibility: hidden;
  width: 200px;
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 10px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.9rem;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.tooltip .tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
}

/* ========== 儿童友好型优化 - 色彩与动画 ========== */

/* 彩虹渐变背景动画 */
@keyframes rainbowGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 漂浮动画 - 用于装饰元素 */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* 弹跳动画 */
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0px); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

/* 旋转动画 */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 脉冲动画 - 吸引注意力 */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* 摇摆动画 */
@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  75% { transform: rotate(5deg); }
}

/* ========== 卡通化标题样式 ========== */
.game-title-font {
  font-size: 2.5rem !important;
  font-weight: 900 !important;
  background: linear-gradient(45deg, #ff6b6b, #ffd700, #4ecdc4, #ff6b6b);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: rainbowGradient 3s ease infinite;
  text-shadow: 0 4px 8px rgba(0,0,0,0.2);
  letter-spacing: 2px;
  margin-bottom: 10px !important;
  filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

.game-text-font {
  font-size: 1.3rem !important;
  color: #6c5ce7 !important;
  font-weight: 600 !important;
  text-align: center;
  margin-bottom: 20px !important;
}


/* ========== 游戏化卡片样式 ========== */
.game-card {
  background: white !important;
  border-radius: 25px !important;
  box-shadow: 
    0 10px 30px rgba(0,0,0,0.15),
    0 0 0 5px rgba(255,255,255,0.5),
    inset 0 0 30px rgba(255,255,255,0.8) !important;
  border: 4px solid transparent !important;
  padding: 25px !important;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
  position: relative;
  overflow: hidden;
}

.game-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 215, 0, 0.1) 50%,
    transparent 70%
  );
  animation: spin 8s linear infinite;
}

.game-card:hover {
  transform: translateY(-8px) scale(1.02) !important;
  box-shadow: 
    0 20px 50px rgba(0,0,0,0.25),
    0 0 0 5px rgba(255, 255, 255, 0.8),
    inset 0 0 50px rgba(255,255,255,0.9),
    0 0 0 8px rgba(79, 172, 254, 0.2) !important;
  border-color: #ffd700 !important;
}

/* ========== 儿童友好按钮系统 - 完整优化版 ========== */

/* 基础按钮样式 */
.el-button, button {
  border-radius: 50px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
  box-shadow: 
    0 10px 30px rgba(0,0,0,0.2),
    0 0 0 4px rgba(255,255,255,0.3) !important;
  border: 4px solid white !important;
  padding: 15px 35px !important;
  font-size: 1.1em !important;
  min-height: 55px !important; /* WCAG 触摸区域标准 */
  position: relative;
  overflow: hidden;
  cursor: pointer;
  -webkit-appearance: none;
  
  /* 添加内部光晕 */
  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255,255,255,0.4),
      transparent
    );
    transition: left 0.5s ease;
    pointer-events: none;
  }
}

/* 悬停时光晕扫过 */
.el-button:hover::before,
button:hover::before {
  left: 100%;
}

.el-button:hover,
button:hover {
  transform: translateY(-5px) scale(1.08) rotate(2deg) !important;
  box-shadow: 
    0 15px 40px rgba(0,0,0,0.3),
    0 0 0 4px rgba(255,255,255,0.5),
    0 0 0 8px rgba(255,255,255,0.2) !important;
}

/* 按压效果 - iOS 风格 */
.el-button:active,
button:active {
  transform: translateY(2px) scale(0.95) rotate(-1deg) !important;
  box-shadow: 
    0 3px 10px rgba(0,0,0,0.2),
    0 0 0 4px rgba(255,255,255,0.3) !important;
}

/* ========== 按钮类型分类 ========== */

/* 主要按钮 - 渐变蓝色 */
.el-button--primary,
button[type="submit"],
.btn-primary {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
  color: white !important;
  border-color: white !important;
}

.el-button--primary:hover,
button[type="submit"]:hover,
.btn-primary:hover {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%) !important;
  border-color: #ffd700 !important;
}

/* 成功按钮 - 渐变绿色 */
.el-button--success,
button.success,
.btn-success {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
  color: white !important;
  border-color: white !important;
}

.el-button--success:hover,
button.success:hover,
.btn-success:hover {
  background: linear-gradient(135deg, #38ef7d 0%, #11998e 100%) !important;
  border-color: #ffd700 !important;
}

/* 警告按钮 - 渐变橙色 */
.el-button--warning,
button.warning,
.btn-warning {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
  color: white !important;
  border-color: white !important;
}

.el-button--warning:hover,
button.warning:hover,
.btn-warning:hover {
  background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%) !important;
  border-color: #ffd700 !important;
}

/* 危险按钮 - 渐变红色 */
.el-button--danger,
button.danger,
.btn-danger {
  background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%) !important;
  color: white !important;
  border-color: white !important;
}

.el-button--danger:hover,
button.danger:hover,
.btn-danger:hover {
  background: linear-gradient(135deg, #f45c43 0%, #eb3349 100%) !important;
  border-color: #ffd700 !important;
}

/* 信息按钮 - 渐变紫色 */
.el-button--info,
button.info,
.btn-info {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  border-color: white !important;
}

.el-button--info:hover,
button.info:hover,
.btn-info:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
  border-color: #ffd700 !important;
}

/* ========== 按钮尺寸变体 ========== */

/* 大按钮 - 用于主要操作 */
.el-button--large,
.btn-large {
  padding: 15px 35px !important;
  font-size: 1.1em !important;
  min-height: 55px !important;
  border-radius: 50px !important;
}

/* 小按钮 - 用于次要操作 */
.el-button--small,
.btn-small {
  padding: 8px 15px !important;
  font-size: 0.85em !important;
  min-height: 40px !important;
  border-radius: 35px !important;
}

/* ========== 图标按钮优化 ========== */
.el-button.is-circle,
.btn-icon {
  width: 55px !important;
  height: 55px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.el-button [class*="el-icon-"],
button i {
  margin-right: 8px;
  font-size: 1.2em;
}

.el-button.is-circle [class*="el-icon-"],
.btn-icon [class*="el-icon-"] {
  margin-right: 0;
  font-size: 1.5em;
}

/* ========== 加载状态按钮 ========== */
.el-button.is-loading,
button.loading {
  pointer-events: none;
  opacity: 0.8;
}

.el-button.is-loading::after,
button.loading::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: buttonSpin 0.8s linear infinite;
}

@keyframes buttonSpin {
  to { transform: translateX(-50%) rotate(360deg); }
}

/* ========== 禁用状态按钮 ========== */
.el-button.is-disabled,
button:disabled,
.btn-disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

.el-button.is-disabled:hover,
button:disabled:hover,
.btn-disabled:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* ========== 按钮组网格布局 ========== */
.button-group,
.controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  width: 100%;
  margin-top: 15px;
}

/* 移动端优化 */
@media (max-width: 768px) {
  .button-group,
  .controls {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .el-button,
  button {
    font-size: 0.9em !important;
    padding: 10px 18px !important;
  }
}

@media (max-width: 480px) {
  .button-group,
  .controls {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  
  .el-button,
  button {
    min-height: 44px !important;
    min-width: 100% !important;
    font-size: 0.95em !important;
    padding: 12px 16px !important;
  }
  
  /* 图标按钮在小屏上保持圆形 */
  .el-button.is-circle,
  .btn-icon {
    width: 55px !important;
    height: 55px !important;
    flex-shrink: 0;
  }
}

/* 横屏模式优化 */
@media (max-width: 896px) and (orientation: landscape) {
  .button-group,
  .controls {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
  }
  
  .el-button,
  button {
    padding: 10px 16px !important;
    font-size: 0.9em !important;
  }
}

/* 小屏手机优化 */
@media (max-width: 375px) {
  .button-group,
  .controls {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  
  .el-button,
  button {
    min-height: 40px !important;
    font-size: 0.9em !important;
    padding: 10px 14px !important;
  }
}

/* ========== 无障碍访问优化 ========== */

/* 焦点状态增强 */
button:focus,
a:focus,
select:focus,
input:focus,
.el-button:focus {
  outline: 3px solid #f093fb !important;
  outline-offset: 2px !important;
  box-shadow: 
    0 0 0 3px #f093fb,
    0 0 0 6px rgba(240, 147, 251, 0.3) !important;
}

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
  button:focus,
  a:focus,
  .el-button:focus {
    outline-color: #ffd700 !important;
    box-shadow: 
      0 0 0 3px #ffd700,
      0 0 0 6px rgba(255, 215, 0, 0.3) !important;
  }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
  button:focus,
  a:focus,
  .el-button:focus {
    outline: 3px solid white !important;
    outline-offset: 3px !important;
  }
}

/* 减少动画干扰 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ========== 打印样式 ========== */
@media print {
  .el-button,
  button {
    display: none !important;
  }
}

/* ========== 特殊按钮动画效果 ========== */

/* 涟漪效果 - 点击时从中心扩散 */
@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

.el-button.ripple-effect,
button.ripple-effect {
  position: relative;
  overflow: hidden;
}

.el-button.ripple-effect::after,
button.ripple-effect::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.el-button.ripple-effect:active::after,
button.ripple-effect:active::after {
  width: 300px;
  height: 300px;
  opacity: 0;
  transition: 0s;
}

/* 脉冲效果 - 持续吸引注意力 */
@keyframes buttonPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 
      0 10px 30px rgba(0,0,0,0.2),
      0 0 0 4px rgba(255,255,255,0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 
      0 15px 40px rgba(0,0,0,0.3),
      0 0 0 8px rgba(255,255,255,0.4);
  }
}

.el-button.pulse-animation,
button.pulse-animation {
  animation: buttonPulse 2s ease-in-out infinite;
}

/* 弹跳效果 - 儿童友好 */
@keyframes buttonBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.el-button.bounce-animation,
button.bounce-animation {
  animation: buttonBounce 1.5s ease-in-out infinite;
}

/* 摇摆效果 */
@keyframes buttonWiggle {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-3deg);
  }
  75% {
    transform: rotate(3deg);
  }
}

.el-button.wiggle-animation,
button.wiggle-animation {
  animation: buttonWiggle 2s ease-in-out infinite;
}

/* 渐变色彩流动 */
@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.el-button.gradient-flow,
button.gradient-flow {
  background-size: 200% 200% !important;
  animation: gradientFlow 3s ease infinite;
}

/* 3D 按压效果 */
.el-button.press-3d,
button.press-3d {
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 
    0 8px 0 rgba(0,0,0,0.15),
    0 15px 30px rgba(0,0,0,0.2) !important;
}

.el-button.press-3d:hover,
button.press-3d:hover {
  transform: translateY(-3px) !important;
  box-shadow: 
    0 11px 0 rgba(0,0,0,0.15),
    0 18px 35px rgba(0,0,0,0.25) !important;
}

.el-button.press-3d:active,
button.press-3d:active {
  transform: translateY(8px) !important;
  box-shadow: 
    0 0 0 rgba(0,0,0,0.15),
    0 5px 15px rgba(0,0,0,0.2) !important;
}

/* 光晕呼吸效果 */
@keyframes glowBreath {
  0%, 100% {
    box-shadow: 
      0 10px 30px rgba(0,0,0,0.2),
      0 0 0 4px rgba(255,255,255,0.3),
      0 0 20px rgba(255,255,255,0.5);
  }
  50% {
    box-shadow: 
      0 15px 40px rgba(0,0,0,0.3),
      0 0 0 8px rgba(255,255,255,0.5),
      0 0 40px rgba(255,255,255,0.8);
  }
}

.el-button.glow-breath,
button.glow-breath {
  animation: glowBreath 3s ease-in-out infinite;
}

/* 彩虹边框效果 */
@keyframes rainbowBorder {
  0% {
    border-image-source: linear-gradient(45deg, #ff0000, #ff9900, #ffff00, #00ff00, #00ffff, #0000ff, #8b00ff, #ff00ff);
  }
  100% {
    border-image-source: linear-gradient(45deg, #ff00ff, #8b00ff, #0000ff, #00ffff, #00ff00, #ffff00, #ff9900, #ff0000);
  }
}

.el-button.rainbow-border,
button.rainbow-border {
  border: 4px solid transparent !important;
  border-image-slice: 1;
  animation: rainbowBorder 3s linear infinite;
}

/* 星星闪烁效果 */
@keyframes starSparkle {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.95);
  }
}

.el-button.star-sparkle::before,
button.star-sparkle::before {
  animation: starSparkle 2s ease-in-out infinite;
}

/* 成功完成效果 - 带勾动画 */
@keyframes checkmark {
  0% {
    stroke-dashoffset: 100;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

.el-button.success-complete,
button.success-complete {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
  pointer-events: none;
}

/* ========== 无障碍访问优化 ========== */

/* 高对比度模式 */
@media (prefers-contrast: high) {
  .el-button,
  button {
    border-width: 5px !important;
    box-shadow: 0 0 0 3px black !important;
  }
  
  .el-button.is-disabled,
  button:disabled {
    opacity: 0.7 !important;
  }
}

/* 减少动画 */
@media (prefers-reduced-motion: reduce) {
  .el-button,
  button {
    transition: none !important;
    animation: none !important;
  }
  
  .el-button:hover,
  button:hover {
    transform: none !important;
  }
}

/* 焦点可见性增强 */
.el-button:focus-visible,
button:focus-visible {
  outline: 4px solid #ffd700 !important;
  outline-offset: 4px !important;
  box-shadow: 
    0 0 0 4px white,
    0 0 0 8px #ffd700 !important;
}

/* ========== 工具提示增强 ========== */
.el-button[title],
button[title] {
  position: relative;
}

.el-button[title]:hover::after,
button[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.9);
  color: white;
  padding: 8px 15px;
  border-radius: 10px;
  font-size: 0.85rem;
  white-space: nowrap;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  z-index: 1000;
  animation: tooltipFade 0.3s ease;
}

@keyframes tooltipFade {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
/* ============================================
   一屏显示优化 - 全局工具类
   目标：确保所有页面在 PC 和移动端都能一屏完整显示
   ============================================ */

/* ========== 基础布局类 ========== */
.one-screen-container {
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.flex-fill {
  flex: 1;
  min-height: 0; /* 允许弹性子项缩小 */
  overflow: hidden;
}

.overflow-auto {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ========== 紧凑间距类 ========== */
.tight-spacing {
  padding: 8px !important;
  margin: 4px !important;
}

.tight-spacing-sm {
  padding: 6px !important;
  margin: 3px !important;
}

.tight-spacing-xs {
  padding: 4px !important;
  margin: 2px !important;
}

/* ========== 字体大小控制 ========== */
.font-tight {
  font-size: 0.85em !important;
}

.font-tight-sm {
  font-size: 0.75em !important;
}

.font-tight-xs {
  font-size: 0.65em !important;
}

/* ========== 高度限制类 ========== */
.h-screen-minus-header {
  height: calc(100vh - 70px); /* 减去头部高度 */
  max-height: calc(100vh - 70px);
}

.h-screen-minus-footer {
  height: calc(100vh - 50px); /* 减去底部高度 */
  max-height: calc(100vh - 50px);
}

.h-content-limited {
  max-height: calc(100vh - 150px); /* 内容区域最大高度 */
  overflow-y: auto;
}

/* ========== 响应式隐藏类 ========== */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
  
  .compact-mobile {
    padding: 6px !important;
    margin: 3px !important;
  }
  
  .font-mobile-small {
    font-size: 0.75em !important;
  }
}

@media (max-width: 375px) {
  .hide-tiny-mobile {
    display: none !important;
  }
  
  .font-tiny-small {
    font-size: 0.65em !important;
  }
}

/* ========== 滚动条美化（可选） ========== */
.overflow-auto::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.overflow-auto::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 3px;
}

.overflow-auto::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  border-radius: 3px;
}

.overflow-auto::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
}

/* ========== 防止内容溢出 ========== */
.no-wrap {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.truncate-2-lines {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.truncate-3-lines {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========== 弹性布局优化 ========== */
.flex-no-shrink {
  flex-shrink: 0;
}

.flex-grow {
  flex-grow: 1;
}

.flex-basis-zero {
  flex-basis: 0;
}

/* ========== 网格布局优化 ========== */
.grid-compact {
  display: grid;
  gap: 8px;
}

.grid-tight {
  display: grid;
  gap: 4px;
}

/* ========== 按钮紧凑版 ========== */
.btn-compact {
  padding: 6px 12px !important;
  font-size: 0.85rem !important;
  min-height: 32px !important;
}

.btn-compact-sm {
  padding: 4px 10px !important;
  font-size: 0.75rem !important;
  min-height: 28px !important;
}

/* ========== 卡片紧凑版 ========== */
.card-compact {
  padding: 12px !important;
  margin-bottom: 8px !important;
}

.card-compact-sm {
  padding: 10px !important;
  margin-bottom: 6px !important;
}

/* ========== 标题紧凑版 ========== */
.title-compact {
  font-size: 1.2rem !important;
  margin: 0 0 8px 0 !important;
}

.title-compact-sm {
  font-size: 1rem !important;
  margin: 0 0 6px 0 !important;
}

.subtitle-compact {
  font-size: 0.85rem !important;
  margin: 0 0 6px 0 !important;
}

.subtitle-compact-sm {
  font-size: 0.75rem !important;
  margin: 0 0 4px 0 !important;
}

/* ========== 表单元素紧凑版 ========== */
.input-compact {
  padding: 6px 10px !important;
  font-size: 0.85rem !important;
  min-height: 32px !important;
}

.input-compact-sm {
  padding: 4px 8px !important;
  font-size: 0.75rem !important;
  min-height: 28px !important;
}

/* ========== 标签紧凑版 ========== */
.badge-compact {
  padding: 3px 8px !important;
  font-size: 0.75rem !important;
  border-radius: 12px !important;
}

.badge-compact-sm {
  padding: 2px 6px !important;
  font-size: 0.65rem !important;
  border-radius: 10px !important;
}

/* ========== 列表紧凑版 ========== */
.list-compact li {
  padding: 4px 0 !important;
  margin: 2px 0 !important;
}

.list-compact-sm li {
  padding: 3px 0 !important;
  margin: 1px 0 !important;
}

/* ========== 动画禁用（性能优化） ========== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
  }
}

/* ========== 打印样式（隐藏不必要元素） ========== */
@media print {
  .no-print {
    display: none !important;
  }
}

/* ========== 全局基础样式 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent; /* 移除移动端点击高亮 */
}
body {
  margin: 0;
  padding: 0;
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  color: #25314d;
  background: radial-gradient(circle at top left, #d7efff 0%, #f6fbff 42%, #edf4ff 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: none;
  touch-action: manipulation;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  position: relative;
  overflow-x: hidden;
}

/* 背景渐变动画 */
@keyframes gradientShift {
0% { background-position: 0% 50%;
}
50% { background-position: 100% 50%;
}
100% { background-position: 0% 50%;
}
}

/* 漂浮的云朵装饰 - 默认暂停，仅在可见时播放 */
.cloud-decoration {
  position: fixed;
  z-index: -1;
  opacity: 0.3;
  font-size: 5rem;
  animation: float 20s ease-in-out infinite;
  animation-play-state: paused;
  pointer-events: none;
}
.cloud-decoration.in-view {
  animation-play-state: running;
}
.cloud-1 { top: 10%; left: 5%; animation-delay: 0s;
}
.cloud-2 { top: 20%; right: 10%; animation-delay: 5s;
}
.cloud-3 { bottom: 15%; left: 15%; animation-delay: 10s;
}
.cloud-4 { bottom: 25%; right: 5%; animation-delay: 15s;
}

/* 星星装饰 - 默认暂停，仅在可见时播放 */
.star-decoration {
  position: fixed;
  z-index: -1;
  opacity: 0.4;
  font-size: 3rem;
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
  animation: twinkle 3s ease-in-out infinite;
  animation-play-state: paused;
  pointer-events: none;
}
.star-decoration.in-view {
  animation-play-state: running;
}
.star-1 { top: 30%; left: 20%; animation-delay: 0s;
}
.star-2 { top: 50%; right: 25%; animation-delay: 1s;
}
.star-3 { bottom: 35%; left: 30%; animation-delay: 2s;
}
.star-4 { top: 70%; right: 15%; animation-delay: 3s;
}

/* 漂浮动画 */
@keyframes float {
0%, 100% { transform: translateY(0px) translateX(0px);
}
50% { transform: translateY(-30px) translateX(20px);
}
}

/* 闪烁动画 */
@keyframes twinkle {
0%, 100% { opacity: 0.4; transform: scale(1);
}
50% { opacity: 1; transform: scale(1.2);
}
}
#app {
  /* ========== 关键修改：占满整个视口 ========== */
  height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* 禁止垂直滚动 */
  position: relative;
}

/* ========== 头部导航 - 优化高度 ========== */
.header {
  height: 72px;
  min-height: 72px;
  max-height: 72px;
  background: linear-gradient(90deg, #7eb4ff 0%, #679ffc 50%, #4a82de 100%);
  padding: 0;
  box-shadow: 0 10px 30px rgba(53, 95, 165, 0.12);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(10px);
  background-clip: padding-box;
}
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: calc(72px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 16px 0 16px;
  position: relative;
}
.logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1;
}
.logo-frame {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #ffffff 0%, #e5f2ff 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(36, 80, 152, 0.14);
  flex-shrink: 0;
  border: 3px solid rgba(255,255,255,0.95);
}
.logo-emoji {
  font-size: 1.65rem;
  filter: drop-shadow(1px 1px 4px rgba(0,0,0,0.18));
}
.title-text {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1;
}
.title {
  margin: 0;
  font-size: 1.55rem;
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
  font-weight: 800;
  letter-spacing: 0.4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.subtitle {
  margin: 3px 0 0 0;
  color: rgba(255,255,255,0.92);
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

/* 用户操作区域 */
.user-actions {
  display: flex;
  align-items: center;
  gap: 10px; /* 减小间距 */
  flex-shrink: 0;
}
.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-weight: 500;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}
.username {
  font-size: 0.85rem;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.progress-badge {
  background: rgba(255,255,255,0.25);
  padding: 4px 10px;
  border-radius: 12px;
  backdrop-filter: blur(5px);
  font-size: 0.75rem;
  white-space: nowrap;
}
.logout-btn {
  color: white !important;
  font-size: 0.8rem;
  padding: 5px 8px;
  margin-left: 5px;
  min-width: auto;
}
.logout-btn:active {
  opacity: 0.6; /* 移动端按压效果 */
}
.login-btn {
  background: white;
  color: #4facfe;
  border: none;
  padding: 6px 15px;
  border-radius: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  white-space: nowrap;
  font-size: 0.85rem;
  -webkit-appearance: none; /* 移除 iOS 默认样式 */
}
.login-btn:active {
  transform: scale(0.95); /* 移动端按压效果 */
}

/* 主内容区域 - 关键优化 */
.main-content {
  flex: 1;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  padding: 14px;
  max-width: min(1400px, 98vw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.learning-tabs {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(255,255,255,0.96);
  border-radius: 28px;
  box-shadow: 0 22px 70px rgba(37, 49, 77, 0.12);
  border: 1px solid rgba(112, 146, 221, 0.18);
  position: relative;
}

/* 标签页头部 - 支持横向滚动 */
.el-tabs__header {
  margin: 0;
  padding: 14px 14px 8px;
  background: rgba(245, 251, 255, 0.95);
  border-bottom: 1px solid rgba(138, 170, 229, 0.22);
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  flex-shrink: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.el-tabs__header::-webkit-scrollbar {
  display: none;
}
.el-tabs__nav-wrap::after {
  display: none;
}

/* 标签页内容区域 - 可滚动 */
.el-tabs__content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 18px;
  min-height: 0;
}

/* 标签按钮优化 */
.el-tabs__item {
  color: #47546a;
  font-size: 1.02rem;
  font-weight: 700;
  padding: 0 18px;
  height: 58px;
  line-height: 58px;
  margin: 0 10px 10px 0;
  border: none;
  border-radius: 999px;
  background: linear-gradient(145deg, #eff5ff 0%, #dde9ff 100%);
  box-shadow: 0 8px 20px rgba(11, 41, 80, 0.06);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  -webkit-appearance: none;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 标签页图标和文字样式 */
.tab-label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tab-icon {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
}
.tab-text {
  font-size: 0.95rem;
}
.el-tabs__item:hover {
  color: #2f4d94;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(11, 41, 80, 0.1);
  background: linear-gradient(145deg, #dbe7ff 0%, #b8d1ff 100%);
}
.el-tabs__item.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, #5e8cff 0%, #3f71ff 100%);
  box-shadow: 0 14px 28px rgba(63, 113, 255, 0.24);
  transform: translateY(-2px);
  font-weight: 800;
}
.el-tabs__item:active {
  transform: scale(0.98);
}

/* 登录注册弹窗 */
.auth-dialog .el-dialog {
  max-width: 90vw; /* 移动端最大宽度 */
}
.auth-dialog .el-dialog__header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
}
.auth-dialog .el-dialog__title {
  color: white;
  font-size: 1.2rem;
}
.auth-dialog .el-dialog__body {
  padding: 30px 20px 20px 20px;
}
.auth-dialog .el-form-item {
  margin-bottom: 20px;
}
.auth-dialog .el-input__wrapper {
  border-radius: 12px;
  padding: 12px 15px;
}
.auth-dialog .dialog-footer {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}
.auth-dialog .auth-switch {
  text-align: center;
  color: #666;
  font-size: 0.9rem;
  margin-top: 10px;
}
.auth-dialog .auth-switch span {
  margin-right: 8px;
}

/* 内容卡片样式 */
.el-card {
  border: none !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-radius: 10px;
}

/* ========== 响应式设计 - 平板端 (≤768px) ========== */
@media (max-width: 768px) {
.header {
    height: 65px;
    min-height: 65px;
    max-height: 65px;
}
.header-content {
    flex-direction: column;
    height: auto;
    padding: 10px 15px;
    gap: 10px;
}
.logo-section {
    width: 100%;
    justify-content: center;
}
.user-actions {
    width: 100%;
    justify-content: center;
}
.user-info {
    width: 100%;
    justify-content: center;
    font-size: 0.85rem;
    flex-wrap: wrap;
}
.title {
    font-size: 1.3rem;
    text-align: center;
}
  
  /* 主内容区域优化 */
.main-content {
    height: calc(100vh - 65px);
    max-height: calc(100vh - 65px);
    padding: 8px;
}
.learning-tabs {
    border-radius: 15px;
}
  
  /* 标签按钮优化 */
.el-tabs__item {
    padding: 0 12px;
    font-size: 0.95rem;
    height: 55px;
    line-height: 55px;
    margin: 0 5px 8px 5px;
    min-width: max-content; /* 防止文字换行 */
}
  
  /* 标签页可横向滚动 */
.el-tabs__nav-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 5px; /* 预留空间 */
}
.el-tabs__nav-wrap::-webkit-scrollbar {
    display: none;
}
  
  /* 添加滚动提示渐变 */
.el-tabs__header::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.8));
    pointer-events: none;
}
}

/* ========== 响应式设计 - 手机端 (≤480px) ========== */
@media (max-width: 480px) {
.header {
    position: sticky;
    top: 0;
    height: 60px;
    min-height: 60px;
    max-height: 60px;
}
.header-content {
    padding: 8px 10px;
    gap: 8px;
}
.logo-frame {
    width: 40px;
    height: 40px;
}
.logo-emoji {
    font-size: 1.3rem;
}
.title {
    font-size: 1.1rem;
}
.subtitle {
    font-size: 0.65rem;
}
.login-btn {
    padding: 6px 15px;
    font-size: 0.85rem;
}
.user-info {
    font-size: 0.8rem;
    gap: 8px;
}
.username {
    max-width: 80px;
}
.progress-badge {
    padding: 4px 10px;
    font-size: 0.75rem;
}
.logout-btn {
    padding: 4px 8px;
    font-size: 0.8rem;
}
.main-content {
    height: calc(100vh - 60px);
    max-height: calc(100vh - 60px);
    padding: 6px;
}
.learning-tabs {
    border-radius: 8px;
}
.el-tabs__header {
    padding: 8px 5px 0 5px;
}
.el-tabs__item {
    padding: 0 4px;
    font-size: 0.8rem;
    height: 45px;
    line-height: 45px;
    margin: 0 2px 8px 2px;
    border-radius: 10px;
}
  
  /* 弹窗适配 */
.auth-dialog .el-dialog {
    width: 95vw !important;
    max-width: 95vw !important;
    margin: 20px auto;
}
.auth-dialog .el-dialog__header {
    padding: 15px;
}
.auth-dialog .el-dialog__body {
    padding: 20px 15px 15px 15px;
}
.auth-dialog .el-form-item label {
    font-size: 0.9rem;
}
.auth-dialog .el-input__wrapper {
    padding: 10px 12px;
}
}

/* ========== 响应式设计 - 小屏手机 (≤375px) ========== */
@media (max-width: 375px) {
.title {
    font-size: 1rem;
}
.subtitle {
    display: none; /* 超小屏幕隐藏副标题 */
}
.logo-frame {
    width: 40px;
    height: 40px;
}
.logo-emoji {
    font-size: 1.2rem;
}
  
  /* 标签页图标和文字响应式 */
.tab-text {
    display: none; /* 超小屏幕上只显示图标 */
}
.tab-label {
    gap: 0;
}
  
  /* 标签按钮极小屏适配 */
.el-tabs__item {
    font-size: 0.75rem;
    height: 48px; /* 保持最小触摸区域 */
    line-height: 48px;
    padding: 0 10px;
    margin: 0 3px 6px 3px;
}
.main-content {
    padding: 6px;
}
}

/* ========== 横屏模式优化 ========== */
@media (max-width: 896px) and (orientation: landscape) {
.header {
    padding-top: env(safe-area-inset-top);
    height: 55px;
    min-height: 55px;
    max-height: 55px;
}
.header-content {
    height: max(55px, calc(55px + env(safe-area-inset-top)));
    padding: env(safe-area-inset-top) 15px 0 15px;
}
.logo-frame {
    width: 40px;
    height: 40px;
}
.title {
    font-size: 1.2rem;
}
.subtitle {
    display: none; /* 横屏时隐藏副标题 */
}
.user-info {
    gap: 10px;
}
.username {
    max-width: 100px;
}
  
  /* 主内容区域调整 */
.main-content {
    height: calc(100vh - 55px);
    max-height: calc(100vh - 55px);
    padding: 10px;
}
.learning-tabs {
    /* 高度由 flex 自动计算 */
}
  
  /* 标签页横向滚动优化 */
.el-tabs__header {
    padding: 8px 15px 0 15px;
}
.el-tabs__item {
    height: 45px;
    line-height: 45px;
    font-size: 0.85rem;
    padding: 0 12px;
}
}

/* ========== 深色模式支持（Dark Mode） ========== */
@media (prefers-color-scheme: dark) {
body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e0e0e0;
}
.header {
    background: linear-gradient(90deg, #0f3460 0%, #16213e 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.main-content {
    background: transparent;
}
.learning-tabs {
    background: #1e1e2e;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.el-tabs__header {
    background: linear-gradient(180deg, #2a2a3e 0%, #1e1e2e 100%);
    border-bottom-color: #4a4a6a;
}
.el-tabs__item {
    color: #b0b0c0;
    background: linear-gradient(145deg, #2a2a3e 0%, #1e1e2e 100%);
    box-shadow: 3px 3px 6px rgba(0,0,0,0.3),
                inset -1px -1px 2px rgba(255,255,255,0.05);
}
.el-tabs__item:hover {
    color: #ff6b6b;
    background: linear-gradient(145deg, #3a3a4e 0%, #2a2a3e 100%);
}
.el-tabs__item.is-active {
    color: white;
    background: linear-gradient(145deg, #ff9ff3 0%, #f368e0 100%);
    box-shadow: 4px 4px 8px rgba(243, 104, 224, 0.4);
}
  
  /* 弹窗深色模式 */
.auth-dialog .el-dialog {
    background: #1e1e2e;
}
.auth-dialog .el-dialog__header {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
}
.auth-dialog .el-form-item__label {
    color: #e0e0e0;
}
.auth-dialog .el-input__wrapper {
    background: #2a2a3e;
}
  
  /* 卡片深色模式 */
.el-card {
    background: #1e1e2e;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
  
  /* 手势提示深色模式 */
.gesture-hint {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.15) 0%, rgba(0, 242, 254, 0.15) 100%);
    border-color: rgba(79, 172, 254, 0.5);
    color: #64b5f6;
}
}

/* ========== prefers-reduced-motion 支持 ========== */
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
}
.cloud-decoration,
  .star-decoration,
  .title,
  .header::before {
    animation: none !important;
}
}

/* ========== 打印样式支持 ========== */
@media print {
  /* 隐藏不必要的元素 */
.header,
  .user-actions,
  .login-btn,
  .logout-btn,
  .el-tabs__header,
  .gesture-hint,
  .auth-dialog {
    display: none !important;
}
  
  /* 优化打印布局 */
body {
    background: white;
    color: black;
    font-size: 12pt;
    line-height: 1.5;
}
.main-content {
    padding: 0;
    max-width: none;
}
.learning-tabs {
    box-shadow: none;
    border-radius: 0;
    min-height: auto;
}
.el-card {
    box-shadow: none;
    break-inside: avoid; /* 防止卡片被分页切断 */
}
  
  /* 确保内容完整打印 */
a[href]::after {
    content: " (" attr(href) ")";
}
@page {
    margin: 2cm;
    size: A4 portrait;
}
}

/* ========== 网站页脚样式 ========== */
.site-footer {
  background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
  padding: 20px 30px;
  text-align: center;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  position: relative;
  z-index: 100;
  
  /* 安全区域适配 */
  padding-bottom: max(20px, env(safe-area-inset-bottom));
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}
.icp-info {
  margin: 0;
  color: white;
  font-size: 0.9rem;
}
.icp-info a {
  color: white;
  text-decoration: none;
  opacity: 0.9;
  transition: all 0.3s;
}
.icp-info a:hover {
  opacity: 1;
  text-decoration: underline;
}
.icp-info a:active {
  opacity: 0.7;
}

/* ========== 页脚响应式设计 ========== */
@media (max-width: 768px) {
.site-footer {
    padding: 15px 20px;
}
.icp-info {
    font-size: 0.85rem;
}
}
@media (max-width: 480px) {
.site-footer {
    padding: 12px 15px;
}
.icp-info {
    font-size: 0.8rem;
}
}

/* ========== 页脚深色模式 ========== */
@media (prefers-color-scheme: dark) {
.site-footer {
    background: linear-gradient(90deg, #0f3460 0%, #16213e 100%);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}
.icp-info {
    color: #b0b0c0;
}
.icp-info a {
    color: #64b5f6;
}
}

/* ========== 打印时隐藏页脚 ========== */
@media print {
.site-footer {
    display: none;
}
}
