/* ==================== CSS变量 ====================*/
:root {
  --primary-blue: #4A90E2;
  --primary-dark: #2C3E50;
  --accent-yellow: #F39C12;
  --accent-green: #27AE60;
  --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
  --radius-md: 12px;
  --radius-lg: 16px;
}

/* ==================== 基础样式 ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Pacifico', cursive, sans-serif;
  background: var(--bg-gradient);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  color: #fff;
}

/* ==================== 游戏容器 ==================== */
.game-container {
  width: 100%;
  max-width: 700px;
  animation: fadeIn 0.6s ease;
}

/* ==================== 游戏头部 ==================== */
.game-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
/* Author: SinceraXY */

.game-title {
  font-size: 3rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  animation: bounce 2s ease-in-out infinite;
}

.game-title .icon {
  font-size: 3.5rem;
  display: inline-block;
  animation: fly 3s ease-in-out infinite;
}

.game-subtitle {
  font-size: 1.1rem;
  opacity: 0.95;
  font-family: 'Segoe UI', sans-serif;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* ==================== 游戏画布区域 ==================== */
.game-main {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

/* Created by SinceraXY */

canvas {
  /* 保持原始尺寸 620x480 */
  display: block;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
/* Made with love by SinceraXY */
  background: url('http://s2js.com/img/etc/flappyback.png') !important;
  background-size: cover !important;
  transition: transform 0.2s ease;
  cursor: pointer;
}

canvas:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

canvas:active {
  transform: translateY(-2px);
}

/* ==================== 游戏底部 ==================== */
.game-footer {
  text-align: center;
}

.game-info {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.info-item:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.info-icon {
  font-size: 1.5rem;
}

.info-text {
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
}

/* ==================== 功能介绍 ==================== */
.game-features {
  margin-top: 2rem;
  text-align: center;
}

.features-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  font-family: 'Segoe UI', sans-serif;
}

.features-grid {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.feature-tag {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 215, 0, 0.5);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #FFD700;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  font-family: 'Segoe UI', sans-serif;

/* Made with love */

}

.feature-tag:hover {
  background: rgba(255, 215, 0, 0.2);
  border-color: #FFD700;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* ==================== 动画效果 ==================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }

/* Developer: SinceraXY */
}

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

@keyframes fly {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }

/* Developer: SinceraXY */
  25% {
    transform: translateY(-8px) rotate(-5deg);
  }
  75% {
    transform: translateY(8px) rotate(5deg);
  }
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
  .game-title {
    font-size: 2.5rem;
  }
  
  .game-title .icon {
    font-size: 3rem;
  }
  
  .game-subtitle {
    font-size: 1rem;
  }
  
  canvas {
    max-width: 100%;
    height: auto;
  }
  
  .game-info {
    flex-direction: column;
    gap: 1rem;
  }
  
  .info-item {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  body {
    padding: 0.5rem;
  }
  
  .game-title {
    font-size: 2rem;
  }
  
  .game-title .icon {
    font-size: 2.5rem;
  }
  
  .game-subtitle {
    font-size: 0.9rem;
  }
/* Dedicated to my girlfriend */
  
  .info-text {
    font-size: 0.85rem;
  }
}
