:root {
  --primary-color: #c41e3a; /* 中国红 */
  --secondary-color: #8a2be2;
  --accent-color: #ad9a58; /* 金色 */
  --text-sm: 12px;
  --text-lg: 20px;
  --spacing-sm: 5px;
  --spacing-md: 15px;
  --spacing-lg: 20px;
  --user-card-height: 140px;
  --user-card-width: 280px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden; /* 隐藏滚动条 */
  font-family: "Microsoft YaHei", "Heiti SC", sans-serif;
  line-height: 1.6;
}

#app {
  width: 100vw;
  height: 100vh;
  position: relative;
}

/* 翻页容器 */
.page-container {
  width: 100%;
  height: 300vh; /* 3个页面高度 */
  transition: transform 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* 导航栏样式 */
nav {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 5px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img {
  height: 40px;
  margin-right: 10px;
}

.nav-logo span {
  color: var(--accent-color);
  font-size: 22px;
  font-weight: bold;
  font-family: "Ma Shan Zheng", cursive;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
  position: relative;
}

.nav-links a {
  color: #c2c2c2;
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
  position: relative;
  padding: 5px 0;
}

.nav-links a.active {
  color: var(--accent-color);
}

.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--accent-color);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-color);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

/* 移动端菜单按钮 */
.menu-toggle {
  display: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

/* 每帧样式 */
.frame {
  width: 100vw;
  height: 100vh;
  position: relative;
  padding-top: 80px;
  overflow: hidden;
}

/* 第一帧样式 */
#frames_one {
  background-image: url("../images/back_2.png");
  background-size: 100% 100%;
  background-position: center 80%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#frames_one .title-img {
  width: 33%;
  margin-top: 3%;
  animation: fadeIn 1s ease forwards;
}

.floating-img {
  position: absolute;
  z-index: 1;
  opacity: 0;
  animation: float 6s ease-in-out infinite, fadeIn 1s ease forwards;
}

@keyframes float {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, -10px);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.baize-main {
  width: clamp(150px, 20vw, 237px);
  top: 40%;
  left: 33%;
  transform: translateX(-50%);
  animation-delay: 0.3s;
}

.taotie-card {
  width: clamp(200px, 30vw, 353px);
  bottom: 32%;
  right: 5%;
  animation-delay: 0.6s;
}

.jiuwei-card {
  width: clamp(180px, 25vw, 302px);
  top: 40%;
  right: 30%;
  animation-delay: 0.9s;
}

/* 第二帧样式 */
#frames_two {
  max-width: 100%;
}

.scroll-bg {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.9;
}

.users {
  width: 100%;
  position: absolute;
  top: 50%;
  left: 12%;
  transform: translateY(-50%);
  padding: clamp(50px, 8vw, 87px) clamp(30px, 10vw, 115px);
}

.user {
  width: 100%;
  max-width: var(--user-card-width);
  height: var(--user-card-height);
  display: flex;
  align-items: center;
  padding: 0 0 0 var(--spacing-lg);
  margin-top: 42px;
  transition: var(--transition);
  border-radius: 8px;
}

.user:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.user:first-child {
  margin-top: 0;
}

.user img {
  height: 95%;
  object-fit: contain;
  border-radius: 4px;
}

.user_content {
  flex: 1;
  height: 100%;
  padding: var(--spacing-lg) var(--spacing-sm) var(--spacing-lg)
    var(--spacing-md);
}

.name {
  font-size: var(--text-lg);
  font-weight: bold;
  color: var(--primary-color);
}

.labels {
  font-size: var(--text-sm);
  margin-top: var(--spacing-sm);
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.labels label {
  background-image: url(../images/横向标签.png);
  background-size: 100% 100%;
  padding: 0 8px;
  color: #fff;
  white-space: nowrap;
}

.described {
  font-size: var(--text-sm);
  margin-top: var(--spacing-sm);
  text-align: justify;
  line-height: 1.3;
}

/* 第三帧样式 */
#frames_three {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--spacing-lg);
  position: relative;
  padding-top: 80px;
}

#frames_three > img {
  width: 100vw;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  object-fit: cover;
}

#frames_three .logo {
  position: absolute;
  top: 100px; /* 调整位置避免被导航栏遮挡 */
  left: 50%;
  transform: translateX(-50%);
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 2px;
  font-family: "Ma Shan Zheng", cursive;
}

/* 轮播图箭头优化 */
.swiper-button-prev,
.swiper-button-next {
  color: var(--accent-color) !important;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  color: var(--primary-color) !important;
  transform: scale(1.1);
}
.swiper {
  max-width: 1200px;
  max-height: 80vh;
  width: 90%;
  margin: 0 auto;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide > img {
  width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

/* 周边列表样式 */
.rim {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.rim_list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  padding: 50px 200px;
  margin-top: 20px;
  position: absolute;
  top: 0;
  left: 0;
}

.rim_item {
  flex: 0 0 calc(25% - 7.5px);
  box-sizing: border-box;
  transition: var(--transition);
}

.rim_item:hover {
  transform: scale(1.05);
}

.rim_item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* 底部页脚样式 */
#user {
  background-color: #fff;
  color: #fff;
  height: 100vh;
  padding: 0 0 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px var(--spacing-md) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo img {
  height: 60px;
  margin-bottom: 15px;
}

.footer-logo p {
  color: #aaa;
  max-width: 250px;
}

.footer-title {
  font-size: 18px;
  color: var(--primary-color);
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 8px;
}

.footer-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.contact-info p {
  color: #aaa;
  margin-bottom: 8px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.social-links a {
  color: #aaa;
  font-size: 24px;
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid #333;
  margin-top: 10px;
  padding-top: 10px;
  text-align: center;
  color: #aaa;
  font-size: 14px;
}

.footer-bottom a {
  color: #aaa;
  text-decoration: none;
  transition: var(--transition);
}

.footer-bottom a:hover {
  color: var(--primary-color);
}

/* 翻页控制器 */
.page-controls {
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
}

.page-dot.active {
  background-color: var(--accent-color);
  transform: scale(1.3);
}

.scroll-hint {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 14px;
  z-index: 999;
  opacity: 0.8;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-10px) translateX(-50%);
  }
  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}

/* 响应式调整 */
@media (max-width: 768px) {
  :root {
    --user-card-height: 120px;
    --text-lg: 16px;
  }

  /* 导航栏响应式 */
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.95);
    width: 100%;
    height: calc(100vh - 70px);
    padding: 20px 0;
    transition: var(--transition);
    z-index: 999;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    margin: 0;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .menu-toggle {
    display: block;
  }

  .users {
    padding: clamp(30px, 5vw, 50px);
  }

  .user {
    padding: 0 var(--spacing-sm);
    margin-top: 25px;
  }

  #frames_three .logo {
    font-size: 24px;
    top: 90px;
  }

  .rim_item {
    flex: 0 0 calc(50% - 5px);
  }
}

@media (max-width: 480px) {
  .user {
    flex-direction: column;
    height: auto;
    padding: 15px;
    text-align: center;
  }

  .user img {
    height: auto;
    width: 60%;
    margin-bottom: 10px;
  }

  .labels {
    justify-content: center;
  }

  .rim_item {
    flex: 0 0 100%;
  }
}

.intaoduce {
  max-width: 100vw;
  box-sizing: border-box;
  padding: 100px var(--spacing-md);
  text-align: center;
  background-image: url(../images/back_4.png);
  flex: 1;
  background-size: cover;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}
.intaoduce > img {
  width: 400px;
}
.logoName {
  font-size: 35px;
}
.intaoduce div {
  text-align: center;
}
.intaoduce_content {
  color: #fff;
  letter-spacing: 5px;
  margin: 20px 0;
}
.social-links img {
  width: 30px;
}

.open {
  position: fixed;
  top: 50%; /* 垂直方向先定位到50%处 */
  left: 50%; /* 水平方向先定位到50%处 */
  /* 通过translate反向偏移自身50%，实现精准居中 */
  transform: translate(-50%, -50%);
  z-index: 999;
  background: #fff;
  padding: 20px;
  border-radius: 20px;
  text-align: center;
  color: #aaa;
  font-size: 14px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.error {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 20px;
  cursor: pointer;
}

.baji {
  background: #eeeeee6b;
  overflow: hidden;
}
.rim_list img {
  width: 150px;
}

.rim_list .title {
  text-align: center;
  font-weight: bold;
  font-family: cursive;
  font-size: 28px;
  width: 100%;
}

.yaoshilian {
  flex: 1;
  overflow: hidden;
  background: #0000001e;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  position: relative;
}

.rim_list > div {
  box-sizing: border-box;
  padding: 20px;
}

.falst-item {
  width: 100%;
  text-align: center;
  position: absolute;
  top: 100px;
}

.rim_all {
  width:600px;
  display: flex;
}

.rim_all > img {
  width: 100px;
}
