/* variable */
:root {
    --theme-color: #f18d00;
    --lighter-theme-color: #fbe3c2;

    --primary-font-color: #3a3b3d;
    --regular-font-color: #606266;
    --secondary-font-color: #909399;
    --placeholder-font-color: #c8c8c8;

    --base-border-color: #dcdfe6;
    --light-border-color: #e4e7ed;
    --lighter-border-color: #ebeef5;

    --bg-color: #ffffff;
    --dark-bg-color: #f6f6f6;

    --short-tran: .3s ease;
}

/* nav */
.header {
    display: flex;
    align-items: center;
    max-width: 1000px;
    height: 100px;
    margin: 0 auto;
    padding: 0 10px;
    color: var(--primary-font-color);
}

.header-btn {
    display: none;
}

.header-logo {
    max-height: 90%;
}

.nav {
    flex: 1;
    display: flex;
    justify-content: space-around;
}

.nav-item {
    color: var(--primary-font-color);
    transition: var(--short-tran);
}

.nav-item:hover {
    color: var(--theme-color);
}

/* footer */
.footer {
    width: 100%;
    background: #000;
    padding: 40px 0;
    color: var(--placeholder-font-color);
    font-size: 14px;
    line-height: 2;
    overflow: hidden;
}

.footer-link {
    color: var(--placeholder-font-color);
    transition: var(--short-tran);
}

.footer-link:hover {
    color: #ffffff;
}

.img-item {
    text-align: center;
    overflow: hidden;
}

.img-item img {
    width: 100px;
}

/* home */
.carousel {
    margin-bottom: 35px;
}

.carousel-item {
    display: block;
    width: 100%;
}

.carousel-item > img {
    width: 100%;
}

.title {
    text-align: center;
    color: var(--primary-font-color);
}

.title-con {
    position: relative;
    display: inline-block;
    font-size: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--base-border-color);
}

.title-con:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -2px;
    display: block;
    width: 100px;
    height: 3px;
    background-color: var(--theme-color);
    transform: translateX(-50%);
}

.block {
    max-width: 1020px;
    padding: 0 10px;
    margin: 20px auto;
}

.product {
    width: 100%;
    padding: 20px 0;
    overflow: hidden;
}

.product-name {
    display: block;
    font-size: 20px;
    color: var(--primary-font-color);
    transition: var(--short-tran);
}

.product-name:hover {
    color: var(--theme-color);
}

.product-name::after {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: #84ccc9;
    margin: 16px 0;
}

.product-desc {
    font-size: 14px;
    line-height: 2;
    color: var(--regular-font-color);
}

.product-tag {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-content: space-around;
    height: 90px;
    font-size: 13px;
}

.product-tag-item {
    width: 34%;
    min-width: 130px;
    padding: 5px 0;
    text-align: center;
    border-radius: 30px;
}

.product-tag-item:nth-child(1) {
    border: 1px solid #7ecdf4;
    background: #f2fbff;
    color: #7ecdf4;
}

.product-tag-item:nth-child(2) {
    border: 1px solid #58b6b6;
    background: #e0fffa;
    color: #58b6b6;
}

.product-tag-item:nth-child(3) {
    border: 1px solid #feb157;
    background: #fff8f0;
    color: #feb157;
}

.product-tag-item:nth-child(4) {
    border: 1px solid #f9456c;
    background: #fff1f1;
    color: #f9456c;
}

.news {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    padding: 10px 0;
    color: var(--regular-font-color);
    font-size: 14px;
    line-height: 2;
}

.news-img {
    width: 25%;
    min-width: 100px;
}

.news-con {
    width: 70%;
}

.news-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.news-link {
    color: var(--primary-font-color);
    font-size: 18px;
    font-weight: bold;
    transition: var(--short-tran);
}

.news-link:hover {
    color: var(--theme-color);
}

.view-more {
    display: block;
    width: 150px;
    text-align: center;
    padding: 8px 0;
    margin: 10px auto;
    border-radius: 4px;
    border: 1px dashed var(--base-border-color);
    color: var(--secondary-font-color);
    transition: var(--short-tran);
}

.view-more:hover {
    color: var(--theme-color);
    border-color: var(--theme-color);
}

.company {
    color: var(--regular-font-color);
    font-size: 14px;
    line-height: 2.5;
    overflow: hidden;
}

.about-wrap {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.about {
    flex-shrink: 0;
    position: relative;
    display: block;
    width: 24%;
    margin-bottom: 10px;
    overflow: hidden;
}

.about-img {
    display: block;
    width: 100%;
    transition: var(--short-tran);
}

.about-mask {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .5);
    opacity: 0;
    transition: var(--short-tran);
    letter-spacing: 4px;
}

.about-mask > a {
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
}

.about:hover .about-mask {
    opacity: 1;
    letter-spacing: 0;
}

.about-mask:hover > a {
    transform: translateX(0);
}

.about:hover img {
    transform: scale(1.2);
}

/* about */
.bg {
    background: var(--dark-bg-color);
    padding: 20px 0;
}

.side-wrap {
    flex-shrink: 0;
    width: 210px;
    line-height: 2;
    border-right: 1px solid var(--base-border-color);
}

.side {
    padding: 0 10px 0 20px;
}

.side-link {
    color: var(--primary-font-color);
    transition: var(--short-tran);
    user-select: none;
}

.side-link:hover {
    color: var(--theme-color);
}

.side-item {
    position: relative;
    padding: 10px 0;
    border-top: 1px solid var(--lighter-border-color);
}

.side-item:first-of-type {
    border: none;
}

.side-hide {
    display: none;
}

.drop {
    position: absolute;
    left: -20px;
    top: 12px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--short-tran);
}

.drop-active {
    transform: rotate(-90deg);
}

.product-wrap {
    display: flex;
    justify-content: space-between;
    min-height: 60vh;
    background: var(--bg-color);
}

.content-wrap {
    width: 100%;
    padding: 0 15px 20px;
}

.content-title {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px 0 12px;
    font-size: 20px;
    font-weight: bold;
    color: var(--theme-color);
    border-bottom: 1px solid var(--base-border-color);
}

.content-title::before {
    content: '';
    width: 4px;
    height: 24px;
    margin-right: 15px;
    background: var(--theme-color);
}

.content-body {
    overflow: hidden;
}

.content-body > div {
    padding: 5px;
}

.content-body img {
    display: block;
    width: 100%;
    margin: 0 auto 5px;
}

/* news detail */
.news-detail {
    background: var(--bg-color);
    color: var(--regular-font-color);
    padding: 10px;
}

.news-title {
    text-align: center;
    line-height: 40px;
    font-size: 20px;
    letter-spacing: 2px;
    padding-top: 20px;
}

.news-time {
    padding: 20px 0;
    font-size: 13px;
    text-align: center;
    color: var(--secondary-font-color);
}

.news-content, .product-content {
    font-size: 14px;
    line-height: 2;
}

.activated {
    color: var(--theme-color);
}

/* affix */
.affix {
    position: fixed;
    right: 10px;
    z-index: 99;
    width: 40px;
    height: 40px;
    padding-top: 2px;
    background: #ffffff;
    color: var(--theme-color);
    font-size: 14px;
    text-align: center;
    transition: var(--short-tran);
    box-shadow: 0 0 6px rgba(0, 0, 0, .2);
    border-radius: 5px;
    cursor: pointer;
}

.affix:hover {
    background: var(--theme-color);
    color: #ffffff;
}

.affix-top {
    bottom: 20px;
}

.affix-more {
    display: none;
    bottom: 70px;
}

@media only screen and (max-width: 768px) {
    .header {
        position: relative;
        justify-content: center;
        height: 56px;
        box-shadow: 0 0 5px 0 rgba(0, 0, 0, .2);
    }

    .header-btn {
        display: block;
        position: absolute;
        top: 14px;
        left: 10px;
        font-size: 26px;
    }

    .header-logo {
        height: 50%;
    }

    .nav {
        position: fixed;
        top: 0;
        left: -60%;
        z-index: 100;
        display: block;
        width: 60%;
        height: 100%;
        background: var(--bg-color);
        padding: 60px 0 0 50px;
        transition: var(--short-tran);
    }

    .nav-active {
        left: 0;
        box-shadow: 0 0 15px 2px rgba(0, 0, 0, .3);
    }

    .nav-item {
        display: block;
        margin-bottom: 20px;
    }

    .title-con {
        padding: 10px 0;
    }

    .title-separate {
        display: none;
    }

    .title-name, .title-en {
        display: block;
    }

    .title-en {
        font-size: 14px;
        margin-top: 10px;
    }

    .product-con {
        padding-top: 20px;
    }

    .product-desc {
        font-size: 14px;
    }

    .product-name {
        font-size: 16px;
        text-align: center;
    }

    .product-name:after {
        width: 30px;
        margin: 10px auto;
    }

    .product-tag-item {
        font-size: 12px;
    }

    .news-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-link {
        font-size: 16px;
        line-height: 1.2;
        margin-bottom: 10px;
    }

    .news-summary {
        display: none;
    }

    .company {
        line-height: 2;
    }

    .about-wrap {
        flex-wrap: nowrap;
        justify-content: normal;
        padding: 0;
        overflow: auto;
    }

    .about {
        min-width: 120px;
        margin-right: 10px;
    }

    .about-mask {
        opacity: 1;
        letter-spacing: 0;
    }

    .product-wrap {
        display: block;
        margin-top: 0;
        padding: 0;
    }

    .side-wrap {
        display: none;
        position: fixed;
        bottom: 115px;
        right: 10px;
        max-height: 50vh;
        border: none;
        padding-left: 10px;
        background: var(--dark-bg-color);
        border-radius: 5px;
        overflow: auto;
    }

    .side-active {
        display: block;
    }

    .affix-more {
        display: block;
    }
}
