#chuhai-floating,
#chuhai-floating * {
    all: revert;
    box-sizing: border-box
}

#chuhai-floating {
    font: 14px/1.6 Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #333
}

#chuhai-floating [hidden] {
    display: none !important
}

#chuhai-floating button,
#chuhai-floating input,
#chuhai-floating select,
#chuhai-floating textarea {
    font: inherit
}

#chuhai-floating button {
    cursor: pointer;
    border: 0
}

#chuhai-floating button:focus-visible,
#chuhai-floating a:focus-visible {
    outline: 2px solid #c32332;
    outline-offset: -3px
}

#chuhai-floating .chf-toolbar {
    position: fixed;
    right: 0;
    bottom: 15%;
    width: 70px;
    z-index: 50
}

#chuhai-floating .chf-item {
    position: relative;
    height: 70px;
    margin-bottom: 1px;
    box-shadow: 0 0 15px rgba(158, 165, 177, .14)
}

#chuhai-floating .chf-icon,
#chuhai-floating .chf-top {
    display: block;
    position: relative;
    width: 70px;
    height: 70px;
    padding: 0;
    background: #fff
}

#chuhai-floating .chf-icon img {
    position: absolute;
    width: 40px;
    height: auto;
    max-height: 50px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%)
}

#chuhai-floating .chf-hover-icon {
    opacity: 0
}

#chuhai-floating .chf-item:hover .chf-icon,
#chuhai-floating .chf-item:focus-within .chf-icon {
    background: #c32332
}

#chuhai-floating .chf-item:hover .chf-hover-icon,
#chuhai-floating .chf-item:focus-within .chf-hover-icon {
    opacity: 1
}

#chuhai-floating .chf-tip {
    position: absolute;
    right: 100%;
    top: 0;
    min-height: 70px;
    padding: 22px 15px;
    background: #fff;
    box-shadow: 0 0 15px rgba(158, 165, 177, .14);
    white-space: nowrap;
    visibility: hidden;
    opacity: 0
}

#chuhai-floating .chf-item:hover .chf-tip,
#chuhai-floating .chf-item:focus-within .chf-tip,
#chuhai-floating .chf-item.chf-active .chf-tip {
    visibility: visible;
    opacity: 1
}

#chuhai-floating .chf-tip button {
    padding: 0;
    color: #c32332;
    background: transparent
}

#chuhai-floating .chf-tip a {
    color: #c32332;
    font-size: 18px;
    text-decoration: none
}

#chuhai-floating .chf-qr {
    padding: 15px;
    text-align: center
}

#chuhai-floating .chf-qr img {
    display: block;
    width: 100px;
    height: auto;
    margin-top: 8px
}

#chuhai-floating .chf-top {
    background: #c32332 url(../img/topA.png) no-repeat center
}

#chuhai-floating .chf-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 10000
}

#chuhai-floating .chf-dialog {
    position: fixed;
    top: 0;
    right: 0;
    width: 30%;
    height: 100%;
    padding: 100px 30px 40px;
    margin: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    z-index: 10001
}

#chuhai-floating .chf-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 90px;
    height: 80px;
    border-radius: 0 0 0 40px;
    color: #fff;
    background: #c32332;
    font-size: 36px
}

#chuhai-floating h2 {
    margin: 0 0 35px;
    color: #c32332;
    font-size: 32px;
    line-height: 1.2
}

#chuhai-floating .chf-description {
    margin: 0 0 15px;
    color: #999
}

#chuhai-floating .chf-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 8px
}

#chuhai-floating label {
    display: block;
    margin-bottom: 15px;
    color: #888;
    font-weight: 700
}

#chuhai-floating em {
    color: #c32332;
    font-style: normal
}

#chuhai-floating input,
#chuhai-floating select,
#chuhai-floating textarea {
    display: block;
    width: 100%;
    min-width: 0;
    margin-top: 5px;
    padding: 12px 8px;
    border: 1px solid transparent;
    border-radius: 0;
    background: #eee;
    color: #333;
    line-height: 24px;
    font-weight: 400
}

#chuhai-floating select {
    border: 2px solid #c32332;
    background: #fafafa
}

#chuhai-floating textarea {
    resize: vertical
}

#chuhai-floating .chf-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden
}

#chuhai-floating .chf-status {
    margin: 10px 0;
    color: #c32332
}

#chuhai-floating .chf-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 180px;
    padding: 14px 30px;
    color: #fff;
    background: #c32332;
    font-size: 16px;
    font-weight: 700
}

#chuhai-floating .chf-submit:disabled {
    cursor: wait;
    opacity: .6
}

@media (max-width: 1660px) {
    #chuhai-floating .chf-dialog {
        width: 50%
    }
}

@media (max-width: 768px) {
    #chuhai-floating .chf-dialog {
        width: 100%;
        padding: 90px 20px 30px
    }

    #chuhai-floating .chf-toolbar {
        width: 50px;
        bottom: 10%
    }

    #chuhai-floating .chf-item,
    #chuhai-floating .chf-icon,
    #chuhai-floating .chf-top {
        width: 50px;
        height: 50px
    }

    #chuhai-floating .chf-icon img {
        width: 30px;
        max-height: 35px
    }

    #chuhai-floating .chf-tip {
        min-height: 50px;
        padding: 12px
    }
}
