body {
  background-color: #faf7f5;
}
.home-nav {
  position: absolute;
  top: 0rem;
  width: 100%;
  z-index: 10;
  color: #FFF;
}
.home-nav .logo {
  margin: 34px auto 28px;
  text-align: center;
}
.home-nav .logo img {
  width: 108px;
  height: auto;
}
.home-nav .nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-nav .nav li {
  margin: 0px 35px;
}
.home-nav .nav li a {
  position: relative;
  color: #FFF;
  text-decoration: none;
  font-size: 18px;
  opacity: 0.7;
}
.home-nav .nav li a::after {
  content: '';
  position: absolute;
  left: 0px;
  bottom: -4px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  /* 关键：从左边开始缩放 */
  background-color: #FFF;
  transition: all 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  will-change: transform;
}
.home-nav .nav li a:hover {
  opacity: 1;
}
.home-nav .nav li a:hover::after {
  transform: scaleX(1);
}
.home-nav .language-selector {
  position: absolute;
  top: 24px;
  left: 29px;
  display: flex;
  align-items: center;
}
.home-nav .language-selector a {
  position: relative;
  color: #FFF;
  text-decoration: none;
  font-size: 16px;
  opacity: 0.7;
  margin: 0px 10px;
}
.home-nav .language-selector a::after {
  content: '';
  position: absolute;
  left: 0px;
  bottom: -4px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  /* 关键：从左边开始缩放 */
  background-color: #FFF;
  transition: all 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  will-change: transform;
}
.home-nav .language-selector a::before {
  content: '';
  position: absolute;
  top: 4px;
  right: -11px;
  width: 2px;
  height: 9px;
  background-color: #FFF;
}
.home-nav .language-selector a:hover {
  opacity: 1;
}
.home-nav .language-selector a:hover::after {
  transform: scaleX(1);
}
.home-nav .language-selector a:last-child::before {
  display: none;
}
.home-nav .search {
  position: absolute;
  top: 23px;
  right: 30px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 90px;
  height: 30px;
  padding: 2px 10px;
  font-size: 16px;
  transition: all 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}
.home-nav .search .input {
  margin-left: 4px;
  width: 60px;
  color: #FFF;
  border: none;
  background-color: rgba(255, 255, 255, 0);
  box-sizing: border-box;
  transition: all 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}
.home-nav .search:hover {
  width: 140px;
}
.home-nav .search:hover .input {
  width: 100px;
}
body.admin-bar .home-nav {
  /* top值自动等于管理员工具栏的高度 */
  top: var(--wp-admin--admin-bar--height);
}
.home-banner {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
.home-banner .background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #D9D9D9;
  background-size: cover;
  background-position: center;
  z-index: 1;
}
.home-banner .content {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 100%;
  text-align: center;
  color: #fff;
}
.home-banner .content .text {
  font-size: 14px;
  margin-bottom: 18px;
  font-weight: 400;
}
.home-banner .content .title {
  font-size: 34px;
  margin-bottom: 13px;
  font-weight: 400;
}
.home-banner .content .description {
  font-size: 14px;
  margin-bottom: 28px;
  font-weight: 400;
}
.home-banner .content .btn {
  display: inline-block;
  text-decoration: none;
  color: var(--primary-color);
  border: 1px solid #FFF;
  text-align: center;
  height: 45px;
  line-height: 45px;
  padding: 0 40px;
  font-size: 16px;
  transition: all 0.3s ease;
  color: #FFF;
  background-color: rgba(255, 255, 255, 0.1);
}
.home-banner .content .btn i {
  margin-left: 5px;
}
.home-banner .content .btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
}
@media (max-width: 768px) {
  .home-banner {
    aspect-ratio: auto;
  }
}
.product-list {
  padding-top: 77px;
  padding-bottom: 123px;
}
.product-list .list-title {
  margin-bottom: 50px;
  text-align: center;
  font-weight: normal;
  font-size: 21px;
}
.product-list .product-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  margin: 0rem auto;
  width: 14rem;
}
.product-list .product-grid .product-card {
  margin: 0px auto;
  width: 285px;
  text-align: center;
}
.product-list .product-grid .product-card .product-img {
  position: relative;
  height: 300px;
  margin-bottom: 23px;
}
.product-list .product-grid .product-card .product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-list .product-grid .product-card .product-img::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #ebeade;
}
.product-list .product-grid .product-card .product-img::before {
  content: "";
  position: absolute;
  z-index: 1;
  bottom: -2px;
  left: 0;
  width: 30%;
  height: 2px;
  background-color: #bdbcb3;
}
.product-list .product-grid .product-card .product-title {
  font-weight: normal;
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 50px;
}
.product-list .product-grid .product-card .btn {
  display: block;
  width: 100%;
  height: 30px;
  line-height: 30px;
  background-color: #333333;
  color: #fff;
  font-size: 14px;
}
.product-list .product-grid .product-card .btn:hover {
  background-color: #000;
  opacity: 1;
}
.module-03 {
  background-color: #ebe8e6;
  padding: 26px 0;
  min-height: 9.77rem;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.module-03 .container {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 160rem;
  margin: 0 auto;
}
.module-03 .container .module-left {
  position: relative;
  width: 9.68rem;
  flex-shrink: 0;
  background-size: cover;
  background-position: center center;
}
.module-03 .container .module-left .overlay {
  position: absolute;
  bottom: 50px;
  left: 65px;
  width: 188px;
  text-align: center;
}
.module-03 .container .module-left .overlay .title {
  color: #fff;
  font-size: 38px;
  margin-bottom: 20px;
  font-weight: 400;
}
.module-03 .container .module-left .overlay .btn {
  display: inline-block;
  text-decoration: none;
  color: var(--primary-color);
  border: 1px solid #FFF;
  text-align: center;
  height: 35px;
  line-height: 35px;
  padding: 0px 40px;
  font-size: 16px;
  transition: all 0.3s ease;
  color: #FFF;
  background-color: rgba(255, 255, 255, 0.1);
}
.module-03 .container .module-left .overlay .btn i {
  margin-left: 5px;
}
.module-03 .container .module-left .overlay .btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
}
.module-03 .container .module-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  box-sizing: border-box;
  text-align: center;
}
.module-03 .container .module-right .title {
  font-size: 14px;
  margin-bottom: 20px;
}
.module-03 .container .module-right .section-title {
  font-size: 34px;
  margin-bottom: 26px;
}
.module-03 .container .module-right .section-description {
  font-size: 12px;
  line-height: 1.8;
  max-width: 48rem;
}
.module-03 .container .module-right .section-description p {
  margin: 0rem;
}
.module-03 .container .module-right .product-image {
  width: 4.8rem;
  height: 4.8rem;
  margin-bottom: 20px;
}
.module-03 .container .module-right .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.module-03 .container .module-right .product-name {
  font-size: 15px;
  margin-bottom: 20px;
}
.module-03 .container .module-right .btn {
  display: block;
  width: 4.6rem;
  max-width: 100%;
  height: 35px;
  line-height: 35px;
  background-color: #333333;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}
.module-03 .container .module-right .btn:hover {
  background: #000;
}
.module-04 {
  margin-top: 80px;
  background-color: #ebe8e6;
  min-height: 280px;
  padding: 0 1.5rem 0rem;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.module-04 .container {
  width: 100%;
  max-width: 1035px;
}
.module-04 .container .title {
  margin-top: 36px;
  margin-bottom: 15px;
  text-align: left;
  font-size: 29px;
}
.module-04 .container .category-grid {
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 0;
  margin: 0;
}
.module-04 .container .category-grid .category-item {
  width: 25%;
}
.module-04 .container .category-grid .category-item .category-item-link {
  display: block;
  text-decoration: none;
  color: var(--text-color);
  text-align: center;
}
.module-04 .container .category-grid .category-item .category-item-link .category-image {
  width: 200px;
  height: 130px;
  background-color: #D9D9D9;
  margin-bottom: 0.13rem;
  transition: all 0.3s ease;
}
.module-04 .container .category-grid .category-item .category-item-link .category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.module-04 .container .category-grid .category-item .category-item-link .category-image:hover {
  opacity: 0.8;
}
.module-04 .container .category-grid .category-item .category-item-link .category-name {
  font-size: 14px;
  width: 100%;
  margin: 0rem;
  text-align: left;
}
.module-05 {
  margin-top: 0.9rem;
  min-height: 6.77rem;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.module-05 .container {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  width: 100%;
}
.module-05 .container .module-image {
  width: 11.95rem;
  height: 6.77rem;
  background-position: center center;
  flex-shrink: 0;
  background-size: cover;
}
.module-05 .container .module-text {
  padding-top: 0.45rem;
  max-width: 4.5rem;
}
@media (max-width: 1600px) {
  .module-05 .container .module-text {
    max-width: 6.1rem;
  }
}
.module-05 .container .module-text .title {
  font-size: 14px;
  margin-bottom: 20px;
}
.module-05 .container .module-text .section-title {
  font-size: 34px;
  margin-top: 0.1rem;
  margin-bottom: 0.26rem;
  text-align: left;
}
.module-05 .container .module-text .section-description {
  font-size: 12px;
  line-height: 1.8;
  margin-bottom: 0.45rem;
}
.module-05 .container .module-text .section-description p {
  margin: 0rem;
}
.module-05 .container .module-text .btn {
  display: inline-block;
  text-decoration: none;
  color: var(--primary-color);
  border: 1px solid #e1dfd6;
  text-align: center;
  height: 35px;
  line-height: 35px;
  padding: 0 0.4rem;
  font-size: 16px;
  transition: all 0.3s ease;
  color: #535351;
  background-color: rgba(255, 255, 255, 0.1);
}
.module-05 .container .module-text .btn i {
  margin-left: 0.05rem;
}
.module-05 .container .module-text .btn:hover {
  border: 1px solid #535351;
  background-color: rgba(255, 255, 255, 0.3);
}
.module-06 {
  margin-top: 0.72rem;
  margin-bottom: 0.6rem;
  height: 10.72rem;
  width: 100%;
  background-size: cover;
  background-position: center center;
}
.module-07 {
  margin-bottom: 1.6rem;
}
.module-07 .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.module-07 .container .title {
  font-size: 14px;
}
.module-07 .container .section-title {
  font-size: 27px;
  margin-top: 25px;
  margin-bottom: 26px;
}
.module-07 .container .section-description {
  font-size: 12px;
  line-height: 1.8;
  margin-bottom: 0.45rem;
  text-align: center;
}
.module-07 .container .section-description p {
  margin: 0rem;
}
.module-07 .container .btn {
  display: inline-block;
  text-decoration: none;
  color: var(--primary-color);
  border: 1px solid #e1dfd6;
  text-align: center;
  height: 35px;
  line-height: 35px;
  padding: 0 0.4rem;
  font-size: 16px;
  transition: all 0.3s ease;
  color: #535351;
  background-color: rgba(255, 255, 255, 0.1);
}
.module-07 .container .btn i {
  margin-left: 0.05rem;
}
.module-07 .container .btn:hover {
  border: 1px solid #535351;
  background-color: rgba(255, 255, 255, 0.3);
}
/*
==============================================
====         Swiper 自定义样式           ====
==============================================
*/
/* 为Swiper容器设置相对定位，以便安放导航按钮 */
.swiper {
  position: relative;
  padding-bottom: 50px;
  /* 为分页器留出空间 */
}
/* --- 自定义分页器样式 --- */
.swiper-pagination {
  bottom: 10px !important;
  /* 调整分页器位置 */
  display: flex;
  justify-content: center;
  align-items: center;
}
.swiper-pagination-bullet {
  width: 25px;
  /* 非激活状态的宽度 */
  height: 3px;
  /* 高度 */
  background-color: #d8d8d8;
  /* 非激活状态的颜色 */
  border-radius: 0;
  /* 变成条状 */
  opacity: 1;
  margin: 0 5px !important;
  transition: width 0.3s ease, background-color 0.3s ease;
}
.swiper-pagination-bullet-active {
  width: 45px;
  /* 激活状态的宽度 */
  background-color: #585858;
  /* 激活状态的颜色 */
}
/* --- 自定义导航按钮样式 --- */
.swiper-button-next,
.swiper-button-prev {
  top: 40%;
  /* 垂直居中，可根据实际效果微调 */
  width: 30px;
  height: 30px;
  color: #333;
  /* 箭头颜色 */
  background-color: rgba(255, 255, 255, 0.5);
  /* 半透明背景 */
  border-radius: 50%;
}
.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 16px;
  /* 箭头大小 */
  font-weight: bold;
}
/* --- 修正 Swiper 内部布局 --- */
/* Swiper 会处理布局，所以我们不再需要 flexbox 的换行和对齐属性 */
.product-grid.swiper-wrapper,
.category-grid.swiper-wrapper {
  display: flex;
  flex-wrap: nowrap !important;
  /* 阻止换行 */
  justify-content: flex-start !important;
  align-items: stretch !important;
  /* 让项目等高 */
}
/*
==============================================
====           移动端适配样式             ====
====  (建议屏幕宽度小于或等于 768px)      ====
==============================================
*/
.mobile-menu-toggle,
.mobile-menu-panel {
  display: none;
}
@media (max-width: 768px) {
  .home-nav {
    padding: 0 15px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    top: 0;
  }
  .home-nav .logo {
    margin: 0;
    text-align: left;
  }
  .home-nav .logo img {
    width: 80px;
  }
  .home-nav .desktop-nav-elements {
    display: none;
  }
  .home-nav .mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    color: #FFF;
    font-size: 24px;
    cursor: pointer;
  }
  .home-nav .mobile-menu-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 80px 20px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: right 0.4s ease-in-out;
    z-index: 100;
  }
  .home-nav .mobile-menu-panel .nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: center;
    flex: 1;
  }
  .home-nav .mobile-menu-panel .nav li {
    margin: 15px 0;
  }
  .home-nav .mobile-menu-panel .nav li a {
    color: #333;
    font-size: 18px;
    opacity: 1;
  }
  .home-nav .mobile-menu-panel .nav li a::after {
    background-color: #333;
  }
  .home-nav .mobile-menu-panel .language-selector {
    position: relative;
    display: flex;
    top: 0px;
    left: 0px;
  }
  .home-nav .mobile-menu-panel .language-selector a {
    color: #555;
  }
  .home-nav .mobile-menu-panel .language-selector a::before {
    background-color: #555;
  }
  .home-nav .mobile-menu-panel .search {
    position: relative;
    top: 0px;
    left: 0px;
    display: flex;
    width: 90%;
    margin-top: 20px;
    border: 1px solid #ccc;
    color: #333;
  }
  .home-nav .mobile-menu-panel .search .input {
    color: #333;
    width: 100%;
  }
  .home-nav .mobile-menu-panel .search:hover {
    width: 90%;
  }
  .home-nav .mobile-menu-panel.is-open {
    right: 0;
  }
  .home-banner {
    height: 80vh;
  }
  .home-banner .content {
    width: 90%;
    bottom: 5%;
  }
  .home-banner .content .text {
    font-size: 14px;
    margin-bottom: 10px;
  }
  .home-banner .content .title {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 15px;
  }
  .home-banner .content .description {
    font-size: 12px;
    margin-bottom: 25px;
  }
  .home-banner .content .btn {
    height: 40px;
    line-height: 40px;
    padding: 0 30px;
    font-size: 14px;
  }
  .product-list {
    padding: 50px 0;
  }
  .product-list .product-grid {
    flex-direction: row;
    /* 确保是水平方向 */
    align-items: center;
    gap: 0;
    /* Swiper 的 spaceBetween 选项会处理间距 */
    width: 100%;
    padding: 0px 20px;
    box-sizing: border-box;
  }
  .product-list .product-grid .product-card {
    width: auto;
    /* 重置宽度 */
    flex-shrink: 0;
    /* 防止滑块被压缩 */
  }
  .product-list .product-grid .product-card .product-img {
    height: auto;
  }
  .module-03 {
    padding: 0;
    min-height: auto;
  }
  .module-03 .container {
    flex-direction: column;
  }
  .module-03 .container .module-left {
    width: 100%;
    min-height: 250px;
  }
  .module-03 .container .module-left .overlay {
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
  }
  .module-03 .container .module-left .overlay .title {
    font-size: 32px;
  }
  .module-03 .container .module-left .overlay .btn {
    height: 30px;
    line-height: 30px;
    padding: 0 30px;
    font-size: 14px;
  }
  .module-03 .container .module-right {
    padding: 40px 20px;
  }
  .module-03 .container .module-right .section-title {
    font-size: 22px;
  }
  .module-03 .container .module-right .product-image {
    width: 150px;
    height: 150px;
    margin: 20px auto;
  }
  .module-04 {
    margin-top: 50px;
    padding: 30px 15px;
    /* 调整一下移动端导航按钮的位置和大小 */
  }
  .module-04 .container .title {
    font-size: 22px;
    text-align: center;
  }
  .module-04 .container .category-grid {
    flex-wrap: nowrap;
    /* 确保不换行 */
    justify-content: space-between;
  }
  .module-04 .container .category-grid .category-item {
    width: auto;
    /* 重置宽度 */
    margin-bottom: 0;
    flex-shrink: 0;
    /* 防止滑块被压缩 */
  }
  .module-04 .container .category-grid .category-item .category-item-link .category-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
  }
  .module-04 .swiper-button-next,
  .module-04 .swiper-button-prev {
    display: none;
    /* 在移动端通常用手滑动，可以隐藏箭头以节省空间 */
  }
  .module-05 {
    margin-top: 50px;
    min-height: auto;
  }
  .module-05 .container {
    flex-direction: column;
    gap: 0px;
  }
  .module-05 .container .module-image {
    width: 100%;
    height: 250px;
  }
  .module-05 .container .module-text {
    max-width: 100%;
    padding: 40px 20px;
    text-align: center;
  }
  .module-05 .container .module-text .section-title,
  .module-05 .container .module-text .section-description {
    text-align: center;
  }
  .module-05 .container .module-text .section-title {
    font-size: 22px;
  }
  .module-06 {
    height: 200px;
    margin: 40px 0;
  }
  .module-07 {
    padding: 0 20px;
    margin-bottom: 50px;
  }
  .module-07 .section-title {
    font-size: 22px;
  }
}
