body {
    margin: 0;
    min-width: 320px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

::selection {
    background-color: var(--major-color);
    color: #fff;
}

a {
    text-decoration: none;
    transition: color 0.3s ease;
    color: var(--major-color);
}

a:active, a:hover {
    outline: none;
    color: var(--major-color2);
    text-decoration: none;
}

.link-hover {
    position: relative;
}

.link-hover:hover {
    text-decoration: none;
}

.link-hover:before {
    background-color: var(--major-color);
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    content: '';
    display: block;
    transition: width 0.3s ease;
    visibility: hidden;
}

.link-hover:hover:before {
    width: 100%;
    visibility: visible;
}

@keyframes ajaxLoading {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}

#ajax-loader {
    position: fixed;
    top: calc(50% - 30px);
    left: calc(50% - 30px);
    width: 60px;
    height: 60px;
    z-index: 1050;
    background-color: rgba(255, 255, 255, .8);
    border-color: var(--major-color) transparent transparent transparent;
    border-radius: 10px;
    display: none;
}

#ajax-loader div {
    position: absolute;
    top: 13px;
    left: 13px;
    width: 35px;
    height: 35px;
    border: 4px solid;
    -moz-border-radius: 50%;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    -moz-animation: ajaxLoading 1.2s cubic-bezier(.5, 0, .5, 1) infinite;
    -webkit-animation: ajaxLoading 1.2s cubic-bezier(.5, 0, .5, 1) infinite;
    -o-animation: ajaxLoading 1.2s cubic-bezier(.5, 0, .5, 1) infinite;
    animation: ajaxLoading 1.2s cubic-bezier(.5, 0, .5, 1) infinite;
    /*
    取 theme 主色调
    border-color: #000 transparent transparent transparent;
    */
}

#ajax-loader div:nth-child(1) {
    -moz-animation-delay: -0.45s;
    -webkit-animation-delay: -0.45s;
    -o-animation-delay: -0.45s;
    animation-delay: -0.45s
}

#ajax-loader div:nth-child(2) {
    -moz-animation-delay: -0.3s;
    -webkit-animation-delay: -0.3s;
    -o-animation-delay: -0.3s;
    animation-delay: -0.3s
}

#ajax-loader div:nth-child(3) {
    -moz-animation-delay: -0.15s;
    -webkit-animation-delay: -0.15s;
    -o-animation-delay: -0.15s;
    animation-delay: -0.15s
}

#overlay {
    position: fixed;
    background-color: rgba(35, 35, 35, .8);
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    cursor: pointer;
    z-index: 1000;
    display: none;
}

#goto-top {
    display: none;
    background-color: var(--major-color);
    color: #fff;
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    font-size: 16px;
    z-index: 999;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#goto-top:hover {
    background-color: var(--major-color2);
}

.js-open-layer body {
    overflow-y: hidden;
    height: 100%;
}

.js-open-layer #overlay {
    display: block;
}

.js-open-layer {
    overflow: hidden;
}


/* --------------------------------- validator --------------------------------- */

form .be-input.error,
form .be-select.error,
form .be-textarea.error {
    border-color: #f30;
    box-shadow: 0 0 0 1px #f30;
}

form label.error {
    color: #f30;
    margin-top: 5px;
    display: inline-block;
}



.be-west .be-section:first-child > div,
.be-center .be-section:first-child > div,
.be-east .be-section:first-child > div  {
    margin-top: 0 !important;
}

.be-west .be-section:last-child > div,
.be-center .be-section:last-child > div,
.be-east .be-section:last-child > div  {
    margin-bottom: 0 !important;
}
