@charset "utf-8";
/* ==========================================================================
   全站右下角悬浮留言模块（Leave Your Message）
   配色沿用站点主色：浅橙 #ea7a1c / 悬停深橙 #bf5a08
   ========================================================================== */

.lm-widget {
    position: fixed;
    right: 22px;
    bottom: 0;
    width: 300px;
    max-width: calc(100vw - 24px);
    z-index: 9999;
    font-family: inherit;
    -webkit-font-smoothing: antialiased;
    /* 折叠态：只露出标题条（高度 42px） */
    transform: translateY(calc(100% - 42px));
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
}

.lm-widget.open { transform: translateY(0); }

/* ---------- 标题条 ---------- */
.lm-widget .lm-head {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 42px;
    padding: 0 40px 0 16px;
    background: #ea7a1c;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, .16);
    cursor: pointer;
    user-select: none;
    transition: background-color .3s;
}

.lm-widget .lm-head:hover { background: #bf5a08; }

.lm-widget .lm-head-txt {
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: .2px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lm-widget .lm-chev {
    position: absolute;
    right: 12px;
    top: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    fill: none;
    stroke: #fff;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .35s;
}

.lm-widget.open .lm-chev { transform: rotate(180deg); }

/* ---------- 面板主体 ---------- */
.lm-widget .lm-body {
    background: #fff;
    border: 1px solid #ececec;
    border-top: 0;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .16);
    padding: 14px 16px 16px;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.lm-widget .lm-row { margin-bottom: 12px; }

.lm-widget .lm-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.5;
    color: #333;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 24px;
    outline: 0;
    transition: border-color .25s, box-shadow .25s;
}

.lm-widget .lm-input::placeholder { color: #9a9a9a; }

.lm-widget .lm-input:focus {
    border-color: #ea7a1c;
    box-shadow: 0 0 0 3px rgba(234, 122, 28, .14);
}

.lm-widget .lm-textarea {
    border-radius: 16px;
    min-height: 96px;
    resize: vertical;
}

/* ---------- 提示 ---------- */
.lm-widget .lm-tip {
    display: none;
    margin: 4px 4px 10px;
    font-size: 12px;
    line-height: 1.5;
}

.lm-widget .lm-tip.is-ok { display: block; color: #2e9e4f; }
.lm-widget .lm-tip.is-err { display: block; color: #d93025; }

/* ---------- 发送按钮 ---------- */
.lm-widget .lm-send {
    display: block;
    width: 100%;
    height: 40px;
    margin-top: 6px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    background: #ea7a1c;
    border: 0;
    border-radius: 24px;
    cursor: pointer;
    outline: 0;
    transition: background-color .3s;
}

.lm-widget .lm-send:hover { background: #bf5a08; }
.lm-widget .lm-send:disabled { opacity: .7; cursor: default; }

/* ---------- 移动端 ---------- */
@media (max-width: 767px) {
    .lm-widget {
        right: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
    }
    .lm-widget .lm-head { border-radius: 0; }
    .lm-widget .lm-body {
        border-radius: 0;
        padding: 14px 14px 16px;
        max-height: calc(100vh - 80px);
    }
    .lm-widget .lm-input { font-size: 14px; }
}
