/* ============================================================
 * YYModal 全站统一弹窗组件样式
 * 依赖 app.css 主题变量：--brand / --radius / --shadow-lg / --line / --text-2 / --text-3
 * 提供 window.YYModal.alert / confirm / prompt
 * ============================================================ */
.yy-modal-mask {
    position: fixed;
    inset: 0;
    z-index: 9999;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(24, 32, 45, .55);
    opacity: 0;
    transition: opacity .18s ease;
}
.yy-modal-mask.yy-modal-open { opacity: 1; }
.yy-modal-box {
    width: 360px;
    max-width: 92vw;
    max-height: 86vh;
    overflow: auto;
    background: #fff;
    border-radius: var(--radius, 14px);
    box-shadow: var(--shadow-lg, 0 10px 30px rgba(24, 32, 45, .1));
    padding: 20px;
    transform: translateY(12px) scale(.97);
    opacity: 0;
    transition: transform .18s ease, opacity .18s ease;
}
.yy-modal-mask.yy-modal-open .yy-modal-box { transform: translateY(0) scale(1); opacity: 1; }
.yy-modal-mask.yy-modal-closing { opacity: 0; }
.yy-modal-mask.yy-modal-closing .yy-modal-box { transform: translateY(8px) scale(.97); opacity: 0; }

.yy-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}
.yy-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text, #1f2329);
    line-height: 1.4;
}
.yy-modal-close {
    border: none;
    background: transparent;
    color: var(--text-3, #8a919f);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    border-radius: 6px;
}
.yy-modal-close:hover { color: var(--text, #1f2329); background: #f2f3f5; }

.yy-modal-body {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-2, #4e5969);
    word-break: break-word;
    white-space: pre-wrap;
}
.yy-modal-input {
    width: 100%;
    box-sizing: border-box;
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid var(--line, #eceff3);
    border-radius: 9px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text, #1f2329);
    outline: none;
    background: #fff;
}
.yy-modal-input:focus { border-color: var(--brand, #e1251b); }

.yy-modal-ops {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}
.yy-modal-btn {
    flex: 1;
    border: none;
    cursor: pointer;
    padding: 9px 0;
    font-size: 14px;
    font-weight: 600;
    border-radius: 9px;
    background: #f2f3f5;
    color: var(--text, #1f2329);
    transition: opacity .15s ease, background .15s ease;
}
.yy-modal-btn:hover { background: #e8e9eb; }
.yy-modal-btn-primary {
    background: var(--brand, #e1251b);
    color: #fff;
}
.yy-modal-btn-primary:hover { background: #c91e15; opacity: .96; }
