/* 你之前的样式可以保留 */
.el-menu-main { background: transparent; height: 62px; }
.el-menu-main > .el-menu-item:not(.is-disabled):focus, .el-menu-main > .el-menu-item:not(.is-disabled):hover, .el-menu-main > .el-submenu .el-submenu__title:hover { background: transparent; }
.el-menu-main.el-menu--horizontal > .el-menu-item.is-active { border-color: #303133 !important; }
/* 其他你的自定义样式 */
.header-wrapper { border-bottom: 1px solid #00000013; }
.header-block { margin: 0 auto; width: 100%; height: 52px; justify-content: space-between; }
.header-block .el-menu--horizontal > .el-submenu .el-submenu__title { height: 50px; line-height: 50px; border-bottom: 2px solid transparent; color: #888888; background: #f9f9f9; }
.header-block .el-submenu__title { min-height: 50px; }
.header-block .el-menu.el-menu--horizontal { border-bottom: none; }
.title-block { margin-top: 52px; text-align: center; }
.title-block .main-title { font-size: 28px; font-weight: 700; color: #262626; }
.title-block .secondary-title { margin: 8px 0 24px; font-size: 16px; font-weight: 600; color: #757575; }
.search-form .input-group { display: flex; width: 100%; margin: 0 auto 60px; }
.search-form .input-group-pre { background: #fff; width: 100%; border: 2px solid #757575; box-sizing: border-box; border-radius: 5px 0 0 5px; height: 55px; font-size: 15px; display: flex; align-items: center; }
.input-group-pre input { padding: 17px 20px; height: 100%; border: 0; }
.input-group-pre [class^="el-icon-"] { font-size: 20px; font-weight: 600; color: #757575; cursor: pointer; padding: 12px; }
.input-group-pre [class^="el-icon-"]:hover { background: #efefef; padding: 12px; border-radius: 4px; color: #5759f2; }
.input-group-pre input::placeholder { color: #757575; opacity: 1;}
.icon-block { margin-right: 8px; }
.input-errtip { color: red; text-align: center; margin-top: -40px; margin-bottom: 20px; }
.btn-gray { background: #5759f2; border-radius: 0 5px 5px 0; padding: 12px 10px; display: inline-block; border: none; color: #fdfdfe; font-size: 17px; font-weight: 600; cursor: pointer; height: 55px; transition: all 0.3s; white-space: nowrap; }
.loading-tips { color: #757575; text-align: center; font-size: 18px; }
.video-block { width: 100%; display: flex; flex-wrap: wrap; align-items: stretch; text-align: left; border: 1px solid #0000001a; border-radius: 4px; margin: 20px auto 0; padding: 8px 14px; height: fit-content; }
.video-block-title { margin: 0 12px; flex: 1; }
.video-block-right .btn-primary { margin-top: 6px; }
.btn-primary.btn-primary__disabled { background: #00000066; cursor: not-allowed; }
.video-block-right .btn-primary:first-child { margin-top: 0; }
.back-block { cursor: pointer; width: 100%; margin: 20px auto 0; text-align: left; padding: 0 15px; box-sizing: border-box;}
.popup-block .el-icon-close { color: #fff; font-weight: 600; font-size: 24px; float: right; margin: 24px 24px 0 0; cursor: pointer; }
.popup-block__video-wrapper { background: transparent; flex: 1; height: 100%; display: flex; align-items: center; justify-content: center; }
.popup-block video { margin: 10px auto; max-width: 90%; max-height: 90%;}
.popup-block.overlay { position: fixed; top: 0; bottom: 0; left: 0; right: 0; background: rgba(0, 0, 0, 0.7); transition: opacity 500ms; z-index: 99; }
.video-item-title { height: 42px; line-height: 21px; }
.g-line-limit-ellipsis { display: -webkit-box !important; -webkit-line-clamp: 2 !important; -webkit-box-orient: vertical !important; overflow: hidden !important; text-overflow: ellipsis !important; }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.video-item { margin-right: 16px; margin-bottom: 16px; width: 173px; }
.video-item-previewimg { cursor: pointer; width: 173px; height: 173px; border-radius: 8px; overflow: hidden; background: #0000001a; position: relative; display: flex; align-items: center; justify-content: center; }
.video-item-previewimg .el-icon-caret-right { position: absolute; z-index: 9; }
.video-item-previewimg img { height: auto; width: auto; max-width: 100%; max-height: 100%; object-fit: cover; }
.btn-primary { cursor: pointer; background: #5759f2; height: 40px; width: 100%; color: #fff; font-size: 16px; border-radius: 4px; margin-top: 8px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; }
.btn-primary.w-300 { width: 300px; }
.btn-primary [class^="el-icon-"] { font-size: 18px; margin-right: 8px; }
.el-pagination.is-background .el-pager li:not(.disabled).active { background-color: #5759f2; color: #fff; }
.el-pager li { border-radius: 4px; }
.el-pagination.is-background .el-pager li:not(.disabled):not(.active):hover { color: #5759f2; }
.el-menu--horizontal > .el-submenu.is-active .el-submenu__title { border-bottom: none; }
.pagination-block { margin-top: 20px; width:100%; }
.el-divider--horizontal { margin: 16px 0; width: 100%; }
.el-loading-spinner i { color: #333; font-size: 38px; }

@media (max-width: 767px) { /* 手机端样式调整 */
  .search-form .input-group { flex-direction: column; margin-bottom: 20px; }
  .search-form .input-group-pre { border-radius: 5px; margin-bottom: 10px; }
  .btn-gray { border-radius: 5px; width: 100%; padding: 12px 20px; }
  .input-errtip { margin-top: 10px; margin-bottom: 10px; }
  .video-block { margin-top: 20px; padding: 8px; }
  .video-block .video-item:nth-child(2n) { margin-right: 0; }
  .video-item { width: calc(50% - 8px); }
  .video-block-left { flex-direction: column; align-items: center; width: 100%; }
  .video-block-left .video-item-previewimg { margin-bottom:10px;}
  .video-block-title { text-align: center; margin-bottom:10px;}
  .video-block-right { width: 100%;}
  .btn-primary.w-300 { width: 100%; }
}
@media (min-width: 768px) { /* 桌面端恢复部分样式 */
  .search-form .input-group { width: 920px; flex-direction: row; } /* 确保桌面端是横向 */
  .btn-gray { width: auto; padding: 12px 60px; } /* 恢复桌面端按钮宽度 */
  .video-block { width: 960px; }
}