/* Labubu游戏合集 - 通用样式 */

/* 自定义CSS变量 */
:root {
  --labubu-pink: #ff69b4;
  --labubu-blue: #4a90e2;
  --labubu-green: #7ed321;
  --labubu-yellow: #f5a623;
  --labubu-purple: #9013fe;
  --labubu-orange: #ff6b35;
  --bg-primary: #fef7ff;
  --bg-secondary: #f8f4ff;
  --text-primary: #2d1b69;
  --text-secondary: #6b46c1;
  --shadow-soft: 0 4px 20px rgba(139, 92, 246, 0.15);
  --shadow-hover: 0 8px 30px rgba(139, 92, 246, 0.25);
  --border-radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 基础重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
}

/* 通用容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 游戏卡片样式 */
.game-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  padding: 24px;
  transition: var(--transition);
  border: 2px solid transparent;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--labubu-pink);
}

/* 按钮样式 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 16px;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--labubu-pink) 0%, var(--labubu-purple) 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 105, 180, 0.4);
}

.btn-secondary {
  background: white;
  color: var(--text-primary);
  border: 2px solid var(--labubu-blue);
}

.btn-secondary:hover {
  background: var(--labubu-blue);
  color: white;
}

/* 标题样式 */
.title {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--labubu-pink) 0%, var(--labubu-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin-bottom: 16px;
}

.subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 32px;
}

/* 游戏网格 */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

/* Labubu角色样式 */
.labubu-character {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  color: white;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}

.labubu-character:hover {
  transform: scale(1.1);
}

.labubu-character::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  background: linear-gradient(45deg, rgba(255,255,255,0.3), rgba(255,255,255,0.1));
  z-index: -1;
}

/* Labubu颜色变体 */
.labubu-pink { background: var(--labubu-pink); }
.labubu-blue { background: var(--labubu-blue); }
.labubu-green { background: var(--labubu-green); }
.labubu-yellow { background: var(--labubu-yellow); }
.labubu-purple { background: var(--labubu-purple); }
.labubu-orange { background: var(--labubu-orange); }

/* 加载动画 */
.loading {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid var(--bg-secondary);
  border-radius: 50%;
  border-top-color: var(--labubu-pink);
  animation: spin 1s ease-in-out infinite;
}

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

/* 成功动画 */
.success-animation {
  animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translate3d(0,0,0);
  }
  40%, 43% {
    transform: translate3d(0,-30px,0);
  }
  70% {
    transform: translate3d(0,-15px,0);
  }
  90% {
    transform: translate3d(0,-4px,0);
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  
  .title {
    font-size: 2rem;
  }
  
  .games-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .game-card {
    padding: 20px;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .title {
    font-size: 1.75rem;
  }
  
  .subtitle {
    font-size: 1rem;
  }
  
  .labubu-character {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}

/* 工具类 */
.text-center { text-align: center; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.hidden { display: none; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-4 { gap: 16px; }
