:root {
    font-size: 5.208333vw;
}

* {
    box-sizing: border-box;
}

@font-face {
    font-family: 'Poppins';
    src: url('../ttf/poppins-regular.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: Poppins;
    font-size: 0.16rem;
    line-height: 1.5;
    /* 主题色 */
    --Color: #002E73;
    /* header高度 */
    --header-height: 2rem;
    /* 小屏header高度 */
    --header-height-middle: 2rem;
    /* 移动端header高度 */
    --header-height-mobile: 1.4rem;
}

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
}

h1 {
    font-size: 0.6rem;
}

h2 {
    font-size: 0.34rem;
    font-weight: 600;
}

h3 {
    font-size: 0.24rem;
}

h4 {
    font-size: 0.2rem;
}

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;
}

/* 单选框样式 */
input[type="checkbox"] {
    position: relative;
    width: 0.1rem;
    height: 0.1rem;
    line-height: 0.1rem;
    border: 1px solid #D2D2D1;
    border-radius: 0.02rem;
  /* 取消默认样式 */
    -webkit-appearance: none;
}

/* 设置选中样式 */
input[type="checkbox"]:checked {
  background-color: var(--Color);
  border: 1px solid var(--Color);
}

input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 0;
  width: 0.08rem;
  height: 0.08rem;
  color: var(--Color);
  text-align: center;
  background: url("../png/i-checked.png") no-repeat;    
  background-size: 100%;
}


/* 按钮样式 */
.btn-primary-plain{
    border: 1px solid #C8C8C8;
    background: #fff;
    box-shadow: 0 0.02rem 0.04rem 0 rgba(0, 0, 0, 0.25) inset, 0 0.02rem 0.04rem 0 rgba(0, 0, 0, 0.25);
    color: #1D1D1B;
    font-size: 0.2rem;
    font-weight: 600;
    border-radius: 0.35rem;
    text-align: center;
}
.btn-primary-plain:hover{
    background-color: var(--Color);
    color: #fff;
    box-shadow: 0 0.02rem 0.04rem 0 rgba(255, 255, 255, 0.25), 0 0.02rem 0.04rem 0 rgba(255, 255, 255, 0.25) inset;
}
.btn-primary{
    background-color: var(--Color);
    border-radius: 0.32rem;
    border: 0.1px solid #c8c8c8;
    color: #fff;
    font-weight: 500;
    font-size: 0.18rem;
}

.btn-primary:hover{
    border: 1px solid var(--Color);
    background: #FFF;
    color: var(--Color);
}


/* 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属性 */
}

.swiper{
    --swiper-pagination-color: var(--Color);
}

/* 富文本 */
.oc-magnet-pdf-content img{
    max-width: 100%;
    width: 600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block;
}
.oc-magnet-rich-text{
    font-size: 0.2rem;
}
.oc-magnet-rich-text table{
    max-width: 100%;
    table-layout: fixed;
    word-break: break-all;
}
.oc-magnet-rich-text .oc-magnetrich-table-overflow{
    display: inline-block;
    vertical-align: top;
    overflow-y: auto;
    max-width: 100%;
}
.oc-magnet-rich-text p {
    margin: 10px 0;
    color: #666;
    overflow-wrap:anywhere;
}

.oc-magnet-rich-text h1,
.oc-magnet-rich-text h2,
.oc-magnet-rich-text h3,
.oc-magnet-rich-text h4,
.oc-magnet-rich-text h5 {
    margin: 0.2rem 0;
    color: #1D1D1B;
}

.oc-magnet-rich-text a {
    display: inline-block;
    color: var(--Color);
}

.oc-magnet-rich-text a:hover {
    text-decoration: underline;
}

.oc-magnet-rich-text strong {
    color: #000;
}
.oc-magnet-rich-text img {
    margin: 0.2rem 0;
    max-width: 100%;
}
.oc-magnet-rich-text ul ,.oc-magnet-rich-text ol{
    margin: revert;
    padding: revert;
    padding-left: 0.3rem;
}
.oc-magnet-rich-text  li {
    list-style-type: inherit;
    color: #333;
}

.oc-magnet-rich-text table,
.oc-magnet-rich-text tr td,
.oc-magnet-rich-text tr th {
    border: 1px solid var(--Color);
}

.oc-magnet-rich-text tr td,
.oc-magnet-rich-text tr th {
    padding: 0.2rem 0.1rem;
    text-align: center;
}

[v-cloak] {
    display: none;
}


.oc-magnet-inquiry_cart-btn {
    display: flex;
    width: 1.78rem;
    border-radius: 0.1rem;
    height: 0.4rem;
    cursor: pointer;
}

.oc-magnet-inquiry_cart-btn .inquiry-btn {
    width: 1.2rem;
    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-magnet-inquiry_cart-btn .inquiry-btn:hover {
    background-color: #fff;
    color: var(--Color);
}

.oc-magnet-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-magnet-inquiry_cart-btn .add-to-cart-btn:hover {
    background-color: #fff;
}

.oc-magnet-inquiry_cart-btn .add-to-cart-btn:hover svg path {
    stroke: #2F67B3;
}

.oc-magnet-inquiry_cart-btn .add-to-cart-btn svg {
    width: 0.26rem;
    height: 0.26rem;
}
.oc-magnet-mobile-main-title {
    display: none;
}

/* ipad和mobile */
@media screen and (max-width: 1025px) {
    :root {
        font-size: 13.3333vw;
    }

    h1 {
        font-size: 0.48rem;
    }

    h2 {
        font-size: 0.36rem;
    }

    h3 {
        font-size: 0.28rem;
    }

    h4 {
        font-size: 0.18rem;
    }
 
    .oc-magnet-rich-text p {
        font-size: 0.24rem;
    }
    .oc-magnet-rich-text table {
        font-size: 0.2rem;
    }

    .oc-magnet-inquiry_cart-btn {
        margin: 0 auto;
    }

    .oc-magnet-inquiry_cart-btn .inquiry-btn {
        font-size: 0.24rem;
        border-top-left-radius: 0.25rem;
        border-bottom-left-radius: 0.25rem;
    }

    .oc-magnet-inquiry_cart-btn .add-to-cart-btn {
        border-top-right-radius: 0.25rem;
        border-bottom-right-radius: 0.25rem;

    }

    .oc-magnet-inquiry_cart-btn .add-to-cart-btn svg {
        width: 0.38rem;
    }
    .mobile-none {
        display: none!important;
    }
    .oc-magnet-mobile-main-title {
        display: block;
        text-align: center;
        color: #333;
    }

    input[type="checkbox"]{
        width: 0.2rem;
        height: 0.2rem;
    }

    input[type="checkbox"]:checked::after {
        width: 0.16rem;
        height: 0.16rem;
    }
}