main {
  width: 100%;
  background-image: url("../images/videobg.png");
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.searchFor {
  width: 540px;
  background-color: #991c13;
  display: flex;
  align-items: center;
  border-radius: 15px 15px 0px 0px;
  padding: 0px 10px;
  margin-top: 50px;
}
.searchFor p {
  color: #fdefd2;
  /* font-size: 12px; */
  margin: 0;
  margin-right: 10px;
}
.search {
  position: relative;
}
.search input {
  width: 100%;
  height: 40px;
  padding: 0 30px;
  margin: 5px 0px;
  border: none;
  border-radius: 5px;
  background-color: #fdefd2;
  font-size: 14px;
  color: #991c13;
  outline: none;
}
.search-icon {
  position: absolute;
  width: 30px;
  height: 30px;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  cursor: pointer;
}

.classification {
  width: 100%;
  background-color: #ffffff;
  border: 10px solid #fff2cc;
  margin-top: 30px;
  padding: 10px 50px;
}
.filter_box ul,
.filter_box {
  display: flex;
}
.filter_box ul {
  width: 80%;
  flex-wrap: wrap;
}
.filter_box {
  margin: 10px 0px;
}
.filter_box p {
  width: 100px;
}
.filter_box ul li {
  margin: 5px 15px;
  cursor: pointer;
}
.filter_box .active {
  color: #991c13;
  background-color: #991c1300 !important;
  font-weight: bold;
}
.classification_2 {
  width: 100%;
  padding: 20px 8%;
}

.video_list {
  width: 90%;
  background-image: url("../images/video_box_bg.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px;
  margin-top: -80px;
  display: flex;
  align-items: center;
  flex-direction: column;
}
.video_list ul {
  width: 90%;
  display: flex;
  flex-wrap: wrap;
}
.video_list ul li {
  width: calc(100% / 3);
  padding: 40px;
}
.video_list ul li img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.video_list ul li a {
  color: #000000;
}
.video_list ul li p {
  /* 超出部分省略号 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  margin-top: 10px;
}

/* 页码容器样式 */
.page {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 30px 0;
  font-family: "Arial", sans-serif;
}

/* 页码数字样式 */
.page-num {
  display: flex;
  gap: 8px;
}

/* 通用按钮样式（适用于页码和上下页按钮） */
.page-num a,
.page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
  background-color: #fff;
  cursor: pointer;
}

/* 当前页码样式 */
.page-num a.active {
  background-color: #991c13;
  color: white;
  border-color: #991c13;
}

/* 悬停效果 */
.page-num a:not(.active):hover,
.page-btn:hover {
  background-color: #f5f5f5;
  border-color: #d9d9d9;
}

/* 上下页按钮样式 */
.page-btn {
  position: relative;
}

/* 上一页按钮箭头 */
.page-btn:first-child::before {
  content: "←";
}

/* 下一页按钮箭头 */
.page-btn:last-child::before {
  content: "→";
}

/* 禁用状态样式 */
.page-btn.disabled {
  color: #ccc;
  cursor: not-allowed;
  background-color: #fafafa;
  border-color: #e8e8e8;
}

.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper-pagination-bullet {
  background-color: #ffff;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  text-align: center;
  line-height: 36px;
  font-size: 16px;
  opacity: 1;
}
.swiper-pagination-bullet-active {
  color: #fff;
  background: #991c13;
}

.swiper-controls {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiper-button-prev-custom,
.swiper-button-next-custom {
  position: relative;
  background-color: #ffff;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  margin: 0px 5px;
}

.swiper-button-prev-custom::after,
.swiper-button-next-custom::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border: 2px solid #000000;
  border-width: 0 2px 2px 0;
  transform: rotate(135deg);
  position: absolute;
  top: 14px;
  left: 12px;
}

.swiper-button-next-custom::after {
  transform: rotate(-45deg);
}

.swiper-button-prev-custom:hover,
.swiper-button-next-custom:hover {
  background: #cccccc;
}

.swiper-button-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.swiper-pagination-bullets.swiper-pagination-horizontal {
  width: auto;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}
.swiper-pagination {
  position: relative;
}
