/* 自定义样式 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* 柔和的渐变色 */
:root {
  --purple-light: #f3e8ff;
  --purple-medium: #c084fc;
  --purple-dark: #9333ea;
  --pink-light: #fce7f3;
  --pink-medium: #f472b6;
  --pink-dark: #ec4899;
  --blue-light: #dbeafe;
  --blue-medium: #60a5fa;
  --blue-dark: #3b82f6;
  --green-light: #d1fae5;
  --green-medium: #34d399;
  --green-dark: #10b981;
  --orange-light: #fed7aa;
  --orange-medium: #fb923c;
  --orange-dark: #f97316;
  --yellow-light: #fef3c7;
  --yellow-medium: #fbbf24;
  --beige-light: #fef9f3;
}

/* iPhone 15 外观 */
.phone-container {
  width: 393px;
  height: 852px;
  margin: 20px auto;
  background: #000;
  border-radius: 47px;
  padding: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 39px;
  overflow: hidden;
  position: relative;
}

/* 状态栏 */
.status-bar {
  height: 44px;
  background: linear-gradient(135deg, #f472b6 0%, #c084fc 50%, #60a5fa 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  color: white;
  font-size: 14px;
  font-weight: 600;
}

/* 底部导航栏 */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: white;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-bottom: 20px;
  z-index: 50;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #9ca3af;
  transition: all 0.3s;
  cursor: pointer;
}

.nav-item.active {
  color: #f472b6;
}

.nav-item i {
  font-size: 24px;
}

.nav-item span {
  font-size: 12px;
  font-weight: 500;
}

/* 卡片翻转动画 */
.card-flip {
  perspective: 1000px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.card-flip.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 20px;
}

.card-back {
  transform: rotateY(180deg);
}

/* 游戏按钮动画 */
.game-btn {
  transition: all 0.3s;
}

.game-btn:active {
  transform: scale(0.95);
}

/* 进度条动画 */
.progress-bar {
  transition: width 0.5s ease;
}

/* 成就徽章 */
.badge {
  animation: bounce 0.6s;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* 单词卡片 */
.word-card {
  background: linear-gradient(135deg, #f472b6 0%, #c084fc 50%, #60a5fa 100%);
  border-radius: 24px;
  padding: 30px;
  color: white;
  box-shadow: 0 10px 40px rgba(244, 114, 182, 0.25);
  position: relative;
  overflow: hidden;
}

.word-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-20px, -20px) rotate(180deg); }
}

/* 装饰性背景形状 */
.decorative-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  pointer-events: none;
}

.shape-1 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #f472b6, #c084fc);
  top: -50px;
  right: -50px;
}

.shape-2 {
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, #60a5fa, #34d399);
  bottom: -30px;
  left: -30px;
}

/* 柔和卡片样式 */
.soft-card {
  background: white;
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
}

.soft-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f472b6, #c084fc, #60a5fa);
}

/* 游戏网格 */
.game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* 柔和渐变背景 */
.gradient-soft-1 {
  background: linear-gradient(135deg, #fef3c7 0%, #fce7f3 50%, #e0e7ff 100%);
}

.gradient-soft-2 {
  background: linear-gradient(135deg, #d1fae5 0%, #dbeafe 50%, #f3e8ff 100%);
}

.gradient-soft-3 {
  background: linear-gradient(135deg, #fed7aa 0%, #fce7f3 50%, #e0e7ff 100%);
}

/* 图标容器 */
.icon-container {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.icon-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.3), transparent);
  border-radius: 16px;
}

/* 响应式 */
@media (max-width: 393px) {
  .phone-container {
    width: 100%;
    height: 100vh;
    border-radius: 0;
    margin: 0;
    padding: 0;
  }
  
  .phone-screen {
    border-radius: 0;
  }
}

