body {
  position: relative;
  overflow-x: hidden;
}
:root {
  --color: #C9242A;
  --color2: #1DAAE8;
}

*,
:after,
:before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: 400;
  vertical-align: baseline;
}

p {
  word-break: break-all;
}

a {
  color: #333;
  text-decoration: none;
  font-size: 16px;
}

a:hover {
  color: #333;
  text-decoration: none !important;
}

ol,
ul {
  list-style: none
}

@font-face {
  font-family: 'douyuFont';
  src: url(/assets/fonts/douyuFont.otf);
}


.container {
  /* width: 1200px;
  max-width: 1200px; */
  margin: 0 auto;
  padding: 0;
}

@media screen and (min-width: 1600px) {
  .container {
    width: 1570px;
    max-width: 1570px;
  }
}

@media screen and (max-width: 1600px) {
  .container {
    width: 1410px;
    max-width: 1410px;
  }
}

@media screen and (max-width: 1440px) {
  .container {
    width: 1170px;
    max-width: 1170px;
  }
}

@media screen and (max-width: 1200px) {
  .container {
    width: 100%;
    max-width: 100%;
    padding-left: 2%;
    padding-right: 2%;
  }
}


/*滚动条*/
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
  background-color: #F5F5F5;
}

/*定义滚动条轨道 内阴影+圆角*/
::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  background-color: #F5F5F5;
}

/*定义滑块 内阴影+圆角*/
::-webkit-scrollbar-thumb {
  border-radius: 10px;
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
  background: #c9cfd9;
}

/* end */
/* 隐藏video 全屏按钮 */
.video::-webkit-media-controls-fullscreen-button {
  display: none;
}

/* 隐藏video 播放按钮 */
.video::-webkit-media-controls-play-button {
  display: none;
}

/* 隐藏video 进度条 */
.video::-webkit-media-controls-timeline {
  display: none;
}

/* 隐藏video 观看的当前时间 */
.video::-webkit-media-controls-current-time-display {
  display: none;
}

/* 隐藏video 剩余时间 */


/* 搜索样式 */
input:-internal-autofill-selected {
  background-color: #fff0;
}

.search input:focus-visible {
  border: 0;
  box-shadow: 0 0 0;
}

/* 单独设置左右宽度与主体宽度达到一致 */
@media screen and (min-width: 1700px) {
  :root {
    --positionLeft: calc((100vw - 1600px) / 2 + 15px);
    --positionRight: calc((100vw - 1600px) / 2 + 15px);
    --paddingLeft: calc((100vw - 1600px) / 2 + 15px);
    --paddingRight: calc((100vw - 1600px) / 2 + 15px);
  }
}

@media screen and (max-width: 1700px) and (min-width:0px) {
  :root {
    --positionLeft: calc((100vw - 1440px) / 2 + 15px);
    --positionRight: calc((100vw - 1440px) / 2 + 15px);
    --paddingLeft: calc((100vw - 1440px) / 2 + 15px);
    --paddingRight: calc((100vw - 1440px) / 2 + 15px);
  }
}

@media screen and (max-width: 1440px) and (min-width:0px) {
  :root {
    --positionLeft: calc((100vw - 1200px) / 2 + 15px);
    --positionRight: calc((100vw - 1200px) / 2 + 15px);
    --paddingLeft: calc((100vw - 1200px) / 2 + 15px);
    --paddingRight: calc((100vw - 1200px) / 2 + 15px);
  }
}

@media screen and (max-width: 1200px) and (min-width:0px) {
  :root {
    --positionLeft: 2vw;
    --positionRight: 2vw;
    --paddingLeft: 2vw;
    --paddingRight: 2vw;
  }
}

.paddingLeft {
  padding-left: var(--paddingLeft);
}

.paddingRight {
  padding-right: var(--paddingRight);
}
