/* 猫咪性格测试结果页面样式优化 */

/* 猫咪个人资料区域 */
.cat-profile {
  display: flex;
  align-items: center;
  margin-bottom: 36px;
  position: relative;
}

.cat-profile::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
}

.cat-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  font-weight: 700;
  color: white;
  margin-right: 28px;
  flex-shrink: 0;
  box-shadow: 0 10px 20px rgba(255, 126, 179, 0.2);
  position: relative;
  overflow: hidden;
  animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
  0% { box-shadow: 0 10px 20px rgba(255, 126, 179, 0.2); }
  50% { box-shadow: 0 10px 25px rgba(255, 126, 179, 0.4); }
  100% { box-shadow: 0 10px 20px rgba(255, 126, 179, 0.2); }
}

.cat-avatar::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  background: white;
  border-radius: 50%;
  bottom: 15px;
  right: 15px;
  opacity: 0.2;
  animation: float 6s infinite ease-in-out;
}

.cat-avatar::before {
  content: "";
  position: absolute;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
  top: -20%;
  left: -20%;
  opacity: 0.6;
  animation: rotate 15s infinite linear;
}

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

.cat-info h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(90deg, var(--primary) 0%, #e66a9c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

.cat-info h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.cat-info:hover h2::after {
  transform: scaleX(1);
}

.cat-info p {
  color: var(--neutral-600);
  font-size: 1.1rem;
}

/* 性格类型区域 */
.personality-type {
  padding: 32px;
  background: linear-gradient(135deg, var(--primary-light) 0%, #ffeffa 100%);
  border-radius: 16px;
  margin-bottom: 36px;
  text-align: center;
  position: relative;
  box-shadow: 0 8px 20px rgba(255, 126, 179, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.personality-type:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(255, 126, 179, 0.15);
}

.personality-type::after {
  content: "🐾";
  position: absolute;
  bottom: 10px;
  right: 15px;
  font-size: 24px;
  opacity: 0.2;
}

.personality-type::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5z' fill='rgba(255,255,255,.05)' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.4;
}

.type-code {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
  letter-spacing: 5px;
  text-shadow: 0 2px 5px rgba(255, 126, 179, 0.2);
  position: relative;
  display: inline-block;
}

.type-code::before {
  content: "";
  position: absolute;
  left: -10px;
  right: -10px;
  top: -10px;
  bottom: -10px;
  background: radial-gradient(circle, rgba(255, 126, 179, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.personality-type:hover .type-code::before {
  opacity: 1;
}

.type-name {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--neutral-800);
  position: relative;
  display: inline-block;
}

.type-description {
  color: var(--neutral-700);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 90%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* 卡片样式 */
.card {
  background-color: white;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04), 0 2px 10px rgba(0, 0, 0, 0.03);
  margin-bottom: 36px;
  border: 1px solid var(--neutral-200);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(to bottom, var(--primary), var(--primary-light));
  transition: height 0.3s ease;
}

.card:hover::before {
  height: 100%;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05), 0 5px 15px rgba(0, 0, 0, 0.03);
  border-color: rgba(255, 126, 179, 0.1);
}

/* 详细分析部分 */
.dimension-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--neutral-800);
  position: relative;
  padding-bottom: 12px;
}

.dimension-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.card:hover .dimension-title::after {
  width: 100px;
}

.extended-description {
  color: var(--neutral-700);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* 维度分数图表 */
.dimension {
  margin-bottom: 28px;
}

.dimension:last-child {
  margin-bottom: 0;
}

.dimension-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.dimension-label span {
  font-weight: 500;
  font-size: 1.05rem;
}

.dimension-label span:last-child {
  color: var(--primary);
  font-weight: 600;
  position: relative;
  padding-right: 20px;
}

.dimension-label span:last-child::after {
  content: "✨";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dimension:hover .dimension-label span:last-child::after {
  opacity: 1;
}

.dimension-bar {
  height: 12px;
  background-color: var(--neutral-200);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
}

.dimension-value {
  height: 100%;
  border-radius: 20px;
  position: relative;
  transition: width 1.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  background-size: 20px 20px;
  background-image: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.15) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.15) 75%,
    transparent 75%,
    transparent
  );
}

.dimension-value::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0.1) 100%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

#activity-bar {
  animation: progressAnimation 2s linear infinite;
}

@keyframes progressAnimation {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 40px 0;
  }
}

/* 推荐部分 */
#recommendations h4 {
  color: var(--primary);
  font-size: 1.2rem;
  margin: 24px 0 16px;
  padding-left: 28px;
  position: relative;
  transition: all 0.3s ease;
}

#recommendations h4:first-child {
  margin-top: 0;
}

#recommendations h4::before {
  content: "🐾";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  transition: all 0.3s ease;
}

#recommendations h4:hover {
  transform: translateX(5px);
  color: var(--primary-dark);
}

#recommendations h4:hover::before {
  transform: translateY(-50%) rotate(15deg);
}

#recommendations ul {
  padding-left: 16px;
  margin-bottom: 20px;
}

#recommendations li {
  margin-bottom: 8px;
  padding-left: 8px;
  position: relative;
  line-height: 1.6;
  transition: all 0.3s ease;
}

#recommendations li:hover {
  transform: translateX(3px);
  color: var(--primary-dark);
}

/* 按钮样式 */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 36px;
}

@media (min-width: 640px) {
  .action-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

.btn-lg {
  padding: 12px 24px;
  border-radius: 14px;
  font-weight: 500;
  transition: all 0.3s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-lg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  transition: transform 0.6s;
  z-index: -1;
}

.btn-lg:hover::before {
  transform: translateX(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #e66a9c 100%);
  border: none;
  position: relative;
  z-index: 1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 126, 179, 0.2);
}

.btn-secondary {
  background: white;
  border: 1px solid var(--neutral-300);
  color: var(--neutral-700);
  position: relative;
}

.btn-secondary:hover {
  background-color: var(--neutral-100);
  transform: translateY(-2px);
  border-color: var(--primary-light);
  color: var(--primary);
}

/* 测试结果整体容器样式 */
#test-results {
  margin-top: 40px;
  padding: 30px;
  border-radius: 24px;
  background-color: white;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--neutral-200);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

#test-results:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(-5px);
}

#test-results::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
}

/* 猫咪GIF动画效果增强 */
.gif-spin {
  animation: spin 15s linear infinite;
}

.gif-bounce {
  animation: bounce 2s infinite;
}

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

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

/* GIF悬停效果 */
.gif-hover-effect {
  transition: all 0.3s ease;
  transform-origin: center;
}

.gif-hover-effect:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 30px rgba(255, 126, 179, 0.3);
}

/* GIF互动效果 */
.gif-interactive {
  cursor: pointer;
  position: relative;
}

.gif-interactive:active {
  transform: scale(0.95);
}

.gif-interactive::after {
  content: "🐾";
  position: absolute;
  top: -10px;
  right: -10px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
}

.gif-interactive:hover::after {
  opacity: 1;
  transform: scale(1);
} 