/* ========================================
   宠物系统 V2 - 完整样式表
   ======================================== */

:root {
  --primary-color: #0d6efd;
  --success-color: #198754;
  --warning-color: #ffc107;
  --info-color: #0dcaf0;
}

body {
  background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
  min-height: 100vh;
}

/* ========================================
   宠物CSS系统 - 5种宠物 × 5个等级
   ======================================== */

.pet-container {
  width: 140px;
  height: 140px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pet-sprite {
  width: 100%;
  height: 100%;
  position: relative;
  transition: all 0.3s ease;
}

.pet-body {
  position: absolute;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.pet-eye {
  position: absolute;
  width: 12px;
  height: 14px;
  background: #333;
  border-radius: 50%;
  top: 30%;
}

.pet-eye::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
  top: 2px;
  left: 2px;
}

.pet-eye-left { left: 25%; }
.pet-eye-right { right: 25%; }

.pet-mouth {
  position: absolute;
  bottom: 25%;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 10px;
  border-bottom: 3px solid #333;
  border-radius: 0 0 50% 50%;
}

.pet-blush {
  position: absolute;
  width: 15px;
  height: 8px;
  background: rgba(255, 150, 150, 0.6);
  border-radius: 50%;
  top: 50%;
}

.pet-tail {
  position: absolute;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.pet-ear {
  position: absolute;
  top: -15px;
  width: 0;
  height: 0;
  border-style: solid;
  transition: all 0.3s ease;
}

.pet-wing {
  position: absolute;
  width: 30px;
  height: 40px;
  border-radius: 50% 50% 50% 0;
  transition: all 0.3s ease;
}

.pet-horn {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.3s ease;
}

.pet-aura {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: auraPulse 2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes auraPulse {
  0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}

/* ========================================
   猫咪 - Cat
   ======================================== */

.cat-level-1 .pet-body {
  width: 60px; height: 70px;
  background: linear-gradient(180deg, #ffecd2 0%, #fcb69f 100%);
  top: 35%; left: 50%; transform: translateX(-50%);
}
.cat-level-1 .pet-body::before {
  content: '';
  position: absolute;
  width: 50px; height: 50px;
  background: linear-gradient(180deg, #ffeaa7 0%, #fdcb6e 100%);
  border-radius: 50%;
  top: -25px; left: 50%; transform: translateX(-50%);
}
.cat-level-1 .pet-ear { display: none; }

.cat-level-2 .pet-body {
  width: 70px; height: 65px;
  background: linear-gradient(180deg, #ffecd2 0%, #fcb69f 100%);
  top: 35%; left: 50%; transform: translateX(-50%);
}
.cat-level-2 .pet-ear { display: block; width: 0; height: 0; border-left: 12px solid transparent; border-right: 12px solid transparent; border-bottom: 20px solid #fcb69f; }
.cat-level-2 .pet-ear-left { left: 18%; }
.cat-level-2 .pet-ear-right { right: 18%; }
.cat-level-2 .pet-tail { width: 8px; height: 35px; background: #fcb69f; bottom: 10%; right: 15%; transform: rotate(-30deg); border-radius: 4px; animation: tailWag 0.8s ease-in-out infinite alternate; }

.cat-level-3 .pet-body {
  width: 80px; height: 70px;
  background: linear-gradient(180deg, #ffecd2 0%, #fcb69f 100%);
  top: 30%; left: 50%; transform: translateX(-50%);
}
.cat-level-3 .pet-ear { display: block; width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-bottom: 24px solid #fcb69f; }
.cat-level-3 .pet-ear-left { left: 15%; }
.cat-level-3 .pet-ear-right { right: 15%; }
.cat-level-3 .pet-tail { width: 10px; height: 45px; background: linear-gradient(180deg, #fcb69f, #e17055); bottom: 5%; right: 10%; transform: rotate(-30deg); border-radius: 5px; animation: tailWag 0.5s ease-in-out infinite alternate; }
.cat-level-3 .pet-blush-left { left: 10%; }
.cat-level-3 .pet-blush-right { right: 10%; }

.cat-level-4 .pet-body {
  width: 90px; height: 80px;
  background: linear-gradient(180deg, #ffecd2 0%, #fcb69f 100%);
  top: 25%; left: 50%; transform: translateX(-50%);
  box-shadow: 0 5px 20px rgba(252, 182, 159, 0.5);
}
.cat-level-4 .pet-ear { display: block; width: 0; height: 0; border-left: 16px solid transparent; border-right: 16px solid transparent; border-bottom: 28px solid #fcb69f; }
.cat-level-4 .pet-ear::after { content: ''; position: absolute; top: 8px; left: -8px; width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 14px solid #ffeaa7; }
.cat-level-4 .pet-ear-left { left: 12%; }
.cat-level-4 .pet-ear-right { right: 12%; }
.cat-level-4 .pet-tail { width: 12px; height: 55px; background: linear-gradient(180deg, #fcb69f, #e17055); bottom: 0%; right: 5%; transform: rotate(-25deg); border-radius: 6px; animation: tailWag 0.3s ease-in-out infinite alternate; }
.cat-level-4 .pet-blush-left { left: 8%; }
.cat-level-4 .pet-blush-right { right: 8%; }

.cat-level-5 .pet-body {
  width: 95px; height: 85px;
  background: linear-gradient(180deg, #ffeaa7 0%, #fdcb6e 100%);
  top: 22%; left: 50%; transform: translateX(-50%);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5), 0 5px 20px rgba(253, 203, 110, 0.5);
}
.cat-level-5 .pet-ear { display: block; width: 0; height: 0; border-left: 18px solid transparent; border-right: 18px solid transparent; border-bottom: 30px solid #fdcb6e; }
.cat-level-5 .pet-ear::after { content: ''; position: absolute; top: 10px; left: -10px; width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-bottom: 16px solid #ffeaa7; }
.cat-level-5 .pet-ear-left { left: 10%; }
.cat-level-5 .pet-ear-right { right: 10%; }
.cat-level-5 .pet-tail { width: 14px; height: 60px; background: linear-gradient(180deg, #fdcb6e, #f39c12); bottom: -5%; right: 3%; transform: rotate(-20deg); border-radius: 7px; animation: tailWag 0.2s ease-in-out infinite alternate; }
.cat-level-5 .pet-blush-left { left: 5%; }
.cat-level-5 .pet-blush-right { right: 5%; }
.cat-level-5 .pet-horn { display: block; width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 25px solid #f39c12; }
.cat-level-5 .pet-aura { background: radial-gradient(circle, rgba(253, 203, 110, 0.4) 0%, transparent 70%); }

@keyframes tailWag {
  from { transform: rotate(-30deg); }
  to { transform: rotate(-20deg); }
}

/* ========================================
   小狗 - Dog
   ======================================== */

.dog-level-1 .pet-body {
  width: 65px; height: 65px;
  background: linear-gradient(180deg, #a8e6cf 0%, #88d8b0 100%);
  top: 35%; left: 50%; transform: translateX(-50%); border-radius: 50%;
}
.dog-level-1 .pet-body::before {
  content: ''; position: absolute; width: 55px; height: 55px;
  background: linear-gradient(180deg, #dcedc1 0%, #ffd3a5 100%); border-radius: 50%;
  top: -20px; left: 50%; transform: translateX(-50%);
}
.dog-level-1 .pet-ear { display: none; }

.dog-level-2 .pet-body {
  width: 75px; height: 70px;
  background: linear-gradient(180deg, #a8e6cf 0%, #88d8b0 100%);
  top: 30%; left: 50%; transform: translateX(-50%); border-radius: 50% 50% 45% 45%;
}
.dog-level-2 .pet-ear { display: block; width: 25px; height: 35px; background: #88d8b0; top: 15%; border-radius: 0 0 50% 50%; }
.dog-level-2 .pet-ear-left { left: 5%; transform: rotate(15deg); }
.dog-level-2 .pet-ear-right { right: 5%; transform: rotate(-15deg); }
.dog-level-2 .pet-tail { width: 12px; height: 25px; background: #88d8b0; bottom: 15%; right: 10%; transform: rotate(30deg); border-radius: 6px; animation: dogTail 0.4s ease-in-out infinite alternate; }

.dog-level-3 .pet-body {
  width: 85px; height: 75px;
  background: linear-gradient(180deg, #a8e6cf 0%, #88d8b0 100%);
  top: 25%; left: 50%; transform: translateX(-50%); border-radius: 50% 50% 45% 45%;
}
.dog-level-3 .pet-ear { display: block; width: 28px; height: 40px; background: linear-gradient(180deg, #88d8b0, #56ab91); top: 12%; border-radius: 0 0 50% 50%; }
.dog-level-3 .pet-ear-left { left: 5%; transform: rotate(15deg); }
.dog-level-3 .pet-ear-right { right: 5%; transform: rotate(-15deg); }
.dog-level-3 .pet-tail { width: 14px; height: 35px; background: linear-gradient(180deg, #88d8b0, #56ab91); bottom: 8%; right: 5%; transform: rotate(25deg); border-radius: 7px; animation: dogTail 0.3s ease-in-out infinite alternate; }
.dog-level-3 .pet-blush-left { left: 8%; }
.dog-level-3 .pet-blush-right { right: 8%; }

.dog-level-4 .pet-body {
  width: 95px; height: 85px;
  background: linear-gradient(180deg, #a8e6cf 0%, #56ab91 100%);
  top: 20%; left: 50%; transform: translateX(-50%); border-radius: 50% 50% 45% 45%;
  box-shadow: 0 5px 20px rgba(136, 216, 176, 0.5);
}
.dog-level-4 .pet-ear { display: block; width: 30px; height: 45px; background: linear-gradient(180deg, #56ab91, #3d8b72); top: 8%; border-radius: 0 0 50% 50%; }
.dog-level-4 .pet-ear-left { left: 5%; transform: rotate(15deg); }
.dog-level-4 .pet-ear-right { right: 5%; transform: rotate(-15deg); }
.dog-level-4 .pet-tail { width: 16px; height: 45px; background: linear-gradient(180deg, #56ab91, #3d8b72); bottom: 0%; right: 0%; transform: rotate(20deg); border-radius: 8px; animation: dogTail 0.2s ease-in-out infinite alternate; }
.dog-level-4 .pet-blush-left { left: 5%; }
.dog-level-4 .pet-blush-right { right: 5%; }

.dog-level-5 .pet-body {
  width: 100px; height: 90px;
  background: linear-gradient(180deg, #dcedc1 0%, #a8e6cf 100%);
  top: 18%; left: 50%; transform: translateX(-50%); border-radius: 50% 50% 45% 45%;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5), 0 5px 25px rgba(168, 230, 207, 0.6);
}
.dog-level-5 .pet-ear { display: block; width: 32px; height: 50px; background: linear-gradient(180deg, #a8e6cf, #56ab91); top: 5%; border-radius: 0 0 50% 50%; }
.dog-level-5 .pet-ear-left { left: 5%; transform: rotate(15deg); }
.dog-level-5 .pet-ear-right { right: 5%; transform: rotate(-15deg); }
.dog-level-5 .pet-tail { width: 18px; height: 55px; background: linear-gradient(180deg, #a8e6cf, #56ab91); bottom: -5%; right: -2%; transform: rotate(15deg); border-radius: 9px; animation: dogTail 0.15s ease-in-out infinite alternate; }
.dog-level-5 .pet-blush-left { left: 3%; }
.dog-level-5 .pet-blush-right { right: 3%; }
.dog-level-5 .pet-horn { display: block; width: 50px; height: 20px; background: linear-gradient(90deg, #f39c12, #f1c40f, #f39c12); border-radius: 50% 50% 0 0; top: -12px; }
.dog-level-5 .pet-aura { background: radial-gradient(circle, rgba(168, 230, 207, 0.4) 0%, transparent 70%); }

@keyframes dogTail {
  from { transform: rotate(30deg); }
  to { transform: rotate(45deg); }
}

/* ========================================
   龙 - Dragon
   ======================================== */

.dragon-level-1 .pet-body {
  width: 55px; height: 65px;
  background: linear-gradient(180deg, #a29bfe 0%, #6c5ce7 100%);
  top: 35%; left: 50%; transform: translateX(-50%); border-radius: 45% 45% 50% 50%;
}
.dragon-level-1 .pet-body::before {
  content: ''; position: absolute; width: 45px; height: 50px;
  background: linear-gradient(180deg, #dfe6e9 0%, #b2bec3 100%); border-radius: 50%;
  top: -18px; left: 50%; transform: translateX(-50%); box-shadow: inset 0 5px 15px rgba(108, 92, 231, 0.3);
}
.dragon-level-1 .pet-ear { display: none; }
.dragon-level-1 .pet-eye { background: #6c5ce7; }

.dragon-level-2 .pet-body {
  width: 70px; height: 75px;
  background: linear-gradient(180deg, #a29bfe 0%, #6c5ce7 100%);
  top: 28%; left: 50%; transform: translateX(-50%); border-radius: 45% 45% 50% 50%;
}
.dragon-level-2 .pet-ear { display: block; width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-bottom: 22px solid #6c5ce7; top: 8%; }
.dragon-level-2 .pet-ear-left { left: 18%; }
.dragon-level-2 .pet-ear-right { right: 18%; }
.dragon-level-2 .pet-tail { width: 10px; height: 40px; background: linear-gradient(180deg, #6c5ce7, #5541d9); bottom: 5%; right: 12%; transform: rotate(-20deg); border-radius: 5px; animation: dragonTail 1s ease-in-out infinite alternate; }
.dragon-level-2 .pet-eye { background: #6c5ce7; }

.dragon-level-3 .pet-body {
  width: 85px; height: 85px;
  background: linear-gradient(180deg, #a29bfe 0%, #5541d9 100%);
  top: 22%; left: 50%; transform: translateX(-50%); border-radius: 45% 45% 50% 50%;
}
.dragon-level-3 .pet-ear { display: block; width: 0; height: 0; border-left: 12px solid transparent; border-right: 12px solid transparent; border-bottom: 26px solid #5541d9; top: 5%; }
.dragon-level-3 .pet-ear-left { left: 15%; }
.dragon-level-3 .pet-ear-right { right: 15%; }
.dragon-level-3 .pet-tail { width: 12px; height: 50px; background: linear-gradient(180deg, #5541d9, #4834d4); bottom: 0%; right: 8%; transform: rotate(-15deg); border-radius: 6px; animation: dragonTail 0.8s ease-in-out infinite alternate; }
.dragon-level-3 .pet-wing { display: block; background: rgba(162, 155, 254, 0.6); top: 30%; }
.dragon-level-3 .pet-wing-left { left: -5%; transform: rotate(20deg); }
.dragon-level-3 .pet-wing-right { right: -5%; transform: rotate(-20deg) scaleX(-1); }
.dragon-level-3 .pet-eye { background: #4834d4; }

.dragon-level-4 .pet-body {
  width: 95px; height: 95px;
  background: linear-gradient(180deg, #a29bfe 0%, #4834d4 100%);
  top: 18%; left: 50%; transform: translateX(-50%); border-radius: 45% 45% 50% 50%;
  box-shadow: 0 5px 25px rgba(72, 52, 212, 0.5);
}
.dragon-level-4 .pet-ear { display: block; width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-bottom: 30px solid #4834d4; top: 2%; }
.dragon-level-4 .pet-ear-left { left: 12%; }
.dragon-level-4 .pet-ear-right { right: 12%; }
.dragon-level-4 .pet-tail { width: 14px; height: 60px; background: linear-gradient(180deg, #4834d4, #382fe0); bottom: -8%; right: 5%; transform: rotate(-10deg); border-radius: 7px; animation: dragonTail 0.5s ease-in-out infinite alternate; }
.dragon-level-4 .pet-wing { display: block; background: linear-gradient(180deg, rgba(162, 155, 254, 0.8), rgba(72, 52, 212, 0.6)); width: 40px; height: 55px; top: 25%; }
.dragon-level-4 .pet-wing-left { left: -10%; transform: rotate(15deg); }
.dragon-level-4 .pet-wing-right { right: -10%; transform: rotate(-15deg) scaleX(-1); }
.dragon-level-4 .pet-eye { background: #382fe0; }

.dragon-level-5 .pet-body {
  width: 105px; height: 100px;
  background: linear-gradient(180deg, #ffeaa7 0%, #a29bfe 50%, #4834d4 100%);
  top: 15%; left: 50%; transform: translateX(-50%); border-radius: 45% 45% 50% 50%;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5), 0 5px 30px rgba(72, 52, 212, 0.6);
}
.dragon-level-5 .pet-aura { background: radial-gradient(circle, rgba(162, 155, 254, 0.4) 0%, transparent 70%); }
.dragon-level-5 .pet-ear { display: block; width: 0; height: 0; border-left: 16px solid transparent; border-right: 16px solid transparent; border-bottom: 35px solid #4834d4; top: 0%; }
.dragon-level-5 .pet-ear-left { left: 10%; }
.dragon-level-5 .pet-ear-right { right: 10%; }
.dragon-level-5 .pet-tail { width: 16px; height: 70px; background: linear-gradient(180deg, #a29bfe, #4834d4); bottom: -12%; right: 2%; transform: rotate(-8deg); border-radius: 8px; animation: dragonTail 0.3s ease-in-out infinite alternate; }
.dragon-level-5 .pet-wing { display: block; background: linear-gradient(180deg, rgba(255, 234, 167, 0.8), rgba(162, 155, 254, 0.7)); width: 50px; height: 65px; top: 20%; }
.dragon-level-5 .pet-wing-left { left: -15%; transform: rotate(10deg); }
.dragon-level-5 .pet-wing-right { right: -15%; transform: rotate(-10deg) scaleX(-1); }
.dragon-level-5 .pet-eye { background: linear-gradient(180deg, #ffeaa7, #f39c12); width: 16px; height: 16px; }
.dragon-level-5 .pet-eye::after { width: 6px; height: 6px; }
.dragon-level-5 .pet-horn { display: block; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 30px solid #f39c12; }

@keyframes dragonTail {
  from { transform: rotate(-25deg); }
  to { transform: rotate(-15deg); }
}

/* ========================================
   凤凰 - Phoenix
   ======================================== */

.phoenix-level-1 .pet-body {
  width: 55px; height: 60px;
  background: linear-gradient(180deg, #fd79a8 0%, #e84393 100%);
  top: 38%; left: 50%; transform: translateX(-50%); border-radius: 50% 50% 45% 45%;
}
.phoenix-level-1 .pet-body::before {
  content: ''; position: absolute; width: 48px; height: 48px;
  background: linear-gradient(180deg, #fdcb6e 0%, #e17055 100%); border-radius: 50%;
  top: -20px; left: 50%; transform: translateX(-50%); box-shadow: inset 0 5px 15px rgba(232, 67, 147, 0.3);
}
.phoenix-level-1 .pet-ear { display: none; }

.phoenix-level-2 .pet-body {
  width: 70px; height: 75px;
  background: linear-gradient(180deg, #fd79a8 0%, #e84393 100%);
  top: 30%; left: 50%; transform: translateX(-50%); border-radius: 50% 50% 45% 45%;
}
.phoenix-level-2 .pet-tail { width: 8px; height: 50px; background: linear-gradient(180deg, #e84393, #fd79a8, #fdcb6e); bottom: -5%; left: 50%; transform: translateX(-50%); border-radius: 4px; animation: phoenixTail 1.5s ease-in-out infinite; }
.phoenix-level-2 .pet-wing { display: block; width: 25px; height: 35px; background: rgba(253, 121, 168, 0.5); top: 35%; }
.phoenix-level-2 .pet-wing-left { left: 2%; transform: rotate(10deg); }
.phoenix-level-2 .pet-wing-right { right: 2%; transform: rotate(-10deg) scaleX(-1); }

.phoenix-level-3 .pet-body {
  width: 80px; height: 85px;
  background: linear-gradient(180deg, #fd79a8 0%, #fd79a8 50%, #e84393 100%);
  top: 25%; left: 50%; transform: translateX(-50%); border-radius: 50% 50% 45% 45%;
}
.phoenix-level-3 .pet-tail { width: 10px; height: 65px; background: linear-gradient(180deg, #e84393, #fd79a8, #fdcb6e, #f39c12); bottom: -10%; left: 50%; transform: translateX(-50%); border-radius: 5px; animation: phoenixTail 1.2s ease-in-out infinite; }
.phoenix-level-3 .pet-wing { display: block; width: 35px; height: 45px; background: linear-gradient(180deg, rgba(253, 203, 110, 0.6), rgba(253, 121, 168, 0.5)); top: 30%; }
.phoenix-level-3 .pet-wing-left { left: -5%; transform: rotate(8deg); }
.phoenix-level-3 .pet-wing-right { right: -5%; transform: rotate(-8deg) scaleX(-1); }

.phoenix-level-4 .pet-body {
  width: 90px; height: 95px;
  background: linear-gradient(180deg, #fdcb6e 0%, #fd79a8 50%, #e84393 100%);
  top: 20%; left: 50%; transform: translateX(-50%); border-radius: 50% 50% 45% 45%;
  box-shadow: 0 5px 25px rgba(232, 67, 147, 0.5);
}
.phoenix-level-4 .pet-tail { width: 12px; height: 80px; background: linear-gradient(180deg, #e84393, #fd79a8, #fdcb6e, #f39c12, #e74c3c); bottom: -15%; left: 50%; transform: translateX(-50%); border-radius: 6px; animation: phoenixTail 0.8s ease-in-out infinite; }
.phoenix-level-4 .pet-wing { display: block; width: 45px; height: 55px; background: linear-gradient(180deg, rgba(253, 203, 110, 0.8), rgba(232, 67, 147, 0.6)); top: 25%; }
.phoenix-level-4 .pet-wing-left { left: -10%; transform: rotate(5deg); }
.phoenix-level-4 .pet-wing-right { right: -10%; transform: rotate(-5deg) scaleX(-1); }
.phoenix-level-4 .pet-eye { background: #e84393; }
.phoenix-level-4 .pet-blush-left { left: 5%; }
.phoenix-level-4 .pet-blush-right { right: 5%; }

.phoenix-level-5 .pet-body {
  width: 100px; height: 105px;
  background: linear-gradient(180deg, #ffeaa7 0%, #fdcb6e 30%, #fd79a8 60%, #e84393 100%);
  top: 15%; left: 50%; transform: translateX(-50%); border-radius: 50% 50% 45% 45%;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5), 0 5px 30px rgba(232, 67, 147, 0.6);
}
.phoenix-level-5 .pet-aura { background: radial-gradient(circle, rgba(253, 203, 110, 0.5) 0%, rgba(232, 67, 147, 0.3) 50%, transparent 70%); }
.phoenix-level-5 .pet-tail { width: 14px; height: 100px; background: linear-gradient(180deg, #e84393, #fd79a8, #fdcb6e, #f39c12, #e74c3c, #c0392b); bottom: -25%; left: 50%; transform: translateX(-50%); border-radius: 7px; animation: phoenixTail 0.5s ease-in-out infinite; }
.phoenix-level-5 .pet-wing { display: block; width: 55px; height: 70px; background: linear-gradient(180deg, rgba(255, 234, 167, 0.9), rgba(253, 203, 110, 0.7), rgba(232, 67, 147, 0.5)); top: 18%; }
.phoenix-level-5 .pet-wing-left { left: -15%; transform: rotate(3deg); }
.phoenix-level-5 .pet-wing-right { right: -15%; transform: rotate(-3deg) scaleX(-1); }
.phoenix-level-5 .pet-eye { background: linear-gradient(180deg, #ffeaa7, #f39c12); width: 14px; height: 16px; }
.phoenix-level-5 .pet-eye::after { width: 5px; height: 5px; }
.phoenix-level-5 .pet-blush-left { left: 3%; }
.phoenix-level-5 .pet-blush-right { right: 3%; }
.phoenix-level-5 .pet-horn { display: block; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 25px solid #f39c12; top: -5px; }

@keyframes phoenixTail {
  0%, 100% { transform: translateX(-50%) rotate(-5deg); }
  50% { transform: translateX(-50%) rotate(5deg); }
}

/* ========================================
   独角兽 - Unicorn
   ======================================== */

.unicorn-level-1 .pet-body {
  width: 60px; height: 65px;
  background: linear-gradient(180deg, #dfe6e9 0%, #b2bec3 100%);
  top: 35%; left: 50%; transform: translateX(-50%); border-radius: 50%;
}
.unicorn-level-1 .pet-body::before {
  content: ''; position: absolute; width: 52px; height: 52px;
  background: linear-gradient(180deg, #ffeaa7 0%, #fab1a0 100%); border-radius: 50%;
  top: -22px; left: 50%; transform: translateX(-50%); box-shadow: inset 0 5px 15px rgba(250, 177, 160, 0.4);
}
.unicorn-level-1 .pet-ear { display: none; }

.unicorn-level-2 .pet-body {
  width: 75px; height: 80px;
  background: linear-gradient(180deg, #dfe6e9 0%, #b2bec3 100%);
  top: 28%; left: 50%; transform: translateX(-50%); border-radius: 50% 50% 45% 45%;
}
.unicorn-level-2 .pet-ear { display: block; width: 20px; height: 30px; background: linear-gradient(180deg, #fab1a0, #e17055); top: 12%; border-radius: 50% 50% 0 0; }
.unicorn-level-2 .pet-ear-left { left: 10%; transform: rotate(20deg); }
.unicorn-level-2 .pet-ear-right { right: 10%; transform: rotate(-20deg); }
.unicorn-level-2 .pet-horn { display: block; width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 25px solid #fdcb6e; top: 0%; }
.unicorn-level-2 .pet-tail { width: 8px; height: 35px; background: linear-gradient(180deg, #fab1a0, #ffeaa7, #dfe6e9); bottom: 10%; right: 10%; transform: rotate(-25deg); border-radius: 4px; animation: unicornTail 1.2s ease-in-out infinite alternate; }

.unicorn-level-3 .pet-body {
  width: 85px; height: 90px;
  background: linear-gradient(180deg, #ffeaa7 0%, #fab1a0 50%, #dfe6e9 100%);
  top: 22%; left: 50%; transform: translateX(-50%); border-radius: 50% 50% 45% 45%;
}
.unicorn-level-3 .pet-ear { display: block; width: 22px; height: 35px; background: linear-gradient(180deg, #fab1a0, #e17055); top: 8%; border-radius: 50% 50% 0 0; }
.unicorn-level-3 .pet-ear-left { left: 10%; transform: rotate(18deg); }
.unicorn-level-3 .pet-ear-right { right: 10%; transform: rotate(-18deg); }
.unicorn-level-3 .pet-horn { display: block; width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-bottom: 35px solid #fdcb6e; top: -8%; }
.unicorn-level-3 .pet-horn::after { content: ''; position: absolute; top: 20px; left: -8px; width: 16px; height: 10px; background: linear-gradient(90deg, #fdcb6e, #f1c40f, #fdcb6e); border-radius: 0 0 50% 50%; }
.unicorn-level-3 .pet-tail { width: 10px; height: 50px; background: linear-gradient(180deg, #fab1a0, #ffeaa7, #a29bfe, #dfe6e9); bottom: 0%; right: 5%; transform: rotate(-20deg); border-radius: 5px; animation: unicornTail 1s ease-in-out infinite alternate; }
.unicorn-level-3 .pet-blush-left { left: 8%; }
.unicorn-level-3 .pet-blush-right { right: 8%; }

.unicorn-level-4 .pet-body {
  width: 95px; height: 100px;
  background: linear-gradient(180deg, #ffeaa7 0%, #fab1a0 40%, #fd79a8 70%, #dfe6e9 100%);
  top: 18%; left: 50%; transform: translateX(-50%); border-radius: 50% 50% 45% 45%;
  box-shadow: 0 5px 25px rgba(253, 121, 168, 0.4);
}
.unicorn-level-4 .pet-ear { display: block; width: 25px; height: 40px; background: linear-gradient(180deg, #fab1a0, #e17055); top: 5%; border-radius: 50% 50% 0 0; }
.unicorn-level-4 .pet-ear-left { left: 8%; transform: rotate(15deg); }
.unicorn-level-4 .pet-ear-right { right: 8%; transform: rotate(-15deg); }
.unicorn-level-4 .pet-horn { display: block; width: 0; height: 0; border-left: 12px solid transparent; border-right: 12px solid transparent; border-bottom: 45px solid; border-image: linear-gradient(180deg, #f1c40f, #fab1a0, #fd79a8) 1; top: -12%; }
.unicorn-level-4 .pet-horn::after { content: ''; position: absolute; top: 28px; left: -10px; width: 20px; height: 12px; background: linear-gradient(90deg, #fd79a8, #f1c40f, #fd79a8); border-radius: 0 0 50% 50%; }
.unicorn-level-4 .pet-tail { width: 12px; height: 65px; background: linear-gradient(180deg, #fab1a0, #ffeaa7, #a29bfe, #fd79a8, #fab1a0); bottom: -8%; right: 2%; transform: rotate(-15deg); border-radius: 6px; animation: unicornTail 0.7s ease-in-out infinite alternate; }
.unicorn-level-4 .pet-blush-left { left: 5%; }
.unicorn-level-4 .pet-blush-right { right: 5%; }
.unicorn-level-4 .pet-wing { display: block; background: linear-gradient(180deg, rgba(255, 234, 167, 0.7), rgba(253, 121, 168, 0.5)); width: 35px; height: 50px; top: 28%; }
.unicorn-level-4 .pet-wing-left { left: -8%; transform: rotate(12deg); }
.unicorn-level-4 .pet-wing-right { right: -8%; transform: rotate(-12deg) scaleX(-1); }

.unicorn-level-5 .pet-body {
  width: 105px; height: 110px;
  background: linear-gradient(180deg, #ffeaa7 0%, #fab1a0 25%, #fd79a8 50%, #a29bfe 75%, #dfe6e9 100%);
  top: 12%; left: 50%; transform: translateX(-50%); border-radius: 50% 50% 45% 45%;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5), 0 5px 30px rgba(253, 121, 168, 0.5);
}
.unicorn-level-5 .pet-aura { background: radial-gradient(circle, rgba(255, 234, 167, 0.5) 0%, rgba(253, 121, 168, 0.3) 50%, transparent 70%); }
.unicorn-level-5 .pet-ear { display: block; width: 28px; height: 45px; background: linear-gradient(180deg, #fab1a0, #fd79a8); top: 0%; border-radius: 50% 50% 0 0; }
.unicorn-level-5 .pet-ear-left { left: 6%; transform: rotate(12deg); }
.unicorn-level-5 .pet-ear-right { right: 6%; transform: rotate(-12deg); }
.unicorn-level-5 .pet-horn { display: block; width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-bottom: 55px solid; border-image: linear-gradient(180deg, #ffeaa7, #f1c40f, #fab1a0, #fd79a8, #a29bfe) 1; top: -18%; }
.unicorn-level-5 .pet-horn::after { content: ''; position: absolute; top: 38px; left: -12px; width: 24px; height: 14px; background: linear-gradient(90deg, #a29bfe, #f1c40f, #fd79a8, #f1c40f, #a29bfe); border-radius: 0 0 50% 50%; }
.unicorn-level-5 .pet-tail { width: 14px; height: 80px; background: linear-gradient(180deg, #fab1a0, #ffeaa7, #a29bfe, #fd79a8, #fab1a0, #ffeaa7); bottom: -15%; right: -2%; transform: rotate(-10deg); border-radius: 7px; animation: unicornTail 0.5s ease-in-out infinite alternate; }
.unicorn-level-5 .pet-blush-left { left: 2%; }
.unicorn-level-5 .pet-blush-right { right: 2%; }
.unicorn-level-5 .pet-wing { display: block; background: linear-gradient(180deg, rgba(255, 234, 167, 0.8), rgba(162, 155, 254, 0.6), rgba(253, 121, 168, 0.4)); width: 50px; height: 65px; top: 20%; }
.unicorn-level-5 .pet-wing-left { left: -12%; transform: rotate(8deg); }
.unicorn-level-5 .pet-wing-right { right: -12%; transform: rotate(-8deg) scaleX(-1); }
.unicorn-level-5 .pet-eye { background: linear-gradient(180deg, #ffeaa7, #fd79a8); width: 14px; height: 16px; }

@keyframes unicornTail {
  from { transform: rotate(-30deg); }
  to { transform: rotate(-20deg); }
}

/* ========================================
   宠物展示区域
   ======================================== */

.pet-showcase {
  background: linear-gradient(135deg, #667eea22 0%, #764ba222 100%);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pet-avatar-container {
  position: relative;
  display: inline-block;
}

.pet-avatar-new {
  width: 160px;
  height: 160px;
  margin: 0 auto 20px;
  animation: petBounce 2s ease-in-out infinite;
}

@keyframes petBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.level-badge {
  display: inline-block;
  padding: 10px 30px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  border-radius: 50px;
  font-size: 20px;
  font-weight: bold;
  box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
  position: relative;
  overflow: hidden;
}

.level-badge::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.3) 50%, transparent 60%);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

/* ========================================
   加分动画特效
   ======================================== */

.points-animation {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
}

.floating-point {
  position: absolute;
  font-size: 28px;
  font-weight: bold;
  color: #f1c40f;
  text-shadow: 0 0 10px rgba(241, 196, 15, 0.8);
  animation: floatUp 1.5s ease-out forwards;
}

@keyframes floatUp {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-100px) scale(1.5); }
}

.floating-star {
  position: absolute;
  font-size: 24px;
  animation: starFly 1.2s ease-out forwards;
}

@keyframes starFly {
  0% { opacity: 1; transform: translate(0, 0) rotate(0deg) scale(1); }
  100% { opacity: 0; transform: translate(var(--star-x), var(--star-y)) rotate(360deg) scale(0); }
}

/* ========================================
   班级大屏模式
   ======================================== */

.fullscreen-display {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  z-index: 10000;
  display: none;
  overflow: hidden;
}

.fullscreen-display.active {
  display: block;
}

.fullscreen-header {
  text-align: center;
  padding: 30px;
  color: white;
}

.fullscreen-header h1 {
  font-size: 48px;
  margin-bottom: 10px;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.fullscreen-content {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: calc(100vh - 150px);
  padding: 0 50px;
}

.fullscreen-leaderboard {
  width: 40%;
  max-height: 70vh;
  overflow-y: auto;
}

.fullscreen-leaderboard-item {
  display: flex;
  align-items: center;
  padding: 15px 25px;
  margin: 10px 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  color: white;
  transition: all 0.3s ease;
}

.fullscreen-leaderboard-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.02);
}

.fullscreen-leaderboard-item.top-1 {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.3), rgba(255, 179, 71, 0.3));
  border: 2px solid #ffd700;
}

.fullscreen-leaderboard-item.top-2 {
  background: linear-gradient(90deg, rgba(192, 192, 192, 0.3), rgba(168, 168, 168, 0.3));
  border: 2px solid #c0c0c0;
}

.fullscreen-leaderboard-item.top-3 {
  background: linear-gradient(90deg, rgba(205, 127, 50, 0.3), rgba(184, 115, 51, 0.3));
  border: 2px solid #cd7f32;
}

.fullscreen-rank {
  font-size: 28px;
  font-weight: bold;
  width: 60px;
  text-align: center;
}

.fullscreen-pet {
  width: 60px;
  height: 60px;
  margin: 0 20px;
}

.fullscreen-info {
  flex: 1;
}

.fullscreen-name {
  font-size: 24px;
  font-weight: bold;
}

.fullscreen-points {
  font-size: 18px;
  color: #f1c40f;
}

.fullscreen-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 36px;
  color: white;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.fullscreen-close:hover {
  opacity: 1;
}

.fullscreen-add-points {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 72px;
  font-weight: bold;
  color: #f1c40f;
  text-shadow: 0 0 30px rgba(241, 196, 15, 0.8);
  animation: addPointsFlash 1s ease-out forwards;
  pointer-events: none;
}

@keyframes addPointsFlash {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  30% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5) translateY(-50px); }
}

.fullscreen-levelup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  animation: levelUpShow 2s ease-out forwards;
  pointer-events: none;
}

@keyframes levelUpShow {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0); }
  20% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
  40% { transform: translate(-50%, -50%) scale(1); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); }
}

.fullscreen-levelup h2 {
  font-size: 64px;
  color: #f1c40f;
  text-shadow: 0 0 30px rgba(241, 196, 15, 0.8);
  margin-bottom: 20px;
}

.fullscreen-levelup p {
  font-size: 36px;
  color: white;
}

/* ========================================
   练习模式样式
   ======================================== */

.mode-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.mode-btn {
  flex: 1;
  min-width: 140px;
  padding: 15px;
  border: 2px solid #dee2e6;
  border-radius: 15px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

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

.mode-btn.active {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, #667eea22 0%, #764ba222 100%);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.mode-btn i {
  font-size: 28px;
  margin-bottom: 8px;
  display: block;
}

.mode-btn span {
  font-size: 14px;
  font-weight: 600;
}

/* 选择题模式 */
.quiz-option {
  padding: 20px 30px;
  margin: 10px 0;
  border: 2px solid #dee2e6;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 18px;
}

.quiz-option:hover {
  border-color: var(--primary-color);
  background: #f8f9fa;
}

.quiz-option.selected {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, #667eea22 0%, #764ba222 100%);
}

.quiz-option.correct {
  border-color: #198754;
  background: linear-gradient(135deg, #19875422 0%, #38ef7d22 100%);
}

.quiz-option.wrong {
  border-color: #dc3545;
  background: linear-gradient(135deg, #dc354522 0%, #f45c4322 100%);
}

/* 拼写模式 */
.spelling-input {
  font-size: 32px;
  text-align: center;
  padding: 20px;
  border-radius: 15px;
  letter-spacing: 5px;
}

.spelling-hint {
  font-size: 14px;
  color: #6c757d;
  margin-top: 10px;
}

/* 进度条 */
.quiz-progress {
  height: 8px;
  border-radius: 4px;
  margin-bottom: 20px;
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  transition: width 0.3s ease;
}

/* ========================================
   原有的其他样式
   ======================================== */

.scoring-btn {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  font-size: 22px;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.scoring-btn:hover {
  transform: scale(1.05);
}

.scoring-btn:active {
  transform: scale(0.95);
}

.scoring-btn-correct {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  border: none;
  color: white;
}

.scoring-btn-wrong {
  background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
  border: none;
  color: white;
}

.scoring-word {
  font-size: 64px;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 10px;
  animation: fadeIn 0.3s ease;
}

.scoring-meaning {
  font-size: 26px;
  color: #7f8c8d;
  animation: fadeIn 0.3s ease 0.1s both;
}

.word-card {
  padding: 40px;
  border-radius: 20px;
  background: white;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  animation: scaleIn 0.3s ease;
}

.result-score {
  font-size: 100px;
  font-weight: bold;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.rank-1 {
  background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
  color: white;
}

.rank-2 {
  background: linear-gradient(135deg, #c0c0c0 0%, #a8a8a8 100%);
  color: white;
}

.rank-3 {
  background: linear-gradient(135deg, #cd7f32 0%, #b87333 100%);
  color: white;
}

.nav-pills .nav-link {
  color: #495057;
  border-radius: 20px;
  padding: 10px 20px;
  margin: 0 5px;
  transition: all 0.2s;
}

.nav-pills .nav-link:hover {
  background-color: #e9ecef;
}

.nav-pills .nav-link.active {
  background-color: var(--primary-color);
  color: white;
}

.card {
  border: none;
  border-radius: 15px;
  transition: box-shadow 0.3s;
}

.card:hover {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%);
  transform: translateY(-2px);
}

.btn-success {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  border: none;
}

.btn-success:hover {
  background: linear-gradient(135deg, #0f8a80 0%, #30d66d 100%);
  transform: translateY(-2px);
}

.modal-content {
  border-radius: 20px;
  border: none;
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.modal-header .btn-close {
  filter: brightness(0) invert(1);
}

.form-control, .form-select {
  border-radius: 10px;
  border: 2px solid #e9ecef;
  padding: 12px 15px;
  transition: all 0.2s;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.form-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 8px;
}

.fade-in {
  animation: fadeIn 0.3s ease;
}

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

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

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #adb5bd;
}

.empty-state i {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.5;
}

.table th {
  font-weight: 600;
  color: #495057;
  border-bottom: 2px solid #dee2e6;
}

.table td {
  vertical-align: middle;
}

.pet-icon {
  font-size: 28px;
  cursor: pointer;
  transition: transform 0.2s;
}

.pet-icon:hover {
  transform: scale(1.2);
}

.difficulty-easy {
  color: #198754;
  font-weight: 600;
}

.difficulty-hard {
  color: #dc3545;
  font-weight: 600;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

@media (max-width: 768px) {
  .scoring-btn {
    width: 140px;
    height: 140px;
    font-size: 18px;
  }
  
  .scoring-word {
    font-size: 48px;
  }
  
  .result-score {
    font-size: 72px;
  }
  
  .pet-avatar-new {
    width: 120px;
    height: 120px;
  }
}
