* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", "PingFang SC", sans-serif;
  color: #333;
  background-color: #f8f9fb;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-section {
  display: flex;
  flex: 1;
  height: 80%;
  background-image: url("https://res.callmysoft.com/wm-static-resource/Sem/728_sem/pic-banner-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 左侧文字部分 */
.left-panel {
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  color: white;
}

.left-panel .content {
  max-width: 480px;
}

.left-panel h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 1.2rem;
  margin-bottom: 20px;
  opacity: 0.9;
}

.desc {
  line-height: 1.8;
  margin-bottom: 35px;
  opacity: 0.95;
}

/* 下载按钮 */
.download-buttons .btn {
  display: inline-block;
  margin: 8px 10px 0 0;
  padding: 12px 25px;
  background-color: white;
  color: #0078ff;
  text-decoration: none;
  border-radius: 25px;
  font-weight: bold;
  transition: 0.3s;
}

.download-buttons .btn:hover {
  background-color: #e3f2ff;
  transform: translateY(-2px);
}

/* ✅ 右侧轮播图部分 */
.right-panel {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: transparent;
}

/* 轮播容器：固定尺寸（可改） */
.carousel {
  width: 80%;
  max-width: 600px;
  height: 360px;            /* 固定高度，保证所有图片同尺寸显示 */
  overflow: hidden;
  border-radius: 16px;
  position: relative;
  /* box-shadow: 0 8px 25px rgba(0,0,0,0.3); */
  /* background: rgba(0,0,0,0.04); */
}

/* 滑动条：宽度由图片数量控制（用 JS 计算，也可手动设置为 calc(100% * N)） */
.slides {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease-in-out;
  transform: translateX(0);
  will-change: transform;
}

/* 每张图片占可视区 100%（相对于 .carousel） */
.slides img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;    /* 保持比例且完整显示 */
  display: block;
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
}

/* 小圆点指示器（可选） */
.dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}
.dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  opacity: 0.8;
  transition: transform .2s, background .2s;
  cursor: pointer;
}
.dots .dot.active {
  transform: scale(1.25);
  background: #ffffff;
}

/* 鼠标悬停暂停（由 JS 控制，但加上这句作为视觉） */
.carousel:hover .slides {}

/* 响应式 */
@media (max-width: 900px) {
  .carousel { width: 92%; height: 220px; }
}

/* 底部版权 */
footer {
  text-align: center;
  padding: 15px;
  font-size: 0.9rem;
  color: #666;
  background-color: #f0f3f6;
}

/* 响应式布局 */
@media (max-width: 900px) {
  .main-section {
    flex-direction: column;
  }
  .left-panel, .right-panel {
    width: 100%;
    height: 50%;
  }
  .left-panel {
    padding: 40px 20px;
    text-align: center;
  }
  .download-buttons .btn {
    display: block;
    margin: 10px auto;
    width: 70%;
  }
}
