.beilaide-case-list {
  padding-top: 40px;
  padding-bottom: var(--component-gap);
}

.beilaide-caselist__ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 46px;
}

.beilaide-caselist__li {
  width: calc(50% - 23px);
}

.beilaide-caselist__li>a {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.beilaide-caselist__li-img {
  width: 100%;
  aspect-ratio: 806 / 410;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
}

.beilaide-caselist__li-content {
  padding: 40px;
  border-radius: 0 0 16px 16px;
  border: 1px solid rgba(102, 102, 102, 0.50);
  border-top: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.beilaide-caselist__li-title {
  text-overflow: ellipsis;
  font-size: var(--font-24);
  font-weight: 600;
  line-height: 1.5;
  max-height: 3em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.beilaide-caselist__li-desc {
  margin-top: 12px;
  color: #666;
  font-size: var(--font-16);
  font-weight: 500;
  line-height: 1.5;
  max-height: 5em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 2;
}

.beilaide-caselist__li-btn {
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 284px;
  height: 76px;
  border-radius: 4px;
  border: 2px solid var(--color-primary);

  transition: background-color 0.3s ease;
}

.beilaide-caselist__li-btn span {
  color: var(--color-primary);
  text-align: center;
  font-size: var(--font-20);
  font-weight: 600;
  line-height: 1.5;
  text-transform: uppercase;
  width: 176px;
  transition: color 0.3s ease;
}

.beilaide-caselist__li-btn svg {
  margin-right: 10px;
  width: calc(12 / 16 * var(--font-16));
  height: calc(18 / 16 * var(--font-16));
}

.beilaide-caselist__li-btn svg rect {
  transition: fill 0.3s ease;
}

.beilaide-caselist__li-btn:hover {
  background-color: var(--color-primary);
}

.beilaide-caselist__li-btn:hover span {
  color: #fff;
}

.beilaide-caselist__li-btn:hover svg rect {
  fill: #fff;
}

@media screen and (max-width: 991px) {
  .beilaide-case-list {
    padding-top: 30px;
  }

  .beilaide-caselist__ul {
    gap: 20px;
  }

  .beilaide-caselist__li {
    width: calc(50% - 10px);
  }

  .beilaide-caselist__li-content {
    padding: 20px;
  }

  .beilaide-caselist__li-btn {
    margin-top: 20px;
    width: fit-content;
    height: auto;
    padding: 10px 20px;
  }

  .beilaide-caselist__li-btn span {
    width: auto;
    padding: 0 10px;
  }
}

@media screen and (max-width: 575px) {
  .beilaide-case-list {
    padding-top: 20px;
  }

  .beilaide-caselist__li {
    width: 100%;
    max-width: 480px;
  }
}

.beilaide-caselist-pagination {
  margin-top: 60px;
}


.beilaide-caselist-pagination #pagesize {
  text-align: center;
  width: 100%;
}

.beilaide-caselist-pagination #pagesize ul {
  display: flex;
  justify-content: center;
}

.beilaide-caselist-pagination #pagesize ul li:not(:nth-last-child(-n+2)) {
  margin-right: 10px;
}

.beilaide-caselist-pagination #pagesize ul li:first-child,
.beilaide-caselist-pagination #pagesize ul li:nth-last-child(2) {
  margin-right: 20px;
}

.beilaide-caselist-pagination #pagesize ul li a,
.beilaide-caselist-pagination #pagesize ul li span {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 4px;

  color: #333;
  font-size: var(--font-20);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.beilaide-caselist-pagination #pagesize ul li span {
  align-items: flex-end;
}

.beilaide-caselist-pagination #pagesize ul li img {
  width: calc(6 / 20 * var(--font-20));
  height: calc(11 / 20 * var(--font-20));
}

.beilaide-caselist-pagination #pagesize ul li .beilaide-arrow-hover {
  display: none;
}

.beilaide-caselist-pagination #pagesize ul li a.active,
.beilaide-caselist-pagination #pagesize ul li a:not(.disabled):hover {
  background-color: var(--color-primary);
  color: #fff;
}

.beilaide-caselist-pagination #pagesize ul li a:not(.disabled):hover .beilaide-arrow-normal {
  display: none;
}

.beilaide-caselist-pagination #pagesize ul li a:not(.disabled):hover .beilaide-arrow-hover {
  display: block;
}

.beilaide-caselist-pagination #pagesize ul li a.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media screen and (max-width: 768px) {
  .beilaide-caselist-pagination {
    margin-top: 40px;
  }

  .beilaide-caselist-pagination #pagesize ul li a,
  .beilaide-caselist-pagination #pagesize ul li span {
    width: 30px;
    height: 30px;
  }

  .beilaide-caselist-pagination #pagesize ul li:not(:nth-last-child(-n+2)) {
    margin-right: 5px;
  }

  .beilaide-caselist-pagination #pagesize ul li:first-child,
  .beilaide-caselist-pagination #pagesize ul li:nth-last-child(2) {
    margin-right: 10px;
  }
}

@media screen and (max-width: 480px) {
  .beilaide-caselist-pagination {
    margin-top: 24px;
  }

  .beilaide-caselist-pagination #pagesize ul li a,
  .beilaide-caselist-pagination #pagesize ul li span {
    width: 20px;
    height: 20px;
  }

}