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;
}

:root {
  --primary-color: #ff4757;
  --button-size: 80px;
  --transition-speed: 0.3s;
}

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

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

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper-slide.header {
  background-image: url('./assets/header.jpg');
  background-size: 100% 100%;
}

.swiper-slide.xwzx {
  position: relative;
  background-image: url('./assets/xwzx-2.png');
  background-size: 100% 100%;
}

.swiper-slide.yxts {
  position: relative;
  background-image: url('./assets/yxts.png');
  background-size: 100% 100%;
}

.swiper-slide.footer {
  height: 20%;
}

.mySwiper2 {
  width: 60vw;
  height: 28vw;
  overflow: hidden;
}

.mySwiper2 .swiper-slide {
  width: 50vw;
  background: #fff;
  box-shadow: 0 8px 30px #ddd;
}

.mySwiper2 .swiper-slide img {
  display: block;
  width: 100%;
}

.swiper-button-prev {
  left: 10%;
}

.swiper-button-next {
  right: 10%;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  color: #1d1c1a;
}

.mySwiper3 {
  position: relative;
  display: none;
  width: 100vw;
}

.mySwiper3 .swiper-slide,
.mySwiper3 .swiper-slide img {
  height: auto;
  background-color: transparent;
}

.mySwiper3 .swiper-pagination {
  bottom: 30%;
}

.play-button {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: var(--button-size);
  height: var(--button-size);
  margin: auto;
  border-radius: 50%;
  background-color: var(--primary-color);
  box-shadow: 0 5px 15px rgba(255, 71, 87, 0.4);
  transition: all var(--transition-speed) ease;
  cursor: pointer;
}

.play-button::before {
  content: '';
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 20px solid white;
  transition: all var(--transition-speed) ease;
}

.play-button:hover {
  box-shadow: 0 8px 25px rgba(255, 71, 87, 0.6);
  transform: scale(1.1);
}

.play-button:active {
  transform: scale(0.95);
}

.header-title {
  font-family: 'STKaiti', 'KaiTi', serif;
  font-size: 40px;
  letter-spacing: 2px;
  color: #d38b45;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(0, 0, 0, 0.8) 50%,
      transparent 100%);
  padding: 10px;
  border-top: 2px solid #d38b45;
  border-bottom: 2px solid #d38b45;
  width: max-content;
  margin: 2rem auto;
}

.header-download {
  display: flex;
  justify-content: center;
  gap: 5px;
}

.header-download-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 57.5px;
  background: linear-gradient(145deg, #c62f2f, #a52a2a);
  color: #fffaf0;
  border: 1px solid #fffaf0;
  border-radius: 2px;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
  font-family: "楷体", "STKaiti", serif;
}

.header-btn:after {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

.header-btn.android {
  background: linear-gradient(145deg, #134E5E, #71B280);
}

.header-btn.ios {
  background: linear-gradient(145deg, #1a2980, #26d0ce);
}

.header-btn img {
  display: inline-block;
  width: auto;
  height: 20px;
  margin-right: 5px;
  font-size: 0;
}

.header-code {
  width: 120px;
}

.header-code img { 
  width: 100%;
}

img.header-code-android,
img.header-code-ios { 
  display: none;
}

.xwzx-title,
.yxts-title {
  font-family: "楷体", "KaiTi", "STKaiti", "SimKai", "BiauKai", serif;
  font-size: 50px;
  color: #1d1c1a;
  letter-spacing: -0.02em;
  text-align: left;
  text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.1);
  text-transform: uppercase;
}

.yxts-title {
  position: absolute;
  top: 5vh;
}

.xwzx-container {
  display: flex;
  flex-direction: column;
  width: 80vw;
  margin-top: 80px;
  color: #fff;
}

.xwzx-container a {
  color: #333;
  text-decoration: none;
}

.xwzx-item {
  box-sizing: border-box;
  width: 50%;
  margin: 15px;
  padding: 15px;
  border: 2px solid #438d8e;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, .8);
  font-size: 14px;
  color: #333;
  text-align: left;
  transition: all .3s;
}

.xwzx-item:hover {
  border: 2px solid #981829;
  transform: scale(1.02);
  cursor: pointer;
}

.xwzx-item-title {
  margin-bottom: 5px;
  font-size: 22px
}

.xwzx-item-content {
  font-size: 16px;
}

.footer {
  margin: 0;
  background-color: #1d1c1a;
  font-size: 12px;
  color: #a1a1a7;
  text-align: center;
}

.footer a {
  color: #a1a1a7;
  text-decoration: none;
}

@media (max-width: 768px) { 
  .swiper-slide.header {
    background-size: cover;
    background-position: center;
  }

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

  .swiper-slide.yxts {
    background-size: cover;
    background-position: 52.5%;
  }

  .swiper-button-prev,
  .swiper-button-next {
    display: none;
  }

  .mySwiper2 {
    display: none;
  }

  .mySwiper3 {
    display: block;
  }
  
  .header-title {
    font-size: 24px;
  }

  .xwzx-container {
    width: 90vw;
    margin-top: 0px;
  }

  .xwzx-item {
    width: 100%;
    margin: 0;
    margin-bottom: 15px;
  }

  .xwzx-item:last-child {
    margin-bottom: 0;
  }

  .xwzx-item-title {
    font-size: 18px
  }

  .xwzx-item-content {
    font-size: 14px;
  }

  .footer {
    margin: 0;
    background-color: #1d1c1a;
    font-size: 12px;
    color: #a1a1a7;
    text-align: center;

    padding: 15px 0;
  }
}