@font-face {
  font-family: 'SpaceGrotesk';
  src: url('./font/SpaceGrotesk-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: 'SpaceGrotesk', sans-serif; /* 默认使用英文字体 */
}

input {
  -webkit-appearance: none; 
  appearance: none; 
  border-radius: 0; 
}

textarea{
  -webkit-appearance: none; 
  appearance: none; 
  border-radius: 0;
}

#preloader {
  position: fixed; /* 固定定位覆盖全屏 */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(255, 255, 255); /* 半透明白色背景 */
  display: flex; /* 使用 Flexbox 居中加载动画 */
  justify-content: center;
  align-items: center;
  z-index: 9999; /* 确保在最上层 */
  transition: opacity 0.3s ease, visibility 0.3s ease; /* 平滑过渡效果 */
  opacity: 1; /* 默认显示 */
  visibility: visible;
}

#preloader.hidden {
  opacity: 0; /* 渐隐效果 */
  visibility: hidden; /* 隐藏遮罩 */
}

/* 旋转加载动画 */
.loading {
  width: 50px; /* 调整大小 */
  height: 50px;
  border: 5px solid #757575; /* 黑色边框 */
  border-top-color: transparent; /* 顶部透明 */
  border-radius: 100%; /* 圆形效果 */
  animation: circle 0.75s infinite linear; /* 旋转动画 */
}

/* 转转转动画 */
@keyframes circle {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.nav-bar{
    position: fixed;
    width: 100%;
    height: 150px;
    background-color: #ffffffd1;
    display: flex;
    left: 0;
    top: 0;
    justify-content: center; /* 水平居中 */
    align-items: center;    /* 垂直居中 */
    z-index: 999; /* 确保在其他元素上方 */
  }
  
  .nav-border{
    border-bottom: 1px solid rgba(86, 86, 86, 0.2);
  }
  
  .nav-info{
    display: flex;
    position: relative;
    width: 75%;
    height: 80%;
    align-items: center; 
    justify-content: space-between;
  }
  
  .nav-logo{
    width: 120px;
    height: auto;
    display: block;
  }
  
  .nav-logo img {
    max-width: 100%; 
    max-height: 100%; 
    object-fit: contain;
  }
  
  .search-container {
    display: flex;
    align-items: center;
    position: relative;
  }
  
  .input-box {
    width: 0;
    border: none;
    border-bottom: 2px solid #000;
    background: none;
    outline: none;
    transition: width 0.4s ease;
    padding: 5px;
    visibility: hidden; /* 隐藏输入框，初始状态不可见 */
  }
  
  .search-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
    margin-left: 10px;
  }
  
  .search-container.active .input-box {
    width: 120px;                /* 展开宽度 */
    visibility: visible;         /* 输入框可见 */
    border-bottom: 0.5px solid #767676;
  }
  
  .project-list{
    display: flex;
    width: auto;
    list-style: none;
    gap: 40px;
  }
  
  .project-list a {
    font-size: 1.2em;
    text-decoration: none; 
    color: #343434;           
    padding: 5px 10px;     
    transition: background-color 0.3s ease, color 0.3s ease; 
  }
  
  .project-list a:hover {
    color: #aeaeae;    
  }
  
  
  .nav-shop {
    width: 100px; /* 宽度 */
    height: 30px; /* 高度 */
    background-color: #dfdfdf; /* 背景颜色 */
    border-radius: 15px; /* 圆角 */
    display: flex; /* 使用 Flexbox 布局 */
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
  }
  
  .nav-shop a {
    display: flex; 
    align-items: center; 
    text-decoration: none; 
    color: #111111;
    font-size: 0.8em; 
    gap: 5px; 
  }
  
  .language-switch a {
    text-decoration: none; /* 去掉下划线 */
    color:  #454545; /* 文字颜色 */
    font-size: 0.8em; 
    text-decoration: underline;
  }
  
  .menu-icon{
    display: none;
    top: 20px; 
    right: 20px;
    cursor: pointer;
  }
  
  @media (max-width: 1024px) {
    .nav-bar{
      height: 120px;
    }
  
    .project-list,.nav-shop,.language-switch {
        display: none;
    }
  
    .menu-icon {
      display: block;
      position: relative;
      top: 0;
      right: 0;
    }
    
    #droplist {
      display: block; /* 始终占据文档流，使用透明度和高度控制显示 */
      position: absolute; 
      top: calc(100% + 5px);
      right: 0; 
      width: 200px; /* 固定宽度 */
      background-color: rgba(235, 235, 235, 0.587);
      opacity: 0; /* 初始透明度 */
      max-height: 0; /* 初始高度为 0 */
      overflow: hidden; /* 隐藏超出内容 */
      transform: translateY(-10px); /* 初始位置上移 */
      transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease; /* 添加平滑过渡效果 */
      z-index: 1000; /* 确保在其他元素上方 */
    }
    
    #droplist.active {
      opacity: 1; /* 恢复透明度 */
      transform: translateY(0); /* 平滑回到初始位置 */
      max-height: 500px; /* 设置最大高度，确保展开所有内容 */
    }
    
    #droplist ul {
      list-style: none; /* 移除默认列表样式 */
      padding: 10px 0; /* 内边距用于分隔项 */
      margin: 0; /* 移除默认外边距 */
      display: flex;
      flex-direction: column; /* 列表垂直排列 */
      gap: 5px;
      align-items: center; /* 子项水平居中 */
    }
  
    #store {
      display: flex; /* 启用 Flexbox */
      justify-content: center; /* 让 a 在 li 内水平居中 */
      align-items: center; /* 让 a 在 li 内垂直居中 */
      height: 100%; /* 设置 li 的高度，确保子元素可居中 */
    }
  
    #store a {
      display: flex; /* 启用 Flexbox */
      align-items: center; /* 图标和文字垂直居中 */
      text-decoration: none; /* 去掉文字下划线 */
      color: #333; /* 设置文字颜色 */
      font-size: 1em; /* 设置文字大小 */
    }
  
    #store a .icon {
      width: 25px; /* 图标宽度 */
      height: 25px; /* 图标高度 */
      display: inline-block; /* 图标为行内块状元素 */
      vertical-align: middle; /* 垂直对齐文字 */
    }
  
    #store a span {
      display: inline-block; /* 确保文字作为块状元素 */
      vertical-align: middle; /* 垂直对齐图标 */
    }
  
    #droplist ul li {
      background-color:transparent;
      width: 100%; /* 每个列表项占据全宽 */
      text-align: center; /* 文字水平居中 */
    }
    
    #droplist ul li a {
      text-decoration: none; /* 去掉下划线 */
      color: #333; /* 文字颜色 */
      font-size: 0.8em;
      display: block; /* 让链接成为块状元素 */
      padding: 10px 10px; /* 添加内边距 */
      transition: background-color 0.3s ease; /* 添加背景颜色过渡 */
    }
  
    #droplist ul li:hover {
      background-color: rgb(192, 192, 192);
    }
    .mobile-menu{
      display: none;
    }
  }
  
  @media (max-width: 768px) {
    .nav-bar{
      width: 100%;
      height: 80px;
    }
  
    .search-container,.project-list,.nav-shop,.language-switch {
      display: none;
    }
  
    #droplist {
      display: none;
    }
  
    .menu-icon {
      position: relative;
      z-index: 1001;
      left: 0;
      cursor: pointer;
    }
    
    /* 图标切换动画 */
    .menu-icon svg {
      transition: transform 0.2s ease-in-out;
    }
    
    /* 移动菜单容器 */
    .mobile-menu {
      position: fixed;
      top: 0;
      right: -45%; /* 初始位置在屏幕右侧外 */
      width: 33.33%; /* 占屏幕宽度的 1/3 */
      height: 100%; /* 占屏幕高度 */
      background-color: #fff;
      padding: 20px;
      display: flex;
      flex-direction: column;
      gap: 20px; /* 内部元素间距 */
      transition: right 0.3s ease-in-out;
      z-index: 1000;
    }
    
    /* 激活时菜单滑入屏幕 */
    .mobile-menu.active {
      right: 0;
    }
    
    /* 图标随菜单移动 */
    .menu-icon.active {
      left: -45%; /* 相对于原位置向左移动 40px */
      transition: left 0.3s ease-in-out, transform 0.3s ease-in-out;
    }
    
    /* 搜索框样式 */
    .search-bar-mobile {
      display: flex;
      flex-direction: column; /* 垂直排列输入框和图标 */
      align-items: left; /* 水平居中 */
      width: 90%; /* 占 mobile-menu 宽度的 80% */
      margin: 0 auto; /* 居中容器 */
      margin-top: 20px; /* 顶部间距 */
    }
    
    /* 输入框样式 */
    .search-bar-mobile input {
      width: 100%; /* 占据容器宽度 */
      height: 30px;
      padding: 10px; /* 内边距 */
      font-size: 0.8em; /* 字体大小 */
      border: 1px solid #ccc; /* 边框颜色 */
      box-sizing: border-box; /* 包括 padding 的计算方式 */
      outline: none; /* 去除聚焦边框 */
    }
    
    /* 图标样式 */
    .search-bar-mobile img {
      margin-top: 10px; /* 图标与输入框之间的间距 */
      width: 30px; /* 图标宽度 */
      height: 30px; /* 图标高度 */
      fill: #333; /* 图标颜色 */
      cursor: pointer; /* 鼠标样式 */
    }
  
    /* 菜单列表样式 */
    .nav-list-mobile {
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      flex-direction: column; /* 垂直排列 */
      gap: 20px; /* 每项之间的间距 */
    }
    
    .nav-list-mobile li {
      text-align: left;
      cursor: pointer;
    }
  
    .nav-list-mobile li a{
      color: #343434;  
      font-size: 1em;
      text-decoration: none; 
    }
    
    .nav-list-mobile li a:hover{
      color: #9b9b9b;  
    }
  
    .shop-mobile,.lang-switch-mobile{
      text-align: left;
    }
  
    .shop-mobile a,.lang-switch-mobile a{
      text-decoration: none; 
      color: #343434;  
      font-size: 1em;
      cursor: pointer;
    }
  
      
    .shop-mobile a:hover,.lang-switch-mobile a:hover {
      color: #9b9b9b; 
    }
  
    .overlay {
      position: fixed; /* 固定位置，覆盖整个页面 */
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(187, 187, 187, 0.5); /* 半透明黑色 */
      z-index: 998; /* 在主体内容之上，但在菜单下方 */
      display: none; /* 默认隐藏 */
      opacity: 0; /* 初始透明度 */
    }
    
    .overlay.active {
      display: block;
      opacity: 1; /* 恢复透明度 */
      transition: opacity 0.3s ease-in-out; /* 平滑过渡 */
    }
  }
  .overlay{
    display: none;
  }
  

#waterfall-container {
    padding-top: 180px;
    width: 70vw; /* 容器宽度 */
    margin: 0 auto; /* 居中容器 */
}

/* 每个 block 的样式 */
.block {
    background-color: rgba(143, 143, 143, 0.058);
    padding: 15px;
    margin: 0;
    word-wrap: break-word;
    text-align: left;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
    width: 45%; /* 占满 Masonry 自动分配的列宽 */
    margin-bottom: 15px; /* 每个 block 之间的间距 */
    display: inline-block;
}


.block img{
    width: 100%;
    height: auto;
}

.block h3{
    font-size:large;
}

.block a {
    text-decoration: none; 
    font-size: 8px;
    color: black;
}

.block p{
    font-size:x-small;
}

.block:hover{
    background-color: #efefef;
}

@media (max-width: 1024px) {
  #waterfall-container {
      padding-top: 150px;
  }

  .block {
      width: 45%; /* 每个 block 占容器宽度的 100%，实现一列 */
  }

  .block h3{
    font-size: 12px;
  }

  .block a {
    font-size: 7px;
  }

  .block p{
    font-size:10px;
  }
}


@media (max-width: 768px) {

  #waterfall-container {
      padding-top: 110px;
  }

  .block {
      width: 100%; /* 每个 block 占容器宽度的 100%，实现一列 */
  }

  .block h3{
    font-size: 10px;
  }

  .block a {
    font-size: 6px;
  }

  .block p{
    font-size:8px;
  }

}

#info{
    border-top: 1px dashed #c5c5c5;
    margin-top: 50px !important;
    background-color: transparent;
    display: flex;
    align-items: flex-start;
    position: relative;
    margin: 0 auto; 
    padding: 20px;
    height:60px
}


#contact {
    display: flex;
    justify-content: center; /* 水平居中内部的图标 */
    align-items: center; /* 垂直居中内部的图标 */
    width: 150px; /* 设定容器宽度，您可以调整到合适的值 */
    margin: 0 auto; /* 水平居中容器 */
}

#contact a {
    margin-right: 20px; /* 设置两个图标之间的间距 */
}

#contact a:last-child {
    margin-right: 0; /* 移除最后一个图标的右侧间距 */
}

#contact a svg {
    width: 24px; /* 调整图标宽度 */
    height: 24px; /* 调整图标高度 */
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* 半透明背景 */
  overflow: auto; /* 超出内容时滚动 */
  align-items: center; /* 垂直居中 */
  justify-content: center; /* 水平居中 */
}

/* 模态窗口内容 */
.modal-content {
  position: relative; /* 保证内部布局正常 */
  background-color: #fff;
  margin: auto; /* 居中 */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* 最大宽度为屏幕的 80% */
  max-width: 350px; /* 如果屏幕足够大，宽度限制为 400px */
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 阴影效果 */
}

/* 关闭按钮 */
.modal-close {
  position: absolute; /* 定位在模态窗口右上角 */
  top: 10px;
  right: 10px;
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.modal-close:hover,
.modal-close:focus {
  color: black;
  text-decoration: none;
}

#copyright{
    font-size: 10px;
    padding: 10px;
    text-align: center;
    background-color: transparent;
    position: absolute;
    bottom: 10px;;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height:10px;
    
}

#copyright a{
    text-decoration: none;
}

@media (max-width: 768px) {
  #copyright{
    font-size: 7px;
  } 
}

#about_container {
    padding-top: 140px;
    width: 40vw; /* 容器宽度 */
    margin: 0 auto; /* 居中容器 */
    padding-left: 20px;
    padding-right: 20px;
}


.about-border{
    margin-top: 40px;
    border: 1px solid #5b5b5b; /* 边框样式 */
    padding: 20px;
}

.about-border h1 {
    text-align: center; /* 居中对齐 */
}


.about-border h3 {
    background-color: #000; 
    color: #fff; 
    padding: 10px 15px; 
    display: inline-block; 
}


#about_container p {
    font-size: 12px;
    line-height: 1.8;
    color: #494949; 
}

@media (max-width: 768px) {

  .about-border h1 {
    font-size: 16px;
  } 

  .about-border h3 {
    font-size: 12px; 
  }

  #about_container {
    width: 80%; 
    padding-top: 80px;
  }

  #about_container p {
    font-size: 8px; 
}

}


.form-container {
    padding-top: 180px;
    margin: 0 auto; /* 居中容器 */
    width: 80%;
    max-width: 350px;
}

@media (max-width: 1024px) {

  .form-container {
    padding-top: 130px;
  }

}

@media (max-width: 768px) {

  .form-container {
    padding-top: 80px;
  }

}

.form-container-content{
    position: relative; 
    border: 1px solid #ccc; /* 边框样式 */
    padding: 20px;
    margin-top: 20px;
}

.logo-container {
    position: absolute;
    top: 20px; /* 距离顶部的边距 */
    right: 20px; /* 距离右侧的边距 */
    width: 50px; /* 控制 logo 容器的宽度 */
    height: auto; /* 自动调整高度以保持图片比例 */
}

.logo-container img {
    width: 100%; /* 使图片适应容器宽度 */
    height: auto; /* 保持图片纵横比 */
}


.custom-form input[type="text"],
.custom-form input[type="email"],
.custom-form input[type="tel"],
.custom-form textarea {
    width: 90%;
    padding: 10px;
    margin-right: 20px;
    margin-bottom: 15px;
    border: none;
    background: #e4e4e4;
    font-size: 1em;
}

/* 文本域样式 */
.custom-form textarea {
    resize: none;
}

.custom-form input[type="text"]:focus,
.custom-form input[type="email"]:focus,
.custom-form input[type="tel"]:focus,
.custom-form textarea:focus {
    outline: none; 
    border: 2px solid rgb(57, 142, 207); 
    background-color: #f0f0f0; 
    border-radius: 0; /* 确保没有圆角 */
}

/* 提交按钮 */
.custom-form button[type="submit"] {
  -webkit-appearance: none; /* 移除苹果设备默认样式 */
  appearance: none; /* 标准样式 */
  width: 30%; /* 按钮宽度 */
  padding: 10px; /* 内边距，控制按钮高度 */
  background-color: #fff; /* 背景颜色 */
  border: 1px solid black; /* 边框样式 */
  cursor: pointer; /* 鼠标样式 */
  font-size: 1em; /* 字体大小 */
  text-align: center; /* 文字居中 */
  display: block; /* 独占一行 */
  margin: 20px auto; /* 水平居中且设置上下间距 */
  color: black; /* 按钮文字颜色 */
  transition: background-color 0.3s ease, color 0.3s ease; /* 添加过渡动画 */
}

.custom-form button[type="submit"]:hover {
  background-color: black; /* 鼠标悬停时背景变黑 */
  font-weight:normal;
  color: white; /* 鼠标悬停时文字变白 */
}

.custom-form button[type="submit"]:focus {
  outline: none; /* 移除聚焦样式 */
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); /* 聚焦时添加阴影 */
}


#title_info {
    padding-top: 170px;
    width: 70vw; /* 容器宽度 */
    margin: 0 auto; /* 居中容器 */
}

@media (max-width: 1024px) {
  #title_info {
    padding-top: 150px;
  }
}

@media (max-width: 768px) {
  #title_info {
    padding-top: 110px;
  }
}

.horizontal-list {
    display: flex; /* 横向排列 */
    list-style-type: none; /* 移除默认的列表样式 */
    padding: 0; /* 移除内边距 */
    margin: 0; /* 移除外边距 */
}

/* 设置 li 和 a 的样式 */
.horizontal-list li {
    margin-right: 40px; /* 设置每个列表项的右边距 */
}

.horizontal-list li:last-child {
    margin-right: 0; /* 最后一个列表项没有右边距 */
}

.horizontal-list a {
    color: rgb(73, 73, 73); /* 灰色文字 */
    text-decoration: none; /* 移除下划线 */
    font-size: 10px; /* 可根据需要调整字体大小 */
}

#current-item{
    text-decoration: underline;
    text-decoration-color: rgb(0, 0, 0); /* 设置下划线颜色 */
    text-decoration-thickness: 2px; /* 设置下划线的厚度 */
    text-underline-offset: 6px; /* 调整下划线与文本的距离 */
}

.horizontal-list a:hover {
    color: rgb(57, 142, 207); /* 悬停时的颜色变化 */
}

/* 大容器样式 */
#cards_container {
    display: grid; /* 使用网格布局 */
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px 20px; 
    margin-top: 40px; /* 与标题容器之间的间距 */
}

@media (max-width: 1024px) {
    #cards_container {
        grid-template-columns: repeat(2, 1fr); /* 两列布局 */
        gap: 40px 15px; /* 调整间距 */
    }
}

/* 小屏幕，宽度小于 600px，显示一列 */
@media (max-width: 768px) {
    #cards_container {
        grid-template-columns: 1fr; /* 一列布局 */
        gap: 30px 10px; /* 调整间距 */
    }
}
/* 卡片样式 */
.card {
    background-color: rgb(250, 250, 250); /* 卡片的背景颜色 */
    padding: 20px; /* 内边距 */
    text-align: left; /* 默认文本居左 */
    box-sizing: border-box; /* 确保padding和border不会影响卡片的宽度计算 */
    width: 100%; /* 保证卡片占满网格项 */
    height: 100%; /* 固定卡片高度 */
}

.card:hover {
    background-color: #f0f4f8;
}

/* 图片样式 */
.card img {
    max-width: 100%; /* 使图片适应卡片的宽度 */
    height: auto; /* 保持图片纵横比 */
}

/* 标题样式 */
.card h3 {
    margin: 5px 0; /* 标题的上下间距 */
    text-align: left;
    font-size: 10px;
}


/* 信息样式 */
.card p {
    color: #666; /* 信息的颜色 */
    font-size: 8px; /* 字体大小 */
    text-align: left;
}

#pagination {
    text-align: center;
    margin-top: 20px;
}

#pagination .prev-group,
#pagination .next-group {
    background-color: transparent;
    border: none;
    color: transparent;
    padding: 5px;
    cursor: pointer;
    position: relative; 
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#pagination .prev-group::before,
#pagination .next-group::before {
    content: '';
    display: block;
    width: 12px; /* 箭头宽度 */
    height: 12px; /* 箭头高度 */
    border-style: solid;
    border-width:1px 1px 0 0; /* 仅显示上和右边框 */
    position: absolute;
    color: #000;
    transform: rotate(-135deg); 
}

#pagination .next-group::before {
    transform: rotate(45deg); 
}


#pagination .prev-group:hover::before,
#pagination .next-group:hover::before {
    border-color: rgb(160, 160, 160); 
}


.page-number {
    background-color: transparent;
    color: black;
    border: none;
    padding: 10px 15px;
    font-size: 12px;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 5px;
}

.page-number.active {
    color: #0056b3;
}

.page-number:hover {
    color:  rgb(160, 160, 160); 
}


.work-display {
    width: 75%; /* 容器宽度 */
    margin: 0 auto; /* 居中容器 */
    text-align: left; /* 使文本和内容居中 */
}

.work-display h1 {
    text-align: center;
    text-decoration: underline;
    text-decoration-color: rgb(0, 0, 0); /* 设置下划线颜色 */
    text-decoration-thickness: 2px; /* 设置下划线的厚度 */
    text-underline-offset: 6px; /* 调整下划线与文本的距离 */
    margin: 10px; 
    font-size: 1.5em;
}

.work-display h4 {
  font-size: 1.2em;
}

.work-display p {
    font-size: 10px;
}

#work-description2 {
    white-space: pre-wrap; 
    line-height: 1.8;
}

.carousel {
    position: relative;
    margin-top: 30px;
    max-width: 100% /* 根据需要调整宽度 */
    margin: auto; /* 居中 */
    overflow: hidden; /* 隐藏溢出部分 */
}

.carousel-images {
    margin-top: 20px;
    display: flex; /* 横向排列 */
    transition: transform 0.5s ease; /* 动画效果 */
    width: 100%; /* 使子元素全宽 */
}

.carousel-images img {
    min-width: 100%; /* 每张图片宽度为100% */
    object-fit: cover; /* 保持图像的比例，裁剪超出部分 */
}

.carousel {
  position: relative; /* 确保子元素（箭头按钮）可以使用绝对定位 */
  width: 100%; /* 根据需要设置宽度 */
  max-width: 800px; /* 可选，设置最大宽度 */
  margin: 0 auto; /* 居中对齐 */
  overflow: hidden; /* 确保内容不会溢出 */
}

.arrow {
  position: absolute;
  top: 50%; /* 垂直居中 */
  transform: translateY(-50%); /* 修正垂直方向居中偏移 */
  background-color: transparent; /* 背景透明 */
  border: none; /* 移除按钮边框 */
  cursor: pointer;
  width: 50px; /* 按钮宽度 */
  height: 50px; /* 按钮高度 */
  z-index: 1; /* 确保箭头在图片上方 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.arrow::before {
  content: ''; /* 使用伪元素创建箭头 */
  display: block;
  width: 12px;
  height: 12px;
  border-style: solid;
  border-width: 4px 4px 0 0; /* 设置箭头线宽 */
  color: rgba(0, 0, 0, 0.7); /* 箭头颜色 */
  transform: rotate(45deg); /* 默认右箭头方向 */
}

.prev {
  left: 10px; /* 左箭头距离容器左侧 20px */
}

.prev::before {
  transform: rotate(-135deg); /* 调整左箭头方向 */
}

.next {
  right: 10px; /* 右箭头距离容器右侧 20px */
}

.next::before {
  transform: rotate(45deg); /* 保持右箭头方向 */
}

.arrow:hover::before {
  border-color: rgba(128, 128, 128, 1); /* 悬停时箭头变灰 */
}
