/* ===== 站长信箱：浮动按钮 + 表单弹窗 ===== */
.lpm-fab {
    position: fixed;
    right: 20px;
    bottom: 90px;
    z-index: 9998;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #d4a574 0%, #c78f4e 100%);
    color: #171208;
    border: none;
    border-radius: 999px;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .02em;
    cursor: pointer;
    box-shadow: 0 8px 24px -6px rgba(212,165,116,.55), 0 2px 8px rgba(0,0,0,.18);
    transition: transform .2s ease, box-shadow .2s ease;
    line-height: 1.4;
}
.lpm-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -6px rgba(212,165,116,.65), 0 4px 12px rgba(0,0,0,.22); }
.lpm-fab:active { transform: translateY(0); }
.lpm-fab-icon { font-size: 16px; line-height: 1; }
@media (max-width: 640px) {
    .lpm-fab { right: 12px; bottom: 80px; padding: 10px 12px; }
    .lpm-fab-text { display: none; }
    .lpm-fab-icon { font-size: 20px; }
}

.lpm-mask {
    position: fixed; inset: 0; z-index: 9999;
    display: none; align-items: center; justify-content: center;
    padding: 20px;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.lpm-mask.lpm-show { display: flex; }
.lpm-card {
    position: relative;
    width: 100%; max-width: 480px;
    background: #1a1f28;
    color: #e8ecf2;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    padding: 26px 26px 22px;
    box-shadow: 0 40px 110px -30px rgba(0,0,0,.7);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    animation: lpmIn .22s ease;
}
@keyframes lpmIn { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.lpm-card::before {
    content: ''; position: absolute; top: 0; left: 24px; right: 24px; height: 2px;
    background: linear-gradient(90deg, #d4a574, #c78f4e);
    border-radius: 0 0 2px 2px;
}
.lpm-close {
    position: absolute; top: 14px; right: 14px;
    width: 30px; height: 30px; border-radius: 50%;
    border: none; background: transparent; color: rgba(232,236,242,.55);
    font-size: 16px; cursor: pointer; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s, color .15s;
}
.lpm-close:hover { background: rgba(255,255,255,.08); color: #e8ecf2; }
.lpm-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; color: #e8ecf2; }
.lpm-desc { font-size: 12.5px; color: rgba(232,236,242,.55); margin-bottom: 16px; line-height: 1.6; }
.lpm-name, .lpm-email, .lpm-content {
    width: 100%; box-sizing: border-box;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 10px;
    color: #e8ecf2;
    font-family: inherit; font-size: 13.5px;
    padding: 10px 12px;
    outline: none;
    transition: border-color .18s, background .18s;
}
.lpm-name, .lpm-email { height: 40px; margin-bottom: 10px; }
.lpm-content { min-height: 120px; resize: vertical; line-height: 1.7; margin-bottom: 10px; }
.lpm-name:focus, .lpm-email:focus, .lpm-content:focus {
    border-color: #d4a574;
    background: rgba(255,255,255,.06);
}
.lpm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.lpm-msg { font-size: 13px; color: #8fd4a8; min-height: 0; display: none; margin-bottom: 8px; }
.lpm-msg.lpm-show { display: block; }
.lpm-msg.lpm-err { color: #ef9184; }
.lpm-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.lpm-count { font-size: 12px; color: rgba(232,236,242,.45); font-variant-numeric: tabular-nums; }
.lpm-submit {
    padding: 9px 22px; border-radius: 10px;
    background: linear-gradient(135deg, #d4a574, #c78f4e);
    color: #171208; border: none;
    font-family: inherit; font-size: 14px; font-weight: 650;
    cursor: pointer; transition: filter .15s, transform .15s;
}
.lpm-submit:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.lpm-submit:disabled { opacity: .6; cursor: not-allowed; }
@media (max-width: 640px) {
    .lpm-card { padding: 22px 18px 18px; }
}
