* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #f4f2ef;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  color: #2e2a28;
  line-height: 1.5;
  scroll-behavior: smooth;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

/* Logo */
.logo-wrapper {
  margin-bottom: 2rem;
  text-align: center;
}
.logo-img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}

h2 {
  font-size: 1.8rem;
  font-weight: 350;
  margin-bottom: 1.5rem;
  color: #4f4a45;
  letter-spacing: 1px;
  border-left: 6px solid #b28b6f;
  padding-left: 1.2rem;
}

/* ---------- 第一屏：左右布局 3:1 ---------- */
.why-section {
  display: flex;
  gap: 2rem;
  background: rgba(255, 250, 240, 0.6);
  backdrop-filter: blur(2px);
  padding: 2.5rem 2.8rem;
  border-radius: 48px 12px 48px 12px;
  box-shadow: 0 16px 40px -12px rgba(70, 50, 40, 0.2);
  margin-bottom: 4rem;
  border: 1px solid #ede3d7;
}

.why-text {
  flex: 2; /* 占3份 */
  max-height: 400px;
  overflow-y: auto;
  padding-right: 1rem;
}

.why-text p {
  font-size: 1.2rem;
  color: #3f3a35;
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 1.0rem;
}

.why-text p:last-child {
  margin-bottom: 0;
  font-style: italic;
  text-align: right;
  color: #776b60;
}

.why-carousel {
  flex: 1; /* 占1份 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 360px; /* 调小轮播最大宽度 */
  border-radius: 24px 8px 24px 8px;
  overflow: hidden;
  box-shadow: 0 12px 28px -12px #5f4e3e;
  background: #e6dfd6;
}

.carousel-slides {
  display: flex;
  transition: transform 0.4s ease;
  aspect-ratio: 4 / 3;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

/* 箭头按钮 */
.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(180, 150, 130, 0.7);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
  backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 240, 220, 0.5);
}

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(150, 120, 100, 0.9);
}

.carousel-prev {
  left: 8px;
}

.carousel-next {
  right: 8px;
}

/* 指示点 */
.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 10;
}

.carousel-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(240, 230, 215, 0.6);
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid rgba(100, 80, 60, 0.3);
}

.carousel-dots span.active {
  background: #b28b6f;
  transform: scale(1.2);
  border-color: #fff;
}

/* 响应式：小屏改为上下布局 */
@media (max-width: 880px) {
  .why-section {
    flex-direction: column;
  }
  .why-text {
    max-height: 300px;
  }
  .carousel-container {
    max-width: 100%;
  }
}

/* ---------- 第二屏：图片网格 ---------- */
.gallery-section {
  margin-bottom: 4rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.8rem;
}

/* 图片项容器，用于绝对定位文字 */
.gallery-item {
  position: relative;
  background: #e6dfd6;
  border-radius: 24px 6px 24px 6px;
  overflow: hidden;
  box-shadow: 0 12px 24px -16px #3f3a35;
  transition: all 0.2s ease;
  aspect-ratio: 4 / 3;
}

.gallery-item:hover {
  transform: scale(1.01);
  box-shadow: 0 20px 28px -12px #5a4c40;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* 图片名称浮层（透明白框） */
.image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 250, 240, 0.85); /* 透明白色 */
  backdrop-filter: blur(2px);
  color: #3f3a35;
  text-align: center;
  padding: 0.6rem 0;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  border-top: 1px solid rgba(200, 180, 160, 0.5);
  transform: translateY(100%);
  transition: transform 0.25s ease;
}

.gallery-item:hover .image-caption {
  transform: translateY(0);
}

/* ---------- 第三屏：下载区域 ---------- */
.download-section {
  background: #ffffffd9;
  backdrop-filter: blur(4px);
  padding: 2.5rem 2.2rem;
  border-radius: 36px 12px 36px 12px;
  box-shadow: 0 20px 40px -18px #665c53;
  border: 1px solid #dcd2c6;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
  margin-top: 2rem;
}

.download-item {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #faf7f2;
  padding: 0.7rem 1rem;
  border-radius: 60px 12px 60px 12px;
  border: 1px solid #dacfc3;
  box-shadow: inset 0 1px 4px #fff, 0 4px 8px -6px #7f6e5d;
  transition: background 0.15s;
}

.download-item:hover {
  background: #f5ede2;
}

.range-btn {
  flex: 1;
  background: #b28b6f;
  border: none;
  padding: 0.85rem 0.8rem;
  border-radius: 40px 6px 40px 6px;
  font-size: 1rem;
  font-weight: 500;
  color: #fefaf5;
  letter-spacing: 0.3px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 4px 10px -4px #a78e7a;
  transition: background 0.2s, box-shadow 0.2s;
  border: 1px solid #cba98b;
  font-family: 'Inter', monospace;
  cursor: pointer;
}

.range-btn:hover {
  background: #9f7a60;
  box-shadow: 0 6px 12px -4px #8e6f58;
}

.range-btn:active {
  transform: scale(0.98);
}

/* 手机端适配 */
@media (max-width: 760px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .download-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .range-btn {
    white-space: normal;
    font-size: 0.9rem;
    padding: 0.8rem 0.5rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .why-section {
    padding: 1.8rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 1.2rem 0.8rem;
  }
  .range-btn {
    font-size: 0.8rem;
    padding: 0.7rem 0.4rem;
  }
  .carousel-prev,
  .carousel-next {
    width: 30px;
    height: 30px;
    font-size: 1.4rem;
  }
  .image-caption {
    font-size: 0.85rem;
    padding: 0.4rem 0;
  }
}

.footer-note {
  margin-top: 3rem;
  text-align: center;
  color: #998d80;
  font-size: 0.9rem;
  border-top: 1px dashed #cfc1b2;
  padding-top: 2rem;
  letter-spacing: 0.5px;
}