/* 订阅引导卡片。独立文件，避免和站点既有样式互相干扰。 */

.mf-sheet {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    transition: background .28s ease;
    pointer-events: none;
}

.mf-sheet.mf-show {
    background: rgba(0, 0, 0, .42);
    pointer-events: auto;
}

.mf-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 18px 18px 0 0;
    padding: 28px 24px 26px;
    text-align: center;
    box-shadow: 0 -6px 30px rgba(0, 0, 0, .18);
    /* 横屏手机高度只有 ~375px，内容放不下时让卡片内部滚动，别把按钮挤出屏幕 */
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform .32s cubic-bezier(.22, 1, .36, 1);
}

.mf-sheet.mf-show .mf-card {
    transform: translateY(0);
}

@media (min-width: 560px) {
    .mf-sheet {
        align-items: center;
    }

    .mf-card {
        border-radius: 18px;
        transform: translateY(24px) scale(.96);
        opacity: 0;
        transition: transform .3s cubic-bezier(.22, 1, .36, 1), opacity .3s ease;
    }

    .mf-sheet.mf-show .mf-card {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.mf-x {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: 0;
    font-size: 26px;
    line-height: 1;
    color: #b8b8bf;
    cursor: pointer;
    padding: 4px 8px;
}

.mf-x:hover {
    color: #6b6b74;
}

.mf-emoji {
    font-size: 42px;
    line-height: 1;
    margin-bottom: 12px;
}

.mf-card h3 {
    margin: 0 0 8px;
    font-size: 19px;
    font-weight: 700;
    color: #1a1a1e;
}

.mf-card p {
    margin: 0 0 20px;
    font-size: 14.5px;
    line-height: 1.6;
    color: #6b6b74;
}

.mf-card p b {
    color: #1a1a1e;
}

.mf-share {
    display: inline-block;
    transform: translateY(1px);
    color: #F5A524;
}

.mf-btns {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.mf-primary,
.mf-ghost {
    width: 100%;
    padding: 13px 18px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    border: 1px solid transparent;
    transition: filter .15s ease, background .15s ease;
}

.mf-primary {
    background: #F5A524;
    color: #fff;
}

.mf-primary:hover {
    filter: brightness(1.06);
}

.mf-primary:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.mf-ghost {
    background: #fff;
    color: #6b6b74;
    border-color: #e4e4e9;
}

.mf-ghost:hover {
    background: #f7f7f9;
}

.mf-form {
    display: flex;
    gap: 8px;
}

.mf-form input {
    flex: 1;
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid #e4e4e9;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    color: #1a1a1e;
}

.mf-form input:focus {
    outline: 2px solid #F5A524;
    outline-offset: -1px;
    border-color: transparent;
}

.mf-form .mf-primary {
    width: auto;
    flex: 0 0 auto;
    padding: 13px 22px;
}

.mf-msg {
    font-size: 13px;
    margin-top: 12px;
    min-height: 18px;
}

.mf-msg.mf-ok {
    color: #1a9c5b;
}

.mf-msg.mf-err {
    color: #d93838;
}

.mf-toast {
    position: fixed;
    left: 50%;
    bottom: 32px;
    transform: translate(-50%, 16px);
    background: #1a1a1e;
    color: #fff;
    padding: 12px 22px;
    border-radius: 24px;
    font-size: 14px;
    z-index: 100000;
    opacity: 0;
    transition: opacity .28s ease, transform .28s ease;
    pointer-events: none;
    max-width: 90vw;
}

.mf-toast.mf-show {
    opacity: 1;
    transform: translate(-50%, 0);
}
