@charset "utf-8";
/*!
 * 意见反馈浮窗组件
 * 独立样式，不依赖任何站点既有类名
 */

/* ---------- 悬浮栏反馈按钮 ---------- */
.slider p.feedback {
    font-size: 16px;
    color: #033561;
    text-align: center;
}

.slider p.feedback:hover {
    color: #fff;
    background-color: #033561;
}

/* ---------- 遮罩 ---------- */
.fb-mask {
    position: fixed;
    inset: 0;
    z-index: 900;
    background: rgba(0, 22, 43, .48);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
}

.fb-mask.show {
    opacity: 1;
    visibility: visible;
}

/* ---------- 弹窗 ---------- */
.fb-dialog {
    position: fixed;
    z-index: 901;
    top: 50%;
    left: 50%;
    width: 520px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 24px 64px rgba(0, 30, 60, .28);
    transform: translate(-50%, -46%) scale(.96);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s;
}

.fb-dialog.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.fb-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 26px 16px;
    border-bottom: 1px solid rgba(0, 38, 72, .08);
}

.fb-head h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #002648;
}

.fb-close {
    width: 30px;
    height: 30px;
    line-height: 28px;
    text-align: center;
    font-size: 24px;
    color: #8a97a5;
    cursor: pointer;
    border-radius: 50%;
    transition: background .2s, color .2s;
    -webkit-user-select: none;
    user-select: none;
}

.fb-close:hover {
    color: #002648;
    background: rgba(0, 38, 72, .07);
}

.fb-body {
    padding: 20px 26px 26px;
}

.fb-field {
    margin-bottom: 16px;
}

.fb-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #4a5866;
}

.fb-field label i {
    color: #d64545;
    font-style: normal;
}

.fb-field input,
.fb-field textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    color: #002648;
    background: #f7f9fb;
    border: 1px solid rgba(0, 38, 72, .12);
    border-radius: 8px;
    outline: none;
    transition: border-color .2s, background .2s;
}

.fb-field input:focus,
.fb-field textarea:focus {
    background: #fff;
    border-color: #033561;
}

.fb-field textarea {
    height: 108px;
    resize: vertical;
    line-height: 1.6;
}

.fb-foot {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
}

.fb-submit {
    flex: 0 0 auto;
    padding: 0 34px;
    line-height: 46px;
    font-size: 16px;
    color: #fff;
    background: #033561;
    border: none;
    border-radius: 23px;
    cursor: pointer;
    transition: opacity .2s;
}

.fb-submit:hover {
    opacity: .88;
}

.fb-submit:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.fb-msg {
    font-size: 14px;
    line-height: 1.5;
}

.fb-msg.err {
    color: #d64545;
}

.fb-msg.ok {
    color: #1a9d63;
}

/* 弹窗打开时禁止背景滚动 */
body.fb-lock {
    overflow: hidden;
}

/* ---------- 移动端 ---------- */
@media only screen and (max-width: 768px) {
    .fb-dialog {
        width: auto;
        left: 16px;
        right: 16px;
        max-width: none;
        top: auto;
        bottom: 16px;
        transform: translateY(16px) scale(.98);
    }

    .fb-dialog.show {
        transform: translateY(0) scale(1);
    }

    .fb-head {
        padding: 18px 20px 14px;
    }

    .fb-body {
        padding: 16px 20px 22px;
    }

    .fb-foot {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .fb-submit {
        width: 100%;
    }

    .fb-msg {
        text-align: center;
    }
}
