:root {
  color-scheme: light;
  --primary-red: #d7000f;
  --primary-red-hover: #b9000d;
  --primary-red-soft: rgba(215, 0, 15, 0.08);
  --text-main: #101010;
  --text-body: #666666;
  --text-tab: #1a0404;
  --text-card: #14363f;
  --line-soft: #dddddd;
  --surface-white: #ffffff;
  --surface-soft: #fbfbfb;
  --container-wide: min(1640px, calc(100vw - 280px));
  --font-base: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  --font-number: "Outfit", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--surface-white);
  color: var(--text-main);
  font-family: var(--font-base);
}

img {
  display: block;
  max-width: 100%;
}

.service-video-page {
  width: 100%;
  overflow: hidden;
  background: var(--surface-white);
}

.service-video-page .motion-page-fade,
.service-video-page .motion-soft-reveal,
.service-video-page .motion-media-reveal {
  animation: none;
}

.service-video-page a {
  color: inherit;
  text-decoration: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.service-video-page a:hover,
.service-video-page a:focus,
.service-video-page a:active,
.service-video-page a:visited {
  /* color: inherit; */
  text-decoration: none;
  outline: none;
}

.service-container {
  width: var(--container-wide);
  margin: 0 auto;
}

.support-hero {
  height: 545px;
  background: var(--surface-soft);
}

.support-hero__inner {
  position: relative;
  height: 100%;
}

.support-hero__heading {
  position: absolute;
  top: 104px;
  left: 19px;
}

.section-kicker {
  position: relative;
  top: -1px;
  margin: 0 0 24px;
  color: var(--primary-red);
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: 0;
}

.support-hero h1 {
  margin: 0;
  color: var(--text-main);
  font-size: 68px;
  line-height: 1.32;
  font-weight: 400;
  letter-spacing: 0;
}

.support-hero__copy {
  position: absolute;
  top: 175px;
  left: 992px;
  width: 667px;
  color: var(--text-body);
  font-size: 16px;
  line-height: 32px;
  font-weight: 400;
  letter-spacing: 0;
}

.support-hero__copy p {
  margin: 0;
}

.support-hero__copy p + p {
  margin-top: 0;
}

.support-tabs {
  position: absolute;
  left: 19px;
  bottom: 85px;
  display: inline-flex;
  align-items: center;
  height: 51px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--primary-red-soft);
}

.support-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 79px;
  height: 33px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--text-main);
  font-size: 14px;
  line-height: 33px;
  font-weight: 700;
  letter-spacing: 0;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.support-tab + .support-tab {
  margin-left: 6px;
}

.support-tab.is-active,
.support-tab:hover,
.support-tab:focus {
  background: var(--primary-red);
  color: #ffffff;
}



.video-zone {
  min-height: 1749px;
  padding-top: 82px;
  padding-bottom: 92px;
  background: var(--surface-white);
}

.video-zone__title {
  position: relative;
  top: -7px;
  margin: 0;
  color: var(--text-main);
  font-size: 42px;
  line-height: 92px;
  font-weight: 400;
  text-align: center;
  letter-spacing: 0;
}

.video-category-bar {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  width: 936px;
  max-width: 100%;
  height: 113px;
  margin: 14px auto 0;
  gap: 8px;
}

.video-category-bar::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  width: var(--container-wide);
  max-width: calc(100vw - 24px);
  height: 1px;
  background: var(--line-soft);
  transform: translateX(-50%);
}

.video-category {
  position: relative;
  top: 7px;
  width: max-content;
  min-width: 86px;
  height: 86px;
  margin: 0 auto;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: var(--text-tab);
  font-family: var(--font-base);
  font-size: 14px;
  line-height: 86px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  letter-spacing: 0;
}

.video-category::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 21px;
  width: 46px;
  height: 4px;
  border-radius: 999px;
  background: var(--primary-red);
  opacity: 0;
  transform: translateX(-50%);
}

.video-category.is-active::after {
  opacity: 1;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 528px));
  justify-content: space-between;
  row-gap: 66px;
  margin-top: 52px;
}

.video-card {
  position: relative;
  width: 528px;
  min-width: 0;
}

.video-card:nth-child(n + 4):nth-child(-n + 6) {
  top: -10px;
}

.video-card:nth-child(n + 7) {
  top: -2px;
}

.video-cover {
  position: relative;
  display: block;
  width: 528px;
  height: 280px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #111;
  cursor: pointer;
  appearance: none;
}

.video-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  transition: opacity 0.28s ease;
}

.video-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.video-cover:hover img,
.video-cover:focus img {
  transform: scale(1.035);
}

.video-cover:hover::after,
.video-cover:focus::after {
  opacity: 0.78;
}

.play-button {
  position: absolute;
  left: 15px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-red);
  opacity: 1;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  transform: translate(0, 0) scale(1);
  transition:
    left 0.42s cubic-bezier(0.2, 0.8, 0.2, 1),
    bottom 0.42s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.18s ease,
    transform 0.42s cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 0.28s ease;
}

.play-button::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 16px solid #fff;
}

.video-cover:hover .play-button,
.video-cover:focus .play-button {
  left: 50%;
  bottom: 50%;
  opacity: 1;
  background: var(--primary-red-hover);
  transform: translate(-50%, 50%) scale(1.18);
}

.video-card h3 {
  margin: 18px 0 0;
  color: var(--text-card);
  font-size: 14px;
  line-height: 32px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0;
}

.video-card:nth-child(n + 4):nth-child(-n + 6) h3 {
  position: relative;
  top: 17px;
}

.video-card:nth-child(n + 7) h3 {
  position: relative;
  top: 7px;
}

.video-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 90px;
}

/* 分页 */

.case-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border: 1px solid #eeeeee;
  border-radius: 50%;
  background: #fff;
  color: #333333;
  font-family: var(--font-number);
  font-size: 15px;
  line-height: 1;
  font-weight: 400;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.case-pagination a.active,
.case-pagination a:hover,
.case-pagination a:focus {
  border-color: var(--primary-red);
  background: var(--primary-red);
  color: #fff;
}

.case-pagination .pager-arrow {
  color: #999999;
}

.case-pagination .pager-arrow .iconfont {
  font-size: 20px;
  line-height: 1;
}

.video-modal-open,
.video-modal-open body {
  overflow: hidden;
}

.shared-video-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.shared-video-modal.is-open {
  display: flex;
}

.shared-video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.shared-video-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  overflow: hidden;
  border-radius: 20px;
  background: #000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  padding: 40px 20px 10px;
}

.shared-video-modal__video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.shared-video-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #111;
  font-size: 24px;
  line-height: 36px;
  text-align: center;
  cursor: pointer;
}

@media (max-width: 1500px) {
  :root {
    --container-wide: min(1180px, calc(100vw - 80px));
  }

  .support-hero {
    height: auto;
    min-height: 490px;
  }

  .support-hero__heading,
  .support-hero__copy,
  .support-tabs {
    left: 0;
  }

  .support-hero__copy {
    left: auto;
    right: 0;
    width: min(560px, 47%);
  }

  .support-hero h1 {
    font-size: 58px;
    line-height: 78px;
  }

  .video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 28px;
  }

  .video-card,
  .video-cover {
    width: 100%;
  }

  .video-cover {
    height: auto;
    aspect-ratio: 528 / 280;
  }
}

@media (max-width: 1100px) {
  :root {
    --container-wide: calc(100vw - 64px);
  }

  .support-hero {
    min-height: 0;
    padding: 70px 0 72px;
  }

  .support-hero__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 34px;
    height: auto;
  }

  .support-hero__heading,
  .support-hero__copy,
  .support-tabs {
    position: static;
  }

  .support-hero__copy {
    width: min(720px, 100%);
  }

  .support-tabs {
    width: max-content;
    max-width: 100%;
  }

  .video-zone {
    padding-top: 62px;
  }

  .video-category-bar {
    grid-template-columns: repeat(5, max-content);
    justify-content: space-between;
    overflow-x: auto;
    gap: 24px;
    height: 100px;
  }

  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 48px;
  }
}

@media (max-width: 768px) {
  :root {
    --container-wide: calc(100vw - 30px);
  }

  .support-hero {
    padding: 54px 0 58px;
  }

  .section-kicker {
    margin-bottom: 22px;
  }

  .support-hero h1 {
    font-size: 40px;
    line-height: 1.25;
  }

  .support-hero__copy {
    font-size: 14px;
    line-height: 26px;
  }

  .support-tabs {
    height: auto;
    padding: 8px;
    flex-wrap: wrap;
    border-radius: 18px;
  }

  .support-tab {
    min-width: 76px;
  }

  .video-zone {
    padding-top: 48px;
    padding-bottom: 64px;
  }

  .video-zone__title {
    font-size: 34px;
    line-height: 52px;
  }

  .video-category-bar {
    margin-top: 24px;
  }

  .video-grid {
    grid-template-columns: 1fr;
    row-gap: 38px;
    margin-top: 32px;
  }

  .video-card h3 {
    margin-top: 12px;
  }

  .video-pagination {
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 48px;
  }

  .case-pagination a {
    width: 42px;
    height: 42px;
    font-size: 14px;
  }
}

@media (max-width: 520px) {
  :root {
    --container-wide: calc(100vw - 24px);
  }

  .support-hero h1 {
    font-size: 32px;
  }

  .support-tabs {
    width: 100%;
  }

  .support-tab {
    flex: 1 1 calc(33.333% - 4px);
    padding: 0 8px;
    font-size: 13px;
  }

  .video-category-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px 8px;
    height: auto;
    padding: 18px 0 8px;
    overflow-x: visible;
  }

  .video-category {
    width: 100%;
    min-width: 0;
    height: 50px;
    padding: 0 8px;
    line-height: 50px;
  }

  .video-category::after {
    bottom: 5px;
  }

  .play-button {
    width: 42px;
    height: 42px;
    left: 12px;
    bottom: 18px;
  }

  .play-button::before {
    border-top-width: 10px;
    border-bottom-width: 10px;
    border-left-width: 14px;
  }
}
