/* 发现页 — 对齐 49 #/find */
.home-find {
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  background: #fff;
  min-height: 100vh;
  box-sizing: border-box;
}

.home-find .find-tabs-sticky {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
}

.home-find .van-tabs--line .van-tabs__wrap {
  height: 0.96rem;
  max-width: 480px;
  margin: 0 auto;
}

.home-find .van-tabs--line .van-tabs__nav {
  display: flex;
  width: 100%;
  background: #fff;
}

.home-find .van-tabs--line .van-tab {
  flex: 1;
  text-align: center;
  justify-content: center;
}

.home-find .van-tabs--line .van-tabs__wrap .van-tab {
  line-height: 0.96rem;
  flex: 1;
  color: #000;
  font-size: 0.32rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.home-find .van-tabs--line .van-tab.van-tab--active {
  color: #07c160;
  font-weight: 600;
}

.home-find .van-tabs__line {
  display: none;
}

.home-find .tab-title {
  font-weight: inherit;
}

.home-find .search {
  background: #f6f6f6;
  padding: 0.18rem 0.3rem;
}

.home-find .search .search-row {
  display: flex;
  align-items: center;
  gap: 0.12rem;
}

.home-find .search input {
  flex: 1;
  width: 100%;
  height: 0.76rem;
  border: 0;
  border-radius: 0.38rem;
  padding: 0 0.3rem;
  font-size: 0.28rem;
  background: #fff;
  box-sizing: border-box;
}

.home-find .search .search-btn {
  flex-shrink: 0;
  font-weight: 600;
  color: #07c160;
  font-size: 0.32rem;
  padding: 0 0.08rem;
  cursor: pointer;
  border: 0;
  background: transparent;
}

.home-find .find-panel {
  display: none;
}

.home-find .find-panel.is-active {
  display: block;
  animation: find-panel-in 0.28s ease;
}

@keyframes find-panel-in {
  from {
    opacity: 0;
    transform: translate3d(8px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.home-find .body-image-bd.newstyle {
  padding: 0.2rem;
}

.home-find .newstyle .find-feed {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.2rem 0;
}

.home-find .newstyle .image-item {
  width: 48.5%;
  margin-bottom: 0.2rem;
  background: #fff;
  border-radius: 0.08rem;
  overflow: hidden;
  box-shadow: 0 0.02rem 0.08rem rgba(0, 0, 0, 0.06);
  cursor: pointer;
}

.home-find .newstyle .image-item-image {
  height: 4.68rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  overflow: hidden;
}

.home-find .newstyle .image-item-image img {
  width: 100%;
  height: 3.9rem;
  object-fit: cover;
}

.home-find .newstyle .image-item-title {
  height: 0.8rem;
  line-height: 0.8rem;
  font-size: 0.24rem;
  position: relative;
  color: #000 !important;
  background: #fff !important;
  padding: 0 0.2rem 0 0.7rem;
  box-sizing: border-box;
}

.home-find .newstyle .image-item-title label {
  position: absolute;
  width: 0.52rem;
  height: 0.52rem;
  left: 0.1rem;
  top: 50%;
  margin-top: -0.26rem;
  border-radius: 50%;
  overflow: hidden;
  background: #eee;
}

.home-find .newstyle .image-item-title label img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-find .find-feed .no-data {
  width: 100%;
  text-align: center;
  color: #999;
  font-size: 0.28rem;
}

/* 图片预览弹窗（跟随手机壳居中） */
.find-img-preview {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  left: 50% !important;
  right: auto !important;
  width: min(480px, 100%) !important;
  max-width: 480px !important;
  transform: translateX(-50%) !important;
  box-sizing: border-box;
}
.find-img-preview__mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}
.find-img-preview__body {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 100%;
  padding: 1rem 0.24rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.find-img-preview__close {
  position: absolute;
  top: 0.24rem;
  right: 0.24rem;
  width: 0.64rem;
  height: 0.64rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.44rem;
  line-height: 0.64rem;
  cursor: pointer;
  z-index: 2;
}
.find-img-preview__img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  display: block;
  background: #111;
}
.find-img-preview__name {
  margin-top: 0.24rem;
  color: #fff;
  font-size: 0.28rem;
  text-align: center;
  max-width: 100%;
  padding: 0 0.8rem;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
