/* 重置样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Microsoft YaHei", Arial, sans-serif;
  background-image: url(../img/bg.gif);
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* 背景动画 */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 25% 75%, rgba(147, 51, 234, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 25%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
  z-index: -2;
  animation: backgroundShift 20s ease-in-out infinite;
}

body::after {
  content: "";
  position: fixed;
  top: 25%;
  left: 25%;
  width: 256px;
  height: 256px;
  background: rgba(147, 51, 234, 0.1);
  border-radius: 50%;
  filter: blur(60px);
  animation: bounce 6s ease-in-out infinite;
  z-index: -1;
}

@keyframes backgroundShift {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 50px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header.scrolled {
  padding: 12px 50px;
  background: rgba(0, 0, 0, 0.95);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 32px rgba(34, 197, 94, 0.3);
}

.company-name {
  font-size: 28px;
  font-weight: bold;
  color: #22c55e;
  text-shadow: 0 0 30px rgba(34, 197, 94, 0.5);
}

/* Contact Button */
.contact-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  padding: 16px;
  background: linear-gradient(45deg, #22c55e, #3b82f6);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
  transition: all 0.3s ease;
}

.contact-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(34, 197, 94, 0.4);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 50px 80px;
  position: relative;
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 720px;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 25px;
  line-height: 1.2;
}

.hero-text .gradient-text {
  background: linear-gradient(45deg, #a855f7, #ec4899);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  font-size: 1.1rem;
  color: #d1d5db;
  margin-bottom: 35px;
  line-height: 1.7;
}

/* Carousel Container */
.carousel-container {
  position: relative;
  width: 720px;
  background: rgba(17, 24, 39, 0.3);
  border-radius: 20px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Main Carousel */
.carousel {
  position: relative;
  width: 100%;
  height: 540px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: none;
}

.carousel-image.active {
  display: block;
}

.carousel-image:hover {
  transform: scale(1.05);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 8px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid #4b5563;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-btn:hover {
  background: rgba(55, 65, 81, 0.9);
}

.carousel-btn.prev {
  left: 16px;
}

.carousel-btn.next {
  right: 16px;
}

/* Thumbnails */
.thumbnails {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 0 20px;
}

.thumbnail {
  width: 80px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.6;
  border: 2px solid transparent;
  background: rgba(59, 130, 246, 0.8);
  position: relative;
}

.thumbnail:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

.thumbnail.active {
  opacity: 1;
  border-color: #a855f7;
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Thumbnail dots for spacing */
.thumbnail::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -8px;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
}

.thumbnail:last-child::after {
  display: none;
}

/* Games Section */
.games-section {
  padding: 100px 50px;
  background: rgba(0, 0, 0, 0.3);
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(45deg, #3b82f6, #a855f7);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: #9ca3af;
  margin-bottom: 80px;
}

.games-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.game-card {
  background: rgba(17, 24, 39, 0.5);
  border-radius: 20px;
  border: 1px solid #374151;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  overflow: hidden;
  padding: 24px;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 80px rgba(147, 51, 234, 0.2);
  border-color: rgba(147, 51, 234, 0.5);
}

.game-content {
  display: flex;
  gap: 20px;
  height: 200px;
}

.game-image-container {
  flex: 0 0 200px;
  height: 200px;
}

.game-image {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.game-card:hover .game-image {
  transform: scale(1.05);
}

.game-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px 0;
}

.game-details {
  flex: 1;
}

.game-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.game-description {
  color: #d1d5db;
  font-size: 0.95rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-button {
  display: inline-block;
  padding: 10px 24px;
  background: linear-gradient(45deg, #a855f7, #ec4899);
  color: white;
  text-decoration: none;
  border-radius: 20px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.3);
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  width: fit-content;
  align-self: flex-end;
}

.game-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.4);
  background: linear-gradient(45deg, #ec4899, #a855f7);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: rgba(17, 24, 39, 0.95);
  border: 1px solid #374151;
  border-radius: 12px;
  padding: 24px;
  max-width: 400px;
  width: 100%;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
}

.close-btn {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

.close-btn:hover {
  color: white;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.contact-item.wechat {
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.contact-item.qq {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.contact-icon {
  width: 24px;
  height: 24px;
}

.contact-info h4 {
  color: white;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-info p {
  color: #d1d5db;
  font-size: 0.875rem;
}

.work-time {
  text-align: center;
  color: #9ca3af;
  font-size: 0.875rem;
  margin-top: 16px;
}

/* Icons */
.icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* 滚动动画 */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1200px) {
  .hero-content {
    grid-template-columns: 1fr 680px;
    gap: 40px;
  }

  .carousel-container {
    width: 680px;
  }

  .carousel {
    height: 510px;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 15px 20px;
  }

  .logo {
    width: 45px;
    height: 45px;
  }

  .company-name {
    font-size: 20px;
  }

  .hero {
    padding: 100px 20px 60px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .games-section {
    padding: 60px 20px;
  }

  .section-title {
    font-size: 2rem;
  }

  .games-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .game-content {
    flex-direction: column;
    height: auto;
  }

  .game-image-container {
    flex: none;
    width: 100%;
    height: 200px;
  }

  .game-info {
    padding: 16px 0 0 0;
  }

  .thumbnails {
    gap: 8px;
    flex-wrap: wrap;
  }

  .thumbnail {
    width: 60px;
    height: 45px;
  }

  .carousel {
    height: 350px;
  }

  .carousel-container {
    width: 100%;
    margin: 0;
  }
}

/* Recharge Section */
.recharge-section {
  padding: 80px 50px 60px;
  background: rgba(0, 0, 0, 0.2);
  position: relative;
}

.recharge-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.recharge-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  border: none;
  border-radius: 50px;
  color: white;
  text-decoration: none;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
  position: relative;
  overflow: hidden;
  min-width: 200px;
  text-align: center;
}

.recharge-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.recharge-button:hover::before {
  left: 100%;
}

.recharge-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.6);
  background: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
}

.recharge-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.recharge-icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.recharge-text {
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.recharge-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.recharge-button:hover .recharge-arrow {
  transform: translateX(4px);
}

.recharge-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
}

.recharge-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 3px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.recharge-subtitle {
  font-size: 1rem;
  opacity: 0.95;
  font-weight: 500;
}

.recharge-arrow {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.recharge-btn:hover .recharge-arrow {
  transform: translateX(8px);
}

.recharge-arrow svg {
  width: 100%;
  height: 100%;
}

/* 固定位置充值按钮选项 - 取消注释以使用 */
/*
.recharge-btn-fixed {
  position: fixed;
  top: 120px;
  right: 30px;
  z-index: 999;
  padding: 15px 25px;
  min-width: 200px;
  font-size: 1rem;
  border-radius: 40px;
}

.recharge-section {
  display: none;
}
*/

/* 顶部导航充值按钮选项 - 取消注释以使用 */
/*
.header .recharge-nav-btn {
  position: absolute;
  right: 50px;
  top: 50%;
  transform: translateY(-50%);
  padding: 12px 24px;
  background: linear-gradient(45deg, #ff6b6b, #ff8e53);
  border: none;
  border-radius: 25px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.header .recharge-nav-btn:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}
*/

/* 响应式设计 */
@media (max-width: 768px) {
  .recharge-section {
    padding: 60px 20px 40px;
  }

  .recharge-btn {
    min-width: 280px;
    padding: 20px 35px;
    font-size: 1.1rem;
    gap: 20px;
  }

  .recharge-icon {
    width: 35px;
    height: 35px;
  }

  .recharge-title {
    font-size: 1.2rem;
  }

  .recharge-subtitle {
    font-size: 0.9rem;
  }

  .recharge-arrow {
    width: 20px;
    height: 20px;
  }

  /* 固定按钮移动端调整 */
  /*
  .recharge-btn-fixed {
    right: 20px;
    top: 100px;
    min-width: 160px;
    padding: 12px 20px;
    font-size: 0.9rem;
  }
  */
}
