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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #fff;
}

a{
  text-decoration: none;
  cursor: pointer;
}

header {
  background: white;
  padding: 16px 40px;
}

header .name {
  font-size: 20px;
  color: #7d7d7d;
  font-weight: normal;
}

.banner {
  width: 100%;
}

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

.swiper-slide {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

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

.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: #fff;
  border-radius: 5px;
}


.showcase {
  width: 100%;
  background: linear-gradient(to bottom, #eaf1fb, #f5f8fd);
}

.showcase-item {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.showcase-img {
  width: 100%;
  min-height: 100%;
}

.showcase-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.showcase-img img.loaded {
  opacity: 1;
}

img[loading="lazy"] {
  background: #eef1f6; /* 加载占位背景色 */
}

.showcase-text {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 35%;
  display: flex;
  flex-direction: column;
}

.showcase-item.left-text .showcase-text {
  left: 5%;
  align-items: flex-start;
}

.showcase-item.right-text .showcase-text {
  right: 5%;
  align-items: flex-end;
}

.showcase-text h3 {
  font-size: 28px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.showcase-text .en-desc {
  font-size: 13px;
  color: #2a6df4;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.showcase-text .text-line {
  border: none;
  border-top: 1px solid #567adf;
  width: 60px;
  margin: 0 0 24px 0;
}

.showcase-text .zh-desc {
  font-size: 14px;
  color: #5a5a5e;
  line-height: 2;
  letter-spacing: 0.5px;
}
.right-text .showcase-text .zh-desc {
  text-align: right;
}

footer {
  background: #0a1f44;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  padding: 40px 20px 50px;
}

footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #fff;
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.footer-nav .divider {
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  margin: 0 4px;
}

.footer-line {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  width: 100%;
  margin: 0 auto 30px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.8;
}

.footer-info p {
  margin: 0;
}

/* ========== iPad 端适配（769px - 1024px） ========== */
@media (max-width: 1024px) and (min-width: 769px) {
  .showcase-text {
    width: 45%;
  }

  .showcase-text h3 {
    font-size: 24px;
  }

  .showcase-text .en-desc {
    font-size: 12px;
  }

  .showcase-text .zh-desc {
    font-size: 13px;
  }
}

/* ========== 手机端适配（<= 768px） ========== */
@media (max-width: 768px) {
  header {
    padding: 12px 20px;
  }

  header .name {
    font-size: 17px;
  }

  .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
  }

  /* 图文区：文字不再浮在图片上，改为上下堆叠 */
  .showcase-item {
    display: flex;
    flex-direction: column;
  }

  .showcase-text {
    position: static;
    transform: none;
    width: 100%;
    padding: 30px 24px 40px;
  }

  .showcase-item.left-text .showcase-text,
  .showcase-item.right-text .showcase-text {
    left: auto;
    right: auto;
    align-items: flex-start;
  }

  .showcase-text h3 {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .showcase-text .en-desc {
    font-size: 12px;
    margin-bottom: 16px;
  }

  .showcase-text .text-line {
    margin-bottom: 18px;
  }

  .showcase-text .zh-desc {
    font-size: 13px;
    line-height: 1.9;
  }

  .right-text .showcase-text .zh-desc {
    text-align: left;
  }

  /* 底部响应式 */
  footer {
    padding: 30px 16px 40px;
  }

  .footer-nav {
    gap: 6px;
    margin-bottom: 16px;
  }

  .footer-nav a {
    font-size: 13px;
  }

  .footer-info {
    font-size: 12px;
    gap: 10px;
  }
}

/* ========== 小屏手机适配（<= 480px） ========== */
@media (max-width: 480px) {
  header .name {
    font-size: 15px;
  }
  
  .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
  }

  .showcase-text {
    padding: 24px 18px 32px;
  }

  .showcase-text h3 {
    font-size: 18px;
  }

  .footer-nav a {
    font-size: 12px;
  }
}

/* 自定义滚动条样式 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: #567adf;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3f63c7;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #567adf #f1f1f1;
}
