/* 展会会议列表页 */
.exhibition-page {
  background: #f5f5f5;
  padding-bottom: 40px;
}

.exhibition-page .breadcrumb {
  margin: 0;
  padding: 12px 0;
}

.exhibition-banner {
  --banner-slide-width: min(var(--body-width), calc(100vw - 80px));
  --banner-height: 340px;
  width: 100%;
  margin-bottom: 0;
  overflow: hidden;
}

.exhibition-banner .swiper {
  width: 100%;
  height: var(--banner-height);
  overflow: hidden;
  background: transparent;
}

.exhibition-banner .swiper-slide {
  position: relative;
  width: var(--banner-slide-width);
  height: var(--banner-height);
  border-radius: 6px;
  overflow: hidden;
  background: #1b2430;
}

.exhibition-banner .swiper-slide a,
.exhibition-banner .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.exhibition-banner .swiper-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(80, 80, 80, 0.42);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.exhibition-banner .swiper-slide:not(.swiper-slide-active)::after {
  opacity: 1;
}

.exhibition-banner .swiper-button-prev,
.exhibition-banner .swiper-button-next {
  color: #fff;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  background: rgba(0, 0, 0, 0.38);
  border-radius: 50%;
  z-index: 2;
}

.exhibition-banner .swiper-button-prev {
  left: calc((100% - var(--banner-slide-width)) / 2 + 16px);
}

.exhibition-banner .swiper-button-next {
  right: calc((100% - var(--banner-slide-width)) / 2 + 16px);
}

.exhibition-banner .swiper-button-prev:after,
.exhibition-banner .swiper-button-next:after {
  font-size: 14px;
  font-weight: 700;
}

.exhibition-banner .swiper-pagination {
  bottom: 14px;
}

.exhibition-banner .swiper-pagination-bullet {
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.45);
  opacity: 1;
}

.exhibition-banner .swiper-pagination-bullet-active {
  width: 28px;
  background: #fff;
}

.exhibition-banner.is-single .swiper {
  width: var(--body-width);
  max-width: calc(100% - 40px);
  margin: 0 auto;
  border-radius: 6px;
}

.exhibition-banner.is-single .swiper-slide {
  width: 100%;
}

.exhibition-banner.is-single .swiper-slide::after {
  display: none;
}

.exhibition-banner.is-empty {
  display: none;
}

/* 活动推荐 */
.exhibition-recommend {
  background: #fff;
  padding: 36px 0 40px;
  margin-bottom: 24px;
}

.exhibition-recommend .section-title {
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  color: #222;
  margin: 0 0 28px;
  letter-spacing: 0.04em;
}

.recommend-list {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

#recommendSwiper {
  overflow: hidden;
  padding: 0 2px 10px;
}

#recommendSwiper .swiper-slide {
  height: auto;
}

#recommendSwiper .recommend-card {
  width: 100%;
  display: block;
}

#recommendSwiper .swiper-button-prev,
#recommendSwiper .swiper-button-next {
  color: #fff;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 50%;
}

#recommendSwiper .swiper-button-prev:after,
#recommendSwiper .swiper-button-next:after {
  font-size: 12px;
}

.recommend-card {
  width: calc((100% - 60px) / 4);
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #eee;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s;
}

.recommend-card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.recommend-cover {
  width: 100%;
  height: 176px;
  overflow: hidden;
  background: #eee;
}

.recommend-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.recommend-body {
  padding: 16px 16px 18px;
  min-height: 118px;
}

.recommend-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.45;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 44px;
}

.recommend-card:hover .recommend-title {
  color: var(--theme-color);
}

.meta-line {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: #8a8a8a;
  font-size: 12px;
  line-height: 1.5;
  margin: 0 0 6px;
}

.meta-line:last-child {
  margin-bottom: 0;
}

.meta-line .icon-font,
.meta-line .icon-loc {
  margin-top: 2px;
  color: var(--blue);
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 400;
  -webkit-text-stroke: 0;
}

.icon-loc {
  display: inline-block;
  width: 13px;
  height: 13px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%233387e2' d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");
}

.meta-line span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 两栏列表 */
.exhibition-columns {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.exhibition-col {
  flex: 1;
  min-width: 0;
  background: #fff;
  border-radius: var(--boder-radius);
  padding: 0 20px 10px;
}

.exhibition-col .title-box {
  margin-bottom: 0;
}

.event-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid #eee;
}

.event-item:last-child {
  border-bottom: none;
}

.event-item .cover-img {
  width: 140px;
  height: 100px;
  flex-shrink: 0;
}

.event-content {
  flex: 1;
  min-width: 0;
  height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.event-title {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-shrink: 0;
}

.event-title:hover {
  color: var(--theme-color);
}

.event-desc {
  font-size: 12px;
  color: #888;
  line-height: 1.5;
  height: calc(12px * 1.5 * 2);
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-shrink: 0;
}

.event-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
  margin-top: auto;
}

.event-meta .meta-line {
  margin: 0;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.empty-tip {
  color: #999;
  font-size: 14px;
  text-align: center;
  padding: 40px 0;
  width: 100%;
}

@media (max-width: 1024px) {
  .exhibition-banner {
    --banner-height: 220px;
  }

  .recommend-card {
    width: calc((100% - 20px) / 2);
  }

  .exhibition-columns {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .exhibition-page {
    padding-bottom: 20px;
  }

  .exhibition-banner {
    --banner-height: 160px;
    --banner-slide-width: calc(100vw - 48px);
    margin-bottom: 24px;
  }

  .exhibition-banner .swiper-button-prev,
  .exhibition-banner .swiper-button-next {
    width: 32px;
    height: 32px;
    margin-top: -16px;
  }

  .exhibition-banner.is-single .swiper {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
  }

  .exhibition-recommend .section-title {
    font-size: 18px;
    margin-bottom: 18px;
  }

  .recommend-cover {
    height: 150px;
  }

  .recommend-card {
    width: 100%;
  }

  .event-item .cover-img {
    width: 100px;
    height: 72px;
  }

  .event-content {
    height: 72px;
  }

  .event-title {
    font-size: 14px;
  }

  .event-desc {
    height: calc(11px * 1.4 * 2);
    font-size: 11px;
    line-height: 1.4;
    margin-bottom: 2px;
  }
}
