/* ===== 全站左侧悬浮留言表单 ===== */
.fc-msg-float {
    height: 0;
    overflow: visible;
}

.fc-msg-panel {
    display: none;
    position: static;
    width: 100%;
    max-width: 230px;
    margin: 0 auto;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(16, 42, 90, .14);
    transition: transform .35s cubic-bezier(.22, .61, .36, 1), opacity .3s ease;
}

.fc-msg-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
    padding: 0 16px;
    background: linear-gradient(135deg, #2f74ff 0%, #1e56d8 100%);
    color: #fff;
}

.fc-msg-head span {
    font-size: 16px;
    letter-spacing: 1.5px;
}

.fc-msg-min {
    display: none;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, .18);
    cursor: pointer;
    line-height: 0;
    transition: background .2s ease;
}

.fc-msg-min:hover {
    background: rgba(255, 255, 255, .32);
}

.fc-msg-min svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
}

.fc-msg-body {
    padding: 16px 16px 18px;
}

.fc-msg-tip {
    margin: 0 0 14px;
    font-size: 12.5px;
    line-height: 1.7;
    color: #5a6780;
    text-align: center;
}

.fc-msg-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fc-field {
    position: relative;
}

.fc-field svg {
    position: absolute;
    left: 13px;
    top: 12px;
    z-index: 3;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #9aa8c2;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
    transition: stroke .2s ease;
}

/* 覆盖模板自带的表单样式 */
.fc-msg-panel .fc-field input,
.fc-msg-panel .fc-field textarea {
    position: relative;
    z-index: 2;
    display: block;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 11px 14px 11px 38px !important;
    border: 1px solid #e1e7f2 !important;
    border-radius: 9px !important;
    background: #fff !important;
    color: #33405c !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    box-shadow: none !important;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.fc-msg-panel .fc-field textarea {
    min-height: 96px !important;
    resize: none;
}

.fc-msg-panel .fc-field input::placeholder,
.fc-msg-panel .fc-field textarea::placeholder {
    color: #a3b0c8 !important;
    font-size: 13px;
}

.fc-msg-panel .fc-field input:focus,
.fc-msg-panel .fc-field textarea:focus {
    border-color: #2460f2 !important;
    box-shadow: 0 0 0 3px rgba(36, 96, 242, .12) !important;
}

.fc-msg-panel .fc-field:focus-within svg {
    stroke: #2460f2;
}

.fc-msg-panel .fc-msg-submit {
    align-self: flex-end;
    width: auto !important;
    height: auto !important;
    margin: 2px 0 0 !important;
    padding: 10px 30px !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: linear-gradient(135deg, #2f74ff 0%, #1e56d8 100%) !important;
    color: #fff !important;
    font-size: 14px !important;
    letter-spacing: 1px;
    line-height: 1.4 !important;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(27, 79, 208, .26);
    transition: transform .2s ease, box-shadow .2s ease;
}

.fc-msg-panel .fc-msg-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(27, 79, 208, .32);
}

/* 收起后重新打开的小入口 */
.fc-msg-tab {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #2f74ff 0%, #1e56d8 100%);
    color: #fff;
    font-size: 13px;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(27, 79, 208, .28);
}

.fc-msg-tab svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #fff;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* 桌面端：脱离文档流，浮在页面右侧 */
@media (min-width: 992px) {

    .fc-msg-panel {
        position: fixed;
        left: 20px;
        top: 50%;
        width: 230px;
        max-width: 340px;
        margin: 0;
        max-height: 84vh;
        display: flex;
        flex-direction: column;
        z-index: 1035;
        transform: translateY(-50%);
        box-shadow: 0 12px 34px rgba(16, 42, 90, .18);
    }

    .fc-msg-body {
        overflow-y: auto;
    }

    .fc-msg-min {
        display: block;
    }

    .fc-msg-panel.is-hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-50%) translateX(-24px);
    }

    .fc-msg-tab {
        position: fixed;
        left: 20px;
        top: 50%;
        display: none;
        z-index: 1035;
        transform: translateY(-50%);
        box-shadow: 0 8px 22px rgba(27, 79, 208, .28);
    }

    .fc-msg-tab.is-active {
        display: flex;
    }
}
