/* 独有部分 加-wap*/
@media screen and (max-width: 980px) {
  /* 常用部分 */
  #cbcn-dom-container {
    font-size: 20px !important;
    font-size: 5.333333333333334vw !important;
    text-size-adjust: none !important;
    -webkit-text-size-adjust: none !important;
    /* 禁止字体缩放 */
    -moz-text-size-adjust: none !important;
    -webkit-tap-highlight-color: transparent;
    /* 禁用点击高亮 */
  }

  .cbcn-wap-fix {
    height: 100vh;
    overflow: hidden;
    box-sizing: border-box;
  }

  .cbcn-wap-ct {
    text-align: center;
  }

  /* 盒子布局 */
  .cbcn-wap-flexRow {
    display: flex !important;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .cbcn-wap-flexCol {
    display: flex !important;
    flex-direction: column;
  }

  .cbcn-wap-noWrap {
    text-wrap: nowrap;
    white-space: nowrap;
  }

  /* 背景渐变 */
  .cbcn-wap-bgColor-bk {
    background: linear-gradient(180deg, #000 91.72%, #0d0d0d 100%);
  }

  /* 居中 */
  .cbcn-wap-allCenter {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .cbcn-wap-colCenter {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }

  .cbcn-wap-rowCenter1 {
    display: block;
    margin-left: auto;
    margin-right: auto;
    position: relative;
  }

  .cbcn-title.cbcn-wap-rowCenter1 {
    display: flex;
  }

  .cbcn-wap-rowCenter2 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .cbcn-wap-colCenter.lt {
    left: 0;
  }

  .cbcn-wap-colCenter.rt {
    right: 0;
  }

  /* 横线块选项卡 */
  .cbcn-linelist {
    --total: 0;
    --current: 0;
    display: flex;
    flex-direction: row;
    position: relative;
    height: 0.2em;
    margin: auto;
    border-radius: 0.45em;
    overflow: hidden;
    flex-wrap: nowrap;
    background: rgba(0, 0, 0, 0.06);
  }

  .cbcn-linebtn {
    width: calc(100% / var(--total));
    height: 100%;
    overflow: hidden;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.14);
    position: relative;
  }

  .cbcn-linelist::before {
    width: calc(100% / var(--total) * var(--current));
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 0.45em;
    overflow: hidden;
    background: #f5462d;
    content: "";
    transition: width 0.3s ease;
  }

  /* 视频播放 */
  .cbcn-video-playDiv {
    display: none;
  }

  .cbcn-video-playDiv-wrapper {
    height: 100%;
    width: 100%;
    position: relative;
  }

  .cbcn-video-playDiv-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .cbcn-wap-videoControl {
    width: 2em;
    height: 2em;
    position: relative;
    background-image: url("../img/wap/videoControl-rePlay.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    z-index: 50;
    cursor: pointer;
  }

  .cbcn-wap-videoControl.play {
    background-image: url("../img/wap/videoControl-play.svg");
  }

  .cbcn-wap-videoControl.pause {
    background-image: url("../img/wap/videoControl-pause.svg");
  }

  .cbcn-wap-videoControl.bk {
    background-image: url("../img/wap/videoControl-rePlay-b.svg");
  }

  .cbcn-wap-videoControl.bk.play {
    background-image: url("../img/wap/videoControl-play-b.svg");
  }

  .cbcn-wap-videoControl.bk.pause {
    background-image: url("../img/wap/videoControl-pause-b.svg");
  }

  /* 安全距离 */
  .cbcn-wap-safeCol {
    padding: var(--safe-spacing, 4em) 0;
  }

  .cbcn-wap-safeTop {
    padding-top: var(--safe-spacing, 4em);
  }

  .cbcn-wap-safeBottom {
    padding-bottom: var(--safe-spacing, 4em);
  }

  .cbcn-wap-safeCol2 {
    padding: var(--safe-spacing2, 6em) 0;
  }

  .cbcn-wap-safeTop2 {
    padding-top: var(--safe-spacing2, 6em);
  }

  .cbcn-wap-safeBottom2 {
    padding-bottom: var(--safe-spacing2, 6em);
  }

  .cbcn-wap-safeRow {
    width: 100%;
    padding: 0 1.2em;
  }

  #cbcn-dom-container .cbcn-wap-h0 {
    font-family: "IQOOTYPE";
    /* head 0 章节标题 */
    font-size: var(--semantic-font-size-head-0, 4.85em);
    font-style: normal;
    font-weight: 500;
    line-height: var(--semantic-font-line-height-head-0, 5.8em);
    /* 119.588% */
  }

  #cbcn-dom-container .cbcn-wap-h1 {
    font-family: "IQOOTYPE";
    /* head 1 一级标题 */
    font-size: var(--semantic-font-size-head-1, 3.4em);
    font-style: normal;
    font-weight: 500;
    line-height: var(--semantic-font-line-height-head-1, 4em);
    /* 117.647% */
  }

  #cbcn-dom-container .cbcn-wap-h2 {
    font-family: "IQOOTYPE";
    /* head 2 二级标题 */
    font-size: var(--semantic-font-size-head-2, 2.9em);
    font-style: normal;
    font-weight: 500;
    line-height: var(--semantic-font-line-height-head-2, 3.45em);
    /* 118.966% */
  }

  #cbcn-dom-container .cbcn-wap-sh {
    font-family: "IQOOTYPE";
    /* subhead 副标题 */
    font-size: var(--semantic-font-size-subhead, 1.4em);
    font-style: normal;
    font-weight: 500;
    line-height: var(--semantic-font-line-height-subhead, 1.65em);
    /* 117.857% */
  }

  /* 数据列项 */
  #cbcn-dom-container .cbcn-wap-hg1 {
    font-family: "IQOOTYPE";
    /* highlight 1 一级高亮 */
    font-size: var(--semantic-font-size-highlight-1, 3.4em);
    font-style: normal;
    font-weight: 500;
    line-height: var(--semantic-font-line-height-highlight-1, 4.6em);
    /* 135.294% */
  }

  #cbcn-dom-container .cbcn-wap-hg2 {
    font-family: "IQOOTYPE";
    /* highlight 2 二级高亮 */
    font-size: var(--semantic-font-size-highlight-2, 2.85em);
    font-style: normal;
    font-weight: 500;
    line-height: var(--semantic-font-line-height-highlight-2, 3.7em);
    /* 129.825% */
  }

  #cbcn-dom-container .cbcn-wap-hg3 {
    font-family: "IQOOTYPE";
    /* highlight 3 三级高亮 */
    font-size: var(--semantic-font-size-highlight-3, 2.1em);
    font-style: normal;
    font-weight: 500;
    line-height: var(--semantic-font-line-height-highlight-3, 2.7em);
    /* 128.571% */
  }

  #cbcn-dom-container .cbcn-wap-hg4 {
    font-family: "IQOOTYPE";
    /* highlight 4 四级高亮 */
    font-size: var(--semantic-font-size-highlight-4, 1.8em);
    font-style: normal;
    font-weight: 500;
    line-height: var(--semantic-font-line-height-highlight-4, 2.3em);
    /* 127.778% */
  }

  #cbcn-dom-container .cbcn-wap-hg5 {
    font-family: "IQOOTYPE";
    /* highlight 5 五级高亮 */
    font-size: var(--semantic-font-size-highlight-5, 1.4em);
    font-style: normal;
    font-weight: 500;
    line-height: var(--semantic-font-line-height-highlight-5, 1.8em);
    /* 128.571% */
  }

  #cbcn-dom-container .cbcn-wap-hg6 {
    font-family: "IQOOTYPE";
    /* highlight 6 六级高亮 */
    font-size: var(--semantic-font-size-highlight-6, 1.25em);
    font-style: normal;
    font-weight: 500;
    line-height: var(--semantic-font-line-height-highlight-6, 1.6em);
    /* 128% */
  }

  #cbcn-dom-container .cbcn-wap-b1 {
    font-family: "HYQiHei-EZS";
    /* body 1 一级正文 */
    font-size: var(--semantic-font-size-body-1, 1.05em);
    font-style: normal;
    font-weight: 200;
    line-height: var(--semantic-font-line-height-body-1, 1.55em);
    /* 147.619% */
  }

  #cbcn-dom-container .cbcn-wap-b2 {
    font-family: "HYQiHei-EZS";
    /* body 2 二级正文 */
    font-size: var(--semantic-font-size-body-2, 0.95em);
    font-style: normal;
    font-weight: 200;
    line-height: var(--semantic-font-line-height-body-2, 1.4em);
    /* 147.368% */
  }

  #cbcn-dom-container .cbcn-wap-b3 {
    font-family: "HYQiHei-EZS";
    /* body 3 三级正文 */
    font-size: var(--semantic-font-size-body-3, 0.85em);
    font-style: normal;
    font-weight: 200;
    line-height: var(--semantic-font-line-height-body-3, 1.25em);
    /* 147.059% */
  }

  #cbcn-dom-container .cbcn-wap-b4 {
    font-family: "HYQiHei-EZS";
    /* body 4 四级正文 */
    font-size: var(--semantic-font-size-body-4, 0.75em);
    font-style: normal;
    font-weight: 200;
    line-height: var(--semantic-font-line-height-body-4, 1.1em);
    /* 146.667% */
  }

  #cbcn-dom-container .cbcn-wap-b5 {
    font-family: "HYQiHei-EZS";
    /* body 5 五级正文 */
    font-size: var(--semantic-font-size-body-5, 0.6em);
    font-style: normal;
    font-weight: 200;
    line-height: var(--semantic-font-line-height-body-5, 0.9em);
    /* 150% */
  }

  #cbcn-dom-container .cbcn-wap-fn1 {
    font-family: "HYQiHei-EZS";
    /* footnote 1 一级注释 */
    font-size: var(--semantic-font-size-footnote-1, 0.65em);
    font-style: normal;
    font-weight: 200;
    line-height: var(--semantic-font-line-height-footnote-1, 1em);
    /* 153.846% */
  }

  #cbcn-dom-container .cbcn-wap-fn2 {
    font-family: "HYQiHei-EZS";
    /* footnote 2 二级注释 */
    font-size: var(--semantic-font-size-footnote-2, 0.55em);
    font-style: normal;
    font-weight: 200;
    line-height: var(--semantic-font-line-height-footnote-2, 0.85em);
    /* 154.545% */
  }

  /* 视频播放 */
  .cbcn-wap-videoBtnList {
    gap: 0.5em;
  }

  .cbcn-wap-videoBtn-box {
    padding: 0 1em;
    height: 1.8em;
    gap: 0.6em;
    align-items: center;
    border-radius: 2.25em;
    overflow: hidden;
    background-color: #ebebeb;
  }

  .cbcn-wap-videoBtn {
    padding: 0.2em;
    cursor: pointer;
    position: relative;
    justify-content: center;
    align-items: center;
  }

  .cbcn-wap-videoBtn::before {
    content: "";
    width: 0.3em;
    height: 0.3em;
    border-radius: 50%;
    background-color: #b3b3b3;
    overflow: hidden;
    transition: all 1s;
  }

  .cbcn-wap-videoBtn::after {
    content: "";
    width: 0;
    height: calc(100% - 0.4em);
    background-color: #fff;
    position: absolute;
    left: 0.2em;
    top: 0.2em;
    border-radius: 5em;
    overflow: hidden;
  }

  .cbcn-wap-videoBtn.active::before {
    width: 2.3em;
    border-radius: 5em;
  }

  .cbcn-wap-videoBtn-play {
    width: 1.8em;
    height: 1.8em;
    flex-shrink: 0;
    cursor: pointer;
  }

  .cbcn-wap-videoBtn-play.active {
    animation: videoPlay 2s forwards;
  }

  @keyframes videoPlay {
    0% {
      transform: rotate(0deg);
    }

    100% {
      transform: rotate(360deg);
    }
  }
}

/* 相互改写部分 不加-wap */
@media screen and (max-width: 980px) {
  /* 标题组件 */
  .cbcn-title.cbcn-wap-ct {
    align-items: center;
  }

  .cbcn-oneVideoPlay canvas {
    width: 100%;
    height: 100%;
  }

  /* 数据类型 */
  .cbcn-param {
    display: flex;
    flex-direction: column;
  }

  .cbcn-param.cbcn-wap-ct {
    align-items: center;
  }

  .cbcn-param.m {
    gap: var(--primitives-spacing-16, 0.8em);
  }

  .cbcn-param.sm {
    gap: var(--primitives-spacing-12, 0.6em);
  }

  .cbcn-param.ssm {
    gap: var(--primitives-spacing-4, 0.2em);
  }

  .cbcn-param > p:nth-child(1),
  .cbcn-param > h2:nth-child(1),
  .cbcn-param > h3:nth-child(1) {
    width: 100%;
  }

  #cbcn-dom-container .bk .no-wapgrey,
  #cbcn-dom-container .wt .no-wapgrey {
    color: var(--text-93a);
  }

  /* 翻页 */
  .cbcn-switchBtnList {
    display: flex;
    justify-content: flex-end;
    gap: 0.6em;
  }

  .cbcn-switchBtnList .cbcn-wap-flexRow {
    width: 60%;
    gap: 0.6em;
    justify-content: flex-end;
  }

  .cbcn-switchBtn-left,
  .cbcn-switchBtn-right {
    width: 1.6em;
    height: 1.6em;
    cursor: pointer;
    position: relative;
  }

  .cbcn-switchBtn-left {
    transform: rotate(180deg);
  }

  .cbcn-switchBtn-left.disabled,
  .cbcn-switchBtn-right.disabled {
    opacity: 0.25;
  }

  /* popup */
  .cbcn-popup {
    visibility: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999;
    overflow: auto;
    background-color: transparent;
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
  }

  .bk .cbcn-popup {
    background: rgba(0, 0, 0, 0.8);
  }

  .wt .cbcn-popup {
    background: #ebebeb;
  }

  .cbcn-popup-content {
    position: relative;
    width: calc(100vw - 2em);
    padding: 0 1em 1em;
    margin-left: auto;
    margin-right: auto;
    margin-top: 100px;
    margin-bottom: 50px;
    border-radius: 24px;
    backdrop-filter: blur(60px);
    -webkit-backdrop-filter: blur(60px);
    padding-bottom: 50px;
  }

  .bk .cbcn-popup-content {
    background: #0d0d0d;
  }

  .wt .cbcn-popup-content {
    background: #fff;
  }

  .cbcn-popup-closeBtn-div {
    position: sticky;
    top: 50px;
    padding-top: 1em;
    padding-right: 1em;
    text-align: right;
  }

  .cbcn-popup-closeBtn {
    display: inline-block;
    width: 1.8em;
    height: 1.8em;
    border-radius: 1.8em;
    background: var(--bottom-bg-l2, rgba(255, 255, 255, 0.25));
  }

  /* 边框选项卡 */
  .cbcn-borderBtnlist {
    display: flex;
    flex-direction: row;
    margin: auto 0;
    width: fit-content;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: auto;
  }

  .cbcn-borderBtn {
    width: 8.3em;
    text-align: center;
    padding: 0.4em 0;
    z-index: 11;
    position: relative;
    cursor: pointer;
    opacity: 0.32;
    transition: all 0.3s;
    z-index: 11;
  }

  .cbcn-borderBtn > P {
    z-index: 11;
    position: relative;
  }

  .cbcn-borderBtn.active {
    opacity: 1;
  }

  .cbcn-borderSvg {
    --btnLeft: 8.3em;
    position: absolute;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    left: var(--btnLeft);
    transition: all 0.3s;
  }

  .cbcn-borderBtn:before {
    top: 50%;
    left: 50%;
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url("../images/pc/border-left.svg"),
      url("../images/pc/border-right.svg");
    background-size: contain, contain;
    background-position: left center, right center;
    background-repeat: no-repeat;
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0;
    z-index: 1;
  }

  .cbcn-borderBtn.active:before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    transition-duration: 0.3s;
    transition-timing-function: ease-in-out;
    transition-property: transform, opacity;
  }
}
