:root {
  font-size: 5.208333vw;
  font-display: swap;
}

::-webkit-scrollbar {
  width: 0.06rem;
  height: 0.06rem;
  margin-right: 2px;
}

::-webkit-scrollbar-track {
  background: #f5f7fa;
  border-radius: 0.04rem;
  margin-right: 2px;
}

::-webkit-scrollbar-thumb {
  background-color: #d1d5db;
  border-radius: 0.04rem;
  width: 0.06rem;
}

* {
  box-sizing: border-box;
}

@font-face {
  font-family: 'NunitoSans';
  src: url('../fonts/nunitosans.ttf');
  font-display: swap;
}

body,
ol,
ul,
h1,
h2,
h3,
h4,
h5,
h6,
p,
th,
td,
dl,
dd,
form,
fieldset,
legend,
input,
textarea,
select {
  margin: 0;
  padding: 0;
}

body {
  font-family: NunitoSans;
  font-size: 0.16rem;
  line-height: 1.5;
  /* 主题色 */
  --Color: #2f67b3;
  /* header高度 */
  --header-height: 1.17rem;
  /* 小屏header高度 */
  --header-height-middle: 1.62rem;
  /* 移动端header高度 */
  --header-height-mobile: 2.4rem;
  position: relative;
}

a {
  text-decoration: none;
}

em {
  font-style: normal;
}

li {
  list-style: none;
}

img {
  border: 0;
  vertical-align: middle;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  border: 0 !important;
}

h1 {
  font-size: max(0.48em, 48px);
}

h2 {
  font-size: max(0.36rem, 36px);
}

h3 {
  font-size: max(0.28rem, 28px);
}

h4 {
  font-size: max(0.22rem, 22px);
}

input {
  outline: none;
}

a {
  display: block;
}

a img {
  display: block;
}

input {
  background: none;
  outline: none;
  border: none;
}

button {
  margin: 0;
  padding: 0;
  outline: none;
  border: none;
  background-color: #fff;
  cursor: pointer;
}
/* 1行显示省略号 */
.text-ellipsis-1 {
  white-space: nowrap; /* 不换行 */
  overflow: hidden; /* 控制内容不超出容器边界 */
  text-overflow: ellipsis; /* 显示省略号 */
}

/* 2行显示省略号 */
.text-ellipsis-2 {
  display: -webkit-box; /* 必须指定display属性 */
  overflow: hidden; /* 必须指定overflow属性 */
  text-overflow: ellipsis; /* 显示省略号 */
  -webkit-line-clamp: 2; /* 最多显示的行数 */
  -webkit-box-orient: vertical; /* 必须指定box-orient属性 */
}

/* 3行显示省略号 */
.text-ellipsis-3 {
  display: -webkit-box; /* 必须指定display属性 */
  overflow: hidden; /* 必须指定overflow属性 */
  text-overflow: ellipsis; /* 显示省略号 */
  -webkit-line-clamp: 3; /* 最多显示的行数 */
  -webkit-box-orient: vertical; /* 必须指定box-orient属性 */
}
/* 4行显示省略号 */
.text-ellipsis-4 {
  display: -webkit-box; /* 必须指定display属性 */
  overflow: hidden; /* 必须指定overflow属性 */
  text-overflow: ellipsis; /* 显示省略号 */
  -webkit-line-clamp: 4; /* 最多显示的行数 */
  -webkit-box-orient: vertical; /* 必须指定box-orient属性 */
}
/* 5行显示省略号 */
.text-ellipsis-5 {
  display: -webkit-box; /* 必须指定display属性 */
  overflow: hidden; /* 必须指定overflow属性 */
  text-overflow: ellipsis; /* 显示省略号 */
  -webkit-line-clamp: 5; /* 最多显示的行数 */
  -webkit-box-orient: vertical; /* 必须指定box-orient属性 */
}
/* 富文本 */
.oc-main-sam-rich-text {
  overflow-x: auto;
}

.oc-main-sam-rich-text bold,
.oc-main-sam-rich-text strong {
  font-size: max(0.18rem, 18px);
  line-height: max(0.27rem, 27px);
}

.oc-main-sam-rich-text p {
  margin: 10px 0 !important;
  color: #666;
  text-indent: 0 !important;
}

.oc-main-sam-rich-text h1,
.oc-main-sam-rich-text h2,
.oc-main-sam-rich-text h3,
.oc-main-sam-rich-text h4,
.oc-main-sam-rich-text h5 {
  margin: 0.2rem 0;
  color: #333;
}

.oc-main-sam-rich-text h1 {
  font-size: max(0.48rem, 48px);
  line-height: max(0.5rem, 50px);
}
.oc-main-sam-rich-text h2 {
  font-size: max(0.36rem, 36px);
  line-height: max(0.42rem, 42px);
}
.oc-main-sam-rich-text h3 {
  font-size: max(0.28rem, 28px);
  line-height: max(0.34rem, 34px);
}

.oc-main-sam-rich-text h4 {
  font-size: max(0.22rem, 22px);
  line-height: max(0.32rem, 32px);
}

.oc-main-sam-rich-text p {
  font-size: max(0.18rem, 18px);
  line-height: max(0.27rem, 27px);
}

.oc-main-sam-rich-text a {
  display: inline-block;
  color: var(--Color);
  word-break: break-all;
}

.oc-main-sam-rich-text a:hover {
  text-decoration: underline;
}

.oc-main-sam-rich-text a strong {
  color: #2f67b3;
}
.oc-main-sam-rich-text img {
  margin: 0.2rem 0;
  max-width: 100%;
}
.oc-main-sam-rich-text ul,
.oc-main-sam-rich-text ol {
  margin: revert;
  padding: revert;
  padding-left: 0.4rem;
  font-size: max(0.18rem, 18px);
}
.oc-main-sam-rich-text li {
  list-style-type: inherit;
  color: #333;
}

.oc-main-sam-rich-text table {
  width: 100%;
}

.oc-main-sam-rich-text table,
.oc-main-sam-rich-text tr td,
.oc-main-sam-rich-text tr th {
  border-top: 1px solid #e5e7eb !important;
  border-bottom: 1px solid #e5e7eb !important;
}

.oc-main-sam-rich-text table {
  border-collapse: collapse;
  border: none !important;
}

/* .oc-main-sam-rich-text table thead {
  background-color: #ffff;
} */

/* 奇数行背景色（第二行、第四行…） */
.oc-main-sam-rich-text table tbody tr:nth-child(odd) {
  background-color: #ffff; /* 你想要的颜色 */
}

/* 偶数行背景色（第三行、第五行…） */
.oc-main-sam-rich-text table tbody tr:nth-child(even) {
  background-color: #f5f7fa; /* 你想要的颜色 */
}

/* 第一行是表头，如果是 th 可以单独设置颜色 */
/* .oc-main-sam-rich-text tbody table tr:first-child {
  background-color: #e5e7eb;
} */

.oc-main-sam-rich-text table td:first-child,
.oc-main-sam-rich-text table th:first-child {
  color: #1d2633;
  font-size: max(0.18rem, 18px);
  font-weight: 700;
}

.oc-main-sam-rich-text tr td {
  color: #565f6b;
}

.oc-main-sam-rich-text tr td,
.oc-main-sam-rich-text tr th {
  padding: 0.16rem 0.17rem;
  text-align: left;
  border: none;
}

[v-cloak] {
  display: none;
}

.oc-main-sam-inquiry_cart-btn {
  display: flex;
  width: fit-content;
  border-radius: 0.1rem;
  height: 0.4rem;
  cursor: pointer;
}

.oc-main-sam-inquiry_cart-btn .inquiry-btn {
  min-width: 1.2rem;
  padding: 0 0.2rem;
  width: fit-content;
  height: 100%;
  color: #fff;
  font-size: max(0.16rem, 14px);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--Color);
  border-top-left-radius: 0.1rem;
  border-bottom-left-radius: 0.1rem;
  border: 1px solid #2f67b3;
  border-right: none;
}

.oc-main-sam-inquiry_cart-btn .inquiry-btn:hover {
  background-color: #fff;
  color: var(--Color);
}

.oc-main-sam-inquiry_cart-btn .add-to-cart-btn {
  width: 0.58rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #3882d4;
  border-top-right-radius: 0.1rem;
  border-bottom-right-radius: 0.1rem;
  border: 1px solid #3882d4;
}

.oc-main-sam-inquiry_cart-btn .add-to-cart-btn:hover {
  background-color: #fff;
}
.oc-main-sam-inquiry_cart-btn .add-to-cart-btn a{
  color:#fff;
}

.oc-main-sam-inquiry_cart-btn .add-to-cart-btn:hover a{
  color:#2f67b3;
}

.oc-main-sam-inquiry_cart-btn .add-to-cart-btn:hover svg path {
  stroke: #2f67b3;
}

.oc-main-sam-inquiry_cart-btn .add-to-cart-btn svg {
  width: 0.26rem;
  height: 0.26rem;
}
.oc-main-sam-mobile-main-title {
  display: none;
}
.oc-sam-hide {
  display: none;
}
p a {
  display: inline-block;
}
.sam-table-wrapper {
  overflow-x: auto;
}
.icon {
  width: 1em;
  height: 1em;
}
/* loading图标动画 */

/* loading */
.loading-wrapper {
  display: block;
  position: absolute;
  inset: 0;
  background-color: #ffffff7d;
  display: flex;
  font-size: 40px;
  align-items: center;
  justify-content: center;
}
.loading-wrapper .icon-loading {
  width: 1em;
  height: 1em;
  animation: rotating 2s linear infinite;
  margin-right: 0.05rem;
}
@keyframes rotating {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(1turn);
  }
}
/* pc */
@media screen and (min-width: 1026px) {
  .show-mobile {
    display: none !important;
  }
}
/* 小屏pc */
@media screen and (max-width: 1400px) {
  body {
    --header-height: 1.6rem;
  }

  .oc-main-sam-rich-text p {
    font-size: max(0.18rem, 18px);
    line-height: max(0.27rem, 27px);
  }
  .oc-main-sam-rich-text ul li {
    font-size: 16px;
  }
  .oc-main-sam-rich-text ol li {
    font-size: 16px;
  }
  .oc-main-sam-rich-text li {
    font-size: 16px;
  }
  /* h1 {
        font-size: 48px;
    }

    h2 {
        font-size: 36px;
    }

    h3 {
        font-size: 28px;
    }

    h4 {
        font-size: 18px;
    } */

  .oc-main-sam-inquiry_cart-btn {
    height: 0.55rem;
    /* width: 2.2rem; */
  }

  .oc-main-sam-inquiry_cart-btn .inquiry-btn {
    /* width: 1.52rem; */
  }

  .oc-main-sam-inquiry_cart-btn .add-to-cart-btn {
    width: 0.68rem;
  }
  .oc-main-sam-rich-text table {
    font-size: 16px;
  }
  .oc-main-sam-inquiry_cart-btn .add-to-cart-btn svg {
    width: 0.32rem;
    height: 0.32rem;
  }
}

/* ipad和mobile */
@media screen and (max-width: 1025px) {
  :root {
    font-size: 13.3333vw;
  }
  .show-pc {
    display: none !important;
  }

  h1 {
    font-size: 0.48rem;
  }

  h2 {
    font-size: 0.36rem;
  }

  h3 {
    font-size: 0.28rem;
  }

  h4 {
    font-size: 0.18rem;
  }

  .oc-main-sam-rich-text h1 {
    font-size: max(0.32rem, 32px);
    line-height: max(0.8rem, 40px);
    font-weight: 900;
  }
  .oc-main-sam-rich-text h2 {
    font-size: max(0.26rem, 26px);
    line-height: max(0.676rem, 33.8px);
    font-weight: 700;
  }
  .oc-main-sam-rich-text h3 {
    font-size: max(0.22rem, 22px);
    line-height: max(0.572rem, 28.6px);
    font-weight: 700;
  }

  .oc-main-sam-rich-text h4 {
    font-size: max(0.2rem, 20px);
    line-height: max(0.56rem, 28px);
    font-weight: 700;
  }

  .oc-main-sam-rich-text p {
    font-size: max(0.18rem, 18px);
    line-height: max(0.27rem, 27px);
  }

  .oc-main-sam-rich-text p {
    font-size: max(0.18rem, 18px);
    line-height: max(0.22rem, 22px);
  }
  .oc-main-sam-rich-text table {
    font-size: 0.2rem;
  }

  .oc-main-sam-inquiry_cart-btn {
    margin: 0 auto;
  }

  .oc-main-sam-inquiry_cart-btn .inquiry-btn {
    font-size: 0.24rem;
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
  }

  .oc-main-sam-inquiry_cart-btn .add-to-cart-btn {
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
  }

  .oc-main-sam-inquiry_cart-btn .add-to-cart-btn svg {
    width: 0.38rem;
  }
  .mobile-none {
    display: none !important;
  }
  .oc-main-sam-mobile-main-title {
    display: block;
    text-align: center;
    color: #333;
  }
  .oc-main-sam-rich-text p iframe {
    width: 100%;
  }

  /* 表格样式 */
  .oc-main-sam-rich-text tr td,
  .oc-main-sam-rich-text tr th {
    padding: 0.32rem 0.16rem;
    font-size: max(0.16rem, 16px);
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .oc-main-sam-rich-text table td:first-child,
  .oc-main-sam-rich-text table th:first-child {
    color: #1d2633;
    font-size: max(0.16rem, 16px);
    font-weight: 700;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
  }
}
