.sgc-media-hover-switch *,
.sgc-media-hover-switch *::before,
.sgc-media-hover-switch *::after {
  box-sizing: border-box;
}

@media (max-width: 959px) {
  .sgc-media-hover-switch * {
    -webkit-tap-highlight-color: transparent;
  }
}

.sgc-media-hover-switch ol,
.sgc-media-hover-switch ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sgc-media-hover-switch dl {
  margin-block: 0;
}

.sgc-media-hover-switch dd {
  margin-inline-start: 0;
}

.sgc-media-hover-switch h1,
.sgc-media-hover-switch h2,
.sgc-media-hover-switch h3,
.sgc-media-hover-switch h4,
.sgc-media-hover-switch h5,
.sgc-media-hover-switch h6 {
  margin-block: 0;
  word-break: break-all;
}

.sgc-media-hover-switch h1:empty,
.sgc-media-hover-switch h2:empty,
.sgc-media-hover-switch h3:empty,
.sgc-media-hover-switch h4:empty,
.sgc-media-hover-switch h5:empty,
.sgc-media-hover-switch h6:empty,
.sgc-media-hover-switch section:empty,
.sgc-media-hover-switch article:empty,
.sgc-media-hover-switch p:empty,
.sgc-media-hover-switch a:empty,
.sgc-media-hover-switch ol:empty,
.sgc-media-hover-switch ul:empty,
.sgc-media-hover-switch dl:empty,
.sgc-media-hover-switch summary:empty {
  display: none;
}

.sgc-media-hover-switch a:not([href]) {
  cursor: not-allowed;
}

.sgc-media-hover-switch a:not(.sgc-button),
.sgc-media-hover-switch a:not(.sgc-button):hover {
  text-decoration: none;
}

.sgc-media-hover-switch svg.sgc-icon circle,
.sgc-media-hover-switch svg.sgc-icon path {
  vector-effect: non-scaling-stroke;
}

.sgc-media-hover-switch p:first-child {
  margin-block-start: 0;
}

.sgc-media-hover-switch p:last-child {
  margin-block-end: 0;
}

.sgc-media-hover-switch {
  /**
   * 内容级的元素层级
   */
  --sgc-z-index-hover: 1;
  --sgc-z-index-active: 2;
  --sgc-z-index-focus: 3;

  /**
   * 覆盖级的元素层级
   */
  --sgc-z-index-sticky: 1000;
  --sgc-z-index-dropdown: 1010;
  --sgc-z-index-fixed: 1020;
  --sgc-z-index-modal: 1030;
  --sgc-z-index-popover: 1040;
  --sgc-z-index-tooltip: 1050;
  --sgc-z-index-toast: 1060;
}

@keyframes sgc-loading-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.sgc-media-hover-switch .sgc-hidden {
  display: none !important;
}

@media (max-width: 959px) {
  .sgc-media-hover-switch .sgc-hidden-mobile {
    display: none !important;
  }
}

@media (min-width: 960px) {
  .sgc-media-hover-switch .sgc-hidden-desktop {
    display: none !important;
  }
}

.sgc-media-hover-switch .sgc-hidden-empty:empty {
  display: none;
}

.sgc-media-hover-switch .sgc-basic-style {
  font-family: var(--sgc-basic-font-family, revert);
  font-size: var(--sgc-basic-font-size, revert);
  font-style: var(--sgc-basic-font-style, revert);
  font-weight: var(--sgc-basic-font-weight, revert);
  line-height: var(--sgc-basic-line-height, revert);
  color: rgb(var(--sgc-basic-color, revert));
  letter-spacing: var(--sgc-basic-letter-spacing, revert);
  overflow-wrap: break-word;
}

@media (max-width: 959px) {
  .sgc-media-hover-switch .sgc-basic-style {
    font-size: var(
      --sgc-basic-mobile-font-size,
      var(--sgc-basic-font-size, revert)
    );
  }
}

.sgc-media-hover-switch .sgc-text-align-left {
  text-align: start;
}

.sgc-media-hover-switch .sgc-text-align-center {
  text-align: center;
}

.sgc-media-hover-switch .sgc-text-align-right {
  text-align: end;
}

.sgc-media-hover-switch .sgc-button {
  --sgc-button-padding-block: 10px;
  --sgc-button-padding-inline: 20px;

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-block: var(--sgc-button-padding-block);
  padding-inline: var(--sgc-button-padding-inline);
  font-family: var(--sgc-button-font-family, revert);
  font-size: var(--sgc-button-font-size, revert);
  font-style: var(--sgc-button-font-style, revert);
  font-weight: var(--sgc-button-font-weight, revert);
  line-height: var(--sgc-button-line-height, revert);
  vertical-align: middle;
  color: rgb(var(--sgc-button-text-color, revert));
  text-align: center;
  letter-spacing: var(--sgc-button-letter-spacing, revert);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}

@media (max-width: 959px) {
  .sgc-media-hover-switch .sgc-button {
    --sgc-button-padding-block: 8px;
    --sgc-button-padding-inline: 16px;

    font-size: var(
      --sgc-button-mobile-font-size,
      var(--sgc-button-font-size, revert)
    );
  }
}

.sgc-media-hover-switch .sgc-button:focus {
  outline: 0;
}

.sgc-media-hover-switch .sgc-button:disabled,
.sgc-media-hover-switch .sgc-button.disabled {
  cursor: not-allowed;
  opacity: 0.3;
}

.sgc-media-hover-switch .sgc-button.loading {
  position: relative;
  color: transparent !important;
}

.sgc-media-hover-switch .sgc-button.loading::before {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  display: block;
  width: 16px;
  height: 16px;
  margin-block-start: -8px;
  margin-inline-start: -8px;
  content: "";
  border: 2px solid rgb(var(--sgc-button-text-color, revert));
  border-block-start-color: transparent;
  border-radius: 50%;
  animation: sgc-loading-spin 1s linear infinite;
}

.sgc-media-hover-switch .sgc-button--style-normal {
  background-color: rgb(var(--sgc-button-background-color, revert));
  border: var(--sgc-button-border-thickness) solid
    rgb(var(--sgc-button-border-color), var(--sgc-button-border-opacity));
  border-radius: var(--sgc-button-border-radius);
  box-shadow: var(--sgc-button-shadow-offset-x)
    var(--sgc-button-shadow-offset-y) var(--sgc-button-shadow-blur)
    rgb(var(--sgc-button-shadow-color), var(--sgc-button-shadow-opacity));
}

.sgc-media-hover-switch .sgc-button--style-normal.sgc-button--effect-scan {
  overflow: hidden;
}

.sgc-media-hover-switch
  .sgc-button--style-normal.sgc-button--effect-scan::after {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  display: block;
  width: 100%;
  height: 100%;
  content: "";
  background: linear-gradient(
    90deg,
    transparent,
    hsl(0deg 0% 100% / 25%),
    transparent
  );
  transform: skew(-20deg) translateX(200%);
  transition: transform 0.5s cubic-bezier(0.01, 0.56, 1, 1);
}

.sgc-media-hover-switch
  .sgc-button--style-normal.sgc-button--effect-scan:focus::after,
.sgc-media-hover-switch
  .sgc-button--style-normal.sgc-button--effect-scan:hover::after {
  transform: skew(-20deg) translateX(-150%);
}

.sgc-media-hover-switch .sgc-button--style-normal.sgc-button--effect-shadow {
  transition: box-shadow 0.2s;
}

.sgc-media-hover-switch
  .sgc-button--style-normal.sgc-button--effect-shadow:hover {
  box-shadow: 0 10px 20px rgb(0 0 0 / 10%);
}

.sgc-media-hover-switch .sgc-button--style-normal.sgc-button--effect-scale {
  position: relative;
}

.sgc-media-hover-switch
  .sgc-button--style-normal.sgc-button--effect-scale::after {
  position: absolute;
  inset-block-start: calc(-1 * var(--sgc-button-border-thickness));
  inset-inline-start: calc(-1 * var(--sgc-button-border-thickness));
  display: block;
  width: calc(100% + var(--sgc-button-border-thickness) * 2);
  height: calc(100% + var(--sgc-button-border-thickness) * 2);
  pointer-events: none;
  content: "";
  border-radius: calc(var(--sgc-button-border-radius) + 1px);
  box-shadow: none;
  transition: box-shadow 0.2s;
}

.sgc-media-hover-switch
  .sgc-button--style-normal.sgc-button--effect-scale:focus::after,
.sgc-media-hover-switch
  .sgc-button--style-normal.sgc-button--effect-scale:hover::after {
  box-shadow: 0 0 0 1px
    rgb(var(--sgc-button-border-color), var(--sgc-button-border-opacity));
}

.sgc-media-hover-switch .sgc-button--style-link {
  --sgc-button-padding-block: 2px;
  --sgc-button-padding-inline: 4px;

  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  background-color: transparent;
  border: none;
}

.sgc-media-hover-switch .sgc-button--style-link:hover {
  text-decoration-thickness: 2px;
}

.sgc-media-hover-switch .sgc-button--style-arrow-button {
  --sgc-button-padding-block: 2px;
  --sgc-button-padding-inline: 4px;

  gap: 4px;
  background-color: transparent;
  border: none;
}

.sgc-media-hover-switch .sgc-rte {
  overflow-wrap: break-word;
}

.sgc-media-hover-switch .sgc-rte img,
.sgc-media-hover-switch .sgc-rte video {
  max-width: 100%;
  height: auto;
}

.sgc-media-hover-switch .sgc-rte::after {
  clear: both;
  display: block;
  content: "";
}

.sgc-media-hover-switch .sgc-rte a,
.sgc-media-hover-switch .sgc-rte a:hover {
  position: relative;
  padding: 0 1px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.sgc-media-hover-switch .sgc-rte ul,
.sgc-media-hover-switch .sgc-rte ol {
  padding: revert;
  margin: revert;
  list-style: revert;
}

.sgc-media-hover-switch .sgc-rte > p:first-child {
  margin-block-start: 0;
}

.sgc-media-hover-switch .sgc-rte > p:last-child {
  margin-block-end: 0;
}

.sgc-media-hover-switch .sgc-rte iframe {
  max-width: 100%;
}

.sgc-media-hover-switch .sgc-rte p img {
  vertical-align: bottom;
}

.sgc-media-hover-switch .sgc-rte table {
  table-layout: fixed;
}

.sgc-media-hover-switch .sgc-media-hover-switch__media-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #fff -25%, #dcdcdc 100%);
  border: var(--border-thickness) solid
    rgb(var(--border-color), var(--border-opacity));
  border-radius: var(--border-radius);
}

.sgc-media-hover-switch .sgc-media-hover-switch__media-image-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.sgc-media-hover-switch .sgc-media-hover-switch__media-image-container {
  height: 100%;
  transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.sgc-media-hover-switch .sgc-media-hover-switch__media-image-container-content {
  height: 100%;
}

.sgc-media-hover-switch .sgc-media-hover-switch__media-image-container > div {
  height: 100%;
}

.sgc-media-hover-switch .sgc-media-hover-switch__media-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sgc-media-hover-switch .sgc-media-hover-switch__media-image-container svg {
  width: 100%;
  height: 100%;
}

.sgc-media-hover-switch .sgc-media-hover-switch__media-image-content {
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  display: flex;
  width: 100%;
  height: 100%;
}

.sgc-media-hover-switch .sgc-media-hover-switch__media-image-content > div {
  width: 100%;
}

.sgc-media-hover-switch .sgc-media-hover-switch__media-video {
  width: 100%;
  height: 100%;
  cursor: pointer;
  border: var(--border-thickness) solid
    rgb(var(--border-color), var(--border-opacity));
  border-radius: var(--border-radius);
}

.sgc-media-hover-switch .sgc-media-hover-switch__media-video-container {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transition: 0.2s ease-in-out;
}

.sgc-media-hover-switch .sgc-media-hover-switch__media-video-container-content {
  height: 100%;
}

.sgc-media-hover-switch
  .sgc-media-hover-switch__media-video-container
  .sgc-video-media__poster
  > img,
.sgc-media-hover-switch
  .sgc-media-hover-switch__media-video-container
  .sgc-video-media__poster
  > svg {
  object-position: var(--desktop-poster-image-position);
}

@media (max-width: 959px) {
  .sgc-media-hover-switch
    .sgc-media-hover-switch__media-video-container
    .sgc-video-media__poster
    > img,
  .sgc-media-hover-switch
    .sgc-media-hover-switch__media-video-container
    .sgc-video-media__poster
    > svg {
    object-position: var(--mobile-poster-image-position);
  }
}

.sgc-media-hover-switch .sgc-media-hover-switch__media-video-container-mask {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  background-color: rgb(0 0 0 / 5%);
}

.sgc-media-hover-switch
  .sgc-media-hover-switch__media-video-container
  sgc-video-media {
  width: 100%;
  height: 100%;
}

.sgc-media-hover-switch .sgc-media-hover-switch__media-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sgc-media-hover-switch .sgc-media-hover-switch__media-video-container iframe {
  width: 100%;
  height: 100%;
}

.sgc-media-hover-switch .sgc-media-hover-switch__media-video-wrapper-media {
  height: 100%;
}

.sgc-media-hover-switch
  .sgc-media-hover-switch__media-video-wrapper-media
  > div {
  width: 100%;
  height: 100%;
}

.sgc-media-hover-switch
  .sgc-media-hover-switch__media-video-wrapper-media-desktop {
  height: 100%;
}

.sgc-media-hover-switch
  .sgc-media-hover-switch__media-video-wrapper-media-mobile {
  height: 100%;
}

.sgc-media-hover-switch .sgc-media-hover-switch__media-video-content {
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  z-index: 3;
  display: flex;
  width: 100%;
  height: 100%;
}

.sgc-media-hover-switch .sgc-media-hover-switch__media-video-content > div {
  width: 100%;
}

.sgc-media-hover-switch .sgc-media-hover-switch__content-group > div {
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  /* stylelint-disable-next-line property-no-deprecated */
  -webkit-box-orient: vertical;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.sgc-media-hover-switch {
  background-color: rgb(var(--background-color));
}

.sgc-media-hover-switch .sgc-media-hover-switch-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  width: 100%;
  max-width: 100%;
  padding: 40px 20px;
  margin: 0 auto;
}

@media (min-width: 960px) {
  .sgc-media-hover-switch .sgc-media-hover-switch-section {
    max-width: var(--desktop-max-width);
  }
}

@media (max-width: 959px) {
  .sgc-media-hover-switch .sgc-media-hover-switch-section {
    padding: 20px;
  }
}

.sgc-media-hover-switch .sgc-media-hover-switch-text {
  width: 100%;
  padding: 0 20px;
}

.sgc-media-hover-switch .sgc-media-hover-switch-title {
  font-family: var(--title-font-family);
  font-size: var(--title-font-size);
  line-height: calc(var(--title-line-height) * 100 * 1%);
  color: rgb(var(--title-color));
  letter-spacing: var(--title-letter-spacing);
}

@media (max-width: 959px) {
  .sgc-media-hover-switch .sgc-media-hover-switch-title {
    font-size: var(--title-mobile-font-size);
  }
}

.sgc-media-hover-switch sgc-media-hover-switch {
  width: 100%;
}

.sgc-media-hover-switch .sgc-media-hover-switch__track {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sgc-media-hover-switch .sgc-media-hover-switch__slides-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28%;
  height: var(--media-height);
}

@media (min-width: 960px) {
  .sgc-media-hover-switch .sgc-media-hover-switch__slides-container {
    min-width: 350px;
  }
}

@media (max-width: 959px) {
  .sgc-media-hover-switch .sgc-media-hover-switch__slides-container {
    width: 75%;
  }
}

.sgc-media-hover-switch .sgc-media-hover-switch__slide {
  position: absolute;
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.sgc-media-hover-switch
  .sgc-media-hover-switch__slide
  .sgc-media-hover-switch__media-image,
.sgc-media-hover-switch
  .sgc-media-hover-switch__slide
  .sgc-media-hover-switch__media-video {
  background: linear-gradient(180deg, #fff -25%, #dcdcdc 100%);
}

.sgc-media-hover-switch
  .sgc-media-hover-switch__slide
  .sgc-media-hover-switch__media-image:hover
  .sgc-media-hover-switch__media-image-container,
.sgc-media-hover-switch
  .sgc-media-hover-switch__slide
  .sgc-media-hover-switch__media-image:hover
  .sgc-media-hover-switch__media-video-container,
.sgc-media-hover-switch
  .sgc-media-hover-switch__slide
  .sgc-media-hover-switch__media-video:hover
  .sgc-media-hover-switch__media-image-container,
.sgc-media-hover-switch
  .sgc-media-hover-switch__slide
  .sgc-media-hover-switch__media-video:hover
  .sgc-media-hover-switch__media-video-container {
  transform: scale(1.1);
}

.sgc-media-hover-switch .sgc-media-hover-switch__slide-inner {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

@media (min-width: 960px) {
  .sgc-media-hover-switch .sgc-media-hover-switch__slide-inner {
    transform: translateX(var(--slide-inner-offset));
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  }
}

.sgc-media-hover-switch .sgc-media-hover-switch__slide-inner-content {
  width: 100%;
  height: 100%;
}

@media (min-width: 960px) {
  .sgc-media-hover-switch .sgc-media-hover-switch__slide-inner-content {
    transform: translateX(calc(var(--slide-inner-offset) * -1));
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  }
}

.sgc-media-hover-switch .sgc-media-hover-switch__slide-inner-content > div {
  width: 100%;
  height: 100%;
}

.sgc-media-hover-switch .sgc-media-hover-switch__view-container {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  width: 100%;
  height: 100%;
  padding: 60px;
  background-color: rgb(0 0 0 / 50%);
}

@media (max-width: 959px) {
  .sgc-media-hover-switch .sgc-media-hover-switch__view-container {
    padding: 0;
  }
}

.sgc-media-hover-switch .sgc-media-hover-switch__view-container-inner {
  width: 100%;
  max-width: 1200px;
}

.sgc-media-hover-switch .sgc-media-hover-switch__view-container-close {
  position: absolute;
  inset-block-start: 20px;
  inset-inline-end: 20px;
  z-index: 1001;
  color: #fff;
  cursor: pointer;
}

.sgc-media-hover-switch .sgc-media-hover-switch__view-container-content {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

@media (min-width: 960px) {
  .sgc-media-hover-switch
    .sgc-media-hover-switch__view-container-content--vertical {
    width: 50.625vh;
    height: 90vh;
  }
}

@media (max-width: 959px) {
  .sgc-media-hover-switch
    .sgc-media-hover-switch__view-container-content--vertical {
    width: 100vw;
    height: calc(177.778vw);
  }
}

.sgc-media-hover-switch
  .sgc-media-hover-switch__view-container-content--horizontal {
  padding-block-end: 56.25%;
}

.sgc-media-hover-switch .sgc-media-hover-switch__view-container-content-video {
  position: absolute;
  width: 100%;
  height: 100%;
}

.sgc-media-hover-switch
  .sgc-media-hover-switch__view-container-content-video
  video,
.sgc-media-hover-switch
  .sgc-media-hover-switch__view-container-content-video
  iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sgc-media-hover-switch .sgc-media-hover-switch__view-container--active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in 0.2s ease-in-out;
}
