:root {
  --bobo-sidebanner-title-size: 36px;
}

.bobo-sidebanner {
  position: relative;
  width: 100%;
  min-height: 280px;
  overflow: hidden;
  box-sizing: border-box;
}

.bobo-sidebanner.has-bg {
  min-height: 0;
}

/* 图片：宽度铺满，高度等比，任何屏幕都完整显示，不裁切 */
.bobo-sidebanner .bobo-sidebanner-bg {
  display: block;
  width: 100%;
  height: auto;
}

.bobo-sidebanner .bobo-sidebanner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 280px;
}

.bobo-sidebanner.has-bg .bobo-sidebanner-inner {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 0;
}

.bobo-sidebanner .container {
  width: 100%;
  padding: 30px 15px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.bobo-sidebanner .container h1,
.bobo-sidebanner .container h2 {
  margin: 0 0 10px;
  font-size: var(--bobo-sidebanner-title-size);
}

.bobo-sidebanner .container .left {
  width: 100%;
  text-align: left;
}

.bobo-sidebanner .container .center {
  width: 100%;
  text-align: center;
}

.bobo-sidebanner .container .path p {
  margin: 0;
  color: var(--text-color);
}

@media screen and (max-width: 1500px) {
  :root {
    --bobo-sidebanner-title-size: 32px;
  }
}

@media screen and (max-width: 1280px) {
  :root {
    --bobo-sidebanner-title-size: 28px;
  }
}

@media screen and (max-width: 1200px) {
  :root {
    --bobo-sidebanner-title-size: 26px;
  }
}

@media screen and (max-width: 992px) {
  :root {
    --bobo-sidebanner-title-size: 32px;
  }
}

/* 移动端：图片完整显示，文字放到图片下方 */
@media screen and (max-width: 768px) {
  :root {
    --bobo-sidebanner-title-size: 28px;
  }

  .bobo-sidebanner.has-bg .bobo-sidebanner-inner {
    position: static;
    min-height: 0;
  }

  .bobo-sidebanner .bobo-sidebanner-inner {
    min-height: 0;
  }

  .bobo-sidebanner .container {
    padding: 20px 15px;
  }

  .bobo-sidebanner:not(.has-bg) .bobo-sidebanner-inner {
    padding: 10px 0;
  }
}

@media screen and (max-width: 576px) {
  :root {
    --bobo-sidebanner-title-size: 24px;
  }
}