html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* 通用区块样式 */
.section {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 0;
}

/* 背景样式 */
.parallax-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  transition: opacity 0.8s ease, transform 0.3s ease-out;
  will-change: transform, opacity;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.parallax-bg.active {
  transition: opacity 0.8s ease, transform 0.3s ease-out;
}

/* 各个区块的背景 */
#box {
  overflow: hidden;
  perspective: 1000px;
}

#box .parallax-bg {
  background-image: url("/img/backgrounds/场景_假日.png");
  transform-origin: center center;
}

#sanhu {
  perspective: 1000px;
}

#sanhu .parallax-bg {
  background-image: url("/img/backgrounds/71vvjvd4u4rjbqe9l6amxf2b8nqejfv.png");
  transform-origin: center center;
}

#wuyi {
  perspective: 1000px;
}

#wuyi .parallax-bg {
  background-image: url("/img/backgrounds/lwlbhgu5gg6txehxzzfffhkx59dxa0u.png");
  transform-origin: center center;
}

#yun {
  perspective: 1000px;
}

#yun .parallax-bg {
  background-image: url("/img/backgrounds/7egc0u4zeivqo7gsj9pico02xamme13.png");
  transform-origin: center center;
}

#biao {
  perspective: 1000px;
}

#biao .parallax-bg {
  background-image: url("/img/backgrounds/qmrcnqri2c1rbyes58y9fj80jt9t5sr.png");
  transform-origin: center center;
}

/* 导航栏样式 */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  padding: 1rem 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
}

nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  width: auto;
}

nav ul li {
  margin: 0;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #d4145a;
}

/* 搜索框样式 */
.search-container {
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: 2rem;
}

.search-input {
  padding: 0.5rem;
  border: none;
  border-radius: 4px;
  margin-right: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.search-button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  background: #fff;
  color: #000;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-button:hover {
  background: #baecec;
}

/* 内容区域样式 */
.content-wrapper {
  width: 100%;
  max-width: 1200px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0 auto;
  transform-style: preserve-3d;
}

/* 轮播图容器样式 */
.carousel-container {
  width: 100%;
  max-width: 1000px;
  position: relative;
  margin: 0 auto;
}

/* 各个系列的main容器样式 */
.sanhu-main,
.wuyi-main,
.yun-main,
.biao-main {
  margin: 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* 标题样式 */
h3 {
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 2rem;
}
