* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 50%, #2d1b4e 100%);
  min-height: 100vh;
  color: #fff;
  overflow-x: hidden;
}

/* 背景装饰 */
.bg-decoration {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-decoration::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 20% 80%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 60% 60%, rgba(99, 102, 241, 0.06) 0%, transparent 40%);
  animation: bgFloat 20s ease-in-out infinite;
  transition: transform 0.1s ease-out;
}

@keyframes bgFloat {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(30px, -30px) rotate(120deg);
  }

  66% {
    transform: translate(-20px, 20px) rotate(240deg);
  }
}

/* 鼠标跟随效果 */
.mouse-follower {
  position: fixed;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out, opacity 0.3s ease;
  mix-blend-mode: screen;
}

/* 视差背景层 */
.parallax-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.parallax-star {
  position: absolute;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {

  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* 粒子背景 */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(168, 85, 247, 0.6);
  border-radius: 50%;
  animation: particleFloat 8s ease-in-out infinite;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(-100px) scale(1);
    opacity: 0;
  }
}

.icon-reddit:before,
.icon-whatsapp:before,
.icon-link:before,
.icon-facebook:before {

  font-size: 22px;
}

/* 导航栏 */
.navbar {

  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 15, 35, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(124, 58, 237, 0.2);
  padding: 1rem 2rem;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(15, 15, 35, 0.95);
  box-shadow: 0 4px 30px rgba(124, 58, 237, 0.2);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 50%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo i {
  font-size: 1.5rem;
  animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

.logo span {
  font-weight: 300;
  opacity: 0.8;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.1), transparent);
  transition: left 0.6s ease;
}

.nav-links a:hover::before {
  left: 100%;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #a855f7, #7c3aed);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-links a:hover {
  color: #fff;
  background: rgba(124, 58, 237, 0.1);
  transform: translateY(-2px);
}

.nav-links a:hover::after {
  width: 80%;
}

.nav-links a.active {
  color: #a855f7;
  background: rgba(124, 58, 237, 0.1);
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 25px;
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  color: #fff;
  font-size: 0.9rem;
  width: 250px;
  transition: all 0.3s ease;
}

.search-box input:focus {
  outline: none;
  border-color: #a855f7;
  background: rgba(255, 255, 255, 0.1);
  width: 300px;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.2);
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.search-icon {
  position: absolute;
  left: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.search-box input:focus+.search-icon {
  color: #a855f7;
}

/* 主内容 */
.main-content {
  position: relative;
  z-index: 1;
  padding-top: 10px;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Hero 轮播 */
body::-webkit-scrollbar {
  display: none; //滚动条消失
}

.hero-carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1rem 0;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.hero-carousel::-webkit-scrollbar {
  display: none;
}

.hero-card {
  flex: 0 0 calc(16.666% - 1.25rem);
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(124, 58, 237, 0.1);
}

.hero-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 25px 50px rgba(124, 58, 237, 0.35);
  border-color: rgba(124, 58, 237, 0.3);
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-card:hover img {
  transform: scale(1.15) rotate(1deg);
}

.hero-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 70%, transparent 100%);
  transition: all 0.3s ease;
  transform: translateY(20px);
  opacity: 0.8;
}

.hero-card:hover .hero-card-overlay {
  background: linear-gradient(to top, rgba(124, 58, 237, 0.9) 0%, rgba(124, 58, 237, 0.5) 70%, transparent 100%);
  transform: translateY(0);
  opacity: 1;
}

.hero-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #fff;
  transition: all 0.3s ease;
}

.hero-card:hover .hero-card-title {
  transform: translateY(-2px);
}

.hero-card-category {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.hero-card:hover .hero-card-category {
  color: rgba(255, 255, 255, 0.9);
}

/* 区块通用 */
.section {
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section:nth-child(2) {
  animation-delay: 0.1s;
}

.section:nth-child(3) {
  animation-delay: 0.2s;
}

.section:nth-child(4) {
  animation-delay: 0.3s;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.section-icon {
  font-size: 1.5rem;
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  padding-left: 1rem;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  border-radius: 2px;
}

.section-badge {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* 游戏卡片网格 */
.games-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1.2rem;
}

.game-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.game-card:hover {
  transform: translateY(-12px);
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 25px 50px rgba(124, 58, 237, 0.25);
  background: rgba(255, 255, 255, 0.06);
}

.game-card-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.game-card:hover .game-card-image img {
  transform: scale(1.15);
}

.game-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(124, 58, 237, 0.8) 100%);
  opacity: 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-card:hover .game-card-overlay {
  opacity: 1;
}

.play-button {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: scale(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.5);
}

.game-card:hover .play-button {
  transform: scale(1);
}

.play-button svg {
  width: 24px;
  height: 24px;
  fill: #fff;
  margin-left: 3px;
}

.game-card-info {
  padding: 1rem;
}

.game-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.game-card-rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: #fbbf24;
}

.game-card-plays {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

/* 新游戏卡片 */
.new-games-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.new-game-card {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(168, 85, 247, 0.05) 100%);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.new-game-card:hover {
  transform: translateY(-15px) scale(1.02);
  border-color: rgba(124, 58, 237, 0.5);
  box-shadow: 0 30px 60px rgba(124, 58, 237, 0.35);
}

.new-game-card-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.new-game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.new-game-card:hover .new-game-card-image img {
  transform: scale(1.2);
}

.new-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.new-game-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem 1.5rem;
  background: linear-gradient(to top, rgba(124, 58, 237, 0.95) 0%, rgba(124, 58, 237, 0.7) 50%, transparent 100%);
  transition: all 0.3s ease;
}

.new-game-card:hover .new-game-card-overlay {
  background: linear-gradient(to top, rgba(124, 58, 237, 1) 0%, rgba(124, 58, 237, 0.85) 60%, transparent 100%);
}

.new-game-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.new-game-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.new-game-card-rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: #fbbf24;
  font-weight: 600;
}

/* 紧凑列表 */
.compact-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.compact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: 12px;
  padding: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.compact-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(124, 58, 237, 0.3);
  transform: translateX(5px);
}

.compact-item-image {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.compact-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compact-item-info {
  flex: 1;
  min-width: 0;
}

.compact-item-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compact-item-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ========== 全息 3D 倾斜卡片 ========== */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.8rem;
}

.holo-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transform-style: preserve-3d;
  perspective: 800px;
  transition: transform 0.1s ease-out, box-shadow 0.3s ease;
  will-change: transform;
}

.holo-card-inner {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(124, 58, 237, 0.15);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.holo-card:hover .holo-card-inner {
  border-color: transparent;
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.3), 0 0 60px rgba(168, 85, 247, 0.15);
}

.holo-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  background: conic-gradient(from var(--holo-angle, 0deg), #7c3aed 0%, #a855f7 15%, #6366f1 30%, #06b6d4 45%, #a855f7 60%, #ec4899 75%, #7c3aed 90%, #a855f7 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: holoRotate 4s linear infinite;
}

.holo-card:hover::before {
  opacity: 1;
}

@property --holo-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes holoRotate {
  to {
    --holo-angle: 360deg;
  }
}

.holo-card-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.08) 40%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.08) 60%, transparent 80%);
  z-index: 5;
  pointer-events: none;
}

.holo-card:hover .holo-card-shine {
  animation: shineSlide 0.8s ease forwards;
}

@keyframes shineSlide {
  0% {
    left: -100%;
  }

  100% {
    left: 150%;
  }
}

.holo-card-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.holo-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.holo-card:hover .holo-card-image img {
  transform: scale(1.1);
}

.holo-card-rank {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  border-radius: 10px;
  z-index: 6;
}

.holo-card-rank.rank-1 {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
}

.holo-card-rank.rank-2 {
  background: linear-gradient(135deg, #94a3b8, #64748b);
  color: #fff;
}

.holo-card-rank.rank-3 {
  background: linear-gradient(135deg, #c2884e, #a16207);
  color: #fff;
}

.holo-card-rank.rank-other {
  background: rgba(124, 58, 237, 0.7);
  color: #fff;
}

.holo-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 1.2rem 1.2rem;
  background: linear-gradient(to top, rgba(15, 15, 35, 0.95) 0%, rgba(15, 15, 35, 0.6) 60%, transparent 100%);
}

.holo-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}

.holo-card-desc {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.6rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.holo-card-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.holo-card-tag {
  font-size: 0.68rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  background: rgba(124, 58, 237, 0.25);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(124, 58, 237, 0.3);
}

.holo-card-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.85);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.5);
  cursor: pointer;
}

.holo-card:hover .holo-card-play-btn {
  transform: translate(-50%, -50%) scale(1);
}

.holo-card-play-btn:hover {
  box-shadow: 0 6px 30px rgba(124, 58, 237, 0.7);
  background: rgba(124, 58, 237, 1);
}

.holo-card-play-btn svg {
  width: 22px;
  height: 22px;
  fill: #fff;
  margin-left: 2px;
}

/* 页脚 */
.footer {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(168, 85, 247, 0.1) 100%);
  border-top: 1px solid rgba(124, 58, 237, 0.2);
  padding: 3rem 2rem;
  margin-top: 4rem;
  position: relative;
  z-index: 1;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #a855f7;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  border-color: transparent;
  color: #fff;
  transform: translateY(-3px);
}

/* 返回顶部按钮 - 增强版 */
.scroll-top {
  position: fixed;
  bottom: 140px;
  right: 30px;
  width: 56px;
  height: 56px;
  background: rgba(15, 15, 35, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid rgba(124, 58, 237, 0.4);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transform: scale(0) translateY(20px);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 999;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
}

.scroll-top:hover {
  transform: scale(1.15) translateY(-3px);
  box-shadow: 0 8px 35px rgba(124, 58, 237, 0.5);
  border-color: rgba(168, 85, 247, 0.7);
  background: rgba(124, 58, 237, 0.3);
}

.scroll-top:active {
  transform: scale(0.95);
  transition-duration: 0.1s;
}

.scroll-top svg.progress-ring {
  position: absolute;
  top: -3px;
  left: -3px;
  width: calc(100% + 6px);
  height: calc(100% + 6px);
  transform: rotate(-90deg);
  pointer-events: none;
}

.scroll-top .progress-ring__circle {
  fill: none;
  stroke: url(#progressGradient);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 188.5;
  stroke-dashoffset: 188.5;
  transition: stroke-dashoffset 0.15s ease-out;
}

.scroll-top::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(168, 85, 247, 0.4);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.3);
    opacity: 0;
  }
}

.scroll-top .arrow-icon {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
  line-height: 1;
}

.scroll-top:hover .arrow-icon {
  transform: translateY(-2px);
}

/* ========== 滚动入场动画 ========== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* ========== 本周焦点 - 左右交替布局 ========== */
.spotlight-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.spotlight-item {
  display: flex;
  gap: 2rem;
  align-items: stretch;
  cursor: pointer;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(124, 58, 237, 0.12);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.spotlight-item:hover {
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: 0 20px 50px rgba(124, 58, 237, 0.2);
  transform: translateY(-4px);
}

.spotlight-item.reverse {
  flex-direction: row-reverse;
}

.spotlight-image {
  flex: 0 0 45%;
  position: relative;
  overflow: hidden;
}

.spotlight-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.spotlight-item:hover .spotlight-image img {
  transform: scale(1.08);
}

.spotlight-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, rgba(15, 15, 35, 0.6) 100%);
}

.spotlight-item.reverse .spotlight-image::after {
  background: linear-gradient(270deg, transparent 60%, rgba(15, 15, 35, 0.6) 100%);
}

.spotlight-content {
  flex: 1;
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.spotlight-tag {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.8rem;
  width: fit-content;
}

.spotlight-tag.hot {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
}

.spotlight-tag.new {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
}

.spotlight-tag.exclusive {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
}

.spotlight-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  line-height: 1.3;
  color: #fff;
}

.spotlight-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.spotlight-stats {
  display: flex;
  gap: 1.5rem;
}

.spotlight-stat {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.spotlight-stat strong {
  color: #fbbf24;
  font-weight: 700;
}

.spotlight-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.6rem 1.5rem;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  border: none;
  border-radius: 25px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  width: fit-content;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.spotlight-play-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.5);
}

.spotlight-play-btn svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

/* ========== 编辑精选 - Bento 不规则网格 ========== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 1.2rem;
}

.bento-card {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-card:hover {
  transform: translateY(-6px);
}

.bento-card:nth-child(1) {
  grid-column: span 2;
}

.bento-card:nth-child(2) {
  grid-row: span 2;
}

.bento-card-image {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.bento-card:nth-child(1) .bento-card-image {
  aspect-ratio: 21/9;
}

.bento-card:not(:nth-child(1)):not(:nth-child(2)) .bento-card-image {
  aspect-ratio: 1;
}

.bento-card:nth-child(2) .bento-card-image {
  aspect-ratio: 9/16;
}

.bento-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.bento-card:hover .bento-card-image img {
  transform: scale(1.1);
}

.bento-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.2rem;
  background: linear-gradient(to top, rgba(15, 15, 35, 0.95) 0%, transparent 100%);
}

.bento-card:nth-child(1) .bento-card-overlay {
  padding: 1.5rem 2rem;
}

.bento-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: #fff;
}

.bento-card:nth-child(1) .bento-card-title {
  font-size: 1.2rem;
}

.bento-card-meta {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  gap: 0.8rem;
}

.bento-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  font-size: 0.65rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  background: rgba(124, 58, 237, 0.6);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}


/* 响应式 */
@media (max-width: 1200px) {
  .games-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .new-games-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .compact-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .featured-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .bento-card:nth-child(1) {
    grid-column: span 2;
  }

  .bento-card:nth-child(2) {
    grid-row: span 1;
  }
}

@media (max-width: 900px) {
  .games-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .new-games-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .compact-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-card {
    flex: 0 0 calc(25% - 1.125rem);
  }

  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .spotlight-item,
  .spotlight-item.reverse {
    flex-direction: column;
  }

  .spotlight-image {
    flex: 0 0 auto;
    aspect-ratio: 16/9;
  }

  .spotlight-image::after,
  .spotlight-item.reverse .spotlight-image::after {
    background: linear-gradient(to top, rgba(15, 15, 35, 0.6) 100%, transparent);
  }

  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-card:nth-child(1) {
    grid-column: span 2;
  }

  .nav-links {
    gap: 0.2rem;
    order: 1;
    margin-top: 10px;
    width: 1200px;
    overflow: auto;
  }
}

@media (max-width: 600px) {
  .navbar {
padding: 0.4rem 1rem;
  }

  .search-box input {
    width: 180px;
     padding: 0.3rem 1rem 0.3rem 2.5rem;
  }

  .search-box input:focus {
    width: 220px;
  }

  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .new-games-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .compact-list {
    grid-template-columns: 1fr;
  }

  .hero-card {
    flex: 0 0 calc(50% - 0.75rem);
  }

  .main-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-card:nth-child(1) {
    grid-column: span 1;
  }

  .bento-card:nth-child(2) {
    grid-row: span 1;
  }

  .spotlight-content {
    padding: 1.5rem;
  }

  .spotlight-title {
    font-size: 1.2rem;
  }

  .search-box input:focus {

    width: 180px;

  }

  .bento-card:nth-child(2) .bento-card-image {
    aspect-ratio: 9 / 7;
  }

  .bento-card:nth-child(1) .bento-card-image {
    aspect-ratio: 10 / 9;
  }

  .footer {

    padding: 3rem 1rem;

  }

  .logo {
    font-size: 1.4rem;
  }
}






.blue {
  background: linear-gradient(135deg, #3F51B5 0%, #1a1a3e 50%, #3F51B5 100%) !important;
}

.blue .spotlight-item {
  background: rgb(0 188 212 / 33%) !important;
}

.blue .section-title::before,
.blue .section-icon,
.blue .section-badge {
  background: linear-gradient(135deg, #3F51B5, #009688) !important;
  background-clip: text !important;
}

.blue .spotlight-play-btn {
  background: linear-gradient(135deg, #3F51B5, #00BCD4) !important;
  box-shadow: 0 4px 15px #00BCD4 !important;
}

.blue .new-game-card-overlay {
  background: linear-gradient(to top, #3F51B5 0%, #00BCD4 50%, transparent 100%) !important;
}

.blue .nav-links a.active {
  color: #00BCD4 !important;
  background: rgba(124, 58, 237, 0.1) !important;
}

.blue .logo {
  background: linear-gradient(135deg, #00BCD4 0%, #00BCD4 50%, #4CAF50 100%) !important;
  background-clip: text !important;
}

.blue .bento-card-badge {
  background: #3F51B5 !important;

}