* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Noto Sans TC', 'Helvetica Neue', Arial, sans-serif;
}

body {
  background-color: #fffef2;
  color: #2d2d2d;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;

}
@media (min-width: 769px) {
  body {
    overflow-y: hidden;
  }
}

/* 启动画面 */
#splashScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  overflow: hidden;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.quote-container {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
  transform: translateY(100%);
  opacity: 0;
  animation: textAppear 1.8s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
/* Logo 样式 */
.aesop-logo-container {
  position: fixed;
  top: 80px;
  left: 30px;
  z-index: 110; /* 确保在导航栏上方 */
}

.aesop-logo {
  width: 120px; /* 调整Logo宽度 */
  height: auto;
  display: block;
}
@keyframes textAppear {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.quote-text {
  color: #fffef2;
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 0.5px;
  line-height: 1.5;
  margin-bottom: 8px;
  position: relative;
  text-align: center;
}

.quote-author {
  color: #fffef2;
  font-size: 16px;
  font-style: italic;
  margin-top: 20px;
  position: relative;
  text-align: center;
}

/* 顶部导航 */
.aesop-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #2d2d2d;
  color: #f9f7f2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 45px;
  padding: 0 30px;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.brand {
  font-size: 26px;
  font-weight: 300;
  letter-spacing: 1px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links {
  display: flex;
  align-items: center;
}

/* 下划线动画 */
.back-btn, .nav-links a {
  position: relative;
  color: #f9f7f2;
  text-decoration: none;
  font-size: 15px;
  transition: opacity 0.3s;
  font-weight: 300;
  padding: 5px 0;
  overflow: hidden;
}

.back-btn {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 3px;
}

.back-btn::after, .nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}

.back-btn:hover::after, .nav-links a:hover::after {
  width: 100%;
}

.back-btn.hidden {
  visibility: hidden;
}

.nav-links a:hover, .back-btn:hover {
  opacity: 0.8;
}

/* 主容器 */
.container {
  margin: 85px auto 330px;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* 步骤指示器 */
.step-tracker-container {
  position: relative;
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.step-tracker {
  display: flex;
  gap: 8px;
  position: relative;
  padding-top: 12px;
}

.step-bar {
  height: 3px;
  width: 120px;
  background-color: #d8d2c1;
  transition: all 0.3s ease;
}

.step-bar.completed {
  background-color: #2d2d2d;
}

/* 内容卡片 */
/* 内容卡片 */
.step-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  margin-top: 90px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.4s, transform 0.6s ease 0.4s;
}

.step-title {
  font-size: 34px;
  max-width: 700px;
  font-weight: 300;
  margin: auto;
  letter-spacing: 0.5px;
  line-height: 1.4;
  color: #2d2d2d;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100px;
}

/* 选项布局 */
.options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin: 60px 0;
  margin-left: auto;
  margin-right: auto;
}

/* 选项样式 */
.option-card {
  border: 1px solid rgba(51,51,51,.2);
  padding: 18px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  min-width: 290px;
}
.option-card:hover, .option-card.selected {
  background-color: #2d2d2d;
  color: #f9f7f2;
  border-color: #2d2d2d;
}

.option-card-img {
      width: 245px;
      cursor: pointer;
      transition: all 0.3s ease;
      text-align: center;
      background: transparent;
      display: flex;
      flex-direction: column;
      align-items: center;
    }
/* 修改 option-title 为黑色左对齐 */
.option-card-img .option-title {
  color: #000;
  text-align: left;
  position: relative; /* 为下划线动画做准备 */
}

/* 鼠标经过 option-card-img 时 option-title 添加由左到右的下划线 */
.option-card-img:hover .option-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #000;
  animation: underlineAppear 0.3s ease forwards;
}

/* 修改 option-card-img 内图片的尺寸 */
.option-card-img .option-image img {
  width: 245px;
  height: 300px;
  object-fit: cover; /* 确保图片按比例缩放并覆盖容器 */
}

/* 修改 option-title 为黑色左对齐 */
.option-card-img .option-title {
  color: #000;
  text-align: left;
  position: relative; /* 为下划线动画做准备 */
}

/* 鼠标经过 option-card-img 时 option-title 添加由左到右的下划线 */
.option-card-img:hover .option-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #000;
  animation: underlineAppear 0.3s ease forwards;
}

@keyframes underlineAppear {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* 修改 option-description 为左对齐 */
.option-card-img .option-description {
  text-align: left;
}

@keyframes underlineAppear {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* 修改 option-description 为左对齐 */
.option-card-img .option-description {
  text-align: left;
}

    .option-card-img:hover,
    .option-card-img.selected {
      opacity: 0.8;
    }
.option-card-img .option-image img {
  width: 245px;
  height: 300px;
  object-fit: cover; /* 确保图片按比例缩放并覆盖容器 */
}
.option-title {
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.5px;
  margin: 2px 0;
}



.option-description {
  font-size: 15px;
  line-height: 1.6;
  color: #000;
  font-weight: 300;
}

.option-card.selected .option-description,
.option-card:hover .option-description {
  color: #d8d2c1;
}

/* 开始按钮 */
.begin-btn {
  width: 240px;
  margin: 40px auto;
  padding: 17px 25px;
  background: none;
  border: 1px solid rgba(51,51,51,.2);
  color: #2d2d2d;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  font-weight: 400;
  text-align: center;
}

.begin-btn:hover {
  background-color: #2d2d2d;
  color: #f9f7f2;
}

/* 固定图片区域 - 移除滚动效果 */
.gift-images-container {
  /* position: fixed; */
  /* bottom: 30px; */
  /* left: 0; */
  width: 100%;
  overflow: hidden;
  /* z-index: 80; */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.5s, transform 0.6s ease 0.5s;
  display: flex;
  justify-content: center;
}

.gift-images-container img {
  width: 100%;
}

/* 底部页脚 */
.footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  padding: 18px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 90;
  opacity: 0;
  transition: opacity 0.6s ease;
  backdrop-filter: blur(4px);
}

.copyright {
  color: #767676;
  font-size: 13px;
  font-weight: 300;
}

.language-selector {
  display: flex;
  gap: 15px;
}

.language-selector button {
  background: none;
  border: none;
  font-size: 13px;
  cursor: pointer;
  padding: 5px;
  color: #2d2d2d;
  font-weight: 300;
}

.language-selector button.active {
  font-weight: 400;
}

.language-selector a {
  position: relative;
  color: #2d2d2d;
  text-decoration: none;
  padding: 5px 0;
  transition: color 0.3s ease;
}

/* 鼠标经过时的下划线动画 */
.language-selector a:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #2d2d2d;
  transition: width 0.3s ease;
  animation: underlineAppear 0.3s ease forwards;
}

/* 激活状态的下划线 */
.language-selector a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #2d2d2d;
}
/* 背景装饰 */
.bg-texture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" stroke="%23d8d2c1" stroke-width="0.5" stroke-opacity="0.1"/></svg>');
  opacity: 0.05;
  z-index: -1;
}

.active .aesop-header,
.active .container,
.active .step-tracker-container,
.active .step-content,
.active .gift-images-container {
  opacity: 1;
  transform: translateY(0);
}

.active .footer {
  opacity: 1;
}

/* 以下是新CSS中添加的内容 */
.splash-container {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 30px;
  transform: translateY(0);
}

.splash-text {
  color: #fffef2;
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 0.5px;
  line-height: 1.7;
  margin-bottom: 8px;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  animation: textAppear 1.5s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.splash-text:nth-child(1) {
  animation-delay: 0.3s;
}

.splash-text:nth-child(2) {
  animation-delay: 0.7s;
  font-style: italic;
  font-size: 18px;
  margin-top: 20px;
}

.splash-text:nth-child(3) {
  animation-delay: 1.2s;
  font-size: 13px;
  letter-spacing: 0.3px;
  margin-top: 5px;
  color: #d8d2c1;
}

.step-subtitle {
  font-size: 22px;
  color: #767676;
  max-width: 800px;
  margin: 0 auto 40px;
  font-weight: 300;
  line-height: 1.7;
}

.step2 .options-grid,
.step3 .options-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 60px 0;
  flex-wrap: wrap;
}

.option-image {
  width: 100%;
  height: auto;
  /* margin-bottom: 20px; */
  display: block;
}

.option-text {
  font-size: 16px;
  line-height: 1.6;
  color: #767676;
  font-weight: 300;
}

.perfume-display {
  width: 100%;
  height: 430px;
  /* margin-top: 89px; */
  margin: 50px 0 80px;
  display: flex;
  justify-content: center;
  /* align-items: center; */
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); */
}



.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



.step4-options {
  padding-top: 50px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* 水平居中 */
  align-items: center; /* 垂直居中 */
  gap: 20px;
  margin: 0 auto;
}

.step4-btn {
  background-color: transparent;
  border: 1px solid #d8d2c1;
  padding: 20px;
  font-size: 18px;
  font-weight: 300;
  color: #2d2d2d;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 300px;
}

.step4-btn:hover {
  background-color: #2d2d2d;
  color: #f9f7f2;
}

.step4-btn.selected {
  background-color: #2d2d2d;
  color: #f9f7f2;
}

/* 响应式设计 */
@media (max-width: 900px) {
  .options-grid {
    grid-template-columns: 1fr;
    margin: 20px auto;
  }

  .step-content {
    padding: 0 15px;
  }

  .gift-images-scroll {
    padding: 0 10px;
  }

  .gift-image {
    height: 160px;
    margin: 0 5px;
  }

  .step-tracker {
    gap: 12px;
  }

  .step-bar {
    width: 25px;
  }

  .step-title {
    font-size: 22px;
  }

  .container {
    margin-bottom: 320px;
  }
}

@media (max-width: 600px) {
  .container {
    margin-top: 85px;
    margin-bottom: 320px;
  }

  /*.aesop-header {
    padding: 15px 15px 15px 10px;
  }*/

  .brand {
    font-size: 22px;
    position: static;
    transform: none;
    margin: 0 auto;
    text-align: center;
    flex-grow: 1;
  }

  .nav-links {
    position: absolute;
    right: 15px;
  }

  .back-btn {
    position: absolute;
    left: 15px;
    padding: 3px 8px;
  }

  .step-title {
    font-size: 20px;
    margin-bottom: 30px;
  }

  .begin-btn {
    width: 100%;
    max-width: 300px;
    padding: 14px;
  }

  .footer {
    padding: 15px 15px;
  }

  .gift-images-container {
    height: 140px;
    bottom: 60px;
  }

  .gift-image {
    height: 140px;
    margin: 0 4px;
  }

  .option-card {
    min-height: auto;
    padding: 20px 15px;
  }

  .quote-text {
    font-size: 20px;
  }
}

/* 以下是新CSS中添加的媒体查询 */
@media (max-width: 1024px) {
  .step2 .options-grid,
  .step3 .options-grid {
    align-items: center;
  }

  .step-title {
    font-size: 30px;
  }

  .step-subtitle {
    font-size: 20px;
  }

  .option-image {
    height: auto;
  }

  .begin-btn {
    width: 280px;
  }

  .perfume-display {
    height: 300px;
  }

  .step-tracker {
    gap: 8px;
  }

  .step-bar {
    width: 60px;
  }

  .step4-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    margin-bottom: 140px;
  }



  .brand {
    font-size: 22px;
  }

  .back-btn {
    font-size: 14px;
  }

  .step-title {
    font-size: 26px;
    margin-bottom: 25px;
  }

  .step4 .step-title {
    font-size: 20px;
  }

  .step-subtitle {
    font-size: 18px;
    padding: 0 20px;
    margin-bottom: 40px;
  }

  .option-image {
    width: 100%;
    height: auto;
  }

  .footer {
    padding: 15px;
  }

  .perfume-display {
    height: 250px;
    margin: 40px 0;
  }

  .step-tracker {
    gap: 6px;
  }

  .step-bar {
    width: 40px;
  }

  .step4-btn {
    padding: 15px;
    font-size: 16px;
    min-height: 100px;
  }



  .aesop-logo-container {
    position: relative; /* 改为相对定位 */
    top: 0;
    left: 0;
    width: 100%;
    text-align: center; /* 内容居中 */
    margin-top: 60px; /* 添加间距 */
    padding: 0 15px; /* 添加内边距 */
  }

  .aesop-logo {
    width: 100px;
    margin: 0 auto; /* 居中显示 */
  }

  /* 调整步骤指示器位置 */
  .step-tracker-container {
    margin-top: -60px; /* 减小顶部间距 */
  }
}
@media (max-width: 500px) {
    .step2 .options-grid,
  .step3 .options-grid,
  .options-grid {
    margin-top: 20px;
    display: flex;
    flex-wrap: nowrap; /* 防止换行 */
    overflow-x: auto; /* 启用水平滚动 */
    -webkit-overflow-scrolling: touch; /* 提升滚动体验 */
    justify-content: flex-start; /* 从左到右排列 */
    gap: 20px; /* 调整间距 */
    padding-bottom: 20px; /* 为滚动条留出空间 */
    max-width: 500px;
    width: 100%;
  }

  /* 修改 option-card-img 样式 */
  .option-card-img {
    min-width: 245px; /* 设置最小宽度，避免卡片被压缩 */
    flex-shrink: 0; /* 防止卡片缩小 */
  }
}
