/*Card start*/


.nft-shop .card-section .card,
.sellers .card {
transition: transform 0.5s ease;   /* 0.5 s 位移动画 */
}

.nft-shop .card-section .card .btc_img {
width: 200px;    
height: auto;    /* 保持比例 */
display: block;  /* 让图片变成块级，否则 margin: auto 不生效 */
margin: auto;  /* 水平居中 */
}

/* 悬停样式 —— 向上移动 10px */
.nft-shop .card-section .card:hover,
.sellers .card:hover {
transform: translateY(-10px);
}

.nft-shop{
padding: 0 80px;
margin-top: 30px;
}


.nft-shop .card-section{
display: flex;
justify-content: space-around;
gap: 32px;           /* 卡片之间的间距，可自行调整 */
}

.nft-shop .card-section .card{
  width: 400px;
  height: 500px;
  padding: 20px;
  gap: 10px;
  display: flex;
  display: flex;
  justify-content: center; /* 水平居中 */
  align-items: center;     /* 垂直居中 */
  position: relative; /* 必须！为绝对定位的子元素提供定位上下文 */
  flex-direction: column;

  min-width: 0;
  word-wrap: break-word;
  background: #fff ;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.2s;
  cursor: pointer;
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(0, 0, 0, .125);
  background-color: #fff;
}




.nft-shop .card-section .card h3 {
  /* --- 核心修改 2: 将 h3 绝对定位 --- */
  position: absolute;
  bottom: 85px; /* 定位到底部，为下方的 p 标签留出空间 */
  left: 0;      /* 配合 right: 0 实现水平拉伸 */
  right: 0;     /* 这样 text-align: center 才能生效 */
  margin: 0 auto; /* 清除默认边距，并再次确保居中 */
  padding: 0 20px; /* 增加左右内边距，防止文字紧贴边缘 */

  font-size: 1rem;
  font-weight: 500;
  color: #333333;
  display: block;
}

.nft-shop .card-section .card p {
  /* --- 核心修改 3: 将 p 绝对定位 --- */
  position: absolute;
  bottom: 20px; /* 定位到底部，与卡片的 padding 一致 */
  left: 0;
  right: 0;
  margin: 0 auto;
  padding: 0 20px;

  text-align: center;
  font-size: 0.8rem;
  color: #AEAEAE;
  display: block;
}
.nft-shop .card-section .card .bid{
padding: 14px 0 4px;
display: flex;
align-items: center;
justify-content: space-between;
}


/* 设置responsive，768px以下你的三个布局项（.card）每行只显示一个*/
@media (max-width: 768px) {
.nft-shop .card-section {
    flex-direction: column; /* 使.card-section的子元素（.card）垂直排列 */
    gap: 20px; /* 根据需要调整间距 */
}

.nft-shop .card-section .card {
    width: 100%; /* 使每个.card占满整个容器的宽度 */
    /* 如果你想要调整边距或者其他样式，也可以在这里添加 */
}
}



