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

body {
  margin: 0;
  background: #18141e;
  color: #fff;
  font-family: ui-sans-serif, system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* 页面进入动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-enter {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.page-enter-delay-1 {
  animation-delay: 0.1s;
}

.page-enter-delay-2 {
  animation-delay: 0.2s;
}

.page-enter-delay-3 {
  animation-delay: 0.3s;
}

.page-enter-delay-4 {
  animation-delay: 0.4s;
}

/* ===== Header ===== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 32px;
  background: rgba(127, 83, 172, 0.85);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(80, 40, 120, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  object-fit: cover;
  display: block;
}

.brand {
  font-size: 1.5em;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.header-right {
  display: flex;
  align-items: center;
}

.header-right .links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-icon {
  width: 24px;
  height: 24px;
  cursor: pointer;
  fill: currentColor;
  color: #fff;
  transition: opacity 0.2s, transform 0.2s;
  display: block;
  flex-shrink: 0;
}

.header-icon:hover {
  opacity: 0.8;
  transform: scale(1.1);
}

/* 菜单按钮 */
.menu-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.menu-icon {
  width: 24px;
  height: 24px;
  color: #fff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-icon-line {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

/* 菜单打开时的图标动画 - 变成叉叉 */
.menu-toggle.active .menu-icon-line-1 {
  transform: translateY(6px) rotate(45deg);
  transform-origin: 12px 6px;
}

.menu-toggle.active .menu-icon-line-2 {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.active .menu-icon-line-3 {
  transform: translateY(-6px) rotate(-45deg);
  transform-origin: 12px 18px;
}

/* 菜单面板 */
.menu-overlay {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
}

@media (max-width: 900px) {
  .menu-overlay {
    top: 60px;
  }
}

@media (max-width: 640px) {
  .menu-overlay {
    top: 56px;
  }
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background: rgba(127, 83, 172, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.2);
  padding: 0 0 40px 0;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 101;
}

.menu-overlay.active .menu-panel {
  transform: translateX(0);
}

.menu-link {
  display: block;
  padding: 16px 32px;
  color: #fff;
  font-size: 1.1em;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  border-left: 3px solid transparent;
}

.menu-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-left-color: #fff;
  transform: translateX(4px);
}

/* ===== Hero Section ===== */
.hero-section {
  width: 100%;
  min-height: 600px;
  background: linear-gradient(180deg, #b993f7 0%, #7f53ac 50%, #18141e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  padding: 0 32px;
  gap: 60px;
  overflow: hidden;
  box-sizing: border-box;
}

.hero-left {
  flex: 1;
  max-width: 600px;
}

.hero-title-main {
  font-size: clamp(2em, 5vw, 3.5em);
  font-weight: 900;
  color: #fff;
  margin-bottom: 32px;
  line-height: 1.2;
  text-shadow: 0 4px 32px rgba(165, 243, 252, 0.5), 0 1px 0 #fff, 0 0 18px rgba(124, 58, 237, 0.6);
}

.hero-btns {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.hero-btn-main {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 1em;
  font-weight: 700;
  border: 2px solid #fff;
  box-shadow: 0 2px 12px rgba(124, 58, 237, 0.15);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.hero-btn-main:hover {
  background: #fff;
  color: #7f53ac;
  border-color: #a5f3fc;
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.3);
  transform: translateY(-2px);
}

.hero-desc {
  margin-top: 24px;
  font-size: clamp(1em, 2vw, 1.25em);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 12px rgba(35, 32, 43, 0.5);
}

.hero-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 400px;
  overflow: hidden;
  position: relative;
  padding: 20px;
  box-sizing: border-box;
}

.hero-img {
  max-width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
  transform-origin: center center;
  will-change: transform;
  transform: scaleX(-1) rotate(-30deg);
}

/* ===== Carousel Section ===== */
.carousel-section-wrapper {
  width: 100%;
  background: #18141e;
  scroll-snap-type: y mandatory;
}

/* 滚动区域，用于触发轮播图切换 */
.carousel-scroll-section {
  width: 100%;
  min-height: 100vh;
  height: 100vh;
  position: relative;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* 第一个滚动区域显示轮播图 */
#carouselSection0 {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 文字区域样式 - 现在在 sticky 容器中 */

/* 轮播图固定容器 */
.carousel-sticky-container {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 1400px;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1500px;
  perspective-origin: center center;
  padding: 40px 20px;
  box-sizing: border-box;
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  flex: 0 0 auto;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-item {
  position: absolute;
  width: 320px;
  height: 500px;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* 确保所有轮播图高度完全一致 */
.carousel-item[data-index="1"] {
  height: 500px;
}

.carousel-item img {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.4));
}

.carousel-description {
  display: none;
  position: absolute;
  bottom: 8vh;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 40px;
  text-align: center;
  color: #fff;
  font-size: 1.05em;
  line-height: 1.8;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 10;
  box-sizing: border-box;
}

/* 宽屏模式下确保文字在图片下方，避免重叠 */
@media (min-width: 1025px) {
  .carousel-description {
    /* 使用 calc 确保文字在图片底部（50% + 225px）下方，加上 40px 间距 */
    top: calc(50% + 225px + 40px);
    bottom: auto;
  }
}

.carousel-description-content {
  text-align: center;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.9);
  max-width: 1200px;
  width: 100%;
}

.carousel-description.show {
  opacity: 1;
}

/* 文字描述现在在 carousel-container 中，不再需要这些规则 */

.carousel-item.left {
  transform: translateX(-500px) translateZ(-200px) scale(0.65) rotateY(45deg);
  opacity: 0.5;
  z-index: 1;
  transform-style: preserve-3d;
}

.carousel-item.center {
  transform: translateX(0) translateZ(0) scale(1.3) rotateY(0deg);
  opacity: 1;
  z-index: 2;
  transform-style: preserve-3d;
}

.carousel-item.right {
  transform: translateX(500px) translateZ(-200px) scale(0.65) rotateY(-45deg);
  opacity: 0.5;
  z-index: 1;
  transform-style: preserve-3d;
}

.carousel-item.hidden {
  opacity: 0;
  pointer-events: none;
}

/* 移除悬停时的动画效果 - 已删除 hover 规则 */

/* ===== 响应式设计 ===== */
/* 中等宽度适配（768px - 1024px）- 防止旋转图片溢出 */
@media (min-width: 768px) and (max-width: 1024px) {
  .hero-section {
    padding: 60px 0;
  }
  
  .hero-inner {
    gap: 40px;
    padding: 0 24px;
  }
  
  .hero-right {
    max-width: 350px;
    padding: 30px;
  }
  
  .hero-img {
    max-width: 90%;
    transform: scaleX(-1) rotate(-30deg) scale(0.85);
  }
  
  .hero-left {
    max-width: 500px;
  }
}

@media (max-width: 1024px) {
  .hero-inner {
    gap: 40px;
    padding: 0 24px;
  }
  .carousel-container {
    height: 100vh;
    padding: 30px 16px;
    perspective: 1200px;
  }
  .carousel-item {
    width: 280px;
    height: 500px;
  }
  .carousel-item[data-index="1"] {
    height: 500px;
  }
  .carousel-item.left {
    transform: translateX(-420px) translateZ(-180px) scale(0.62) rotateY(45deg);
  }
  .carousel-item.right {
    transform: translateX(420px) translateZ(-180px) scale(0.62) rotateY(-45deg);
  }
  .carousel-description {
    position: absolute;
    bottom: 8vh;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0 40px 20px;
    font-size: 0.95em;
  }
}

@media (max-width: 900px) {
  .header {
    padding: 0 20px;
    height: 60px;
  }
  .logo {
    width: 20px;
    height: 20px;
  }
  .brand {
    font-size: 1.3em;
  }
  .header-icon {
    width: 24px;
    height: 24px;
  }

  .hero-section {
    min-height: auto;
    padding: 60px 0;
  }
  .hero-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
    padding: 0 20px;
  }
  .hero-left {
    max-width: 100%;
  }
  .hero-title-main {
    margin-bottom: 24px;
  }
  .hero-btns {
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
  }
  .hero-btn-main {
    padding: 12px 24px;
    font-size: 0.95em;
  }
  .hero-desc {
    margin-top: 20px;
  }
  .hero-right {
    max-width: 300px;
    padding: 20px;
  }
  .hero-img {
    max-width: 100%;
    transform: scaleX(-1) rotate(-30deg) scale(0.85);
  }

  .carousel-section {
    padding: 60px 0;
  }
  .carousel-container {
    height: 100vh;
    padding: 20px 12px;
    perspective: 1000px;
  }
  .carousel-item {
    width: 240px;
    height: 400px;
  }
  .carousel-item[data-index="1"] {
    height: 400px;
  }
  .carousel-item img {
    max-height: 400px;
  }
  .carousel-item.left {
    transform: translateX(-340px) translateZ(-150px) scale(0.6) rotateY(45deg);
  }
  .carousel-item.center {
    transform: translateX(0) translateZ(0) scale(1.1) rotateY(0deg);
  }
  .carousel-item.right {
    transform: translateX(340px) translateZ(-150px) scale(0.6) rotateY(-45deg);
  }
  .carousel-description {
    position: absolute;
    bottom: 10vh;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0 40px 20px;
    font-size: 0.95em;
  }
}

@media (max-width: 640px) {
  .header {
    padding: 0 16px;
    height: 56px;
  }
  .logo {
    width: 20px;
    height: 20px;
  }
  .brand {
    font-size: 1.1em;
  }
  .header-icon {
    width: 24px;
    height: 24px;
  }

  .hero-section {
    padding: 40px 0;
  }
  .hero-inner {
    padding: 0 16px;
    gap: 32px;
  }
  .hero-title-main {
    margin-bottom: 20px;
  }
  .hero-btns {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .hero-btn-main {
    width: 100%;
    padding: 12px 20px;
  }
  .hero-desc {
    font-size: 0.95em;
    margin-top: 16px;
  }
  .hero-right {
    max-width: 250px;
    padding: 15px;
  }
  
  .hero-img {
    transform: scaleX(-1) rotate(-30deg) scale(0.8);
  }

  .carousel-section {
    padding: 40px 0;
  }
  .carousel-container {
    height: 100vh;
    padding: 16px 8px;
    perspective: 800px;
  }
  .carousel-item {
    width: 200px;
    height: 350px;
  }
  .carousel-item[data-index="1"] {
    height: 350px;
  }
  .carousel-item img {
    max-height: 350px;
  }
  .carousel-item.left {
    transform: translateX(-240px) translateZ(-120px) scale(0.5) rotateY(45deg);
  }
  .carousel-item.center {
    transform: translateX(0) translateZ(0) scale(1) rotateY(0deg);
  }
  .carousel-item.right {
    transform: translateX(240px) translateZ(-120px) scale(0.5) rotateY(-45deg);
  }
  .carousel-description {
    position: absolute;
    bottom: 8vh;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0 24px 16px;
    font-size: 0.9em;
    line-height: 1.7;
  }
  /* 文字描述现在在 carousel-container 中，不再需要这些规则 */
}

@media (max-width: 480px) {
  .header {
    padding: 0 12px;
  }
  .brand {
    font-size: 1em;
  }

  .hero-section {
    padding: 32px 0;
  }
  .hero-inner {
    padding: 0 12px;
    gap: 24px;
  }
  .hero-title-main {
    font-size: 1.75em;
  }
  .hero-desc {
    font-size: 0.9em;
  }
  .hero-right {
    max-width: 200px;
    padding: 10px;
  }
  
  .hero-img {
    transform: scaleX(-1) rotate(-30deg) scale(0.75);
  }

  .carousel-container {
    height: 100vh;
    padding: 12px 4px;
    perspective: 600px;
  }
  .carousel-item {
    width: 180px;
    height: 300px;
  }
  .carousel-item[data-index="1"] {
    height: 300px;
  }
  .carousel-item img {
    max-height: 300px;
  }
  .carousel-item.left {
    transform: translateX(-200px) translateZ(-100px) scale(0.45) rotateY(45deg);
  }
  .carousel-item.center {
    transform: translateX(0) translateZ(0) scale(0.95) rotateY(0deg);
  }
  .carousel-item.right {
    transform: translateX(200px) translateZ(-100px) scale(0.45) rotateY(-45deg);
  }
  .carousel-description {
    position: absolute;
    bottom: 6vh;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0 20px 12px;
    font-size: 0.85em;
    line-height: 1.6;
  }
  /* 文字描述现在在 carousel-container 中，不再需要这些规则 */
}

/* Footer */
footer {
  padding: 36px 0 54px;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.8;
  background: #18141e;
}

footer p {
  margin: 8px 0;
}

footer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover {
  color: #fff;
  text-decoration: underline;
}
