/* 功能权限守卫弹窗 */
.guard-modal {
    position: fixed;
    inset: 0;
    z-index: 10060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s;
}
.guard-modal.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}
body.guard-modal-open {
    overflow: hidden;
}
.guard-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}
.guard-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
    padding: 32px 24px 28px;
    z-index: 1;
    text-align: center;
}
.guard-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 6px;
    transition: color 0.15s;
}
.guard-modal-close:hover {
    color: #475569;
}

/* 图标区 */
.guard-modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}
.guard-modal-icon--login { background: #e0f2fe; color: #0284c7; }
.guard-modal-icon--vip { background: #fef3c7; color: #d97706; }
.guard-modal-icon--points { background: #fee2e2; color: #dc2626; }

/* 标题 */
.guard-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px;
}
/* 描述 */
.guard-modal-desc {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 20px;
    line-height: 1.5;
}
/* 点数显示 */
.guard-modal-points-info {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 18px;
}
.guard-modal-point-item {
    text-align: center;
}
.guard-modal-point-value {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}
.guard-modal-point-value.is-low {
    color: #dc2626;
}
.guard-modal-point-label {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

/* 按钮组 */
.guard-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.guard-modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 11px 16px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s;
    text-decoration: none;
}
.guard-modal-btn--primary {
    background: #2563eb;
    color: #fff;
}
.guard-modal-btn--primary:hover {
    background: #1d4ed8;
}
.guard-modal-btn--gold {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
}
.guard-modal-btn--gold:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
}
.guard-modal-btn--danger {
    background: #dc2626;
    color: #fff;
}
.guard-modal-btn--danger:hover {
    background: #b91c1c;
}
.guard-modal-btn--ghost {
    background: transparent;
    color: #64748b;
    border: 1px solid #e2e8f0;
}
.guard-modal-btn--ghost:hover {
    background: #f8fafc;
    color: #475569;
}

/* VIP 徽章动画 */
.guard-modal-icon--vip svg {
    animation: guardPulse 2s ease-in-out infinite;
}
@keyframes guardPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}
