/* -------------------------------
 * CMS 全局
------------------------------- */
:root {
  --primary: #f55500;
  --primary-rgb: 255, 85, 0;
  --on-primary: #fff;
  --primary-dark: #642f2c;
  --primary-dark-rgb: 100, 47, 44;
  --primary-light: #ddf1f2;
  --secondary: var(--primary-dark);
  --sectodary-rgb: var(--primary-dark-rgb);
  --on-secondary: #fff;
  --body-color: #444;
  --border-radius-btn: 24px;
  --border-radius: 24px;
  --border-radius-lg: 25px;
}

/* 颜色 */
.cms-item-text ul > li:before {
  background-color: var(--primary);
}
.cms-item-text .table-striped thead th {
  background-color: var(--secondary);
}
.cms-item-text ol > li:before {
  color: var(--primary);
}
.cms-block-tit,
.cms-item h3 {
  /* color: var(--secondary); */
}

.container-cms-page.has-hr,
.cms-item-hr hr {
  border-color: #f1f1f1 !important;
}

.cms-item-text a:hover,
.cms-item-half .self:hover {
  color: var(--primary);
}

.cms-item-links li a:hover,
.cms-item-media-thumbnail li .item:hover .caption {
  background: var(--primary);
}

.cms-item-media-thumbnail li .item:hover .caption {
  color: #fff;
}

.container-cms-page {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  color: #333;
  overflow: hidden;
}

.container-cms-page.has-hr {
  padding-top: 40px;
  border-top: 2px solid;
}

.margin-b-default {
  margin-bottom: 2.4em;
}

.margin-b-compact {
  margin-bottom: 1.57em;
}

.margin-b-loose {
  margin-bottom: 3.57em;
}

.cms-block-tit {
  margin-bottom: 1.1em;
  font-size: 1.42em;
  font-weight: 800;
  line-height: 1.2;
}

.no-link {
  cursor: default !important;
}

/* 圆角样式 */
.cms-item-image,
.cms-item-video,
.cms-item-swiper,
.cms-item-swiper .swiper-slide,
.cms-item-half,
.embed-responsive .swiper-container {
  /* border-radius: 20px; */
  border-radius: var(--border-radius-lg);
}

@media (min-width: 768px) {
  .cms-item-image,
  .cms-item-video,
  .cms-item-swiper,
  .cms-item-swiper .swiper-slide,
  .cms-item-half,
  .embed-responsive .swiper-container {
    /* border-radius: 25px; */
  }
}

.cms-item-hr hr {
  border-top: 2px solid;
}

/* 文字 */
.cms-item-text {
  font-weight: 400;
}

.cms-item h3 {
  margin-top: 0;
  margin-bottom: 1.1em;
  font-size: 1.42em;
  font-weight: 800;
  line-height: 1.2;
}

.cms-item-text p,
.cms-item-text ul,
.cms-item-text ol,
.cms-item-text .table-responsive {
  margin-top: 1.57em;
  margin-bottom: 1.57em;
}

.cms-item-text p:first-child {
  margin-top: 0;
}

.cms-item-text ul,
.cms-item-text ol {
  padding-left: 0;
}

.cms-item-text li {
  position: relative;
  padding-left: 0.8em;
  line-height: 1.73;
  list-style: none;
}

.cms-item-text ul {
  margin-bottom: 0;
}

.cms-item-text ol {
  margin-top: 0;
}

.cms-item-text ul > li:before {
  content: '';
  display: block;
  position: absolute;
  left: 0.2em;
  top: 0.85em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cms-item-text li > ul {
  margin-left: -1.6em;
}

.cms-item-text ol > li {
  counter-increment: index;
  padding-left: 1.2em;
}

.cms-item-text ol > li:before {
  content: counter(index);
  position: absolute;
  top: 0;
  left: -0.5em;
  width: 1.6em;
  text-align: center;
}

.cms-item-text a {
  text-decoration: underline;
}

.cms-item-text a:hover {
  text-decoration: underline;
}

.cms-item-text .table-responsive {
  border: none;
}

.cms-item-text .table {
  margin: 0;
}

.cms-item-text .table th {
  white-space: nowrap;
}
.cms-item-text .table th:first-child {
  border-top-left-radius: var(--border-radius-btn);
  border-bottom-left-radius: var(--border-radius-btn);
}
.cms-item-text .table th:last-child {
  border-top-right-radius: var(--border-radius-btn);
  border-bottom-right-radius: var(--border-radius-btn);
}

.cms-item-text .table.no-boder {
  width: auto;
  border-bottom: none;
}

.cms-item-text .table.no-boder th,
.cms-item-text .table.no-boder td {
  padding-top: 0;
  padding-bottom: 0;
  vertical-align: top;
  line-height: 24px;
  border: none;
}

.cms-item-text .table.no-boder tr > :first-child {
  padding-left: 0;
}

.cms-item-text .table.no-boder tr > :last-child {
  padding-right: 0;
}

@media (max-width: 767px) {
  .cms-item-text .table.no-boder th {
    padding-right: 0;
  }
}

@media (min-width: 768px) {
  .cms-item-text .table.no-boder th {
    padding-right: 2em;
  }
}

@media (max-width: 1024px) {
  .cms-item-text .table.no-boder th {
    white-space: nowrap;
  }
}

.cms-item-text .table-striped thead th {
  text-align: center;
  color: #fff;
  border: none;
}

/* .cms-item-text .table-striped thead th:first-of-type {
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
}
.cms-item-text .table-striped thead th:last-of-type {
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
} */
.cms-item-text .table th,
.cms-item-text .table td {
  padding: 0.9em 1em;
}

.cms-item-text .table-striped tbody tr {
  background: none;
}

.cms-item-text .table-striped tbody td {
  border-top: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.cms-item-text .table th p,
.cms-item-text .table td p {
  line-height: 1.7;
  margin: 0;
}

.cms-item > :first-child {
  margin-top: 0;
}

.cms-item > :last-child {
  margin-bottom: 0;
}

/* 图片 */
.cms-item-image {
  overflow: hidden;
}

.cms-item-image .img-src {
  display: block;
  /* background: #e6e6e6; */
}

.cms-item-image .img-src > img {
  max-width: 100%;
}

/* @media (min-width: 1200px) {
    div.cms-item-image .img-src > img {
        max-height: 560px;
    }
}
@media (min-width: 769px) and (max-width: 1199px) {
    div.cms-item-image .img-src > img {
        max-height: calc( (100vw - (100vw / 4) - 15px - 45px) * 0.666 );
    }
}
@media (max-width: 768px){
    div.cms-item-image .img-src > img {
        max-height: calc( (100vw - 30px ) * 0.666 );
    }
}
@media (max-width: 767px ) {
    div.cms-item-image .img-src > img {
        max-height: calc( (100vw - 30px) * 0.666 );
    }
}  */
.cms-item .caption {
  flex-grow: 1;
  font-size: 12px;
  padding: 0.9em 1.42em;
  line-height: 1.5em;
  background: #f2f2f2;
  color: #808080;
}

.cms-item .caption p {
  margin-bottom: 0;
}

/* swiper */
.cms-item-swiper {
  position: relative;
  overflow: hidden;
}

.cms-item-swiper .embed-responsive {
  padding-bottom: 66.666%;
}

.embed-responsive .swiper-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.cms-item-swiper .swiper-prev,
.cms-item-swiper .swiper-next {
  position: absolute;
  z-index: 1;
  top: 50%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  line-height: 48px;
  font-size: 14px;
  text-align: center;
  color: #fff;
  border-radius: 50%;
  background: rgba(51, 51, 51, 0.5);
  cursor: pointer;
}

.cms-item-swiper .swiper-button-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cms-item-swiper .swiper-button-disabled:hover {
  background: rgba(51, 51, 51, 0.5) !important;
}

.cms-item-swiper .swiper-prev {
  left: 20px;
}

.cms-item-swiper .swiper-next {
  right: 20px;
}

.cms-item-swiper .caption {
  text-align: center;
}

@media (max-width: 767px) {
  .cms-item-swiper .swiper-prev:after,
  .cms-item-swiper .swiper-next:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 400%;
    transform: translate(-50%, -50%);
  }

  .cms-item-swiper .swiper-button-disabled {
    display: none;
  }
}

@media (min-width: 768px) {
  .cms-item-swiper .swiper-prev:hover,
  .cms-item-swiper .swiper-next:hover {
    background: var(--secondary);
  }
}

.cms-item-swiper .swiper-slide,
.cms-item-swiper .swiper-slide .img-src {
  height: 100%;
}

.cms-item-swiper .swiper-slide .img-src {
  display: block;
}

.cms-item-swiper .swiper-slide {
  background-color: #e6e6e6;
  overflow: hidden;
}

.cms-item-swiper .swiper-slide:not(:first-child) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.cms-item-swiper .swiper-slide:not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.cms-item-swiper .swiper-slide .caption {
  position: absolute;
  width: 100%;
  left: 0;
  bottom: 0;
  margin: 0;
  padding: 0.9em 1.42em;
  line-height: 1.5em;
  background: rgba(242, 242, 242, 0.8);
}

@media (max-width: 767px) {
  .cms-item-swiper .swiper-slide .caption {
    pointer-events: none;
  }

  .cms-item-swiper .swiper-slide .caption p {
    display: -webkit-box;
    display: -moz-box;
    text-overflow: ellipsis;
    word-break: break-all;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
}

/* 图文混合（依赖：文字/图片） */
.cms-item-mixed:after {
  content: '';
  display: table;
  clear: both;
}

.cms-item-mixed {
  margin-bottom: -2em;
}

.cms-item-mixed .pull-media {
  margin: 0 2em 2em;
}

.this-media-left .pull-media {
  padding-top: 0.3em;
  float: left;
  margin-left: 0 !important;
}

.this-media-right .pull-media {
  float: right;
  margin-right: 0 !important;
}

.this-media-lg .pull-media {
  width: 42.5%;
}

.this-media-sm .pull-media {
  width: 31%;
}

.this-media-lg .pull-media img {
  display: block;
  width: 100%;
}

.this-media-not-surround .cms-item-mixed .cms-item-text,
.this-media-left .cms-item-mixed ul,
.this-media-left .cms-item-mixed ol {
  overflow: hidden;
}

@media (max-width: 767px) {
  .cms-item-mixed {
    margin-bottom: -1em;
  }

  .cms-item-mixed .pull-media {
    margin: 0 1em 1em;
  }

  .this-media-lg .cms-item-mixed .pull-media {
    float: none;
    width: 100%;
  }

  .this-media-sm .cms-item-mixed .pull-media {
    width: 44%;
  }
}

/* half模块（依赖插入6:6布局） */
@media (min-width: 768px) {
  .row-cms-page {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
  }

  .row-cms-page .col-sm-6,
  .row-cms-page .cms-block {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }
}

.cms-layout .col-sm-6 .cms-block {
  width: 100%;
}

.cms-item-half {
  width: 100%;
  background: #f2f2f2;
  overflow: hidden;
}

.cms-item-half {
  padding: 20px;
  padding-bottom: 0;
}

.cms-item-half .img-src {
  margin: -20px -20px 0 -20px;
}
.cms-item-half .img-info {
  padding: 20px 0;
}
@media (min-width: 768px) {
  .cms-item-half {
    padding: 30px;
    padding-bottom: 0;
  }

  .cms-item-half .img-src {
    margin: -30px -30px 0 -30px;
  }
  .cms-item-half .img-info {
    padding: 30px 0;
  }
}

.cms-item-half h3 {
  font-size: 1.42em;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 0.7em;
}

.cms-item-half p {
  margin-bottom: 1.25em;
  transform: rotate();
  backface-visibility: hidden;
}

.cms-item-half ul {
  padding-left: 0;
}

@media (min-width: 768px) {
  .cms-item-half h3 {
    margin-bottom: 1em;
  }

  .cms-item-half p {
    margin-bottom: 1.75em;
  }
}

.cms-item-half li {
  list-style: none;
}

.cms-item-half .self i {
  margin-left: 5px;
}

.cms-layout .has-hr {
  padding-top: 2.4em;
}

.cms-layout .has-hr:before {
  position: absolute;
  top: 0;
  right: 15px;
  content: '';
  width: calc(100% - 30px);
  height: 0;
  border-top: 1px solid #e6e6e6;
}

/* 视频（视频备注同图片） */
.cms-item-video {
  overflow: hidden;
  transform: translateZ(0);
}

.cms-item-video > .video-code {
  position: relative;
  padding-bottom: 60%;
  overflow: hidden;
}

.cms-item-video > .youku {
  padding-bottom: 56.25%;
}

.cms-item-video > .youku {
  padding-bottom: 56.25%;
}

.cms-item-video > .youtube {
  padding-bottom: 56.25%;
}

.cms-item-video > .video-code embed,
.cms-item-video > .video-code iframe,
.cms-item-video > .video-code video,
.cms-item-video > .video-code object {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border: none;
  overflow: hidden;
}

/* 链接集 */
.cms-item-links {
  padding-left: 0;
}

.cms-item-links li {
  min-height: 40px;
  margin-bottom: 10px;
  list-style: none;
}

.cms-item-links li:last-child {
  margin-bottom: 0;
}

.cms-item-links li a {
  display: inline-flex;
  align-items: center;
  padding: 9px 15px;
  height: 100%;
  text-align: center;
  background: #f2f2f2;
  border-radius: var(--border-radius-btn);
  font-size: 0;
}

.cms-item-links li a:after {
  content: '';
  width: 0;
  height: 100%;
  display: inline-block;
  vertical-align: middle;
}

.cms-item-links li i,
.cms-item-links li strong {
  display: inline-block;
  vertical-align: middle;
}

.cms-item-links li strong {
  font-size: 14px;
}

.cms-item-links li i {
  width: 14px;
  height: 14px;
  line-height: 14px;
  margin-right: 5px;
  font-size: 14px;
}

.cms-item-links li a:hover {
  color: #fff;
}

/* 照片墙图集 */
.cms-item-media-thumbnail ul {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: stretch;
  -ms-flex-align: stretch;
  align-items: stretch;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  padding-left: 0;
  margin: -15px -7.5px 0;
}

.cms-item-media-thumbnail li {
  position: relative;
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  margin-top: 15px;
  width: 50%;
  max-width: 50%;
  min-width: 50%;
  padding: 0 7.5px;
  list-style: none;
}

@media (min-width: 769px) {
  .cms-item-media-thumbnail ul {
    margin: -30px -15px 0;
  }

  .cms-item-media-thumbnail li {
    margin-top: 30px;
    width: 25%;
    max-width: 25%;
    min-width: 25%;
    padding: 0 15px;
    list-style: none;
  }
}

@media (width: 768px) {
  .cms-item-media-thumbnail li {
    width: 33.333%;
    max-width: 33.333%;
    min-width: 33.333%;
  }
}

.cms-item-media-thumbnail li .item {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #f2f2f2;
  overflow: hidden;
  border: 1px solid #f2f2f2;
  border-radius: var(--border-radius-lg);
}

.cms-item-media-thumbnail .embed-responsive {
  position: relative;
  padding-bottom: 66.666%;
  background-color: #fff;
}

.cms-item-media-thumbnail .embed-responsive .img-src {
  position: absolute;
  width: 100%;
  height: 100%;
}

.cms-item-media-thumbnail .caption {
  padding: 1.2em;
}

/* fancybox(only-mobile) */
@media (max-width: 767px) {
  .fancybox-ccbf .fancybox-infobar {
    display: none;
  }

  .fancybox-ccbf .fancybox-button--close {
    top: 0;
    right: 0;
    width: 58px;
    height: 58px;
    border: transparent 15px solid;
    background-color: #333;
    background-clip: content-box;
  }

  .fancybox-ccbf .fancybox-caption-wrap {
    padding: 15px;
    z-index: 99999;
  }

  .fancybox-ccbf .fancybox-image {
    /* padding: 15px; */
  }

  .fancybox-ccbf .fancybox-caption-bg {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -47px;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: -1;
  }

  .fancybox-ccbf .fancybox-caption {
    min-height: auto;
    height: auto;
    padding: 0 0 8px;
    margin-bottom: 30px;
    background-color: transparent;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0.5px 0 rgba(0, 0, 0, 0.25);
    pointer-events: auto;
  }

  .fancybox-ccbf .fancybox-caption .caption {
    font-size: 14px;
    line-height: 21px;
    max-height: 80vh;
    overflow: hidden;
    transition: max-height 0.5s ease;
  }

  .fancybox-ccbf .fancybox-caption .caption.hidemore {
    display: -webkit-box;
    display: -moz-box;
    max-height: 60px;

    text-overflow: ellipsis;
    word-break: break-all;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    -webkit-mask-image: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
  }

  .fancybox-ccbf .fancybox-caption p {
    padding: 0;
    margin: 0;
  }

  .fancybox-ccbf .fancybox-caption > .fancy-btn {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    bottom: -36px;
    width: 24px;
    height: 24px;
    background-color: rgba(125, 125, 125, 0.9);
    border-radius: 7.5px;
  }

  .fancybox-ccbf .fancybox-caption > .fancy-btn > .i {
    margin: 0;
    font-size: 14px;
  }

  .fancybox-ccbf .fancybox-caption > .download {
    top: auto;
    bottom: -36px;
    right: 0;
  }

  .fancybox-ccbf .fancybox-caption > .download > span {
    display: none;
  }
}
