:root {
  --bjd-blue: #022382;
  --bjd-accent: #235ff5;
}
#c-header .c-logo .c-img-box .vi-logo {
  display: block;
  width: auto;
  height: .40rem;
}
#c-header .c-gn .ztopsearch { background-color: var(--bjd-blue); }
#c-header.c-style2 .header-contact { color: var(--bjd-blue); }

.index-banner:has(.vi-hero) {
  height: clamp(455px, 35vw, 630px);
}
.index-banner .vi-hero {
  isolation: isolate;
  background: var(--bjd-blue);
}
.index-banner .indexbannera1 .vi-hero .img {
  position: absolute;
  inset: 0 0 0 auto;
  width: 57%;
  clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%);
}
.vi-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('/static/shared/vi/diamonds-lines.png') left center / cover;
  opacity: .13;
}
.index-banner .indexbannera1 .swiper-slide.vi-hero .text {
  box-sizing: border-box;
  top: 0;
  bottom: 56px;
  left: max(6%, calc((100% - 1440px) / 2));
  width: 37%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  transform: none;
  color: #fff;
  text-align: left;
  font-family: inherit;
}
.vi-event-title {
  font-size: clamp(30px, 3.3vw, 58px);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: .35em;
  text-wrap: balance;
}
.vi-event-detail {
  font-size: clamp(16px, 1.25vw, 22px);
  line-height: 1.45;
}
.vi-event-booth {
  border-inline-start: 3px solid #3296fa;
  padding-inline-start: .7em;
  margin-top: .7em;
  font-size: clamp(17px, 1.45vw, 24px);
  font-weight: 700;
  line-height: 1.25;
}
.index-banner .indexbannera1 .swiper-slide.vi-hero .text .public-btn0 { margin-top: 18px; }
.index-banner .vi-hero .public-btn {
  background-color: white;
  color: var(--bjd-blue);
}
.index-banner .vi-hero .public-btn .pbtncn1 { color: var(--bjd-blue); }
.index-banner .vi-hero .public-btn .pbtncn2 svg path { fill: var(--bjd-blue); }
.index-banner .indexbannera1:has(.vi-hero) .swiperpagination123 {
  bottom: 10px;
  left: max(6%, calc((100% - 1440px) / 2));
  width: 37%;
  justify-content: flex-start;
}
.index-banner .indexbannera1:has(.vi-hero) .swiperpagination123 .swiper-pagination-bullet {
  width: min(145px, 30%);
}
.index-banner .indexbannera1:has(.vi-hero) .swiperpagination123 .swiper-pagination-bullet .pagecanshu1 {
  opacity: .85;
  font-size: 12px;
  line-height: 1.2;
  height: 2.4em;
  overflow-wrap: normal;
}
.vi-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  margin: 18px 0;
  padding: 12px 0;
  border-block: 1px solid #dae1ed;
}
.vi-highlights dt { color: #505865; font-size: 14px; line-height: 1.5; }
.vi-highlights dd { color: var(--bjd-blue); font-weight: 700; font-size: 22px; line-height: 1.25; }
.vi-series .public-btn:focus-visible, .vi-hero a:focus-visible, #c-header .c-logo:focus-visible {
  outline: 3px solid var(--bjd-accent);
  outline-offset: 3px;
}
.vi-series .public-btn0 .public-btn { background: var(--bjd-blue); }
.vi-series .public-btn0 .contactbtn { background: white; box-shadow: inset 0 0 0 1px var(--bjd-blue); }
.vi-series .public-btn0 .contactbtn .pbtncn1 { color: var(--bjd-blue); }
.vi-series .public-btn0 .contactbtn .pbtncn2 svg path { fill: var(--bjd-blue); }
@media (max-width: 767px) {
  .index-banner:has(.vi-hero) { height: clamp(475px, 103vw, 550px); }
  .index-banner .indexbannera1 .vi-hero .img {
    inset: 0 0 auto;
    width: 100%;
    height: 32%;
    clip-path: polygon(0 0, 100% 0, 100% 76%, 0 100%);
  }
  .index-banner .indexbannera1 .swiper-slide.vi-hero .text {
    inset: 32% 6% 54px;
    width: auto;
  }
  .vi-event-title { font-size: clamp(25px, 6.9vw, 36px); }
  .vi-event-detail { font-size: 15px; }
  .vi-event-booth { margin-top: .5em; font-size: 17px; }
  .index-banner .indexbannera1 .swiper-slide.vi-hero .text .public-btn0 { margin-top: 12px; }
  .index-banner .indexbannera1:has(.vi-hero) .swiperpagination123 {
    left: 5%;
    width: 90%;
  }
  .vi-highlights { gap: 12px 18px; }
}

/* Chinese pages load the HarmonyOS Sans SC subsets in a separate stylesheet. */
@font-face {
  font-family: "BJD Harmony";
  src: local("HarmonyOS Sans"), local("HarmonyOS_Sans"), local("HarmonyOS Sans Regular"), url("../vi/fonts/HarmonyOS_Sans_Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "BJD Harmony";
  src: local("HarmonyOS Sans Bold"), local("HarmonyOS_Sans_Bold"), url("../vi/fonts/HarmonyOS_Sans_Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
:root {
  --color: var(--bjd-blue);
  --bjd-type: "BJD Harmony", Arial, sans-serif;
  --bjd-heading: var(--bjd-type);
}
:root:lang(zh) {
  --bjd-type: "BJD Harmony", "BJD Harmony SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --bjd-heading: "DingTalk JinBuTi", "DingTalk JinBuTi Regular", "钉钉进步体", var(--bjd-type);
}
:root:lang(ja) {
  --bjd-type: "BJD Harmony", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, "Noto Sans CJK JP", sans-serif;
}
body, .fontdin, .font-sam { font-family: var(--bjd-type); }
.vi-event-title, .x-banner h1, .index-product h2, .index-case h2, .index-news h2 {
  font-family: var(--bjd-heading);
  overflow-wrap: break-word;
}
.vi-highlights > div { min-width: 0; max-width: 100%; }
.vi-highlights dt, .vi-highlights dd { overflow-wrap: anywhere; }
.vi-highlights dd { font-size: clamp(17px, 1.55vw, 23px); }
.product-series-link, .product-series-link:hover, .product-series-parameter-link,
.bjd-pair-models a, .bjd-download-card__file { color: var(--bjd-accent); }
.x-pro-ser2 .container .x-xia .x-le ul li .x-dl p.on i,
.x-down1 .container .x-xia .x-le ul li.on .x-tbox::before {
  background-color: var(--bjd-accent);
}
.index-banner .vi-solution::before { opacity: .22; }
.index-banner .vi-solution .vi-event-detail { max-width: 36ch; text-wrap: pretty; }

.vi-split-banner, .vi-download {
  isolation: isolate;
  color: white;
  background: var(--bjd-blue);
}
.vi-split-banner::before, .vi-download::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .13;
  background: url("../vi/diamonds-lines.png") center / cover;
}
.vi-split-banner .x-con, .vi-download .x-con {
  display: grid;
  align-items: center;
  position: relative;
  min-height: clamp(260px, 24vw, 390px);
  padding-block: 64px 44px;
}
.vi-split-banner .x-con .container, .vi-download .x-con .container {
  position: relative;
  inset: auto;
  transform: none;
  text-align: start;
}
.vi-split-banner .x-con .container .x-p, .vi-download .x-con .container .x-p {
  text-align: start;
  margin-top: .5em;
}
.vi-split-banner .x-con .container > * { max-width: 44%; }
.vi-banner-photo {
  position: absolute;
  inset: 0 0 0 auto;
  width: 53%;
  clip-path: polygon(13% 0, 100% 0, 100% 100%, 0 100%);
}
.vi-banner-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vi-split-banner .x-mbx, .vi-download .x-mbx { z-index: 7; }
.vi-download .x-con { min-height: 160px; padding-block: 54px 28px; }
.vi-download + .x-down1 { padding-top: clamp(24px, 3vw, 46px); }
@media (max-width: 767px) {
  .vi-split-banner .x-con { padding: 0; display: flex; flex-direction: column-reverse; align-items: stretch; }
  .vi-split-banner .x-con .container { padding-block: 56px 22px; }
  .vi-split-banner .x-con .container > * { max-width: none; }
  .vi-banner-photo { position: relative; width: 100%; height: clamp(135px, 38vw, 230px); clip-path: none; }
  .vi-download .x-con { min-height: 130px; padding-block: 48px 18px; }
  .vi-download + .x-down1 { padding-top: 20px; }
}

/* Give document names the space left by the icon and independent download link. */
.x-down1 .container .x-xia .x-ri ul li .bjd-download-card__detail .x-title2 {
  flex: 1;
  min-width: 0;
  width: auto;
}
@media (max-width: 767px) {
  .x-down1 .container .x-xia .x-ri ul li .bjd-download-card__detail .x-title2 h3 {
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.35;
  }
}

.vi-split-banner .x-con .container .x-title {
  color: white;
  font-size: clamp(30px, 3.1vw, 52px);
  line-height: 1.15;
}
.vi-split-banner .x-con .container .x-p {
  color: white;
  font-size: clamp(16px, 1.35vw, 21px);
  line-height: 1.55;
}
.vi-split-banner .x-con .public-btn0 { justify-content: flex-start; }
.vi-split-banner .x-con .public-btn {
  background: white;
  color: var(--bjd-blue);
}
.vi-split-banner .public-btn .pbtncn1 { color: var(--bjd-blue); }
.vi-split-banner .public-btn .pbtncn2 svg path { fill: var(--bjd-blue); }
.vi-split-banner :focus-visible { outline: 3px solid white; outline-offset: 3px; }

.news-scope-filter, .news-tag-filter, .news-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.news-scope-filter { margin-bottom: 10px; }
:is(.news-scope-filter, .news-tag-filter) a {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border: 1px solid #e1e5ee;
  border-radius: 20px;
  color: #34445c;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
:is(.news-scope-filter, .news-tag-filter) a:is(.on, :hover) {
  background: var(--bjd-blue);
  border-color: var(--bjd-blue);
  color: white;
}
:is(.news-scope-filter, .news-tag-filter) a:focus-visible {
  outline: 3px solid var(--bjd-accent);
  outline-offset: 2px;
}
.news-card-tags { gap: 6px; margin-top: 8px; }
.news-card-tags span {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eef5ff;
  color: var(--bjd-blue);
  font-size: 12px;
  line-height: 1.4;
}
@media (max-width: 768px) {
  .x-news2 .container { gap: 12px; }
  .news-scope-filter, .news-tag-filter { width: 100%; }
  :is(.news-scope-filter, .news-tag-filter) a { height: 34px; padding: 0 12px; font-size: 13px; }
}

/* Keep searchable, selectable text, including when the artwork is unavailable. */
.vi-lettering, .vi-heading-text { font-family: var(--bjd-heading); }
.vi-lettering > img { display: none; }
@supports (mask-image: url("")) {
  @media screen and (forced-colors: none) {
    .vi-lettering-ready {
      display: inline-block;
      position: relative;
      max-width: 100%;
      vertical-align: middle;
    }
    .vi-lettering-ready > img {
      display: block;
      width: auto;
      max-width: 100%;
      height: 1em;
      object-fit: contain;
      opacity: 0;
    }
    .vi-lettering-ready > span {
      position: absolute;
      inset: 0;
      opacity: 0;
      overflow: hidden;
    }
    .vi-lettering-ready::after {
      content: "";
      position: absolute;
      inset: 0;
      background: currentColor;
      mask: var(--vi-lettering) center / contain no-repeat;
      pointer-events: none;
    }
  }
}

.contact-windows .container .left {
  padding-inline: max(.4rem, 28px);
  padding-block: max(.6rem, 28px);
  background: var(--bjd-blue);
}
.vi-contact-logo {
  display: block;
  width: clamp(96px, 9.4vw, 135px);
  height: auto;
}
.cookie-consent { background: var(--bjd-blue); }
.cookie-consent button:last-child { color: var(--bjd-blue); }
.cookie-consent button:focus-visible { outline: 2px solid white; outline-offset: 2px; }

.vi-home-news, .vi-recommendations { padding-block: clamp(36px, 5vw, 84px); }
.vi-recommendations { position: relative; }
.vi-recommendations .x-title {
  color: var(--bjd-blue);
  border-bottom: 2px solid currentColor;
  padding-bottom: 14px;
  margin-bottom: 22px;
}
.vi-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 36px);
}
.vi-news-grid a { display: block; color: #172b4b; }
.vi-news-feature > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #f1f4f9;
}
.vi-news-feature > img + .vi-news-date { margin-top: 14px; }
.vi-news-date { color: #495a70; font-size: 14px; line-height: 1.5; }
.vi-news-grid h3 { margin-top: 5px; font-size: clamp(17px, 1.45vw, 23px); line-height: 1.35; overflow-wrap: anywhere; }
.vi-news-list > a { border-top: 1px solid #ccd5e1; padding: 12px 0; }
.vi-news-list > a:first-child { padding-top: 0; border-top: 0; }
.vi-home-news a:is(:hover, :focus-visible) h3 { color: var(--bjd-blue); text-decoration: underline; }
.vi-home-news a:focus-visible, .home-category-card:focus-visible { outline: 3px solid var(--bjd-accent); outline-offset: 3px; }

.vi-search-products .home-category-grid { margin-top: 24px; }
.vi-search-products .home-category-card { position: relative; }
.vi-search-products li.search-result-card > a .search-result-type {
  position: absolute;
  inset: 8px auto auto 8px;
  z-index: 1;
  padding: 3px 8px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
}
.vi-search-products .search-result-type--series { background: var(--bjd-blue); color: white; }
.vi-search-products .search-result-type--product { background: white; color: var(--bjd-blue); border: 1px solid #b7c8e3; }
:is(.vi-search-products, .vi-recommendations) .home-category-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.x-join1 .container ul li .x-le .x-p { white-space: normal; overflow-wrap: anywhere; line-height: 1.45; }
.x-join1 .container ul li .x-le { min-width: 0; }

.vi-error-page {
  margin: 0;
  min-height: 100vh;
  display: grid;
  align-items: center;
  background: #f3f6fa;
  color: #172b4b;
}
.vi-error-page main { width: min(88%, 44rem); margin: 2rem auto; }
.vi-error-page img { display: block; margin-bottom: clamp(30px, 6vw, 72px); }
.vi-error-page h1 { margin: 0; border-top: 3px solid; padding-top: 20px; color: var(--bjd-blue); font-size: clamp(29px, 5vw, 56px); line-height: 1.2; }
.vi-error-page p { margin: 1rem 0 2rem; font-size: 18px; line-height: 1.55; }
.vi-error-page a { display: inline-block; padding: 12px 24px; background: var(--bjd-blue); color: white; font-weight: 700; text-decoration: none; }
.vi-error-page a:focus-visible { outline: 3px solid var(--bjd-accent); outline-offset: 4px; }

@media (max-width: 639px) {
  .vi-home-news .home-category-header { margin-bottom: 16px; }
  .vi-news-grid { grid-template-columns: 1fr; gap: 18px; }
  .vi-news-feature:has(> img) { display: grid; grid-template-columns: 30% minmax(0, 1fr); column-gap: 14px; align-content: start; }
  .vi-news-feature > img { grid-row: span 2; aspect-ratio: 4 / 3; }
  .vi-news-feature > img + .vi-news-date { margin-top: 0; }
  .vi-search-products li.search-result-card > a .search-result-type {
    position: static;
    grid-area: 1 / 2;
    justify-self: start;
    align-self: end;
  }
  .vi-search-products .home-category-card { row-gap: 3px; }
  .vi-search-products .home-category-image { grid-area: 1 / 1 / 3 / 2; }
  .vi-search-products .home-category-content { grid-area: 2 / 2; align-self: start; }
}

.x-pro-ser1 .vi-split-banner .x-con .container { max-width: 1400px; }
.x-pro-ser1 .vi-split-banner .x-con .container .x-p {
  max-width: 44%;
  display: block;
  overflow: visible;
  font-size: clamp(16px, 1.35vw, 21px);
  line-height: 1.55;
}
@media (max-width: 767px) {
  .x-pro-ser1 .vi-split-banner .x-con .container .x-p { max-width: none; }
}
@media (min-width: 992px) {
  .x-pro-ser2 .container .x-xia:has(> .x-as) > .x-ri { flex-shrink: 1; min-width: 0; }
}
