/* 平板设备 (768px-992px) */
@media screen and (max-width: 992px) {

}

/* 手机设备 (小于768px) */
@media screen and (max-width: 768px) {
  .page {
    display: none;
  }
  .phone {
    display: flex;
    height: 100%;
    overflow-y: auto;
    flex-direction: column;
  }
  .header {
    display: flex;
    justify-content: space-between;
    margin: 7px 18px 12px 12px
  }
  .phone-list{
    flex: 1;
  }
  .right-search img{
    width: 18px;
    margin-top: 13px;
  }
  .left-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 182px;
  }
  .phone-recommend-title{
    padding: 16px 20px 0 20px;
    font-weight: 400;
    font-size: 16px;
    color: #333333;
    line-height: 22px;
  }
  .phone-line {
    width: 1px;
    height: 19px;
    background: #dcdfe6;
  }
  .left-header img {
    width: 80px;
  }
  .nav-container {
    width: calc(100% - 40px);
    margin: 0 20px;
    overflow-x: auto;
     scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    overflow: -moz-scrollbars-none;
    padding-bottom: 10px;
  }
  iframe{
    height: 208px;
  }
  .nav {
    display: flex;
    width: 100%;
    flex-direction: row;
    gap: 20px;
    overflow: auto;
    justify-content: space-between;
  }
  .nav span {
    padding-bottom: 2px;
    font-weight: 400;
    font-size: 16px;
    color: #666666;
    line-height: 22px;
  }
  .nav span.active {
    font-weight: 500;
    font-size: 18px;
    color: #333333;
    line-height: 40px;
  }
  .nav span.active::after {
    content: '';
    display: block;
    margin: 0 auto;
    width: 14px;
    height: 2px;
    background: linear-gradient( 126deg, #4CB5D7 0%, #6BBC35 100%), #009DF5;
    border-radius: 1px;
  }
  /* 隐藏滚动条但保留功能 */
  .nav-container::-webkit-scrollbar {
    display: none;
  }
  .swiper-container{
    position: relative;
    margin: 0 20px;
    width: calc(100% - 40px);
    border-radius: 16px;
    overflow: hidden;
  }
  .swiper-slide img{
    width: 100%;
  }
  .bannerTitle{
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 999;
    width: calc(100% - 20px);
    padding: 0 10px;
    height: 46px;
    font-weight: 500;
    font-size: 14px;
    color: #FFFFFF;
    word-break: break-all;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 46px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.32) 100%);
    border-radius: 0 0 4px 4px;
  }
  .phone-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 20px;
    padding: 12px 0 17px 0;
    border-top: 1px solid #F3F4F7;
    border-bottom: 1px solid #F3F4F7;
  }
  .phone-item:first-child{
    border-top: none;
  }
  .phone-item:last-child{
    border-bottom: none;
  }
  .video-cover , .video-cover img{
    position: relative;
    width: 134px;
    height: 74px;
    background: #f2f2f2;
  }
  .video-info{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 75px;
  }
  .video-info h2{
    width: 100%;
    font-weight: 400;
    font-size: 16px;
    color: #333333;
    line-height: 22px;
    word-break: break-all; 
    white-space: nowrap;    
    overflow: hidden;         
    text-overflow: ellipsis; 
  }
  .video-info div{
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    font-size: 12px;
    color: #999999;
    line-height: 17px;
  }
  .type-line{
    width: 1px;
    height: 11px;
    background:#DCDFE6;
  }
  .video-cover span{
    position: absolute;
    right: 3px;
    bottom: 3px;
    padding: 2px 4px;
    font-weight: 400;
    font-size: 12px;
    color: #FFFFFF;
    line-height: 17px;
    background: rgba(0,0,0,0.12);
    border-radius: 2px;
  }
  .video-info{
    width: calc(100% - 150px);
  }
  .empty-box{
    justify-content: start;
  }
  .empty-box img{
    margin-top: 100px;
  }
  /* 搜索页面 */
  .search-page{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .search-header{
    margin: 16px 16px 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .back-icon img{
    width: 16px;
  }
  .search-box-phone{
    width: calc(90% - 30px);
    height: 32px;
    padding: 0 14px 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.32);
    border-radius: 17px;
    border: 1px solid #DCDFE6;
  }
 .search-box-phone input{
  flex: 1;
  margin: 0 10px;
  height: 90%;
 }
 .scroll-view{
  flex: 1;
  padding: 5px 0;
  overflow-y: auto;
 }
 /* 详情页 */
 .video-area{
  width: 100%;
 }
 .video-area .video{
  border-radius: 0;
 }
 .video-area .container{
  padding: 12px 20px 24px 20px;
  border-bottom: 2px solid #F5F8FD;
 }
 .video-name{
  margin-bottom: 0;
  font-weight: 400;
  font-size: 18px;
  color: #333333;
  line-height: 25px;
 }
 .basic-info{
  margin: 8px 0 16px 0;
  font-weight: 400;
  font-size: 14px;
  color: #666666;
  line-height: 20px;
 }
 .video-area .line{
  width: 1px;
  height: 11px;
  background: #999;
 }
 .search-icon{
  width: 16px;
 }
 .delete-icon{
  width: 14px;
  margin-right: 15px;
 }
 input:focus {
  border: none;
  outline: none;
 }
 .search-btn{
  font-weight: 400;
  font-size: 12px;
  color: #4CB5D7;
  line-height: 34px;
 }
 .hide{
  display: none;
 }  
 .swiper-pagination{
  position: relative !important;
  display: flex;
  gap: 4px;
 }
 .bottom-container{
  position: absolute;
  bottom: 4px;
  left: 0;
  width: calc(100% - 32px);
  height: 46px;
  padding: 0 16px;
  z-index: 9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 0 0 14px 14px;
  background: linear-gradient( 180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.32) 100%);
 }
 .swiper-pagination-bullet{
  width: 4px !important;
  height: 4px !important;
  background: ECF0EE !important;
 }
 .swiper-pagination-bullet-active{
  width: 12px !important;
  height: 4px !important;
  background: #FFFFFF  !important;
  border-radius: 2px !important;
 }
 .swiper-title{
  width: 80%;
 }
 .swiper-title p{
  width: 100%;
  font-weight: 500;
  font-size: 14px;
  color: #FFFFFF;
  line-height: 20px;
  word-break: break-all; 
  white-space: nowrap;    
  overflow: hidden;         
  text-overflow: ellipsis;  
 }
 .swiper-pagination.swiper-pagination-hidden{
  opacity: 1 !important;
 }
}
@media screen and (max-width: 1700px) {
  .video video{
    height: 420px !important;
  }
  .video-box .item img{
    min-height: fit-content;
  }
}
@media screen and (max-width: 1100px) {
  .video video{
    height: 320px !important;
  }
  .video-box .item img{
    min-height: fit-content;
  }
}
@media screen and (max-width: 900px) {
  .video video{
    height: 250px !important;
  }
  .video-box .item img{
    min-height: fit-content;
  }
}