/* 用户展示模块横向滚动容器 */
.qm-user-showcase-scroll {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.qm-user-showcase-scroll::-webkit-scrollbar {
  height: 6px;
}

.qm-user-showcase-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.qm-user-showcase-scroll::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.5);
  border-radius: 999px;
}

.qm-user-showcase-row {
  scroll-snap-type: x mandatory;
}

@media (min-width: 1024px) {
  .qm-user-showcase-row {
    justify-content: flex-start;
  }
}


.qm-user-showcase-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}


@media (max-width: 639px) {
  .qm-user-showcase-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; 
    -ms-overflow-style: none; 
    padding-bottom: 0.5rem;
  }
  
  .qm-user-showcase-grid::-webkit-scrollbar {
    display: none; 
  }
  
  .qm-user-showcase-grid .qm-user-card.card {
    flex-shrink: 0;
    width: calc(100vw - 3rem); 
    max-width: 320px;
    scroll-snap-align: start;
  }
}

@media (min-width: 640px) {
  .qm-user-showcase-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .qm-user-showcase-grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .qm-user-showcase-grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
  .qm-user-showcase-grid.cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}


.qm-user-showcase-section {
  display: block !important;
  width: 100%;
  visibility: visible !important;
  opacity: 1 !important;
}

/* 用户展示模块标题前的“|”使用主题粉色渐变（更粗的竖条图标） */
.qm-user-showcase-section .qm-module-title-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 1em;
  line-height: 1;
  color: transparent !important; /* 隐藏原始“|”字符 */
  -webkit-text-fill-color: transparent;
}

.qm-user-showcase-section .qm-module-title-icon::before {
  content: "";
  display: inline-block;
  width: 4px;              /* 加粗 */
  height: 0.95em;
  border-radius: 999px;
  background: linear-gradient(135deg, #FF1493 0%, #FF69B4 100%);
}

/* 移动端统一标题大小 */
@media (max-width: 767.98px) {
  .qm-user-showcase-section h2.h5,
  .qm-user-showcase-section h2 {
    font-size: 18px !important;
  }
}

/* 夜间模式适配 - 容器层透明，不添加背景层 */
.dark .qm-user-showcase-section {
  background: transparent;
}

/* 移除用户展示模块中的 card 容器层背景 */
.dark .qm-user-showcase-section .card.border-0.shadow-sm {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* 夜间模式适配 - 用户展示模块标题（网格布局） */
.dark .qm-user-showcase-section .card.border-0.shadow-sm h2.h5.fw-semibold,
.dark .qm-user-showcase-section .card h2.h5.fw-semibold,
.dark .qm-user-showcase-section .card h2.h5,
.dark .qm-user-showcase-section .card h2,
.dark .qm-user-showcase-section h2.h5.fw-semibold,
.dark .qm-user-showcase-section h2.h5,
.dark .qm-user-showcase-section h2,
body.dark-mode .qm-user-showcase-section h2.h5,
body.dark-mode .qm-user-showcase-section h2,
.dark .qm-user-showcase-section .d-flex h2,
.dark .qm-user-showcase-section .d-flex h2.h5 {
  color: #f9fafb !important;
}

.dark .qm-user-showcase-section .card.border-0.shadow-sm .text-muted,
.dark .qm-user-showcase-section .card .text-muted,
.dark .qm-user-showcase-section .text-muted,
body.dark-mode .qm-user-showcase-section .text-muted,
.dark .qm-user-showcase-section .d-flex .text-muted {
  color: #9ca3af !important;
}


.qm-user-card.card {
  width: 100%;
  height: 240px;
  max-width: 100%;
  background: white;
  border-radius: 32px;
  padding: 3px;
  position: relative;
  box-shadow: #604b4a24 0px 50px 24px -42px;
  transition: all 0.5s ease-in-out;
  scroll-snap-align: start;
  display: block;
  overflow: hidden;
}


.dark .qm-user-card.card {
  background: #1f2937;
  box-shadow: rgba(0, 0, 0, 0.3) 0px 50px 24px -42px;
}

.qm-user-card.card .mail {
  position: absolute;
  right: 2rem;
  top: 1.4rem;
  background: transparent;
  border: none;
  z-index: 4;
  color: inherit;
}

.qm-user-card.card .mail svg {
  stroke: #fbb9b6;
  stroke-width: 3px;
}

.qm-user-card.card .mail svg:hover {
  stroke: #f55d56;
}

.qm-user-card.card .profile-pic {
  position: absolute;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  top: 3px;
  left: 3px;
  border-radius: 29px;
  z-index: 1;
  border: 0px solid #fbb9b6;
  overflow: hidden;
  transition: all 0.5s ease-in-out 0.2s, z-index 0.5s ease-in-out 0.2s;
}

.qm-user-card.card .profile-pic img,
.qm-user-card.card .profile-pic svg {
  object-fit: cover;
  width: 100%;
  height: 100%;
  object-position: 0px 0px;
  transition: all 0.5s ease-in-out 0s;
  transform-origin: 45% 20%;
}

.qm-user-card.card .bottom {
  position: absolute;
  bottom: 3px;
  left: 3px;
  right: 3px;
  background: #fbb9b6;
  top: 80%;
  border-radius: 29px;
  z-index: 2;
  box-shadow: rgba(96, 75, 74, 0.1882352941) 0px 5px 5px 0px inset;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.645, 0.045, 0.355, 1) 0s;
}

.qm-user-card.card .bottom .content {
  position: absolute;
  
  top: 0.8rem;
  bottom: auto;
  
  left: 7.2rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  color: white;
  
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.qm-user-card.card .bottom .content .name {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
}

.qm-user-card.card .bottom .content .role {
  display: block;
  font-size: 0.72rem;
  opacity: 0.92;
  line-height: 1.2;
}

.qm-user-card.card .bottom .desc {
  position: absolute;
  
  top: 4.3rem;
  left: 1.5rem;
  right: 1.5rem;
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.qm-user-card.card .bottom .content .about-me,
.qm-user-card.card .bottom .desc .about-me {
  display: block;
  font-size: 0.72rem;
  opacity: 0.95;
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}


@media (max-width: 640px) {
  .qm-user-card.card .bottom .content {
    top: 3rem;
    left: 1.15rem;
    right: 1.15rem;
  }
}

.qm-user-card.card .bottom .bottom-bottom {
  position: absolute;
  
  top: 0;
  bottom: 0;
  left: 1.5rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.qm-user-card.card .bottom .bottom-bottom .social-links-container {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.qm-user-card.card .bottom .bottom-bottom .social-links-container i {
  height: 20px;
  width: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  filter: drop-shadow(0 5px 5px rgba(165, 132, 130, 0.1333333333));
  transition: transform 0.15s ease, color 0.15s ease;
}

.qm-user-card.card .bottom .bottom-bottom .social-links-container svg {
  height: 20px;
  fill: white;
  filter: drop-shadow(0 5px 5px rgba(165, 132, 130, 0.1333333333));
}

.qm-user-card.card .bottom .bottom-bottom .social-links-container img {
  height: 20px;
  width: 20px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 5px 5px rgba(165, 132, 130, 0.1333333333));
}

.qm-user-card.card .bottom .bottom-bottom .social-links-container a:hover i {
  color: #f55d56;
  transform: scale(1.2);
}

.qm-user-card.card .bottom .bottom-bottom .social-links-container a:hover svg {
  fill: #f55d56;
  transform: scale(1.2);
}

.qm-user-card.card .bottom .bottom-bottom .social-links-container a:hover img {
  transform: scale(1.2);
  opacity: 0.95;
}

.qm-user-card.card .bottom .bottom-bottom .button {
  background: white;
  color: #fbb9b6;
  border: none;
  border-radius: 20px;
  font-size: 0.6rem;
  padding: 0.4rem 0.6rem;
  box-shadow: rgba(165, 132, 130, 0.1333333333) 0px 5px 5px 0px;
  text-decoration: none;
  white-space: nowrap;
}

.qm-user-card.card .bottom .bottom-bottom .button:hover {
  background: #f55d56;
  color: white;
}

.qm-user-card.card .bottom .bottom-bottom .button[aria-disabled="true"] {
  opacity: 0.7;
  cursor: not-allowed;
}

.qm-user-card.card:hover {
  border-top-left-radius: 55px;
}

.qm-user-card.card:hover .bottom {
  top: 20%;
  
  border-radius: 16px 29px 29px 29px;
  transition: all 0.5s cubic-bezier(0.645, 0.045, 0.355, 1) 0.2s;
}

.qm-user-card.card.is-active .bottom {
  top: 20%;
  border-radius: 16px 29px 29px 29px;
  transition: all 0.5s cubic-bezier(0.645, 0.045, 0.355, 1) 0.2s;
}

.qm-user-card.card:hover .bottom .bottom-bottom {
  
  top: auto;
  bottom: 1rem;
}

.qm-user-card.card.is-active .bottom .bottom-bottom {
  top: auto;
  bottom: 1rem;
}

.qm-user-card.card:hover .bottom .content {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 0.25s ease 0.25s, transform 0.25s ease 0.25s;
}

.qm-user-card.card.is-active .bottom .content {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 0.25s ease 0.25s, transform 0.25s ease 0.25s;
}

.qm-user-card.card:hover .bottom .desc {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 0.25s ease 0.32s, transform 0.25s ease 0.32s;
}

.qm-user-card.card.is-active .bottom .desc {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 0.25s ease 0.32s, transform 0.25s ease 0.32s;
}

.qm-user-card.card:hover .profile-pic {
  
  width: 92px;
  height: 92px;
  aspect-ratio: 1;
  top: 10px;
  left: 10px;
  border-radius: 16px;
  z-index: 3;
  border: 6px solid #ffffff;
  box-shadow: rgba(96, 75, 74, 0.22) 0px 8px 18px 0px;
  transition: all 0.5s ease-in-out, z-index 0.5s ease-in-out 0.1s;
}

.qm-user-card.card.is-active .profile-pic {
  width: 92px;
  height: 92px;
  aspect-ratio: 1;
  top: 10px;
  left: 10px;
  border-radius: 16px;
  z-index: 3;
  border: 6px solid #ffffff;
  box-shadow: rgba(96, 75, 74, 0.22) 0px 8px 18px 0px;
  transition: all 0.5s ease-in-out, z-index 0.5s ease-in-out 0.1s;
}

.qm-user-card.card:hover .profile-pic img,
.qm-user-card.card:hover .profile-pic svg {
  transform: scale(1.15);
  transition: all 0.5s ease-in-out 0.5s;
}

.qm-user-card.card.is-active .profile-pic img,
.qm-user-card.card.is-active .profile-pic svg {
  transform: scale(1.15);
  transition: all 0.5s ease-in-out 0.5s;
}

@media (max-width: 640px) {
  .qm-user-card.card {
    /* 进一步缩小卡片 */
    height: clamp(145px, 45vw, 170px);
    max-width: none;
    border-radius: 18px;
    padding: 2px;
  }
  .qm-user-card.card .mail {
    right: 0.85rem;
    top: 0.75rem;
  }
  .qm-user-card.card .bottom .content {
    /* 调整内容位置 */
    top: 0.6rem;
    left: 4.2rem;
    right: 0.85rem;
  }

  /* 缩小字体 */
  .qm-user-card.card .bottom .content .name {
    font-size: 0.8rem;
  }
  .qm-user-card.card .bottom .content .role {
    font-size: 0.6rem;
  }
  .qm-user-card.card .bottom .desc .about-me {
    font-size: 0.6rem;
  }

  .qm-user-card.card .bottom .desc {
    /* 调整描述位置 */
    top: 3.6rem;
    left: 0.85rem;
    right: 0.85rem;
    text-align: left;
  }
  
  .qm-user-card.card:hover .profile-pic,
  .qm-user-card.card.is-active .profile-pic {
    width: 58px;
    height: 58px;
    border-width: 3px;
    top: 7px;
    left: 7px;
  }

  /* 调整底部区域 */
  .qm-user-card.card .bottom {
    /* 初始状态底部区域位置 */
    top: 74%;
    border-radius: 16px;
  }

  /* 底部内边距 */
  .qm-user-card.card .bottom {
    box-sizing: border-box;
    padding-bottom: 1rem;
  }

  /* hover状态底部按钮位置 */
  .qm-user-card.card:hover .bottom .bottom-bottom {
    bottom: 0.6rem;
  }
  .qm-user-card.card.is-active .bottom .bottom-bottom {
    bottom: 0.6rem;
  }

  /* 社交链接间距 */
  .qm-user-card.card .bottom .bottom-bottom .social-links-container {
    gap: 0.55rem;
  }
  .qm-user-card.card .bottom .bottom-bottom .social-links-container i,
  .qm-user-card.card .bottom .bottom-bottom .social-links-container svg,
  .qm-user-card.card .bottom .bottom-bottom .social-links-container img {
    height: 14px;
    width: 14px;
  }

  .qm-user-card.card .bottom .bottom-bottom .button {
    line-height: 1.1;
    font-size: 0.48rem;
    padding: 0.3rem 0.48rem;
  }

  /* 底部按钮区域布局 */
  .qm-user-card.card .bottom .bottom-bottom {
    /* 默认状态 */
    top: auto;
    /* 底部位置 */
    bottom: 0.24rem;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    /* 减小间距 */
    gap: 0.05rem;
    padding: 0;
  }

  .qm-user-card.card .bottom .bottom-bottom .social-links-container {
    justify-content: center;
    width: 100%;
    /* 最小高度 */
    min-height: 0;
    /* 调整底部间距 */
    margin-bottom: -0.06rem;
  }

  /* 社交图标大小 */
  .qm-user-card.card .bottom .bottom-bottom .social-links-container i {
    font-size: 12px;
    line-height: 1;
  }

  .qm-user-card.card .bottom .bottom-bottom .button {
    display: block;
    width: 100%;
    text-align: center;
    border-radius: 11px;
    /* 调整按钮内边距 */
    padding-top: 0.28rem;
    padding-bottom: 0.28rem;
  }

  /* 激活状态隐藏社交链接 */
  .qm-user-card.card.is-active .bottom .bottom-bottom .social-links-container {
    display: none;
  }
}


@media (max-width: 420px) {
  .qm-user-card.card {
    height: clamp(135px, 42vw, 160px);
    border-radius: 16px;
  }
  .qm-user-card.card .mail {
    right: 0.75rem;
    top: 0.7rem;
  }
  .qm-user-card.card .bottom {
    top: 75%;
  }
  .qm-user-card.card .bottom .bottom-bottom {
    left: 0.8rem;
    right: 0.8rem;
    gap: 0.35rem;
    bottom: 0.2rem;
  }
  .qm-user-card.card .bottom .bottom-bottom .social-links-container {
    gap: 0.5rem;
  }
  .qm-user-card.card .bottom .bottom-bottom .button {
    font-size: 0.46rem;
    padding: 0.26rem 0.44rem;
  }
}


@media (max-width: 360px) {
  .qm-user-card.card {
    height: 150px;
  }
  .qm-user-card.card .bottom {
    top: 76%;
  }
  .qm-user-card.card .bottom {
    padding-bottom: 0.95rem;
  }

  .qm-user-card.card .bottom .bottom-bottom {
    bottom: 0.18rem;
  }
}


