html,
body {
  position: relative;
  height: 100%;
}

body {
  background: #eee;
  font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: #000;
  margin: 0;
  padding: 0;
}

body {
  background: #000;
  color: #000;
}

@media screen and (min-width: 840px) {

  .main {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
  }

  .logo {
    position: absolute;
    z-index: 2;
    top: calc((50% - (80vh / 2)) + (5vh / 2));
    left: calc(13vw - 3rem);
    color: #fff;
    font-size: 20px;
    font-weight: 300;
    /* 字间距 */
    letter-spacing: 0.2em;
    -ms-writing-mode: tb-rl;
    writing-mode: vertical-rl;
  }

  .logo:after {
    content: "";
    width: 1px;
    background-color: #fff;
    height: 40px;
    display: block;
    position: absolute;
    top: calc(100% + 5px);
    left: 45%;
    transform: translateX(-50%);
  }

  .logoimg {
    width: 96px;
  }

  .logo span {
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 2px;
  }

  .swiper {
    width: 100%;
    height: 100%;
  }

  .mySwiper .swiper-wrapper {
    padding-top: 12px;
  }

  .swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .swpiperSlideImg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .swiper {
    width: 100%;
    height: 300px;
    margin-left: auto;
    margin-right: auto;
  }

  .swiper-slide {
    background-size: cover;
    background-position: center;
  }

  .sdesc {
    font-family: inherit;
    letter-spacing: 5px;
  }

  .mySwiper2 {
    height: 100%;
    width: 100%;
  }

  .mySwiper2 .swiper-slide {
    position: relative;
    cursor: pointer;
  }

  .mySwiper {
    width: 75%;
    height: 127px;
    box-sizing: border-box;
    position: absolute;
    bottom: 50px;
    right: 0;
    z-index: 2;
  }

  .mySwiper .swiper-slide {
    cursor: pointer;
    width: auto;
    height: 90px;
    margin: 0 !important;
    margin-top: 10px !important;
    color: rgba(255, 255, 255, 1);
    background-color: rgba(208, 206, 204, 0.32)
  }

  .mySwiper .swiper-slide:not(.swiper-slide-thumb-active)+.swiper-slide {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
  }


  .mySwiper .swiper-slide:nth-child(4) {
    border-right: none;
  }


  .mySwiper .swiper-slide:hover {
    color: #000;
    background-color: #fff;
  }

  .mySwiper .swiper-slide-thumb-active {
    color: #fff;
    background-color: #b81010;
    transition: all 0.2s ease-in-out;
    padding: 5px 0 !important;
    margin-top: 5px !important;
    transition: all 0.2s ease-in-out;
  }

  /* 关键：激活态的 hover 样式，强制保持激活态样式不变 */
  .mySwiper .swiper-slide-thumb-active:hover {
    /* 继承激活态的背景色和文字色 */
    background-color: #b81010 !important;
    /* 与激活态一致，加 !important 覆盖普通 hover */
    color: #fff !important;
    /* 与激活态一致 */
    /* 继承激活态的内边距和外边距（你的原样式带了 !important，这里也要加） */
    padding: 5px 0 !important;
    margin-top: 5px !important;
    /* 保持过渡效果，避免样式闪烁 */
    transition: all 0.2s ease-in-out;
  }

  /* 
  .mySwiper .swiper-slide:hover:nth-child(2) {
    color: #fff;
    background-color: #0848a2;
  }

  .mySwiper .swiper-slide-thumb-active:nth-child(2) {
    color: #fff;
    background-color: #0848a2;
    transition: all 0.2s ease-in-out;
    padding: 5px 0 !important;
    margin-top: 5px !important;
    transition: all 0.2s ease-in-out;
  }

  .mySwiper .swiper-slide:hover:nth-child(3) {
    color: #fff;
    background-color: #b1430b;
  }

  .mySwiper .swiper-slide-thumb-active:nth-child(3) {
    color: #fff;
    background-color: #b1430b;
    transition: all 0.2s ease-in-out;
    padding: 5px 0 !important;
    margin-top: 5px !important;
    transition: all 0.2s ease-in-out;
  }

  .mySwiper .swiper-slide:hover:nth-child(4) {
    color: #fff;
    background-color: #076745;
  }

  .mySwiper .swiper-slide-thumb-active:nth-child(4) {
    color: #fff;
    background-color: #076745;
    transition: all 0.2s ease-in-out;
    padding: 5px 0 !important;
    margin-top: 5px !important;
    transition: all 0.2s ease-in-out;
  } */

  .swpiperSlideImg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }


  .swiper-title {
    font-size: 22px;
    line-height: 20px;
  }

  .swiper-desc {
    font-size: 12px;
    margin-top: 8px;
    font-weight: 320;
    font-family: inherit;
    /* 字母全部大写 */
    text-transform: uppercase;
  }

  .footer {
    position: absolute;
    bottom: 0px;
    left: 0;
    right: 0;
    line-height: 65px;
    background-color: #000;
    color: #3e3e3e;
    text-align: right;
    padding-right: 20px;
    font-size: 0.9rem;
    height: 65px;
    z-index: 1;
  }

  .sitem1 {
    position: absolute;
    right: 10px;
    z-index: 2;
    color: #fff;
    text-align: left;
  }

  .sitem2 {
    position: absolute;
    right: 10px;
    z-index: 2;
    color: #fff;
    text-align: left;
  }

  .sitem3 {
    position: absolute;
    right: 10px;
    z-index: 2;
    color: #fff;
    text-align: left;
  }

  .sitem4 {
    position: absolute;
    right: 10px;
    z-index: 2;
    color: #fff;
    text-align: left;
  }

  .sitem4 .stitle {
    font-size: 90px;
    font-weight: 300;
  }

  .sitem4 .sdesc {
    font-size: 70px;
    font-weight: 100;
    padding-left: 50px;
  }

  .stitle {
    font-size: 100px;
    font-weight: 300;
  }

  .sdesc {
    font-size: 80px;
    font-weight: 100;
    padding-left: 50px;
  }

  .btn1 {
    position: absolute;
    right: 30%;
    bottom: 230px;
    z-index: 2;
  }

  .btn1 a {
    text-decoration: none;
    background-color: #fff;
    color: #000;
    padding: 20px 30px;
    cursor: pointer;
    border-radius: 40px;
    -webkit-border-radius: 40px;
    -moz-border-radius: 40px;
    -ms-border-radius: 40px;
    -o-border-radius: 40px;
    transition: all 0.2s ease-in-out;
  }

  .btn1 a:hover {
    background-color: #b81010;
    color: #fff;
    transition: all 0.2s ease-in-out;
    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -ms-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
  }

  .swiper-item:nth-child(3) {
    position: relative;
  }

  .mySwiper .swiper-slide-thumb-active .xin {
    display: none;
  }

  .huadong_text {
    display: none;
  }

  .swiper_bg {
    width: 100%;
    height: 100vh;
    font-family: "Playfair Display";
    color: #fff;
    font-size: 42vh;
    line-height: 300px;
    opacity: 0.03;
    font-weight: 900;
    margin-top: -230px;
    position: absolute;
    top: 50%;
    left: 100px;
    text-align: left;
    transform: translateY(-50%);
  }

  .xin {
    position: absolute;
    top: -10px;
    right: 15px;
    width: 30px;
    height: 30px;
    z-index: 3;
    background-color: #b81010;
    line-height: 30px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
  }

  .xin img {
    width: 15px;
  }

  .huadong {
    display: none;
  }
}

@media screen and (min-width: 240px) and (max-width: 840px) {
  .main {
    display: none;
  }

  .main {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
  }

  .logo {
    position: absolute;
    z-index: 2;
    top: 30px;
    left: 30px;
    color: #fff;
    font-size: 14px;
    font-weight: 300;
    /* 字间距 */
    letter-spacing: 0.1em;
    -ms-writing-mode: tb-rl;
    writing-mode: vertical-rl;
  }

  .logo:after {
    content: "";
    width: 1px;
    background-color: #fff;
    height: 40px;
    display: block;
    position: absolute;
    top: calc(100% + 5px);
    left: 45%;
    transform: translateX(-50%);
  }

  .logoimg {
    width: 40px;
    margin-bottom: 10px;
  }

  .logo span {
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 2px;
  }

  .swiper {
    width: 100%;
    height: 100%;
  }

  .swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
  }

  .swpiperSlideImg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .swiper {
    width: 100%;
    height: 300px;
    margin-left: auto;
    margin-right: auto;
  }

  .swiper-slide {
    background-size: cover;
    background-position: center;
  }

  .mySwiper2 {
    height: 100%;
    width: 100%;
  }

  .mySwiper2 .swiper-slide {
    position: relative;
  }

  .mySwiper {
    width: 220px;
    height: auto;
    box-sizing: border-box;
    position: absolute;
    right: 0px;
    top: 100px;
    z-index: 2;
  }

  .mySwiper .swiper-wrapper {
    display: block !important;
    width: 100%;
  }

  .mySwiper .swiper-slide {
    cursor: pointer;
    width: 200px !important;
    margin: 0 !important;
    margin-top: 1px !important;
    color: #fff;
    background: rgba(208, 206, 204, 0.32);
    padding: 10px 5px;
    transform: translateX(50px);
    transition: all 0.2s ease-in-out;
    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -ms-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    -webkit-transform: translateX(50px);
    -moz-transform: translateX(50px);
    -ms-transform: translateX(50px);
    -o-transform: translateX(50px);
  }

  /* .mySwiper .swiper-slide:nth-child(1) {
    color: #fff;
    background-color: #b81010;
    transition: all 0.2s ease-in-out;
  }

  .mySwiper .swiper-slide:nth-child(2) {
    color: #fff;
    background-color: #0848a2;
    transition: all 0.2s ease-in-out;
  }

  .mySwiper .swiper-slide:nth-child(3) {
    color: #fff;
    background-color: #b1430b;
    transition: all 0.2s ease-in-out;
  }

  .mySwiper .swiper-slide:nth-child(4) {
    color: #fff;
    background-color: #076745;
    transition: all 0.2s ease-in-out;
  } */

  .mySwiper .swiper-slide-thumb-active {
    color: #fff;
    background: rgba(184, 16, 16, 1);
    transform: translateX(10px);
    -webkit-transform: translateX(10px);
    -moz-transform: translateX(10px);
    -ms-transform: translateX(10px);
    -o-transform: translateX(10px);
    transition: all 0.2s ease-in-out;
  }

  .swpiperSlideImg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .swiper-desc {
    font-size: 12px;
    font-weight: 100;
  }

  .swiper-title {
    font-size: 14px;
    line-height: 20px;
  }


  .footer {
    position: absolute;
    bottom: 0px;
    left: 0;
    right: 0;
    background-color: #000;
    color: #3e3e3e;
    text-align: right;
    padding-right: 20px;
    font-size: 10px;
    height: 35px;
    padding: 10px;
    z-index: 1;
    line-height: 18px;
  }

  .footer a {
    display: inline-block;
    text-align: center;
  }



  .sitem1 {
    position: absolute;
    bottom: 170px;
    right: 50px;
    z-index: 2;
    color: #fff;
    text-align: left;
  }

  .sitem1 .sdesc {
    margin-top: 20px;
  }

  .sitem2 {
    position: absolute;
    left: 80px;
    bottom: 170px;
    z-index: 2;
    color: #fff;
    text-align: left;
  }

  .sitem2 .sdesc {
    margin-top: 20px;
  }

  .sitem3 {
    position: absolute;
    bottom: 300px;
    right: 50px;
    z-index: 2;
    color: #fff;
    text-align: left;
  }

  .sitem3 .sdesc {
    margin-top: 20px;
  }

  .sitem4 {
    position: absolute;
    bottom: 170px;
    right: 30px;
    z-index: 2;
    color: #fff;
    text-align: left;
  }

  .sitem4 .sdesc {
    margin-top: 20px;
  }

  .sitem4 .stitle {
    font-size: 30px;
  }

  .sitem4 .sdesc {
    font-size: 20px;
    font-weight: 100;
    padding-left: 20px;
  }

  .stitle {
    font-size: 40px;
    font-weight: 300;
  }

  .sdesc {
    font-size: 20px;
    font-weight: 100;
    padding-left: 50px;
  }

  .btn1 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) !important;
    bottom: 110px;
    z-index: 2;
    -webkit-transform: translateX(-50%) !important;
    -moz-transform: translateX(-50%) !important;
    -ms-transform: translateX(-50%) !important;
    -o-transform: translateX(-50%) !important;
  }

  .btn1 a {
    text-decoration: none;
    background-color: #fff;
    color: #000;
    padding: 15px 25px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 40px;
    -webkit-border-radius: 40px;
    -moz-border-radius: 40px;
    -ms-border-radius: 40px;
    -o-border-radius: 40px;
  }

  .btn1 a:hover {
    background-color: #b81010;
    color: #fff;
  }

  .mySwiper .swiper-slide-thumb-active .xin {
    display: none;
  }


  .xin {
    position: absolute;
    top: -10px;
    left: 15px;
    width: 30px;
    height: 30px;
    z-index: 3;
    background-color: #b81010;
    line-height: 30px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
  }

  .xin img {
    width: 15px;
  }

  .huadong {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    z-index: 2;
    text-align: center;
    font-size: 12px;
    color: #333;
    display: flex;
    justify-content: space-around;
    align-items: center;
  }

  .huadong_text {
    position: absolute;
    bottom: 65px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9;
    font-size: 12px;
    color: #fff;
    opacity: 0.5;
  }

  .huadong span {
    display: block;
  }

  .huadong span:nth-child(1),
  .huadong span:nth-child(2) {
    padding-top: 7px;
  }


  .swiper-button-prev,
  .swiper-button-next {
    /* 1. 调小箭头容器的宽高（默认约44px，按需修改） */
    width: 24px;
    height: 24px;
    /* 2. 若箭头是文字（如< >），调小字体大小 */
    font-size: 24px;
    /* 3. 调整行高，让文字/图标垂直居中 */
    line-height: 30px;
    /* 可选：去掉默认的背景/边框（如需保留则删除） */
    background: none;
    border: none;
  }

  .swiper-button-prev::after,
  .swiper-button-next::after {
    /* 调小SVG图标的字体大小（SVG通过content渲染，font-size控制尺寸） */
    font-size: 24px !important;
    /* 可选：修改图标颜色 */
    color: #fff;
    font-weight: bold;
  }

  .swiper-button-next {
    animation: aright 1.5s infinite alternate;
    -webkit-animation: aright 1.5s infinite alternate;
  }

  .swiper-button-prev {
    -webkit-animation: arleft 1.5s infinite alternate;
    animation: arleft 1.5s infinite alternate;
  }
}

@-webkit-keyframes arleft {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-10px);
  }
}

@keyframes arleft {
  from {
    transform: translateX(-10px);
  }

  to {
    transform: translateX(0px);
  }
}

@-webkit-keyframes aright {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(10px);
  }
}

@keyframes aright {
  from {
    transform: translateX(10px);
  }

  to {
    transform: translateX(0px);
  }
}

.subscript {
  -webkit-animation: subscript-move 1.5s infinite alternate;
  animation: subscript-move 1.5s infinite alternate;
}


@-webkit-keyframes subscript-move {
  from {
    top: -5px;
  }

  to {
    top: -15px;
  }
}

@keyframes subscript-move {
  from {
    top: -15px;
  }

  to {
    top: -5px;
  }
}

/* 基础动画定义 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0);
  }
}

/* 关键修复：移除组合选择器的 animation-duration 覆盖，每个元素单独定义完整动画 */
/* .swiper-slide-active .logo, */
.swiper-slide-active .stitle,
.swiper-slide-active .sdesc,
.swiper-slide-active .btn1

/* .swiper-slide-thumb-active .swiper-title,
.swiper-slide-thumb-active .swiper-desc  */
  {
  animation-fill-mode: both;
  /* 只保留填充模式，不设置统一时长 */
}

/* 修复优先级：使用 !important 确保时长不被覆盖，或提高选择器权重 */
/* 淡入上移：2秒（变慢） */
/* 浮动：7秒一个周期（变慢） */
/* .logo {
  opacity: 0;
  animation:
    fadeInUp 2s ease-out 0.1s 1 both,
    float 7s ease-in-out 1s infinite;
} */

.stitle {
  opacity: 0;
  animation: fadeIn 1s ease-out 0.6s 1 both;
}

.sdesc {
  opacity: 0;
  animation: fadeIn 1s ease-out 0.6s 1 both;
}

/* .btn1 {
  opacity: 0;
  animation: fadeIn 1s ease-out 0.6s 1 both;
} */

/* .swiper-title {
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.2s 1 both;
}

.swiper-desc {
  opacity: 0;
  animation: fadeIn 0.8s ease-out 0.4s 1 both;
} */

/* 非激活状态隐藏 */
.swiper-slide:not(.swiper-slide-active) .logo,
.swiper-slide:not(.swiper-slide-active) .stitle,
.swiper-slide:not(.swiper-slide-active) .sdesc,
.swiper-slide:not(.swiper-slide-active) .btn1 {
  opacity: 0;
  pointer-events: none;
  animation: none !important;
  /* 非激活状态强制取消动画 */
}

.swiper-slide:not(.swiper-slide-thumb-active) .swiper-title,
.swiper-slide:not(.swiper-slide-thumb-active) .swiper-desc {
  opacity: 1;
  /* 缩略图非激活状态半透明，而非完全隐藏 */
  pointer-events: none;
  animation: none !important;
}

/* 修复移动端 !important 覆盖问题：单独定义 logo 动画 */
@media (max-width: 768px) {

  .stitle,
  .sdesc,
  .btn1,
  .swiper-title,
  .swiper-desc {
    animation-duration: 0.5s !important;
  }

}