:root {
  --purple-bg: #2B215A;
  --purple-dark: #1a1430;
  --yellow-accent: #FFCC00;
  --yellow-bg: #FFE500;
  --blue-bg: #4A90E2;
  --text-light: #FFFFFF;
  --text-muted: #CCCCCC;
  --black: #000000;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "SimHei", sans-serif;
  background: var(--purple-bg);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* 隐藏滚动条但保持滚动功能 */
html {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

html::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

body {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

body::-webkit-scrollbar {
  display: none;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ========== Header ========== */
.site-header {
  background: var(--black);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  padding: 12px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header__lang {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-light);
  font-size: 14px;
  cursor: pointer;
  padding: 5px 10px;
  transition: all 0.3s ease;
  font-family: inherit;
  line-height: 1;
  position: relative;
  border-radius: 4px;
}

.lang-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--yellow-accent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.lang-btn:hover::after,
.lang-btn.active::after {
  width: 80%;
}

.lang-btn:hover {
  color: var(--yellow-accent);
  transform: translateY(-1px);
}

.lang-btn.active {
  color: var(--yellow-accent);
  font-weight: bold;
}

.lang-separator {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-light);
  gap: 10px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo__icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.logo__text {
  display: flex;
  flex-direction: column;
}

.logo__cn {
  font-size: 22px;
  font-weight: bold;
  line-height: 1.2;
}

.logo__en {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.2;
}

.nav {
  display: flex;
  gap: 30px;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.nav__link {
  color: var(--text-light);
  text-decoration: none;
  font-size: 16px;
  position: relative;
  padding: 5px 0;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav__link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--yellow-accent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav__link:hover::before,
.nav__link.active::before {
  width: 100%;
}

.nav__link:hover,
.nav__link.active {
  color: var(--yellow-accent);
  transform: translateY(-2px);
}


/* ========== Hero Section ========== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 600px;
}

.hero__carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero__carousel-wrapper {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  width: 100%;
}

.hero__slide {
  min-width: 100%;
  width: 100%;
  flex-shrink: 0;
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero__slide.active {
  opacity: 1;
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--purple-bg);
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero__bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(156, 39, 176, 0.4) 0%, rgba(43, 33, 90, 0.9) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
  padding: 80px 0;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.hero__title {
  font-size: 52px;
  font-weight: bold;
  line-height: 1.2;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: fadeInUp 0.8s ease;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: fadeInUp 0.8s ease 0.2s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(30px);
  }
  50% {
    opacity: 1;
    transform: scale(1.05) translateY(-5px);
  }
  70% {
    transform: scale(0.9) translateY(0);
  }
  100% {
    transform: scale(1) translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes wave {
  0%, 100% {
    height: 10px;
  }
  50% {
    height: 20px;
  }
}

/* 动画类 */
.animate-ready {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.bounce-in {
  animation: bounceIn 0.8s ease forwards;
}

.slide-in-left {
  animation: slideInLeft 0.6s ease forwards;
}

.slide-in-right {
  animation: slideInRight 0.6s ease forwards;
}

/* 鼠标光效 */
.mouse-glow {
  position: fixed;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 204, 0, 0.1) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 2;
  transition: opacity 0.3s ease;
}

/* 背景音乐控制 */
.music-control {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.music-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid var(--yellow-accent);
  color: var(--yellow-accent);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.music-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 204, 0, 0.4);
  background: rgba(0, 0, 0, 0.9);
}

.music-btn:active {
  transform: scale(0.95);
}

.music-btn.playing {
  animation: pulse 2s ease-in-out infinite;
}

.music-btn.loading {
  opacity: 0.7;
  cursor: wait;
}

.music-btn.loading .music-icon {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.music-icon {
  position: relative;
  z-index: 2;
}

.music-wave {
  position: absolute;
  display: flex;
  gap: 3px;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.music-btn.playing .music-wave {
  opacity: 1;
}

.music-wave span {
  width: 3px;
  height: 15px;
  background: var(--yellow-accent);
  border-radius: 2px;
  animation: wave 1.2s ease-in-out infinite;
}

.music-wave span:nth-child(1) {
  animation-delay: 0s;
}

.music-wave span:nth-child(2) {
  animation-delay: 0.2s;
}

.music-wave span:nth-child(3) {
  animation-delay: 0.4s;
}

/* 鼠标拖尾效果 - 火焰风格 */
.mouse-trail-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

.trail-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity, width, height;
  transition: opacity 0.1s ease, transform 0.1s ease;
  filter: blur(0.5px);
}

/* 黄色火焰（靠近鼠标） */
.trail-particle.trail-yellow {
  background: radial-gradient(circle, 
    #FFEB3B 0%,
    #FFC107 30%,
    #FF9800 60%,
    transparent 100%
  );
  box-shadow: 
    0 0 15px #FFEB3B,
    0 0 25px #FFC107,
    0 0 35px rgba(255, 152, 0, 0.6),
    0 0 50px rgba(255, 193, 7, 0.4);
}

/* 橙色火焰（中间） */
.trail-particle.trail-orange {
  background: radial-gradient(circle, 
    #FF9800 0%,
    #FF5722 30%,
    #F44336 60%,
    transparent 100%
  );
  box-shadow: 
    0 0 20px #FF9800,
    0 0 30px #FF5722,
    0 0 40px rgba(255, 87, 34, 0.7),
    0 0 60px rgba(255, 152, 0, 0.5);
}

/* 红色火焰（尾部） */
.trail-particle.trail-red {
  background: radial-gradient(circle, 
    #F44336 0%,
    #E91E63 30%,
    #9C27B0 60%,
    transparent 100%
  );
  box-shadow: 
    0 0 15px #F44336,
    0 0 25px #E91E63,
    0 0 35px rgba(233, 30, 99, 0.6),
    0 0 50px rgba(244, 67, 54, 0.4);
}

/* 增强火焰效果的额外发光层 */
.trail-particle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150%;
  height: 150%;
  border-radius: 50%;
  background: radial-gradient(circle, 
    rgba(255, 255, 255, 0.3) 0%,
    transparent 70%
  );
  pointer-events: none;
  animation: flamePulse 0.5s ease-in-out infinite alternate;
}

@keyframes flamePulse {
  0% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
  }
}

.hero__buttons {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.hero__btn {
  background: transparent;
  border: 2px solid var(--text-light);
  color: var(--text-light);
  padding: 10px 25px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.hero__btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--text-light);
  transition: left 0.3s ease;
  z-index: -1;
}

.hero__btn:hover {
  background: var(--text-light);
  color: var(--purple-bg);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.hero__btn:active {
  transform: translateY(0);
}

.hero__art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__character-img {
  max-width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  display: block;
}

/* 轮播箭头 */
.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: var(--text-light);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  user-select: none;
}

.hero__arrow:hover {
  background: rgba(255, 255, 255, 0.4);
  border-color: var(--yellow-accent);
  color: var(--yellow-accent);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 15px rgba(255, 204, 0, 0.4);
}

.hero__arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.hero__arrow--prev {
  left: 40px;
}

.hero__arrow--next {
  right: 40px;
}

/* 轮播指示器 */
.hero__dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 204, 0, 0.3);
  transition: all 0.3s ease;
}

.dot:hover::before {
  width: 20px;
  height: 20px;
}

.dot.active {
  background: var(--yellow-accent);
  width: 30px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
}

.dot:hover {
  background: rgba(255, 204, 0, 0.6);
  transform: scale(1.2);
}

/* ========== Section Header ========== */
.section__header {
  background: var(--black);
  padding: 25px 0;
}

.section__header-inner {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0 40px;
  max-width: 1440px;
  margin: 0 auto;
}

.section__marker {
  width: 20px;
  height: 20px;
  background: var(--yellow-accent);
  display: block;
  flex-shrink: 0;
}

.section__title {
  font-size: 26px;
  color: var(--text-light);
  font-weight: bold;
}

.section__title-en {
  font-size: 18px;
  color: var(--text-muted);
  font-weight: normal;
  margin-left: 10px;
}

/* ========== Products Section ========== */
.products {
  background: var(--yellow-bg);
  padding: 0;
}

.products__content {
  padding: 50px 0;
}

.products__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--text-light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  transform: translateY(0);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.product-card__image {
  width: 100%;
  height: auto;
  overflow: hidden;
  position: relative;
  background: var(--text-light);
}

.product-card__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background: var(--text-light);
}

.product-card__title {
  background: var(--purple-bg);
  color: var(--text-light);
  padding: 15px 20px;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
}

/* ========== About Section ========== */
.about {
  background: var(--blue-bg);
  padding: 0;
  position: relative;
  overflow: hidden;
}

.about__content {
  padding: 70px 0;
  position: relative;
  z-index: 2;
  min-height: 400px;
}

.about__info {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 3;
}

.about__name {
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--text-light);
}

.about__name-en {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 35px;
  display: block;
}

.about__mission {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 35px;
}

.about__mission p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-light);
}

.about__bg {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 50%;
  z-index: 1;
  opacity: 0.25;
  background-image: url('images/about-bg-buildings.png');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  pointer-events: none;
}

/* ========== Join Section ========== */
.join {
  background: var(--yellow-bg);
  padding: 0;
}

.join__content {
  padding: 50px 0;
}

.join__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
  align-items: center;
}

.join__left {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.join__right {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
  position: relative;
}

.join__item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.join__item:nth-child(1) {
  align-self: flex-start;
  margin-top: -20px;
}

.join__item:nth-child(2) {
  align-self: flex-end;
  margin-top: 20px;
}

.join__item:nth-child(3) {
  align-self: flex-start;
  margin-top: -20px;
}

.join__img {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
  transition: all 0.3s ease;
}

.join__item:hover .join__img {
  transform: scale(1.1) translateY(-5px);
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
}

.join__actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn--join {
  background: var(--black);
  color: var(--text-light);
  padding: 12px 35px;
  font-size: 16px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.btn--join::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn--join:hover::before {
  width: 300px;
  height: 300px;
}

.btn--join:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.btn--join:active {
  transform: translateY(-1px);
}

/* ========== Contact Section ========== */
.contact {
  background: var(--blue-bg);
  padding: 0;
}

.contact__content {
  padding: 70px 0;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
  align-items: start;
}

.contact__qr {
  display: flex;
  justify-content: center;
  align-items: center;
}

.qr-code {
  position: relative;
  width: 280px;
  height: 280px;
  background: var(--text-light);
  border-radius: 8px;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.qr-code__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 50px;
  z-index: 2;
  opacity: 0.2;
  pointer-events: none;
}

.qr-code__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
  position: relative;
  z-index: 1;
  display: block;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-light);
  font-size: 16px;
  line-height: 1.6;
}

.contact__icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact__text {
  flex: 1;
}

/* ========== Footer ========== */
.site-footer {
  background: var(--black);
  padding: 25px 0;
  text-align: center;
}

.footer__copyright {
  color: var(--text-light);
  font-size: 14px;
}

/* ========== Responsive ========== */
@media (max-width: 1200px) {
  .container {
    padding: 0 30px;
  }
  
  .hero__title {
    font-size: 42px;
  }
  
  .products__cards {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .header__inner {
    flex-wrap: wrap;
  }
  
  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 10px;
    gap: 15px;
  }
  
  .header__game-title {
    font-size: 14px;
  }
  
  .hero__content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 50px 0;
  }
  
  .hero__title {
    font-size: 32px;
  }
  
  .hero__subtitle {
    font-size: 16px;
  }
  
  .hero__character-img {
    max-height: 300px;
  }
  
  .hero__arrow {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
  
  .hero__arrow--prev {
    left: 15px;
  }
  
  .hero__arrow--next {
    right: 15px;
  }
  
  .hero__dots {
    bottom: 20px;
  }
  
  .products__cards {
    grid-template-columns: 1fr;
  }
  
  .join__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .join__right {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
  
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .qr-code {
    width: 240px;
    height: 240px;
  }
}
