/* ===== 宠物系统样式 ===== */

.pet-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-xl) var(--space-lg);
  gap: var(--space-lg);
}

/* 宠物展示区 */
.pet-display {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.pet-stage {
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
  border-radius: 50%;
  animation: petFloat 3s ease-in-out infinite;
}

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

.pet-stage svg {
  width: 140px;
  height: 140px;
}

.pet-stage.happy {
  animation: petFloat 2s ease-in-out infinite, petCelebrate 0.6s ease;
}

@keyframes petCelebrate {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.pet-name {
  font-size: var(--font-xl);
  font-weight: 700;
}

.pet-mood {
  font-size: var(--font-lg);
}

.pet-mood.happy { color: var(--success); }
.pet-mood.normal { color: var(--accent-dark); }
.pet-mood.sad { color: var(--text-secondary); }

/* 成长进度 */
.pet-growth {
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.pet-growth .growth-label {
  display: flex;
  justify-content: space-between;
  font-size: var(--font-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

.pet-growth .progress-bar {
  height: 12px;
  background: var(--border);
}

.pet-growth .progress-bar .fill {
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
}

/* 宠物信息卡片 */
.pet-info-grid {
  width: 100%;
  max-width: 400px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.pet-info-item {
  background: var(--surface);
  border-radius: var(--radius);
  padding: var(--space-md);
  text-align: center;
  box-shadow: var(--shadow);
}

.pet-info-item .info-value {
  font-size: var(--font-xl);
  font-weight: 700;
  color: var(--primary-dark);
}

.pet-info-item .info-label {
  font-size: var(--font-sm);
  color: var(--text-secondary);
  margin-top: var(--space-xs);
}

/* 进化阶段预览 */
.evolution-path {
  width: 100%;
  max-width: 400px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.evolution-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  opacity: 0.3;
  transition: opacity 0.3s;
}

.evolution-stage.unlocked {
  opacity: 1;
}

.evolution-stage.current {
  opacity: 1;
  transform: scale(1.15);
}

.evolution-stage .evo-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.evolution-stage .evo-icon svg {
  width: 36px;
  height: 36px;
}

.evolution-stage .evo-name {
  font-size: 10px;
  color: var(--text-secondary);
}

.evolution-arrow {
  color: var(--text-light);
  font-size: var(--font-sm);
}

/* 互动按钮 */
.pet-actions {
  display: flex;
  gap: var(--space-md);
}

.btn-pet-action {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: var(--surface);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: var(--font-base);
  font-weight: 600;
  color: var(--primary-dark);
  transition: all 0.2s;
}

.btn-pet-action:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.btn-pet-action:active {
  transform: translateY(0);
}

/* 宠物对话气泡 */
.pet-speech {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow);
  max-width: 300px;
  text-align: center;
  font-size: var(--font-base);
}

.pet-speech::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid var(--surface);
}
