/* ==========================================
   Sprunki Characters Page - Optimized Design
   ========================================== */

/* 改进背景 - 使用渐变增加视觉吸引力 */
body {
  background: linear-gradient(135deg, #fff5e6 0%, #ffe8cc 50%, #ffd9b3 100%);
  background-attachment: fixed;
  font-family: "Noto Sans JP", "Roboto", sans-serif;
  padding: 0 !important;
  margin: 0;
  line-height: 1.6;
  color: #444;
}

/* 改进内容区域 */
.content {
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 40px 30px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

/* 改进标题 */
h1 {
  color: #ff6b35;
  font-weight: 800;
  font-size: 3em;
  text-align: center;
  margin: 0 0 20px;
  padding: 0 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(255, 107, 53, 0.2);
  letter-spacing: -1px;
}

/* 改进分类标题 - 更突出和有趣 */
.main-cate > h3 {
  color: #fff;
  font-weight: 700;
  font-size: 1.8em;
  margin: 40px 0 25px;
  text-align: center;
  padding: 15px 30px;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
  position: relative;
  display: inline-block;
  width: auto;
  min-width: 200px;
  left: 50%;
  transform: translateX(-50%);
}

.main-cate > h3::before {
  content: "🎵";
  margin-right: 10px;
}

.main-cate[data-category="beats"] > h3::before {
  content: "🥁";
}

.main-cate[data-category="effects"] > h3::before {
  content: "✨";
}

.main-cate[data-category="melodies"] > h3::before {
  content: "🎹";
}

.main-cate[data-category="vocals"] > h3::before {
  content: "🎤";
}

/* 改进分类段落 */
.main-cate > p {
  text-align: center;
  font-size: 1.05em;
  color: #666;
  margin: 0 auto 30px;
  max-width: 800px;
  line-height: 1.8;
}

/* 改进角色卡片网格 */
.items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 改进角色卡片 - 更现代和吸引人 */
.item.box {
  width: 100% !important;
  height: auto;
  border: 3px solid;
  border-radius: 24px;
  padding: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  background: #fff;
}

.item.box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(90deg, currentColor 0%, transparent 100%);
  opacity: 0.6;
}

.item.box:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

/* 卡片内部链接 */
.item.box a {
  text-decoration: none;
  color: inherit;
  display: block;
  padding: 24px;
}

/* 角色名称容器 */
.item.box .name-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.item.box h3 {
  font-size: 26px;
  font-weight: 800;
  margin: 0;
  text-align: center;
  letter-spacing: 0.5px;
}

.item.box .english-name {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* 角色描述 */
.item.box .desc {
  font-size: 15px;
  font-style: italic;
  margin: 16px 0;
  min-height: 45px;
  text-align: center;
  color: #666;
  line-height: 1.5;
}

/* 角色图片容器 */
.item.box > div:has(img),
.item.box .no-link {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 20px 0;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 16px;
  margin: 16px 0;
}

/* GIF容器改进 */
.gif-container {
  position: relative;
  flex: 1;
  max-width: 140px;
}

.item.box img {
  border-radius: 12px;
  border: 3px solid rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.item.box img:hover {
  transform: scale(1.1) rotate(2deg);
  border-color: currentColor;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* GIF徽章 */
.gif-badge {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: rgba(255, 107, 53, 0.9);
  color: white;
  font-size: 10px;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 12px;
  letter-spacing: 0.5px;
}

/* 信息容器 */
.info-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px solid rgba(0, 0, 0, 0.05);
}

.info-container > div {
  font-size: 13px;
  line-height: 1.8;
}

.item.box strong {
  font-size: 14px;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
  color: inherit;
}

.item.box .info-label {
  font-weight: 600;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.6);
}

.item.box .info-text {
  font-size: 13px;
  color: inherit;
  font-weight: 500;
}

/* Category标签 */
.category-label {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* 每个角色的配色优化 - 使用更鲜艳和对比度更高的颜色 */
.item.box[data-character="oren"] {
  background: linear-gradient(135deg, #fff5f0 0%, #ffe5d9 100%);
  border-color: #ff6b35;
  color: #d83f00;
}

.item.box[data-character="raddy"] {
  background: linear-gradient(135deg, #fff0f0 0%, #ffe0e0 100%);
  border-color: #e74c3c;
  color: #c0392b;
}

.item.box[data-character="clukr"] {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-color: #95a5a6;
  color: #34495e;
}

.item.box[data-character="fun-bot"] {
  background: linear-gradient(135deg, #f0f5ff 0%, #d6e4ff 100%);
  border-color: #4169e1;
  color: #1e3a8a;
}

.item.box[data-character="vineria"] {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: #22c55e;
  color: #166534;
}

.item.box[data-character="gray"] {
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border-color: #6b7280;
  color: #374151;
}

.item.box[data-character="brud"] {
  background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
  border-color: #d97706;
  color: #92400e;
}

.item.box[data-character="garnold"] {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #f59e0b;
  color: #92400e;
}

.item.box[data-character="owakcx"] {
  background: linear-gradient(135deg, #f7fee7 0%, #ecfccb 100%);
  border-color: #84cc16;
  color: #3f6212;
}

.item.box[data-character="sky"] {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #3b82f6;
  color: #1e3a8a;
}

.item.box[data-character="mr-sun"] {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #f59e0b;
  color: #92400e;
}

.item.box[data-character="durple"] {
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  border-color: #a855f7;
  color: #6b21a8;
}

.item.box[data-character="mr-tree"] {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: #22c55e;
  color: #166534;
}

.item.box[data-character="simon"] {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #eab308;
  color: #854d0e;
}

.item.box[data-character="tunner"] {
  background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
  border-color: #ca8a04;
  color: #713f12;
}

.item.box[data-character="mr-fun-computer"] {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-color: #ef4444;
  color: #991b1b;
}

.item.box[data-character="wenda"] {
  background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
  border-color: #ec4899;
  color: #9f1239;
}

.item.box[data-character="pinki"] {
  background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
  border-color: #f472b6;
  color: #9f1239;
}

.item.box[data-character="jevin"] {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-color: #f87171;
  color: #991b1b;
}

.item.box[data-character="black"] {
  background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
  border-color: #404040;
  color: #171717;
}

/* 隐藏角色区域改进 */
.cate#bonus-characters h2 {
  color: #8b5cf6;
  text-align: center;
  font-size: 2.2em;
  margin: 50px 0 30px;
  padding: 20px;
  background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
  border-radius: 20px;
  border: 3px solid #8b5cf6;
}

.cate#bonus-characters h2::before {
  content: "🔮 ";
}

/* 隐藏角色卡片 */
.items.bonus-characters .item.box {
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  border-color: #a855f7;
}

.items.bonus-characters .item.box .japanese-name {
  font-size: 18px;
  font-weight: 700;
  color: #7c3aed;
  display: block !important;
}

.items.bonus-characters .item.box .english-name {
  font-size: 12px;
  color: #a855f7;
  opacity: 0.8;
}

/* 热门游戏区域改进 */
.cate#popular-games h2 {
  color: #ef4444;
  text-align: center;
  font-size: 2.2em;
  margin: 50px 0 30px;
  padding: 20px;
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-radius: 20px;
  border: 3px solid #ef4444;
}

.cate#popular-games h2::before {
  content: "🎮 ";
}

/* 游戏卡片 */
.items.popular-games {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.popular-games .item.box {
  border: 3px solid #e5e7eb;
  background: #fff;
}

.popular-games .item.box.horror {
  border-color: #dc2626;
}

.popular-games .item.box.cute {
  border-color: #ec4899;
}

.popular-games .item.box.hot {
  border-color: #f59e0b;
}

/* 游戏标签 */
.game-tag {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.game-tag.horror {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: white;
}

.game-tag.cute {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
  color: white;
}

.game-tag.hot {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

/* 游戏图片容器 */
.popular-games .item.box .image-container {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 16px;
}

.popular-games .item.box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.popular-games .item.box:hover img {
  transform: scale(1.1);
}

/* Play按钮 */
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.95);
  color: #ff6b35;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.popular-games .item.box:hover .play-button {
  opacity: 1;
}

/* 游戏名称 */
.popular-games .item.box .game-name {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 12px;
  line-height: 1.3;
}

/* 游戏描述 */
.popular-games .item.box .game-description {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
}

/* 响应式优化 */
@media (max-width: 768px) {
  h1 {
    font-size: 2.2em;
  }

  .main-cate > h3 {
    font-size: 1.4em;
    padding: 12px 24px;
    min-width: 150px;
  }

  .items {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .item.box {
    border-radius: 20px;
  }

  .item.box a {
    padding: 20px;
  }

  .info-container {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .popular-games .item.box .image-container {
    height: 180px;
  }
}

/* 导航菜单改进 */
#main-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

#main-nav ul {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 15px 0;
  list-style: none;
}

#main-nav a {
  color: #374151;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

#main-nav a:hover {
  background: #ff6b35;
  color: white;
  transform: translateY(-2px);
}

/* 总结区域改进 */
.summary-section {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  padding: 40px;
  border-radius: 24px;
  margin: 50px 0;
  border: 3px solid #f59e0b;
}

.summary-section h2 {
  color: #92400e;
  text-align: center;
  margin-bottom: 25px;
  border: none;
}

.summary-section p {
  color: #78350f;
  line-height: 1.8;
  margin: 15px 0;
}

.play-now-link {
  text-align: center;
  margin-top: 30px;
}

.play-now-link a {
  display: inline-block;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: white;
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 1.3em;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
  transition: all 0.3s ease;
}

.play-now-link a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
}
