/* 标题下划线 */
.category-title {
  position: relative;
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
}

.category-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #3B82F6, #8B5CF6);
  border-radius: 3px;
}

.category-title.text-center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* 成就卡片样式 */
.achievement-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.98));
  border-radius: 16px;
  transition: all 0.3s ease;
  border: 1px solid rgba(59, 130, 246, 0.1);
  overflow: hidden;
  padding: 1.5rem;
  height: 100%;
}

.achievement-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* 成就图标 */
.achievement-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 24px;
  color: white;
  background: linear-gradient(135deg, #3B82F6, #8B5CF6);
}

/* 成就列表样式 */
.achievement-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.achievement-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: rgba(248, 250, 252, 0.7);
}

.achievement-list li:before {
  content: '\f058';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  color: #3B82F6;
}

/* 成就分类导航 */
.achievement-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.achievement-nav-item {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(59, 130, 246, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.achievement-nav-item:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
}

.achievement-nav-item.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
  border-color: rgba(59, 130, 246, 0.5);
  color: #F8FAFC;
}

/* 数字计数器动画 */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.counter-value {
  animation: countUp 1s ease-out forwards;
  opacity: 0;
}

/* Lottie动画相关样式 */
.achievement-unlock-container {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  z-index: 20;
}

.achievement-unlock-text {
  animation: pulse 2s infinite;
  text-shadow: 0 0 15px rgba(59, 130, 246, 0.8);
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* 传奇成就卡片样式 */
.legendary-achievement-card {
  border-radius: 16px;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  height: 100%;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
  transform-style: preserve-3d;
}

.legendary-achievement-card:hover {
  transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
  box-shadow: 0 20px 40px -5px rgba(245, 158, 11, 0.3);
}

.perspective-effect {
  perspective: 1000px;
}

.transform-3d {
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.card-content {
  border-radius: 14px;
  height: 100%;
  padding: 1rem;
}

.legendary-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  position: relative;
  z-index: 10;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}

.legendary-badge {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(251, 191, 36, 0.3));
  color: #fbbf24;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid rgba(245, 158, 11, 0.5);
  display: flex;
  align-items: center;
  backdrop-filter: blur(4px);
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.8);
}

.text-gradient-gold {
  background: linear-gradient(90deg, #f59e0b, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gold-shimmer 2s linear infinite;
  background-size: 200% auto;
}

@keyframes gold-shimmer {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

.rare-pulse {
  animation: rare-pulse 3s ease-in-out infinite;
}

@keyframes rare-pulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(0.98);
  }
  50% {
    opacity: 0.8;
    transform: scale(1);
  }
}

.animate-spin-slow {
  animation: spin 8s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* 视差背景效果 */
.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  transition: transform 0.1s ease-out;
}

.parallax-star {
  position: absolute;
  background-color: #fff;
  border-radius: 50%;
  opacity: 0.5;
  animation: twinkle 3s infinite alternate;
}

@keyframes twinkle {
  0% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
}

/* 媒体查询优化 */
@media (max-width: 768px) {
  .achievement-nav {
    justify-content: center;
  }
  
  .legendary-achievement-card:hover {
    transform: translateY(-5px);
  }
} 